PrimaryLendingPlatformV2Zksync
Verified contract
Implementation
Active on
Base with 1 txns
Storage
Map
Table
Raw
Constants and immutables
4
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
1 additional
variable
Balances ($0.00)
No balances found for "PrimaryLendingPlatformV2Zksync"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20870222 | a month ago | | | 0 | 5.2153722e-7 |
ABI
ABI objects
Getter at block 22758211
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MODERATOR_ROLE() view returns (bytes32)
0x71f3d55856e4058ed06ee057d79ada615f65cdf5f9ee88181b914225088f834f
lendingTokensLength() view returns (uint256)
0
priceOracle() view returns (address)
0x0000000000000000000000000000000000000000
primaryLendingPlatformLeverage() view returns (address)
0x0000000000000000000000000000000000000000
primaryLendingPlatformModerator() view returns (address)
0x0000000000000000000000000000000000000000
projectTokensLength() view returns (uint256)
0
Read-only
borrowLimitPerCollateral(address) view returns (uint256)
borrowLimitPerLendingToken(address) view returns (uint256)
borrowPosition(address, address, address) view returns (uint256 loanBody, uint256 accrual)
getCollateralAvailableToWithdraw(address account, address projectToken, address lendingToken) view returns (uint256 collateralProjectToWithdraw)
getDepositedAmount(address projectToken, address user) view returns (uint256)
getLendingAvailableToBorrow(address account, address projectToken, address lendingToken) view returns (uint256 availableToBorrow)
getLendingToken(address user, address projectToken) view returns (address actualLendingToken)
getLoanToValueRatio(address projectToken, address lendingToken) view returns (uint256 lvrNumerator, uint256 lvrDenominator)
getPosition(address account, address projectToken, address lendingToken) view returns (uint256 depositedProjectTokenAmount, uint256 loanBody, uint256 accrual, uint256 healthFactorNumerator, uint256 healthFactorDenominator)
getRelatedContract(address relatedContract) view returns (bool)
getRoleAdmin(bytes32 role) view returns (bytes32)
getTokenEvaluation(address token, uint256 tokenAmount) view returns (uint256 collateralEvaluation, uint256 capitalEvaluation)
getTokensUpdateFinalPrices(address projectToken, address actualLendingToken, bool isBorrow) view returns (address[] tokens)
getTotalBorrowPerCollateral(address projectToken) view returns (uint256)
getTotalBorrowPerLendingToken(address lendingToken) view returns (uint256 amountInUSD)
hasRole(bytes32 role, address account) view returns (bool)
healthFactor(address account, address projectToken, address lendingToken) view returns (uint256 numerator, uint256 denominator)
isRelatedContract(address) view returns (bool)
lendingTokenInfo(address) view returns (bool isListed, bool isPaused, address bLendingToken, struct PrimaryLendingPlatformV2CoreRatio loanToValueRatio)
lendingTokens(uint256) view returns (address)
pit(address account, address projectToken, address lendingToken) view returns (uint256)
pitCollateral(address account, address projectToken) view returns (uint256)
pitRemaining(address account, address projectToken, address lendingToken) view returns (uint256 remaining)
projectTokenInfo(address) view returns (bool isListed, bool isDepositPaused, bool isWithdrawPaused, struct PrimaryLendingPlatformV2CoreRatio loanToValueRatio)
projectTokens(uint256) view returns (address)
supportsInterface(bytes4 interfaceId) view returns (bool)
totalBorrow(address, address) view returns (uint256)
totalBorrowPerLendingToken(address) view returns (uint256)
totalDepositedProjectToken(address) view returns (uint256)
totalOutstanding(address account, address projectToken, address lendingToken) view returns (uint256)
totalOutstandingInUSD(address account, address projectToken, address lendingToken) view returns (uint256 amountInUSD)
State-modifying
Events borrow(address projectToken, address lendingToken, uint256 lendingTokenAmount, bytes32[] priceIds, bytes[] updateData) payable
borrowFromRelatedContract(address projectToken, address lendingToken, uint256 lendingTokenAmount, address user, bytes32[] priceIds, bytes[] updateData) payable returns (uint256)
calcAndTransferDepositPosition(address projectToken, uint256 projectTokenAmount, address user, address receiver) returns (uint256)
calcBorrowPosition(address borrower, address projectToken, address lendingToken, uint256 lendingTokenAmount, address currentLendingToken)
calcDepositPosition(address projectToken, uint256 projectTokenAmount, address user)
deposit(address projectToken, uint256 projectTokenAmount)
depositFromRelatedContracts(address projectToken, uint256 projectTokenAmount, address user, address beneficiary)
getCollateralAvailableToWithdrawWithUpdatePrices(address account, address projectToken, address lendingToken, bytes32[] priceIds, bytes[] updateData) payable returns (uint256 collateralProjectToWithdraw)
getLendingAvailableToBorrowWithUpdatePrices(address account, address projectToken, address lendingToken, bytes32[] priceIds, bytes[] updateData) payable returns (uint256 availableToBorrow)
getPositionWithUpdatePrices(address account, address projectToken, address lendingToken, bytes32[] priceIds, bytes[] updateData) payable returns (uint256 depositedProjectTokenAmount, uint256 loanBody, uint256 accrual, uint256 healthFactorNumerator, uint256 healthFactorDenominator)
getTokenEvaluationWithUpdatePrices(address token, uint256 tokenAmount, bytes32[] priceIds, bytes[] updateData) payable returns (uint256 collateralEvaluation, uint256 capitalEvaluation)
grantRole(bytes32 role, address account)
initialize()
pitRemainingWithUpdatePrices(address account, address projectToken, address lendingToken, bytes32[] priceIds, bytes[] updateData) payable returns (uint256)
redeem(address lendingToken, uint256 bLendingTokenAmount, bytes32[] priceIds, bytes[] updateData) payable
redeemFromRelatedContract(address lendingToken, uint256 bLendingTokenAmount, address user, bytes32[] priceIds, bytes[] updateData) payable
redeemUnderlying(address lendingToken, uint256 lendingTokenAmount, bytes32[] priceIds, bytes[] updateData) payable
redeemUnderlyingFromRelatedContract(address lendingToken, uint256 lendingTokenAmount, address user, bytes32[] priceIds, bytes[] updateData) payable
removeLendingToken(uint256 lendingTokenId, address lendingToken)
removeProjectToken(uint256 projectTokenId, address projectToken)
renounceRole(bytes32 role, address account)
repay(address projectToken, address lendingToken, uint256 lendingTokenAmount) returns (uint256)
repayFromRelatedContract(address projectToken, address lendingToken, uint256 lendingTokenAmount, address repairer, address borrower) returns (uint256)
revokeRole(bytes32 role, address account)
setBorrowLimitPerCollateralAsset(address projectToken, uint256 newBorrowLimit)
setBorrowLimitPerLendingAsset(address lendingToken, uint256 newBorrowLimit)
setLendingTokenInfo(address lendingToken, address bLendingToken, bool isPaused, uint8 loanToValueRatioNumerator, uint8 loanToValueRatioDenominator)
setPriceOracle(address newPriceOracle)
setPrimaryLendingPlatformLeverage(address newPrimaryLendingPlatformLeverage)
setPrimaryLendingPlatformModerator(address newModeratorContract)
setProjectTokenInfo(address projectToken, bool isDepositPaused, bool isWithdrawPaused, uint8 loanToValueRatioNumerator, uint8 loanToValueRatioDenominator)
setRelatedContract(address relatedContract, bool isRelated)
supply(address lendingToken, uint256 lendingTokenAmount, bytes32[] priceIds, bytes[] updateData) payable
supplyFromRelatedContract(address lendingToken, uint256 lendingTokenAmount, address user, bytes32[] priceIds, bytes[] updateData) payable
updateInterestInBorrowPositions(address account, address lendingToken)
withdraw(address projectToken, uint256 projectTokenAmount, bytes32[] priceIds, bytes[] updateData) payable
withdrawFromRelatedContracts(address projectToken, uint256 projectTokenAmount, address user, address beneficiary, bytes32[] priceIds, bytes[] updateData) payable returns (uint256)
Borrow(address indexed who, address indexed borrowToken, uint256 borrowAmount, address indexed prjAddress, uint256 prjAmount)
Deposit(address indexed who, address indexed tokenPrj, uint256 prjDepositAmount, address indexed beneficiary)
Initialized(uint8 version)
Redeem(address indexed who, address indexed redeemToken, address indexed redeemBToken, uint256 redeemAmount)
RedeemUnderlying(address indexed who, address indexed redeemToken, address indexed redeemBToken, uint256 redeemAmountUnderlying)
RepayBorrow(address indexed who, address indexed borrowToken, uint256 borrowAmount, address indexed prjAddress, bool isPositionFullyRepaid)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
SetModeratorContract(address indexed newAddress)
Supply(address indexed who, address indexed supplyToken, uint256 supplyAmount, address indexed supplyBToken, uint256 amountSupplyBTokenReceived)
Withdraw(address indexed who, address indexed tokenPrj, address lendingToken, uint256 prjWithdrawAmount, address indexed beneficiary)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
AvailableAmounToBorrowIsZero()
BLendingTokenAmoutIsZero()
CallerIsNotAdmin()
CallerIsNotModerator()
CallerIsNotRelatedContract()
InvalidAddress()
InvalidAmount()
InvalidAmountOrDepositDoesNotExist()
InvalidLendingAmount()
InvalidLendingToken()
InvalidPosition()
LendingTokenIsNotListed()
MintErrorIsNotZero()
MintedAmountIsZero()
NoBorrowPosition()
ProjectTokenIsNotListed()
RedeemErrorIsNotZero()
RedeemUnderlyingErrorIsNotZero()
TokenIsPaused()
TokensListIsEmpty()
WithdrawableAmountIsZero()