You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[#20517](https://github.com/cosmos/cosmos-sdk/pull/20517)`SendCoins` now checks for `SendRestrictions` before instead of after deducting coins using `subUnlockedCoins`.
37
37
*[#20354](https://github.com/cosmos/cosmos-sdk/pull/20354) Reduce the number of `ValidateDenom` calls in `bank.SendCoins`.
38
38
39
+
### Bug Fixes
40
+
41
+
*[#21407](https://github.com/cosmos/cosmos-sdk/pull/21407) Fix handling of negative spendable balances.
42
+
* The `SpendableBalances` query now correctly reports spendable balances when one or more denoms are negative (used to report all zeros). Also, this query now looks up only the balances for the requested page.
43
+
* The `SpendableCoins` keeper method now returns the positive spendable balances even when one or more denoms have more locked than available (used to return an empty `Coins`).
44
+
* The `SpendableCoin` keeper method now returns a zero coin if there's more locked than available (used to return a negative coin).
45
+
39
46
### API Breaking Changes
40
47
41
48
*[#19954](https://github.com/cosmos/cosmos-sdk/pull/19954) Removal of the Address.String() method and related changes:
0 commit comments