Skip to content

Latest commit

 

History

History
222 lines (213 loc) · 9.26 KB

LoanClosingsEvents.md

File metadata and controls

222 lines (213 loc) · 9.26 KB

The Loan Closing Events contract. (LoanClosingsEvents.sol)

View Source: contracts/events/LoanClosingsEvents.sol

↗ Extends: ModulesCommonEvents ↘ Derived Contracts: ISovryn, LoanClosingsShared

LoanClosingsEvents contract

This contract code comes from bZx. bZx is a protocol for tokenized margin trading and lending https://bzx.network similar to the dYdX protocol.

  • This contract contains the events for loan closing operations.

Events

event CloseWithDeposit(address indexed user, address indexed lender, bytes32 indexed loanId, address  closer, address  loanToken, address  collateralToken, uint256  repayAmount, uint256  collateralWithdrawAmount, uint256  collateralToLoanRate, uint256  currentMargin);
event CloseWithSwap(address indexed user, address indexed lender, bytes32 indexed loanId, address  collateralToken, address  loanToken, address  closer, uint256  positionCloseSize, uint256  loanCloseAmount, uint256  exitPrice, uint256  currentLeverage);
event Liquidate(address indexed user, address indexed liquidator, bytes32 indexed loanId, address  lender, address  loanToken, address  collateralToken, uint256  repayAmount, uint256  collateralWithdrawAmount, uint256  collateralToLoanRate, uint256  currentMargin);
event Rollover(address indexed user, address indexed lender, bytes32 indexed loanId, uint256  principal, uint256  collateral, uint256  endTimestamp, address  rewardReceiver, uint256  reward);
event swapExcess(bool  shouldRefund, uint256  amount, uint256  amountInRbtc, uint256  threshold);

Functions

Contracts