Primary Index Token
Methods
DEFAULT_ADMIN_ROLE
Returns
_0
bytes32
undefined
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
_liquidationThresholdFactorNumerator
uint8
undefined
_liquidationThresholdFactorDenominator
uint8
undefined
_liquidationIncentiveNumerator
uint8
undefined
_liquidationIncentiveDenominator
uint8
undefined
borrow
Parameters
projectToken
address
undefined
lendingToken
address
undefined
lendingTokenAmount
uint256
undefined
borrowLimit
Parameters
_0
address
undefined
_1
address
undefined
Returns
_0
uint256
undefined
borrowPosition
Parameters
_0
address
undefined
_1
address
undefined
_2
address
undefined
Returns
loanBody
uint256
undefined
accrual
uint256
undefined
decimals
Returns
_0
uint8
undefined
deposit
Parameters
projectToken
address
undefined
lendingToken
address
undefined
projectTokenAmount
uint256
undefined
depositPosition
Parameters
_0
address
undefined
_1
address
undefined
_2
address
undefined
Returns
depositedProjectTokenAmount
uint256
undefined
getPosition
Parameters
account
address
undefined
projectToken
address
undefined
lendingToken
address
undefined
Returns
depositedProjectTokenAmount
uint256
undefined
loanBody
uint256
undefined
accrual
uint256
undefined
healthFactorNumerator
uint256
undefined
healthFactorDenominator
uint256
undefined
getProjectTokenEvaluation
Parameters
projectToken
address
undefined
projectTokenAmount
uint256
undefined
Returns
_0
uint256
undefined
getRoleAdmin
Returns the admin role that controls role
. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.
Parameters
role
bytes32
undefined
Returns
_0
bytes32
undefined
grandModerator
Parameters
newModerator
address
undefined
grantRole
Grants role
to account
. If account
had not been already granted role
, emits a {RoleGranted} event. Requirements: - the caller must have role
's admin role.
Parameters
role
bytes32
undefined
account
address
undefined
hasRole
Returns true
if account
has been granted role
.
Parameters
role
bytes32
undefined
account
address
undefined
Returns
_0
bool
undefined
healthFactor
Parameters
account
address
undefined
projectToken
address
undefined
lendingToken
address
undefined
Returns
numerator
uint256
undefined
denominator
uint256
undefined
initialize
lendingTokenInfo
Parameters
_0
address
undefined
Returns
isListed
bool
undefined
isPaused
bool
undefined
bLendingToken
contract BLendingToken
undefined
lendingTokens
Parameters
_0
uint256
undefined
Returns
_0
address
undefined
lendingTokensLength
Returns
_0
uint256
undefined
liquidate
Parameters
account
address
undefined
projectToken
address
undefined
lendingToken
address
undefined
liquidationThreshold
Parameters
account
address
undefined
projectToken
address
undefined
lendingToken
address
undefined
Returns
_0
uint256
undefined
name
Returns
_0
string
undefined
pit
Parameters
account
address
undefined
projectToken
address
undefined
lendingToken
address
undefined
Returns
_0
uint256
undefined
pitRemaining
Parameters
account
address
undefined
projectToken
address
undefined
lendingToken
address
undefined
Returns
_0
uint256
undefined
priceOracle
Returns
_0
contract IPriceProviderAggregator
undefined
projectTokenInfo
Parameters
_0
address
undefined
Returns
isListed
bool
undefined
isDepositPaused
bool
undefined
isWithdrawPaused
bool
undefined
loanToValueRatio
PrimaryIndexToken.Ratio
undefined
liquidationThresholdFactor
PrimaryIndexToken.Ratio
undefined
liquidationIncentive
PrimaryIndexToken.Ratio
undefined
projectTokens
Parameters
_0
uint256
undefined
Returns
_0
address
undefined
projectTokensLength
Returns
_0
uint256
undefined
redeem
Parameters
lendingToken
address
undefined
bLendingTokenAmount
uint256
undefined
redeemUnderlying
Parameters
lendingToken
address
undefined
lendingTokenAmount
uint256
undefined
removeLendingToken
Parameters
_lendingTokenId
uint256
undefined
removeProjectToken
Parameters
_projectTokenId
uint256
undefined
renounceRole
Revokes role
from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been granted role
, emits a {RoleRevoked} event. Requirements: - the caller must be account
.
Parameters
role
bytes32
undefined
account
address
undefined
repay
Parameters
projectToken
address
undefined
lendingToken
address
undefined
lendingTokenAmount
uint256
undefined
Returns
_0
uint256
undefined
revokeModerator
Parameters
moderator
address
undefined
revokeRole
Revokes role
from account
. If account
had been granted role
, emits a {RoleRevoked} event. Requirements: - the caller must have role
's admin role.
Parameters
role
bytes32
undefined
account
address
undefined
setBorrowLimit
Parameters
projectToken
address
undefined
lendingToken
address
undefined
_borrowLimit
uint256
undefined
setLendingTokenInfo
Parameters
_lendingToken
address
undefined
_bLendingToken
address
undefined
_isPaused
bool
undefined
setPausedLendingToken
Parameters
_lendingToken
address
undefined
_isPaused
bool
undefined
setPausedProjectToken
Parameters
_projectToken
address
undefined
_isDepositPaused
bool
undefined
_isWithdrawPaused
bool
undefined
setPriceOracle
Parameters
_priceOracle
address
undefined
setProjectTokenInfo
Parameters
_projectToken
address
undefined
_loanToValueRatioNumerator
uint8
undefined
_loanToValueRatioDenominator
uint8
undefined
_liquidationThresholdFactorNumerator
uint8
undefined
_liquidationThresholdFactorDenominator
uint8
undefined
_liquidationIncentiveNumerator
uint8
undefined
_liquidationIncentiveDenominator
uint8
undefined
supply
Parameters
lendingToken
address
undefined
lendingTokenAmount
uint256
undefined
supportsInterface
See {IERC165-supportsInterface}.
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
symbol
Returns
_0
string
undefined
totalBorrow
Parameters
_0
address
undefined
_1
address
undefined
Returns
_0
uint256
undefined
totalDepositedProjectToken
Parameters
_0
address
undefined
Returns
_0
uint256
undefined
totalOutstanding
Parameters
account
address
undefined
projectToken
address
undefined
lendingToken
address
undefined
Returns
_0
uint256
undefined
updateInterestInBorrowPositions
Parameters
account
address
undefined
lendingToken
address
undefined
withdraw
Parameters
projectToken
address
undefined
lendingToken
address
undefined
projectTokenAmount
uint256
undefined
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
lendingToken
address
undefined
prjDepositAmount
uint256
undefined
beneficiary indexed
address
undefined
Liquidate
Parameters
liquidator indexed
address
undefined
borrower indexed
address
undefined
lendingToken
address
undefined
prjAddress indexed
address
undefined
amountPrjLiquidated
uint256
undefined
LiquidationIncentiveSet
Parameters
tokenPrj indexed
address
undefined
ltfNumerator
uint8
undefined
ltfDenominator
uint8
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
RoleAdminChanged
Parameters
role indexed
bytes32
undefined
previousAdminRole indexed
bytes32
undefined
newAdminRole indexed
bytes32
undefined
RoleGranted
Parameters
role indexed
bytes32
undefined
account indexed
address
undefined
sender indexed
address
undefined
RoleRevoked
Parameters
role indexed
bytes32
undefined
account indexed
address
undefined
sender indexed
address
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
lendingToken
address
undefined
prjWithdrawAmount
uint256
undefined
beneficiary indexed
address
undefined
Last updated