Closed thanhnguyennguyen closed 5 years ago
BasePrice should depend on tokenDecimal of baseToken instead of hard code 10^18 common/constants.go:34
var BasePrice = big.NewInt(1000000000000000000) // 1
quoteQuantity = price * amount / 10^(baseDecimal)
price in smallest unit of quoteToken amount in smallest unit of baseToken
refer tomochain/tomox-sdk-ui/issues/107
fixed in #646
BasePrice should depend on tokenDecimal of baseToken instead of hard code 10^18 common/constants.go:34