Primary Index Token
Methods
DEFAULT_ADMIN_ROLE
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
MODERATOR_ROLE
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
addLendingToken
Parameters
Name | Type | Description |
---|---|---|
_lendingToken | address | undefined |
_bLendingToken | address | undefined |
_isPaused | bool | undefined |
addProjectToken
Parameters
Name | Type | Description |
---|---|---|
_projectToken | address | undefined |
_loanToValueRatioNumerator | uint8 | undefined |
_loanToValueRatioDenominator | uint8 | undefined |
_liquidationThresholdFactorNumerator | uint8 | undefined |
_liquidationThresholdFactorDenominator | uint8 | undefined |
_liquidationIncentiveNumerator | uint8 | undefined |
_liquidationIncentiveDenominator | uint8 | undefined |
borrow
Parameters
Name | Type | Description |
---|---|---|
projectToken | address | undefined |
lendingToken | address | undefined |
lendingTokenAmount | uint256 | undefined |
borrowLimit
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
_1 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
borrowPosition
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
_1 | address | undefined |
_2 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
loanBody | uint256 | undefined |
accrual | uint256 | undefined |
decimals
Returns
Name | Type | Description |
---|---|---|
_0 | uint8 | undefined |
deposit
Parameters
Name | Type | Description |
---|---|---|
projectToken | address | undefined |
lendingToken | address | undefined |
projectTokenAmount | uint256 | undefined |
depositPosition
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
_1 | address | undefined |
_2 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
depositedProjectTokenAmount | uint256 | undefined |
getPosition
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
projectToken | address | undefined |
lendingToken | address | undefined |
Returns
Name | Type | Description |
---|---|---|
depositedProjectTokenAmount | uint256 | undefined |
loanBody | uint256 | undefined |
accrual | uint256 | undefined |
healthFactorNumerator | uint256 | undefined |
healthFactorDenominator | uint256 | undefined |
getProjectTokenEvaluation
Parameters
Name | Type | Description |
---|---|---|
projectToken | address | undefined |
projectTokenAmount | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
getRoleAdmin
Returns the admin role that controls role
. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bytes32 | undefined |
grandModerator
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
hasRole
Returns true
if account
has been granted role
.
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
healthFactor
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
projectToken | address | undefined |
lendingToken | address | undefined |
Returns
Name | Type | Description |
---|---|---|
numerator | uint256 | undefined |
denominator | uint256 | undefined |
initialize
lendingTokenInfo
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
isListed | bool | undefined |
isPaused | bool | undefined |
bLendingToken | contract BLendingToken | undefined |
lendingTokens
Parameters
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
lendingTokensLength
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
liquidate
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
projectToken | address | undefined |
lendingToken | address | undefined |
liquidationThreshold
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
projectToken | address | undefined |
lendingToken | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
name
Returns
Name | Type | Description |
---|---|---|
_0 | string | undefined |
pit
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
projectToken | address | undefined |
lendingToken | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
pitRemaining
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
projectToken | address | undefined |
lendingToken | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
priceOracle
Returns
Name | Type | Description |
---|---|---|
_0 | contract IPriceProviderAggregator | undefined |
projectTokenInfo
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
isListed | bool | undefined |
isDepositPaused | bool | undefined |
isWithdrawPaused | bool | undefined |
loanToValueRatio | PrimaryIndexToken.Ratio | undefined |
liquidationThresholdFactor | PrimaryIndexToken.Ratio | undefined |
liquidationIncentive | PrimaryIndexToken.Ratio | undefined |
projectTokens
Parameters
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
projectTokensLength
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
redeem
Parameters
Name | Type | Description |
---|---|---|
lendingToken | address | undefined |
bLendingTokenAmount | uint256 | undefined |
redeemUnderlying
Parameters
Name | Type | Description |
---|---|---|
lendingToken | address | undefined |
lendingTokenAmount | uint256 | undefined |
removeLendingToken
Parameters
Name | Type | Description |
---|---|---|
_lendingTokenId | uint256 | undefined |
removeProjectToken
Parameters
Name | Type | Description |
---|---|---|
_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
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
repay
Parameters
Name | Type | Description |
---|---|---|
projectToken | address | undefined |
lendingToken | address | undefined |
lendingTokenAmount | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
revokeModerator
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
setBorrowLimit
Parameters
Name | Type | Description |
---|---|---|
projectToken | address | undefined |
lendingToken | address | undefined |
_borrowLimit | uint256 | undefined |
setLendingTokenInfo
Parameters
Name | Type | Description |
---|---|---|
_lendingToken | address | undefined |
_bLendingToken | address | undefined |
_isPaused | bool | undefined |
setPausedLendingToken
Parameters
Name | Type | Description |
---|---|---|
_lendingToken | address | undefined |
_isPaused | bool | undefined |
setPausedProjectToken
Parameters
Name | Type | Description |
---|---|---|
_projectToken | address | undefined |
_isDepositPaused | bool | undefined |
_isWithdrawPaused | bool | undefined |
setPriceOracle
Parameters
Name | Type | Description |
---|---|---|
_priceOracle | address | undefined |
setProjectTokenInfo
Parameters
Name | Type | Description |
---|---|---|
_projectToken | address | undefined |
_loanToValueRatioNumerator | uint8 | undefined |
_loanToValueRatioDenominator | uint8 | undefined |
_liquidationThresholdFactorNumerator | uint8 | undefined |
_liquidationThresholdFactorDenominator | uint8 | undefined |
_liquidationIncentiveNumerator | uint8 | undefined |
_liquidationIncentiveDenominator | uint8 | undefined |
supply
Parameters
Name | Type | Description |
---|---|---|
lendingToken | address | undefined |
lendingTokenAmount | uint256 | undefined |
supportsInterface
See {IERC165-supportsInterface}.
Parameters
Name | Type | Description |
---|---|---|
interfaceId | bytes4 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
symbol
Returns
Name | Type | Description |
---|---|---|
_0 | string | undefined |
totalBorrow
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
_1 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
totalDepositedProjectToken
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
totalOutstanding
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
projectToken | address | undefined |
lendingToken | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
updateInterestInBorrowPositions
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
lendingToken | address | undefined |
withdraw
Parameters
Name | Type | Description |
---|---|---|
projectToken | address | undefined |
lendingToken | address | undefined |
projectTokenAmount | uint256 | undefined |
Events
AddPrjToken
Parameters
Name | Type | Description |
---|---|---|
tokenPrj | address | undefined |
Borrow
Parameters
Name | Type | Description |
---|---|---|
who | address | undefined |
borrowToken | address | undefined |
borrowAmount | uint256 | undefined |
prjAddress | address | undefined |
prjAmount | uint256 | undefined |
Deposit
Parameters
Name | Type | Description |
---|---|---|
who | address | undefined |
tokenPrj | address | undefined |
lendingToken | address | undefined |
prjDepositAmount | uint256 | undefined |
beneficiary | address | undefined |
Liquidate
Parameters
Name | Type | Description |
---|---|---|
liquidator | address | undefined |
borrower | address | undefined |
lendingToken | address | undefined |
prjAddress | address | undefined |
amountPrjLiquidated | uint256 | undefined |
LiquidationIncentiveSet
Parameters
Name | Type | Description |
---|---|---|
tokenPrj | address | undefined |
ltfNumerator | uint8 | undefined |
ltfDenominator | uint8 | undefined |
LiquidationThresholdFactorSet
Parameters
Name | Type | Description |
---|---|---|
tokenPrj | address | undefined |
ltfNumerator | uint8 | undefined |
ltfDenominator | uint8 | undefined |
LoanToValueRatioSet
Parameters
Name | Type | Description |
---|---|---|
tokenPrj | address | undefined |
lvrNumerator | uint8 | undefined |
lvrDenominator | uint8 | undefined |
Redeem
Parameters
Name | Type | Description |
---|---|---|
who | address | undefined |
redeemToken | address | undefined |
redeemBToken | address | undefined |
redeemAmount | uint256 | undefined |
RedeemUnderlying
Parameters
Name | Type | Description |
---|---|---|
who | address | undefined |
redeemToken | address | undefined |
redeemBToken | address | undefined |
redeemAmountUnderlying | uint256 | undefined |
RepayBorrow
Parameters
Name | Type | Description |
---|---|---|
who | address | undefined |
borrowToken | address | undefined |
borrowAmount | uint256 | undefined |
prjAddress | address | undefined |
isPositionFullyRepaid | bool | undefined |
RoleAdminChanged
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
previousAdminRole | bytes32 | undefined |
newAdminRole | bytes32 | undefined |
RoleGranted
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
sender | address | undefined |
RoleRevoked
Parameters
Name | Type | Description |
---|---|---|
role | bytes32 | undefined |
account | address | undefined |
sender | address | undefined |
Supply
Parameters
Name | Type | Description |
---|---|---|
who | address | undefined |
supplyToken | address | undefined |
supplyAmount | uint256 | undefined |
supplyBToken | address | undefined |
amountSupplyBTokenReceived | uint256 | undefined |
Withdraw
Parameters
Name | Type | Description |
---|---|---|
who | address | undefined |
tokenPrj | address | undefined |
lendingToken | address | undefined |
prjWithdrawAmount | uint256 | undefined |
beneficiary | address | undefined |
Last updated