IInfraredBERAFeeReceivor
Functions
InfraredBERA
The address of the InfraredBERA.sol
contract
function InfraredBERA() external view returns (address);
infrared
The Infrared.sol
contract address
function infrared() external view returns (IInfrared);
shareholderFees
Accumulated protocol fees in contract to be claimed
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);
Returns
Name | Type | Description |
---|---|---|
amount | uint256 | The amount of BERA forwarded to InfraredBERA |
fees | uint256 | The total fees taken |
collect
Collects accumulated shareholder fees
Reverts if msg.sender is not InfraredBera.sol
contract
function collect() external returns (uint256 sharesMinted);
Returns
Name | Type | Description |
---|---|---|
sharesMinted | uint256 | The amount of iBERA shares minted and sent to the Infrared.sol |
initialize
Initializer function (replaces constructor)
function initialize(
address _gov,
address _keeper,
address ibera,
address _infrared
) external;
Parameters
Name | Type | Description |
---|---|---|
_gov | address | Address for admin / gov to upgrade |
_keeper | address | Address for keeper |
ibera | address | Address for InfraredBERA |
_infrared | address | Address for Infrared |
Events
Sweep
Emitted when accumulated rewards are swept to InfraredBERA
event Sweep(address indexed receiver, uint256 amount, uint256 fees);
Parameters
Name | Type | Description |
---|---|---|
receiver | address | The address receiving the swept BERA |
amount | uint256 | The amount of BERA swept |
fees | uint256 | The amount of fees taken |
Collect
Emitted when shareholder fees are collected
event Collect(address indexed receiver, uint256 amount, uint256 sharesMinted);
Parameters
Name | Type | Description |
---|---|---|
receiver | address | The address receiving the collected fees |
amount | uint256 | The amount of fees collected |
sharesMinted | uint256 | The amount of iBERA shares minted |