SimpleFeeProxy
Helper to withdraw fees from DeBridgeGate and transfer them to a treasury.
contract IDeBridgeGate public debridgeGate;
DeBridgeGate address
address public treasury;
Treasury address
function initialize(
contract IDeBridgeGate _debridgeGate,
address _treasury
) public
function pause(
) external
function unpause(
) external
function setDebridgeGate(
contract IDeBridgeGate _debridgeGate
) external
function setTreasury(
address _treasury
) external
function withdrawFee(
address _tokenAddress
) external
Transfer collected fees for a token to the treasury.
Name | Type | Description |
---|---|---|
_tokenAddress | address | Address of a deToken on a current chain. |
function withdrawNativeFee(
) external
Transfer collected fees for a native token to the treasury.
function receive(
) external
function getbDebridgeId(
uint256 _chainId,
bytes _tokenAddress
) public returns (bytes32)
Calculates asset identifier.
Name | Type | Description |
---|---|---|
_chainId | uint256 | Current chain id. |
_tokenAddress | bytes | Address of the asset on the other chain. |
function getDebridgeId(
uint256 _chainId,
address _tokenAddress
) public returns (bytes32)
Calculates asset identifier.
Name | Type | Description |
---|---|---|
_chainId | uint256 | Current chain id. |
_tokenAddress | address | Address of the asset on the other chain. |
function getChainId(
) public returns (uint256 cid)
Get current chain id
function _safeTransferETH(
address to,
uint256 value
) internal
transfer ETH to an address, revert if it fails.
Name | Type | Description |
---|---|---|
to | address | recipient of the transfer |
value | uint256 | the amount to send |
function version(
) external returns (uint256)
Get this contract's version
Last modified 1yr ago