getYieldRewards
Gets accrued rewards for a wallet account in an Earn vault. Returns an empty array when the wallet has no accrued rewards in this vault. A vault can have more than one concurrent reward campaign paying out in different tokens, so each entry carries its own token identity (address, symbol, decimals) alongside the amount.Usage
Parameters
Returns
Promise<YieldVaultReward[]> - The wallet’s accrued rewards in the vault, one entry per reward token/campaign.
Examples
Sum rewards by token
React
useGetYieldRewards is a query hook that stays disabled until walletAccount is defined.
Related
claimYieldRewards- Claim these rewardsgetYieldPosition- The wallet’s share balance and asset value