Skip to content

Commit 562217b

Browse files
Merge pull request #727 from ArtBlocks/fix-usd
fixing usd price
2 parents 14dc355 + 1a6b356 commit 562217b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Classes/APIBots/OpenSeaSaleBot.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ export class OpenSeaSaleBot {
137137
const price = parseFloat(parseFloat(priceInEth).toFixed(4))
138138

139139
const usdPrice = parseFloat(
140-
parseFloat(payload.payment_token.usd_price).toFixed(2)
140+
(
141+
parseFloat(payload.payment_token.usd_price) * parseFloat(priceInEth)
142+
).toFixed(2)
141143
)
142144
const currency = payload.payment_token.symbol
143145
const seller = payload.maker.address

0 commit comments

Comments
 (0)