Skip to content

Commit

Permalink
fix: MsgSupplyCollateral and MinCollateralLiquidity (#2089)
Browse files Browse the repository at this point in the history
* fix: MsgSupplyCollateral and MinCollateralLiquidity

* changelog
  • Loading branch information
toteki authored Jun 8, 2023
1 parent 6a0c48f commit fcf924c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
- [2076](https://github.com/umee-network/umee/pull/2076) Cosmwasm: registering `cosmwasm_1_2` capability.
- [2083](https://github.com/umee-network/umee/pull/2083) Update `wasmvm` to 1.2.4.

### Fixes

- [2089](https://github.com/umee-network/umee/pull/2089) MsgSupplyCollateral no longer fails when market is below MinCollateralLiquidity.

## [v5.0.0-rc1](https://github.com/umee-network/umee/releases/tag/v5.0.0-rc1) - 2023-05-31

### Features
Expand Down
5 changes: 0 additions & 5 deletions x/leverage/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,6 @@ func (s msgServer) SupplyCollateral(
return nil, err
}

// Fail here if collateral liquidity restrictions are violated
if err := s.keeper.checkCollateralLiquidity(ctx, msg.Asset.Denom); err != nil {
return nil, err
}

// Fail here if collateral share restrictions are violated,
// based on only collateral with known oracle prices
if err := s.keeper.checkCollateralShare(ctx, uToken.Denom); err != nil {
Expand Down

0 comments on commit fcf924c

Please sign in to comment.