Skip to content

Commit

Permalink
fix: the last price is actually the amount in the api, fix this
Browse files Browse the repository at this point in the history
  • Loading branch information
wouthoekstra committed Mar 27, 2024
1 parent e0a9c6d commit b4727f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/icpswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Icpswap extends Driver {

return Object.keys(markets).flatMap((market) => {
const ticker = markets[market];
const close = parseToFloat(ticker.last_price);
const close = 1 / parseToFloat(ticker.last_price);
const baseVolume = parseToFloat(ticker.base_volume_24H);
const quoteVolume = parseToFloat(ticker.target_volume_24H);

Expand Down

0 comments on commit b4727f2

Please sign in to comment.