IInfraredBERAFeeReceivor
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
Name | Type | Description |
---|---|---|
amount | uint256 | THe amount of BERA forwarded to InfraredBERA on next sweep |
fees | uint256 | The 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
Name | Type | Description |
---|---|---|
sharesMinted | uint256 | The 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);