dao-contracts icon indicating copy to clipboard operation
dao-contracts copied to clipboard

Native token voting contract where the native token is the native staking denom

Open Callum-A opened this issue 2 years ago • 0 comments

So we can allow sub DAOs where we use the main token of the chain. This can be achieved by querying the balance of the staking module on chain, for example for juno:

let total_bonded_amount = deps
    .querier
    .query_balance("juno1fl48vsnmsdzcv85q5d2q4z5ajdha8yu3rf257t", "ujuno")?
    .amount;

This will give the bonded amount. This allows us to create native token DAOs without needing the user to do anything else!

User story:

I as a user want to create a DAO where all existing network participants may vote using the staking token of the chain.

Callum-A avatar Jul 22 '22 18:07 Callum-A