Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
2.150831403 ETH
Eth Value
$5,433.23 (@ $2,526.11/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 44 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Payment Check | 20459304 | 25 days ago | IN | 0 ETH | 0.0086414 | ||||
Payment Check | 19431104 | 169 days ago | IN | 0 ETH | 0.00194273 | ||||
Payment Check | 18391267 | 315 days ago | IN | 0 ETH | 0.00047632 | ||||
Payment Check | 18212136 | 340 days ago | IN | 0 ETH | 0.00032329 | ||||
Payment Check | 18211836 | 340 days ago | IN | 0 ETH | 0.00031787 | ||||
Payment Check | 18181617 | 344 days ago | IN | 0 ETH | 0.00063043 | ||||
Payment Check | 18096415 | 356 days ago | IN | 0 ETH | 0.00038375 | ||||
Payment Check | 18040243 | 364 days ago | IN | 0 ETH | 0.00054608 | ||||
Payment Check | 17998700 | 370 days ago | IN | 0 ETH | 0.00048498 | ||||
Payment Check | 17832642 | 393 days ago | IN | 0 ETH | 0.00062164 | ||||
Payment Check | 17824584 | 394 days ago | IN | 0 ETH | 0.00061889 | ||||
Payment Check | 17767390 | 402 days ago | IN | 0 ETH | 0.00102765 | ||||
Payment Check | 17678366 | 415 days ago | IN | 0 ETH | 0.00199565 | ||||
Payment Check | 17613742 | 424 days ago | IN | 0 ETH | 0.00104841 | ||||
Payment Check | 17442371 | 448 days ago | IN | 0 ETH | 0.00081788 | ||||
Payment Check | 17342545 | 462 days ago | IN | 0 ETH | 0.00125563 | ||||
Payment Check | 17314697 | 466 days ago | IN | 0 ETH | 0.00131391 | ||||
Payment Check | 17309074 | 467 days ago | IN | 0 ETH | 0.001471 | ||||
Payment Check | 17238064 | 477 days ago | IN | 0 ETH | 0.00404909 | ||||
Payment Check | 17082692 | 499 days ago | IN | 0 ETH | 0.0032964 | ||||
Payment Check | 17054470 | 503 days ago | IN | 0 ETH | 0.00103327 | ||||
Payment Check | 17026499 | 507 days ago | IN | 0 ETH | 0.00265628 | ||||
Payment Check | 16958665 | 516 days ago | IN | 0 ETH | 0.00071972 | ||||
Payment Check | 16938403 | 519 days ago | IN | 0 ETH | 0.00111383 | ||||
Payment Check | 16841886 | 533 days ago | IN | 0 ETH | 0.0011992 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20459304 | 25 days ago | 0.12757983 ETH | ||||
20077857 | 79 days ago | 0.01571822 ETH | ||||
20077857 | 79 days ago | 0.1623 ETH | ||||
20077841 | 79 days ago | 0.1 ETH | ||||
19924679 | 100 days ago | 0.00733556 ETH | ||||
19924679 | 100 days ago | 0.0947 ETH | ||||
19646802 | 139 days ago | 0.01285854 ETH | ||||
19646802 | 139 days ago | 0.0902 ETH | ||||
19431104 | 169 days ago | 0.02310012 ETH | ||||
19181051 | 204 days ago | 0.02875158 ETH | ||||
19181051 | 204 days ago | 0.11 ETH | ||||
18714229 | 270 days ago | 0.0488361 ETH | ||||
18714229 | 270 days ago | 0.20768961 ETH | ||||
18647519 | 279 days ago | 0.02 ETH | ||||
18647506 | 279 days ago | 0.02 ETH | ||||
18599320 | 286 days ago | 0.1 ETH | ||||
18453042 | 306 days ago | 0.01209369 ETH | ||||
18453042 | 306 days ago | 0.09967055 ETH | ||||
18391267 | 315 days ago | 0 ETH | ||||
18391222 | 315 days ago | 0.01034234 ETH | ||||
18391222 | 315 days ago | 0.28322773 ETH | ||||
18390551 | 315 days ago | 0.04 ETH | ||||
18362219 | 319 days ago | 0.1074031 ETH | ||||
18362180 | 319 days ago | 0.1074031 ETH | ||||
18255462 | 334 days ago | 0.10544271 ETH |
Loading...
Loading
Contract Name:
FeeBoxETH
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0 <0.9.0; import "../base/AdapterBase.sol"; import "./VerifierBasic.sol"; import "../../interfaces/IWETH.sol"; import "../../core/controller/IAccount.sol"; /* Users deposit some eth/steth as gas fee to support automatic contract calls in the background */ contract Verifier is VerifierBasic { function getMessageHash( address _account, uint256 _amount, bool _access, uint256 _deadline, uint256 _nonce ) public pure returns (bytes32) { return keccak256( abi.encodePacked(_account, _amount, _access, _deadline, _nonce) ); } function verify( address _signer, address _account, uint256 _amount, bool _access, uint256 _deadline, bytes memory signature ) internal returns (bool) { require(_deadline >= block.timestamp, "Signature expired"); bytes32 messageHash = getMessageHash( _account, _amount, _access, _deadline, nonces[_account]++ ); bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash); return recoverSigner(ethSignedMessageHash, signature) == _signer; } } contract FeeBoxETH is Verifier, AdapterBase { using SafeERC20 for IERC20; event FeeBoxETHDeposit( address account, uint256 amount, uint256 consumedAmount ); event FeeBoxETHWithdraw( address account, uint256 amount, uint256 consumedAmount ); address public balanceController; address public feeReceiver; mapping(address => uint256) public ethBalance; constructor(address _adapterManager, address _timelock) AdapterBase(_adapterManager, _timelock, "FeeBoxETH") {} function initialize(address _balanceController, address _feeReceiver) external onlyTimelock { balanceController = _balanceController; feeReceiver = _feeReceiver; } modifier onlySigner() { require(balanceController == msg.sender, "!Signer"); _; } function setAdapterManager(address newAdapterManger) external onlyTimelock { ADAPTER_MANAGER = newAdapterManger; } function setBalance(address[] memory users, uint256[] memory balance) external onlySigner { require(users.length == balance.length, "length error!"); for (uint256 i = 0; i < users.length; i++) { ethBalance[users[i]] = balance[i]; } } function paymentCheck(address account, uint256 consumedAmount) external onlySigner { require(ethBalance[account] >= consumedAmount); ethBalance[account] -= consumedAmount; safeTransferETH(feeReceiver, consumedAmount); } function depositWithPermit(address account, bytes calldata encodedData) external payable onlyAdapterManager { require(tx.origin == IAccount(account).owner(), "!EOA"); ( uint256 amount, uint256 consumedAmount, bool access, uint256 deadline, bytes memory signature ) = abi.decode(encodedData, (uint256, uint256, bool, uint256, bytes)); require(access, "Not deposit method."); require( verify( balanceController, account, consumedAmount, access, deadline, signature ), "Verify failed!" ); if (amount != 0) { pullTokensIfNeeded(wethAddr, account, amount); IWETH(wethAddr).withdraw(amount); } require( ethBalance[account] + amount + msg.value >= consumedAmount, "Insolvent!" ); ethBalance[account] = ethBalance[account] + amount + msg.value - consumedAmount; if (consumedAmount != 0) { safeTransferETH(feeReceiver, consumedAmount); } emit FeeBoxETHDeposit(account, amount + msg.value, consumedAmount); } function withdrawWithPermit(address account, bytes calldata encodedData) external onlyAdapterManager { ( bool isNative, uint256 amount, uint256 consumedAmount, bool access, uint256 deadline, bytes memory signature ) = abi.decode( encodedData, (bool, uint256, uint256, bool, uint256, bytes) ); require(!access, "Not withdraw method."); require( verify( balanceController, account, consumedAmount, access, deadline, signature ), "Verify failed!" ); require(ethBalance[account] >= consumedAmount + amount, "Insolvent!"); ethBalance[account] = ethBalance[account] - amount - consumedAmount; if (isNative) { safeTransferETH(account, amount); } else { IWETH(wethAddr).deposit{value: amount}(); IERC20(wethAddr).safeTransfer(account, amount); } if (consumedAmount != 0) { safeTransferETH(feeReceiver, consumedAmount); } emit FeeBoxETHWithdraw(account, amount, consumedAmount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../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. * * By default, the owner account will be the one that deploys the contract. 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; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _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 v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` 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 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../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; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @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, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @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, it is bubbled up by this * function (like regular Solidity function calls). * * 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. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @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`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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 (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @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, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode 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 {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] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ 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. 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 if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode 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 {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); 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] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); 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. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // 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); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // 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); } return (signer, RecoverError.NoError); } /** * @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) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../../timelock/TimelockCallable.sol"; import "../../common/Basic.sol"; abstract contract AdapterBase is Basic, Ownable, TimelockCallable { using SafeERC20 for IERC20; address public ADAPTER_MANAGER; address public immutable ADAPTER_ADDRESS; string public ADAPTER_NAME; mapping(address => mapping(address => bool)) private approved; receive() external payable {} modifier onlyAdapterManager() { require( ADAPTER_MANAGER == msg.sender, "Caller is not the adapterManager." ); _; } modifier onlyDelegation() { require(ADAPTER_ADDRESS != address(this), "Only for delegatecall."); _; } constructor( address _adapterManager, address _timelock, string memory _name ) TimelockCallable(_timelock) { ADAPTER_MANAGER = _adapterManager; ADAPTER_ADDRESS = address(this); ADAPTER_NAME = _name; } function pullTokensIfNeeded( address _token, address _from, uint256 _amount ) internal { if (_amount == 0) return; require(_token != address(0) && _token != ethAddr); uint256 balance = IERC20(_token).balanceOf(_from); uint256 currentAmount = balance < _amount ? balance : _amount; IERC20(_token).safeTransferFrom(_from, address(this), currentAmount); } function approveToken( address _token, address _spender, uint256 _amount ) internal { if (_amount == 0) return; if (!approved[_token][_spender]) { IERC20 token = IERC20(_token); token.safeApprove(_spender, 0); token.safeApprove(_spender, type(uint256).max); approved[_token][_spender] = true; } } /// @dev get the token from sender, and approve to the user in one step function pullAndApprove( address _token, address _from, address _spender, uint256 _amount ) internal { pullTokensIfNeeded(_token, _from, _amount); approveToken(_token, _spender, _amount); } function returnAsset( address _token, address _to, uint256 _amount ) internal { if (_amount > 0) { if (_token == ethAddr) { safeTransferETH(_to, _amount); } else { require(_token != address(0), "Token error!"); IERC20(_token).safeTransfer(_to, _amount); } } } function toCallback( address _target, bytes4 _selector, bytes memory _callData ) internal { (bool success, bytes memory returnData) = _target.call( abi.encodePacked(_selector, _callData) ); require(success, string(returnData)); } //Handle when someone else accidentally transfers assets to this contract function sweep(address[] memory tokens, address receiver) external onlyTimelock { require(address(this) == ADAPTER_ADDRESS, "!Invalid call"); for (uint256 i = 0; i < tokens.length; i++) { address token = tokens[i]; if (token == address(0)) continue; uint256 amount = IERC20(token).balanceOf(address(this)); if (amount > 0) { IERC20(token).safeTransfer(receiver, amount); } } uint256 balance = address(this).balance; if (balance > 0) { safeTransferETH(receiver, balance); } } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0 <0.9.0; import "../base/AdapterBase.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract VerifierBasic { using ECDSA for bytes32; mapping(address => uint256) public nonces; function getEthSignedMessageHash(bytes32 _messageHash) public pure returns (bytes32) { /* Signature is produced by signing a keccak256 hash with the following format: "\x19Ethereum Signed Message\n" + len(msg) + msg */ return keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", _messageHash ) ); } function recoverSigner( bytes32 _ethSignedMessageHash, bytes memory _signature ) public pure returns (address) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature); return _ethSignedMessageHash.recover(v, r, s); } function splitSignature(bytes memory sig) public pure returns ( bytes32 r, bytes32 s, uint8 v ) { require(sig.length == 65, "invalid signature length"); assembly { /* First 32 bytes stores the length of the signature add(sig, 32) = pointer of sig + 32 effectively, skips first 32 bytes of signature mload(p) loads next 32 bytes starting at the memory address p into memory */ // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } // implicitly return (r, s, v) } function getEthBlockTimestamp() public view returns (uint256 timestamp) { timestamp = block.timestamp; } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0 <0.9.0; abstract contract Basic { /** * @dev Return ethereum address */ address public constant ethAddr = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; /// @dev Return Wrapped ETH address address public constant wethAddr = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; function safeTransferETH(address to, uint256 value) internal { if (value != 0) { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, "helper::safeTransferETH: ETH transfer failed"); } } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0 <0.9.0; interface IAccount { function owner() external view returns (address); function createSubAccount(bytes memory _data, uint256 _costETH) external payable returns (address newSubAccount); function executeOnAdapter(bytes calldata _callBytes, bool _callType) external payable returns (bytes memory); function multiCall( bool[] calldata _callType, bytes[] calldata _callArgs, bool[] calldata _isNeedCallback ) external; function setAdvancedOption(bool val) external; function callOnSubAccount( address _target, bytes calldata _callArgs, uint256 amountETH ) external; function withdrawAssets( address[] calldata _tokens, address _receiver, uint256[] calldata _amounts ) external; function approve( address tokenAddr, address to, uint256 amount ) external; function approveTokens( address[] calldata _tokens, address[] calldata _spenders, uint256[] calldata _amounts ) external; function isSubAccount(address subAccount) external view returns (bool); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0 <0.9.0; interface IWETH { function allowance(address, address) external view returns (uint256); function approve(address guy, uint256 wad) external returns (bool); function balanceOf(address) external view returns (uint256); function decimals() external view returns (uint8); function deposit() external payable; function name() external view returns (string memory); function symbol() external view returns (string memory); function totalSupply() external view returns (uint256); function transfer(address dst, uint256 wad) external returns (bool); function transferFrom( address src, address dst, uint256 wad ) external returns (bool); function withdraw(uint256 wad) external; }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8.0 <0.9.0; abstract contract TimelockCallable { address public TIMELOCK_ADDRESS; event SetTimeLock(address newTimelock); constructor(address _timelock) { TIMELOCK_ADDRESS = _timelock; } modifier onlyTimelock() { require(TIMELOCK_ADDRESS == msg.sender, "Caller is not the timelock."); _; } function setTimelock(address newTimelock) external onlyTimelock { require(newTimelock != address(0)); TIMELOCK_ADDRESS = newTimelock; emit SetTimeLock(newTimelock); } }
{ "optimizer": { "enabled": true, "runs": 10000 }, "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":"_adapterManager","type":"address"},{"internalType":"address","name":"_timelock","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"consumedAmount","type":"uint256"}],"name":"FeeBoxETHDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"consumedAmount","type":"uint256"}],"name":"FeeBoxETHWithdraw","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":"newTimelock","type":"address"}],"name":"SetTimeLock","type":"event"},{"inputs":[],"name":"ADAPTER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ADAPTER_MANAGER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ADAPTER_NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIMELOCK_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes","name":"encodedData","type":"bytes"}],"name":"depositWithPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ethAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ethBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEthBlockTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_access","type":"bool"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_balanceController","type":"address"},{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"consumedAmount","type":"uint256"}],"name":"paymentCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ethSignedMessageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdapterManger","type":"address"}],"name":"setAdapterManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"balance","type":"uint256[]"}],"name":"setBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTimelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address","name":"receiver","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wethAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes","name":"encodedData","type":"bytes"}],"name":"withdrawWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162002b2a38038062002b2a833981016040819052620000349162000133565b81816040518060400160405280600981526020016808ccaca84def08aa8960bb1b81525081620000736200006d620000c060201b60201c565b620000c4565b600280546001600160a01b03199081166001600160a01b039384161790915560038054909116918516919091179055306080526004620000b4828262000210565b505050505050620002dc565b3390565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200012e57600080fd5b919050565b600080604083850312156200014757600080fd5b620001528362000116565b9150620001626020840162000116565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200019657607f821691505b602082108103620001b757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200020b57600081815260208120601f850160051c81016020861015620001e65750805b601f850160051c820191505b818110156200020757828155600101620001f2565b5050505b505050565b81516001600160401b038111156200022c576200022c6200016b565b62000244816200023d845462000181565b84620001bd565b602080601f8311600181146200027c5760008415620002635750858301515b600019600386901b1c1916600185901b17855562000207565b600085815260208120601f198616915b82811015620002ad578886015182559484019460019091019084016200028c565b5085821015620002cc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805161282b620002ff600039600081816101c30152611208015261282b6000f3fe6080604052600436106101a55760003560e01c80638da5cb5b116100e1578063bdacb3031161008a578063d8f3790f11610064578063d8f3790f14610535578063f2fde38b14610562578063fa54080114610582578063ff22506d146105f057600080fd5b8063bdacb303146104d5578063c21fdad2146104f5578063d20c88bd1461051557600080fd5b8063a7bb5803116100bb578063a7bb58031461044f578063b3f006741461048d578063bbf646c2146104ad57600080fd5b80638da5cb5b146103805780638e9bbdad1461039e57806397aba7f91461042f57600080fd5b806358e56c9d1161014e5780637d5aa5f4116101285780637d5aa5f4146102e95780637ecebe00146103115780637fd3cd8b1461033e578063857cf24e1461036057600080fd5b806358e56c9d146102a15780636292c33d146102c1578063715018a6146102d457600080fd5b8063366bd8d41161017f578063366bd8d414610244578063431c183014610261578063485cc9551461028157600080fd5b8063060b9c57146101b157806312f5a86d1461020257806326c2172f1461022257600080fd5b366101ac57005b600080fd5b3480156101bd57600080fd5b506101e57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561020e57600080fd5b506006546101e5906001600160a01b031681565b34801561022e57600080fd5b5061024261023d36600461203e565b610610565b005b34801561025057600080fd5b50425b6040519081526020016101f9565b34801561026d57600080fd5b506002546101e5906001600160a01b031681565b34801561028d57600080fd5b5061024261029c36600461205b565b6106a9565b3480156102ad57600080fd5b506102426102bc366004612094565b610749565b6102426102cf366004612094565b610a67565b3480156102e057600080fd5b50610242610e6e565b3480156102f557600080fd5b506101e573c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561031d57600080fd5b5061025361032c36600461203e565b60006020819052908152604090205481565b34801561034a57600080fd5b50610353610ed4565b6040516101f9919061213d565b34801561036c57600080fd5b5061024261037b36600461218e565b610f62565b34801561038c57600080fd5b506001546001600160a01b03166101e5565b3480156103aa57600080fd5b506102536103b93660046121c8565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b1660208201526034810185905283151560f81b6054820152605581018390526075810182905260009060950160405160208183030381529060405280519060200120905095945050505050565b34801561043b57600080fd5b506101e561044a366004612326565b611028565b34801561045b57600080fd5b5061046f61046a36600461236d565b611056565b60408051938452602084019290925260ff16908201526060016101f9565b34801561049957600080fd5b506007546101e5906001600160a01b031681565b3480156104b957600080fd5b506101e573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b3480156104e157600080fd5b506102426104f036600461203e565b6110ca565b34801561050157600080fd5b506003546101e5906001600160a01b031681565b34801561052157600080fd5b50610242610530366004612442565b6111a3565b34801561054157600080fd5b5061025361055036600461203e565b60086020526000908152604090205481565b34801561056e57600080fd5b5061024261057d36600461203e565b61138b565b34801561058e57600080fd5b5061025361059d366004612489565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b3480156105fc57600080fd5b5061024261060b3660046124a2565b61146d565b6002546001600160a01b0316331461066f5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074696d656c6f636b2e000000000060448201526064015b60405180910390fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002546001600160a01b031633146107035760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074696d656c6f636b2e00000000006044820152606401610666565b600680546001600160a01b039384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b6003546001600160a01b031633146107c95760405162461bcd60e51b815260206004820152602160248201527f43616c6c6572206973206e6f742074686520616461707465724d616e6167657260448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610666565b600080808080806107dc8789018961255d565b95509550955095509550955082156108365760405162461bcd60e51b815260206004820152601460248201527f4e6f74207769746864726177206d6574686f642e0000000000000000000000006044820152606401610666565b600654610850906001600160a01b03168a86868686611593565b61089c5760405162461bcd60e51b815260206004820152600e60248201527f566572696679206661696c6564210000000000000000000000000000000000006044820152606401610666565b6108a6858561260a565b6001600160a01b038a16600090815260086020526040902054101561090d5760405162461bcd60e51b815260206004820152600a60248201527f496e736f6c76656e7421000000000000000000000000000000000000000000006044820152606401610666565b6001600160a01b038916600090815260086020526040902054849061093390879061261d565b61093d919061261d565b6001600160a01b038a16600090815260086020526040902055851561096b576109668986611717565b6109f6565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0866040518263ffffffff1660e01b81526004016000604051808303818588803b1580156109ba57600080fd5b505af11580156109ce573d6000803e3d6000fd5b506109f6935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc292508c9150889050611800565b8315610a1257600754610a12906001600160a01b031685611717565b604080516001600160a01b038b168152602081018790529081018590527f4df5b1647b3e31d82ef55175cc90f597a0022cdd0e5f68b17019cf23d1a6b9be9060600160405180910390a1505050505050505050565b6003546001600160a01b03163314610ae75760405162461bcd60e51b815260206004820152602160248201527f43616c6c6572206973206e6f742074686520616461707465724d616e6167657260448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610666565b826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b499190612630565b6001600160a01b0316326001600160a01b031614610bab5760405162461bcd60e51b81526004016106669060208082526004908201527f21454f4100000000000000000000000000000000000000000000000000000000604082015260600190565b600080808080610bbd8688018861264d565b9450945094509450945082610c145760405162461bcd60e51b815260206004820152601360248201527f4e6f74206465706f736974206d6574686f642e000000000000000000000000006044820152606401610666565b600654610c2e906001600160a01b03168986868686611593565b610c7a5760405162461bcd60e51b815260206004820152600e60248201527f566572696679206661696c6564210000000000000000000000000000000000006044820152606401610666565b8415610d1e57610c9f73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc289876118c7565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810186905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015610d0557600080fd5b505af1158015610d19573d6000803e3d6000fd5b505050505b6001600160a01b03881660009081526008602052604090205484903490610d4690889061260a565b610d50919061260a565b1015610d9e5760405162461bcd60e51b815260206004820152600a60248201527f496e736f6c76656e7421000000000000000000000000000000000000000000006044820152606401610666565b6001600160a01b03881660009081526008602052604090205484903490610dc690889061260a565b610dd0919061260a565b610dda919061261d565b6001600160a01b0389166000908152600860205260409020558315610e0f57600754610e0f906001600160a01b031685611717565b7fca205c7bbe507067fc5af66ccba4c04574d8883b4f1b507e208aa05c6d634e0188610e3b348861260a565b604080516001600160a01b0390931683526020830191909152810186905260600160405180910390a15050505050505050565b6001546001600160a01b03163314610ec85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610666565b610ed260006119ca565b565b60048054610ee1906126ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0d906126ba565b8015610f5a5780601f10610f2f57610100808354040283529160200191610f5a565b820191906000526020600020905b815481529060010190602001808311610f3d57829003601f168201915b505050505081565b6006546001600160a01b03163314610fbc5760405162461bcd60e51b815260206004820152600760248201527f215369676e6572000000000000000000000000000000000000000000000000006044820152606401610666565b6001600160a01b038216600090815260086020526040902054811115610fe157600080fd5b6001600160a01b0382166000908152600860205260408120805483929061100990849061261d565b9091555050600754611024906001600160a01b031682611717565b5050565b60008060008061103785611056565b9194509250905061104a86828585611a34565b93505050505b92915050565b600080600083516041146110ac5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610666565b50505060208101516040820151606090920151909260009190911a90565b6002546001600160a01b031633146111245760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074696d656c6f636b2e00000000006044820152606401610666565b6001600160a01b03811661113757600080fd5b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f087857e9a8e6bcdb5918f98e558ad983e7c50ec69df7912e2103379d0afa61f79060200160405180910390a150565b6002546001600160a01b031633146111fd5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074696d656c6f636b2e00000000006044820152606401610666565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112755760405162461bcd60e51b815260206004820152600d60248201527f21496e76616c69642063616c6c000000000000000000000000000000000000006044820152606401610666565b60005b82518110156113745760008382815181106112955761129561270d565b6020026020010151905060006001600160a01b0316816001600160a01b0316036112bf5750611362565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561131f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611343919061273c565b9050801561135f5761135f6001600160a01b0383168583611800565b50505b8061136c81612755565b915050611278565b50478015611386576113868282611717565b505050565b6001546001600160a01b031633146113e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610666565b6001600160a01b0381166114615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610666565b61146a816119ca565b50565b6006546001600160a01b031633146114c75760405162461bcd60e51b815260206004820152600760248201527f215369676e6572000000000000000000000000000000000000000000000000006044820152606401610666565b80518251146115185760405162461bcd60e51b815260206004820152600d60248201527f6c656e677468206572726f7221000000000000000000000000000000000000006044820152606401610666565b60005b8251811015611386578181815181106115365761153661270d565b6020026020010151600860008584815181106115545761155461270d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550808061158b90612755565b91505061151b565b6000428310156115e55760405162461bcd60e51b815260206004820152601160248201527f5369676e617475726520657870697265640000000000000000000000000000006044820152606401610666565b6001600160a01b0386166000908152602081905260408120805461168f9189918991899189918761161583612755565b919050556040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b1660208201526034810185905283151560f81b6054820152605581018390526075810182905260009060950160405160208183030381529060405280519060200120905095945050505050565b905060006116ea826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b9050886001600160a01b03166117008286611028565b6001600160a01b0316149998505050505050505050565b801561102457604080516000808252602082019092526001600160a01b038416908390604051611747919061278d565b60006040518083038185875af1925050503d8060008114611784576040519150601f19603f3d011682016040523d82523d6000602084013e611789565b606091505b50509050806113865760405162461bcd60e51b815260206004820152602c60248201527f68656c7065723a3a736166655472616e736665724554483a204554482074726160448201527f6e73666572206661696c656400000000000000000000000000000000000000006064820152608401610666565b6040516001600160a01b0383166024820152604481018290526113869084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611a5c565b806000036118d457505050565b6001600160a01b0383161580159061190957506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b61191257600080fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091908516906370a0823190602401602060405180830381865afa158015611975573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611999919061273c565b905060008282106119aa57826119ac565b815b90506119c36001600160a01b038616853084611b41565b5050505050565b600180546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000611a4587878787611b98565b91509150611a5281611ca3565b5095945050505050565b6000611ab1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e8f9092919063ffffffff16565b8051909150156113865780806020019051810190611acf91906127a9565b6113865760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610666565b6040516001600160a01b0380851660248301528316604482015260648101829052611b929085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611845565b50505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611bcf5750600090506003611c9a565b8460ff16601b14158015611be757508460ff16601c14155b15611bf85750600090506004611c9a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611c4c573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116611c9357600060019250925050611c9a565b9150600090505b94509492505050565b6000816004811115611cb757611cb76127c6565b03611cbf5750565b6001816004811115611cd357611cd36127c6565b03611d205760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610666565b6002816004811115611d3457611d346127c6565b03611d815760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610666565b6003816004811115611d9557611d956127c6565b03611e085760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610666565b6004816004811115611e1c57611e1c6127c6565b0361146a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610666565b6060611e9e8484600085611ea8565b90505b9392505050565b606082471015611f205760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610666565b6001600160a01b0385163b611f775760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610666565b600080866001600160a01b03168587604051611f93919061278d565b60006040518083038185875af1925050503d8060008114611fd0576040519150601f19603f3d011682016040523d82523d6000602084013e611fd5565b606091505b5091509150611fe5828286611ff0565b979650505050505050565b60608315611fff575081611ea1565b82511561200f5782518084602001fd5b8160405162461bcd60e51b8152600401610666919061213d565b6001600160a01b038116811461146a57600080fd5b60006020828403121561205057600080fd5b8135611ea181612029565b6000806040838503121561206e57600080fd5b823561207981612029565b9150602083013561208981612029565b809150509250929050565b6000806000604084860312156120a957600080fd5b83356120b481612029565b9250602084013567ffffffffffffffff808211156120d157600080fd5b818601915086601f8301126120e557600080fd5b8135818111156120f457600080fd5b87602082850101111561210657600080fd5b6020830194508093505050509250925092565b60005b8381101561213457818101518382015260200161211c565b50506000910152565b602081526000825180602084015261215c816040850160208701612119565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600080604083850312156121a157600080fd5b82356121ac81612029565b946020939093013593505050565b801515811461146a57600080fd5b600080600080600060a086880312156121e057600080fd5b85356121eb81612029565b9450602086013593506040860135612202816121ba565b94979396509394606081013594506080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156122905761229061221a565b604052919050565b600082601f8301126122a957600080fd5b813567ffffffffffffffff8111156122c3576122c361221a565b6122f460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601612249565b81815284602083860101111561230957600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561233957600080fd5b82359150602083013567ffffffffffffffff81111561235757600080fd5b61236385828601612298565b9150509250929050565b60006020828403121561237f57600080fd5b813567ffffffffffffffff81111561239657600080fd5b6123a284828501612298565b949350505050565b600067ffffffffffffffff8211156123c4576123c461221a565b5060051b60200190565b600082601f8301126123df57600080fd5b813560206123f46123ef836123aa565b612249565b82815260059290921b8401810191818101908684111561241357600080fd5b8286015b8481101561243757803561242a81612029565b8352918301918301612417565b509695505050505050565b6000806040838503121561245557600080fd5b823567ffffffffffffffff81111561246c57600080fd5b612478858286016123ce565b925050602083013561208981612029565b60006020828403121561249b57600080fd5b5035919050565b600080604083850312156124b557600080fd5b823567ffffffffffffffff808211156124cd57600080fd5b6124d9868387016123ce565b93506020915081850135818111156124f057600080fd5b85019050601f8101861361250357600080fd5b80356125116123ef826123aa565b81815260059190911b8201830190838101908883111561253057600080fd5b928401925b8284101561254e57833582529284019290840190612535565b80955050505050509250929050565b60008060008060008060c0878903121561257657600080fd5b8635612581816121ba565b95506020870135945060408701359350606087013561259f816121ba565b92506080870135915060a087013567ffffffffffffffff8111156125c257600080fd5b6125ce89828a01612298565b9150509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115611050576110506125db565b81810381811115611050576110506125db565b60006020828403121561264257600080fd5b8151611ea181612029565b600080600080600060a0868803121561266557600080fd5b8535945060208601359350604086013561267e816121ba565b925060608601359150608086013567ffffffffffffffff8111156126a157600080fd5b6126ad88828901612298565b9150509295509295909350565b600181811c908216806126ce57607f821691505b602082108103612707577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561274e57600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612786576127866125db565b5060010190565b6000825161279f818460208701612119565b9190910192915050565b6000602082840312156127bb57600080fd5b8151611ea1816121ba565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220c81da1cba5a22c8372ed7cf12e3e158aa250f616d2ff00df74624b2fb051b96264736f6c63430008110033000000000000000000000000c936161b3c80494172ae58734e3ce16e26d493c10000000000000000000000008fa9aa69a6e94c1cd49fbf214c833b2911d02553
Deployed Bytecode
0x6080604052600436106101a55760003560e01c80638da5cb5b116100e1578063bdacb3031161008a578063d8f3790f11610064578063d8f3790f14610535578063f2fde38b14610562578063fa54080114610582578063ff22506d146105f057600080fd5b8063bdacb303146104d5578063c21fdad2146104f5578063d20c88bd1461051557600080fd5b8063a7bb5803116100bb578063a7bb58031461044f578063b3f006741461048d578063bbf646c2146104ad57600080fd5b80638da5cb5b146103805780638e9bbdad1461039e57806397aba7f91461042f57600080fd5b806358e56c9d1161014e5780637d5aa5f4116101285780637d5aa5f4146102e95780637ecebe00146103115780637fd3cd8b1461033e578063857cf24e1461036057600080fd5b806358e56c9d146102a15780636292c33d146102c1578063715018a6146102d457600080fd5b8063366bd8d41161017f578063366bd8d414610244578063431c183014610261578063485cc9551461028157600080fd5b8063060b9c57146101b157806312f5a86d1461020257806326c2172f1461022257600080fd5b366101ac57005b600080fd5b3480156101bd57600080fd5b506101e57f0000000000000000000000000b20d5d59e14c71a948d55439019a2aaf74fa7b481565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561020e57600080fd5b506006546101e5906001600160a01b031681565b34801561022e57600080fd5b5061024261023d36600461203e565b610610565b005b34801561025057600080fd5b50425b6040519081526020016101f9565b34801561026d57600080fd5b506002546101e5906001600160a01b031681565b34801561028d57600080fd5b5061024261029c36600461205b565b6106a9565b3480156102ad57600080fd5b506102426102bc366004612094565b610749565b6102426102cf366004612094565b610a67565b3480156102e057600080fd5b50610242610e6e565b3480156102f557600080fd5b506101e573c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561031d57600080fd5b5061025361032c36600461203e565b60006020819052908152604090205481565b34801561034a57600080fd5b50610353610ed4565b6040516101f9919061213d565b34801561036c57600080fd5b5061024261037b36600461218e565b610f62565b34801561038c57600080fd5b506001546001600160a01b03166101e5565b3480156103aa57600080fd5b506102536103b93660046121c8565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b1660208201526034810185905283151560f81b6054820152605581018390526075810182905260009060950160405160208183030381529060405280519060200120905095945050505050565b34801561043b57600080fd5b506101e561044a366004612326565b611028565b34801561045b57600080fd5b5061046f61046a36600461236d565b611056565b60408051938452602084019290925260ff16908201526060016101f9565b34801561049957600080fd5b506007546101e5906001600160a01b031681565b3480156104b957600080fd5b506101e573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b3480156104e157600080fd5b506102426104f036600461203e565b6110ca565b34801561050157600080fd5b506003546101e5906001600160a01b031681565b34801561052157600080fd5b50610242610530366004612442565b6111a3565b34801561054157600080fd5b5061025361055036600461203e565b60086020526000908152604090205481565b34801561056e57600080fd5b5061024261057d36600461203e565b61138b565b34801561058e57600080fd5b5061025361059d366004612489565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b3480156105fc57600080fd5b5061024261060b3660046124a2565b61146d565b6002546001600160a01b0316331461066f5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074696d656c6f636b2e000000000060448201526064015b60405180910390fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002546001600160a01b031633146107035760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074696d656c6f636b2e00000000006044820152606401610666565b600680546001600160a01b039384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b6003546001600160a01b031633146107c95760405162461bcd60e51b815260206004820152602160248201527f43616c6c6572206973206e6f742074686520616461707465724d616e6167657260448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610666565b600080808080806107dc8789018961255d565b95509550955095509550955082156108365760405162461bcd60e51b815260206004820152601460248201527f4e6f74207769746864726177206d6574686f642e0000000000000000000000006044820152606401610666565b600654610850906001600160a01b03168a86868686611593565b61089c5760405162461bcd60e51b815260206004820152600e60248201527f566572696679206661696c6564210000000000000000000000000000000000006044820152606401610666565b6108a6858561260a565b6001600160a01b038a16600090815260086020526040902054101561090d5760405162461bcd60e51b815260206004820152600a60248201527f496e736f6c76656e7421000000000000000000000000000000000000000000006044820152606401610666565b6001600160a01b038916600090815260086020526040902054849061093390879061261d565b61093d919061261d565b6001600160a01b038a16600090815260086020526040902055851561096b576109668986611717565b6109f6565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0866040518263ffffffff1660e01b81526004016000604051808303818588803b1580156109ba57600080fd5b505af11580156109ce573d6000803e3d6000fd5b506109f6935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc292508c9150889050611800565b8315610a1257600754610a12906001600160a01b031685611717565b604080516001600160a01b038b168152602081018790529081018590527f4df5b1647b3e31d82ef55175cc90f597a0022cdd0e5f68b17019cf23d1a6b9be9060600160405180910390a1505050505050505050565b6003546001600160a01b03163314610ae75760405162461bcd60e51b815260206004820152602160248201527f43616c6c6572206973206e6f742074686520616461707465724d616e6167657260448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610666565b826001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b499190612630565b6001600160a01b0316326001600160a01b031614610bab5760405162461bcd60e51b81526004016106669060208082526004908201527f21454f4100000000000000000000000000000000000000000000000000000000604082015260600190565b600080808080610bbd8688018861264d565b9450945094509450945082610c145760405162461bcd60e51b815260206004820152601360248201527f4e6f74206465706f736974206d6574686f642e000000000000000000000000006044820152606401610666565b600654610c2e906001600160a01b03168986868686611593565b610c7a5760405162461bcd60e51b815260206004820152600e60248201527f566572696679206661696c6564210000000000000000000000000000000000006044820152606401610666565b8415610d1e57610c9f73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc289876118c7565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810186905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015610d0557600080fd5b505af1158015610d19573d6000803e3d6000fd5b505050505b6001600160a01b03881660009081526008602052604090205484903490610d4690889061260a565b610d50919061260a565b1015610d9e5760405162461bcd60e51b815260206004820152600a60248201527f496e736f6c76656e7421000000000000000000000000000000000000000000006044820152606401610666565b6001600160a01b03881660009081526008602052604090205484903490610dc690889061260a565b610dd0919061260a565b610dda919061261d565b6001600160a01b0389166000908152600860205260409020558315610e0f57600754610e0f906001600160a01b031685611717565b7fca205c7bbe507067fc5af66ccba4c04574d8883b4f1b507e208aa05c6d634e0188610e3b348861260a565b604080516001600160a01b0390931683526020830191909152810186905260600160405180910390a15050505050505050565b6001546001600160a01b03163314610ec85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610666565b610ed260006119ca565b565b60048054610ee1906126ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0d906126ba565b8015610f5a5780601f10610f2f57610100808354040283529160200191610f5a565b820191906000526020600020905b815481529060010190602001808311610f3d57829003601f168201915b505050505081565b6006546001600160a01b03163314610fbc5760405162461bcd60e51b815260206004820152600760248201527f215369676e6572000000000000000000000000000000000000000000000000006044820152606401610666565b6001600160a01b038216600090815260086020526040902054811115610fe157600080fd5b6001600160a01b0382166000908152600860205260408120805483929061100990849061261d565b9091555050600754611024906001600160a01b031682611717565b5050565b60008060008061103785611056565b9194509250905061104a86828585611a34565b93505050505b92915050565b600080600083516041146110ac5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610666565b50505060208101516040820151606090920151909260009190911a90565b6002546001600160a01b031633146111245760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074696d656c6f636b2e00000000006044820152606401610666565b6001600160a01b03811661113757600080fd5b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f087857e9a8e6bcdb5918f98e558ad983e7c50ec69df7912e2103379d0afa61f79060200160405180910390a150565b6002546001600160a01b031633146111fd5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74207468652074696d656c6f636b2e00000000006044820152606401610666565b306001600160a01b037f0000000000000000000000000b20d5d59e14c71a948d55439019a2aaf74fa7b416146112755760405162461bcd60e51b815260206004820152600d60248201527f21496e76616c69642063616c6c000000000000000000000000000000000000006044820152606401610666565b60005b82518110156113745760008382815181106112955761129561270d565b6020026020010151905060006001600160a01b0316816001600160a01b0316036112bf5750611362565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561131f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611343919061273c565b9050801561135f5761135f6001600160a01b0383168583611800565b50505b8061136c81612755565b915050611278565b50478015611386576113868282611717565b505050565b6001546001600160a01b031633146113e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610666565b6001600160a01b0381166114615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610666565b61146a816119ca565b50565b6006546001600160a01b031633146114c75760405162461bcd60e51b815260206004820152600760248201527f215369676e6572000000000000000000000000000000000000000000000000006044820152606401610666565b80518251146115185760405162461bcd60e51b815260206004820152600d60248201527f6c656e677468206572726f7221000000000000000000000000000000000000006044820152606401610666565b60005b8251811015611386578181815181106115365761153661270d565b6020026020010151600860008584815181106115545761155461270d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550808061158b90612755565b91505061151b565b6000428310156115e55760405162461bcd60e51b815260206004820152601160248201527f5369676e617475726520657870697265640000000000000000000000000000006044820152606401610666565b6001600160a01b0386166000908152602081905260408120805461168f9189918991899189918761161583612755565b919050556040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606087901b1660208201526034810185905283151560f81b6054820152605581018390526075810182905260009060950160405160208183030381529060405280519060200120905095945050505050565b905060006116ea826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b9050886001600160a01b03166117008286611028565b6001600160a01b0316149998505050505050505050565b801561102457604080516000808252602082019092526001600160a01b038416908390604051611747919061278d565b60006040518083038185875af1925050503d8060008114611784576040519150601f19603f3d011682016040523d82523d6000602084013e611789565b606091505b50509050806113865760405162461bcd60e51b815260206004820152602c60248201527f68656c7065723a3a736166655472616e736665724554483a204554482074726160448201527f6e73666572206661696c656400000000000000000000000000000000000000006064820152608401610666565b6040516001600160a01b0383166024820152604481018290526113869084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611a5c565b806000036118d457505050565b6001600160a01b0383161580159061190957506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b61191257600080fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091908516906370a0823190602401602060405180830381865afa158015611975573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611999919061273c565b905060008282106119aa57826119ac565b815b90506119c36001600160a01b038616853084611b41565b5050505050565b600180546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000611a4587878787611b98565b91509150611a5281611ca3565b5095945050505050565b6000611ab1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e8f9092919063ffffffff16565b8051909150156113865780806020019051810190611acf91906127a9565b6113865760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610666565b6040516001600160a01b0380851660248301528316604482015260648101829052611b929085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611845565b50505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611bcf5750600090506003611c9a565b8460ff16601b14158015611be757508460ff16601c14155b15611bf85750600090506004611c9a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611c4c573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116611c9357600060019250925050611c9a565b9150600090505b94509492505050565b6000816004811115611cb757611cb76127c6565b03611cbf5750565b6001816004811115611cd357611cd36127c6565b03611d205760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610666565b6002816004811115611d3457611d346127c6565b03611d815760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610666565b6003816004811115611d9557611d956127c6565b03611e085760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610666565b6004816004811115611e1c57611e1c6127c6565b0361146a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610666565b6060611e9e8484600085611ea8565b90505b9392505050565b606082471015611f205760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610666565b6001600160a01b0385163b611f775760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610666565b600080866001600160a01b03168587604051611f93919061278d565b60006040518083038185875af1925050503d8060008114611fd0576040519150601f19603f3d011682016040523d82523d6000602084013e611fd5565b606091505b5091509150611fe5828286611ff0565b979650505050505050565b60608315611fff575081611ea1565b82511561200f5782518084602001fd5b8160405162461bcd60e51b8152600401610666919061213d565b6001600160a01b038116811461146a57600080fd5b60006020828403121561205057600080fd5b8135611ea181612029565b6000806040838503121561206e57600080fd5b823561207981612029565b9150602083013561208981612029565b809150509250929050565b6000806000604084860312156120a957600080fd5b83356120b481612029565b9250602084013567ffffffffffffffff808211156120d157600080fd5b818601915086601f8301126120e557600080fd5b8135818111156120f457600080fd5b87602082850101111561210657600080fd5b6020830194508093505050509250925092565b60005b8381101561213457818101518382015260200161211c565b50506000910152565b602081526000825180602084015261215c816040850160208701612119565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600080604083850312156121a157600080fd5b82356121ac81612029565b946020939093013593505050565b801515811461146a57600080fd5b600080600080600060a086880312156121e057600080fd5b85356121eb81612029565b9450602086013593506040860135612202816121ba565b94979396509394606081013594506080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156122905761229061221a565b604052919050565b600082601f8301126122a957600080fd5b813567ffffffffffffffff8111156122c3576122c361221a565b6122f460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601612249565b81815284602083860101111561230957600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561233957600080fd5b82359150602083013567ffffffffffffffff81111561235757600080fd5b61236385828601612298565b9150509250929050565b60006020828403121561237f57600080fd5b813567ffffffffffffffff81111561239657600080fd5b6123a284828501612298565b949350505050565b600067ffffffffffffffff8211156123c4576123c461221a565b5060051b60200190565b600082601f8301126123df57600080fd5b813560206123f46123ef836123aa565b612249565b82815260059290921b8401810191818101908684111561241357600080fd5b8286015b8481101561243757803561242a81612029565b8352918301918301612417565b509695505050505050565b6000806040838503121561245557600080fd5b823567ffffffffffffffff81111561246c57600080fd5b612478858286016123ce565b925050602083013561208981612029565b60006020828403121561249b57600080fd5b5035919050565b600080604083850312156124b557600080fd5b823567ffffffffffffffff808211156124cd57600080fd5b6124d9868387016123ce565b93506020915081850135818111156124f057600080fd5b85019050601f8101861361250357600080fd5b80356125116123ef826123aa565b81815260059190911b8201830190838101908883111561253057600080fd5b928401925b8284101561254e57833582529284019290840190612535565b80955050505050509250929050565b60008060008060008060c0878903121561257657600080fd5b8635612581816121ba565b95506020870135945060408701359350606087013561259f816121ba565b92506080870135915060a087013567ffffffffffffffff8111156125c257600080fd5b6125ce89828a01612298565b9150509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115611050576110506125db565b81810381811115611050576110506125db565b60006020828403121561264257600080fd5b8151611ea181612029565b600080600080600060a0868803121561266557600080fd5b8535945060208601359350604086013561267e816121ba565b925060608601359150608086013567ffffffffffffffff8111156126a157600080fd5b6126ad88828901612298565b9150509295509295909350565b600181811c908216806126ce57607f821691505b602082108103612707577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561274e57600080fd5b5051919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612786576127866125db565b5060010190565b6000825161279f818460208701612119565b9190910192915050565b6000602082840312156127bb57600080fd5b8151611ea1816121ba565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220c81da1cba5a22c8372ed7cf12e3e158aa250f616d2ff00df74624b2fb051b96264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c936161b3c80494172ae58734e3ce16e26d493c10000000000000000000000008fa9aa69a6e94c1cd49fbf214c833b2911d02553
-----Decoded View---------------
Arg [0] : _adapterManager (address): 0xc936161B3C80494172ae58734e3CE16e26D493C1
Arg [1] : _timelock (address): 0x8FA9aa69a6e94c1cd49FbF214C833B2911D02553
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c936161b3c80494172ae58734e3ce16e26d493c1
Arg [1] : 0000000000000000000000008fa9aa69a6e94c1cd49fbf214c833b2911d02553
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,526.43 | 2.1508 | $5,433.93 |
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.