EverclearBridge

Git Source

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

NameTypeDescription
<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

NameTypeDescription
_extractedAmountuint256extracted amount for rebalancing
_marketaddressdestination address
_dstChainIduint32destination chain id
_tokenaddressthe token to rebalance
_messagebytesoperation 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();