Skip to content

Gate manualLiquidation by EParticipant entitlement#316

Open
jordanschalm wants to merge 1 commit intov0from
claude/gate-liquidation-entitlement-v0
Open

Gate manualLiquidation by EParticipant entitlement#316
jordanschalm wants to merge 1 commit intov0from
claude/gate-liquidation-entitlement-v0

Conversation

@jordanschalm
Copy link
Copy Markdown
Member

Summary

  • Change manualLiquidation access from access(all) to access(EParticipant) so callers must hold an authorized Pool capability
  • Update the production manual_liquidation.cdc transaction and the test-only manual_liquidation_chosen_vault.cdc transaction to borrow the pool via an EParticipant-entitled capability from storage instead of the public path
  • Grant the EParticipant cap to liquidator accounts in all 18 liquidation test calls in liquidation_phase1_test.cdc

Test plan

  • All 20 liquidation_phase1_test.cdc tests pass
  • All 4 cap_test.cdc tests pass

https://claude.ai/code/session_01EScbPupCZD9LkCBWvQDaQ4

Change `manualLiquidation` access from `access(all)` to
`access(EParticipant)` so callers must hold an authorized Pool
capability. Update the production transaction and the test-only
chosen-vault transaction to borrow the pool via an EParticipant-entitled
capability from storage instead of the public path. Grant the
EParticipant cap to liquidator accounts in all liquidation test calls.

https://claude.ai/code/session_01EScbPupCZD9LkCBWvQDaQ4
@jordanschalm jordanschalm requested a review from a team as a code owner April 9, 2026 22:17
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.

4 participants