IBridge
Functions
getFee
computes fee for bridge operation
function getFee(uint32 _dstChainId, bytes memory _message, bytes memory _bridgeData) external view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
_dstChainId | uint32 | destination chain id |
_message | bytes | operation message data |
_bridgeData | bytes | specific bridge data |
sendMsg
rebalance through bridge
function sendMsg(
uint256 _extractedAmount,
address _market,
uint32 _dstChainId,
address _token,
bytes memory _message,
bytes memory _bridgeData
) external payable;
Parameters
Name | Type | Description |
---|---|---|
_extractedAmount | uint256 | extracted amount for rebalancing |
_market | address | destination address |
_dstChainId | uint32 | destination chain id |
_token | address | the token to rebalance |
_message | bytes | operation message data |
_bridgeData | bytes | specific bridge datas |