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

Custom Treasury - Burn Unwanted Native Tokens #822

Open hard-nett opened 2 months ago

hard-nett commented 2 months ago

After some discussion in the Juno Dev Department meetings, a DAO that only accepts a list of native tokens could benefit the DAO by not accumulating & having to manage internally unwanted tokens sent to the treasury.

I have implemented this feature, with use of the x/clock module, and want to see if this is a feature that would be desirable to add to the core contracts.

A possible issue with this implementation would be that it would not work on chains DAODAO is deployed on that do not have the clock module implemented, however by default this feature is disabled, and is only triggered by a sudo entry point so it may not cause issues ultimately

hard-nett commented 2 months ago

seems like the query mentioned in #754 would be able to improve the UX if a dao proposed to enable this feature on a chain without the clock module

hard-nett commented 2 months ago

Custom Treasury Notes

JakeHartnell commented 1 month ago

This might make more sense as a frontend feature. CC @NoahSaso.

Unfortunately, unlike cw20s, there is no way to block native tokens.