IInfraredV1_5
Inherits: IInfraredV1_4
Interface for Infrared V1.5 upgrade. Adds external berachain user BGT reward claiming, minting iBGT to user.
Defines external functions and events for V1.5. Inherits from IInfraredV1_4.
Functions
claimExternalVaultRewards
Claims all the BGT rewards for the user associated with the berachain vault given staking token.
function claimExternalVaultRewards(address _asset, address user) external;
Parameters
Name | Type | Description |
---|---|---|
_asset | address | address The address of the staking asset that the vault is for. |
user | address | address The address of the user to get rewards for and mint ibgt to |
externalVaultRewards
View expected iBGT rewards to claim for the user associated with the berachain vault given staking token.
function externalVaultRewards(address _asset, address user)
external
view
returns (uint256 iBgtAmount);
Parameters
Name | Type | Description |
---|---|---|
_asset | address | address The address of the staking asset that the vault is for. |
user | address | address The address of the user to get rewards for and mint ibgt to |
Returns
Name | Type | Description |
---|---|---|
iBgtAmount | uint256 | amount of iBGT to be minted to user |
Events
ExternalVaultClaimed
Emitted when claimExternalVaultRewards is called.
event ExternalVaultClaimed(
address indexed user,
address indexed stakingAsset,
address indexed berachainRewardVault,
uint256 bgtAmt
);
Parameters
Name | Type | Description |
---|---|---|
user | address | Address to claim on behalf of. |
stakingAsset | address | staking asset of berachain reward vault to claim for. |
berachainRewardVault | address | vault address |
bgtAmt | uint256 | Amount of BGT claimed. |