修正计算token价格,小数位数不正确的bug

This commit is contained in:
zhl 2023-06-09 18:51:58 +08:00
parent c85848ceec
commit 28a639f13d

View File

@ -323,7 +323,7 @@ export default class JCWallet {
: "ETH";
let env = this.env;
let fiatPrice = await new PaySvr().queryTokenPrice(network, tokenName, env);
let priceFloat = parseFloat(fiatPrice) * 100;
let priceFloat = parseFloat(fiatPrice);
return priceFloat * parseFloat(amount);
}