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

Put cw-vesting staking features behind a feature flag #800

Closed NoahSaso closed 4 months ago

NoahSaso commented 4 months ago

Neutron does not support the staking module, and the cw-vesting contract attempts to execute a staking-related message on instantiate for the native token. This means that the vesting contract does not currently work for NTRN on Neutron.

This PR adds a staking feature flag to cw-vesting that explicitly enables the execution variants that have to do with staking, in addition to the withdraw address message on instantiate.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (development@bc3a449). Click here to learn what that means.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #800 +/- ## ============================================== Coverage ? 96.17% ============================================== Files ? 207 Lines ? 53401 Branches ? 0 ============================================== Hits ? 51359 Misses ? 2042 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.