SimpleFeeProxy
Helper to withdraw fees from DeBridgeGate and transfer them to a treasury.
Variables
debridgeGate
DeBridgeGate address
treasury
Treasury address
Functions
initialize
pause
unpause
setDebridgeGate
setTreasury
withdrawFee
Transfer collected fees for a token to the treasury.
Parameters:
Name | Type | Description |
---|---|---|
| address | Address of a deToken on a current chain. |
withdrawNativeFee
Transfer collected fees for a native token to the treasury.
receive
getbDebridgeId
Calculates asset identifier.
Parameters:
Name | Type | Description |
---|---|---|
| uint256 | Current chain id. |
| bytes | Address of the asset on the other chain. |
getDebridgeId
Calculates asset identifier.
Parameters:
Name | Type | Description |
---|---|---|
| uint256 | Current chain id. |
| address | Address of the asset on the other chain. |
getChainId
Get current chain id
_safeTransferETH
transfer ETH to an address, revert if it fails.
Parameters:
Name | Type | Description |
---|---|---|
| address | recipient of the transfer |
| uint256 | the amount to send |
version
Get this contract's version
Last updated