General-WETH

Verified contract

Proxy

Active on Ethereum with 698 txns
Deployed by via 0x5439cd57 at 15239466
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-20
Value $8,758.97
 (#16)
ERC-721
--
 (#15)
ERC-721
--
 (#14)
ERC-721
--
 (#13)
ERC-721
--
 (#12)
ERC-721
--
 (#11)
ERC-721
--
 (#10)
ERC-721
--
 (#9)
ERC-721
--
 (#8)
ERC-721
--
0x5191c797c221df04a4fed6e089cbff85046079e8018b491955b50a33a22649cc
0x7227c410ad60f2efd5f60634247321750203f7c1a4ed8a48316fc7e68b2208cd
0xb92315d2f7d41e2651f3d541649ba2f02563056d08458ac453724e6de357d3bf
0x0c23137cf6e60e5c8bb925710429bbf43b595d836162a5cb36d613e947183bf8
0xa0dac4a6a1646af6fe812a32e36971fa9f907b5b77c81e3c481ab6aee699fb5b
0xe0a6d6f81d0c27b4c858fe491fc058647f43ffa36a0ca2b3d8b738535c0a2856
From
0x793f9e3c57acec17fdb0e19006cc9ba94ddd5313ade016e55e536fbc19c2741e
From
0xf7f9939dc0a74222290661ade3aa69ac6ac948ea8321d94d80831468279c7d52
0x0c48b0446a82fb02621a788076a099d66dafb2ee16f3fe2fe57ddfa6240c4ac4
0xc2822927b0384f75bbdde387964addc210fd6b092da20b32bc1680dbe57075fb

Functions
Getter at block 21283254
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=1019408790131910762, totalLoanBalance=0, totalAdminFeeBalance=0, totalWithdrawalBalance=1385363189776314446)
currencyToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
loanPriceOracle(view returns (address)
0xcde04b3f75616b2333fc2d51c0cce6ae89329a71
name(view returns (string)
General-WETH
paused(view returns (bool)
false
seniorTrancheRate(view returns (uint256)
1268391679
supportedNoteTokens(view returns (address[])
[0x5660E206496808F7b5cDB8C56A696a96AE5E9b23, 0x349A026A43FFA8e2Ab4c4e59FCAa93F87Bd8DdeE, 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(