Skip to content

Commit

Permalink
fix: liquidate command from-address (#829) (#830)
Browse files Browse the repository at this point in the history
(cherry picked from commit 183987d)

Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com>
  • Loading branch information
mergify[bot] and toteki authored Apr 22, 2022
1 parent dffb007 commit 69988e1
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 69988e1

Please sign in to comment.