Admin
Inherits: IAdmin, AccessControlEnumerable
State Variables
RELAYER_ROLE
bytes32 public constant RELAYER_ROLE = keccak256("RELAYER_ROLE");
REFUNDER_ROLE
bytes32 public constant REFUNDER_ROLE = keccak256("REFUNDER_ROLE");
GUARD_ROLE
bytes32 public constant GUARD_ROLE = keccak256("GUARD_ROLE");
GOVERNOR_ROLE
bytes32 public constant GOVERNOR_ROLE = keccak256("GOVERNOR_ROLE");
FEE_BPS
uint256 public constant FEE_BPS = 1e6;
FEE_RATE_MAX
uint256 public constant FEE_RATE_MAX = 0.01e6;
protocolFeeRate
Protocol fee rate taken on origin amount deposited in origin chain
uint256 public protocolFeeRate;
protocolFees
Protocol fee amounts accumulated
mapping(address => uint256) public protocolFees;
chainGasAmount
Chain gas amount to forward as rebate if requested
uint256 public chainGasAmount;
Functions
constructor
constructor(address _owner);
setProtocolFeeRate
function setProtocolFeeRate(uint256 newFeeRate) external onlyRole(GOVERNOR_ROLE);
sweepProtocolFees
function sweepProtocolFees(address token, address recipient) external onlyRole(GOVERNOR_ROLE);
setChainGasAmount
function setChainGasAmount(uint256 newChainGasAmount) external onlyRole(GOVERNOR_ROLE);