Skip to content

Commit

Permalink
Merge pull request #34 from MystenLabs/deepbook
Browse files Browse the repository at this point in the history
fixing the fees for wbtc pools
  • Loading branch information
healthydeve authored Oct 24, 2023
2 parents 971b3f4 + 50abb59 commit c12ae5d
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions scripts/transactions/deepbook/create_pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,35 +85,35 @@ const setup = async (network: Network) => {
// "0xbb210191c48a3acbe8c306ef836037c7dc0e5920c7337d569755b52e38120554"
// ),
// ]);
const [coin] = txb.splitCoins(txb.gas, [txb.pure(CREATION_FEE)]);

// Create SUI/ USDC
txb.moveCall({
typeArguments: [SUI, WUSDCETH],
target: `${PACKAGE_ID}::${MODULE_CLOB}::create_customized_pool`,
arguments: [
txb.pure(100),
txb.pure(100000000),
txb.pure(DEFAULT_TAKER_FEE),
txb.pure(DEFAULT_MAKER_FEE),
coin,
],
});

const [coin2] = txb.splitCoins(txb.gas, [txb.pure(CREATION_FEE)]);

// Create USDT / USDC
txb.moveCall({
typeArguments: [USDT, WUSDCETH],
target: `${PACKAGE_ID}::${MODULE_CLOB}::create_customized_pool`,
arguments: [
txb.pure(100000),
txb.pure(100000),
txb.pure(DEFAULT_STABLE_TAKER_FEE),
txb.pure(DEFAULT_STABLE_MAKER_FEE),
coin2,
],
});
// const [coin] = txb.splitCoins(txb.gas, [txb.pure(CREATION_FEE)]);

// // Create SUI/ USDC
// txb.moveCall({
// typeArguments: [SUI, WUSDCETH],
// target: `${PACKAGE_ID}::${MODULE_CLOB}::create_customized_pool`,
// arguments: [
// txb.pure(100),
// txb.pure(100000000),
// txb.pure(DEFAULT_TAKER_FEE),
// txb.pure(DEFAULT_MAKER_FEE),
// coin,
// ],
// });

// const [coin2] = txb.splitCoins(txb.gas, [txb.pure(CREATION_FEE)]);

// // Create USDT / USDC
// txb.moveCall({
// typeArguments: [USDT, WUSDCETH],
// target: `${PACKAGE_ID}::${MODULE_CLOB}::create_customized_pool`,
// arguments: [
// txb.pure(100000),
// txb.pure(100000),
// txb.pure(DEFAULT_STABLE_TAKER_FEE),
// txb.pure(DEFAULT_STABLE_MAKER_FEE),
// coin2,
// ],
// });

const [coin3] = txb.splitCoins(txb.gas, [txb.pure(CREATION_FEE)]);

Expand All @@ -124,8 +124,8 @@ const setup = async (network: Network) => {
arguments: [
txb.pure(1000000),
txb.pure(10000),
txb.pure(DEFAULT_STABLE_TAKER_FEE),
txb.pure(DEFAULT_STABLE_MAKER_FEE),
txb.pure(DEFAULT_TAKER_FEE),
txb.pure(DEFAULT_MAKER_FEE),
coin3,
],
});
Expand All @@ -138,8 +138,8 @@ const setup = async (network: Network) => {
arguments: [
txb.pure(1000000),
txb.pure(1000),
txb.pure(DEFAULT_STABLE_TAKER_FEE),
txb.pure(DEFAULT_STABLE_MAKER_FEE),
txb.pure(DEFAULT_TAKER_FEE),
txb.pure(DEFAULT_MAKER_FEE),
coin4,
],
});
Expand Down

0 comments on commit c12ae5d

Please sign in to comment.