diff --git a/package.json b/package.json index 10f36025..4a4b7aa1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@curvefi/api", - "version": "2.65.26", + "version": "2.65.27", "description": "JavaScript library for curve.fi", "main": "lib/index.js", "author": "Macket", diff --git a/src/interfaces.ts b/src/interfaces.ts index 4c9730be..8dda6f1f 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -131,6 +131,7 @@ export interface IPoolDataFromApi { implementationAddress: string, coins: ICoinFromPoolDataApi[], gaugeRewards: IRewardFromApi[], + gaugeExtraRewards?: IRewardFromApi[], usdTotal: number, totalSupply: number, amplificationCoefficient: string, diff --git a/src/utils.ts b/src/utils.ts index 2de4ec47..371ed72f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -414,7 +414,7 @@ export const _getRewardsFromApi = async (): Promise> => for (const extendedPoolData of allTypesExtendedPoolData) { for (const pool of extendedPoolData.poolData) { if (pool.gaugeAddress) { - rewardsDict[pool.gaugeAddress.toLowerCase()] = (pool.gaugeRewards ?? []) + rewardsDict[pool.gaugeAddress.toLowerCase()] = (pool.gaugeRewards ?? pool.gaugeExtraRewards ?? []) .filter((r) => curve.chainId === 1 || r.tokenAddress.toLowerCase() !== curve.constants.COINS.crv); } }