Get Pool Position Rewards
Check reward amounts for liquidity positions.
Quick Start
// Get rewards for single position
const pool = await sdk.Pool.getPool(poolId)
const rewards = await sdk.Rewarder.fetchPositionRewarders(pool, positionId)
rewards.forEach(reward => {
console.log({
token: reward.coin_address,
amount: reward.amount_owed.toString()
})
})Check Pool Rewards
// Get position with full reward info
const position = await sdk.Position.getPositionById(positionId, true)
// Access reward amounts
if (position.rewards) {
position.rewards.forEach(reward => {
console.log({
token: reward.coin_type,
amount: reward.amount_owed
})
})
}Batch Check Rewards
Check rewards for multiple positions:
Pool Reward Info
Daily Emissions
Total User Rewards
Complete Example
Response Types
Important Notes
Rewards accumulate in real-time based on liquidity and time
Trading fees come from swaps in your price range
Pool rewards are additional incentives from protocol
Use
calculateRewards: truewhen getting position to include rewardsBatch methods are more efficient for multiple positions
Last updated