Skip to content

Add truth-auction fixture helpers and regression test for post-liquidation claimability#428

Merged
KillariDev merged 2 commits into
mainfrom
t3code/db4b67af
Jul 1, 2026
Merged

Add truth-auction fixture helpers and regression test for post-liquidation claimability#428
KillariDev merged 2 commits into
mainfrom
t3code/db4b67af

Conversation

@KillariDev

Copy link
Copy Markdown
Collaborator

Summary

  • Exposed handleOracleReporting and requestPriceIfNeededAndStageOperation from the peripherals truth-auction fixture so tests can drive oracle-driven staged operations directly.
  • Added a regression test in solidity/ts/tests/peripherals/truthAuction.test.ts to verify that finalized auction proceeds remain fully claimable by the original bidder even after their migrated vault is partially liquidated before claiming.
  • The new test validates liquidation side effects on vault allowance/REP ownership and confirms claimAuctionProceeds only applies to the original bidder’s auction entitlement while preserving liquidated vault balances.
  • Added coordinator log decoding (via peripherals_SecurityPoolOracleCoordinator_SecurityPoolOracleCoordinator) to guard against silent liquidation execution failures.

Testing

  • Not run (not requested in this task)
  • Suggested validation: cd /workspace/.t3/worktrees/zoltar/t3code-db4b67af && bun run tsc
  • Suggested validation: cd /workspace/.t3/worktrees/zoltar/t3code-db4b67af && bun run test

- Export `handleOracleReporting` and `requestPriceIfNeededAndStageOperation` through `usePeripheralsTruthAuctionFixture`
- Add `peripherals_SecurityPoolOracleCoordinator` import usage for decoding staged-operation logs in tests
- Add a new truth-auction test ensuring unclaimed finalized proceeds remain claimable after partial vault liquidation
@KillariDev KillariDev merged commit 630dadf into main Jul 1, 2026
1 check passed
@KillariDev KillariDev deleted the t3code/db4b67af branch July 1, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant