Skip to content

Commit

Permalink
scripts update
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Jan 5, 2024
1 parent 1ca7165 commit 4390dd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions scripts-v3/deployLimitOrders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function main(argv){
.requiredOption("-t --to <network-name>",`Target network to deploy order to. Any of [${supportedNetworks}]`)
.requiredOption("-s --sell-ratio <Sell Ratio>",`Limit Sell Order Ratio`)
.requiredOption("-b --buy-ratio <Buy Ratio>",`Limit Buy Order Ratio`)
.requiredOption("-v --vault <vault>",`Hexadecimal string representing the vault id.`)
.description([
"Deploy Limit Orders"
].join("\n"))
Expand All @@ -25,12 +26,10 @@ async function main(argv){
const toNetwork = cmdOptions.to
const sellRatio = cmdOptions.sellRatio
const buyRatio = cmdOptions.buyRatio

const vaultId = cmdOptions.vault

console.log(`\n>>>> Deploying limit orders to ${toNetwork.toUpperCase()}...`)

// const vaultId = randomUint256().toString()
const vaultId = "82212972147442832250651702525296904327619221408273464764340702831835315043991"


await deployLimitStrategy(toNetwork,vaultId,sellRatio,buyRatio)
Expand Down
6 changes: 3 additions & 3 deletions scripts-v3/deployStrategyNP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ async function main(argv){

const cmdOptions = new Command()
.requiredOption("-t --to <network-name>",`Target network to deploy order to. Any of [${supportedNetworks}]`)
.requiredOption("-v --vault <vault>",`Hexadecimal string representing the vault id.`)
.description([
"Deploy Strategy to target network"
].join("\n"))
.parse(argv)
.opts();

const toNetwork = cmdOptions.to
const toNetwork = cmdOptions.to
const vaultId = cmdOptions.vault

console.log(`\n>>>> Deploying strategy to ${toNetwork.toUpperCase()}...`)

const vaultId = randomUint256().toString()

await deployPilotBinomialStrategy(toNetwork,vaultId)

Expand Down

0 comments on commit 4390dd3

Please sign in to comment.