InfraredBERAClaimor
Inherits: Upgradeable, IInfraredBERAClaimor
Claimor to claim BERA withdrawn from CL for Infrared liquid staking token
Separate contract so withdrawor process has trusted contract to forward funds to so no issue with naked bera transfer and receive function
State Variables
claims
Outstanding BERA claims for a receiver
mapping(address => uint256) public claims;
ibera
IInfraredBERA public ibera;
Functions
initialize
Initializer function (replaces constructor)
function initialize(address _gov, address _keeper, address _ibera)
external
initializer;
Parameters
Name | Type | Description |
---|---|---|
_gov | address | Address of the initial admin / gov |
_keeper | address | Address of the initial keeper |
_ibera | address | Address of InfraredBera proxy contract |
queue
Queues a new BERA claim for a receiver
Only callable by the InfraredBERAWithdrawor contract
function queue(address receiver) external payable;
Parameters
Name | Type | Description |
---|---|---|
receiver | address | The address of the claims receiver |
sweep
Sweeps oustanding BERA claims for a receiver to their address
function sweep(address receiver) external;
Parameters
Name | Type | Description |
---|---|---|
receiver | address | The address of the claims receiver |