Skip to content
CCPEDIAby Unity Nodes
OPENPull Request

Add ExpireWithdrawVestedFundsProposalTrigger

#296by rashadg1030Created 03-12-2026

Fixes #213

Adds ExpireWithdrawVestedFundsProposalTrigger, which archives expired WithdrawVestedFundsProposals with DsoRules_WithdrawVestedFunds_DsoExpire. It mirrors ExpireUnlockProposalTrigger from #294.

  • SvDsoStore ingests WithdrawVestedFundsProposal, with the same filter and version guard as Scan.
  • listExpiredWithdrawVestedFundsProposals reuses listExpiredFromPayloadExpiry, so there is no new SQL. It skips proposals whose owner, featured app provider or vesting controllers are unavailable, which matches GovernanceLockUtil.withdrawInformees. Proposers must be controllers, so they are covered too.

Tests:

  • DbSvDsoStoreTest: expiry, DSO scoping, and unavailable parties with both the in-memory and the DB-backed store.
  • TODO: an integration test in GovernanceLockTimeBasedIntegrationTest, once #277 merges. A pending withdrawal proposal needs a vesting lock with custom controllers, and the #277 helpers are what create one.

Stacked on #294. Retarget to custom-controllers-scala once #294 merges.