Skip to content

Commit

Permalink
Multi-step exchange - fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed May 30, 2024
1 parent 0860e52 commit 65cbc9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/market/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export async function getExchange(sellAmount, buyAmount, myBalance,
} else if (!isSell && amDir.gt(myBalance)) {
amDir.amount = myBalance.amount
if (isDir) {
limitPrice = Price(req, res)
limitPrice = Price(req, amDir)
warDir = tt('convert_assets_jsx.too_big_price')
}
} else if (remain) {
Expand Down

0 comments on commit 65cbc9e

Please sign in to comment.