@bluefin-exchange/bluefin7k-aggregator-sdk
Version:
12 lines (11 loc) • 440 B
JavaScript
import { Transaction } from "@mysten/sui/transactions";
import { DCA_ORDER_MODULE_ID } from "./constants";
export async function cancelDcaOrder({ orderId, payCoinType, targetCoinType, }) {
const tx = new Transaction();
tx.moveCall({
target: `${DCA_ORDER_MODULE_ID}::cancel_dca_order`,
arguments: [tx.object(orderId), tx.object.clock()],
typeArguments: [payCoinType, targetCoinType],
});
return tx;
}