Skip to main content

getHarvestParams

Description:

Necessary to update the vault state

Returns:

type Output = {
canHarvest: boolean
params: {
reward: string
proof: Array<string>
rewardsRoot: string
unlockedMevReward: string
}
}
NameDescription
canHarvestDefines whether the vault can harvest new rewards
rewardThe vault reward used to submit state update proof
proofThe vault rewards root proof used to submit state update proof
rewardsRootThe vault rewards root
unlockedMevRewardThe vault unlocked MEV reward used to submit state update proof

Example:

await sdk.vault.getHarvestParams({ vaultAddress: '0x...' })