DA0-DA0 / dao-contracts

CosmWasm smart contracts for Interchain DAOs.
https://docs.daodao.zone
BSD 3-Clause "New" or "Revised" License
202 stars 132 forks source link

Vested token voting power module #804

Open NoahSaso opened 4 months ago

NoahSaso commented 4 months ago

DAOs need a way to derive voting power from cw-vesting contracts, since vesting governance tokens is a common way to distribute them.

This will likely be used alongside the voting module aggregator (#803) so that DAOs can use a governance token and give voting power while vesting that governance token to others.

The admin needs to be able to:

This likely requires a change to cw-vesting such that the claimed amount at any given height can be queried. This is because full voting power should be given for the entire vested amount, minus that which has already been claimed at a given height.

We may want to add a passthrough execution message that lets someone initiate a new vest and register it with the voting module at the same time, to prevent unnecessary governance fatigue.