Skip to content

IBerachainRewardsVaultFactory

0x2B6e40f65D82A0cB98795bC7587a71bfa49fBB2B | ABI JSON

Functions

createRewardsVault

Creates a new rewards vault for the given staking token.

solidity
function createRewardsVault(address stakingToken) external returns (address);

Parameters

NameTypeDescription
stakingTokenaddressThe address of the staking token.

Returns

NameTypeDescription
<none>addressThe address of the new vault.

getVault

Gets the vault for the given staking token.

solidity
function getVault(address stakingToken) external view returns (address);

Parameters

NameTypeDescription
stakingTokenaddressThe address of the staking token.

Returns

NameTypeDescription
<none>addressThe address of the vault.

allVaultsLength

Gets the number of vaults that have been created.

solidity
function allVaultsLength() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256The number of vaults.

predictRewardsVaultAddress

Predicts the address of the rewards vault for the given staking token.

solidity
function predictRewardsVaultAddress(address stakingToken) external view returns (address);

Parameters

NameTypeDescription
stakingTokenaddressThe address of the staking token.

Returns

NameTypeDescription
<none>addressThe address of the rewards vault.

Events

VaultCreated

Emitted when a new vault is created.

solidity
event VaultCreated(address indexed stakingToken, address indexed vault);

Parameters

NameTypeDescription
stakingTokenaddressThe address of the staking token.
vaultaddressThe address of the vault.