Skip to content

Commit

Permalink
Convert dydx APR to float
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed May 17, 2024
1 parent ede30b8 commit 635e863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chains/chainMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function ChainMonitor() {
if (path === 'dydx') {
const aprRequest = await got.get("https://api.lacertalabs.xyz/data/stakingapr", gotOpts).json();
return {
calculatedApr: bignumber(aprRequest['0']?.average_stakingapr)
calculatedApr: parseFloat(aprRequest['0']?.average_stakingapr)
}
} else if (path === 'sifchain') {
const aprRequest = await got.get("https://data.sifchain.finance/beta/validator/stakingRewards", gotOpts).json();
Expand Down

0 comments on commit 635e863

Please sign in to comment.