From 8b26753d702bbce563b76eb55e8a19295447ad68 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 11 Nov 2024 12:14:02 -0800 Subject: [PATCH] Hardcode `canBePartial` to false The swaps won't be partial with isEstimate set to true. We'll keep the code in place in case we turn that functionality back on. --- src/swap/defi/thorchain/common.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/swap/defi/thorchain/common.ts b/src/swap/defi/thorchain/common.ts index cea0fb5f..1f09ac44 100644 --- a/src/swap/defi/thorchain/common.ts +++ b/src/swap/defi/thorchain/common.ts @@ -263,7 +263,7 @@ interface CalcSwapParams { } interface CalcSwapResponse { - canBePartial: boolean + // canBePartial: boolean fromNativeAmount: string fromExchangeAmount: string maxFulfillmentSeconds?: number @@ -535,7 +535,7 @@ export function makeThorchainBasedPlugin( }) } const { - canBePartial, + // canBePartial, fromNativeAmount, maxFulfillmentSeconds, toNativeAmount, @@ -638,7 +638,7 @@ export function makeThorchainBasedPlugin( return { addTxidToOrderUri: true, - canBePartial, + canBePartial: false, // Partial quotes are disabled for now maxFulfillmentSeconds, request, makeTxParams, @@ -733,7 +733,7 @@ export function makeThorchainBasedPlugin( return { addTxidToOrderUri: true, - canBePartial, + canBePartial: false, // Partial quotes are disabled for now maxFulfillmentSeconds, request, spendInfo, @@ -913,7 +913,7 @@ const calcSwapFrom = async ({ : preMemo.replace(':0/', `:${toThorAmountWithSpread}/`) return { - canBePartial, + // canBePartial, fromNativeAmount, fromExchangeAmount, maxFulfillmentSeconds, @@ -1053,7 +1053,7 @@ const calcSwapTo = async ({ : preMemo.replace(':0/', `:${requestedToThorAmount}/`) return { - canBePartial, + // canBePartial, fromNativeAmount, fromExchangeAmount, toNativeAmount,