From 11c3e17e38eee4633f64e877a7c40a6382bd8bf1 Mon Sep 17 00:00:00 2001 From: 0xh3rman <119309671+0xh3rman@users.noreply.github.com> Date: Thu, 23 Jan 2025 14:25:44 +0900 Subject: [PATCH 1/2] use getDefaultSlippage --- Services/SwapService/Sources/SwapService.swift | 2 +- core | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/SwapService/Sources/SwapService.swift b/Services/SwapService/Sources/SwapService.swift index d162d592..5e362aca 100644 --- a/Services/SwapService/Sources/SwapService.swift +++ b/Services/SwapService/Sources/SwapService.swift @@ -54,7 +54,7 @@ public final class SwapService { value: value, mode: .exactIn, options: GemSwapOptions( - slippage: .init(bps: swapConfig.defaultSlippageBps, mode: .exact), + slippage: getDefaultSlippage(chain: fromAsset.chain.rawValue), fee: getReferralFees(), preferredProviders: [] ) diff --git a/core b/core index 6b7a44c8..9128be8b 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 6b7a44c8d49be84b7909319fd740e8650afcdc5b +Subproject commit 9128be8badd65bbed8bb217f3995c64907e80fa1 From f442d8ee8b87ceb9aff90aa6669594786892c0dc Mon Sep 17 00:00:00 2001 From: 0xh3rman <119309671+0xh3rman@users.noreply.github.com> Date: Thu, 23 Jan 2025 20:00:11 +0900 Subject: [PATCH 2/2] Update core --- core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core b/core index 9128be8b..cb94fa25 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 9128be8badd65bbed8bb217f3995c64907e80fa1 +Subproject commit cb94fa250ab8d26e7215772136a896aa42fdab64