Skip to content

Add upgradeability pattern to vesting_escrow contract #552

Description

@Wilfred007

What

Vesting_escrow has no upgrade mechanism. If a bug is found, all vesting schedules must be migrated manually. Vesting schedules span months/years.

Why

An unfixable bug could lock funds permanently. Upgradeability with timelock is a security best practice.

Scope

In scope: Proxy pattern or WASM hash upgrade, admin can upgrade with 48h timelock, storage preserved
Out of scope: Governance-controlled upgrades

Acceptance Criteria

  • Admin can propose upgrade with new WASM hash
  • Timelock (48h) before upgrade executes
  • Storage preserved across upgrades
  • Upgrade event emitted

Technical Context

  • contracts/vesting_escrow/src/lib.rs — no upgrade mechanism
  • contracts/common/src/lib.rs — shared admin auth

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaigncontractSmart Contract developmenthardComplex tasks

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions