Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 176 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 19458606 | 245 days ago | IN | 0 ETH | 0.0017566 | ||||
Withdraw | 19458570 | 245 days ago | IN | 0 ETH | 0.00170428 | ||||
Withdraw | 19263164 | 272 days ago | IN | 0 ETH | 0.00238346 | ||||
Withdraw | 19263004 | 272 days ago | IN | 0 ETH | 0.00516343 | ||||
Withdraw | 19262996 | 272 days ago | IN | 0 ETH | 0.00447551 | ||||
Deposit | 19262931 | 272 days ago | IN | 0 ETH | 0.00330118 | ||||
Deposit | 19262920 | 272 days ago | IN | 0 ETH | 0.00342137 | ||||
Withdraw | 19262804 | 272 days ago | IN | 0 ETH | 0.00322351 | ||||
Deposit | 19262484 | 272 days ago | IN | 0 ETH | 0.00386736 | ||||
Withdraw | 19261991 | 272 days ago | IN | 0 ETH | 0.00309289 | ||||
Withdraw | 19261989 | 272 days ago | IN | 0 ETH | 0.00308929 | ||||
Withdraw | 19261988 | 272 days ago | IN | 0 ETH | 0.00335084 | ||||
Withdraw | 19261763 | 272 days ago | IN | 0 ETH | 0.00229892 | ||||
Withdraw | 19261754 | 272 days ago | IN | 0 ETH | 0.00218236 | ||||
Deposit | 19261716 | 272 days ago | IN | 0 ETH | 0.0023776 | ||||
Deposit | 19261712 | 272 days ago | IN | 0 ETH | 0.00216014 | ||||
Deposit | 19260147 | 273 days ago | IN | 0 ETH | 0.00219494 | ||||
Deposit | 19260032 | 273 days ago | IN | 0 ETH | 0.00210504 | ||||
Deposit | 19259838 | 273 days ago | IN | 0 ETH | 0.00213706 | ||||
Deposit | 19259400 | 273 days ago | IN | 0 ETH | 0.00178697 | ||||
Deposit | 19259252 | 273 days ago | IN | 0 ETH | 0.00145175 | ||||
Deposit | 19259185 | 273 days ago | IN | 0 ETH | 0.00156395 | ||||
Deposit | 19259128 | 273 days ago | IN | 0 ETH | 0.00182714 | ||||
Withdraw | 19259099 | 273 days ago | IN | 0 ETH | 0.00110893 | ||||
Withdraw | 19259088 | 273 days ago | IN | 0 ETH | 0.0012049 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ZtakingPool
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.24; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {SignatureChecker} from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol"; import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol"; import "./interface/IMigrator.sol"; import "./interface/IZtakingPool.sol"; /// @title Ztaking Pool /// @notice A staking pool for liquid restaking token holders which rewards stakers with points from multiple platforms contract ZtakingPool is IZtakingPool, Ownable, Pausable { using SafeERC20 for IERC20; // (tokenAddress => isAllowedForStaking) mapping(address => bool) public tokenAllowlist ; // (tokenAddress => stakerAddress => stakedAmount) mapping(address => mapping(address => uint256)) public balance ; // Next eventId to emit uint256 private eventId ; // Required signer for the migration message address public zircuitSigner; constructor(address _signer, address[] memory tokensAllowed) payable Ownable(msg.sender) { if (_signer == address(0)) revert SignerCannotBeZeroAddress(); zircuitSigner = _signer; for(uint256 i; i < tokensAllowed.length; ){ if (tokensAllowed[i] == address(0)) revert TokenCannotBeZeroAddress(); tokenAllowlist[tokensAllowed[i]] = true; unchecked{++i;} } } /*////////////////////////////////////////////////////////////// Staker Functions //////////////////////////////////////////////////////////////*/ function deposit(address _token, uint256 _amount) whenNotPaused external { if (_amount == 0) revert DepositAmountCannotBeZero(); if (!tokenAllowlist[_token]) revert TokenNotAllowedForStaking(); balance[_token][msg.sender] += _amount; emit Deposit(eventId, msg.sender, _token, _amount); ++eventId; IERC20(_token).safeTransferFrom(msg.sender, address(this), _amount); } function withdraw(address _token, uint256 _amount) external { if (_amount == 0) revert WithdrawAmountCannotBeZero(); balance[_token][msg.sender] -= _amount; //Will underfow if the staker has insufficient balance emit Withdraw(eventId, msg.sender, _token, _amount); ++eventId; IERC20(_token).safeTransfer(msg.sender, _amount); } function migrate( address[] calldata _tokens, address _migratorContract, address _destination, uint256 _signatureExpiry, bytes calldata _authorizationSignatureFromZircuit ) external { uint256[] memory _amounts = new uint256[](_tokens.length); //checks for-loop (validation checks) for(uint256 i; i < _tokens.length; ){ _amounts[i] = balance[_tokens[i]][msg.sender]; if (_amounts[i] == 0) revert UserDoesNotHaveStake(); unchecked{++i;} } if (block.timestamp >= _signatureExpiry) revert SignatureExpired();// allows us to invalidate signature by having it expired bytes32 constructedHash = keccak256( abi.encodePacked( '\x19Ethereum Signed Message:\n32', keccak256( abi.encodePacked( _tokens, _migratorContract, _signatureExpiry, address(this), block.chainid ) ) ) ); // verify that the migrator’s address is signed in the authorization signature by the correct signer (zircuitSigner) if (!SignatureChecker.isValidSignatureNow(zircuitSigner, constructedHash, _authorizationSignatureFromZircuit)){ revert SignatureInvalid(); } //effects for-loop (state changes) for(uint256 i; i < _tokens.length; ){ balance[_tokens[i]][msg.sender] = 0; unchecked{++i;} } emit Migrate (eventId, msg.sender, _tokens, _destination, _migratorContract, _amounts); ++eventId; //interactions for-loop (external calls) for(uint256 i; i < _tokens.length; ){ IERC20(_tokens[i]).approve(_migratorContract, _amounts[i]); unchecked{++i;} } IMigrator(_migratorContract).migrate(msg.sender, _tokens, _destination, _amounts); } /*////////////////////////////////////////////////////////////// Admin Functions //////////////////////////////////////////////////////////////*/ function setZircuitSigner(address _signer) external onlyOwner { if (_signer == address(0)) revert SignerCannotBeZeroAddress(); if (_signer == zircuitSigner) revert SignerAlreadySetToAddress(); zircuitSigner = _signer; emit SignerChanged(_signer); } function setStakable(address _token, bool _canStake) external onlyOwner { if (_token == address(0)) revert TokenCannotBeZeroAddress(); if (tokenAllowlist[_token] == _canStake) revert TokenAlreadyConfiguredWithState(); tokenAllowlist[_token] = _canStake; emit TokenStakabilityChanged(_token, _canStake); } function pause() external onlyOwner whenNotPaused { _pause(); } function unpause() external onlyOwner whenPaused{ _unpause(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1271.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC1271 standard signature validation method for * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271]. */ interface IERC1271 { /** * @dev Should return whether the signature provided is valid for the provided data * @param hash Hash of the data to be signed * @param signature Signature byte array associated with _data */ function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue); }
// 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/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/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/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 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.0.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.20; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS } /** * @dev The signature derives the `address(0)`. */ error ECDSAInvalidSignature(); /** * @dev The signature has an invalid length. */ error ECDSAInvalidSignatureLength(uint256 length); /** * @dev The signature has an S value that is in the upper half order. */ error ECDSAInvalidSignatureS(bytes32 s); /** * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not * return address(0) without also returning an error description. Errors are documented using an enum (error type) * and a bytes32 providing additional information about the error. * * If no error is returned, then the address can be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length)); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) { unchecked { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); // We do not check for an overflow here since the shift operation results in 0 or 1. uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs); _throwError(error, errorArg); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError, bytes32) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS, s); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature, bytes32(0)); } return (signer, RecoverError.NoError, bytes32(0)); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s); _throwError(error, errorArg); return recovered; } /** * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided. */ function _throwError(RecoverError error, bytes32 errorArg) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert ECDSAInvalidSignature(); } else if (error == RecoverError.InvalidSignatureLength) { revert ECDSAInvalidSignatureLength(uint256(errorArg)); } else if (error == RecoverError.InvalidSignatureS) { revert ECDSAInvalidSignatureS(errorArg); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/SignatureChecker.sol) pragma solidity ^0.8.20; import {ECDSA} from "./ECDSA.sol"; import {IERC1271} from "../../interfaces/IERC1271.sol"; /** * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like * Argent and Safe Wallet (previously Gnosis Safe). */ library SignatureChecker { /** * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`. * * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus * change through time. It could return true at block N and false at block N+1 (or the opposite). */ function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) { (address recovered, ECDSA.RecoverError error, ) = ECDSA.tryRecover(hash, signature); return (error == ECDSA.RecoverError.NoError && recovered == signer) || isValidERC1271SignatureNow(signer, hash, signature); } /** * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated * against the signer smart contract using ERC1271. * * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus * change through time. It could return true at block N and false at block N+1 (or the opposite). */ function isValidERC1271SignatureNow( address signer, bytes32 hash, bytes memory signature ) internal view returns (bool) { (bool success, bytes memory result) = signer.staticcall( abi.encodeCall(IERC1271.isValidSignature, (hash, signature)) ); return (success && result.length >= 32 && abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.24; /// @title Migrator Interface /// @notice Interface for the Migrator contract called by the Ztaking Pool's migrate() function interface IMigrator { ///@notice Function called by the Ztaking Pool to facilitate migration of staked tokens from the Ztaking Pool to Zircuit ///@param _user The address of the user whose staked funds are being migrated to Zircuit ///@param _tokens The tokens being migrated to Zircuit from the Ztaking Pool ///@param _destination The address which will be credited the tokens on Zircuit ///@param _amounts The amounts of each token to be migrated to Zircuit for the _user function migrate( address _user, address[] calldata _tokens, address _destination, uint256[] calldata _amounts ) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.24; /// @title Ztaking Pool Interface /// @notice An interface containing externally accessible functions of the ZtakingPool contract /// @dev The automatically generated public view functions for the state variables and mappings are not included in the interface interface IZtakingPool { /*////////////////////////////////////////////////////////////// Errors //////////////////////////////////////////////////////////////*/ error SignerCannotBeZeroAddress(); //Thrown when proposed signer is the zero address error SignerAlreadySetToAddress(); //Thrown when proposed signer is already set error SignatureInvalid(); // Thrown when the migration signature is invalid error SignatureExpired(); // Thrown when the migration signature has expired error TokenCannotBeZeroAddress(); // Thrown when the specified token is the zero address error TokenAlreadyConfiguredWithState(); //Thrown if the token as already been enabled or disabled error DepositAmountCannotBeZero(); // Thrown if staker attempts to call deposit() with zero amount error WithdrawAmountCannotBeZero(); //Thrown if staker attempts to call withdraw() with zero amount error TokenNotAllowedForStaking(); // Thrown if staker attempts to stake unsupported token (or token disabled for staking) error UserDoesNotHaveStake(); //Thrown if the staker is attempting to migrate with no stake /*////////////////////////////////////////////////////////////// Staker Events //////////////////////////////////////////////////////////////*/ ///@notice Emitted when a staker deposits/stakes a supported token into the Ztaking Pool ///@param eventId The unique event Id associated with the Deposit event ///@param depositor The address of the depositer/staker transfering funds to the Ztaking Pool ///@param token The address of the token deposited/staked into the pool ///@param amount The amount of token deposited/staked into the pool event Deposit( uint256 indexed eventId, address indexed depositor, address indexed token, uint256 amount ); ///@notice Emitted when a staker withdraws a previously staked tokens from the Ztaking Pool ///@param eventId The unique event Id associated with the Withdraw event ///@param withdrawer The address of the staker withdrawing funds from the Ztaking Pool ///@param token The address of the token being withdrawn from the pool ///@param amount The amount of tokens withdrawn the pool event Withdraw(uint256 indexed eventId, address indexed withdrawer, address indexed token, uint256 amount); ///@notice Emitted when a staker migrates their tokens from the ZtakingPool to Zircuit. ///@param eventId The unique event Id associated with the Migrate event ///@param user The address of the staker migrating funds to Zircuit ///@param tokens The addresses of the tokens being being migrated from the ZtakingPool to Zircuit ///@param destination The address which the tokens will be transferred to on Zircuit ///@param migrator The address of the migrator contract which initially receives the migrated tokens ///@param amounts The amounts of each token migrated to Zircuit event Migrate( uint256 indexed eventId, address indexed user, address[] tokens, address destination, address migrator, uint256[] amounts ); /*////////////////////////////////////////////////////////////// Admin Events //////////////////////////////////////////////////////////////*/ ///@notice Emitted when the required signer for the migration signature is changed ///@param newSigner The address of the new signer which must sign the migration signature event SignerChanged(address newSigner); ///@notice Emitted when a token has been enabled or disabled for staking ///@param token The address of the token which has been enabled/disabled for staking ///@param enabled Is true if the token is being enabled and false if the token is being disabled event TokenStakabilityChanged(address token, bool enabled); /*////////////////////////////////////////////////////////////// Staker Functions //////////////////////////////////////////////////////////////*/ ///@notice Stake a specified amount of a particular supported token into the Ztaking Pool ///@param _token The token to deposit/stake in the Ztaking Pool ///@param _amount The amount of token to deposit/stake into the Ztaking Pool function deposit(address _token, uint256 _amount) external; ///@notice Withdraw a specified amount of a particular supported token previously staked into the Ztaking Pool ///@param _token The token to withdraw from the Ztaking Pool ///@param _amount The amount of token to withdraw from the Ztaking Pool function withdraw(address _token, uint256 _amount) external; ///@notice Migrate the staked tokens for the caller from the Ztaking Pool to Zircuit ///@param _tokens The tokens to migrate to Zircuit from the Ztaking Pool ///@param _migratorContract The migrator contract which will initially receive the migrated tokens before moving them to Zircuit ///@param _destination The address which will receive the migrated tokens on Zircuit ///@param _signatureExpiry The timestamp at which the signature in _authorizationSignatureFromZircuit expires ///@param _authorizationSignatureFromZircuit The authorization signature which is signed by the zircuit signer and indicates the correct migrator contract function migrate( address[] calldata _tokens, address _migratorContract, address _destination, uint256 _signatureExpiry, bytes memory _authorizationSignatureFromZircuit ) external; /*////////////////////////////////////////////////////////////// Admin Functions //////////////////////////////////////////////////////////////*/ ///@notice Set/Change the required signer for the migration signature (_authorizationSignatureFromZircuit in the migrate() function) ///@param _signer The address of the new signer for the migration signature ///@dev Only callable by the owner function setZircuitSigner(address _signer) external; ///@notice Enable or disable the specified token for staking ///@param _token The token to enable or disable for staking ///@param _canStake If true, then staking is to be enabled. If false, then staking will be disabled. ///@dev Only callable by the owner function setStakable(address _token, bool _canStake) external; ///@notice Pause further staking through the deposit function. ///@dev Only callable by the owner. Withdrawals and migrations will still be possible when paused function pause() external; ///@notice Unpause staking allowing the deposit function to be used again ///@dev Only callable by the owner function unpause() external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"address[]","name":"tokensAllowed","type":"address[]"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"DepositAmountCannotBeZero","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"SignatureExpired","type":"error"},{"inputs":[],"name":"SignatureInvalid","type":"error"},{"inputs":[],"name":"SignerAlreadySetToAddress","type":"error"},{"inputs":[],"name":"SignerCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"TokenAlreadyConfiguredWithState","type":"error"},{"inputs":[],"name":"TokenCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"TokenNotAllowedForStaking","type":"error"},{"inputs":[],"name":"UserDoesNotHaveStake","type":"error"},{"inputs":[],"name":"WithdrawAmountCannotBeZero","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"address","name":"destination","type":"address"},{"indexed":false,"internalType":"address","name":"migrator","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"Migrate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newSigner","type":"address"}],"name":"SignerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"TokenStakabilityChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"address","name":"_migratorContract","type":"address"},{"internalType":"address","name":"_destination","type":"address"},{"internalType":"uint256","name":"_signatureExpiry","type":"uint256"},{"internalType":"bytes","name":"_authorizationSignatureFromZircuit","type":"bytes"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_canStake","type":"bool"}],"name":"setStakable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setZircuitSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zircuitSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052604051620017fe380380620017fe8339810160408190526200002691620001e7565b33806200004d57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000588162000164565b506000805460ff60a01b191690556001600160a01b0382166200008e576040516367db084560e11b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b03841617905560005b81518110156200015b5760006001600160a01b0316828281518110620000d657620000d6620002d0565b60200260200101516001600160a01b0316036200010657604051635f5d339960e01b815260040160405180910390fd5b6001806000848481518110620001205762000120620002d0565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101620000ac565b505050620002e6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001cc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215620001fb57600080fd5b6200020683620001b4565b602084810151919350906001600160401b03808211156200022657600080fd5b818601915086601f8301126200023b57600080fd5b815181811115620002505762000250620001d1565b8060051b604051601f19603f83011681018181108582111715620002785762000278620001d1565b6040529182528482019250838101850191898311156200029757600080fd5b938501935b82851015620002c057620002b085620001b4565b845293850193928501926200029c565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b61150880620002f66000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638da5cb5b1161008c578063e3c3421611610066578063e3c34216146101ea578063e63b81a6146101fd578063f2fde38b14610210578063f3fef3a31461022357600080fd5b80638da5cb5b1461018d578063b203bb991461019e578063da3a3a88146101d757600080fd5b80635c975abb116100c85780635c975abb1461013c578063715018a61461015a5780638135369a146101625780638456cb591461018557600080fd5b80633f4ba83a146100ef57806344e7cb13146100f957806347e7ef2414610129575b600080fd5b6100f7610236565b005b60045461010c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100f761013736600461103c565b610250565b600054600160a01b900460ff165b6040519015158152602001610120565b6100f7610359565b61014a610170366004611066565b60016020526000908152604090205460ff1681565b6100f761036b565b6000546001600160a01b031661010c565b6101c96101ac366004611081565b600260209081526000928352604080842090915290825290205481565b604051908152602001610120565b6100f76101e5366004611066565b610383565b6100f76101f83660046110fd565b610435565b6100f761020b3660046111d7565b610852565b6100f761021e366004611066565b610925565b6100f761023136600461103c565b610968565b61023e610a2b565b610246610a58565b61024e610a82565b565b610258610ad7565b80600003610279576040516318bb758960e11b815260040160405180910390fd5b6001600160a01b03821660009081526001602052604090205460ff166102b25760405163072b889f60e11b815260040160405180910390fd5b6001600160a01b0382166000908152600260209081526040808320338452909152812080548392906102e5908490611224565b90915550506003546040518281526001600160a01b0384169133917f2c0f148b435140de488c1b34647f1511c646f7077e87007bacf22ef9977a16d89060200160405180910390a460036000815461033c90611237565b909155506103556001600160a01b038316333084610b02565b5050565b610361610a2b565b61024e6000610b6f565b610373610a2b565b61037b610ad7565b61024e610bbf565b61038b610a2b565b6001600160a01b0381166103b2576040516367db084560e11b815260040160405180910390fd5b6004546001600160a01b03908116908216036103e15760405163c0af9fdf60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d9060200160405180910390a150565b60008667ffffffffffffffff81111561045057610450611250565b604051908082528060200260200182016040528015610479578160200160208202803683370190505b50905060005b8781101561053b57600260008a8a8481811061049d5761049d611266565b90506020020160208101906104b29190611066565b6001600160a01b031681526020808201929092526040908101600090812033825290925290205482518390839081106104ed576104ed611266565b60200260200101818152505081818151811061050b5761050b611266565b60200260200101516000036105335760405163a809389f60e01b815260040160405180910390fd5b60010161047f565b5083421061055c57604051630819bdcd60e01b815260040160405180910390fd5b60008888888730466040516020016105799695949392919061127c565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160408051601f198184030181528282528051602091820120600454601f88018390048302850183019093528684529350610624926001600160a01b039092169184918890889081908401838280828437600092019190915250610c0292505050565b610641576040516337e8456b60e01b815260040160405180910390fd5b60005b888110156106a8576000600260008c8c8581811061066457610664611266565b90506020020160208101906106799190611066565b6001600160a01b0316815260208082019290925260409081016000908120338252909252902055600101610644565b50336001600160a01b03166003547f8ec7c0970f810f90b2e926cd4ee4f32efff0ef16fb5e08617c11b9fad14dfc008b8b8a8c886040516106ed959493929190611366565b60405180910390a360036000815461070490611237565b9091555060005b888110156107e05789898281811061072557610725611266565b905060200201602081019061073a9190611066565b6001600160a01b031663095ea7b38985848151811061075b5761075b611266565b60200260200101516040518363ffffffff1660e01b81526004016107949291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af11580156107b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d791906113af565b5060010161070b565b506040516355e663bf60e11b81526001600160a01b0388169063abccc77e906108159033908d908d908c9089906004016113cc565b600060405180830381600087803b15801561082f57600080fd5b505af1158015610843573d6000803e3d6000fd5b50505050505050505050505050565b61085a610a2b565b6001600160a01b03821661088157604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b03821660009081526001602052604090205481151560ff9091161515036108c257604051637565bf8f60e11b815260040160405180910390fd5b6001600160a01b038216600081815260016020908152604091829020805460ff19168515159081179091558251938452908301527f303d37f32762627f23f474bb09535b3c1c7cb4f0f75c8960c42512b046ee24a8910160405180910390a15050565b61092d610a2b565b6001600160a01b03811661095c57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61096581610b6f565b50565b806000036109895760405163b8fc0f3b60e01b815260040160405180910390fd5b6001600160a01b0382166000908152600260209081526040808320338452909152812080548392906109bc908490611416565b90915550506003546040518281526001600160a01b0384169133917ffeb2000dca3e617cd6f3a8bbb63014bb54a124aac6ccbf73ee7229b4cd01f1209060200160405180910390a4600360008154610a1390611237565b909155506103556001600160a01b0383163383610c66565b6000546001600160a01b0316331461024e5760405163118cdaa760e01b8152336004820152602401610953565b600054600160a01b900460ff1661024e57604051638dfc202b60e01b815260040160405180910390fd5b610a8a610a58565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff161561024e5760405163d93c066560e01b815260040160405180910390fd5b6040516001600160a01b038481166024830152838116604483015260648201839052610b699186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610c9c565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610bc7610ad7565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610aba3390565b6000806000610c118585610cff565b5090925090506000816003811115610c2b57610c2b611429565b148015610c495750856001600160a01b0316826001600160a01b0316145b80610c5a5750610c5a868686610d4c565b925050505b9392505050565b6040516001600160a01b03838116602483015260448201839052610c9791859182169063a9059cbb90606401610b37565b505050565b6000610cb16001600160a01b03841683610e27565b90508051600014158015610cd6575080806020019051810190610cd491906113af565b155b15610c9757604051635274afe760e01b81526001600160a01b0384166004820152602401610953565b60008060008351604103610d395760208401516040850151606086015160001a610d2b88828585610e3e565b955095509550505050610d45565b50508151600091506002905b9250925092565b6000806000856001600160a01b03168585604051602401610d6e929190611463565b60408051601f198184030181529181526020820180516001600160e01b0316630b135d3f60e11b17905251610da3919061149d565b600060405180830381855afa9150503d8060008114610dde576040519150601f19603f3d011682016040523d82523d6000602084013e610de3565b606091505b5091509150818015610df757506020815110155b8015610c5a57508051630b135d3f60e11b90610e1c90830160209081019084016114b9565b149695505050505050565b6060610e3583836000610f0d565b90505b92915050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610e795750600091506003905082610f03565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610ecd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ef957506000925060019150829050610f03565b9250600091508190505b9450945094915050565b606081471015610f325760405163cd78605960e01b8152306004820152602401610953565b600080856001600160a01b03168486604051610f4e919061149d565b60006040518083038185875af1925050503d8060008114610f8b576040519150601f19603f3d011682016040523d82523d6000602084013e610f90565b606091505b5091509150610c5a868383606082610fb057610fab82610ff7565b610c5f565b8151158015610fc757506001600160a01b0384163b155b15610ff057604051639996b31560e01b81526001600160a01b0385166004820152602401610953565b5080610c5f565b8051156110075780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b038116811461103757600080fd5b919050565b6000806040838503121561104f57600080fd5b61105883611020565b946020939093013593505050565b60006020828403121561107857600080fd5b610e3582611020565b6000806040838503121561109457600080fd5b61109d83611020565b91506110ab60208401611020565b90509250929050565b60008083601f8401126110c657600080fd5b50813567ffffffffffffffff8111156110de57600080fd5b6020830191508360208285010111156110f657600080fd5b9250929050565b600080600080600080600060a0888a03121561111857600080fd5b873567ffffffffffffffff8082111561113057600080fd5b818a0191508a601f83011261114457600080fd5b81358181111561115357600080fd5b8b60208260051b850101111561116857600080fd5b6020830199508098505061117e60208b01611020565b965061118c60408b01611020565b955060608a0135945060808a01359150808211156111a957600080fd5b506111b68a828b016110b4565b989b979a50959850939692959293505050565b801515811461096557600080fd5b600080604083850312156111ea57600080fd5b6111f383611020565b91506020830135611203816111c9565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610e3857610e3861120e565b6000600182016112495761124961120e565b5060010190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008188825b898110156112b1576001600160a01b0361129b83611020565b1683526020928301929190910190600101611282565b50506bffffffffffffffffffffffff19606097881b8116825260148201969096529390951b90931660348301526048820152606801949350505050565b8183526000602080850194508260005b8581101561132a576001600160a01b0361131783611020565b16875295820195908201906001016112fe565b509495945050505050565b60008151808452602080850194506020840160005b8381101561132a5781518752958201959082019060010161134a565b60808152600061137a6080830187896112ee565b6001600160a01b0386811660208501528516604084015282810360608401526113a38185611335565b98975050505050505050565b6000602082840312156113c157600080fd5b8151610c5f816111c9565b600060018060a01b038088168352608060208401526113ef6080840187896112ee565b818616604085015283810360608501526114098186611335565b9998505050505050505050565b81810381811115610e3857610e3861120e565b634e487b7160e01b600052602160045260246000fd5b60005b8381101561145a578181015183820152602001611442565b50506000910152565b828152604060208201526000825180604084015261148881606085016020870161143f565b601f01601f1916919091016060019392505050565b600082516114af81846020870161143f565b9190910192915050565b6000602082840312156114cb57600080fd5b505191905056fea264697066735822122057011dfdb8fb0c276d2d94eb463e78a2f2e56d43a3eaff5a42a5eb08cbb8022764736f6c63430008180033000000000000000000000000e42a95c84f9dd116066effb733e8294931967a0d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bf5495efe5db9ce00f80364c8b423567e58d2110000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80638da5cb5b1161008c578063e3c3421611610066578063e3c34216146101ea578063e63b81a6146101fd578063f2fde38b14610210578063f3fef3a31461022357600080fd5b80638da5cb5b1461018d578063b203bb991461019e578063da3a3a88146101d757600080fd5b80635c975abb116100c85780635c975abb1461013c578063715018a61461015a5780638135369a146101625780638456cb591461018557600080fd5b80633f4ba83a146100ef57806344e7cb13146100f957806347e7ef2414610129575b600080fd5b6100f7610236565b005b60045461010c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100f761013736600461103c565b610250565b600054600160a01b900460ff165b6040519015158152602001610120565b6100f7610359565b61014a610170366004611066565b60016020526000908152604090205460ff1681565b6100f761036b565b6000546001600160a01b031661010c565b6101c96101ac366004611081565b600260209081526000928352604080842090915290825290205481565b604051908152602001610120565b6100f76101e5366004611066565b610383565b6100f76101f83660046110fd565b610435565b6100f761020b3660046111d7565b610852565b6100f761021e366004611066565b610925565b6100f761023136600461103c565b610968565b61023e610a2b565b610246610a58565b61024e610a82565b565b610258610ad7565b80600003610279576040516318bb758960e11b815260040160405180910390fd5b6001600160a01b03821660009081526001602052604090205460ff166102b25760405163072b889f60e11b815260040160405180910390fd5b6001600160a01b0382166000908152600260209081526040808320338452909152812080548392906102e5908490611224565b90915550506003546040518281526001600160a01b0384169133917f2c0f148b435140de488c1b34647f1511c646f7077e87007bacf22ef9977a16d89060200160405180910390a460036000815461033c90611237565b909155506103556001600160a01b038316333084610b02565b5050565b610361610a2b565b61024e6000610b6f565b610373610a2b565b61037b610ad7565b61024e610bbf565b61038b610a2b565b6001600160a01b0381166103b2576040516367db084560e11b815260040160405180910390fd5b6004546001600160a01b03908116908216036103e15760405163c0af9fdf60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d9060200160405180910390a150565b60008667ffffffffffffffff81111561045057610450611250565b604051908082528060200260200182016040528015610479578160200160208202803683370190505b50905060005b8781101561053b57600260008a8a8481811061049d5761049d611266565b90506020020160208101906104b29190611066565b6001600160a01b031681526020808201929092526040908101600090812033825290925290205482518390839081106104ed576104ed611266565b60200260200101818152505081818151811061050b5761050b611266565b60200260200101516000036105335760405163a809389f60e01b815260040160405180910390fd5b60010161047f565b5083421061055c57604051630819bdcd60e01b815260040160405180910390fd5b60008888888730466040516020016105799695949392919061127c565b60408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c0160408051601f198184030181528282528051602091820120600454601f88018390048302850183019093528684529350610624926001600160a01b039092169184918890889081908401838280828437600092019190915250610c0292505050565b610641576040516337e8456b60e01b815260040160405180910390fd5b60005b888110156106a8576000600260008c8c8581811061066457610664611266565b90506020020160208101906106799190611066565b6001600160a01b0316815260208082019290925260409081016000908120338252909252902055600101610644565b50336001600160a01b03166003547f8ec7c0970f810f90b2e926cd4ee4f32efff0ef16fb5e08617c11b9fad14dfc008b8b8a8c886040516106ed959493929190611366565b60405180910390a360036000815461070490611237565b9091555060005b888110156107e05789898281811061072557610725611266565b905060200201602081019061073a9190611066565b6001600160a01b031663095ea7b38985848151811061075b5761075b611266565b60200260200101516040518363ffffffff1660e01b81526004016107949291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af11580156107b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d791906113af565b5060010161070b565b506040516355e663bf60e11b81526001600160a01b0388169063abccc77e906108159033908d908d908c9089906004016113cc565b600060405180830381600087803b15801561082f57600080fd5b505af1158015610843573d6000803e3d6000fd5b50505050505050505050505050565b61085a610a2b565b6001600160a01b03821661088157604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b03821660009081526001602052604090205481151560ff9091161515036108c257604051637565bf8f60e11b815260040160405180910390fd5b6001600160a01b038216600081815260016020908152604091829020805460ff19168515159081179091558251938452908301527f303d37f32762627f23f474bb09535b3c1c7cb4f0f75c8960c42512b046ee24a8910160405180910390a15050565b61092d610a2b565b6001600160a01b03811661095c57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61096581610b6f565b50565b806000036109895760405163b8fc0f3b60e01b815260040160405180910390fd5b6001600160a01b0382166000908152600260209081526040808320338452909152812080548392906109bc908490611416565b90915550506003546040518281526001600160a01b0384169133917ffeb2000dca3e617cd6f3a8bbb63014bb54a124aac6ccbf73ee7229b4cd01f1209060200160405180910390a4600360008154610a1390611237565b909155506103556001600160a01b0383163383610c66565b6000546001600160a01b0316331461024e5760405163118cdaa760e01b8152336004820152602401610953565b600054600160a01b900460ff1661024e57604051638dfc202b60e01b815260040160405180910390fd5b610a8a610a58565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff161561024e5760405163d93c066560e01b815260040160405180910390fd5b6040516001600160a01b038481166024830152838116604483015260648201839052610b699186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610c9c565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610bc7610ad7565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610aba3390565b6000806000610c118585610cff565b5090925090506000816003811115610c2b57610c2b611429565b148015610c495750856001600160a01b0316826001600160a01b0316145b80610c5a5750610c5a868686610d4c565b925050505b9392505050565b6040516001600160a01b03838116602483015260448201839052610c9791859182169063a9059cbb90606401610b37565b505050565b6000610cb16001600160a01b03841683610e27565b90508051600014158015610cd6575080806020019051810190610cd491906113af565b155b15610c9757604051635274afe760e01b81526001600160a01b0384166004820152602401610953565b60008060008351604103610d395760208401516040850151606086015160001a610d2b88828585610e3e565b955095509550505050610d45565b50508151600091506002905b9250925092565b6000806000856001600160a01b03168585604051602401610d6e929190611463565b60408051601f198184030181529181526020820180516001600160e01b0316630b135d3f60e11b17905251610da3919061149d565b600060405180830381855afa9150503d8060008114610dde576040519150601f19603f3d011682016040523d82523d6000602084013e610de3565b606091505b5091509150818015610df757506020815110155b8015610c5a57508051630b135d3f60e11b90610e1c90830160209081019084016114b9565b149695505050505050565b6060610e3583836000610f0d565b90505b92915050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610e795750600091506003905082610f03565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610ecd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ef957506000925060019150829050610f03565b9250600091508190505b9450945094915050565b606081471015610f325760405163cd78605960e01b8152306004820152602401610953565b600080856001600160a01b03168486604051610f4e919061149d565b60006040518083038185875af1925050503d8060008114610f8b576040519150601f19603f3d011682016040523d82523d6000602084013e610f90565b606091505b5091509150610c5a868383606082610fb057610fab82610ff7565b610c5f565b8151158015610fc757506001600160a01b0384163b155b15610ff057604051639996b31560e01b81526001600160a01b0385166004820152602401610953565b5080610c5f565b8051156110075780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b038116811461103757600080fd5b919050565b6000806040838503121561104f57600080fd5b61105883611020565b946020939093013593505050565b60006020828403121561107857600080fd5b610e3582611020565b6000806040838503121561109457600080fd5b61109d83611020565b91506110ab60208401611020565b90509250929050565b60008083601f8401126110c657600080fd5b50813567ffffffffffffffff8111156110de57600080fd5b6020830191508360208285010111156110f657600080fd5b9250929050565b600080600080600080600060a0888a03121561111857600080fd5b873567ffffffffffffffff8082111561113057600080fd5b818a0191508a601f83011261114457600080fd5b81358181111561115357600080fd5b8b60208260051b850101111561116857600080fd5b6020830199508098505061117e60208b01611020565b965061118c60408b01611020565b955060608a0135945060808a01359150808211156111a957600080fd5b506111b68a828b016110b4565b989b979a50959850939692959293505050565b801515811461096557600080fd5b600080604083850312156111ea57600080fd5b6111f383611020565b91506020830135611203816111c9565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610e3857610e3861120e565b6000600182016112495761124961120e565b5060010190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008188825b898110156112b1576001600160a01b0361129b83611020565b1683526020928301929190910190600101611282565b50506bffffffffffffffffffffffff19606097881b8116825260148201969096529390951b90931660348301526048820152606801949350505050565b8183526000602080850194508260005b8581101561132a576001600160a01b0361131783611020565b16875295820195908201906001016112fe565b509495945050505050565b60008151808452602080850194506020840160005b8381101561132a5781518752958201959082019060010161134a565b60808152600061137a6080830187896112ee565b6001600160a01b0386811660208501528516604084015282810360608401526113a38185611335565b98975050505050505050565b6000602082840312156113c157600080fd5b8151610c5f816111c9565b600060018060a01b038088168352608060208401526113ef6080840187896112ee565b818616604085015283810360608501526114098186611335565b9998505050505050505050565b81810381811115610e3857610e3861120e565b634e487b7160e01b600052602160045260246000fd5b60005b8381101561145a578181015183820152602001611442565b50506000910152565b828152604060208201526000825180604084015261148881606085016020870161143f565b601f01601f1916919091016060019392505050565b600082516114af81846020870161143f565b9190910192915050565b6000602082840312156114cb57600080fd5b505191905056fea264697066735822122057011dfdb8fb0c276d2d94eb463e78a2f2e56d43a3eaff5a42a5eb08cbb8022764736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e42a95c84f9dd116066effb733e8294931967a0d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bf5495efe5db9ce00f80364c8b423567e58d2110000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a7
-----Decoded View---------------
Arg [0] : _signer (address): 0xE42A95c84f9dd116066Effb733e8294931967a0d
Arg [1] : tokensAllowed (address[]): 0xbf5495Efe5DB9ce00f80364C8B423567e58d2110,0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000e42a95c84f9dd116066effb733e8294931967a0d
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 000000000000000000000000bf5495efe5db9ce00f80364c8b423567e58d2110
Arg [4] : 000000000000000000000000a1290d69c65a6fe4df752f95823fae25cb99e5a7
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.