InfraredBERAClaimor

Git Source

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

NameTypeDescription
_govaddressAddress of the initial admin / gov
_keeperaddressAddress of the initial keeper
_iberaaddressAddress 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

NameTypeDescription
receiveraddressThe address of the claims receiver

sweep

Sweeps oustanding BERA claims for a receiver to their address

function sweep(address receiver) external;

Parameters

NameTypeDescription
receiveraddressThe address of the claims receiver