From 69f6033c9bca03395ab071db9e4a2bf22cefc707 Mon Sep 17 00:00:00 2001 From: Apotheosis <97164662+0xApotheosis@users.noreply.github.com> Date: Fri, 11 Aug 2023 16:02:36 +1000 Subject: [PATCH] fix: swap string to number --- src/lib/swapper/swappers/CowSwapper/endpoints.ts | 2 +- src/lib/swapper/swappers/CowSwapper/utils/helpers/helpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/swapper/swappers/CowSwapper/endpoints.ts b/src/lib/swapper/swappers/CowSwapper/endpoints.ts index 49b43eeb35d..d2b45663e69 100644 --- a/src/lib/swapper/swappers/CowSwapper/endpoints.ts +++ b/src/lib/swapper/swappers/CowSwapper/endpoints.ts @@ -102,7 +102,7 @@ export const cowApi: Swapper2Api = { // from, sellTokenBalance: ERC20_TOKEN_BALANCE, buyTokenBalance: ERC20_TOKEN_BALANCE, - quoteId: id.toString(), + quoteId: id, } const adapter = assertGetEvmChainAdapter(sellAsset.chainId) diff --git a/src/lib/swapper/swappers/CowSwapper/utils/helpers/helpers.ts b/src/lib/swapper/swappers/CowSwapper/utils/helpers/helpers.ts index 5b7d37648ed..854282ab1e3 100644 --- a/src/lib/swapper/swappers/CowSwapper/utils/helpers/helpers.ts +++ b/src/lib/swapper/swappers/CowSwapper/utils/helpers/helpers.ts @@ -48,7 +48,7 @@ export type CowSwapOrder = { receiver: string sellTokenBalance: string buyTokenBalance: string - quoteId: string + quoteId: number } export type CowSwapQuoteApiInputBase = {