collect Rewards

When you provide liquidity within a valid price range, rewards are distributed every second for transactions that occur within this range. The rewards are based on the proportional share of effective liquidity from all positions in the current range. To harvest rewards separately, please follow the steps outlined below.

Signature

async collectReward(options: Pool.CollectRewardOptions): Promise

Params

  export interface CollectRewardOptions
    extends Pick<Pool.MintParams, 'pool' | 'txb' | 'address' | 'deadline'> {
    /**
     * Position NFT ID
     */
    nft: string;
    rewardAmounts: (string | number)[];
  }

Examples

Get Pool Reward Info

const pool = await turbosSdk.pool.getPool(poolId);
console.log(pool.reward_infos);

Response

Get Unclaimed Rewards

Reponse

Collect Rewards

Last updated