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
_tokenAddress
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
_chainId
uint256
Current chain id.
_tokenAddress
bytes
Address of the asset on the other chain.
getDebridgeId
Calculates asset identifier.
Parameters:
Name
Type
Description
_chainId
uint256
Current chain id.
_tokenAddress
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
to
address
recipient of the transfer
value
uint256
the amount to send
version
Get this contract's version
Last updated