• Fetches the rewards and multipliers for a given staker's NFT.


    • staking: NectarStaking

      The NectarStaking instance used for fetching rewards and multipliers.

    • args: FetchRewardsArgs

      Arguments for fetching rewards for a staker's NFT.

    Returns Promise<{
        multipliers: number;
        rewards: number;

    A promise that resolves to an object containing the rewards and multipliers for the NFT.


    const staking = new NectarStaking(...);
    const staker = ... // Get the staker instance
    const nft = ... // Get the staked NFT instance
    const rewards = await fetchRewards(staking, { staker, nft });

Generated using TypeDoc