I Primary Index Token
Methods
MODERATOR_ROLE
return keccak("MODERATOR_ROLE")
Returns
_0
bytes32
undefined
addLendingToken
Parameters
_lendingToken
address
undefined
_bLendingToken
address
undefined
_isPaused
bool
undefined
addProjectToken
Parameters
_projectToken
address
undefined
_loanToValueRatioNumerator
uint8
undefined
_loanToValueRatioDenominator
uint8
undefined
_liquidationTresholdFactorNumerator
uint8
undefined
_liquidationTresholdFactorDenominator
uint8
undefined
_liquidationIncentiveNumerator
uint8
undefined
_liquidationIncentiveDenominator
uint8
undefined
borrow
borrow lending token
Parameters
projectToken
address
- address of project token
lendingToken
address
- address of lending token
lendingTokenAmount
uint256
- amount of lending token
borrowLimit
return borrow limit amount of lendingToken
by projectToken
Parameters
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
_0
uint256
undefined
borrowPosition
return borrow position struct
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
_0
IPrimaryIndexToken.BorrowPosition
undefined
decimals
return decimals of PrimaryIndexToken
Returns
_0
uint8
undefined
deposit
deposit project token to PrimaryIndexToken
Parameters
projectToken
address
- address of project token
lendingToken
address
- address of lending token
projectTokenAmount
uint256
- amount of project token to deposit
depositPosition
return deposit position struct
Parameters
account
address
- address of depositor
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
_0
IPrimaryIndexToken.DepositPosition
undefined
getPosition
return deposit position and borrow position and instant health factor
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
depositedProjectTokenAmount
uint256
undefined
loanBody
uint256
undefined
accrual
uint256
undefined
healthFactorNumerator
uint256
undefined
healthFactorDenominator
uint256
undefined
getProjectTokenEvaluation
return evaluation in USD of projectTokenAmount
Parameters
projectToken
address
- address of project token
projectTokenAmount
uint256
- amount of project token
Returns
_0
uint256
undefined
grandModerator
Parameters
newModerator
address
undefined
healthFactor
return health factor of borrow position
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
numerator
uint256
undefined
denominator
uint256
undefined
initialize
lendingTokenInfo
return info of lending token, that declared in struct LendingTokenInfo
Parameters
lendingToken
address
- address of lending token in array lendingTokens
. Numetates from 0 to array length - 1
Returns
_0
IPrimaryIndexToken.LendingTokenInfo
undefined
lendingTokens
return address lending token in array lendingTokens
Parameters
lendingTokenId
uint256
- index of lending token in array lendingTokens
. Numetates from 0 to array length - 1
Returns
_0
address
undefined
lendingTokensLength
return length of array lendingTokens
Returns
_0
uint256
undefined
liquidate
liquidate borrow
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
liquidationThreshold
return liquidationThreshold of borrow position
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
_0
uint256
undefined
pit
return pit amount of borrow position
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
_0
uint256
undefined
pitRemaining
return pit remaining amount of borrow position
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
_0
uint256
undefined
priceOracle
return address of price oracle with interface of PriceProviderAggregator
Returns
_0
address
undefined
projectTokenInfo
return info of project token, that declared in struct ProjectTokenInfo
Parameters
projectToken
address
- address of project token in array projectTokens
. Numetates from 0 to array length - 1
Returns
_0
IPrimaryIndexToken.ProjectTokenInfo
undefined
projectTokens
return address project token in array projectTokens
Parameters
projectTokenId
uint256
- index of project token in array projectTokens
. Numetates from 0 to array length - 1
Returns
_0
address
undefined
projectTokensLength
return length of array projectTokens
Returns
_0
uint256
undefined
redeem
redeem lending token
Parameters
lendingToken
address
- address of lending token
bLendingTokenAmount
uint256
- amount of fLending token to redeem
redeemUnderlying
redeem underlying lending token
Parameters
lendingToken
address
- address of lending token
lendingTokenAmount
uint256
- amount of lending token to redeem
removeLendingToken
Parameters
_lendingTokenId
uint256
undefined
removeProjectToken
Parameters
_projectTokenId
uint256
undefined
repay
repay lending token
Parameters
projectToken
address
- address of project token
lendingToken
address
- address of lending token
lendingTokenAmount
uint256
- amount of lending token
revokeModerator
Parameters
moderator
address
undefined
setBorrowLimit
sets borrow limit
Parameters
projectToken
address
- address of project token
lendingToken
address
- address of lending token
_borrowLimit
uint256
- limit amount of lending token
setLendingTokenInfo
sets pause of project token
Parameters
_lendingToken
address
- address of lending token
_bLendingToken
address
- address of bLendingToken
_isPaused
bool
- true - if pause, false - if unpause
setPausedLendingToken
sets pause of lending token
Parameters
_lendingToken
address
- address of lending token
_isPaused
bool
- true - if pause, false - if unpause
setPausedProjectToken
sets pause of project token
Parameters
_projectToken
address
- address of project token
_isDepositPaused
bool
- true - if pause, false - if unpause
_isWithdrawPaused
bool
- true - if pause, false - if unpause
setPriceOracle
Parameters
_priceOracle
address
undefined
setProjectTokenInfo
sets project token info
Parameters
_projectToken
address
- address of project token
_loanToValueRatioNumerator
uint8
- numerator of loan to value ratio
_loanToValueRatioDenominator
uint8
- denominator of loan to value ratio
_liquidationTresholdFactorNumerator
uint8
- numerator of liquidation treshold factor
_liquidationTresholdFactorDenominator
uint8
- denominator of liquidation treshold factor
_liquidationIncentiveNumerator
uint8
- numerator of liquidation incentive
_liquidationIncentiveDenominator
uint8
- denominator of liquidation incentive
supply
supply lending token
Parameters
lendingToken
address
- address of lending token
lendingTokenAmount
uint256
- amount of lending token to supply
totalBorrow
return total borrow amount of lendingToken
by projectToken
Parameters
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
_0
uint256
undefined
totalDepositedProjectToken
return total amount of deposited project token
Parameters
projectToken
address
- address of project token in array projectTokens
. Numetates from 0 to array length - 1
Returns
_0
uint256
undefined
totalOutstanding
return total outstanding of borrow position
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
Returns
_0
uint256
undefined
updateInterestInBorrowPosition
update borrow position
Parameters
account
address
- address of borrower
projectToken
address
- address of project token
lendingToken
address
- address of lending token
withdraw
withdraw project token from PrimaryIndexToken
Parameters
projectToken
address
- address of project token
lendingToken
address
- address of lending token
projectTokenAmount
uint256
- amount of project token to deposit
Events
AddPrjToken
Parameters
tokenPrj indexed
address
undefined
Borrow
Parameters
who indexed
address
undefined
borrowToken indexed
address
undefined
borrowAmount
uint256
undefined
prjAddress indexed
address
undefined
prjAmount
uint256
undefined
Deposit
Parameters
who indexed
address
undefined
tokenPrj indexed
address
undefined
prjDepositAmount
uint256
undefined
beneficiar indexed
address
undefined
Liquidate
Parameters
liquidator indexed
address
undefined
borrower indexed
address
undefined
lendingToken
address
undefined
prjAddress indexed
address
undefined
amountPrjLiquidated
uint256
undefined
LiquidationThresholdFactorSet
Parameters
tokenPrj indexed
address
undefined
ltfNumerator
uint8
undefined
ltfDenominator
uint8
undefined
LoanToValueRatioSet
Parameters
tokenPrj indexed
address
undefined
lvrNumerator
uint8
undefined
lvrDenominator
uint8
undefined
Redeem
Parameters
who indexed
address
undefined
redeemToken indexed
address
undefined
redeemBToken indexed
address
undefined
redeemAmount
uint256
undefined
RedeemUnderlying
Parameters
who indexed
address
undefined
redeemToken indexed
address
undefined
redeemBToken indexed
address
undefined
redeemAmountUnderlying
uint256
undefined
RepayBorrow
Parameters
who indexed
address
undefined
borrowToken indexed
address
undefined
borrowAmount
uint256
undefined
prjAddress indexed
address
undefined
isPositionFullyRepaid
bool
undefined
Supply
Parameters
who indexed
address
undefined
supplyToken indexed
address
undefined
supplyAmount
uint256
undefined
supplyBToken indexed
address
undefined
amountSupplyBTokenReceived
uint256
undefined
Withdraw
Parameters
who indexed
address
undefined
tokenPrj indexed
address
undefined
prjWithdrawAmount
uint256
undefined
beneficiar indexed
address
undefined
Last updated