Skip to content

Commit

Permalink
fix: liquidate command from-address (#829)
Browse files Browse the repository at this point in the history
(cherry picked from commit 183987d)
  • Loading branch information
toteki authored and mergify-bot committed Apr 22, 2022
1 parent dffb007 commit 418aa5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

### Bug Fixes
- [829](https://github.com/umee-network/umee/pull/829) Fix `umeed tx leverage liquidate` command args

### Improvements

- [781](https://github.com/umee-network/umee/pull/781) Oracle module unit test cleanup.
Expand Down
2 changes: 1 addition & 1 deletion x/leverage/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func SimulateMsgLiquidate(ak simulation.AccountKeeper, bk types.BankKeeper, lk k
Msg: msg,
MsgType: types.EventTypeLiquidate,
Context: ctx,
SimAccount: borrower,
SimAccount: liquidator,
AccountKeeper: ak,
Bankkeeper: bk,
ModuleName: types.ModuleName,
Expand Down
2 changes: 1 addition & 1 deletion x/leverage/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (msg *MsgRepayAsset) GetSignBytes() []byte {

func NewMsgLiquidate(liquidator, borrower sdk.AccAddress, repayment, reward sdk.Coin) *MsgLiquidate {
return &MsgLiquidate{
Liquidator: borrower.String(),
Liquidator: liquidator.String(),
Borrower: borrower.String(),
Repayment: repayment,
Reward: reward,
Expand Down

0 comments on commit 418aa5a

Please sign in to comment.