Skip to content

Commit

Permalink
ausd pools (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylee08 authored Nov 22, 2024
1 parent b8eb55f commit 0beab3b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
4 changes: 2 additions & 2 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@mysten/deepbook-v3": "^0.12.10",
"@mysten/sui": "^1.14.4",
"@mysten/deepbook-v3": "^0.12.13",
"@mysten/sui": "^1.15.0",
"dotenv": "^16.4.5",
"esbuild": "^0.20.2",
"ts-node": "^10.9.2",
Expand Down
22 changes: 11 additions & 11 deletions scripts/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions scripts/transactions/createPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,25 @@ import { getFullnodeUrl, SuiClient } from "@mysten/sui/client";
const tx = new Transaction();

dbClient.deepBookAdmin.createPoolAdmin({
baseCoinKey: "TYPUS",
quoteCoinKey: "SUI",
tickSize: 0.00001,
baseCoinKey: "SUI",
quoteCoinKey: "AUSD",
tickSize: 0.0001,
lotSize: 0.1,
minSize: 1,
whitelisted: false,
stablePool: false,
})(tx);

dbClient.deepBookAdmin.createPoolAdmin({
baseCoinKey: "AUSD",
quoteCoinKey: "USDC",
tickSize: 0.00001,
lotSize: 0.1,
minSize: 1,
whitelisted: false,
stablePool: true,
})(tx);

let res = await prepareMultisigTx(tx, env, adminCapOwner[env]);

console.dir(res, { depth: null });
Expand Down

0 comments on commit 0beab3b

Please sign in to comment.