General-14DAY-WETH

Verified contract

Proxy

Active on Ethereum with 289 txns
Deployed by via 0xa475bf8f at 16690238
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 48 additional slots
-
variable spans 1 additional slot
-
variable spans 4 additional slots
-
variable spans 4 additional slots
6 additional variables
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
)
ERC-721
--
0x49fd66a899cd8d71670a47a343f67551b7d22502e13024a48f02aadeb6251ddc
0xa8491bbd558c1f58ce7a57adef5bb9ef6dc4e069141a927a9cbea62cab6a07be
0x82cf8bf10c21a350bda2d9d7b4169f8559693968f25908cbfd0b14a09f72dcee
0x5995300493ac0813d173e49cb93050fc9728bfcec6c0a10a9318328d2654a18d
0x1cceaa921ce44f67ba0715f775190b128e5b6daf663eb8025f2c30c2e0612ece
0x95cfeee51f91a595fc7ab4ee426197e0e3525c7aa9683b5a5c464f2aa9c76912
0x9c1dac109b40ac49af7eb445e3ecce646e3b6e2053a8973ebdc557a149c93905
0x5629cd3812d62cb1f0860fb2cdf375f866e27adc7bf17305e3c72001368153c8
0x4caf9cba1732f38252f0925d0256f47a69589d96ac213b69564859e71c0093c6
0xaf6b9b9e0c5b0b7936101da49ce6573dec0ab4e71023d6577dc51e21e953911a

Functions
Getter at block 21314820
COLLATERAL_LIQUIDATOR_ROLE(view returns (bytes32)
0xa335b259335fa3a9eb51356010ae22f26e6d67512a1f9cd4cb939b2a2350a82b
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
EMERGENCY_ADMIN_ROLE(view returns (bytes32)
0x5c91514091af31f62f596a314af7d5be40146b2f2355969392f055e12e0982fb
IMPLEMENTATION_VERSION(view returns (string)
1.5
NOTE_SELLER_ROLE(view returns (bytes32)
0xe708fd762843c768f8212b72497e1c0f8f19f6490a59bcb0498eb8242d988737
SHARE_PRICE_PRORATION_BUCKETS(view returns (uint256)
14
TIME_BUCKET_DURATION(view returns (uint256)
604800
TOTAL_SHARE_PRICE_PRORATION_DURATION(view returns (uint256)
8467200
adminFeeRate(view returns (uint256)
0
balanceState(view returns (uint256 totalCashBalanceuint256 totalLoanBalanceuint256 totalAdminFeeBalanceuint256 totalWithdrawalBalance)
(totalCashBalance=0, totalLoanBalance=0, totalAdminFeeBalance=0, totalWithdrawalBalance=0)
currencyToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
loanPriceOracle(view returns (address)
0x56e1333cfe0e097efd7a13ec0ca78cb66b3fa758
name(view returns (string)
General-14DAY-WETH
paused(view returns (bool)
false
seniorTrancheRate(view returns (uint256)
1268391679
supportedNoteTokens(view returns (address[])
[0x5660E206496808F7b5cDB8C56A696a96AE5E9b23, 0x0E258c84Df0f8728ae4A6426EA5FD163Eb6b9D1B]
utilization(view returns (uint256)
0
Read-only
checkUpkeep(bytesview returns (boolbytes)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
loanState(address noteTokenuint256 loanIdview returns (struct VaultStorageV1Loan)
lpToken(uint8 trancheIdview returns (address)
noteAdapters(address noteTokenview returns (address)
pendingLoans(uint64 timeBucketaddress noteTokenview returns (uint256[])
priceNote(address noteTokenuint256 noteTokenIdview returns (uint256)
redemptionSharePrice(uint8 trancheIdview returns (uint256)
sharePrice(uint8 trancheIdview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
trancheState(uint8 trancheIdview returns (uint256 realizedValueuint256 estimatedValueuint256 pendingRedemptionsuint256 redemptionQueueuint256 processedRedemptionQueueuint256 depositSharePriceuint256 redemptionSharePrice_)
utilization(uint256 additionalLoanBalanceview returns (uint256)
State-modifying
deposit(uint8 trancheIduint256 amount
grantRole(bytes32 roleaddress account
initialize(string name_address currencyToken_address loanPriceOracle_address seniorLPToken_address juniorLPToken_
multicall(bytes[] datareturns (bytes[] results)
onCollateralLiquidated(address noteTokenuint256 loanIduint256 proceeds
onERC721Received(addressaddressuint256bytesreturns (bytes4)
onLoanExpired(address noteTokenuint256 loanId
onLoanRepaid(address noteTokenuint256 loanId
pause(
performUpkeep(bytes performData
redeem(uint8 trancheIduint256 shares
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
sellNote(address noteTokenuint256 noteTokenIduint256 minPurchasePricereturns (uint256)
sellNoteAndDeposit(address noteTokenuint256 noteTokenIduint256 minPurchasePriceuint256[2] allocationreturns (uint256)
setAdminFeeRate(uint256 rate
setLoanPriceOracle(address loanPriceOracle_
setNoteAdapter(address noteTokenaddress noteAdapter
setNoteSellerApproval(bool enabled
setSeniorTrancheRate(uint256 rate
unpause(
withdraw(uint8 trancheIduint256 maxAmount
withdrawAdminFees(address recipientuint256 amount
withdrawCollateral(address noteTokenuint256 loanId
Events
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
AdminFeeRateUpdated(uint256 rate
AdminFeesWithdrawn(address indexed accountuint256 amount
CollateralLiquidated(address indexed noteTokenuint256 indexed loanIduint256[2] trancheReturns
CollateralWithdrawn(address indexed noteTokenuint256 indexed loanIdaddress collateralTokenuint256 collateralTokenIdaddress collateralLiquidator
Deposited(address indexed accountuint8 indexed trancheIduint256 amountuint256 shares
LoanLiquidated(address indexed noteTokenuint256 indexed loanIduint256[2] trancheLosses
LoanPriceOracleUpdated(address loanPriceOracle
LoanRepaid(address indexed noteTokenuint256 indexed loanIduint256 adminFeeuint256[2] trancheReturns
NoteAdapterUpdated(address indexed noteTokenaddress noteAdapter
NotePurchased(address indexed accountaddress indexed noteTokenuint256 noteTokenIduint256 indexed loanIduint256 purchasePriceuint256[2] trancheContributions
NoteSellerApprovalUpdated(bool enabled
Paused(address account
Redeemed(address indexed accountuint8 indexed trancheIduint256 sharesuint256 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
SeniorTrancheRateUpdated(uint256 rate
Unpaused(address account
Withdrawn(address indexed accountuint8 indexed trancheIduint256 amount
Constructor
constructor(address beaconbytes data
Fallback and receive
fallback(
receive(
Errors
CallFailed(
InsolventTranche(uint8 trancheId
InsufficientCashAvailable(
InterestRateTooLow(
InvalidAddress(
InvalidLoanStatus(
LoanNotExpired(
LoanNotRepaid(
PRBMathUD60x18__FromUintOverflow(uint256 x
PRBMath__MulDivFixedPointOverflow(uint256 prod1
PRBMath__MulDivOverflow(uint256 prod1uint256 denominator
ParameterOutOfBounds(
PurchasePriceTooHigh(
PurchasePriceTooLow(
UnsupportedNoteParameters(
UnsupportedNoteToken(
UnsupportedTokenDecimals(