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
Pool Reward Info
Daily Emissions
Total User Rewards
Complete Example
Response Types
Important Notes
Last updated