For the complete documentation index, see llms.txt. This page is also available as Markdown.

Collect Rewards

Claim trading fees and pool rewards from liquidity positions.

Overview

Positions earn two types of rewards:

  • Trading Fees: Earned from swaps in your price range

  • Pool Rewards: Additional incentive tokens from the protocol

Quick Start

// Collect only trading fees
const tx = await sdk.Position.collectFeeTransactionPayload({
  pool_id: '0x...',
  pos_id: '0x...',
  coinTypeA: '0x2::sui::SUI',
  coinTypeB: '0x...::usdc::USDC'
})

// Collect fees + rewards
const tx = await sdk.Rewarder.collectRewarderTransactionPayload({
  pool_id: '0x...',
  pos_id: '0x...',
  coinTypeA: '0x2::sui::SUI',
  coinTypeB: '0x...::usdc::USDC',
  rewarder_coin_types: ['0x...::ferra::FERRA'],
  collect_fee: true
})

Check Claimable Rewards

Trading Fees Only

All Rewards (Fees + Pool Rewards)

Collect Trading Fees

Collect Pool Rewards

Collect additional reward tokens (e.g., FERRA tokens):

Batch Collect

Collect from multiple positions efficiently:

Pool Rewards Info

Check pool reward emissions:

Complete Example

Important Notes

  • Trading fees accumulate from swaps in your price range

  • Pool rewards are additional incentives (e.g., FERRA tokens)

  • Use collect_fee: true to collect both in one transaction

  • Rewards are sent directly to sender address

  • Some operations auto-collect rewards (add/remove liquidity)

  • Batch collection saves gas for multiple positions

Last updated