Closed ethanfrey closed 2 years ago
The use case would be allowing to kick out someone that we don't want slashed. A real world scenario may be to remove a member that was added by mistake.
I think slashing_percentage
should be of type Option<Decimal>
. And slashing_percentage = "0"
should behave the same way as the None
variant.
Referenced type: https://github.com/confio/tgrade-contracts/blob/main/contracts/tgrade-trusted-circle/src/state.rs#L199
Also nice to update cw-plus multitest so bank send/burn/mint with 0 tokens return error
Required: never send on 0. Handle it without calling bank
Nice to have, accept: Option<Decimal>
vs Decimal
From Abel:
would be
message index: 0: dispatch: submessages: transfer to module: 0utgd: invalid coins