Skip to content

Latest commit

 

History

History
233 lines (224 loc) · 8.27 KB

MarginTradeStructHelpers.md

File metadata and controls

233 lines (224 loc) · 8.27 KB

MarginTradeStructHelpers.sol

View Source: contracts/connectors/loantoken/lib/MarginTradeStructHelpers.sol

MarginTradeStructHelpers contract

Structs

SentAddresses

struct SentAddresses {
 address lender,
 address borrower,
 address receiver,
 address manager
}

SentAmounts

struct SentAmounts {
 uint256 interestRate,
 uint256 newPrincipal,
 uint256 interestInitialAmount,
 uint256 loanTokenSent,
 uint256 collateralTokenSent,
 uint256 minEntryPrice,
 uint256 loanToCollateralSwapRate,
 uint256 interestDuration,
 uint256 entryLeverage
}

Functions

Contracts