LiquidityHandler

Git Source

Author: Zeropoint Labs.

SPDX-License-Identifier: Apache-2.0

bridges tokens from Chain A -> Chain B. To be inherited by contracts that move liquidity

State Variables

NATIVE

address constant NATIVE = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

Functions

dispatchTokens

dispatches tokens via a liquidity bridge

function dispatchTokens(
    address bridge_,
    bytes memory txData_,
    address token_,
    uint256 amount_,
    uint256 nativeAmount_
)
    internal
    virtual;

Parameters

NameTypeDescription
bridge_addressBridge address to pass tokens to
txData_bytesliquidity bridge data
token_addressToken caller deposits into superform
amount_uint256Amount of tokens to deposit
nativeAmount_uint256msg.value or msg.value + native tokens