Skip to content

Commit

Permalink
deployment md
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Jan 8, 2024
1 parent d68d4cf commit 0fb2455
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
41 changes: 24 additions & 17 deletions deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,40 @@
# Public key of the bot wallet.
BOT_ADDRESS="0xf098172786a87FA7426eA811Ff25D31D599f766D"
```
- Update dependencies
- Remove current orders
```sh
npx ts-node scripts-v3/removeOrder.ts --from polygon --tx-hash 0x6c9554841a0408f322195471d20bbf3e4966480c199203596946ac0f6b2cffb6
```
```sh
npx ts-node scripts-v3/removeOrder.ts --from polygon --tx-hash 0x264eaad41d60b2e3567969f633967d7c9534f429481d1d350cbfef3f1e893458
```
```sh
npx ts-node scripts-v3/removeOrder.ts --from polygon --tx-hash 0x8d2dc6e32cc201d983c83e24328c610feccfe51674743822fe721f71aa1f4bf2
```
```sh
npx ts-node scripts-v3/removeOrder.ts --from polygon --tx-hash 0x470130cf72761778fbd0951364cb4c02396fccd514021d6024ab93ba3e1a2fbf
```
npm install
- Withdraw from vaults
```sh
npx ts-node scripts-v3/removeOrder.ts --from polygon --token NHT --vault 0xd6e7c8f779cce6c489b1deffa0d3024e4e2257d8fb0c45a945ca4b00e838e8f8 --amount {amount}
```
- Deploy Updated contracts
```sh
ts-node scripts-v3/deployContracts.ts --from mumbai --to polygon
```
- Deploy Binomial Strategies Strats
```sh
ts-node scripts-v3/deployStrategyNP.ts --to polygon
npx ts-node scripts-v3/removeOrder.ts --from polygon --token USDT --vault 0xd6e7c8f779cce6c489b1deffa0d3024e4e2257d8fb0c45a945ca4b00e838e8f8 --amount {amount}
```
- Fund the strategies.
```sh
ts-node scripts-v3/deposit.ts --to polygon --token NHT --vault {vault} --amount 500000
npx ts-node scripts-v3/removeOrder.ts --from polygon --token USDT --vault 0xb5c2e4ab8e4e8e139181dcd68c106f1601b8d3dc584765da2e8764c28719fe97 --amount {amount}
```
```sh
ts-node scripts-v3/deposit.ts --to polygon --token USDT --vault {vault} --amount 300
npx ts-node scripts-v3/removeOrder.ts --from polygon --token USDT --vault 0xb5c2e4ab8e4e8e139181dcd68c106f1601b8d3dc584765da2e8764c28719fe97 --amount {amount}
```
- Get the Bot and sg Up
- Deploy Limit Orders
- Deploy Vol strat
```sh
ts-node scripts-v3/deployLimitOrders.ts --to polygon -s 50e13 -b 2000e18
npx ts-node scripts-v3/deployStrategyNP.ts --to polygon --vault 12345
```
- Fund the strategies.
- Deposit Balance
```sh
ts-node scripts-v3/deposit.ts --to polygon --token NHT --vault {vault} --amount 1500000
npx ts-node scripts-v3/deposit.ts --to polygon --token NHT --amount <NHT-Amount> --vault <hex-string>
```
```sh
ts-node scripts-v3/deposit.ts --to polygon --token USDT --vault {vault} --amount 550
npx ts-node scripts-v3/deposit.ts --to polygon --token USDT --amount <USDT-Amount> --vault <hex-string>
```
2 changes: 1 addition & 1 deletion test/4SushiV2StratBinomial.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import "test/lib/OrderBookNPE2Real.sol";

uint256 constant CONTEXT_VAULT_IO_ROWS = 5;

uint256 constant FORK_BLOCK_NUMBER = 50715909;
uint256 constant FORK_BLOCK_NUMBER = 52085449;
uint256 constant VAULT_ID = uint256(keccak256("vault"));

address constant TEST_ORDER_OWNER = address(0x84723849238);
Expand Down

0 comments on commit 0fb2455

Please sign in to comment.