From 28a639f13d97eef11da9ef8f581d90b6c69e246c Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 9 Jun 2023 18:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AE=A1=E7=AE=97token?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC=EF=BC=8C=E5=B0=8F=E6=95=B0=E4=BD=8D=E6=95=B0?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ead2a0f..5c5e1ca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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); }