Skip to main content

IVault

Git Source

Functions

manageUserBalance

function manageUserBalance(UserBalanceOp[] memory ops) external payable;

getPoolTokens

function getPoolTokens(bytes32 poolId)
external
view
returns (address[] memory tokens, uint256[] memory balances, uint256 lastChangeBlock);

Structs

UserBalanceOp

Data for manageUserBalance operations, which include the possibility for ETH to be sent and received without manual WETH wrapping or unwrapping.

struct UserBalanceOp {
UserBalanceOpKind kind;
IAsset asset;
uint256 amount;
address sender;
address payable recipient;
}

Enums

UserBalanceOpKind

enum UserBalanceOpKind {
DEPOSIT_INTERNAL,
WITHDRAW_INTERNAL,
TRANSFER_INTERNAL,
TRANSFER_EXTERNAL
}