Skip to content

Conversation

@pileks
Copy link
Contributor

@pileks pileks commented Dec 24, 2025

Adds an admin-only instruction that allows the MetaDAO operational multisig to recover USDC from a launch's quote vault by transferring it to a specified recipient.

Motivation

This instruction serves as a recovery mechanism for funds that may have been mistakenly sent directly to a launch's quote vault outside of normal program flows (e.g., accidental transfers). Without this, such funds would be permanently locked since only the launch's PDA signer can authorize transfers from the vault.

Changes

  • New return_funds instruction that transfers a specified amount of USDC from launch_quote_vault to a recipient's associated token account
    • Callable only by the MetaDAO operational multisig in production
  • New LaunchFundsReturnedEvent emitted on each recovery for off-chain tracking
  • New InvalidAdmin error code

Notes

  • The instruction can be called regardless of launch state (live, completed, failed, etc.) - this is intentional since recovery may be needed at any point
  • The admin can specify any recipient address and any amount (up to vault balance)
  • No state changes occur on the Launch account other than incrementing seq_num
@pileks pileks self-assigned this Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants