PrimaryLendingPlatformV2Zksync

Verified contract

Implementation

Active on Base with 1 txns
Deployed by via 0x4c5b5710 at 20869898
Slot
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

No balances found for "PrimaryLendingPlatformV2Zksync"

0x6bda8f6c9f64d19ed185cd884398f317c5a5b0ae6ee49474c793360376a0ad71
From

Functions
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(addressview returns (uint256)
borrowLimitPerLendingToken(addressview returns (uint256)
borrowPosition(addressaddressaddressview returns (uint256 loanBodyuint256 accrual)
getCollateralAvailableToWithdraw(address accountaddress projectTokenaddress lendingTokenview returns (uint256 collateralProjectToWithdraw)
getDepositedAmount(address projectTokenaddress userview returns (uint256)
getLendingAvailableToBorrow(address accountaddress projectTokenaddress lendingTokenview returns (uint256 availableToBorrow)
getLendingToken(address useraddress projectTokenview returns (address actualLendingToken)
getLoanToValueRatio(address projectTokenaddress lendingTokenview returns (uint256 lvrNumeratoruint256 lvrDenominator)
getPosition(address accountaddress projectTokenaddress lendingTokenview returns (uint256 depositedProjectTokenAmountuint256 loanBodyuint256 accrualuint256 healthFactorNumeratoruint256 healthFactorDenominator)
getRelatedContract(address relatedContractview returns (bool)
getRoleAdmin(bytes32 roleview returns (bytes32)
getTokenEvaluation(address tokenuint256 tokenAmountview returns (uint256 collateralEvaluationuint256 capitalEvaluation)
getTokensUpdateFinalPrices(address projectTokenaddress actualLendingTokenbool isBorrowview returns (address[] tokens)
getTotalBorrowPerCollateral(address projectTokenview returns (uint256)
getTotalBorrowPerLendingToken(address lendingTokenview returns (uint256 amountInUSD)
hasRole(bytes32 roleaddress accountview returns (bool)
healthFactor(address accountaddress projectTokenaddress lendingTokenview returns (uint256 numeratoruint256 denominator)
isRelatedContract(addressview returns (bool)
lendingTokenInfo(addressview returns (bool isListedbool isPausedaddress bLendingTokenstruct PrimaryLendingPlatformV2CoreRatio loanToValueRatio)
lendingTokens(uint256view returns (address)
pit(address accountaddress projectTokenaddress lendingTokenview returns (uint256)
pitCollateral(address accountaddress projectTokenview returns (uint256)
pitRemaining(address accountaddress projectTokenaddress lendingTokenview returns (uint256 remaining)
projectTokenInfo(addressview returns (bool isListedbool isDepositPausedbool isWithdrawPausedstruct PrimaryLendingPlatformV2CoreRatio loanToValueRatio)
projectTokens(uint256view returns (address)
supportsInterface(bytes4 interfaceIdview returns (bool)
totalBorrow(addressaddressview returns (uint256)
totalBorrowPerLendingToken(addressview returns (uint256)
totalDepositedProjectToken(addressview returns (uint256)
totalOutstanding(address accountaddress projectTokenaddress lendingTokenview returns (uint256)
totalOutstandingInUSD(address accountaddress projectTokenaddress lendingTokenview returns (uint256 amountInUSD)
State-modifying
borrow(address projectTokenaddress lendingTokenuint256 lendingTokenAmountbytes32[] priceIdsbytes[] updateDatapayable 
borrowFromRelatedContract(address projectTokenaddress lendingTokenuint256 lendingTokenAmountaddress userbytes32[] priceIdsbytes[] updateDatapayable returns (uint256)
calcAndTransferDepositPosition(address projectTokenuint256 projectTokenAmountaddress useraddress receiverreturns (uint256)
calcBorrowPosition(address borroweraddress projectTokenaddress lendingTokenuint256 lendingTokenAmountaddress currentLendingToken
calcDepositPosition(address projectTokenuint256 projectTokenAmountaddress user
deposit(address projectTokenuint256 projectTokenAmount
depositFromRelatedContracts(address projectTokenuint256 projectTokenAmountaddress useraddress beneficiary
getCollateralAvailableToWithdrawWithUpdatePrices(address accountaddress projectTokenaddress lendingTokenbytes32[] priceIdsbytes[] updateDatapayable returns (uint256 collateralProjectToWithdraw)
getLendingAvailableToBorrowWithUpdatePrices(address accountaddress projectTokenaddress lendingTokenbytes32[] priceIdsbytes[] updateDatapayable returns (uint256 availableToBorrow)
getPositionWithUpdatePrices(address accountaddress projectTokenaddress lendingTokenbytes32[] priceIdsbytes[] updateDatapayable returns (uint256 depositedProjectTokenAmountuint256 loanBodyuint256 accrualuint256 healthFactorNumeratoruint256 healthFactorDenominator)
getTokenEvaluationWithUpdatePrices(address tokenuint256 tokenAmountbytes32[] priceIdsbytes[] updateDatapayable returns (uint256 collateralEvaluationuint256 capitalEvaluation)
grantRole(bytes32 roleaddress account
initialize(
pitRemainingWithUpdatePrices(address accountaddress projectTokenaddress lendingTokenbytes32[] priceIdsbytes[] updateDatapayable returns (uint256)
redeem(address lendingTokenuint256 bLendingTokenAmountbytes32[] priceIdsbytes[] updateDatapayable 
redeemFromRelatedContract(address lendingTokenuint256 bLendingTokenAmountaddress userbytes32[] priceIdsbytes[] updateDatapayable 
redeemUnderlying(address lendingTokenuint256 lendingTokenAmountbytes32[] priceIdsbytes[] updateDatapayable 
redeemUnderlyingFromRelatedContract(address lendingTokenuint256 lendingTokenAmountaddress userbytes32[] priceIdsbytes[] updateDatapayable 
removeLendingToken(uint256 lendingTokenIdaddress lendingToken
removeProjectToken(uint256 projectTokenIdaddress projectToken
renounceRole(bytes32 roleaddress account
repay(address projectTokenaddress lendingTokenuint256 lendingTokenAmountreturns (uint256)
repayFromRelatedContract(address projectTokenaddress lendingTokenuint256 lendingTokenAmountaddress repaireraddress borrowerreturns (uint256)
revokeRole(bytes32 roleaddress account
setBorrowLimitPerCollateralAsset(address projectTokenuint256 newBorrowLimit
setBorrowLimitPerLendingAsset(address lendingTokenuint256 newBorrowLimit
setLendingTokenInfo(address lendingTokenaddress bLendingTokenbool isPauseduint8 loanToValueRatioNumeratoruint8 loanToValueRatioDenominator
setPriceOracle(address newPriceOracle
setPrimaryLendingPlatformLeverage(address newPrimaryLendingPlatformLeverage
setPrimaryLendingPlatformModerator(address newModeratorContract
setProjectTokenInfo(address projectTokenbool isDepositPausedbool isWithdrawPauseduint8 loanToValueRatioNumeratoruint8 loanToValueRatioDenominator
setRelatedContract(address relatedContractbool isRelated
supply(address lendingTokenuint256 lendingTokenAmountbytes32[] priceIdsbytes[] updateDatapayable 
supplyFromRelatedContract(address lendingTokenuint256 lendingTokenAmountaddress userbytes32[] priceIdsbytes[] updateDatapayable 
updateInterestInBorrowPositions(address accountaddress lendingToken
withdraw(address projectTokenuint256 projectTokenAmountbytes32[] priceIdsbytes[] updateDatapayable 
withdrawFromRelatedContracts(address projectTokenuint256 projectTokenAmountaddress useraddress beneficiarybytes32[] priceIdsbytes[] updateDatapayable returns (uint256)
Events
Borrow(address indexed whoaddress indexed borrowTokenuint256 borrowAmountaddress indexed prjAddressuint256 prjAmount
Deposit(address indexed whoaddress indexed tokenPrjuint256 prjDepositAmountaddress indexed beneficiary
Initialized(uint8 version
Redeem(address indexed whoaddress indexed redeemTokenaddress indexed redeemBTokenuint256 redeemAmount
RedeemUnderlying(address indexed whoaddress indexed redeemTokenaddress indexed redeemBTokenuint256 redeemAmountUnderlying
RepayBorrow(address indexed whoaddress indexed borrowTokenuint256 borrowAmountaddress indexed prjAddressbool isPositionFullyRepaid
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SetModeratorContract(address indexed newAddress
Supply(address indexed whoaddress indexed supplyTokenuint256 supplyAmountaddress indexed supplyBTokenuint256 amountSupplyBTokenReceived
Withdraw(address indexed whoaddress indexed tokenPrjaddress lendingTokenuint256 prjWithdrawAmountaddress indexed beneficiary
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
AvailableAmounToBorrowIsZero(
BLendingTokenAmoutIsZero(
CallerIsNotAdmin(
CallerIsNotModerator(
CallerIsNotRelatedContract(
InvalidAddress(
InvalidAmount(
InvalidAmountOrDepositDoesNotExist(
InvalidLendingAmount(
InvalidLendingToken(
InvalidPosition(
LendingTokenIsNotListed(
MintErrorIsNotZero(
MintedAmountIsZero(
NoBorrowPosition(
ProjectTokenIsNotListed(
RedeemErrorIsNotZero(
RedeemUnderlyingErrorIsNotZero(
TokenIsPaused(
TokensListIsEmpty(
WithdrawableAmountIsZero(