Skip to content

Liquidation program#435

Merged
pileks merged 35 commits intodevelopfrom
pileks/met-263-develop-liquidation-program
Mar 10, 2026
Merged

Liquidation program#435
pileks merged 35 commits intodevelopfrom
pileks/met-263-develop-liquidation-program

Conversation

@pileks
Copy link
Contributor

@pileks pileks commented Mar 4, 2026

Adds the liquidation program — an orderly treasury redemption mechanism for projects winding down. A project deposits quote tokens (e.g. USDC) into a vault, eligible token holders burn their project tokens to receive a proportional share within a time-bounded refund window, and the authority reclaims whatever's left after the deadline.

Lifecycle

initialize_liquidation → set_refund_record(s) → activate_liquidation → refund → withdraw_remaining_quote
  • Setup: Create liquidation, configure per-user refund records. Two separate authorities: record_authority (sets records) and liquidation_authority (funds vault, withdraws remainder).
  • Activation: One-way, irrevocable. Transfers exact total_quote_refundable into the vault, starts the clock.
  • Refund window: Users burn base tokens, receive proportional quote. Partial and multiple refunds supported.
  • Post-deadline: Authority withdraws remaining vault balance. Refunds blocked.

@pileks pileks requested review from R-K-H and metaproph3t March 4, 2026 22:55
@pileks pileks self-assigned this Mar 4, 2026
@pileks pileks marked this pull request as ready for review March 6, 2026 15:45
@pileks pileks merged commit a0e8179 into develop Mar 10, 2026
1 check passed
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