From 9205e75c8ff0e6eb32575e00549d8f8d43f2cec3 Mon Sep 17 00:00:00 2001 From: jesse snyder Date: Wed, 12 Feb 2025 16:41:03 -0600 Subject: [PATCH] fix: dont explicitly wrap eth (#62) * dont explicitly wrap eth * clarify comment * comments lol --- .../features/EvmWallet/services/SwapServices/SwapService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/flame-defi/app/features/EvmWallet/services/SwapServices/SwapService.ts b/apps/flame-defi/app/features/EvmWallet/services/SwapServices/SwapService.ts index 79f1f10..db2e83b 100644 --- a/apps/flame-defi/app/features/EvmWallet/services/SwapServices/SwapService.ts +++ b/apps/flame-defi/app/features/EvmWallet/services/SwapServices/SwapService.ts @@ -411,9 +411,9 @@ export class SwapRouter { const calls: string[] = []; let value = 0n; - // add wrapETH call if needed if (isNativeIn) { - calls.push(this.encodeWrapETHCall(trade.inputAmount.raw.toString())); + // if isNativeIn then we need to send TIA to the contract, so set the value accordingly + // NOTE - we don't need to explicitly wrap ETH, the router's callback will do it for us value = BigInt(trade.inputAmount.raw.toString()); }