From 508574b816db45fd0224551d2f7e619fbcd6ca13 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Tue, 18 Jul 2023 12:57:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E6=B8=A0=E9=81=93=E6=96=B9=E8=A6=81?= =?UTF-8?q?=E6=B1=82=EF=BC=8CnetworkFee=E6=8C=89=E7=9B=AE=E6=A0=87crypto?= =?UTF-8?q?=E6=8D=A2=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/alchemyout.controller.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/alchemyout.controller.ts b/src/controllers/alchemyout.controller.ts index 61f22fd..61e8e0c 100644 --- a/src/controllers/alchemyout.controller.ts +++ b/src/controllers/alchemyout.controller.ts @@ -116,7 +116,12 @@ class AlchemyOutController extends BaseController { if (crypto.toLowerCase() === 'eth') { priceToSend = price + '' } - let networkFee = gas * parseFloat(price) + // 20230717 沟通, gas费需要换算成目标货币 + let networkFee = gas + if (crypto.toLowerCase() === 'ceg') { + networkFee = networkFee * parseFloat(price) * 10 + } + let result = { direct: 1, data: {