Skip to content

Commit

Permalink
Convert dydx APR to bignumber
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed May 17, 2024
1 parent e3d034f commit ede30b8
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: aprRequest['0']?.average_stakingapr
calculatedApr: bignumber(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 ede30b8

Please sign in to comment.