Verified contractExactMIT
AssetVault
Address0xbee121b1fcdfd271de5746aa1a697c131cb33bde
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.25
- Same code
Only this contract
Details
- Compiler
- solc 0.8.25+commit.b61c2a91
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,486,614
- Creation transaction
- 0xcd4041ee6d…e79765c7b9
Read23
- ADMIN_ROLE() → (bytes32)
- DEFAULT_ADMIN_ROLE() → (bytes32)
- DEPOSIT_ROLE() → (bytes32)
- OPERATOR_ROLE() → (bytes32)
- PAUSE_ROLE() → (bytes32)
- TOKEN_ROLE() → (bytes32)
- UPGRADE_INTERFACE_VERSION() → (string)
- UPGRADE_ROLE() → (bytes32)
- VALIDATOR_ROLE() → (bytes32)
- availableValidators(bytes32) → (uint256)
- fees(address) → (uint256)
- getHardCap(address) → (uint256)
- getRoleAdmin(bytes32) → (bytes32)
- hasRole(bytes32,address) → (bool)
- nonceUsed(uint256) → (bool)
- paused() → (bool)
- pendingWithdrawChallengePeriod() → (uint256)
- proxiableUUID() → (bytes32)
- rebalanceReceiver() → (address)
- supportedTokens(address) → (address,uint256,uint256,uint256,uint256)
- supportsInterface(bytes4) → (bool)
- validatorRequiredPowers(bytes32) → (uint256)
- withdrawals(uint256) → (bool,bool,bool,uint256,address,uint256,address,uint256)
Write21
- addToken(address,uint256,uint256)
- addValidators(tuple[],uint256)
- batchFlushWithdrawals(uint256[],tuple[],bytes[],uint256)
- batchResetWithdrawHotAmount(address[],tuple[],bytes[],uint256)
- batchTogglePendingWithdrawal(uint256[],bool,tuple[],bytes[],uint256)
- depositOnBehalf(address,address,uint256,bytes)
- executeExpiredPendingWithdrawal(uint256)
- grantRole(bytes32,address)
- initialize(uint256)
- rebalanceWithdraw(address,uint256,tuple[],bytes[],uint256)
- removeValidators(tuple[])
- renounceRole(bytes32,address)
- requestWithdraw(uint256,bool,tuple[],tuple,bytes[],uint256)
- revokeRole(bytes32,address)
- setRebalanceReceiver(address)
- toggle(bool)
- updatePendingWithdrawChallengePeriod(uint256)
- updateToken(address,uint256,uint256)
- updateValidatorRequiredPower(tuple[],uint256)
- upgradeToAndCall(address,bytes)
- withdrawFees(address[],address)
Events23
- DepositETH(address,uint256)
- DepositOnBehalf(address,address,address,uint256,bytes)
- FeesWithdrawn(address)
- Initialized(uint64)
- Paused(address)
- PendingWithdrawChallengePeriodUpdated(uint256,uint256)
- PendingWithdrawalToggled(uint256,bool,uint256)
- RebalanceReceiverUpdated(address,address)
- RebalanceWithdrawExecuted(address,address,uint256,uint256)
- RoleAdminChanged(bytes32,bytes32,bytes32)
- RoleGranted(bytes32,address,address)
- RoleRevoked(bytes32,address,address)
- TokenAdded(address,uint256,uint256)
- TokenUpdated(address,uint256,uint256)
- Unpaused(address)
- Upgraded(address)
- ValidatorRequiredPowerUpdated(bytes32,address[],uint256,uint256)
- ValidatorsAdded(bytes32,address[],uint256,uint256,uint256)
- ValidatorsRemoved(bytes32,address[],uint256)
- WithdrawExecuted(uint256,address,address,uint256,uint256,bool,bool,bool,uint256)
- WithdrawHotAmountRefilled(address,uint256,uint256)
- WithdrawHotAmountUsed(address,uint256,uint256,bool)
- WithdrawalAdded(uint256,address,uint256,uint256,address,bool,bool,uint256)
Errors36
- AccessControlBadConfirmation()
- AccessControlUnauthorizedAccount(address,bytes32)
- AddressEmptyCode(address)
- ChallengePeriodExpired()
- ChallengePeriodNotExpired()
- ERC1967InvalidImplementation(address)
- ERC1967NonPayable()
- EmptyIds()
- EmptyTokens()
- EnforcedPause()
- ExpectedPause()
- FailedCall()
- InsufficientBalance(uint256,uint256)
- InsufficientVaultBalance()
- InvalidInitialization()
- InvalidParameters()
- InvalidValidators()
- NonceAlreadyUsed()
- NotEnoughValidatorPower()
- NotInitializing()
- ReentrancyGuardReentrantCall()
- SafeERC20FailedOperation(address)
- TokenAlreadyExists()
- TokenInvalid()
- TokensAndAmountsLengthMismatch()
- UUPSUnauthorizedCallContext()
- UUPSUnsupportedProxiableUUID(bytes32)
- ValidatorsAlreadySet()
- ValidatorsNotOrdered()
- ValidatorsNotSet()
- WithdrawAlreadyInDesiredState()
- WithdrawalAlreadyExecuted()
- WithdrawalExistenceCheckFailed()
- WithdrawalMustBePending()
- WithdrawalPaused()
- ZeroAmount()
ABI as JSON
[
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"name": "AccessControlBadConfirmation",
"type": "error",
"inputs": []
},
{
"name": "AccessControlUnauthorizedAccount",
"type": "error",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "neededRole",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"name": "AddressEmptyCode",
"type": "error",
"inputs": [
{
"name": "target",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "ChallengePeriodExpired",
"type": "error",
"inputs": []
},
{
"name": "ChallengePeriodNotExpired",
"type": "error",
"inputs": []
},
{
"name": "ERC1967InvalidImplementation",
"type": "error",
"inputs": [
{
"name": "implementation",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "ERC1967NonPayable",
"type": "error",
"inputs": []
},
{
"name": "EmptyIds",
"type": "error",
"inputs": []
},
{
"name": "EmptyTokens",
"type": "error",
"inputs": []
},
{
"name": "EnforcedPause",
"type": "error",
"inputs": []
},
{
"name": "ExpectedPause",
"type": "error",
"inputs": []
},
{
"name": "FailedCall",
"type": "error",
"inputs": []
},
{
"name": "InsufficientBalance",
"type": "error",
"inputs": [
{
"name": "balance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "needed",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "InsufficientVaultBalance",
"type": "error",
"inputs": []
},
{
"name": "InvalidInitialization",
"type": "error",
"inputs": []
},
{
"name": "InvalidParameters",
"type": "error",
"inputs": []
},
{
"name": "InvalidValidators",
"type": "error",
"inputs": []
},
{
"name": "NonceAlreadyUsed",
"type": "error",
"inputs": []
},
{
"name": "NotEnoughValidatorPower",
"type": "error",
"inputs": []
},
{
"name": "NotInitializing",
"type": "error",
"inputs": []
},
{
"name": "ReentrancyGuardReentrantCall",
"type": "error",
"inputs": []
},
{
"name": "SafeERC20FailedOperation",
"type": "error",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "TokenAlreadyExists",
"type": "error",
"inputs": []
},
{
"name": "TokenInvalid",
"type": "error",
"inputs": []
},
{
"name": "TokensAndAmountsLengthMismatch",
"type": "error",
"inputs": []
},
{
"name": "UUPSUnauthorizedCallContext",
"type": "error",
"inputs": []
},
{
"name": "UUPSUnsupportedProxiableUUID",
"type": "error",
"inputs": [
{
"name": "slot",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"name": "ValidatorsAlreadySet",
"type": "error",
"inputs": []
},
{
"name": "ValidatorsNotOrdered",
"type": "error",
"inputs": []
},
{
"name": "ValidatorsNotSet",
"type": "error",
"inputs": []
},
{
"name": "WithdrawAlreadyInDesiredState",
"type": "error",
"inputs": []
},
{
"name": "WithdrawalAlreadyExecuted",
"type": "error",
"inputs": []
},
{
"name": "WithdrawalExistenceCheckFailed",
"type": "error",
"inputs": []
},
{
"name": "WithdrawalMustBePending",
"type": "error",
"inputs": []
},
{
"name": "WithdrawalPaused",
"type": "error",
"inputs": []
},
{
"name": "ZeroAmount",
"type": "error",
"inputs": []
},
{
"name": "DepositETH",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "DepositOnBehalf",
"type": "event",
"inputs": [
{
"name": "caller",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "forAccount",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"name": "FeesWithdrawn",
"type": "event",
"inputs": [
{
"name": "to",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Initialized",
"type": "event",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"name": "Paused",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "PendingWithdrawChallengePeriodUpdated",
"type": "event",
"inputs": [
{
"name": "oldValue",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newValue",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "PendingWithdrawalToggled",
"type": "event",
"inputs": [
{
"name": "withdrawalId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "paused",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "nonce",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RebalanceReceiverUpdated",
"type": "event",
"inputs": [
{
"name": "oldReceiver",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "newReceiver",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "RebalanceWithdrawExecuted",
"type": "event",
"inputs": [
{
"name": "receiver",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "nonce",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "RoleAdminChanged",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "previousAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "newAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "RoleGranted",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "RoleRevoked",
"type": "event",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "TokenAdded",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "hardCapRatioBps",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "refillRateMps",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "TokenUpdated",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "hardCapRatioBps",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "refillRateMps",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Unpaused",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Upgraded",
"type": "event",
"inputs": [
{
"name": "implementation",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "ValidatorRequiredPowerUpdated",
"type": "event",
"inputs": [
{
"name": "hash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
},
{
"name": "validatorAddresses",
"type": "address[]",
"indexed": false,
"internalType": "address[]"
},
{
"name": "oldRequiredPower",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newRequiredPower",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "ValidatorsAdded",
"type": "event",
"inputs": [
{
"name": "hash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
},
{
"name": "validatorAddresses",
"type": "address[]",
"indexed": false,
"internalType": "address[]"
},
{
"name": "count",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "totalPower",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "requiredPower",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "ValidatorsRemoved",
"type": "event",
"inputs": [
{
"name": "hash",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
},
{
"name": "validatorAddresses",
"type": "address[]",
"indexed": false,
"internalType": "address[]"
},
{
"name": "count",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "WithdrawExecuted",
"type": "event",
"inputs": [
{
"name": "withdrawalId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "isPending",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "isFlushed",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "isPaused",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "nonce",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "WithdrawHotAmountRefilled",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "refillAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "usedWithdrawHotAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "WithdrawHotAmountUsed",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "updateUsedWithdrawHotAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "forcePending",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "WithdrawalAdded",
"type": "event",
"inputs": [
{
"name": "withdrawalId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "receiver",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "isPending",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "isForcePending",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "nonce",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "ADMIN_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "DEFAULT_ADMIN_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "DEPOSIT_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "OPERATOR_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "PAUSE_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "TOKEN_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "UPGRADE_INTERFACE_VERSION",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "UPGRADE_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "VALIDATOR_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "addToken",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "hardCapRatioBps",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "refillRateMps",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "addValidators",
"type": "function",
"inputs": [
{
"name": "validators",
"type": "tuple[]",
"components": [
{
"name": "signer",
"type": "address",
"internalType": "address"
},
{
"name": "power",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct ValidatorInfo[]"
},
{
"name": "requiredPower",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "availableValidators",
"type": "function",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "batchFlushWithdrawals",
"type": "function",
"inputs": [
{
"name": "withdrawalIds",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "validators",
"type": "tuple[]",
"components": [
{
"name": "signer",
"type": "address",
"internalType": "address"
},
{
"name": "power",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct ValidatorInfo[]"
},
{
"name": "validatorSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
},
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "batchResetWithdrawHotAmount",
"type": "function",
"inputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "validators",
"type": "tuple[]",
"components": [
{
"name": "signer",
"type": "address",
"internalType": "address"
},
{
"name": "power",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct ValidatorInfo[]"
},
{
"name": "validatorSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
},
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "batchTogglePendingWithdrawal",
"type": "function",
"inputs": [
{
"name": "withdrawalIds",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "shouldPause",
"type": "bool",
"internalType": "bool"
},
{
"name": "validators",
"type": "tuple[]",
"components": [
{
"name": "signer",
"type": "address",
"internalType": "address"
},
{
"name": "power",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct ValidatorInfo[]"
},
{
"name": "validatorSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
},
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "depositOnBehalf",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "forAccount",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "executeExpiredPendingWithdrawal",
"type": "function",
"inputs": [
{
"name": "withdrawalId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "fees",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getHardCap",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getRoleAdmin",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "grantRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "hasRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "initialize",
"type": "function",
"inputs": [
{
"name": "_pendingWithdrawChallengePeriod",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "nonceUsed",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "paused",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "pendingWithdrawChallengePeriod",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "proxiableUUID",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "rebalanceReceiver",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "rebalanceWithdraw",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validators",
"type": "tuple[]",
"components": [
{
"name": "signer",
"type": "address",
"internalType": "address"
},
{
"name": "power",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct ValidatorInfo[]"
},
{
"name": "validatorSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
},
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "removeValidators",
"type": "function",
"inputs": [
{
"name": "validators",
"type": "tuple[]",
"components": [
{
"name": "signer",
"type": "address",
"internalType": "address"
},
{
"name": "power",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct ValidatorInfo[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "renounceRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "callerConfirmation",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "requestWithdraw",
"type": "function",
"inputs": [
{
"name": "withdrawalId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "isForcePending",
"type": "bool",
"internalType": "bool"
},
{
"name": "validators",
"type": "tuple[]",
"components": [
{
"name": "signer",
"type": "address",
"internalType": "address"
},
{
"name": "power",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct ValidatorInfo[]"
},
{
"name": "action",
"type": "tuple",
"components": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "receiver",
"type": "address",
"internalType": "address"
}
],
"internalType": "struct WithdrawAction"
},
{
"name": "validatorSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
},
{
"name": "nonce",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "revokeRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setRebalanceReceiver",
"type": "function",
"inputs": [
{
"name": "newReceiver",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "supportedTokens",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "hardCapRatioBps",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "refillRateMps",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "lastRefillTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "usedWithdrawHotAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "supportsInterface",
"type": "function",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "toggle",
"type": "function",
"inputs": [
{
"name": "pause",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updatePendingWithdrawChallengePeriod",
"type": "function",
"inputs": [
{
"name": "newValue",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateToken",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "hardCapRatioBps",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "refillRateMps",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "updateValidatorRequiredPower",
"type": "function",
"inputs": [
{
"name": "validators",
"type": "tuple[]",
"components": [
{
"name": "signer",
"type": "address",
"internalType": "address"
},
{
"name": "power",
"type": "uint256",
"internalType": "uint256"
}
],
"internalType": "struct ValidatorInfo[]"
},
{
"name": "newRequiredPower",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "upgradeToAndCall",
"type": "function",
"inputs": [
{
"name": "newImplementation",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "validatorRequiredPowers",
"type": "function",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "withdrawFees",
"type": "function",
"inputs": [
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "to",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "withdrawals",
"type": "function",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "paused",
"type": "bool",
"internalType": "bool"
},
{
"name": "pending",
"type": "bool",
"internalType": "bool"
},
{
"name": "executed",
"type": "bool",
"internalType": "bool"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "fee",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "receiver",
"type": "address",
"internalType": "address"
},
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "receive",
"stateMutability": "payable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.