Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,675 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Redeem | 20256478 | 218 days ago | IN | 0 ETH | 0.00116675 | ||||
Redeem | 20229888 | 222 days ago | IN | 0 ETH | 0.00722558 | ||||
Redeem | 20206315 | 225 days ago | IN | 0 ETH | 0.00398771 | ||||
Redeem | 20177853 | 229 days ago | IN | 0 ETH | 0.00167743 | ||||
Redeem | 20170047 | 230 days ago | IN | 0 ETH | 0.00763195 | ||||
Redeem | 20145558 | 234 days ago | IN | 0 ETH | 0.00326532 | ||||
Redeem | 20110291 | 239 days ago | IN | 0 ETH | 0.00622958 | ||||
Redeem | 20104449 | 239 days ago | IN | 0 ETH | 0.00023689 | ||||
Redeem | 20102807 | 240 days ago | IN | 0 ETH | 0.00032444 | ||||
Redeem | 20102764 | 240 days ago | IN | 0 ETH | 0.00031691 | ||||
Redeem | 20102735 | 240 days ago | IN | 0 ETH | 0.00031271 | ||||
Redeem | 20099517 | 240 days ago | IN | 0 ETH | 0.00803184 | ||||
Redeem | 20095784 | 241 days ago | IN | 0 ETH | 0.0097064 | ||||
Redeem | 20095770 | 241 days ago | IN | 0 ETH | 0.00291118 | ||||
Redeem | 20095754 | 241 days ago | IN | 0 ETH | 0.01353479 | ||||
Redeem | 20086460 | 242 days ago | IN | 0 ETH | 0.00326583 | ||||
Redeem | 20077508 | 243 days ago | IN | 0 ETH | 0.00349096 | ||||
Redeem | 20077296 | 243 days ago | IN | 0 ETH | 0.00500363 | ||||
Redeem | 20060636 | 245 days ago | IN | 0 ETH | 0.01164866 | ||||
Redeem | 20003737 | 253 days ago | IN | 0 ETH | 0.01301288 | ||||
Redeem | 19985929 | 256 days ago | IN | 0 ETH | 0.01833019 | ||||
Redeem | 19965408 | 259 days ago | IN | 0 ETH | 0.0009118 | ||||
Redeem | 19907497 | 267 days ago | IN | 0 ETH | 0.0012888 | ||||
Redeem | 19904959 | 267 days ago | IN | 0 ETH | 0.00176219 | ||||
Redeem | 19884191 | 270 days ago | IN | 0 ETH | 0.00092205 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Payload
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract Payload is Ownable { error ContractDisabled(); error InvalidSig(); error InvalidNonce(); error InvalidCaller(); error InvalidOperator(); error NullOperatorSet(); error InvalidPayment(); error InvalidTimestamp(); error InvalidCardCount(); error ParamLengthMissMatch(); using SafeERC20 for IERC20; IERC20 public prime = IERC20(0xb23d80f5FefcDDaa212212F028021B41DEd428CF); IERC1155 public parallelAlpha = IERC1155(0x76BE3b62873462d2142405439777e971754E8E77); address public pullParallelAlphaFromAddress; address public trustedSigner; address public cardCountOperator; uint256 public cardPrice = 1.5 ether; uint256 public totalCardCount = 0; uint256 public signatureWindow = 180; // 3 mins uint256 public maxCardsPerTrx = 999; bool public disabled = false; mapping(address => uint256) public nonces; mapping(address => uint256) public redeemableCardCount; event PrimePayment( address indexed paymentAddress, uint256 indexed id, uint256 cardCount, uint256 timestamp, uint256 primeAmount, uint256 totalCardCount ); event CardsClaimed( address indexed paymentAddress, uint256[] cardIds, uint256[] cardQuantities, uint256 nonce, uint256 timestamp, bytes signature ); event SetCardPrice(uint256 indexed price); event SetPaymentDisabled(bool indexed val); event SetTrustedSigner(address indexed trustedSigner); event SetParallelAlphaContract(address indexed parallelAlpha); event SetPullFromAddress(address indexed pullFromAddress); event SetCardCountOperatorAddress(address indexed cardCountOperatorAddress); event SetPrimeAddress(address indexed primeAddress); event SetSignatureWindow(uint256 indexed signatureWindow); event SetRedeemableCardCount(address indexed account, uint256 indexed cardCount); constructor () Ownable() { cardCountOperator = msg.sender; } modifier onlyCardCountOperator() { if (msg.sender != cardCountOperator) { revert InvalidOperator(); } _; } /** * @notice Function invoked by the prime token contract to handle totalCardCount increase and emit payment event * @param _from The address of the original msg.sender * @param _id An id passed by the caller to represent any arbitrary and potentially off-chain event id * @param _primeValue The amount of prime that was sent from the prime token contract * @param _data Catch-all param to allow the caller to pass additional data to the handler, includes the amount of cards they want to purchase */ function handleInvokeEchelon( address _from, address, address, uint256 _id, uint256, uint256 _primeValue, bytes memory _data ) public payable { if (disabled) { revert ContractDisabled(); } if (msg.sender != address(prime)) { revert InvalidCaller(); } uint256 cardCount = abi.decode(_data, (uint256)); if (cardPrice * cardCount != _primeValue) { revert InvalidPayment(); } if (cardCount > maxCardsPerTrx) { revert InvalidCardCount(); } totalCardCount += cardCount; redeemableCardCount[_from] += cardCount; emit PrimePayment( _from, _id, cardCount, block.timestamp, _primeValue, totalCardCount ); } /** * @notice Used for redeeming all cards within the given signature. * @param _cardIds An array of ERC1155 token ids to be redeemed * @param _cardQuantities The amount of cards to redeem in _cardIds * @param _timestamp The timestamp at which _signature was created. After a certain window, the _cardIds in the _signature can no longer be redeemed * @param _signature Signature from the trustedSigner used for redeeming cards */ function redeem( uint256[] calldata _cardIds, uint256[] calldata _cardQuantities, uint256 _nonceId, uint256 _timestamp, bytes memory _signature ) external { if (disabled) { revert ContractDisabled(); } if (_nonceId - nonces[msg.sender] != 1) { revert InvalidNonce(); } if (block.timestamp > _timestamp + signatureWindow) { revert InvalidTimestamp(); } if ( !verify( trustedSigner, msg.sender, _cardIds, _cardQuantities, _nonceId, _timestamp, block.chainid, _signature ) ) { revert InvalidSig(); } nonces[msg.sender] = _nonceId; uint256 addressCardCount; for (uint256 i = 0; i < _cardQuantities.length; i++) { addressCardCount += _cardQuantities[i]; } if (addressCardCount > redeemableCardCount[msg.sender]) { revert InvalidCardCount(); } unchecked { redeemableCardCount[msg.sender] -= addressCardCount; } parallelAlpha.safeBatchTransferFrom( pullParallelAlphaFromAddress, msg.sender, _cardIds, _cardQuantities, bytes("") ); emit CardsClaimed( msg.sender, _cardIds, _cardQuantities, _nonceId, _timestamp, _signature ); } /** @notice Sweep Transfer ERC20 tokens out of contract. Only owner. * @param _token Token to transfer out * @param _to Address to sweep to * @param _amount Amount to sweep */ function sweepERC20( IERC20 _token, address _to, uint256 _amount ) external onlyOwner { _token.transfer(_to, _amount); } /** @notice Set the cardPrice variable * @param _val Card price */ function setCardPrice(uint256 _val) external onlyOwner { cardPrice = _val; emit SetCardPrice(_val); } /** @notice Set payment disabled to true/false * @param _val Disabled state */ function setPaymentDisabled(bool _val) external onlyOwner { disabled = _val; emit SetPaymentDisabled(_val); } /** @notice Set the address of the trusted signer for signatures * @param _address Trusted signer address */ function setTrustedSigner(address _address) external onlyOwner { trustedSigner = _address; emit SetTrustedSigner(_address); } /** @notice Set the address of the Parallel Alpha contract * @param _parallelAlpha Parallel Alpha contract address */ function setParallelAlphaContractAddress(IERC1155 _parallelAlpha) external onlyOwner { parallelAlpha = _parallelAlpha; emit SetParallelAlphaContract(address(_parallelAlpha)); } /** @notice Set the address to pull Parallel Alpha card from * @param _pullParallelAlphaFromAddress Pull from address */ function setPullFromAddress(address _pullParallelAlphaFromAddress) external onlyOwner { pullParallelAlphaFromAddress = _pullParallelAlphaFromAddress; emit SetPullFromAddress(address(_pullParallelAlphaFromAddress)); } /** @notice Set the address to set card counts * @param _cardCountOperator card operator address */ function setCardCountOperatorAddress(address _cardCountOperator) external onlyOwner { if (cardCountOperator == address(0)) { revert NullOperatorSet(); } cardCountOperator = _cardCountOperator; emit SetCardCountOperatorAddress(address(_cardCountOperator)); } /** @notice Set the prime token address * @param _prime prime token address */ function setPrimeAddress(IERC20 _prime) external onlyOwner { prime = _prime; emit SetPrimeAddress(address(_prime)); } /** @notice Set the window in which users can redeem their cards * @param _signatureWindow Window in seconds */ function setSignatureWindow(uint256 _signatureWindow) external onlyOwner { signatureWindow = _signatureWindow; emit SetSignatureWindow(_signatureWindow); } /** @notice Set new limit on how many cards a user can purchase at once * @param _maxCardsPerTrx New max cards limit */ function setMaxCardsPerTrx(uint256 _maxCardsPerTrx) external onlyOwner { maxCardsPerTrx = _maxCardsPerTrx; } /** @notice Sets list of card counts for list of accounts. * @param _accounts List of accounts to set * @param _counts List of counts to set */ function setRedeemableCardCount( address[] calldata _accounts, uint256[] calldata _counts ) external onlyCardCountOperator { if (_accounts.length != _counts.length) { revert ParamLengthMissMatch(); } for (uint256 i = 0; i < _accounts.length; i++) { redeemableCardCount[_accounts[i]] = _counts[i]; emit SetRedeemableCardCount(_accounts[i], _counts[i]); } } /** @notice Verify signature is valid * @param _signer Trusted signer * @param _to Address that receives the redeemed cards * @param _cardIds An array of ERC1155 token ids to be redeemed * @param _cardQuantities The amount of cards to redeem in _cardIds * @param _timestamp The timestamp at which _signature was created. After a certain window, the _cardIds in the _signature can no longer be redeemed * @param _signature Signature from the trustedSigner used for redeeming cards */ function verify( address _signer, address _to, uint256[] calldata _cardIds, uint256[] calldata _cardQuantities, uint256 _nonceId, uint256 _timestamp, uint256 _chainid, bytes memory _signature ) internal pure returns (bool) { bytes32 messageHash = keccak256( abi.encodePacked( _to, _cardIds, _cardQuantities, _nonceId, _timestamp, _chainid ) ); bytes32 signableMessageHash = ECDSA.toEthSignedMessageHash(messageHash); return ECDSA.recover(signableMessageHash, _signature) == _signer; } }
// 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 v4.4.1 (interfaces/IERC1155.sol) pragma solidity ^0.8.0; import "../token/ERC1155/IERC1155.sol";
// 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) (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 (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @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 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); }
// 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 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ContractDisabled","type":"error"},{"inputs":[],"name":"InvalidCaller","type":"error"},{"inputs":[],"name":"InvalidCardCount","type":"error"},{"inputs":[],"name":"InvalidNonce","type":"error"},{"inputs":[],"name":"InvalidOperator","type":"error"},{"inputs":[],"name":"InvalidPayment","type":"error"},{"inputs":[],"name":"InvalidSig","type":"error"},{"inputs":[],"name":"InvalidTimestamp","type":"error"},{"inputs":[],"name":"NullOperatorSet","type":"error"},{"inputs":[],"name":"ParamLengthMissMatch","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"paymentAddress","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"cardIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"cardQuantities","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"signature","type":"bytes"}],"name":"CardsClaimed","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":true,"internalType":"address","name":"paymentAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cardCount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"primeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalCardCount","type":"uint256"}],"name":"PrimePayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"cardCountOperatorAddress","type":"address"}],"name":"SetCardCountOperatorAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"price","type":"uint256"}],"name":"SetCardPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"parallelAlpha","type":"address"}],"name":"SetParallelAlphaContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"val","type":"bool"}],"name":"SetPaymentDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"primeAddress","type":"address"}],"name":"SetPrimeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pullFromAddress","type":"address"}],"name":"SetPullFromAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"cardCount","type":"uint256"}],"name":"SetRedeemableCardCount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"signatureWindow","type":"uint256"}],"name":"SetSignatureWindow","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"trustedSigner","type":"address"}],"name":"SetTrustedSigner","type":"event"},{"inputs":[],"name":"cardCountOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cardPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_primeValue","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"handleInvokeEchelon","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"maxCardsPerTrx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"parallelAlpha","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prime","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pullParallelAlphaFromAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_cardIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_cardQuantities","type":"uint256[]"},{"internalType":"uint256","name":"_nonceId","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"redeemableCardCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cardCountOperator","type":"address"}],"name":"setCardCountOperatorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_val","type":"uint256"}],"name":"setCardPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxCardsPerTrx","type":"uint256"}],"name":"setMaxCardsPerTrx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"_parallelAlpha","type":"address"}],"name":"setParallelAlphaContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setPaymentDisabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_prime","type":"address"}],"name":"setPrimeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pullParallelAlphaFromAddress","type":"address"}],"name":"setPullFromAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_counts","type":"uint256[]"}],"name":"setRedeemableCardCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_signatureWindow","type":"uint256"}],"name":"setSignatureWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTrustedSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sweepERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalCardCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trustedSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600180546001600160a01b031990811673b23d80f5fefcddaa212212f028021b41ded428cf17909155600280549091167376be3b62873462d2142405439777e971754e8e771790556714d1120d7b160000600655600060075560b46008556103e7600955600a805460ff1916905534801561007e57600080fd5b506100883361009f565b600580546001600160a01b031916331790556100ef565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611a1b806100fe6000396000f3fe6080604052600436106101b75760003560e01c8063789a7da8116100ec578063de34bacd1161008a578063f74d548011610064578063f74d5480146104df578063f928114a146104ff578063fbc7b5301461051f578063ff39d5bb1461053557600080fd5b8063de34bacd1461047f578063ee07080514610495578063f2fde38b146104bf57600080fd5b8063be5973dd116100c6578063be5973dd146103ff578063c7ee005e1461041f578063ca7238f21461043f578063cfe32bd51461045f57600080fd5b8063789a7da8146103945780637ecebe00146103b45780638da5cb5b146103e157600080fd5b8063503690d11161015957806356b5f6771161013357806356b5f677146103125780635f454a721461033f578063715018a61461035f57806376b997971461037457600080fd5b8063503690d1146102ae5780635671ec30146102ce57806356a1c701146102f257600080fd5b80632e528875116101955780632e5288751461021e578063328f447c1461023e5780633e357f7a1461025e5780634ceb6dfe1461029b57600080fd5b80630ade6b02146101bc5780630d6e3dbf146101de5780632444cf2e146101fe575b600080fd5b3480156101c857600080fd5b506101dc6101d73660046116f4565b61054b565b005b3480156101ea57600080fd5b506101dc6101f93660046116f4565b610583565b34801561020a57600080fd5b506101dc6102193660046114bf565b6105e0565b34801561022a57600080fd5b506101dc610239366004611679565b610654565b34801561024a57600080fd5b506101dc6102593660046114bf565b6106bb565b34801561026a57600080fd5b5060035461027e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101dc6102a93660046114e3565b610757565b3480156102ba57600080fd5b506101dc6102c93660046116b3565b6108b2565b3480156102da57600080fd5b506102e460075481565b604051908152602001610292565b3480156102fe57600080fd5b506101dc61030d3660046114bf565b610964565b34801561031e57600080fd5b506102e461032d3660046114bf565b600c6020526000908152604090205481565b34801561034b57600080fd5b506101dc61035a3660046114bf565b6109d8565b34801561036b57600080fd5b506101dc610a4c565b34801561038057600080fd5b5060055461027e906001600160a01b031681565b3480156103a057600080fd5b506101dc6103af366004611575565b610a82565b3480156103c057600080fd5b506102e46103cf3660046114bf565b600b6020526000908152604090205481565b3480156103ed57600080fd5b506000546001600160a01b031661027e565b34801561040b57600080fd5b506101dc61041a3660046115e1565b610bc4565b34801561042b57600080fd5b5060015461027e906001600160a01b031681565b34801561044b57600080fd5b5060025461027e906001600160a01b031681565b34801561046b57600080fd5b506101dc61047a3660046116f4565b610df8565b34801561048b57600080fd5b506102e460065481565b3480156104a157600080fd5b50600a546104af9060ff1681565b6040519015158152602001610292565b3480156104cb57600080fd5b506101dc6104da3660046114bf565b610e55565b3480156104eb57600080fd5b5060045461027e906001600160a01b031681565b34801561050b57600080fd5b506101dc61051a3660046114bf565b610ef0565b34801561052b57600080fd5b506102e460085481565b34801561054157600080fd5b506102e460095481565b6000546001600160a01b0316331461057e5760405162461bcd60e51b8152600401610575906118cc565b60405180910390fd5b600955565b6000546001600160a01b031633146105ad5760405162461bcd60e51b8152600401610575906118cc565b600681905560405181907f9ca90be83f574636274aac45058dc504ab9513089699777dc2d02f159405e49390600090a250565b6000546001600160a01b0316331461060a5760405162461bcd60e51b8152600401610575906118cc565b600280546001600160a01b0319166001600160a01b0383169081179091556040517f8d2035689bc34b4f88f35f69f91655ceb060f3917327c64d03e97a0f77c159a190600090a250565b6000546001600160a01b0316331461067e5760405162461bcd60e51b8152600401610575906118cc565b600a805460ff19168215159081179091556040517f17be0ad50b88d0df1bf510c11d8e2b0ac9f6b00eb00b1199d29d0071a35a8b7790600090a250565b6000546001600160a01b031633146106e55760405162461bcd60e51b8152600401610575906118cc565b6005546001600160a01b031661070d57604051621e66c360e31b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b0383169081179091556040517f31d126cd4571af01ee97c71276d735d1679eddc96a373dafffbb20982eb3c87c90600090a250565b600a5460ff161561077b576040516303b14e6560e51b815260040160405180910390fd5b6001546001600160a01b031633146107a6576040516348f5c3ed60e01b815260040160405180910390fd5b6000818060200190518101906107bc919061170d565b905082816006546107cd9190611919565b146107eb5760405163078d696560e31b815260040160405180910390fd5b60095481111561080e5760405163cd9f8be160e01b815260040160405180910390fd5b80600760008282546108209190611901565b90915550506001600160a01b0388166000908152600c60205260408120805483929061084d908490611901565b90915550506007546040805183815242602082015280820186905260608101929092525186916001600160a01b038b16917f9b5da855ca9cc9290820ab44c8d4c69c4b207baf5a9c941d6c082a3546c314169181900360800190a35050505050505050565b6000546001600160a01b031633146108dc5760405162461bcd60e51b8152600401610575906118cc565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561092657600080fd5b505af115801561093a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095e9190611696565b50505050565b6000546001600160a01b0316331461098e5760405162461bcd60e51b8152600401610575906118cc565b600480546001600160a01b0319166001600160a01b0383169081179091556040517fdbfe34109a5057e279a06d6ea3239b8d29640c0724b6ce8ff783fc71a2b76ce790600090a250565b6000546001600160a01b03163314610a025760405162461bcd60e51b8152600401610575906118cc565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f7751c5b9b06fd8883d53bd68145219deb746cc9505392d13f50615831cabd8d990600090a250565b6000546001600160a01b03163314610a765760405162461bcd60e51b8152600401610575906118cc565b610a806000610f64565b565b6005546001600160a01b03163314610aad5760405163ccea9e6f60e01b815260040160405180910390fd5b828114610acd57604051634af3c5a760e11b815260040160405180910390fd5b60005b83811015610bbd57828282818110610aea57610aea611996565b90506020020135600c6000878785818110610b0757610b07611996565b9050602002016020810190610b1c91906114bf565b6001600160a01b03168152602081019190915260400160002055828282818110610b4857610b48611996565b90506020020135858583818110610b6157610b61611996565b9050602002016020810190610b7691906114bf565b6001600160a01b03167f326149b1cbdad37c9c14d61fe856cb3ca4b94cc2dfce7dfa19c77072ca2b6a1e60405160405180910390a380610bb58161194f565b915050610ad0565b5050505050565b600a5460ff1615610be8576040516303b14e6560e51b815260040160405180910390fd5b336000908152600b6020526040902054610c029084611938565b600114610c2257604051633ab3447f60e11b815260040160405180910390fd5b600854610c2f9083611901565b421115610c4f5760405163b7d0949760e01b815260040160405180910390fd5b600454610c6d906001600160a01b031633898989898989468a610fb4565b610c8a5760405163c90c66b560e01b815260040160405180910390fd5b336000908152600b60205260408120849055805b85811015610cde57868682818110610cb857610cb8611996565b9050602002013582610cca9190611901565b915080610cd68161194f565b915050610c9e565b50336000908152600c6020526040902054811115610d0f5760405163cd9f8be160e01b815260040160405180910390fd5b336000818152600c6020908152604080832080548690039055600254600354825193840183529383529051631759616b60e11b81526001600160a01b0391821694632eb2c2d694610d6f9493169290918e918e918e918e91600401611823565b600060405180830381600087803b158015610d8957600080fd5b505af1158015610d9d573d6000803e3d6000fd5b50505050336001600160a01b03167f1d87f091a192ed2ec53c296fe4aa7beb809df3dec06f1e88ab0ec9fbf2c67e2e89898989898989604051610de69796959493929190611885565b60405180910390a25050505050505050565b6000546001600160a01b03163314610e225760405162461bcd60e51b8152600401610575906118cc565b600881905560405181907f5f19e518f3dc3717f9b6611ba430d5693500ca87d843a92cde2398f0a6e5c4fb90600090a250565b6000546001600160a01b03163314610e7f5760405162461bcd60e51b8152600401610575906118cc565b6001600160a01b038116610ee45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610575565b610eed81610f64565b50565b6000546001600160a01b03163314610f1a5760405162461bcd60e51b8152600401610575906118cc565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f0db398fcb60fe109059c4871e2fe0956ffc8048d054f0df59b5ace7900776fdb90600090a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808a8a8a8a8a8a8a8a604051602001610fd69897969594939291906117d6565b6040516020818303038152906040528051906020012090506000611047826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90508c6001600160a01b031661105d8286611078565b6001600160a01b0316149d9c50505050505050505050505050565b6000806000611087858561109c565b915091506110948161110c565b509392505050565b6000808251604114156110d35760208301516040840151606085015160001a6110c7878285856112c7565b94509450505050611105565b8251604014156110fd57602083015160408401516110f28683836113b4565b935093505050611105565b506000905060025b9250929050565b600081600481111561112057611120611980565b14156111295750565b600181600481111561113d5761113d611980565b141561118b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610575565b600281600481111561119f5761119f611980565b14156111ed5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610575565b600381600481111561120157611201611980565b141561125a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610575565b600481600481111561126e5761126e611980565b1415610eed5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610575565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156112fe57506000905060036113ab565b8460ff16601b1415801561131657508460ff16601c14155b1561132757506000905060046113ab565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561137b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113a4576000600192509250506113ab565b9150600090505b94509492505050565b6000806001600160ff1b038316816113d160ff86901c601b611901565b90506113df878288856112c7565b935093505050935093915050565b60008083601f8401126113ff57600080fd5b50813567ffffffffffffffff81111561141757600080fd5b6020830191508360208260051b850101111561110557600080fd5b600082601f83011261144357600080fd5b813567ffffffffffffffff8082111561145e5761145e6119ac565b604051601f8301601f19908116603f01168101908282118183101715611486576114866119ac565b8160405283815286602085880101111561149f57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156114d157600080fd5b81356114dc816119c2565b9392505050565b600080600080600080600060e0888a0312156114fe57600080fd5b8735611509816119c2565b96506020880135611519816119c2565b95506040880135611529816119c2565b9450606088013593506080880135925060a0880135915060c088013567ffffffffffffffff81111561155a57600080fd5b6115668a828b01611432565b91505092959891949750929550565b6000806000806040858703121561158b57600080fd5b843567ffffffffffffffff808211156115a357600080fd5b6115af888389016113ed565b909650945060208701359150808211156115c857600080fd5b506115d5878288016113ed565b95989497509550505050565b600080600080600080600060a0888a0312156115fc57600080fd5b873567ffffffffffffffff8082111561161457600080fd5b6116208b838c016113ed565b909950975060208a013591508082111561163957600080fd5b6116458b838c016113ed565b909750955060408a0135945060608a0135935060808a013591508082111561166c57600080fd5b506115668a828b01611432565b60006020828403121561168b57600080fd5b81356114dc816119d7565b6000602082840312156116a857600080fd5b81516114dc816119d7565b6000806000606084860312156116c857600080fd5b83356116d3816119c2565b925060208401356116e3816119c2565b929592945050506040919091013590565b60006020828403121561170657600080fd5b5035919050565b60006020828403121561171f57600080fd5b5051919050565b81835260006001600160fb1b0383111561173f57600080fd5b8260051b8083602087013760009401602001938452509192915050565b60006001600160fb1b0383111561177257600080fd5b8260051b8083863760009401938452509192915050565b6000815180845260005b818110156117af57602081850181015186830182015201611793565b818111156117c1576000602083870101525b50601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198960601b16815260006118056117fe601484018a8c61175c565b878961175c565b94855250506020830191909152604082015260600195945050505050565b6001600160a01b0388811682528716602082015260a0604082018190526000906118509083018789611726565b8281036060840152611863818688611726565b905082810360808401526118778185611789565b9a9950505050505050505050565b60a08152600061189960a08301898b611726565b82810360208401526118ac81888a611726565b905085604084015284606084015282810360808401526118778185611789565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156119145761191461196a565b500190565b60008160001904831182151516156119335761193361196a565b500290565b60008282101561194a5761194a61196a565b500390565b60006000198214156119635761196361196a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610eed57600080fd5b8015158114610eed57600080fdfea2646970667358221220f595d60abb0b3328d0235960b9171dbfabff8455ed411e1d614e63d70bb4607664736f6c63430008070033
Deployed Bytecode
0x6080604052600436106101b75760003560e01c8063789a7da8116100ec578063de34bacd1161008a578063f74d548011610064578063f74d5480146104df578063f928114a146104ff578063fbc7b5301461051f578063ff39d5bb1461053557600080fd5b8063de34bacd1461047f578063ee07080514610495578063f2fde38b146104bf57600080fd5b8063be5973dd116100c6578063be5973dd146103ff578063c7ee005e1461041f578063ca7238f21461043f578063cfe32bd51461045f57600080fd5b8063789a7da8146103945780637ecebe00146103b45780638da5cb5b146103e157600080fd5b8063503690d11161015957806356b5f6771161013357806356b5f677146103125780635f454a721461033f578063715018a61461035f57806376b997971461037457600080fd5b8063503690d1146102ae5780635671ec30146102ce57806356a1c701146102f257600080fd5b80632e528875116101955780632e5288751461021e578063328f447c1461023e5780633e357f7a1461025e5780634ceb6dfe1461029b57600080fd5b80630ade6b02146101bc5780630d6e3dbf146101de5780632444cf2e146101fe575b600080fd5b3480156101c857600080fd5b506101dc6101d73660046116f4565b61054b565b005b3480156101ea57600080fd5b506101dc6101f93660046116f4565b610583565b34801561020a57600080fd5b506101dc6102193660046114bf565b6105e0565b34801561022a57600080fd5b506101dc610239366004611679565b610654565b34801561024a57600080fd5b506101dc6102593660046114bf565b6106bb565b34801561026a57600080fd5b5060035461027e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101dc6102a93660046114e3565b610757565b3480156102ba57600080fd5b506101dc6102c93660046116b3565b6108b2565b3480156102da57600080fd5b506102e460075481565b604051908152602001610292565b3480156102fe57600080fd5b506101dc61030d3660046114bf565b610964565b34801561031e57600080fd5b506102e461032d3660046114bf565b600c6020526000908152604090205481565b34801561034b57600080fd5b506101dc61035a3660046114bf565b6109d8565b34801561036b57600080fd5b506101dc610a4c565b34801561038057600080fd5b5060055461027e906001600160a01b031681565b3480156103a057600080fd5b506101dc6103af366004611575565b610a82565b3480156103c057600080fd5b506102e46103cf3660046114bf565b600b6020526000908152604090205481565b3480156103ed57600080fd5b506000546001600160a01b031661027e565b34801561040b57600080fd5b506101dc61041a3660046115e1565b610bc4565b34801561042b57600080fd5b5060015461027e906001600160a01b031681565b34801561044b57600080fd5b5060025461027e906001600160a01b031681565b34801561046b57600080fd5b506101dc61047a3660046116f4565b610df8565b34801561048b57600080fd5b506102e460065481565b3480156104a157600080fd5b50600a546104af9060ff1681565b6040519015158152602001610292565b3480156104cb57600080fd5b506101dc6104da3660046114bf565b610e55565b3480156104eb57600080fd5b5060045461027e906001600160a01b031681565b34801561050b57600080fd5b506101dc61051a3660046114bf565b610ef0565b34801561052b57600080fd5b506102e460085481565b34801561054157600080fd5b506102e460095481565b6000546001600160a01b0316331461057e5760405162461bcd60e51b8152600401610575906118cc565b60405180910390fd5b600955565b6000546001600160a01b031633146105ad5760405162461bcd60e51b8152600401610575906118cc565b600681905560405181907f9ca90be83f574636274aac45058dc504ab9513089699777dc2d02f159405e49390600090a250565b6000546001600160a01b0316331461060a5760405162461bcd60e51b8152600401610575906118cc565b600280546001600160a01b0319166001600160a01b0383169081179091556040517f8d2035689bc34b4f88f35f69f91655ceb060f3917327c64d03e97a0f77c159a190600090a250565b6000546001600160a01b0316331461067e5760405162461bcd60e51b8152600401610575906118cc565b600a805460ff19168215159081179091556040517f17be0ad50b88d0df1bf510c11d8e2b0ac9f6b00eb00b1199d29d0071a35a8b7790600090a250565b6000546001600160a01b031633146106e55760405162461bcd60e51b8152600401610575906118cc565b6005546001600160a01b031661070d57604051621e66c360e31b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b0383169081179091556040517f31d126cd4571af01ee97c71276d735d1679eddc96a373dafffbb20982eb3c87c90600090a250565b600a5460ff161561077b576040516303b14e6560e51b815260040160405180910390fd5b6001546001600160a01b031633146107a6576040516348f5c3ed60e01b815260040160405180910390fd5b6000818060200190518101906107bc919061170d565b905082816006546107cd9190611919565b146107eb5760405163078d696560e31b815260040160405180910390fd5b60095481111561080e5760405163cd9f8be160e01b815260040160405180910390fd5b80600760008282546108209190611901565b90915550506001600160a01b0388166000908152600c60205260408120805483929061084d908490611901565b90915550506007546040805183815242602082015280820186905260608101929092525186916001600160a01b038b16917f9b5da855ca9cc9290820ab44c8d4c69c4b207baf5a9c941d6c082a3546c314169181900360800190a35050505050505050565b6000546001600160a01b031633146108dc5760405162461bcd60e51b8152600401610575906118cc565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561092657600080fd5b505af115801561093a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095e9190611696565b50505050565b6000546001600160a01b0316331461098e5760405162461bcd60e51b8152600401610575906118cc565b600480546001600160a01b0319166001600160a01b0383169081179091556040517fdbfe34109a5057e279a06d6ea3239b8d29640c0724b6ce8ff783fc71a2b76ce790600090a250565b6000546001600160a01b03163314610a025760405162461bcd60e51b8152600401610575906118cc565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f7751c5b9b06fd8883d53bd68145219deb746cc9505392d13f50615831cabd8d990600090a250565b6000546001600160a01b03163314610a765760405162461bcd60e51b8152600401610575906118cc565b610a806000610f64565b565b6005546001600160a01b03163314610aad5760405163ccea9e6f60e01b815260040160405180910390fd5b828114610acd57604051634af3c5a760e11b815260040160405180910390fd5b60005b83811015610bbd57828282818110610aea57610aea611996565b90506020020135600c6000878785818110610b0757610b07611996565b9050602002016020810190610b1c91906114bf565b6001600160a01b03168152602081019190915260400160002055828282818110610b4857610b48611996565b90506020020135858583818110610b6157610b61611996565b9050602002016020810190610b7691906114bf565b6001600160a01b03167f326149b1cbdad37c9c14d61fe856cb3ca4b94cc2dfce7dfa19c77072ca2b6a1e60405160405180910390a380610bb58161194f565b915050610ad0565b5050505050565b600a5460ff1615610be8576040516303b14e6560e51b815260040160405180910390fd5b336000908152600b6020526040902054610c029084611938565b600114610c2257604051633ab3447f60e11b815260040160405180910390fd5b600854610c2f9083611901565b421115610c4f5760405163b7d0949760e01b815260040160405180910390fd5b600454610c6d906001600160a01b031633898989898989468a610fb4565b610c8a5760405163c90c66b560e01b815260040160405180910390fd5b336000908152600b60205260408120849055805b85811015610cde57868682818110610cb857610cb8611996565b9050602002013582610cca9190611901565b915080610cd68161194f565b915050610c9e565b50336000908152600c6020526040902054811115610d0f5760405163cd9f8be160e01b815260040160405180910390fd5b336000818152600c6020908152604080832080548690039055600254600354825193840183529383529051631759616b60e11b81526001600160a01b0391821694632eb2c2d694610d6f9493169290918e918e918e918e91600401611823565b600060405180830381600087803b158015610d8957600080fd5b505af1158015610d9d573d6000803e3d6000fd5b50505050336001600160a01b03167f1d87f091a192ed2ec53c296fe4aa7beb809df3dec06f1e88ab0ec9fbf2c67e2e89898989898989604051610de69796959493929190611885565b60405180910390a25050505050505050565b6000546001600160a01b03163314610e225760405162461bcd60e51b8152600401610575906118cc565b600881905560405181907f5f19e518f3dc3717f9b6611ba430d5693500ca87d843a92cde2398f0a6e5c4fb90600090a250565b6000546001600160a01b03163314610e7f5760405162461bcd60e51b8152600401610575906118cc565b6001600160a01b038116610ee45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610575565b610eed81610f64565b50565b6000546001600160a01b03163314610f1a5760405162461bcd60e51b8152600401610575906118cc565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f0db398fcb60fe109059c4871e2fe0956ffc8048d054f0df59b5ace7900776fdb90600090a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808a8a8a8a8a8a8a8a604051602001610fd69897969594939291906117d6565b6040516020818303038152906040528051906020012090506000611047826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90508c6001600160a01b031661105d8286611078565b6001600160a01b0316149d9c50505050505050505050505050565b6000806000611087858561109c565b915091506110948161110c565b509392505050565b6000808251604114156110d35760208301516040840151606085015160001a6110c7878285856112c7565b94509450505050611105565b8251604014156110fd57602083015160408401516110f28683836113b4565b935093505050611105565b506000905060025b9250929050565b600081600481111561112057611120611980565b14156111295750565b600181600481111561113d5761113d611980565b141561118b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610575565b600281600481111561119f5761119f611980565b14156111ed5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610575565b600381600481111561120157611201611980565b141561125a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610575565b600481600481111561126e5761126e611980565b1415610eed5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610575565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156112fe57506000905060036113ab565b8460ff16601b1415801561131657508460ff16601c14155b1561132757506000905060046113ab565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561137b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113a4576000600192509250506113ab565b9150600090505b94509492505050565b6000806001600160ff1b038316816113d160ff86901c601b611901565b90506113df878288856112c7565b935093505050935093915050565b60008083601f8401126113ff57600080fd5b50813567ffffffffffffffff81111561141757600080fd5b6020830191508360208260051b850101111561110557600080fd5b600082601f83011261144357600080fd5b813567ffffffffffffffff8082111561145e5761145e6119ac565b604051601f8301601f19908116603f01168101908282118183101715611486576114866119ac565b8160405283815286602085880101111561149f57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156114d157600080fd5b81356114dc816119c2565b9392505050565b600080600080600080600060e0888a0312156114fe57600080fd5b8735611509816119c2565b96506020880135611519816119c2565b95506040880135611529816119c2565b9450606088013593506080880135925060a0880135915060c088013567ffffffffffffffff81111561155a57600080fd5b6115668a828b01611432565b91505092959891949750929550565b6000806000806040858703121561158b57600080fd5b843567ffffffffffffffff808211156115a357600080fd5b6115af888389016113ed565b909650945060208701359150808211156115c857600080fd5b506115d5878288016113ed565b95989497509550505050565b600080600080600080600060a0888a0312156115fc57600080fd5b873567ffffffffffffffff8082111561161457600080fd5b6116208b838c016113ed565b909950975060208a013591508082111561163957600080fd5b6116458b838c016113ed565b909750955060408a0135945060608a0135935060808a013591508082111561166c57600080fd5b506115668a828b01611432565b60006020828403121561168b57600080fd5b81356114dc816119d7565b6000602082840312156116a857600080fd5b81516114dc816119d7565b6000806000606084860312156116c857600080fd5b83356116d3816119c2565b925060208401356116e3816119c2565b929592945050506040919091013590565b60006020828403121561170657600080fd5b5035919050565b60006020828403121561171f57600080fd5b5051919050565b81835260006001600160fb1b0383111561173f57600080fd5b8260051b8083602087013760009401602001938452509192915050565b60006001600160fb1b0383111561177257600080fd5b8260051b8083863760009401938452509192915050565b6000815180845260005b818110156117af57602081850181015186830182015201611793565b818111156117c1576000602083870101525b50601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198960601b16815260006118056117fe601484018a8c61175c565b878961175c565b94855250506020830191909152604082015260600195945050505050565b6001600160a01b0388811682528716602082015260a0604082018190526000906118509083018789611726565b8281036060840152611863818688611726565b905082810360808401526118778185611789565b9a9950505050505050505050565b60a08152600061189960a08301898b611726565b82810360208401526118ac81888a611726565b905085604084015284606084015282810360808401526118778185611789565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156119145761191461196a565b500190565b60008160001904831182151516156119335761193361196a565b500290565b60008282101561194a5761194a61196a565b500390565b60006000198214156119635761196361196a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610eed57600080fd5b8015158114610eed57600080fdfea2646970667358221220f595d60abb0b3328d0235960b9171dbfabff8455ed411e1d614e63d70bb4607664736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.