This contract is being backfilled. You may encounter incomplete storage history.

TransparentUpgradeableProxy

Verified contract

Proxy

Active on Ethereum with 5 txns
Deployed by via 0x9afcc829 at 17264006
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
-
variable spans 10 additional slots
-
variable spans 1 additional slot
13 additional variables
ERC-20
--
ERC-20
--
 (#1)
ERC-1555
--
 (#9981)
ERC-721
--
 (#9628)
ERC-721
--
 (#9221)
ERC-721
--
 (#9199)
ERC-721
--
 (#9150)
ERC-721
--
 (#9063)
ERC-721
--
 (#8515)
ERC-721
--
0x6282ff94f14367904c507614db31e5a9309ac9dac4cdee0b847511789c167667
0x97ecc1e981e45933f9abcfaada03c88669ab3850ede85c12b950cd9cf8e9460d
0xb7ad5740440e88c52c49e057572a20db865caec69befe63bc0cceba137ef6fa8
0xa8c0123687b3c79395bb77892ca30f40fd53a28259086ba30fe3c155a3c5ef5b
0x9b82f638a871195a5b5e0ac920f21436cffecc3946f00354cf95ec7425249498

Functions
Getter at block 20795458
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
calculateAdditionalInterest(view returns (uint256)
413328682138170683
getStrategies(view returns (address[])
[]
nftContract(view returns (address)
0x5af0d9827e0c53e4799bb226655a1de152a425a5
nftValueProvider(view returns (address)
0x2f7ced605f2729e30d1ad3200e3bc442557da2ca
 
openPositionsIndexes(view returns (uint256[])
 
settings(view returns (struct RateLibRate debtInterestAprstruct RateLibRate unused15struct RateLibRate unused16struct RateLibRate unused17struct RateLibRate unused18struct RateLibRate unused12struct RateLibRate organizationFeeRatestruct RateLibRate insurancePurchaseRatestruct RateLibRate insuranceLiquidationPenaltyRateuint256 insuranceRepurchaseTimeLimituint256 borrowAmountCap)
stablecoin(view returns (address)
0x821a278dfff762c76410264303f25bf42e195c0c
totalDebtAmount(view returns (uint256)
103886588113802977746
totalFeeCollected(view returns (uint256)
1519754589216430240
totalPositions(view returns (uint256)
63
Read-only
getCreditLimit(address _owneruint256 _nftIndexview returns (uint256)
getDebtInterest(uint256 _nftIndexview returns (uint256)
getLiquidationLimit(address _owneruint256 _nftIndexview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
hasStrategy(address _strategyview returns (bool)
isLiquidatable(uint256 _nftIndexview returns (bool)
positionOwner(uint256view returns (address)
positions(uint256view returns (uint8 borrowTypeuint256 debtPrincipaluint256 debtPortionuint256 debtAmountForRepurchaseuint256 liquidatedAtaddress liquidatoraddress strategy)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
admin(returns (address admin_)
changeAdmin(address newAdmin
implementation(returns (address implementation_)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
accrue(
addStrategy(address _strategy
borrow(uint256 _nftIndexuint256 _amountbool _useInsurance
claimExpiredInsuranceNFT(uint256 _nftIndexaddress _recipient
closePosition(uint256 _nftIndex
collect(
depositInStrategy(uint256[] _nftIndexesuint256 _strategyIndexbytes _additionalData
doActions(uint8[] _actionsbytes[] _data
doActionsFor(address _accountuint8[] _actionsbytes[] _data
finalizeUpgrade(address _stablecoin
flashStrategyFromStandardStrategy(uint256[] _nftIndexesuint256 _sourceStrategyIndexuint256 _flashStrategyIndexbytes _sourceStrategyDatabytes _flashStrategyData
forceClosePosition(address _accountuint256 _nftIndexaddress _recipientreturns (uint256)
grantRole(bytes32 roleaddress account
importPosition(address _accountuint256 _nftIndexuint256 _amountbool _insuranceaddress _strategy
initialize(address _stablecoinaddress _nftContractaddress _nftValueProviderstruct PETHNFTVaultVaultSettings _settings
liquidate(uint256 _nftIndexaddress _recipient
removeStrategy(address _strategy
renounceRole(bytes32 roleaddress account
repay(uint256 _nftIndexuint256 _amount
repurchase(uint256 _nftIndexuint256 _repayAmount
rescueToken(address _tokenuint256 _amount
revokeRole(bytes32 roleaddress account
setSettings(struct PETHNFTVaultVaultSettings _settings
withdrawFromStrategy(uint256[] _nftIndexes
Events
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
Accrual(uint256 additionalInterest
Borrowed(address indexed owneruint256 indexed indexuint256 amountbool insured
FeeCollected(uint256 collectedAmount
InsuranceExpired(address indexed owneruint256 indexed index
Liquidated(address indexed liquidatoraddress indexed owneruint256 indexed indexbool insured
LiquidationRepayment(address indexed owneruint256 indexed indexuint256 repayAmount
PositionClosed(address indexed owneruint256 indexed indexbool forced
PositionImported(address indexed owneruint256 indexed indexuint256 amountbool insuredaddress strategy
PositionOpened(address indexed owneruint256 indexed index
Repaid(address indexed owneruint256 indexed indexuint256 amount
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
StrategyDeposit(uint256 indexed nftIndexaddress indexed strategybool isStandard
StrategyWithdrawal(uint256 indexed nftIndexaddress indexed strategy
Constructor
constructor(address _logicaddress admin_bytes _data
Fallback and receive
fallback(
receive(
Errors
DebtCapReached(
InvalidAmount(uint256 amount
InvalidInsuranceMode(
InvalidLength(
InvalidNFT(uint256 nftIndex
InvalidNFTType(bytes32 nftType
InvalidOracleResults(
InvalidPosition(uint256 nftIndex
InvalidRate(
InvalidStrategy(
InvalidUnlockTime(uint256 unlockTime
NoDebt(
NonZeroDebt(uint256 debtAmount
PositionInsuranceExpired(uint256 nftIndex
PositionInsuranceNotExpired(uint256 nftIndex
PositionLiquidated(uint256 nftIndex
Unauthorized(
UnknownAction(uint8 action
ZeroAddress(