Skip to content

Latest commit

 

History

History
231 lines (222 loc) · 8.33 KB

LoanStruct.md

File metadata and controls

231 lines (222 loc) · 8.33 KB

The Loan Object. (LoanStruct.sol)

View Source: contracts/core/objects/LoanStruct.sol

↘ Derived Contracts: Objects

LoanStruct 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 storage structure of the Loan Object.

Structs

Loan

struct Loan {
 bytes32 id,
 bytes32 loanParamsId,
 bytes32 pendingTradesId,
 bool active,
 uint256 principal,
 uint256 collateral,
 uint256 startTimestamp,
 uint256 endTimestamp,
 uint256 startMargin,
 uint256 startRate,
 address borrower,
 address lender
}

Functions

Contracts