Events

The leverage module emits the following events:

Handlers

MsgLendAsset

TypeAttribute KeyAttribute Value
lendsender{lenderAddress}
lendamount{amount}
messagemoduleleverage
messageaction/umeenetwork.umee.leverage.v1beta1.MsgLendAsset
messagesender{lenderAddress}

MsgWithdrawAsset

TypeAttribute KeyAttribute Value
withdrawsender{lenderAddress}
withdrawamount{amount}
messagemoduleleverage
messageaction/umeenetwork.umee.leverage.v1beta1.MsgWithdrawAsset
messagesender{lenderAddress}

MsgSetCollateral

TypeAttribute KeyAttribute Value
set_collateralsender{borrowerAddress}
set_collateraldenom{denom}
set_collateralenable{enable}
messagemoduleleverage
messageaction/umeenetwork.umee.leverage.v1beta1.MsgSetCollateral
messagesender{borrowerAddress}

MsgBorrowAsset

TypeAttribute KeyAttribute Value
borrowsender{borrowerAddress}
borrowamount{amount}
messagemoduleleverage
messageaction/umeenetwork.umee.leverage.v1beta1.MsgBorrowAsset
messagesender{borrowerAddress}

MsgRepayAsset

TypeAttribute KeyAttribute Value
repaysender{borrowerAddress}
repayamount{amount}*
messagemoduleleverage
messageaction/umeenetwork.umee.leverage.v1beta1.MsgRepayAsset
messagesender{borrowerAddress}
  • Amount successfully repaid may be lower than the amount requested in the message if the original amount would exceed full repayment.

MsgLiquidate

TypeAttribute KeyAttribute Value
liquidatesender{liquidatorAddress}
liquidateamount{amount}*
liquidatereward_denom{rewardDenom}
messagemoduleleverage
messageaction/umeenetwork.umee.leverage.v1beta1.MsgLiquidate
messagesender{liquidatorAddress}
  • Amount successfully liquidated may be lower than the amount requested in the message if the original amount exceeds full repayment, exceeds the value of desired collateral rewards, or is otherwise restricted by CloseFactor.

Keeper Events

In addition to handlers events, the leverage keeper will produce events from the following functions which may occur during EndBlock.

AccrueAllInterest

TypeAttribute KeyAttribute Value
interest_accrualblock_height{ctx.BlockHeight}
interest_accrualunix_time{ctx.BlockTime.Unix()}
interest_accrualtotal_interest{totalInterest}
interest_accrualreserved{newReserves}

Interest accrual emits an event with the current block height and time, as well as total interest accrued across all borrows and the amount of each token added to reserves. Occurs every block.

FundOracle

TypeAttribute KeyAttribute Value
fund_oracleamount{reward}

Oracle rewards sent from the leverage module are tracked at the moment of transfer. Occurs every block.

RepayBadDebt

TypeAttribute KeyAttribute Value
repay_bad_debtborrower{borrowerAddress}
repay_bad_debtdenom{denom}
repay_bad_debtamount{amount}

Bad debt repayments are tracked by borrower address and the amount successfully repaid.

TypeAttribute KeyAttribute Value
reserves_exhaustedborrower{borrowerAddress}
reserves_exhausteddenom{denom}
reserves_exhaustedamount{amount}

Reserve exhaustion is tracked by the address of the last borrower partially repaid, and the remaining borrow amount in the relevant denom.