-
Notifications
You must be signed in to change notification settings - Fork 7
BaseBridgeCron
senamakel edited this page Dec 3, 2024
·
1 revision
bytes32 EXECUTOR_ROLEcontract IOFT OFT_ADAPTERcontract IERC20 ZAIaddress remoteDestinationuint32 remoteEIDconstructor(address _ZAI, address _adapter) publicfunction execute() public payablefunction setDestinationAddresses(address _remoteAddr, uint32 _dstEID) externalSets the destination addresses for cross-chain transfers.
function refund(contract IERC20 token) externalRefunds the specified token balance held by the contract to the caller.
Only callable by owner of the contract
| Name | Type | Description |
|---|---|---|
| token | contract IERC20 | The ERC20 token to be refunded. |
function _bridgeToBase(uint256 _amount) internalBridges the specified amount of ZAI to the remote chain.
| Name | Type | Description |
|---|---|---|
| _amount | uint256 | The amount of ZAI to be bridged. |
function _addressToBytes32(address _addr) internal pure returns (bytes32)Converts an address to a bytes32 format.
This is necessary for cross-chain transfers where addresses need to be converted to bytes32.
| Name | Type | Description |
|---|---|---|
| _addr | address | The address to convert. |
| Name | Type | Description |
|---|---|---|
| [0] | bytes32 | The converted bytes32 representation of the address. |