Skip to content

Commit dc2170a

Browse files
mattgloryclaude
andcommitted
Fix CI: remove stale snp-receiver references from Clarinet.toml and tests
snp-flashstack-receiver and snp-flashstack-receiver-v3 were deleted in the cleanup commit but remained referenced in Clarinet.toml and the edge-cases test suite, causing CI to fail with contract-not-found errors. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0058478 commit dc2170a

2 files changed

Lines changed: 0 additions & 76 deletions

File tree

Clarinet.toml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,3 @@ strict = false
7070
trusted_sender = false
7171
trusted_caller = false
7272
callee_filter = false
73-
74-
75-
[contracts.snp-flashstack-receiver]
76-
path = "contracts/snp-flashstack-receiver.clar"
77-
clarity_version = 2
78-
epoch = 2.5
79-
depends_on = ["flash-receiver-trait", "sbtc-token", "flashstack-core"]
80-
81-
[contracts.snp-flashstack-receiver-v3]
82-
path = "contracts/snp-flashstack-receiver-v3.clar"
83-
clarity_version = 2
84-
epoch = 2.5
85-
depends_on = ["flash-receiver-trait", "sbtc-token", "flashstack-core"]

tests/flashstack-edge-cases.test.ts

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -516,67 +516,4 @@ describe("FlashStack - Edge Cases & Integration", () => {
516516
});
517517
});
518518

519-
describe("SNP Receiver v3 Read-Only Functions", () => {
520-
it("calculate-leverage-benefit returns correct structure", () => {
521-
const { result } = simnet.callReadOnlyFn(
522-
"snp-flashstack-receiver-v3",
523-
"calculate-leverage-benefit",
524-
[
525-
Cl.uint(1000000000), // 10 STX user capital
526-
Cl.uint(3), // 3x leverage
527-
Cl.uint(500), // 5% vault APY
528-
Cl.uint(5), // 5bp flash fee
529-
],
530-
deployer
531-
);
532-
533-
const data = result.value;
534-
expect(data["user-capital"].value).toBe(1000000000n);
535-
expect(data.leverage.value).toBe(3n);
536-
expect(data["total-capital"].value).toBe(3000000000n);
537-
expect(data["flash-loan-amount"].value).toBe(2000000000n);
538-
expect(data.profitable.type).toBe("true"); // ClarityType.BoolTrue
539-
});
540-
541-
it("reports zero apy-boost when user capital is zero", () => {
542-
const { result } = simnet.callReadOnlyFn(
543-
"snp-flashstack-receiver-v3",
544-
"calculate-leverage-benefit",
545-
[
546-
Cl.uint(0), // zero capital
547-
Cl.uint(3),
548-
Cl.uint(500),
549-
Cl.uint(5),
550-
],
551-
deployer
552-
);
553-
554-
const data = result.value;
555-
expect(data["apy-boost"].value).toBe(0n);
556-
});
557-
558-
it("get-stats returns initial values", () => {
559-
const { result } = simnet.callReadOnlyFn(
560-
"snp-flashstack-receiver-v3",
561-
"get-stats",
562-
[],
563-
deployer
564-
);
565-
566-
const data = result.value;
567-
expect(data["total-operations"].value).toBe(0n);
568-
expect(data["total-volume"].value).toBe(0n);
569-
});
570-
571-
it("get-owner returns deployer", () => {
572-
const { result } = simnet.callReadOnlyFn(
573-
"snp-flashstack-receiver-v3",
574-
"get-owner",
575-
[],
576-
deployer
577-
);
578-
579-
expect(result).toBeOk(Cl.principal(deployer));
580-
});
581-
});
582519
});

0 commit comments

Comments
 (0)