Skip to main content

getClaimAmount

Description:​

Calculates the amount of assets that the user can claim from the reward splitter. The method response is divided into 2 parts, in “active” you get data on the current reward splitter, in “inactive” you get data on the ones you used before.

Arguments:​

NameTypeRequiredDescription
userAddressstringYesThe address of the user making the request
vaultAddressstringYesThe address of the vault
rewardSplitterAddressstringYesThe address of the reward splitter

Returns:​

type Item = {
assets: bigint
address: string
}

type Output = {
active: Item
inactive: Array<Item>
}

Example:​

const claimAmount = await sdk.rewardSplitter.getClaimAmount({
vaultAddress: '0x...',
userAddress: '0x...',
rewardSplitterAddress: '0x...',
})