File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ async function getVaultStats() {
6464 try {
6565 const r = await fetchCallReadOnlyFunction ( {
6666 contractAddress : DEPLOYER ,
67- contractName : "flashstack-yield-vault-v4 " ,
67+ contractName : "flashstack-yield-vault-v5 " ,
6868 functionName : "get-stats" ,
6969 functionArgs : [ ] ,
7070 network,
@@ -166,7 +166,7 @@ async function executeCompound(loanMicro) {
166166 functionName : "flash-loan" ,
167167 functionArgs : [
168168 Cl . uint ( loanMicro ) ,
169- Cl . principal ( `${ DEPLOYER } .flashstack-yield-vault-v4 ` ) ,
169+ Cl . principal ( `${ DEPLOYER } .flashstack-yield-vault-v5 ` ) ,
170170 ] ,
171171 senderKey : pk ,
172172 network,
@@ -255,7 +255,7 @@ async function main() {
255255 console . log ( " FlashStack Yield Vault -- Compound Monitor" ) ;
256256 console . log ( "================================================" ) ;
257257 console . log ( ` Mode: ${ EXECUTE ? "LIVE EXECUTION" : "dry-run (monitoring only)" } ` ) ;
258- console . log ( ` Vault: ${ DEPLOYER } .flashstack-yield-vault-v4 ` ) ;
258+ console . log ( ` Vault: ${ DEPLOYER } .flashstack-yield-vault-v5 ` ) ;
259259 console . log ( ` Loan size: ${ LOAN_MICRO / 1e6 } STX per compound cycle` ) ;
260260 console . log ( ` Min profit: ${ MIN_PROFIT } microSTX (${ MIN_PROFIT / 1e6 } STX)` ) ;
261261 console . log ( ` Interval: ${ INTERVAL / 1000 } s` ) ;
Original file line number Diff line number Diff line change 11/**
2- * Seed flashstack-yield-vault-v4 with an initial STX deposit.
2+ * Seed flashstack-yield-vault-v5 with an initial STX deposit.
33 *
44 * Usage:
55 * DEPLOYER_MNEMONIC="..." node scripts/seed-yield-vault.mjs
@@ -17,7 +17,7 @@ const DEPOSIT_STX = parseInt(process.env.DEPOSIT_STX ?? "5");
1717const DEPOSIT_MICRO = DEPOSIT_STX * 1_000_000 ;
1818
1919const DEPLOYER = "SP20XD46NGAX05ZQZDKFYCCX49A3852BQABNP0VG5" ;
20- const VAULT = "flashstack-yield-vault-v4 " ;
20+ const VAULT = "flashstack-yield-vault-v5 " ;
2121const API = "https://api.hiro.so" ;
2222const EXPLORER = "https://explorer.hiro.so/txid" ;
2323
You can’t perform that action at this time.
0 commit comments