Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 11 from a total of 11 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
Amount
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Grant Role | 1470646 | 81 days ago | IN | 0 ETH | 0.00010536 | ||||
| Grant Role | 1430463 | 87 days ago | IN | 0 ETH | 0.0001001 | ||||
| Grant Role | 1424253 | 88 days ago | IN | 0 ETH | 0.00006649 | ||||
| Grant Role | 912453 | 165 days ago | IN | 0 ETH | 0.0000579 | ||||
| Grant Role | 912034 | 165 days ago | IN | 0 ETH | 0.00007008 | ||||
| Grant Role | 875142 | 171 days ago | IN | 0 ETH | 0.0000578 | ||||
| Grant Role | 755346 | 189 days ago | IN | 0 ETH | 0.00005014 | ||||
| Grant Role | 382420 | 244 days ago | IN | 0 ETH | 0.0000573 | ||||
| Grant Role | 382419 | 244 days ago | IN | 0 ETH | 0.000048 | ||||
| Renounce Role | 382171 | 244 days ago | IN | 0 ETH | 0.00002481 | ||||
| Grant Role | 382167 | 244 days ago | IN | 0 ETH | 0.00005115 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
To
|
Amount
|
||
|---|---|---|---|---|---|---|---|
| Check Payouter R... | 2014972 | 19 hrs ago | 0 ETH | ||||
| Check Payouter R... | 2014641 | 20 hrs ago | 0 ETH | ||||
| Check Payouter R... | 2013479 | 25 hrs ago | 0 ETH | ||||
| Check Payouter R... | 2012327 | 29 hrs ago | 0 ETH | ||||
| Check Payouter R... | 2009431 | 39 hrs ago | 0 ETH | ||||
| Check Payouter R... | 2008403 | 43 hrs ago | 0 ETH | ||||
| Check Payouter R... | 2008300 | 43 hrs ago | 0 ETH | ||||
| Check Payouter R... | 2006689 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2005967 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2005862 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2005570 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2005311 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2004793 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2004692 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2002294 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2002175 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2001883 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2001843 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2000668 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2000479 | 2 days ago | 0 ETH | ||||
| Check Payouter R... | 2000160 | 3 days ago | 0 ETH | ||||
| Check Payouter R... | 1998281 | 3 days ago | 0 ETH | ||||
| Check Payouter R... | 1998234 | 3 days ago | 0 ETH | ||||
| Check Payouter R... | 1997659 | 3 days ago | 0 ETH | ||||
| Check Payouter R... | 1997459 | 3 days ago | 0 ETH |
Loading...
Loading
Loading...
Loading
Contract Name:
ACLManager
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.12;
import "../dependencies/openzeppelin/contracts/access/AccessControl.sol";
import "../libraries/InputValidator.sol";
contract ACLManager is AccessControl {
// DEFAULT_ADMIN_ROLE refers to AccessControl
bytes32 public constant TREASURER_ROLE = 0x0000000000000000000000000000000000000000000000000000000000000001;
bytes32 public constant TIMELOCK_ROLE = 0x0000000000000000000000000000000000000000000000000000000000000002;
bytes32 public constant PAUSER_ROLE = 0x0000000000000000000000000000000000000000000000000000000000000003;
bytes32 public constant BOOKKEEPER_ROLE = 0x0000000000000000000000000000000000000000000000000000000000000004;
bytes32 public constant PAYOUTER_ROLE = 0x0000000000000000000000000000000000000000000000000000000000000005;
// for other unknown future roles
bytes32 public constant OTHER_ROLE_1 = 0x0000000000000000000000000000000000000000000000000000000000000006;
bytes32 public constant OTHER_ROLE_2 = 0x0000000000000000000000000000000000000000000000000000000000000007;
bytes32 public constant OTHER_ROLE_3 = 0x0000000000000000000000000000000000000000000000000000000000000008;
constructor(address _contractAdmin, address _treasurer, address _timelockContract, address[] memory _pausers, address _bookKeeper, address _payouter) {
InputValidator.validateAddr(_contractAdmin);
InputValidator.validateAddr(_treasurer);
InputValidator.validateAddr(_timelockContract);
InputValidator.validateAddr(_bookKeeper);
InputValidator.validateAddr(_payouter);
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(DEFAULT_ADMIN_ROLE, _contractAdmin);
_grantRole(TREASURER_ROLE, _treasurer);
_grantRole(TIMELOCK_ROLE, _timelockContract);
for (uint256 i; i < _pausers.length; i++) {
InputValidator.validateAddr(_pausers[i]);
_grantRole(PAUSER_ROLE, _pausers[i]);
}
_grantRole(BOOKKEEPER_ROLE, _bookKeeper);
_grantRole(PAYOUTER_ROLE, _payouter);
_setRoleAdmin(TIMELOCK_ROLE, TIMELOCK_ROLE);
}
function checkAdminRole(address _account) external view {
_checkRole(DEFAULT_ADMIN_ROLE, _account);
}
function checkTreasurerRole(address _account) external view {
_checkRole(TREASURER_ROLE, _account);
}
function checkTimelockRole(address _account) external view {
_checkRole(TIMELOCK_ROLE, _account);
}
function checkPauserRole(address _account) external view {
_checkRole(PAUSER_ROLE, _account);
}
function checkBookKeeperRole(address _account) external view {
_checkRole(BOOKKEEPER_ROLE, _account);
}
function checkPayouterRole(address _account) external view {
_checkRole(PAYOUTER_ROLE, _account);
}
function checkOtherRole1(address _account) external view {
_checkRole(OTHER_ROLE_1, _account);
}
function checkOtherRole2(address _account) external view {
_checkRole(OTHER_ROLE_2, _account);
}
function checkOtherRole3(address _account) external view {
_checkRole(OTHER_ROLE_3, _account);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Permit} from "./IERC20Permit.sol";
import {Address} from "../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../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:
*
* ```
* 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}:
*
* ```
* 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.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
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 override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `_msgSender()` is missing `role`.
* Overriding this function changes the behavior of the {onlyRole} modifier.
*
* Format of the revert message is described in {_checkRole}.
*
* _Available since v4.6._
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @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 override 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 override 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 override 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 `account`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* May emit a {RoleGranted} event.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @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 Grants `role` to `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @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 signaling this.
*
* _Available since v3.1._
*/
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, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
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 `account`.
*/
function renounceRole(bytes32 role, address account) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 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);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* 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[EIP 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.12;
interface IEthgasPool {
struct TokenTransfer {
address token;
uint256 amount;
}
error InvalidParamLength();
error InvalidBlockNumber();
error CannotSendEthDirectly();
event DepositsTriggered(
address indexed sender,
TokenTransfer[] transfers
);
event Withdrawal(
address indexed clientAddress,
IEthgasPool.TokenTransfer tokenTranfer
);
event AclManagerChanged(address aclManager);
event DailyWithdrawalCapChanged(
address token, uint256 cap
);
event DailyPayoutCapChanged(
address token, uint256 cap
);
event SupportedTokenChanged(
address token, bool isSupport
);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "../dependencies/openzeppelin-v5.0.1/token/SafeERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint) external;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.12;
import "../interfaces/IWETH.sol";
import "../interfaces/IEthgasPool.sol";
library InputValidator {
error IncorrectAddress();
function validateAddr (address _inputAddr) internal pure {
if (_inputAddr == address(0)) {
revert IncorrectAddress();
}
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract ABI
API[{"inputs":[{"internalType":"address","name":"_contractAdmin","type":"address"},{"internalType":"address","name":"_treasurer","type":"address"},{"internalType":"address","name":"_timelockContract","type":"address"},{"internalType":"address[]","name":"_pausers","type":"address[]"},{"internalType":"address","name":"_bookKeeper","type":"address"},{"internalType":"address","name":"_payouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"IncorrectAddress","type":"error"},{"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"},{"inputs":[],"name":"BOOKKEEPER_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":"OTHER_ROLE_1","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OTHER_ROLE_2","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OTHER_ROLE_3","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAYOUTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIMELOCK_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkAdminRole","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkBookKeeperRole","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkOtherRole1","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkOtherRole2","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkOtherRole3","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkPauserRole","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkPayouterRole","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkTimelockRole","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"checkTreasurerRole","outputs":[],"stateMutability":"view","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b506040516118d43803806118d483398181016040528101906100329190610599565b6100418661018760201b60201c565b6100508561018760201b60201c565b61005f8461018760201b60201c565b61006e8261018760201b60201c565b61007d8161018760201b60201c565b6100906000801b336101f060201b60201c565b6100a36000801b876101f060201b60201c565b6100b7600160001b866101f060201b60201c565b6100cb600260001b856101f060201b60201c565b60005b835181101561013b576101008482815181106100ed576100ec610642565b5b602002602001015161018760201b60201c565b61012e600360001b85838151811061011b5761011a610642565b5b60200260200101516101f060201b60201c565b80806001019150506100ce565b50610150600460001b836101f060201b60201c565b610164600560001b826101f060201b60201c565b61017c600260001b600260001b6102dc60201b60201c565b505050505050610671565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101ed576040517fed96523a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b610200828261033d60201b60201c565b6102d857600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061027d6103a760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006102ed836103af60201b60201c565b905081600080858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000806000838152602001908152602001600020600101549050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061040d826103e2565b9050919050565b61041d81610402565b811461042857600080fd5b50565b60008151905061043a81610414565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61048e82610445565b810181811067ffffffffffffffff821117156104ad576104ac610456565b5b80604052505050565b60006104c06103ce565b90506104cc8282610485565b919050565b600067ffffffffffffffff8211156104ec576104eb610456565b5b602082029050602081019050919050565b600080fd5b6000610515610510846104d1565b6104b6565b90508083825260208201905060208402830185811115610538576105376104fd565b5b835b81811015610561578061054d888261042b565b84526020840193505060208101905061053a565b5050509392505050565b600082601f8301126105805761057f610440565b5b8151610590848260208601610502565b91505092915050565b60008060008060008060c087890312156105b6576105b56103d8565b5b60006105c489828a0161042b565b96505060206105d589828a0161042b565b95505060406105e689828a0161042b565b945050606087015167ffffffffffffffff811115610607576106066103dd565b5b61061389828a0161056b565b935050608061062489828a0161042b565b92505060a061063589828a0161042b565b9150509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b611254806106806000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063afeb8409116100c3578063e63ab1e91161007c578063e63ab1e91461039b578063e64df480146103b9578063e8c0d2cf146103d5578063f0a3a97c146103f1578063f288a2e21461040f578063f9de19121461042d57610158565b8063afeb8409146102ed578063cebe5df31461030b578063d0fde6dc14610329578063d547741f14610345578063db823bd014610361578063e386be2e1461037f57610158565b806343d2f33d1161011557806343d2f33d1461022d57806388bb7825146102495780638e8ce6b91461026557806391d148541461028357806394911356146102b3578063a217fddf146102cf57610158565b806301ffc9a71461015d57806310ca316a1461018d578063248a9ca3146101a95780632f2ff15d146101d9578063353b4b65146101f557806336568abe14610211575b600080fd5b61017760048036038101906101729190610c6f565b61044b565b6040516101849190610cb7565b60405180910390f35b6101a760048036038101906101a29190610d30565b6104c5565b005b6101c360048036038101906101be9190610d93565b6104d6565b6040516101d09190610dcf565b60405180910390f35b6101f360048036038101906101ee9190610dea565b6104f5565b005b61020f600480360381019061020a9190610d30565b610516565b005b61022b60048036038101906102269190610dea565b610527565b005b61024760048036038101906102429190610d30565b6105aa565b005b610263600480360381019061025e9190610d30565b6105bb565b005b61026d6105cc565b60405161027a9190610dcf565b60405180910390f35b61029d60048036038101906102989190610dea565b6105d4565b6040516102aa9190610cb7565b60405180910390f35b6102cd60048036038101906102c89190610d30565b61063e565b005b6102d761064f565b6040516102e49190610dcf565b60405180910390f35b6102f5610656565b6040516103029190610dcf565b60405180910390f35b61031361065e565b6040516103209190610dcf565b60405180910390f35b610343600480360381019061033e9190610d30565b610666565b005b61035f600480360381019061035a9190610dea565b610677565b005b610369610698565b6040516103769190610dcf565b60405180910390f35b61039960048036038101906103949190610d30565b6106a0565b005b6103a36106b0565b6040516103b09190610dcf565b60405180910390f35b6103d360048036038101906103ce9190610d30565b6106b8565b005b6103ef60048036038101906103ea9190610d30565b6106c9565b005b6103f96106da565b6040516104069190610dcf565b60405180910390f35b6104176106e2565b6040516104249190610dcf565b60405180910390f35b6104356106ea565b6040516104429190610dcf565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104be57506104bd826106f2565b5b9050919050565b6104d3600760001b8261075c565b50565b6000806000838152602001908152602001600020600101549050919050565b6104fe826104d6565b610507816107f9565b610511838361080d565b505050565b610524600560001b8261075c565b50565b61052f6108ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461059c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059390610ead565b60405180910390fd5b6105a682826108f5565b5050565b6105b8600660001b8261075c565b50565b6105c9600460001b8261075c565b50565b600460001b81565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61064c600360001b8261075c565b50565b6000801b81565b600760001b81565b600660001b81565b610674600160001b8261075c565b50565b610680826104d6565b610689816107f9565b61069383836108f5565b505050565b600560001b81565b6106ad6000801b8261075c565b50565b600360001b81565b6106c6600860001b8261075c565b50565b6106d7600260001b8261075c565b50565b600160001b81565b600260001b81565b600860001b81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61076682826105d4565b6107f55761078b8173ffffffffffffffffffffffffffffffffffffffff1660146109d6565b6107998360001c60206109d6565b6040516020016107aa929190610fd6565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ec919061105a565b60405180910390fd5b5050565b61080a816108056108ed565b61075c565b50565b61081782826105d4565b6108e957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061088e6108ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6108ff82826105d4565b156109d257600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506109776108ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6060600060028360026109e991906110b5565b6109f391906110f7565b67ffffffffffffffff811115610a0c57610a0b61112b565b5b6040519080825280601f01601f191660200182016040528015610a3e5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610a7657610a7561115a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610ada57610ad961115a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610b1a91906110b5565b610b2491906110f7565b90505b6001811115610bc4577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110610b6657610b6561115a565b5b1a60f81b828281518110610b7d57610b7c61115a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080610bbd90611189565b9050610b27565b5060008414610c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bff906111fe565b60405180910390fd5b8091505092915050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610c4c81610c17565b8114610c5757600080fd5b50565b600081359050610c6981610c43565b92915050565b600060208284031215610c8557610c84610c12565b5b6000610c9384828501610c5a565b91505092915050565b60008115159050919050565b610cb181610c9c565b82525050565b6000602082019050610ccc6000830184610ca8565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610cfd82610cd2565b9050919050565b610d0d81610cf2565b8114610d1857600080fd5b50565b600081359050610d2a81610d04565b92915050565b600060208284031215610d4657610d45610c12565b5b6000610d5484828501610d1b565b91505092915050565b6000819050919050565b610d7081610d5d565b8114610d7b57600080fd5b50565b600081359050610d8d81610d67565b92915050565b600060208284031215610da957610da8610c12565b5b6000610db784828501610d7e565b91505092915050565b610dc981610d5d565b82525050565b6000602082019050610de46000830184610dc0565b92915050565b60008060408385031215610e0157610e00610c12565b5b6000610e0f85828601610d7e565b9250506020610e2085828601610d1b565b9150509250929050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000610e97602f83610e2a565b9150610ea282610e3b565b604082019050919050565b60006020820190508181036000830152610ec681610e8a565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000610f0e601783610ecd565b9150610f1982610ed8565b601782019050919050565b600081519050919050565b60005b83811015610f4d578082015181840152602081019050610f32565b60008484015250505050565b6000610f6482610f24565b610f6e8185610ecd565b9350610f7e818560208601610f2f565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000610fc0601183610ecd565b9150610fcb82610f8a565b601182019050919050565b6000610fe182610f01565b9150610fed8285610f59565b9150610ff882610fb3565b91506110048284610f59565b91508190509392505050565b6000601f19601f8301169050919050565b600061102c82610f24565b6110368185610e2a565b9350611046818560208601610f2f565b61104f81611010565b840191505092915050565b600060208201905081810360008301526110748184611021565b905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006110c08261107c565b91506110cb8361107c565b92508282026110d98161107c565b915082820484148315176110f0576110ef611086565b5b5092915050565b60006111028261107c565b915061110d8361107c565b925082820190508082111561112557611124611086565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006111948261107c565b9150600082036111a7576111a6611086565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006111e8602083610e2a565b91506111f3826111b2565b602082019050919050565b60006020820190508181036000830152611217816111db565b905091905056fea2646970667358221220cefec2b8d5f668a68929f67f9337034fd4c6f865c68f3eb6625af0b49b122a5e64736f6c634300081c003300000000000000000000000006111e5791568ed72e368df73d5b3126ab3b82e40000000000000000000000005ae1f4954ff6d0a5bcf982501db07567e49a6294000000000000000000000000173788ab12e4d91f8ec3bc697aa9ba1802cfba7f00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d8b5bf7c8f3592c9d5e2134498d90f9aa6d1a7ba000000000000000000000000cfca051436a28046ae251563a1f5af955950f73600000000000000000000000000000000000000000000000000000000000000010000000000000000000000009c54a362164c2d451bad5ec2f0cbee5fc3560805
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063afeb8409116100c3578063e63ab1e91161007c578063e63ab1e91461039b578063e64df480146103b9578063e8c0d2cf146103d5578063f0a3a97c146103f1578063f288a2e21461040f578063f9de19121461042d57610158565b8063afeb8409146102ed578063cebe5df31461030b578063d0fde6dc14610329578063d547741f14610345578063db823bd014610361578063e386be2e1461037f57610158565b806343d2f33d1161011557806343d2f33d1461022d57806388bb7825146102495780638e8ce6b91461026557806391d148541461028357806394911356146102b3578063a217fddf146102cf57610158565b806301ffc9a71461015d57806310ca316a1461018d578063248a9ca3146101a95780632f2ff15d146101d9578063353b4b65146101f557806336568abe14610211575b600080fd5b61017760048036038101906101729190610c6f565b61044b565b6040516101849190610cb7565b60405180910390f35b6101a760048036038101906101a29190610d30565b6104c5565b005b6101c360048036038101906101be9190610d93565b6104d6565b6040516101d09190610dcf565b60405180910390f35b6101f360048036038101906101ee9190610dea565b6104f5565b005b61020f600480360381019061020a9190610d30565b610516565b005b61022b60048036038101906102269190610dea565b610527565b005b61024760048036038101906102429190610d30565b6105aa565b005b610263600480360381019061025e9190610d30565b6105bb565b005b61026d6105cc565b60405161027a9190610dcf565b60405180910390f35b61029d60048036038101906102989190610dea565b6105d4565b6040516102aa9190610cb7565b60405180910390f35b6102cd60048036038101906102c89190610d30565b61063e565b005b6102d761064f565b6040516102e49190610dcf565b60405180910390f35b6102f5610656565b6040516103029190610dcf565b60405180910390f35b61031361065e565b6040516103209190610dcf565b60405180910390f35b610343600480360381019061033e9190610d30565b610666565b005b61035f600480360381019061035a9190610dea565b610677565b005b610369610698565b6040516103769190610dcf565b60405180910390f35b61039960048036038101906103949190610d30565b6106a0565b005b6103a36106b0565b6040516103b09190610dcf565b60405180910390f35b6103d360048036038101906103ce9190610d30565b6106b8565b005b6103ef60048036038101906103ea9190610d30565b6106c9565b005b6103f96106da565b6040516104069190610dcf565b60405180910390f35b6104176106e2565b6040516104249190610dcf565b60405180910390f35b6104356106ea565b6040516104429190610dcf565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104be57506104bd826106f2565b5b9050919050565b6104d3600760001b8261075c565b50565b6000806000838152602001908152602001600020600101549050919050565b6104fe826104d6565b610507816107f9565b610511838361080d565b505050565b610524600560001b8261075c565b50565b61052f6108ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461059c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059390610ead565b60405180910390fd5b6105a682826108f5565b5050565b6105b8600660001b8261075c565b50565b6105c9600460001b8261075c565b50565b600460001b81565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61064c600360001b8261075c565b50565b6000801b81565b600760001b81565b600660001b81565b610674600160001b8261075c565b50565b610680826104d6565b610689816107f9565b61069383836108f5565b505050565b600560001b81565b6106ad6000801b8261075c565b50565b600360001b81565b6106c6600860001b8261075c565b50565b6106d7600260001b8261075c565b50565b600160001b81565b600260001b81565b600860001b81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61076682826105d4565b6107f55761078b8173ffffffffffffffffffffffffffffffffffffffff1660146109d6565b6107998360001c60206109d6565b6040516020016107aa929190610fd6565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ec919061105a565b60405180910390fd5b5050565b61080a816108056108ed565b61075c565b50565b61081782826105d4565b6108e957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061088e6108ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6108ff82826105d4565b156109d257600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506109776108ed565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6060600060028360026109e991906110b5565b6109f391906110f7565b67ffffffffffffffff811115610a0c57610a0b61112b565b5b6040519080825280601f01601f191660200182016040528015610a3e5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610a7657610a7561115a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610ada57610ad961115a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610b1a91906110b5565b610b2491906110f7565b90505b6001811115610bc4577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110610b6657610b6561115a565b5b1a60f81b828281518110610b7d57610b7c61115a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080610bbd90611189565b9050610b27565b5060008414610c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bff906111fe565b60405180910390fd5b8091505092915050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610c4c81610c17565b8114610c5757600080fd5b50565b600081359050610c6981610c43565b92915050565b600060208284031215610c8557610c84610c12565b5b6000610c9384828501610c5a565b91505092915050565b60008115159050919050565b610cb181610c9c565b82525050565b6000602082019050610ccc6000830184610ca8565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610cfd82610cd2565b9050919050565b610d0d81610cf2565b8114610d1857600080fd5b50565b600081359050610d2a81610d04565b92915050565b600060208284031215610d4657610d45610c12565b5b6000610d5484828501610d1b565b91505092915050565b6000819050919050565b610d7081610d5d565b8114610d7b57600080fd5b50565b600081359050610d8d81610d67565b92915050565b600060208284031215610da957610da8610c12565b5b6000610db784828501610d7e565b91505092915050565b610dc981610d5d565b82525050565b6000602082019050610de46000830184610dc0565b92915050565b60008060408385031215610e0157610e00610c12565b5b6000610e0f85828601610d7e565b9250506020610e2085828601610d1b565b9150509250929050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000610e97602f83610e2a565b9150610ea282610e3b565b604082019050919050565b60006020820190508181036000830152610ec681610e8a565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000610f0e601783610ecd565b9150610f1982610ed8565b601782019050919050565b600081519050919050565b60005b83811015610f4d578082015181840152602081019050610f32565b60008484015250505050565b6000610f6482610f24565b610f6e8185610ecd565b9350610f7e818560208601610f2f565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000610fc0601183610ecd565b9150610fcb82610f8a565b601182019050919050565b6000610fe182610f01565b9150610fed8285610f59565b9150610ff882610fb3565b91506110048284610f59565b91508190509392505050565b6000601f19601f8301169050919050565b600061102c82610f24565b6110368185610e2a565b9350611046818560208601610f2f565b61104f81611010565b840191505092915050565b600060208201905081810360008301526110748184611021565b905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006110c08261107c565b91506110cb8361107c565b92508282026110d98161107c565b915082820484148315176110f0576110ef611086565b5b5092915050565b60006111028261107c565b915061110d8361107c565b925082820190508082111561112557611124611086565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006111948261107c565b9150600082036111a7576111a6611086565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006111e8602083610e2a565b91506111f3826111b2565b602082019050919050565b60006020820190508181036000830152611217816111db565b905091905056fea2646970667358221220cefec2b8d5f668a68929f67f9337034fd4c6f865c68f3eb6625af0b49b122a5e64736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000006111e5791568ed72e368df73d5b3126ab3b82e40000000000000000000000005ae1f4954ff6d0a5bcf982501db07567e49a6294000000000000000000000000173788ab12e4d91f8ec3bc697aa9ba1802cfba7f00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d8b5bf7c8f3592c9d5e2134498d90f9aa6d1a7ba000000000000000000000000cfca051436a28046ae251563a1f5af955950f73600000000000000000000000000000000000000000000000000000000000000010000000000000000000000009c54a362164c2d451bad5ec2f0cbee5fc3560805
-----Decoded View---------------
Arg [0] : _contractAdmin (address): 0x06111e5791568Ed72E368DF73D5B3126ab3B82E4
Arg [1] : _treasurer (address): 0x5aE1F4954ff6d0a5Bcf982501db07567e49a6294
Arg [2] : _timelockContract (address): 0x173788AB12E4D91F8eC3bC697AA9ba1802cfBa7f
Arg [3] : _pausers (address[]): 0x9c54a362164c2d451baD5eC2f0CbeE5Fc3560805
Arg [4] : _bookKeeper (address): 0xd8b5Bf7c8F3592c9D5e2134498d90f9aA6D1a7Ba
Arg [5] : _payouter (address): 0xCFCa051436A28046Ae251563a1F5AF955950f736
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000006111e5791568ed72e368df73d5b3126ab3b82e4
Arg [1] : 0000000000000000000000005ae1f4954ff6d0a5bcf982501db07567e49a6294
Arg [2] : 000000000000000000000000173788ab12e4d91f8ec3bc697aa9ba1802cfba7f
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 000000000000000000000000d8b5bf7c8f3592c9d5e2134498d90f9aa6d1a7ba
Arg [5] : 000000000000000000000000cfca051436a28046ae251563a1f5af955950f736
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000009c54a362164c2d451bad5ec2f0cbee5fc3560805
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.