EverclearBridge
Inherits: BaseBridge, IBridge
State Variables
everclearSpoke
IEverclearSpoke public everclearSpoke;
Functions
constructor
constructor(address _roles, address _spoke) BaseBridge(_roles);
getFee
computes fee for bridge operation
function getFee(uint32, bytes memory, bytes memory) external pure returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
<none> | uint32 | |
<none> | bytes | |
<none> | bytes |
sendMsg
rebalance through bridge
function sendMsg(
uint256 _extractedAmount,
address _market,
uint32 _dstChainId,
address _token,
bytes memory _message,
bytes memory
) external payable onlyRebalancer;
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 |
<none> | bytes |
Events
MsgSent
event MsgSent(uint256 indexed dstChainId, address indexed market, uint256 amountLD, bytes32 id);
Errors
Everclear_NotImplemented
error Everclear_NotImplemented();
Everclear_AddressNotValid
error Everclear_AddressNotValid();