From 025132ac5c106d72daf0531f21116d683926a0c1 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Sun, 16 Jul 2023 16:35:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=BD=E5=BA=93=E6=A8=A1?= =?UTF-8?q?=E5=BC=8Feth=E7=9A=84=E4=BB=B7=E6=A0=BC=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/alchemyout.controller.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controllers/alchemyout.controller.ts b/src/controllers/alchemyout.controller.ts index 267c148..61f22fd 100644 --- a/src/controllers/alchemyout.controller.ts +++ b/src/controllers/alchemyout.controller.ts @@ -112,11 +112,15 @@ class AlchemyOutController extends BaseController { let gas = await new GasSvr().estimateGas({ crypto, network: 'ARBITRUM' }) gas = gas * 0.0000000001 let price = await new PriceSvr().fetchPrice({ crypto: 'ETH', network: 'ARBITRUM', fiat: 'USD' }) + let priceToSend = '0.1' + if (crypto.toLowerCase() === 'eth') { + priceToSend = price + '' + } let networkFee = gas * parseFloat(price) let result = { direct: 1, data: { - price: '0.1', + price: priceToSend, networkList: [ { network: 'ARBITRUM',