修正计算token价格,小数位数不正确的bug
This commit is contained in:
parent
c85848ceec
commit
28a639f13d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user