ThreeXZapper


Functions:

Events:

Graphs:


Function Definitions:

constructor()

constructor(contract IContractRegistry _contractRegistry, contract Curve3Pool _threePool, contract IERC20[3] _token) public 

zapIntoBatch()

zapIntoBatch(uint256 _amount, int128 _i, int128 _j, uint256 _min_amount) external 

The amounts in _amounts must align with their index in the ThreePool

Parameter NameTypeDescription

_amount

uint256

Input Amount

_i

int128

Index of inputToken

_j

int128

Index of outputToken

_min_amount

uint256

The min amount of USDC which should be returned by the ThreePool (slippage control) should be taking the decimals of the outputToken into account

zapOutOfBatch()

zapOutOfBatch(bytes32 _batchId, uint256 _amountToWithdraw, int128 _i, int128 _j, uint256 _min_amount) external 
Parameter NameTypeDescription

_batchId

bytes32

Defines which batch gets withdrawn from

_amountToWithdraw

uint256

USDC amount that shall be withdrawn

_i

int128

Index of inputToken

_j

int128

Index of outputToken

_min_amount

uint256

The min amount of USDC which should be returned by the ThreePool (slippage control) should be taking the decimals of the outputToken into account

claimAndSwapToStable()

claimAndSwapToStable(bytes32 _batchId, int128 _i, int128 _j, uint256 _min_amount) external 
Parameter NameTypeDescription

_batchId

bytes32

Defines which batch gets withdrawn from

_i

int128

Index of inputToken

_j

int128

Index of outputToken

_min_amount

uint256

The min amount of USDC which should be returned by the ThreePool (slippage control) should be taking the decimals of the outputToken into account

setApprovals()

setApprovals() external 

Events

ZappedIntoBatch

ZappedIntoBatch(uint256 outputAmount, address account)

ZappedOutOfBatch

ZappedOutOfBatch(bytes32 batchId, int128 stableCoinIndex, uint256 inputAmount, uint256 outputAmount, address account)

ClaimedIntoStable

ClaimedIntoStable(bytes32 batchId, int128 stableCoinIndex, uint256 inputAmount, uint256 outputAmount, address account)

Graphs

Dependency Graph

Inheritance Graph

Last updated