IInfraredV1_5

Git Source

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

NameTypeDescription
_assetaddressaddress The address of the staking asset that the vault is for.
useraddressaddress 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

NameTypeDescription
_assetaddressaddress The address of the staking asset that the vault is for.
useraddressaddress The address of the user to get rewards for and mint ibgt to

Returns

NameTypeDescription
iBgtAmountuint256amount 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

NameTypeDescription
useraddressAddress to claim on behalf of.
stakingAssetaddressstaking asset of berachain reward vault to claim for.
berachainRewardVaultaddressvault address
bgtAmtuint256Amount of BGT claimed.