Skip to content

Latest commit

 

History

History
220 lines (211 loc) · 8.92 KB

LoanOpeningsEvents.md

File metadata and controls

220 lines (211 loc) · 8.92 KB

The Loan Openings Events contract. (LoanOpeningsEvents.sol)

View Source: contracts/events/LoanOpeningsEvents.sol

↗ Extends: ModulesCommonEvents ↘ Derived Contracts: ISovryn, LoanMaintenance, LoanOpenings

LoanOpeningsEvents 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 openings operations.

Events

event Borrow(address indexed user, address indexed lender, bytes32 indexed loanId, address  loanToken, address  collateralToken, uint256  newPrincipal, uint256  newCollateral, uint256  interestRate, uint256  interestDuration, uint256  collateralToLoanRate, uint256  currentMargin);
event Trade(address indexed user, address indexed lender, bytes32 indexed loanId, address  collateralToken, address  loanToken, uint256  positionSize, uint256  borrowedAmount, uint256  interestRate, uint256  settlementDate, uint256  entryPrice, uint256  entryLeverage, uint256  currentLeverage);
event DelegatedManagerSet(bytes32 indexed loanId, address indexed delegator, address indexed delegated, bool  isActive);

Functions

Contracts