Skip to content

Commit fcf924c

Browse files
authored
fix: MsgSupplyCollateral and MinCollateralLiquidity (#2089)
* fix: MsgSupplyCollateral and MinCollateralLiquidity * changelog
1 parent 6a0c48f commit fcf924c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
6363
- [2076](https://github.com/umee-network/umee/pull/2076) Cosmwasm: registering `cosmwasm_1_2` capability.
6464
- [2083](https://github.com/umee-network/umee/pull/2083) Update `wasmvm` to 1.2.4.
6565

66+
### Fixes
67+
68+
- [2089](https://github.com/umee-network/umee/pull/2089) MsgSupplyCollateral no longer fails when market is below MinCollateralLiquidity.
69+
6670
## [v5.0.0-rc1](https://github.com/umee-network/umee/releases/tag/v5.0.0-rc1) - 2023-05-31
6771

6872
### Features

x/leverage/keeper/msg_server.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,6 @@ func (s msgServer) SupplyCollateral(
241241
return nil, err
242242
}
243243

244-
// Fail here if collateral liquidity restrictions are violated
245-
if err := s.keeper.checkCollateralLiquidity(ctx, msg.Asset.Denom); err != nil {
246-
return nil, err
247-
}
248-
249244
// Fail here if collateral share restrictions are violated,
250245
// based on only collateral with known oracle prices
251246
if err := s.keeper.checkCollateralShare(ctx, uToken.Denom); err != nil {

0 commit comments

Comments
 (0)