From 967ab78c033c6bcfd39ac057605626b7d6bf209c Mon Sep 17 00:00:00 2001 From: Calvin Koepke Date: Fri, 14 Jun 2024 13:32:44 -0600 Subject: [PATCH] fix: order route demo --- .../Actions/modules/OrderRouting.tsx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/packages/demo/src/components/Actions/modules/OrderRouting.tsx b/packages/demo/src/components/Actions/modules/OrderRouting.tsx index 7553f56c..20f71be5 100644 --- a/packages/demo/src/components/Actions/modules/OrderRouting.tsx +++ b/packages/demo/src/components/Actions/modules/OrderRouting.tsx @@ -1,7 +1,6 @@ import { AssetAmount } from "@sundaeswap/asset"; import { EContractVersion, - EDatumType, ESwapType, IOrderRouteSwapArgs, QueryProviderSundaeSwap, @@ -75,20 +74,13 @@ export const OrderRouting: FC = ({ setCBOR, setFees, submit }) => { console.log(swapAPool, swapBPool); const args: IOrderRouteSwapArgs = { + ownerAddress: activeWalletAddr, swapA: { swapType: { type: ESwapType.MARKET, slippage: 0.03, }, pool: direction === "forward" ? swapAPool : swapBPool, - orderAddresses: { - DestinationAddress: { - address: activeWalletAddr, - datum: { - type: EDatumType.NONE, - }, - }, - }, suppliedAsset: new AssetAmount( 25000000n, direction === "forward" ? swapAPool.assetB : swapBPool.assetB @@ -100,14 +92,6 @@ export const OrderRouting: FC = ({ setCBOR, setFees, submit }) => { slippage: 0.03, }, pool: direction === "forward" ? swapBPool : swapAPool, - orderAddresses: { - DestinationAddress: { - address: activeWalletAddr, - datum: { - type: EDatumType.NONE, - }, - }, - }, }, };