Skip to content

Commit b0cc649

Browse files
mattgloryclaude
andcommitted
Point seed and monitor scripts at yield-vault-v5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a220e2e commit b0cc649

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/monitor-vault-compound.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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`);

scripts/seed-yield-vault.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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");
1717
const DEPOSIT_MICRO = DEPOSIT_STX * 1_000_000;
1818

1919
const DEPLOYER = "SP20XD46NGAX05ZQZDKFYCCX49A3852BQABNP0VG5";
20-
const VAULT = "flashstack-yield-vault-v4";
20+
const VAULT = "flashstack-yield-vault-v5";
2121
const API = "https://api.hiro.so";
2222
const EXPLORER = "https://explorer.hiro.so/txid";
2323

0 commit comments

Comments
 (0)