Governance
How the Dnipro governance system protects the protocol and its users.
Overview
The Dnipro Registry is controlled by a governance authority — intended to be a Squads multisig in production. All protocol-level changes require a governance proposal that goes through a timelock before taking effect.
This means: - No adapter can be registered or deactivated without advance notice - Fee changes require a timelock delay (protecting users from surprise fee increases) - The community can review and react to proposed changes before they activate
Timelock Mechanism
Every governance action follows this flow:
- →Propose — governance calls
propose_governance_action(proposal_id, action) - →Wait — the timelock delay passes (default: 48 hours on mainnet)
- →Execute — governance calls
execute_governance_action(proposal_id)
The GovernanceProposal PDA stores: proposer, action type, proposed_at, executable_after, executed.
If governance attempts to execute before executable_after, the transaction reverts with TimelockNotElapsed.
Governed Actions
Actions that require a governance proposal + timelock: - Register a new adapter - Deactivate an existing adapter - Update the timelock delay itself - Transfer governance authority to a new address
Actions that governance can take immediately (no timelock): - Update adapter APY / TVL metadata (informational only, no user impact) - Pause adapter deposits (emergency measure — time-sensitive)
Submitting an Adapter
To get your adapter registered with Dnipro:
- →Build and deploy your adapter program to mainnet
- →Verify it implements the three-function interface correctly
- →Open a PR to this repository with your adapter code and tests
- →The Dnipro governance authority will review and submit a registration proposal
- →After the 48-hour timelock, your adapter goes live in the explorer
The registry will store: name, protocol, underlying mint, category, APY (initially estimated), TVL (initially 0), risk score (assessed by governance), metadata URI (pointing to audit report).