Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 6 from a total of 6 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Add Whitelist | 24160217 | 22 days ago | IN | 0 ETH | 0.00010666 | ||||
| Add Whitelist | 23846972 | 66 days ago | IN | 0 ETH | 0.00016045 | ||||
| Add Whitelist | 23755820 | 78 days ago | IN | 0 ETH | 0.00011149 | ||||
| Add Whitelist | 23689335 | 88 days ago | IN | 0 ETH | 0.00002413 | ||||
| Add Whitelist | 23669968 | 90 days ago | IN | 0 ETH | 0.00013332 | ||||
| Add Whitelist | 23633624 | 95 days ago | IN | 0 ETH | 0.00028429 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AccessRegistry
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.26;
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {IAccessRegistry} from "./interfaces/IAccessRegistry.sol";
import {Errors} from "./libraries/Errors.sol";
/// @title Access Registry
/// @author luoyhang003
/// @notice Manages whitelist and blacklist for protocol access control.
/// @dev Uses OpenZeppelin AccessControl for role-based permissions.
contract AccessRegistry is IAccessRegistry, AccessControl {
/*//////////////////////////////////////////////////////////////////////////
STATE VARIABLES
//////////////////////////////////////////////////////////////////////////*/
/// @notice Role identifier for admin accounts.
/// @dev Calculated as keccak256("ADMIN_ROLE").
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
/// @notice Role identifier for operator accounts.
/// @dev Calculated as keccak256("OPERATOR_ROLE").
bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
/// @notice Whitelist mapping to track approved users.
/// @dev Address => true if whitelisted, false otherwise.
mapping(address => bool) private _whitelist;
/// @notice Blacklist mapping to track blocked users.
/// @dev Address => true if blacklisted, false otherwise.
mapping(address => bool) private _blacklist;
/// @notice Whether the whitelist mode is enabled.
/// @dev True if whitelist mode is enabled, false otherwise.
bool public isWhitelistEnabled = true;
/*//////////////////////////////////////////////////////////////////////////
CONSTRUCTOR
//////////////////////////////////////////////////////////////////////////*/
/// @notice Deploys the contract and assigns initial admin and operator roles.
/// @param _defaultAdmin Address to receive the DEFAULT_ADMIN_ROLE.
/// @param _admin Address to receive the ADMIN_ROLE.
/// @param _operator Address to receive the OPERATOR_ROLE.
constructor(address _defaultAdmin, address _admin, address _operator) {
if (_admin == address(0) || _operator == address(0))
revert Errors.ZeroAddress();
_grantRole(DEFAULT_ADMIN_ROLE, _defaultAdmin);
_grantRole(ADMIN_ROLE, _admin);
_grantRole(OPERATOR_ROLE, _operator);
}
/*//////////////////////////////////////////////////////////////////////////
VIEW FUNCTIONS
//////////////////////////////////////////////////////////////////////////*/
/// @notice Checks whether a given address is whitelisted
/// @param _account The address to check
/// @return True if the address is whitelisted, false otherwise
function isWhitelisted(address _account) external view returns (bool) {
return !isWhitelistEnabled || _whitelist[_account];
}
/// @notice Checks whether a given address is blacklisted
/// @param _account The address to check
/// @return True if the address is blacklisted, false otherwise
function isBlacklisted(address _account) external view returns (bool) {
return _blacklist[_account];
}
/*//////////////////////////////////////////////////////////////////////////
WHITELIST LOGIC
//////////////////////////////////////////////////////////////////////////*/
/// @notice Add multiple users to the whitelist.
/// @dev Only callable by accounts with OPERATOR_ROLE.
/// @param _users Array of addresses to be whitelisted.
function addWhitelist(
address[] memory _users
) external onlyRole(OPERATOR_ROLE) {
uint256 length = _users.length;
if (length == 0) revert Errors.InvalidArrayLength();
uint256 i;
for (i; i < length; i++) {
address _user = _users[i];
if (_blacklist[_user]) revert Errors.AlreadyBlacklisted();
_whitelist[_user] = true;
}
emit WhitelistAdded(_users);
}
/// @notice Remove multiple users from the whitelist.
/// @dev Only callable by accounts with OPERATOR_ROLE.
/// @param _users Array of addresses to be removed from whitelist.
function removeWhitelist(
address[] memory _users
) external onlyRole(OPERATOR_ROLE) {
uint256 length = _users.length;
if (length == 0) revert Errors.InvalidArrayLength();
uint256 i;
for (i; i < length; i++) {
address _user = _users[i];
delete _whitelist[_user];
}
emit WhitelistRemoved(_users);
}
/*//////////////////////////////////////////////////////////////////////////
BLACKLIST LOGIC
//////////////////////////////////////////////////////////////////////////*/
/// @notice Add multiple users to the blacklist.
/// @dev Only callable by accounts with OPERATOR_ROLE.
/// @param _users Array of addresses to be blacklisted.
function addBlacklist(
address[] memory _users
) external onlyRole(OPERATOR_ROLE) {
uint256 length = _users.length;
if (length == 0) revert Errors.InvalidArrayLength();
uint256 i;
for (i; i < length; i++) {
address _user = _users[i];
if (_user == address(0)) revert Errors.ZeroAddress();
if (_whitelist[_user]) revert Errors.AlreadyWhitelisted();
_blacklist[_user] = true;
}
emit BlacklistAdded(_users);
}
/// @notice Remove multiple users from the blacklist.
/// @dev Only callable by accounts with OPERATOR_ROLE.
/// @param _users Array of addresses to be removed from blacklist.
function removeBlacklist(
address[] memory _users
) external onlyRole(OPERATOR_ROLE) {
uint256 length = _users.length;
if (length == 0) revert Errors.InvalidArrayLength();
uint256 i;
for (i; i < length; i++) {
address _user = _users[i];
delete _blacklist[_user];
}
emit BlacklistRemoved(_users);
}
/*//////////////////////////////////////////////////////////////////////////
ADMIN FUNCTIONS
//////////////////////////////////////////////////////////////////////////*/
/// @notice Enables or disables the whitelist feature.
/// @dev Only callable by accounts with the ADMIN_ROLE.
/// @param _enabled Boolean flag - true to enable the whitelist, false to disable it.
function setWhitelistEnabled(bool _enabled) external onlyRole(ADMIN_ROLE) {
if (isWhitelistEnabled == _enabled) revert Errors.AlreadyInSameState();
isWhitelistEnabled = _enabled;
emit WhitelistToggled(_enabled);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {IERC165, ERC165} from "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/// @inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.26;
/// @title IAccessRegistry
/// @author luoyhang003
/// @notice Interface for managing access control via whitelist and blacklist
/// @dev Provides events and view functions to track and query account permissions
interface IAccessRegistry {
/*//////////////////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////////////////*/
/// @notice Emitted when an array of users is added to the whitelist.
/// @param users An array of addresses added to the whitelist.
event WhitelistAdded(address[] users);
/// @notice Emitted when an array of users is added to the blacklist.
/// @param users An array of addresses added to the blacklist.
event BlacklistAdded(address[] users);
/// @notice Emitted when an array of users is removed from the whitelist.
/// @param users An array of addresses removed from the whitelist.
event WhitelistRemoved(address[] users);
/// @notice Emitted when an array of users is removed from the blacklist.
/// @param users An array of addresses removed from the blacklist.
event BlacklistRemoved(address[] users);
/// @notice Emitted when whitelist state changes
/// @param enabled The new whitelist state - true if enabled, false if disabled.
event WhitelistToggled(bool enabled);
/*//////////////////////////////////////////////////////////////////////////
VIEW FUNCTIONS
//////////////////////////////////////////////////////////////////////////*/
/// @notice Checks whether a given address is whitelisted
/// @param _account The address to check
/// @return True if the address is whitelisted, false otherwise
function isWhitelisted(address _account) external view returns (bool);
/// @notice Checks whether a given address is blacklisted
/// @param _account The address to check
/// @return True if the address is blacklisted, false otherwise
function isBlacklisted(address _account) external view returns (bool);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.26;
/// @title Errors Library
/// @author luoyhang003
/// @notice Centralized custom errors for all contracts in the protocol.
/// @dev Each error saves gas compared to revert strings. The @dev comment
/// also includes the corresponding 4-byte selector for debugging
/// and off-chain tooling.
library Errors {
/*//////////////////////////////////////////////////////////////////////////
GENERAL
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when array lengths do not match or are zero.
/// @dev Selector: 0x9d89020a
error InvalidArrayLength();
/// @notice Thrown when a provided address is zero.
/// @dev Selector: 0xd92e233d
error ZeroAddress();
/// @notice Thrown when a provided amount is zero.
/// @dev Selector: 0x1f2a2005
error ZeroAmount();
/// @notice Thrown when an index is out of bounds.
/// @dev Selector: 0x4e23d035
error IndexOutOfBounds();
/// @notice Thrown when a user is not whitelisted but tries to interact.
/// @dev Selector: 0x2ba75b25
error UserNotWhitelisted();
/// @notice Thrown when a token has invalid decimals (e.g., >18).
/// @dev Selector: 0xd25598a0
error InvalidDecimals();
/// @notice Thrown when an asset is not supported.
/// @dev Selector: 0x24a01144
error UnsupportedAsset();
/// @notice Thrown when trying to add an already added asset.
/// @dev Selector: 0x5ed26801
error AssetAlreadyAdded();
/// @notice Thrown when trying to remove an asset that was already removed.
/// @dev Selector: 0x422afd8f
error AssetAlreadyRemoved();
/// @notice Thrown when a common token address conflict with the vault token address.
/// @dev Selector: 0x8a7ea521
error ConflictiveToken();
/// @notice Thrown when an array is reach to the length limit.
/// @dev Selector: 0x951becfa
error ExceedArrayLengthLimit();
/*//////////////////////////////////////////////////////////////////////////
Token.sol
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when transfer is attempted by/for a blacklisted address.
/// @dev Selector: 0x6554e8c5
error TransferBlacklisted();
/*//////////////////////////////////////////////////////////////////////////
DepositVault.sol
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when deposits are paused.
/// @dev Selector: 0x35edea30
error DepositPaused();
/// @notice Thrown when a deposit exceeds per-token deposit cap.
/// @dev Selector: 0xcc60dc5b
error ExceedTokenDepositCap();
/// @notice Thrown when a deposit exceeds global deposit cap.
/// @dev Selector: 0x5054f250
error ExceedTotalDepositCap();
/// @notice Thrown when minting results in zero shares.
/// @dev Selector: 0x1d31001e
error MintZeroShare();
/// @notice Thrown when attempting to deposit zero assets.
/// @dev Selector: 0xd69b89cc
error DepositZeroAsset();
/// @notice Thrown when the oracle for an asset is invalid or missing.
/// @dev Selector: 0x9589a27d
error InvalidOracle();
/*//////////////////////////////////////////////////////////////////////////
WithdrawController.sol
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when withdrawals are paused.
/// @dev Selector: 0xe0a39803
error WithdrawPaused();
/// @notice Thrown when attempting to request withdrawal of zero shares.
/// @dev Selector: 0xef9c351b
error RequestZeroShare();
/// @notice Thrown when a withdrawal receipt has invalid status for the operation.
/// @dev Selector: 0x3bb3ba88
error InvalidReceiptStatus();
/// @notice Thrown when a caller is not the original withdrawal requester.
/// @dev Selector: 0xe39da59e
error NotRequester();
/// @notice Thrown when a caller is blacklisted.
/// @dev Selector: 0x473250af
error UserBlacklisted();
/*//////////////////////////////////////////////////////////////////////////
AssetsRouter.sol
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when a recipient is already added.
/// @dev Selector: 0xce2c4eb3
error RecipientAlreadyAdded();
/// @notice Thrown when a recipient is already removed.
/// @dev Selector: 0x1c7dcc84
error RecipientAlreadyRemoved();
/// @notice Thrown when attempting to set auto-route to its current state.
/// @dev Selector: 0xdf2e473d
error InvalidRouteEnabledStatus();
/// @notice Thrown when a non-registered recipient is used.
/// @dev Selector: 0xf29851db
error NotRouterRecipient();
/// @notice Thrown when attempting to remove the currently active recipient.
/// @dev Selector: 0xa453bd1b
error RemoveActiveRouter();
/// @notice Thrown when attempting to manual route the asstes when auto route is enabled.
/// @dev Selector: 0x92d56bf7
error AutoRouteEnabled();
/// @notice Thrown when setting the same router address.
/// @dev Selector: 0x23b920b6
error SameRouterAddress();
/*//////////////////////////////////////////////////////////////////////////
AccessRegistry.sol
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when trying to blacklist an already blacklisted user.
/// @dev Selector: 0xf53de75f
error AlreadyBlacklisted();
/// @notice Thrown when trying to whitelist an already whitelisted user.
/// @dev Selector: 0xb73e95e1
error AlreadyWhitelisted();
/// @notice Reverts when the requested state matches the current state.
/// @dev Selector: 0x3fbc93f3
error AlreadyInSameState();
/*//////////////////////////////////////////////////////////////////////////
OracleRegister.sol
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when an oracle is already registered for an asset.
/// @dev Selector: 0x652a449e
error OracleAlreadyAdded();
/// @notice Thrown when an oracle does not exist for an asset.
/// @dev Selector: 0x4dca4f7d
error OracleNotExist();
/// @notice Thrown when price deviation exceeds maximum allowed.
/// @dev Selector: 0x8774ad87
error ExceedMaxDeviation();
/// @notice Thrown when price updates are attempted too frequently.
/// @dev Selector: 0x8f46908a
error PriceUpdateTooFrequent();
/// @notice Thrown when a price validity period has expired.
/// @dev Selector: 0x7c9d063a
error PriceValidityExpired();
/// @notice Thrown when a price is zero.
/// @dev Selector: 0x10256287
error InvalidZeroPrice();
/*//////////////////////////////////////////////////////////////////////////
ParamRegister.sol
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when tolerance basis points exceed maximum deviation.
/// @dev Selector: 0xb8d855e2
error ExceedMaxDeviationBps();
/// @notice Thrown when price update interval is invalid.
/// @dev Selector: 0xfff67f52
error InvalidPriceUpdateInterval();
/// @notice Thrown when price validity duration exceeds allowed maximum.
/// @dev Selector: 0x6eca7e24
error PriceMaxValidityExceeded();
/// @notice Thrown when mint fee rate exceeds maximum allowed.
/// @dev Selector: 0x8f59faf8
error ExceedMaxMintFeeRate();
/// @notice Thrown when redeem fee rate exceeds maximum allowed.
/// @dev Selector: 0x86871089
error ExceedMaxRedeemFeeRate();
/*//////////////////////////////////////////////////////////////////////////
ChainlinkOracleFeed.sol
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when a reported price is invalid.
/// @dev Selector: 0x00bfc921
error InvalidPrice();
/// @notice Thrown when a reported price is stale.
/// @dev Selector: 0x19abf40e
error StalePrice();
/// @notice Thrown when a Chainlink round is incomplete.
/// @dev Selector: 0x8ad52bdd
error IncompleteRound();
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/IAccessControl.sol)
pragma solidity >=0.8.4;
/**
* @dev External interface of AccessControl declared to support ERC-165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted to signal this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).
* Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/// @inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"remappings": [
"@uniswap/v3-periphery/contracts/=lib/v3-periphery/contracts/",
"@chainlink/contracts/src/v0.8/=lib/chainlink-evm/contracts/src/v0.8/shared/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"chainlink-evm/=lib/chainlink-evm/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"v3-periphery/=lib/v3-periphery/contracts/"
],
"optimizer": {
"enabled": false,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_defaultAdmin","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"AlreadyBlacklisted","type":"error"},{"inputs":[],"name":"AlreadyInSameState","type":"error"},{"inputs":[],"name":"AlreadyWhitelisted","type":"error"},{"inputs":[],"name":"InvalidArrayLength","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"users","type":"address[]"}],"name":"BlacklistAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"users","type":"address[]"}],"name":"BlacklistRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"users","type":"address[]"}],"name":"WhitelistAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"users","type":"address[]"}],"name":"WhitelistRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"WhitelistToggled","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"addBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"removeBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setWhitelistEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
6080604052600160035f6101000a81548160ff021916908315150217905550348015610029575f80fd5b50604051611892380380611892833981810160405281019061004b9190610321565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806100b057505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156100e7576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6100f95f801b8461016460201b60201c565b5061012a7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217758361016460201b60201c565b5061015b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9298261016460201b60201c565b50505050610371565b5f610175838361025960201b60201c565b61024f5760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506101ec6102bc60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610253565b5f90505b92915050565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f33905090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6102f0826102c7565b9050919050565b610300816102e6565b811461030a575f80fd5b50565b5f8151905061031b816102f7565b92915050565b5f805f60608486031215610338576103376102c3565b5b5f6103458682870161030d565b93505060206103568682870161030d565b92505060406103678682870161030d565b9150509250925092565b6115148061037e5f395ff3fe608060405234801561000f575f80fd5b5060043610610109575f3560e01c80633d2cc56c116100a0578063a217fddf1161006f578063a217fddf146102b1578063d547741f146102cf578063edac985b146102eb578063f5b541a614610307578063fe575a871461032557610109565b80633d2cc56c1461022b57806375b238fc146102475780637911ef9d1461026557806391d148541461028157610109565b8063248a9ca3116100dc578063248a9ca3146101935780632f2ff15d146101c357806336568abe146101df5780633af32abf146101fb57610109565b806301ffc9a71461010d578063052d9e7e1461013d578063184d69ab146101595780632324521614610177575b5f80fd5b61012760048036038101906101229190611011565b610355565b6040516101349190611056565b60405180910390f35b61015760048036038101906101529190611099565b6103ce565b005b610161610497565b60405161016e9190611056565b60405180910390f35b610191600480360381019061018c919061126e565b6104a9565b005b6101ad60048036038101906101a891906112e8565b6105d0565b6040516101ba9190611322565b60405180910390f35b6101dd60048036038101906101d8919061133b565b6105ec565b005b6101f960048036038101906101f4919061133b565b61060e565b005b61021560048036038101906102109190611379565b610689565b6040516102229190611056565b60405180910390f35b6102456004803603810190610240919061126e565b6106f2565b005b61024f610908565b60405161025c9190611322565b60405180910390f35b61027f600480360381019061027a919061126e565b61092c565b005b61029b6004803603810190610296919061133b565b610a53565b6040516102a89190611056565b60405180910390f35b6102b9610ab6565b6040516102c69190611322565b60405180910390f35b6102e960048036038101906102e4919061133b565b610abc565b005b6103056004803603810190610300919061126e565b610ade565b005b61030f610c8e565b60405161031c9190611322565b60405180910390f35b61033f600480360381019061033a9190611379565b610cb2565b60405161034c9190611056565b60405180910390f35b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806103c757506103c682610d04565b5b9050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756103f881610d6d565b81151560035f9054906101000a900460ff16151503610443576040517f3fbc93f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160035f6101000a81548160ff0219169083151502179055507fc816dd38770d8cbe6a8fb169cb4961c28b697d528ebfd3c353ab8f74e82f1f9a8260405161048b9190611056565b60405180910390a15050565b60035f9054906101000a900460ff1681565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9296104d381610d6d565b5f825190505f8103610511576040517f9d89020a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015610593575f84828151811061052f5761052e6113a4565b5b6020026020010151905060015f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81549060ff0219169055508080600101915050610513565b7f1d474f57a5c483b47a8bf6006e39086f96dd040a00cb348e22f80a4ca2c6f222846040516105c29190611488565b60405180910390a150505050565b5f805f8381526020019081526020015f20600101549050919050565b6105f5826105d0565b6105fe81610d6d565b6106088383610d81565b50505050565b610616610e6a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461067a576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106848282610e71565b505050565b5f60035f9054906101000a900460ff1615806106eb575060015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b9050919050565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92961071c81610d6d565b5f825190505f810361075a576040517f9d89020a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b818110156108cb575f848281518110610778576107776113a4565b5b602002602001015190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107e7576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610868576040517fb73e95e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050808060010191505061075c565b7f065786e2f100ecf1a39fd27fb1e6042658f97ff4d9093657ae121f534e46c038846040516108fa9190611488565b60405180910390a150505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92961095681610d6d565b5f825190505f8103610994576040517f9d89020a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015610a16575f8482815181106109b2576109b16113a4565b5b6020026020010151905060025f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81549060ff0219169055508080600101915050610996565b7fb1a383a26b5d809f3cf5b9b022fbfe3e4896e6f1ff310ce38c785d5638bc31bf84604051610a459190611488565b60405180910390a150505050565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f801b81565b610ac5826105d0565b610ace81610d6d565b610ad88383610e71565b50505050565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929610b0881610d6d565b5f825190505f8103610b46576040517f9d89020a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015610c51575f848281518110610b6457610b636113a4565b5b6020026020010151905060025f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610bef576040517ff53de75f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550508080600101915050610b48565b7ff74f148a4f930a0f67a2c33ba932a14e3e91b4e6468f21e545932fd82511153884604051610c809190611488565b60405180910390a150505050565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610d7e81610d79610e6a565b610f5a565b50565b5f610d8c8383610a53565b610e605760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610dfd610e6a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610e64565b5f90505b92915050565b5f33905090565b5f610e7c8383610a53565b15610f50575f805f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610eed610e6a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050610f54565b5f90505b92915050565b610f648282610a53565b610fa75780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401610f9e9291906114b7565b60405180910390fd5b5050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610ff081610fbc565b8114610ffa575f80fd5b50565b5f8135905061100b81610fe7565b92915050565b5f6020828403121561102657611025610fb4565b5b5f61103384828501610ffd565b91505092915050565b5f8115159050919050565b6110508161103c565b82525050565b5f6020820190506110695f830184611047565b92915050565b6110788161103c565b8114611082575f80fd5b50565b5f813590506110938161106f565b92915050565b5f602082840312156110ae576110ad610fb4565b5b5f6110bb84828501611085565b91505092915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61110e826110c8565b810181811067ffffffffffffffff8211171561112d5761112c6110d8565b5b80604052505050565b5f61113f610fab565b905061114b8282611105565b919050565b5f67ffffffffffffffff82111561116a576111696110d8565b5b602082029050602081019050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6111a88261117f565b9050919050565b6111b88161119e565b81146111c2575f80fd5b50565b5f813590506111d3816111af565b92915050565b5f6111eb6111e684611150565b611136565b9050808382526020820190506020840283018581111561120e5761120d61117b565b5b835b81811015611237578061122388826111c5565b845260208401935050602081019050611210565b5050509392505050565b5f82601f830112611255576112546110c4565b5b81356112658482602086016111d9565b91505092915050565b5f6020828403121561128357611282610fb4565b5b5f82013567ffffffffffffffff8111156112a05761129f610fb8565b5b6112ac84828501611241565b91505092915050565b5f819050919050565b6112c7816112b5565b81146112d1575f80fd5b50565b5f813590506112e2816112be565b92915050565b5f602082840312156112fd576112fc610fb4565b5b5f61130a848285016112d4565b91505092915050565b61131c816112b5565b82525050565b5f6020820190506113355f830184611313565b92915050565b5f806040838503121561135157611350610fb4565b5b5f61135e858286016112d4565b925050602061136f858286016111c5565b9150509250929050565b5f6020828403121561138e5761138d610fb4565b5b5f61139b848285016111c5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6114038161119e565b82525050565b5f61141483836113fa565b60208301905092915050565b5f602082019050919050565b5f611436826113d1565b61144081856113db565b935061144b836113eb565b805f5b8381101561147b5781516114628882611409565b975061146d83611420565b92505060018101905061144e565b5085935050505092915050565b5f6020820190508181035f8301526114a0818461142c565b905092915050565b6114b18161119e565b82525050565b5f6040820190506114ca5f8301856114a8565b6114d76020830184611313565b939250505056fea26469706673582212209748bcf652237c94a535ffc1f76dffc1eec4f4cbdf5c24bf1eeb9b023c2e034264736f6c634300081a00330000000000000000000000001aa475b9bf0539d5133227e71d12a1c34b98a58e0000000000000000000000003eba05d63f018eeea4d72f41e609999caa7db8860000000000000000000000003d985e3c97a23b31b5385d97534580c5e93d2f51
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610109575f3560e01c80633d2cc56c116100a0578063a217fddf1161006f578063a217fddf146102b1578063d547741f146102cf578063edac985b146102eb578063f5b541a614610307578063fe575a871461032557610109565b80633d2cc56c1461022b57806375b238fc146102475780637911ef9d1461026557806391d148541461028157610109565b8063248a9ca3116100dc578063248a9ca3146101935780632f2ff15d146101c357806336568abe146101df5780633af32abf146101fb57610109565b806301ffc9a71461010d578063052d9e7e1461013d578063184d69ab146101595780632324521614610177575b5f80fd5b61012760048036038101906101229190611011565b610355565b6040516101349190611056565b60405180910390f35b61015760048036038101906101529190611099565b6103ce565b005b610161610497565b60405161016e9190611056565b60405180910390f35b610191600480360381019061018c919061126e565b6104a9565b005b6101ad60048036038101906101a891906112e8565b6105d0565b6040516101ba9190611322565b60405180910390f35b6101dd60048036038101906101d8919061133b565b6105ec565b005b6101f960048036038101906101f4919061133b565b61060e565b005b61021560048036038101906102109190611379565b610689565b6040516102229190611056565b60405180910390f35b6102456004803603810190610240919061126e565b6106f2565b005b61024f610908565b60405161025c9190611322565b60405180910390f35b61027f600480360381019061027a919061126e565b61092c565b005b61029b6004803603810190610296919061133b565b610a53565b6040516102a89190611056565b60405180910390f35b6102b9610ab6565b6040516102c69190611322565b60405180910390f35b6102e960048036038101906102e4919061133b565b610abc565b005b6103056004803603810190610300919061126e565b610ade565b005b61030f610c8e565b60405161031c9190611322565b60405180910390f35b61033f600480360381019061033a9190611379565b610cb2565b60405161034c9190611056565b60405180910390f35b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806103c757506103c682610d04565b5b9050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217756103f881610d6d565b81151560035f9054906101000a900460ff16151503610443576040517f3fbc93f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160035f6101000a81548160ff0219169083151502179055507fc816dd38770d8cbe6a8fb169cb4961c28b697d528ebfd3c353ab8f74e82f1f9a8260405161048b9190611056565b60405180910390a15050565b60035f9054906101000a900460ff1681565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9296104d381610d6d565b5f825190505f8103610511576040517f9d89020a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015610593575f84828151811061052f5761052e6113a4565b5b6020026020010151905060015f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81549060ff0219169055508080600101915050610513565b7f1d474f57a5c483b47a8bf6006e39086f96dd040a00cb348e22f80a4ca2c6f222846040516105c29190611488565b60405180910390a150505050565b5f805f8381526020019081526020015f20600101549050919050565b6105f5826105d0565b6105fe81610d6d565b6106088383610d81565b50505050565b610616610e6a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461067a576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106848282610e71565b505050565b5f60035f9054906101000a900460ff1615806106eb575060015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b9050919050565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92961071c81610d6d565b5f825190505f810361075a576040517f9d89020a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b818110156108cb575f848281518110610778576107776113a4565b5b602002602001015190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107e7576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610868576040517fb73e95e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050808060010191505061075c565b7f065786e2f100ecf1a39fd27fb1e6042658f97ff4d9093657ae121f534e46c038846040516108fa9190611488565b60405180910390a150505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92961095681610d6d565b5f825190505f8103610994576040517f9d89020a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015610a16575f8482815181106109b2576109b16113a4565b5b6020026020010151905060025f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81549060ff0219169055508080600101915050610996565b7fb1a383a26b5d809f3cf5b9b022fbfe3e4896e6f1ff310ce38c785d5638bc31bf84604051610a459190611488565b60405180910390a150505050565b5f805f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f801b81565b610ac5826105d0565b610ace81610d6d565b610ad88383610e71565b50505050565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929610b0881610d6d565b5f825190505f8103610b46576040517f9d89020a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b81811015610c51575f848281518110610b6457610b636113a4565b5b6020026020010151905060025f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610bef576040517ff53de75f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550508080600101915050610b48565b7ff74f148a4f930a0f67a2c33ba932a14e3e91b4e6468f21e545932fd82511153884604051610c809190611488565b60405180910390a150505050565b7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610d7e81610d79610e6a565b610f5a565b50565b5f610d8c8383610a53565b610e605760015f808581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610dfd610e6a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610e64565b5f90505b92915050565b5f33905090565b5f610e7c8383610a53565b15610f50575f805f8581526020019081526020015f205f015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610eed610e6a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050610f54565b5f90505b92915050565b610f648282610a53565b610fa75780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401610f9e9291906114b7565b60405180910390fd5b5050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610ff081610fbc565b8114610ffa575f80fd5b50565b5f8135905061100b81610fe7565b92915050565b5f6020828403121561102657611025610fb4565b5b5f61103384828501610ffd565b91505092915050565b5f8115159050919050565b6110508161103c565b82525050565b5f6020820190506110695f830184611047565b92915050565b6110788161103c565b8114611082575f80fd5b50565b5f813590506110938161106f565b92915050565b5f602082840312156110ae576110ad610fb4565b5b5f6110bb84828501611085565b91505092915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61110e826110c8565b810181811067ffffffffffffffff8211171561112d5761112c6110d8565b5b80604052505050565b5f61113f610fab565b905061114b8282611105565b919050565b5f67ffffffffffffffff82111561116a576111696110d8565b5b602082029050602081019050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6111a88261117f565b9050919050565b6111b88161119e565b81146111c2575f80fd5b50565b5f813590506111d3816111af565b92915050565b5f6111eb6111e684611150565b611136565b9050808382526020820190506020840283018581111561120e5761120d61117b565b5b835b81811015611237578061122388826111c5565b845260208401935050602081019050611210565b5050509392505050565b5f82601f830112611255576112546110c4565b5b81356112658482602086016111d9565b91505092915050565b5f6020828403121561128357611282610fb4565b5b5f82013567ffffffffffffffff8111156112a05761129f610fb8565b5b6112ac84828501611241565b91505092915050565b5f819050919050565b6112c7816112b5565b81146112d1575f80fd5b50565b5f813590506112e2816112be565b92915050565b5f602082840312156112fd576112fc610fb4565b5b5f61130a848285016112d4565b91505092915050565b61131c816112b5565b82525050565b5f6020820190506113355f830184611313565b92915050565b5f806040838503121561135157611350610fb4565b5b5f61135e858286016112d4565b925050602061136f858286016111c5565b9150509250929050565b5f6020828403121561138e5761138d610fb4565b5b5f61139b848285016111c5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6114038161119e565b82525050565b5f61141483836113fa565b60208301905092915050565b5f602082019050919050565b5f611436826113d1565b61144081856113db565b935061144b836113eb565b805f5b8381101561147b5781516114628882611409565b975061146d83611420565b92505060018101905061144e565b5085935050505092915050565b5f6020820190508181035f8301526114a0818461142c565b905092915050565b6114b18161119e565b82525050565b5f6040820190506114ca5f8301856114a8565b6114d76020830184611313565b939250505056fea26469706673582212209748bcf652237c94a535ffc1f76dffc1eec4f4cbdf5c24bf1eeb9b023c2e034264736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001aa475b9bf0539d5133227e71d12a1c34b98a58e0000000000000000000000003eba05d63f018eeea4d72f41e609999caa7db8860000000000000000000000003d985e3c97a23b31b5385d97534580c5e93d2f51
-----Decoded View---------------
Arg [0] : _defaultAdmin (address): 0x1aA475b9Bf0539D5133227e71d12A1c34b98A58e
Arg [1] : _admin (address): 0x3Eba05d63F018EEea4d72F41e609999CAa7dB886
Arg [2] : _operator (address): 0x3D985e3c97A23B31b5385D97534580c5e93d2F51
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000001aa475b9bf0539d5133227e71d12a1c34b98a58e
Arg [1] : 0000000000000000000000003eba05d63f018eeea4d72f41e609999caa7db886
Arg [2] : 0000000000000000000000003d985e3c97a23b31b5385d97534580c5e93d2f51
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.