SimpleFeeProxy
Helper to withdraw fees from DeBridgeGate and transfer them to a treasury.

Variables

debridgeGate

1
contract IDeBridgeGate public debridgeGate;
Copied!
DeBridgeGate address

treasury

1
address public treasury;
Copied!
Treasury address

Functions

initialize

1
function initialize(
2
contract IDeBridgeGate _debridgeGate,
3
address _treasury
4
) public
Copied!

pause

1
function pause(
2
) external
Copied!

unpause

1
function unpause(
2
) external
Copied!

setDebridgeGate

1
function setDebridgeGate(
2
contract IDeBridgeGate _debridgeGate
3
) external
Copied!

setTreasury

1
function setTreasury(
2
address _treasury
3
) external
Copied!

withdrawFee

1
function withdrawFee(
2
address _tokenAddress
3
) external
Copied!
Transfer collected fees for a token to the treasury.

Parameters:

Name
Type
Description
_tokenAddress
address
Address of a deToken on a current chain.

withdrawNativeFee

1
function withdrawNativeFee(
2
) external
Copied!
Transfer collected fees for a native token to the treasury.

receive

1
function receive(
2
) external
Copied!

getbDebridgeId

1
function getbDebridgeId(
2
uint256 _chainId,
3
bytes _tokenAddress
4
) public returns (bytes32)
Copied!
Calculates asset identifier.

Parameters:

Name
Type
Description
_chainId
uint256
Current chain id.
_tokenAddress
bytes
Address of the asset on the other chain.

getDebridgeId

1
function getDebridgeId(
2
uint256 _chainId,
3
address _tokenAddress
4
) public returns (bytes32)
Copied!
Calculates asset identifier.

Parameters:

Name
Type
Description
_chainId
uint256
Current chain id.
_tokenAddress
address
Address of the asset on the other chain.

getChainId

1
function getChainId(
2
) public returns (uint256 cid)
Copied!
Get current chain id

_safeTransferETH

1
function _safeTransferETH(
2
address to,
3
uint256 value
4
) internal
Copied!
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

1
function version(
2
) external returns (uint256)
Copied!
Get this contract's version