Skip to content

Commit

Permalink
fix: order route demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Jun 14, 2024
1 parent c944d85 commit 967ab78
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions packages/demo/src/components/Actions/modules/OrderRouting.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { AssetAmount } from "@sundaeswap/asset";
import {
EContractVersion,
EDatumType,
ESwapType,
IOrderRouteSwapArgs,
QueryProviderSundaeSwap,
Expand Down Expand Up @@ -75,20 +74,13 @@ export const OrderRouting: FC<IActionArgs> = ({ 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
Expand All @@ -100,14 +92,6 @@ export const OrderRouting: FC<IActionArgs> = ({ setCBOR, setFees, submit }) => {
slippage: 0.03,
},
pool: direction === "forward" ? swapBPool : swapAPool,
orderAddresses: {
DestinationAddress: {
address: activeWalletAddr,
datum: {
type: EDatumType.NONE,
},
},
},
},
};

Expand Down

0 comments on commit 967ab78

Please sign in to comment.