Skip to content

Commit

Permalink
Merge pull request #2178 from KomodoPlatform/warning_overflow
Browse files Browse the repository at this point in the history
limit warning text values to 8dp
  • Loading branch information
syl authored Dec 12, 2022
2 parents 6e7b678 + d2dd4bd commit c998372
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions atomic_defi_design/Dex/Constants/General.qml
Original file line number Diff line number Diff line change
Expand Up @@ -571,18 +571,15 @@ QtObject {
}

function getMinTradeAmount() {
/*if (API.app.trading_pg.market_mode == MarketMode.Buy) {
return API.app.trading_pg.orderbook.rel_min_taker_vol
}*/
return API.app.trading_pg.min_trade_vol
return formatDouble(API.app.trading_pg.min_trade_vol, 8, false).toString()
}

function getReversedMinTradeAmount() {
if (API.app.trading_pg.market_mode == MarketMode.Buy) {
return API.app.trading_pg.min_trade_vol
}
return API.app.trading_pg.orderbook.rel_min_taker_vol
if (API.app.trading_pg.market_mode == MarketMode.Buy) {
return getMinTradeAmount()
}
return formatDouble(API.app.trading_pg.orderbook.rel_min_taker_vol, 8, false).toString()
}

function hasEnoughFunds(sell, base, rel, price, volume) {
if(sell) {
Expand Down

0 comments on commit c998372

Please sign in to comment.