Skip to content

Commit

Permalink
πŸ› exactly: set reward asset price to 0 when undefined (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
itofarina authored Oct 25, 2023
1 parent be86a04 commit ede3bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adaptors/exactly/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const apy = async () =>
chain,
});
/** @type number */
const rewardUSD = rewardsPrices[reward.toLowerCase()];
const rewardUSD = rewardsPrices[reward.toLowerCase()] ?? 0;
const firstMaturity = configStart - (configStart % INTERVAL) + INTERVAL;
const maxMaturity = timestampNow - (timestampNow % INTERVAL) + INTERVAL + maxFuturePools[i] * INTERVAL;
const rewardMaturities = Array.from(
Expand Down

0 comments on commit ede3bf4

Please sign in to comment.