IInfraredBERAFeeReceivor

Git Source

Functions

InfraredBERA

The address of InfraredBERA

function InfraredBERA() external view returns (address);

shareholderFees

Accumulated protocol fees in contract to be claimed by governor

function shareholderFees() external view returns (uint256);

distribution

Amount of BERA swept to InfraredBERA and fees taken for protool on next call to sweep

function distribution() external view returns (uint256 amount, uint256 fees);

Returns

NameTypeDescription
amountuint256THe amount of BERA forwarded to InfraredBERA on next sweep
feesuint256The protocol fees taken on next sweep

sweep

Sweeps accumulated coinbase priority fees + MEV to InfraredBERA to autocompound principal

function sweep() external returns (uint256 amount, uint256 fees);

collect

Collects accumulated shareholder fees

Reverts if msg.sender is not iBERA contract

function collect() external returns (uint256 sharesMinted);

Returns

NameTypeDescription
sharesMinteduint256The amount of iBERA shares minted and sent to infrared

Events

Sweep

event Sweep(address indexed receiver, uint256 amount, uint256 fees);

Collect

event Collect(address indexed receiver, uint256 amount, uint256 sharesMinted);