IPrimaryLendingPlatform
Overview
License: MIT
interface IPrimaryLendingPlatformStructs info
Ratio
struct Ratio {
uint8 numerator;
uint8 denominator;
}ProjectTokenInfo
struct ProjectTokenInfo {
bool isListed;
bool isDepositPaused;
bool isWithdrawPaused;
IPrimaryLendingPlatform.Ratio loanToValueRatio;
}LendingTokenInfo
DepositPosition
BorrowPosition
Functions info
grantRole (0x2f2ff15d)
Name
Type
Description
revokeRole (0xd547741f)
Name
Type
Description
setPrimaryLendingPlatformModeratorModerator (0xa0290239)
Name
Type
Description
setPriceOracle (0x530e784f)
Name
Type
Description
setPrimaryLendingPlatformLeverage (0xa1ab5419)
Name
Type
Description
setRelatedContract (0xdcb4252a)
Name
Type
Description
removeProjectToken (0x3af44bfa)
Name
Type
Description
removeLendingToken (0xc1ab02ee)
Name
Type
Description
setBorrowLimitPerCollateralAsset (0x8e85cdfa)
Name
Type
Description
setBorrowLimitPerLendingAsset (0x92a39190)
Name
Type
Description
setProjectTokenInfo (0x4a5333bc)
Name
Type
Description
setLendingTokenInfo (0x821363a0)
Name
Type
Description
deposit (0x47e7ef24)
Name
Type
Description
depositFromRelatedContracts (0xbf423b75)
Name
Type
Description
calcAndTransferDepositPosition (0x556d4704)
Name
Type
Description
Name
Type
Description
calcDepositPosition (0xdf5e6bed)
Name
Type
Description
withdraw (0xf3fef3a3)
Name
Type
Description
withdrawFromRelatedContracts (0x1132a65f)
Name
Type
Description
Name
Type
Description
withdraw (0x127b642e)
Name
Type
Description
withdrawFromRelatedContracts (0x9afab2ec)
Name
Type
Description
Name
Type
Description
borrow (0xf6c0b770)
Name
Type
Description
borrowFromRelatedContract (0x07f4a25c)
Name
Type
Description
Name
Type
Description
borrow (0x5224372c)
Name
Type
Description
borrowFromRelatedContract (0x284a211e)
Name
Type
Description
Name
Type
Description
getCollateralAvailableToWithdraw (0x72620613)
Name
Type
Description
Name
Type
Description
supply (0xd07ab026)
Name
Type
Description
supplyFromRelatedContract (0xac160433)
Name
Type
Description
redeem (0xe9bae8a8)
Name
Type
Description
redeemFromRelatedContract (0xa62b7bd7)
Name
Type
Description
redeemUnderlying (0xb78deb78)
Name
Type
Description
redeemUnderlyingFromRelatedContract (0x3898b641)
Name
Type
Description
calcBorrowPosition (0x2dfee307)
Name
Type
Description
getLendingAvailableToBorrow (0x07445b52)
Name
Type
Description
Name
Type
Description
repay (0x1da649cf)
Name
Type
Description
Name
Type
Description
repayFromRelatedContract (0xf432e4e2)
Name
Type
Description
Name
Type
Description
updateInterestInBorrowPositions (0x9a812edd)
Name
Type
Description
getTokensUpdateFinalPrices (0xef290120)
Name
Type
Description
Name
Type
Description
priceOracle (0x2630c12f)
projectTokens (0xb269449f)
Name
Type
Description
lendingTokens (0x6f5f74f2)
Name
Type
Description
projectTokenInfo (0x85f4da5c)
Name
Type
Description
lendingTokenInfo (0x3299093b)
Name
Type
Description
getRelatedContract (0x2060128e)
Name
Type
Description
Name
Type
Description
borrowLimitPerLendingToken (0x9f9184db)
Name
Type
Description
borrowLimitPerCollateral (0x739d7547)
Name
Type
Description
totalDepositedProjectToken (0xef867f0f)
Name
Type
Description
totalBorrow (0xb090cf22)
Name
Type
Description
pit (0x72d456af)
Name
Type
Description
Name
Type
Description
pitCollateral (0x1893be9f)
Name
Type
Description
Name
Type
Description
getLendingToken (0x2ce36230)
Name
Type
Description
Name
Type
Description
pitRemaining (0xd1a3d2ae)
Name
Type
Description
Name
Type
Description
totalOutstanding (0xac15382f)
Name
Type
Description
Name
Type
Description
healthFactor (0xcc224bff)
Name
Type
Description
Name
Type
Description
getTokenEvaluation (0x3598a7a9)
Name
Type
Description
Name
Type
Description
lendingTokensLength (0x2412b575)
Name
Type
Description
projectTokensLength (0x4a41d29e)
Name
Type
Description
getPosition (0x713390f5)
Name
Type
Description
Name
Type
Description
getDepositedAmount (0x0fefc251)
Name
Type
Description
Name
Type
Description
getTotalBorrowPerCollateral (0x65647a59)
Name
Type
Description
Name
Type
Description
getTotalBorrowPerLendingToken (0x961540e1)
Name
Type
Description
Name
Type
Description
totalOutstandingInUSD (0xb189b70a)
Name
Type
Description
Name
Type
Description
getLoanToValueRatio (0xe84dc1b3)
Name
Type
Description
Name
Type
Description
pitCollateralWithUpdatePrices (0x902b6286)
Name
Type
Description
Name
Type
Description
pitRemainingWithUpdatePrices (0xe662d5c5)
Name
Type
Description
Name
Type
Description
estimatedPitRemainingWithUpdatePrices (0x0c0e14a3)
Name
Type
Description
Name
Type
Description
getTokenEvaluationWithUpdatePrices (0x4d247b46)
Name
Type
Description
Name
Type
Description
getPositionWithUpdatePrices (0xa767ebd3)
Name
Type
Description
Name
Type
Description
totalEstimatedOutstandingInUSDWithUpdatePrices (0x7b78a351)
Name
Type
Description
Name
Type
Description
convertPitRemainingWithUpdatePrices (0x07a0e36c)
Name
Type
Description
Name
Type
Description
convertEstimatedPitRemainingWithUpdatePrices (0x7200b1ef)
Name
Type
Description
Name
Type
Description
getCollateralAvailableToWithdrawWithUpdatePrices (0x45f0219c)
Name
Type
Description
Name
Type
Description
getLendingAvailableToBorrow (0xdc8b040b)
Name
Type
Description
Name
Type
Description
Last updated