- Add timelock for admin config changes with 48-hour delay (#768)
- Add snapshot voting weight capture for governance polls (#765)
Closes #768 Closes #765
- Added
propose_config_change(admin, change_type, payload)to record a proposal with 48-hour delay - Added
execute_config_change(admin, proposal_id)that panics withAllocationLockedif called too early - Added
cancel_config_change(admin, proposal_id)to cancel pending proposals - Supports change types:
UpdateFee,UpdateCurveExponent,UpdateTreasury - Emits
config_change_proposed,config_change_executed, andconfig_change_cancelledevents
- Added
cast_vote_with_snapshot(creator_id, voter, poll_id, option_index)that uses snapshot balance - Snapshot captured lazily on first vote from the holder's live balance at vote time
- Prevents post-proposal key purchases from influencing vote weight
- Added
get_vote_snapshotview function
- #767 —
distribute_dividendalready exists - #769 —
transfer_keysalready exists