Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 188 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 17863464 | 575 days ago | IN | 0 ETH | 0.00510246 | ||||
Withdraw | 17861968 | 576 days ago | IN | 0 ETH | 0.00356954 | ||||
Withdraw | 17861913 | 576 days ago | IN | 0 ETH | 0.00233485 | ||||
Add Manual Key | 17857582 | 576 days ago | IN | 0 ETH | 0.00038325 | ||||
Withdraw | 17827924 | 580 days ago | IN | 0 ETH | 0.00444505 | ||||
Add Manual Key | 17827901 | 580 days ago | IN | 0 ETH | 0.0014796 | ||||
Withdraw | 17756633 | 590 days ago | IN | 0 ETH | 0.00259538 | ||||
Add Manual Key | 17756624 | 590 days ago | IN | 0 ETH | 0.00105188 | ||||
Withdraw | 17690288 | 600 days ago | IN | 0 ETH | 0.00286697 | ||||
Add Manual Key | 17690271 | 600 days ago | IN | 0 ETH | 0.00101423 | ||||
Withdraw | 17608265 | 611 days ago | IN | 0 ETH | 0.00170085 | ||||
Deposit | 17608023 | 611 days ago | IN | 0 ETH | 0.00073007 | ||||
Withdraw | 17607474 | 611 days ago | IN | 0 ETH | 0.00270834 | ||||
Add Manual Key | 17595297 | 613 days ago | IN | 0 ETH | 0.00077895 | ||||
Add Manual Key | 17595296 | 613 days ago | IN | 0 ETH | 0.00079635 | ||||
Add Manual Key | 17595295 | 613 days ago | IN | 0 ETH | 0.00078043 | ||||
Withdraw | 17408597 | 639 days ago | IN | 0 ETH | 0.00227644 | ||||
Withdraw | 17408593 | 639 days ago | IN | 0 ETH | 0.00277717 | ||||
Deposit | 17408516 | 639 days ago | IN | 0 ETH | 0.00160023 | ||||
Withdraw | 17368890 | 645 days ago | IN | 0 ETH | 0.0027375 | ||||
Deposit | 17368786 | 645 days ago | IN | 0 ETH | 0.00132225 | ||||
Withdraw | 17367622 | 645 days ago | IN | 0 ETH | 0.00370847 | ||||
Deposit | 17367619 | 645 days ago | IN | 0 ETH | 0.00174865 | ||||
Withdraw | 17367574 | 645 days ago | IN | 0 ETH | 0.00297569 | ||||
Add Manual Key | 17367542 | 645 days ago | IN | 0 ETH | 0.00121495 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
GambaCashier
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-05-17 */ // SPDX-License-Identifier: UNLICENSED // File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol pragma solidity >=0.6.2; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } // File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @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 // Deprecated in v4.8 } 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"); } } /** * @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) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @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 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)); } } // File: @openzeppelin/contracts/utils/cryptography/EIP712.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // 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); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } } // File: contracts/Casino/Token/GambaCoin.sol pragma solidity 0.8.20; uint256 constant INITIAL_SUPPLY = 777_777_777 ether; address constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address constant BURN_ADDRESS = address(0xdead); IUniswapV2Factory constant UNISWAP_V2_FACTORY = IUniswapV2Factory( 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f ); /** * @title Gamba Coin * @author @gambacoin: https://twitter.com/gambacoin * @notice Total Supply: 777,777,777 */ contract GambaCoin is ERC20Permit, Ownable { uint256 public constant BPS_DIVISOR = 10_000; address public immutable UNISWAP_V2_PAIR; uint256 public maxWalletAmount = (INITIAL_SUPPLY * 10) / BPS_DIVISOR; uint256 public deadblockExpiration; bool public limitsEnabled; bool public tradingActive; uint256 private _initialBuyFeesBPS; uint256 private _initialSellFeesBPS; address public feeRecipient; uint256 public taxDuration; mapping(address => bool) private _exclusionList; mapping(address => bool) private _blacklist; event UpdatedTradingStatus(bool tradingActive, uint256 deadBlockExpiration); event UpdatedMaxWalletAmount(uint256 maxWalletAmount); event UpdatedExclusionList(address account, bool excluded); event UpdatedBlacklist(address account, bool blacklisted); event UpdatedLimitsEnabled(bool limitsInEffect); event UpdatedFeeRecipient(address recipient); constructor( address feeRecipient_ ) ERC20Permit("Gamba Coin") ERC20("Gamba Coin", "GAMBA") { _updateExclusionList(BURN_ADDRESS, true); _updateExclusionList(feeRecipient_, true); _updateExclusionList(msg.sender, true); updateFeeRecipient(feeRecipient_); _mint(msg.sender, INITIAL_SUPPLY); UNISWAP_V2_PAIR = UNISWAP_V2_FACTORY.createPair(address(this), WETH); } function _transfer( address from, address to, uint256 amount ) internal override { require(amount > 0, "amount must be greater than 0"); if (!tradingActive) { require( isExcluded(from) || isExcluded(to), "transfers are not yet active" ); } if (limitsEnabled) { //when buy if (from == UNISWAP_V2_PAIR && !isExcluded(to)) { if (block.number < deadblockExpiration) { _updateBlacklist(to, true); } } else if (to == UNISWAP_V2_PAIR && !isExcluded(from)) { //when sell if (block.number < deadblockExpiration) { _updateBlacklist(from, true); } } if (to != UNISWAP_V2_PAIR && !isExcluded(to) && !isExcluded(from)) { require( balanceOf(to) + amount <= maxWalletAmount, "amount exceeds wallet limit" ); } } // if any account does not belong to exclusionList, apply fees to: // - bots/snipers // - buys // - sells if (!isExcluded(from) && !isExcluded(to)) { uint256 fees; // take fees bot/sniper if (isBlacklisted(to) || isBlacklisted(from)) { fees = (amount * 9_800) / BPS_DIVISOR; } // take fees on sell swaps else if (to == UNISWAP_V2_PAIR) { fees = getFeesAmount(amount, _initialSellFeesBPS); } // take fees on buy swaps else if (from == UNISWAP_V2_PAIR) { fees = getFeesAmount(amount, _initialBuyFeesBPS); } if (fees > 0) { super._transfer(from, feeRecipient, fees); amount -= fees; } } super._transfer(from, to, amount); } function getFeesAmount( uint256 amount, uint256 initialBPS ) public view returns (uint256 fees) { fees = (amount * getFeesBPS(initialBPS)) / BPS_DIVISOR; } function getFeesBPS( uint256 initialBPS ) public view returns (uint256 feesBPS) { if (block.number < deadblockExpiration) { return initialBPS; } uint256 elapsedBlocks = block.number - deadblockExpiration; if (elapsedBlocks < taxDuration) { feesBPS = initialBPS * (taxDuration - elapsedBlocks); feesBPS = feesBPS / taxDuration; } } function updateTradingStatus(uint256 deadBlocks) external onlyOwner { updateLimitsEnabled(true); tradingActive = true; if (deadblockExpiration == 0) { deadblockExpiration = block.number + deadBlocks; } emit UpdatedTradingStatus(true, deadblockExpiration); } function updateFeeRecipient(address recipient) public onlyOwner { feeRecipient = recipient; emit UpdatedFeeRecipient(recipient); } function updateExclusionList( address[] calldata addresses, bool value ) public onlyOwner { for (uint256 i; i < addresses.length; ) { _updateExclusionList(addresses[i], value); unchecked { i++; } } } function _updateExclusionList(address account, bool value) private { _exclusionList[account] = value; emit UpdatedExclusionList(account, value); } function isExcluded(address account) public view returns (bool) { return _exclusionList[account]; } function updateBlacklist( address[] calldata addresses, bool status ) external onlyOwner { for (uint256 i; i < addresses.length; ) { _updateBlacklist(addresses[i], status); unchecked { i++; } } } function _updateBlacklist(address account, bool status) private { _blacklist[account] = status; emit UpdatedBlacklist(account, status); } function isBlacklisted(address account) public view returns (bool) { return !isExcluded(account) && _blacklist[account]; } function updateMaxWalletAmount(uint256 newAmount) external onlyOwner { maxWalletAmount = newAmount; emit UpdatedMaxWalletAmount(newAmount); } function updateLimitsEnabled(bool enabled) public onlyOwner { limitsEnabled = enabled; emit UpdatedLimitsEnabled(enabled); } function burn(uint256 amount) external { _burn(msg.sender, amount); } function updateFeesBPS( uint256 buyFeesBPS, uint256 sellFeesBPS, uint256 duration ) external onlyOwner { _initialBuyFeesBPS = buyFeesBPS; _initialSellFeesBPS = sellFeesBPS; taxDuration = duration; } } // File: contracts/Casino/Structs.sol pragma solidity 0.8.20; struct Fee { uint16 rate; address payable recipient; } struct WithdrawalRequest { address recipient; uint256 amount; address token; /* unused for now */ Fee[] fees; /* unused for now */ uint256 blockNumber; /* unused for now */ bytes extraParams; } struct SignedWithdrawalRequest { WithdrawalRequest request; /* Signature by the oracle. */ uint8 v; bytes32 r; bytes32 s; } // File: contracts/Casino/CasinoEIP712.sol pragma solidity 0.8.20; /** * @title CasinoEIP712 * @dev Contains all of the request hashing functions for EIP712 compliant signatures */ contract CasinoEIP712 { struct EIP712Domain { string name; string version; uint256 chainId; address verifyingContract; } /* Order typehash for EIP 712 compatibility. */ bytes32 public constant FEE_TYPEHASH = keccak256("Fee(uint16 rate,address recipient)"); bytes32 constant EIP712DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); bytes32 DOMAIN_SEPARATOR; function _hashDomain( EIP712Domain memory eip712Domain ) internal pure returns (bytes32) { return keccak256( abi.encode( EIP712DOMAIN_TYPEHASH, keccak256(bytes(eip712Domain.name)), keccak256(bytes(eip712Domain.version)), eip712Domain.chainId, eip712Domain.verifyingContract ) ); } function _hashFee(Fee calldata fee) internal pure returns (bytes32) { return keccak256(abi.encode(FEE_TYPEHASH, fee.rate, fee.recipient)); } function _packFees(Fee[] calldata fees) internal pure returns (bytes32) { bytes32[] memory feeHashes = new bytes32[](fees.length); for (uint256 i = 0; i < fees.length; i++) { feeHashes[i] = _hashFee(fees[i]); } return keccak256(abi.encodePacked(feeHashes)); } bytes32 public constant WITHDRAWAL_REQUEST_TYPEHASH = keccak256( "WithdrawalRequest(address recipient,uint256 amount,address token,Fee[] fees,uint256 blockNumber,bytes extraParams,uint256 nonce)Fee(uint16 rate,address recipient)" ); function hashWithdrawalRequest( WithdrawalRequest calldata withdrawalRequest, uint256 nonce ) public pure returns (bytes32) { return keccak256( bytes.concat( abi.encode( WITHDRAWAL_REQUEST_TYPEHASH, withdrawalRequest.recipient, withdrawalRequest.amount, withdrawalRequest.token, _packFees(withdrawalRequest.fees), withdrawalRequest.blockNumber, keccak256(withdrawalRequest.extraParams) ), abi.encode(nonce) ) ); } function hashToSign( bytes32 requestHash ) public view returns (bytes32 hash) { return keccak256( abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, requestHash) ); } } // File: contracts/Casino/Withdraw.sol pragma solidity 0.8.20; abstract contract Withdraw is CasinoEIP712 { mapping(bytes32 => bool) public cancelledOrFilled; uint256 public blockRange = 30; address public oracle; function _setBlockRange(uint256 blockRange_) internal { blockRange = blockRange_; } function _setOracle(address oracle_) internal { oracle = oracle_; } /* Internal Functions */ /** * @dev Verify the validity of the request parameters * @param request request * @param requestHash hash of request */ function _validateWithdrawalRequestParameters( WithdrawalRequest calldata request, bytes32 requestHash ) internal view returns (bool) { return (/* request must have a recipient. */ (request.recipient != address(0)) && /* request must not be cancelled or filled. */ (!cancelledOrFilled[requestHash])); } function _validateSignatures( SignedWithdrawalRequest calldata request, bytes32 requestHash ) internal view returns (bool) { require( block.number - request.request.blockNumber < blockRange, "Signed block number out of range" ); /* Check oracle authorization. */ if ( !_validateUserAuthorization( requestHash, oracle, request.v, request.r, request.s ) ) { return false; } return true; } function _validateUserAuthorization( bytes32 orderHash, address trader, uint8 v, bytes32 r, bytes32 s ) internal view returns (bool) { bytes32 hashToSign = hashToSign(orderHash); return _verify(trader, hashToSign, v, r, s); } function _verify( address signer, bytes32 digest, uint8 v, bytes32 r, bytes32 s ) internal pure returns (bool) { require(v == 27 || v == 28, "Invalid v parameter"); address recoveredSigner = ecrecover(digest, v, r, s); if (recoveredSigner == address(0)) { return false; } else { return signer == recoveredSigner; } } } // File: contracts/Casino/Casino.sol pragma solidity 0.8.20; contract GambaCashier is Withdraw, Ownable { string public constant NAME = "GambaCashier"; string public constant VERSION = "1"; GambaCoin public immutable GAMBA_COIN; mapping(address => uint256) public nonces; mapping(bytes32 => address) private overrideKeys; event GambaDeposit(address indexed user, uint256 amount); event GambaWithdraw(address indexed user, uint256 amount); constructor(GambaCoin gamba, address _oracle, uint _blockRange) { GAMBA_COIN = gamba; DOMAIN_SEPARATOR = _hashDomain( EIP712Domain({ name: NAME, version: VERSION, chainId: block.chainid, verifyingContract: address(this) }) ); oracle = _oracle; blockRange = _blockRange; } function addManualKey(bytes32 key, address user) external onlyOwner { overrideKeys[key] = user; } function deposit(uint256 amount) external { GAMBA_COIN.transferFrom(msg.sender, address(this), amount); emit GambaDeposit(msg.sender, amount); } function withdraw( SignedWithdrawalRequest calldata signedRequest, bytes32 manualOverrideKey ) external { uint256 maxWithdraw = (GAMBA_COIN.balanceOf(address(this)) * 5) / 100; // You can only withdraw upto 5% of the treasure bytes32 requestHash = hashWithdrawalRequest( signedRequest.request, nonces[signedRequest.request.recipient] ); require( _validateWithdrawalRequestParameters( signedRequest.request, requestHash ), "Request has invalid parameters" ); require( _validateSignatures(signedRequest, requestHash), "Request failed authorization" ); // Requires manual override if the amount exceeds maxWithdraw amount if (signedRequest.request.amount >= maxWithdraw) { require( overrideKeys[manualOverrideKey] == signedRequest.request.recipient, "This amount requires manual review" ); overrideKeys[manualOverrideKey] == address(0); } /* Mark request as filled. */ cancelledOrFilled[requestHash] = true; nonces[signedRequest.request.recipient]++; /* Transfer tokens. */ GAMBA_COIN.transfer( signedRequest.request.recipient, signedRequest.request.amount ); emit GambaWithdraw(msg.sender, signedRequest.request.amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract GambaCoin","name":"gamba","type":"address"},{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"uint256","name":"_blockRange","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"GambaDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"GambaWithdraw","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"},{"inputs":[],"name":"FEE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GAMBA_COIN","outputs":[{"internalType":"contract GambaCoin","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_REQUEST_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"},{"internalType":"address","name":"user","type":"address"}],"name":"addManualKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blockRange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"cancelledOrFilled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestHash","type":"bytes32"}],"name":"hashToSign","outputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"components":[{"internalType":"uint16","name":"rate","type":"uint16"},{"internalType":"address payable","name":"recipient","type":"address"}],"internalType":"struct Fee[]","name":"fees","type":"tuple[]"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes","name":"extraParams","type":"bytes"}],"internalType":"struct WithdrawalRequest","name":"withdrawalRequest","type":"tuple"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"hashWithdrawalRequest","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"components":[{"internalType":"uint16","name":"rate","type":"uint16"},{"internalType":"address payable","name":"recipient","type":"address"}],"internalType":"struct Fee[]","name":"fees","type":"tuple[]"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes","name":"extraParams","type":"bytes"}],"internalType":"struct WithdrawalRequest","name":"request","type":"tuple"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct SignedWithdrawalRequest","name":"signedRequest","type":"tuple"},{"internalType":"bytes32","name":"manualOverrideKey","type":"bytes32"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052601e60025534801562000015575f80fd5b50604051620025b5380380620025b583398181016040528101906200003b9190620003b4565b6200005b6200004f6200019560201b60201c565b6200019c60201b60201c565b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250506200014060405180608001604052806040518060400160405280600c81526020017f47616d626143617368696572000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081526020014681526020013073ffffffffffffffffffffffffffffffffffffffff168152506200025f60201b60201c565b5f819055508160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600281905550505050620004a4565b5f33905090565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f825f01518051906020012083602001518051906020012084604001518560600151604051602001620002b895949392919062000449565b604051602081830303815290604052805190602001209050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200030482620002d9565b9050919050565b5f6200031782620002f8565b9050919050565b62000329816200030b565b811462000334575f80fd5b50565b5f8151905062000347816200031e565b92915050565b6200035881620002f8565b811462000363575f80fd5b50565b5f8151905062000376816200034d565b92915050565b5f819050919050565b62000390816200037c565b81146200039b575f80fd5b50565b5f81519050620003ae8162000385565b92915050565b5f805f60608486031215620003ce57620003cd620002d5565b5b5f620003dd8682870162000337565b9350506020620003f08682870162000366565b925050604062000403868287016200039e565b9150509250925092565b5f819050919050565b62000421816200040d565b82525050565b62000432816200037c565b82525050565b6200044381620002f8565b82525050565b5f60a0820190506200045e5f83018862000416565b6200046d602083018762000416565b6200047c604083018662000416565b6200048b606083018562000427565b6200049a608083018462000438565b9695505050505050565b6080516120e3620004d25f395f81816104ee0152818161057e015281816108e70152610a1a01526120e35ff3fe608060405234801561000f575f80fd5b5060043610610109575f3560e01c80638da5cb5b116100a0578063b6b55f251161006f578063b6b55f2514610295578063d08538af146102b1578063f2fde38b146102cd578063fc623ef8146102e9578063ffa1ad741461031957610109565b80638da5cb5b1461021f578063a3f4df7e1461023d578063a4b2c6741461025b578063b44402871461027957610109565b8063715018a6116100dc578063715018a6146101a95780637dc0d1d0146101b35780637ecebe00146101d15780638c07c7b41461020157610109565b8063434c33ed1461010d57806346402f0c1461012b5780634832ede11461015b5780635511f31914610179575b5f80fd5b610115610337565b604051610122919061117a565b60405180910390f35b610145600480360381019061014091906111f0565b61035b565b604051610152919061117a565b60405180910390f35b61016361045e565b604051610170919061117a565b60405180910390f35b610193600480360381019061018e9190611274565b610482565b6040516101a091906112b9565b60405180910390f35b6101b161049f565b005b6101bb6104b2565b6040516101c89190611311565b60405180910390f35b6101eb60048036038101906101e69190611354565b6104d7565b6040516101f8919061138e565b60405180910390f35b6102096104ec565b6040516102169190611402565b60405180910390f35b610227610510565b6040516102349190611311565b60405180910390f35b610245610538565b60405161025291906114a5565b60405180910390f35b610263610571565b604051610270919061138e565b60405180910390f35b610293600480360381019061028e91906114e3565b610577565b005b6102af60048036038101906102aa919061153d565b610a18565b005b6102cb60048036038101906102c69190611568565b610b07565b005b6102e760048036038101906102e29190611354565b610b62565b005b61030360048036038101906102fe9190611274565b610be4565b604051610310919061117a565b60405180910390f35b610321610c16565b60405161032e91906114a5565b60405180910390f35b7ffde882941e78f8573b9bff8a15878b5fa3c4fa245cf2af94219da21fbe87db0481565b5f7ffde882941e78f8573b9bff8a15878b5fa3c4fa245cf2af94219da21fbe87db04835f01602081019061038f9190611354565b84602001358560400160208101906103a79190611354565b6103bf8780606001906103ba91906115b2565b610c4f565b8760800135888060a001906103d49190611614565b6040516103e29291906116b2565b604051809103902060405160200161040097969594939291906116ca565b60405160208183030381529060405282604051602001610420919061138e565b604051602081830303815290604052604051602001610440929190611771565b60405160208183030381529060405280519060200120905092915050565b7f05b43f730f67de334a342883f867101fc7ef3361dfdff4a29a7aa97e0920ef7a81565b6001602052805f5260405f205f915054906101000a900460ff1681565b6104a7610d30565b6104b05f610dae565b565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6005602052805f5260405f205f915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6040518060400160405280600c81526020017f47616d626143617368696572000000000000000000000000000000000000000081525081565b60025481565b5f606460057f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105d59190611311565b602060405180830381865afa1580156105f0573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061061491906117a8565b61061e9190611800565b610628919061186e565b90505f61069f84805f019061063d919061189e565b60055f87805f019061064f919061189e565b5f0160208101906106609190611354565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461035b565b90506106b984805f01906106b3919061189e565b82610e71565b6106f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ef9061190f565b60405180910390fd5b6107028482610ee2565b610741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073890611977565b60405180910390fd5b8184805f0190610751919061189e565b602001351061084c5783805f0190610769919061189e565b5f01602081019061077a9190611354565b73ffffffffffffffffffffffffffffffffffffffff1660065f8581526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080e90611a05565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660065f8581526020019081526020015f205f9054906101000a905050505b6001805f8381526020019081526020015f205f6101000a81548160ff02191690831515021790555060055f85805f0190610886919061189e565b5f0160208101906108979190611354565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154809291906108e090611a23565b91905055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85805f0190610930919061189e565b5f0160208101906109419190611354565b86805f0190610950919061189e565b602001356040518363ffffffff1660e01b8152600401610971929190611a6a565b6020604051808303815f875af115801561098d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109b19190611abb565b503373ffffffffffffffffffffffffffffffffffffffff167f448bddbd4caf67abf87a5b80ceeba43d175330095b8e1467a00bb127649d99ae85805f01906109f9919061189e565b60200135604051610a0a919061138e565b60405180910390a250505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610a7593929190611ae6565b6020604051808303815f875af1158015610a91573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ab59190611abb565b503373ffffffffffffffffffffffffffffffffffffffff167f3a5df4e3d00b0407a7eb5761059f7a42914e4f3cc268e06ab2c47c11bdc8ae6e82604051610afc919061138e565b60405180910390a250565b610b0f610d30565b8060065f8481526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b610b6a610d30565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcf90611b8b565b60405180910390fd5b610be181610dae565b50565b5f805482604051602001610bf9929190611c1d565b604051602081830303815290604052805190602001209050919050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b5f808383905067ffffffffffffffff811115610c6e57610c6d611c53565b5b604051908082528060200260200182016040528015610c9c5781602001602082028036833780820191505090505b5090505f5b84849050811015610cff57610ccd858583818110610cc257610cc1611c80565b5b905060400201610fa3565b828281518110610ce057610cdf611c80565b5b6020026020010181815250508080610cf790611a23565b915050610ca1565b5080604051602001610d119190611d5e565b6040516020818303038152906040528051906020012091505092915050565b610d38611019565b73ffffffffffffffffffffffffffffffffffffffff16610d56610510565b73ffffffffffffffffffffffffffffffffffffffff1614610dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da390611dbe565b60405180910390fd5b565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8073ffffffffffffffffffffffffffffffffffffffff16835f016020810190610e9b9190611354565b73ffffffffffffffffffffffffffffffffffffffff1614158015610eda575060015f8381526020019081526020015f205f9054906101000a900460ff16155b905092915050565b5f60025483805f0190610ef5919061189e565b6080013543610f049190611ddc565b10610f44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3b90611e59565b60405180910390fd5b610f8c8260035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856020016020810190610f7d9190611ead565b86604001358760600135611020565b610f98575f9050610f9d565b600190505b92915050565b5f7f05b43f730f67de334a342883f867101fc7ef3361dfdff4a29a7aa97e0920ef7a825f016020810190610fd79190611f0f565b836020016020810190610fea9190611f75565b604051602001610ffc93929190611fbe565b604051602081830303815290604052805190602001209050919050565b5f33905090565b5f8061102b87610be4565b905061103a8682878787611046565b91505095945050505050565b5f601b8460ff16148061105c5750601c8460ff16145b61109b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110929061203d565b60405180910390fd5b5f6001868686866040515f81526020016040526040516110be949392919061206a565b6020604051602081039080840390855afa1580156110de573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611126575f915050611159565b8073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16149150505b95945050505050565b5f819050919050565b61117481611162565b82525050565b5f60208201905061118d5f83018461116b565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f60c082840312156111b4576111b361119b565b5b81905092915050565b5f819050919050565b6111cf816111bd565b81146111d9575f80fd5b50565b5f813590506111ea816111c6565b92915050565b5f806040838503121561120657611205611193565b5b5f83013567ffffffffffffffff81111561122357611222611197565b5b61122f8582860161119f565b9250506020611240858286016111dc565b9150509250929050565b61125381611162565b811461125d575f80fd5b50565b5f8135905061126e8161124a565b92915050565b5f6020828403121561128957611288611193565b5b5f61129684828501611260565b91505092915050565b5f8115159050919050565b6112b38161129f565b82525050565b5f6020820190506112cc5f8301846112aa565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6112fb826112d2565b9050919050565b61130b816112f1565b82525050565b5f6020820190506113245f830184611302565b92915050565b611333816112f1565b811461133d575f80fd5b50565b5f8135905061134e8161132a565b92915050565b5f6020828403121561136957611368611193565b5b5f61137684828501611340565b91505092915050565b611388816111bd565b82525050565b5f6020820190506113a15f83018461137f565b92915050565b5f819050919050565b5f6113ca6113c56113c0846112d2565b6113a7565b6112d2565b9050919050565b5f6113db826113b0565b9050919050565b5f6113ec826113d1565b9050919050565b6113fc816113e2565b82525050565b5f6020820190506114155f8301846113f3565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015611452578082015181840152602081019050611437565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6114778261141b565b6114818185611425565b9350611491818560208601611435565b61149a8161145d565b840191505092915050565b5f6020820190508181035f8301526114bd818461146d565b905092915050565b5f608082840312156114da576114d961119b565b5b81905092915050565b5f80604083850312156114f9576114f8611193565b5b5f83013567ffffffffffffffff81111561151657611515611197565b5b611522858286016114c5565b925050602061153385828601611260565b9150509250929050565b5f6020828403121561155257611551611193565b5b5f61155f848285016111dc565b91505092915050565b5f806040838503121561157e5761157d611193565b5b5f61158b85828601611260565b925050602061159c85828601611340565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f80833560016020038436030381126115ce576115cd6115a6565b5b80840192508235915067ffffffffffffffff8211156115f0576115ef6115aa565b5b60208301925060408202360383131561160c5761160b6115ae565b5b509250929050565b5f80833560016020038436030381126116305761162f6115a6565b5b80840192508235915067ffffffffffffffff821115611652576116516115aa565b5b60208301925060018202360383131561166e5761166d6115ae565b5b509250929050565b5f81905092915050565b828183375f83830152505050565b5f6116998385611676565b93506116a6838584611680565b82840190509392505050565b5f6116be82848661168e565b91508190509392505050565b5f60e0820190506116dd5f83018a61116b565b6116ea6020830189611302565b6116f7604083018861137f565b6117046060830187611302565b611711608083018661116b565b61171e60a083018561137f565b61172b60c083018461116b565b98975050505050505050565b5f81519050919050565b5f61174b82611737565b6117558185611676565b9350611765818560208601611435565b80840191505092915050565b5f61177c8285611741565b91506117888284611741565b91508190509392505050565b5f815190506117a2816111c6565b92915050565b5f602082840312156117bd576117bc611193565b5b5f6117ca84828501611794565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61180a826111bd565b9150611815836111bd565b9250828202611823816111bd565b9150828204841483151761183a576118396117d3565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611878826111bd565b9150611883836111bd565b92508261189357611892611841565b5b828204905092915050565b5f8235600160c0038336030381126118b9576118b86115a6565b5b80830191505092915050565b7f526571756573742068617320696e76616c696420706172616d657465727300005f82015250565b5f6118f9601e83611425565b9150611904826118c5565b602082019050919050565b5f6020820190508181035f830152611926816118ed565b9050919050565b7f52657175657374206661696c656420617574686f72697a6174696f6e000000005f82015250565b5f611961601c83611425565b915061196c8261192d565b602082019050919050565b5f6020820190508181035f83015261198e81611955565b9050919050565b7f5468697320616d6f756e74207265717569726573206d616e75616c20726576695f8201527f6577000000000000000000000000000000000000000000000000000000000000602082015250565b5f6119ef602283611425565b91506119fa82611995565b604082019050919050565b5f6020820190508181035f830152611a1c816119e3565b9050919050565b5f611a2d826111bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611a5f57611a5e6117d3565b5b600182019050919050565b5f604082019050611a7d5f830185611302565b611a8a602083018461137f565b9392505050565b611a9a8161129f565b8114611aa4575f80fd5b50565b5f81519050611ab581611a91565b92915050565b5f60208284031215611ad057611acf611193565b5b5f611add84828501611aa7565b91505092915050565b5f606082019050611af95f830186611302565b611b066020830185611302565b611b13604083018461137f565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f611b75602683611425565b9150611b8082611b1b565b604082019050919050565b5f6020820190508181035f830152611ba281611b69565b9050919050565b5f81905092915050565b7f19010000000000000000000000000000000000000000000000000000000000005f82015250565b5f611be7600283611ba9565b9150611bf282611bb3565b600282019050919050565b5f819050919050565b611c17611c1282611162565b611bfd565b82525050565b5f611c2782611bdb565b9150611c338285611c06565b602082019150611c438284611c06565b6020820191508190509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f81905092915050565b5f819050602082019050919050565b611cd981611162565b82525050565b5f611cea8383611cd0565b60208301905092915050565b5f602082019050919050565b5f611d0c82611cad565b611d168185611cb7565b9350611d2183611cc1565b805f5b83811015611d51578151611d388882611cdf565b9750611d4383611cf6565b925050600181019050611d24565b5085935050505092915050565b5f611d698284611d02565b915081905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f611da8602083611425565b9150611db382611d74565b602082019050919050565b5f6020820190508181035f830152611dd581611d9c565b9050919050565b5f611de6826111bd565b9150611df1836111bd565b9250828203905081811115611e0957611e086117d3565b5b92915050565b7f5369676e656420626c6f636b206e756d626572206f7574206f662072616e67655f82015250565b5f611e43602083611425565b9150611e4e82611e0f565b602082019050919050565b5f6020820190508181035f830152611e7081611e37565b9050919050565b5f60ff82169050919050565b611e8c81611e77565b8114611e96575f80fd5b50565b5f81359050611ea781611e83565b92915050565b5f60208284031215611ec257611ec1611193565b5b5f611ecf84828501611e99565b91505092915050565b5f61ffff82169050919050565b611eee81611ed8565b8114611ef8575f80fd5b50565b5f81359050611f0981611ee5565b92915050565b5f60208284031215611f2457611f23611193565b5b5f611f3184828501611efb565b91505092915050565b5f611f44826112d2565b9050919050565b611f5481611f3a565b8114611f5e575f80fd5b50565b5f81359050611f6f81611f4b565b92915050565b5f60208284031215611f8a57611f89611193565b5b5f611f9784828501611f61565b91505092915050565b611fa981611ed8565b82525050565b611fb881611f3a565b82525050565b5f606082019050611fd15f83018661116b565b611fde6020830185611fa0565b611feb6040830184611faf565b949350505050565b7f496e76616c6964207620706172616d65746572000000000000000000000000005f82015250565b5f612027601383611425565b915061203282611ff3565b602082019050919050565b5f6020820190508181035f8301526120548161201b565b9050919050565b61206481611e77565b82525050565b5f60808201905061207d5f83018761116b565b61208a602083018661205b565b612097604083018561116b565b6120a4606083018461116b565b9594505050505056fea26469706673582212207a14af88667d8337408d54a21271c3d1c75cd44f463a6f320e9e90293d0616ee64736f6c634300081400330000000000000000000000004d6ea05039b9d8bb4eb36df5321d7a3394555de5000000000000000000000000ff33ddadfbe6423b7a0e6694a6d03b470bf55e920000000000000000000000000000000000000000000000000000000000000064
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610109575f3560e01c80638da5cb5b116100a0578063b6b55f251161006f578063b6b55f2514610295578063d08538af146102b1578063f2fde38b146102cd578063fc623ef8146102e9578063ffa1ad741461031957610109565b80638da5cb5b1461021f578063a3f4df7e1461023d578063a4b2c6741461025b578063b44402871461027957610109565b8063715018a6116100dc578063715018a6146101a95780637dc0d1d0146101b35780637ecebe00146101d15780638c07c7b41461020157610109565b8063434c33ed1461010d57806346402f0c1461012b5780634832ede11461015b5780635511f31914610179575b5f80fd5b610115610337565b604051610122919061117a565b60405180910390f35b610145600480360381019061014091906111f0565b61035b565b604051610152919061117a565b60405180910390f35b61016361045e565b604051610170919061117a565b60405180910390f35b610193600480360381019061018e9190611274565b610482565b6040516101a091906112b9565b60405180910390f35b6101b161049f565b005b6101bb6104b2565b6040516101c89190611311565b60405180910390f35b6101eb60048036038101906101e69190611354565b6104d7565b6040516101f8919061138e565b60405180910390f35b6102096104ec565b6040516102169190611402565b60405180910390f35b610227610510565b6040516102349190611311565b60405180910390f35b610245610538565b60405161025291906114a5565b60405180910390f35b610263610571565b604051610270919061138e565b60405180910390f35b610293600480360381019061028e91906114e3565b610577565b005b6102af60048036038101906102aa919061153d565b610a18565b005b6102cb60048036038101906102c69190611568565b610b07565b005b6102e760048036038101906102e29190611354565b610b62565b005b61030360048036038101906102fe9190611274565b610be4565b604051610310919061117a565b60405180910390f35b610321610c16565b60405161032e91906114a5565b60405180910390f35b7ffde882941e78f8573b9bff8a15878b5fa3c4fa245cf2af94219da21fbe87db0481565b5f7ffde882941e78f8573b9bff8a15878b5fa3c4fa245cf2af94219da21fbe87db04835f01602081019061038f9190611354565b84602001358560400160208101906103a79190611354565b6103bf8780606001906103ba91906115b2565b610c4f565b8760800135888060a001906103d49190611614565b6040516103e29291906116b2565b604051809103902060405160200161040097969594939291906116ca565b60405160208183030381529060405282604051602001610420919061138e565b604051602081830303815290604052604051602001610440929190611771565b60405160208183030381529060405280519060200120905092915050565b7f05b43f730f67de334a342883f867101fc7ef3361dfdff4a29a7aa97e0920ef7a81565b6001602052805f5260405f205f915054906101000a900460ff1681565b6104a7610d30565b6104b05f610dae565b565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6005602052805f5260405f205f915090505481565b7f0000000000000000000000004d6ea05039b9d8bb4eb36df5321d7a3394555de581565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6040518060400160405280600c81526020017f47616d626143617368696572000000000000000000000000000000000000000081525081565b60025481565b5f606460057f0000000000000000000000004d6ea05039b9d8bb4eb36df5321d7a3394555de573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105d59190611311565b602060405180830381865afa1580156105f0573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061061491906117a8565b61061e9190611800565b610628919061186e565b90505f61069f84805f019061063d919061189e565b60055f87805f019061064f919061189e565b5f0160208101906106609190611354565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461035b565b90506106b984805f01906106b3919061189e565b82610e71565b6106f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ef9061190f565b60405180910390fd5b6107028482610ee2565b610741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073890611977565b60405180910390fd5b8184805f0190610751919061189e565b602001351061084c5783805f0190610769919061189e565b5f01602081019061077a9190611354565b73ffffffffffffffffffffffffffffffffffffffff1660065f8581526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080e90611a05565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660065f8581526020019081526020015f205f9054906101000a905050505b6001805f8381526020019081526020015f205f6101000a81548160ff02191690831515021790555060055f85805f0190610886919061189e565b5f0160208101906108979190611354565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154809291906108e090611a23565b91905055507f0000000000000000000000004d6ea05039b9d8bb4eb36df5321d7a3394555de573ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85805f0190610930919061189e565b5f0160208101906109419190611354565b86805f0190610950919061189e565b602001356040518363ffffffff1660e01b8152600401610971929190611a6a565b6020604051808303815f875af115801561098d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109b19190611abb565b503373ffffffffffffffffffffffffffffffffffffffff167f448bddbd4caf67abf87a5b80ceeba43d175330095b8e1467a00bb127649d99ae85805f01906109f9919061189e565b60200135604051610a0a919061138e565b60405180910390a250505050565b7f0000000000000000000000004d6ea05039b9d8bb4eb36df5321d7a3394555de573ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610a7593929190611ae6565b6020604051808303815f875af1158015610a91573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ab59190611abb565b503373ffffffffffffffffffffffffffffffffffffffff167f3a5df4e3d00b0407a7eb5761059f7a42914e4f3cc268e06ab2c47c11bdc8ae6e82604051610afc919061138e565b60405180910390a250565b610b0f610d30565b8060065f8481526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b610b6a610d30565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcf90611b8b565b60405180910390fd5b610be181610dae565b50565b5f805482604051602001610bf9929190611c1d565b604051602081830303815290604052805190602001209050919050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b5f808383905067ffffffffffffffff811115610c6e57610c6d611c53565b5b604051908082528060200260200182016040528015610c9c5781602001602082028036833780820191505090505b5090505f5b84849050811015610cff57610ccd858583818110610cc257610cc1611c80565b5b905060400201610fa3565b828281518110610ce057610cdf611c80565b5b6020026020010181815250508080610cf790611a23565b915050610ca1565b5080604051602001610d119190611d5e565b6040516020818303038152906040528051906020012091505092915050565b610d38611019565b73ffffffffffffffffffffffffffffffffffffffff16610d56610510565b73ffffffffffffffffffffffffffffffffffffffff1614610dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da390611dbe565b60405180910390fd5b565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8073ffffffffffffffffffffffffffffffffffffffff16835f016020810190610e9b9190611354565b73ffffffffffffffffffffffffffffffffffffffff1614158015610eda575060015f8381526020019081526020015f205f9054906101000a900460ff16155b905092915050565b5f60025483805f0190610ef5919061189e565b6080013543610f049190611ddc565b10610f44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3b90611e59565b60405180910390fd5b610f8c8260035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856020016020810190610f7d9190611ead565b86604001358760600135611020565b610f98575f9050610f9d565b600190505b92915050565b5f7f05b43f730f67de334a342883f867101fc7ef3361dfdff4a29a7aa97e0920ef7a825f016020810190610fd79190611f0f565b836020016020810190610fea9190611f75565b604051602001610ffc93929190611fbe565b604051602081830303815290604052805190602001209050919050565b5f33905090565b5f8061102b87610be4565b905061103a8682878787611046565b91505095945050505050565b5f601b8460ff16148061105c5750601c8460ff16145b61109b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110929061203d565b60405180910390fd5b5f6001868686866040515f81526020016040526040516110be949392919061206a565b6020604051602081039080840390855afa1580156110de573d5f803e3d5ffd5b5050506020604051035190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611126575f915050611159565b8073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16149150505b95945050505050565b5f819050919050565b61117481611162565b82525050565b5f60208201905061118d5f83018461116b565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f60c082840312156111b4576111b361119b565b5b81905092915050565b5f819050919050565b6111cf816111bd565b81146111d9575f80fd5b50565b5f813590506111ea816111c6565b92915050565b5f806040838503121561120657611205611193565b5b5f83013567ffffffffffffffff81111561122357611222611197565b5b61122f8582860161119f565b9250506020611240858286016111dc565b9150509250929050565b61125381611162565b811461125d575f80fd5b50565b5f8135905061126e8161124a565b92915050565b5f6020828403121561128957611288611193565b5b5f61129684828501611260565b91505092915050565b5f8115159050919050565b6112b38161129f565b82525050565b5f6020820190506112cc5f8301846112aa565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6112fb826112d2565b9050919050565b61130b816112f1565b82525050565b5f6020820190506113245f830184611302565b92915050565b611333816112f1565b811461133d575f80fd5b50565b5f8135905061134e8161132a565b92915050565b5f6020828403121561136957611368611193565b5b5f61137684828501611340565b91505092915050565b611388816111bd565b82525050565b5f6020820190506113a15f83018461137f565b92915050565b5f819050919050565b5f6113ca6113c56113c0846112d2565b6113a7565b6112d2565b9050919050565b5f6113db826113b0565b9050919050565b5f6113ec826113d1565b9050919050565b6113fc816113e2565b82525050565b5f6020820190506114155f8301846113f3565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015611452578082015181840152602081019050611437565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6114778261141b565b6114818185611425565b9350611491818560208601611435565b61149a8161145d565b840191505092915050565b5f6020820190508181035f8301526114bd818461146d565b905092915050565b5f608082840312156114da576114d961119b565b5b81905092915050565b5f80604083850312156114f9576114f8611193565b5b5f83013567ffffffffffffffff81111561151657611515611197565b5b611522858286016114c5565b925050602061153385828601611260565b9150509250929050565b5f6020828403121561155257611551611193565b5b5f61155f848285016111dc565b91505092915050565b5f806040838503121561157e5761157d611193565b5b5f61158b85828601611260565b925050602061159c85828601611340565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f80833560016020038436030381126115ce576115cd6115a6565b5b80840192508235915067ffffffffffffffff8211156115f0576115ef6115aa565b5b60208301925060408202360383131561160c5761160b6115ae565b5b509250929050565b5f80833560016020038436030381126116305761162f6115a6565b5b80840192508235915067ffffffffffffffff821115611652576116516115aa565b5b60208301925060018202360383131561166e5761166d6115ae565b5b509250929050565b5f81905092915050565b828183375f83830152505050565b5f6116998385611676565b93506116a6838584611680565b82840190509392505050565b5f6116be82848661168e565b91508190509392505050565b5f60e0820190506116dd5f83018a61116b565b6116ea6020830189611302565b6116f7604083018861137f565b6117046060830187611302565b611711608083018661116b565b61171e60a083018561137f565b61172b60c083018461116b565b98975050505050505050565b5f81519050919050565b5f61174b82611737565b6117558185611676565b9350611765818560208601611435565b80840191505092915050565b5f61177c8285611741565b91506117888284611741565b91508190509392505050565b5f815190506117a2816111c6565b92915050565b5f602082840312156117bd576117bc611193565b5b5f6117ca84828501611794565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61180a826111bd565b9150611815836111bd565b9250828202611823816111bd565b9150828204841483151761183a576118396117d3565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611878826111bd565b9150611883836111bd565b92508261189357611892611841565b5b828204905092915050565b5f8235600160c0038336030381126118b9576118b86115a6565b5b80830191505092915050565b7f526571756573742068617320696e76616c696420706172616d657465727300005f82015250565b5f6118f9601e83611425565b9150611904826118c5565b602082019050919050565b5f6020820190508181035f830152611926816118ed565b9050919050565b7f52657175657374206661696c656420617574686f72697a6174696f6e000000005f82015250565b5f611961601c83611425565b915061196c8261192d565b602082019050919050565b5f6020820190508181035f83015261198e81611955565b9050919050565b7f5468697320616d6f756e74207265717569726573206d616e75616c20726576695f8201527f6577000000000000000000000000000000000000000000000000000000000000602082015250565b5f6119ef602283611425565b91506119fa82611995565b604082019050919050565b5f6020820190508181035f830152611a1c816119e3565b9050919050565b5f611a2d826111bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611a5f57611a5e6117d3565b5b600182019050919050565b5f604082019050611a7d5f830185611302565b611a8a602083018461137f565b9392505050565b611a9a8161129f565b8114611aa4575f80fd5b50565b5f81519050611ab581611a91565b92915050565b5f60208284031215611ad057611acf611193565b5b5f611add84828501611aa7565b91505092915050565b5f606082019050611af95f830186611302565b611b066020830185611302565b611b13604083018461137f565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f611b75602683611425565b9150611b8082611b1b565b604082019050919050565b5f6020820190508181035f830152611ba281611b69565b9050919050565b5f81905092915050565b7f19010000000000000000000000000000000000000000000000000000000000005f82015250565b5f611be7600283611ba9565b9150611bf282611bb3565b600282019050919050565b5f819050919050565b611c17611c1282611162565b611bfd565b82525050565b5f611c2782611bdb565b9150611c338285611c06565b602082019150611c438284611c06565b6020820191508190509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f81905092915050565b5f819050602082019050919050565b611cd981611162565b82525050565b5f611cea8383611cd0565b60208301905092915050565b5f602082019050919050565b5f611d0c82611cad565b611d168185611cb7565b9350611d2183611cc1565b805f5b83811015611d51578151611d388882611cdf565b9750611d4383611cf6565b925050600181019050611d24565b5085935050505092915050565b5f611d698284611d02565b915081905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f611da8602083611425565b9150611db382611d74565b602082019050919050565b5f6020820190508181035f830152611dd581611d9c565b9050919050565b5f611de6826111bd565b9150611df1836111bd565b9250828203905081811115611e0957611e086117d3565b5b92915050565b7f5369676e656420626c6f636b206e756d626572206f7574206f662072616e67655f82015250565b5f611e43602083611425565b9150611e4e82611e0f565b602082019050919050565b5f6020820190508181035f830152611e7081611e37565b9050919050565b5f60ff82169050919050565b611e8c81611e77565b8114611e96575f80fd5b50565b5f81359050611ea781611e83565b92915050565b5f60208284031215611ec257611ec1611193565b5b5f611ecf84828501611e99565b91505092915050565b5f61ffff82169050919050565b611eee81611ed8565b8114611ef8575f80fd5b50565b5f81359050611f0981611ee5565b92915050565b5f60208284031215611f2457611f23611193565b5b5f611f3184828501611efb565b91505092915050565b5f611f44826112d2565b9050919050565b611f5481611f3a565b8114611f5e575f80fd5b50565b5f81359050611f6f81611f4b565b92915050565b5f60208284031215611f8a57611f89611193565b5b5f611f9784828501611f61565b91505092915050565b611fa981611ed8565b82525050565b611fb881611f3a565b82525050565b5f606082019050611fd15f83018661116b565b611fde6020830185611fa0565b611feb6040830184611faf565b949350505050565b7f496e76616c6964207620706172616d65746572000000000000000000000000005f82015250565b5f612027601383611425565b915061203282611ff3565b602082019050919050565b5f6020820190508181035f8301526120548161201b565b9050919050565b61206481611e77565b82525050565b5f60808201905061207d5f83018761116b565b61208a602083018661205b565b612097604083018561116b565b6120a4606083018461116b565b9594505050505056fea26469706673582212207a14af88667d8337408d54a21271c3d1c75cd44f463a6f320e9e90293d0616ee64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004d6ea05039b9d8bb4eb36df5321d7a3394555de5000000000000000000000000ff33ddadfbe6423b7a0e6694a6d03b470bf55e920000000000000000000000000000000000000000000000000000000000000064
-----Decoded View---------------
Arg [0] : gamba (address): 0x4D6ea05039b9d8bB4eB36DF5321D7a3394555DE5
Arg [1] : _oracle (address): 0xFF33ddadfbE6423b7A0e6694a6d03B470bF55E92
Arg [2] : _blockRange (uint256): 100
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000004d6ea05039b9d8bb4eb36df5321d7a3394555de5
Arg [1] : 000000000000000000000000ff33ddadfbe6423b7a0e6694a6d03b470bf55e92
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000064
Deployed Bytecode Sourcemap
75133:2704:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71392:262;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;71663:748;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;70113:95;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;72784:49;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;61299:103;;;:::i;:::-;;72877:21;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;75325:41;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;75279:37;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;60651:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;75183:44;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;72840:30;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;76276:1558;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;76101:167;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;75982:111;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;61557:201;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;72419:233;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;75234:36;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;71392:262;71455:199;71392:262;:::o;71663:748::-;71801:7;71455:199;71995:17;:27;;;;;;;;;;:::i;:::-;72049:17;:24;;;72100:17;:23;;;;;;;;;;:::i;:::-;72150:33;72160:17;:22;;;;;;;;:::i;:::-;72150:9;:33::i;:::-;72210:17;:29;;;72276:17;:29;;;;;;;;:::i;:::-;72266:40;;;;;;;:::i;:::-;;;;;;;;71904:425;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72363:5;72352:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;71869:519;;;;;;;;;:::i;:::-;;;;;;;;;;;;;71841:562;;;;;;71821:582;;71663:748;;;;:::o;70113:95::-;70161:47;70113:95;:::o;72784:49::-;;;;;;;;;;;;;;;;;;;;;;:::o;61299:103::-;60537:13;:11;:13::i;:::-;61364:30:::1;61391:1;61364:18;:30::i;:::-;61299:103::o:0;72877:21::-;;;;;;;;;;;;;:::o;75325:41::-;;;;;;;;;;;;;;;;;:::o;75279:37::-;;;:::o;60651:87::-;60697:7;60724:6;;;;;;;;;;;60717:13;;60651:87;:::o;75183:44::-;;;;;;;;;;;;;;;;;;;:::o;72840:30::-;;;;:::o;76276:1558::-;76414:19;76480:3;76475:1;76437:10;:20;;;76466:4;76437:35;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:39;;;;:::i;:::-;76436:47;;;;:::i;:::-;76414:69;;76545:19;76567:122;76603:13;:21;;;;;;;;:::i;:::-;76639:6;:39;76646:13;:21;;;;;;;;:::i;:::-;:31;;;;;;;;;;:::i;:::-;76639:39;;;;;;;;;;;;;;;;76567:21;:122::i;:::-;76545:144;;76724:121;76779:13;:21;;;;;;;;:::i;:::-;76819:11;76724:36;:121::i;:::-;76702:201;;;;;;;;;;;;:::i;:::-;;;;;;;;;76938:47;76958:13;76973:11;76938:19;:47::i;:::-;76916:125;;;;;;;;;;;;:::i;:::-;;;;;;;;;77168:11;77136:13;:21;;;;;;;;:::i;:::-;:28;;;:43;77132:319;;77278:13;:21;;;;;;;;:::i;:::-;:31;;;;;;;;;;:::i;:::-;77222:87;;:12;:31;77235:17;77222:31;;;;;;;;;;;;;;;;;;;;;:87;;;77196:183;;;;;;;;;;;;:::i;:::-;;;;;;;;;77437:1;77394:45;;:12;:31;77407:17;77394:31;;;;;;;;;;;;;;;;;;;;:45;77132:319;77535:4;77502:17;:30;77520:11;77502:30;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;77550:6;:39;77557:13;:21;;;;;;;;:::i;:::-;:31;;;;;;;;;;:::i;:::-;77550:39;;;;;;;;;;;;;;;;:41;;;;;;;;;:::i;:::-;;;;;;77636:10;:19;;;77670:13;:21;;;;;;;;:::i;:::-;:31;;;;;;;;;;:::i;:::-;77716:13;:21;;;;;;;;:::i;:::-;:28;;;77636:119;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;77785:10;77771:55;;;77797:13;:21;;;;;;;;:::i;:::-;:28;;;77771:55;;;;;;:::i;:::-;;;;;;;;76403:1431;;76276:1558;;:::o;76101:167::-;76154:10;:23;;;76178:10;76198:4;76205:6;76154:58;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;76241:10;76228:32;;;76253:6;76228:32;;;;;;:::i;:::-;;;;;;;;76101:167;:::o;75982:111::-;60537:13;:11;:13::i;:::-;76081:4:::1;76061:12;:17;76074:3;76061:17;;;;;;;;;;;;:24;;;;;;;;;;;;;;;;;;75982:111:::0;;:::o;61557:201::-;60537:13;:11;:13::i;:::-;61666:1:::1;61646:22;;:8;:22;;::::0;61638:73:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;61722:28;61741:8;61722:18;:28::i;:::-;61557:201:::0;:::o;72419:233::-;72497:12;72599:16;;72617:11;72570:59;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72542:102;;;;;;72522:122;;72419:233;;;:::o;75234:36::-;;;;;;;;;;;;;;;;;;;:::o;71071:313::-;71134:7;71154:26;71197:4;;:11;;71183:26;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71154:55;;71225:9;71220:101;71244:4;;:11;;71240:1;:15;71220:101;;;71292:17;71301:4;;71306:1;71301:7;;;;;;;:::i;:::-;;;;;;;71292:8;:17::i;:::-;71277:9;71287:1;71277:12;;;;;;;;:::i;:::-;;;;;;;:32;;;;;71257:3;;;;;:::i;:::-;;;;71220:101;;;;71365:9;71348:27;;;;;;;;:::i;:::-;;;;;;;;;;;;;71338:38;;;;;;71331:45;;;71071:313;;;;:::o;60816:132::-;60891:12;:10;:12::i;:::-;60880:23;;:7;:5;:7::i;:::-;:23;;;60872:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;60816:132::o;61918:191::-;61992:16;62011:6;;;;;;;;;;;61992:25;;62037:8;62028:6;;:17;;;;;;;;;;;;;;;;;;62092:8;62061:40;;62082:8;62061:40;;;;;;;;;;;;61981:128;61918:191;:::o;73282:374::-;73433:4;73534:1;73505:31;;:7;:17;;;;;;;;;;:::i;:::-;:31;;;;73504:143;;;;;73616:17;:30;73634:11;73616:30;;;;;;;;;;;;;;;;;;;;;73615:31;73504:143;73450:198;;73282:374;;;;:::o;73664:631::-;73804:4;73888:10;;73858:7;:15;;;;;;;;:::i;:::-;:27;;;73843:12;:42;;;;:::i;:::-;:55;73821:137;;;;;;;;;;;;:::i;:::-;;;;;;;;;74033:180;74078:11;74108:6;;;;;;;;;;;74133:7;:9;;;;;;;;;;:::i;:::-;74161:7;:9;;;74189:7;:9;;;74033:26;:180::i;:::-;74014:250;;74247:5;74240:12;;;;74014:250;74283:4;74276:11;;73664:631;;;;;:::o;70909:154::-;70968:7;70161:47;71030:3;:8;;;;;;;;;;:::i;:::-;71040:3;:13;;;;;;;;;;:::i;:::-;71005:49;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;70995:60;;;;;;70988:67;;70909:154;;;:::o;42584:98::-;42637:7;42664:10;42657:17;;42584:98;:::o;74303:298::-;74480:4;74497:18;74518:21;74529:9;74518:10;:21::i;:::-;74497:42;;74557:36;74565:6;74573:10;74585:1;74588;74591;74557:7;:36::i;:::-;74550:43;;;74303:298;;;;;;;:::o;74609:442::-;74764:4;74794:2;74789:1;:7;;;:18;;;;74805:2;74800:1;:7;;;74789:18;74781:50;;;;;;;;;;;;:::i;:::-;;;;;;;;;74842:23;74868:26;74878:6;74886:1;74889;74892;74868:26;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74842:52;;74936:1;74909:29;;:15;:29;;;74905:139;;74962:5;74955:12;;;;;74905:139;75017:15;75007:25;;:6;:25;;;75000:32;;;74609:442;;;;;;;;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;646:117;755:1;752;745:12;769:117;878:1;875;868:12;924:242;1007:5;1048:3;1039:6;1034:3;1030:16;1026:26;1023:113;;;1055:79;;:::i;:::-;1023:113;1154:6;1145:15;;924:242;;;;:::o;1172:77::-;1209:7;1238:5;1227:16;;1172:77;;;:::o;1255:122::-;1328:24;1346:5;1328:24;:::i;:::-;1321:5;1318:35;1308:63;;1367:1;1364;1357:12;1308:63;1255:122;:::o;1383:139::-;1429:5;1467:6;1454:20;1445:29;;1483:33;1510:5;1483:33;:::i;:::-;1383:139;;;;:::o;1528:708::-;1633:6;1641;1690:2;1678:9;1669:7;1665:23;1661:32;1658:119;;;1696:79;;:::i;:::-;1658:119;1844:1;1833:9;1829:17;1816:31;1874:18;1866:6;1863:30;1860:117;;;1896:79;;:::i;:::-;1860:117;2001:90;2083:7;2074:6;2063:9;2059:22;2001:90;:::i;:::-;1991:100;;1787:314;2140:2;2166:53;2211:7;2202:6;2191:9;2187:22;2166:53;:::i;:::-;2156:63;;2111:118;1528:708;;;;;:::o;2242:122::-;2315:24;2333:5;2315:24;:::i;:::-;2308:5;2305:35;2295:63;;2354:1;2351;2344:12;2295:63;2242:122;:::o;2370:139::-;2416:5;2454:6;2441:20;2432:29;;2470:33;2497:5;2470:33;:::i;:::-;2370:139;;;;:::o;2515:329::-;2574:6;2623:2;2611:9;2602:7;2598:23;2594:32;2591:119;;;2629:79;;:::i;:::-;2591:119;2749:1;2774:53;2819:7;2810:6;2799:9;2795:22;2774:53;:::i;:::-;2764:63;;2720:117;2515:329;;;;:::o;2850:90::-;2884:7;2927:5;2920:13;2913:21;2902:32;;2850:90;;;:::o;2946:109::-;3027:21;3042:5;3027:21;:::i;:::-;3022:3;3015:34;2946:109;;:::o;3061:210::-;3148:4;3186:2;3175:9;3171:18;3163:26;;3199:65;3261:1;3250:9;3246:17;3237:6;3199:65;:::i;:::-;3061:210;;;;:::o;3277:126::-;3314:7;3354:42;3347:5;3343:54;3332:65;;3277:126;;;:::o;3409:96::-;3446:7;3475:24;3493:5;3475:24;:::i;:::-;3464:35;;3409:96;;;:::o;3511:118::-;3598:24;3616:5;3598:24;:::i;:::-;3593:3;3586:37;3511:118;;:::o;3635:222::-;3728:4;3766:2;3755:9;3751:18;3743:26;;3779:71;3847:1;3836:9;3832:17;3823:6;3779:71;:::i;:::-;3635:222;;;;:::o;3863:122::-;3936:24;3954:5;3936:24;:::i;:::-;3929:5;3926:35;3916:63;;3975:1;3972;3965:12;3916:63;3863:122;:::o;3991:139::-;4037:5;4075:6;4062:20;4053:29;;4091:33;4118:5;4091:33;:::i;:::-;3991:139;;;;:::o;4136:329::-;4195:6;4244:2;4232:9;4223:7;4219:23;4215:32;4212:119;;;4250:79;;:::i;:::-;4212:119;4370:1;4395:53;4440:7;4431:6;4420:9;4416:22;4395:53;:::i;:::-;4385:63;;4341:117;4136:329;;;;:::o;4471:118::-;4558:24;4576:5;4558:24;:::i;:::-;4553:3;4546:37;4471:118;;:::o;4595:222::-;4688:4;4726:2;4715:9;4711:18;4703:26;;4739:71;4807:1;4796:9;4792:17;4783:6;4739:71;:::i;:::-;4595:222;;;;:::o;4823:60::-;4851:3;4872:5;4865:12;;4823:60;;;:::o;4889:142::-;4939:9;4972:53;4990:34;4999:24;5017:5;4999:24;:::i;:::-;4990:34;:::i;:::-;4972:53;:::i;:::-;4959:66;;4889:142;;;:::o;5037:126::-;5087:9;5120:37;5151:5;5120:37;:::i;:::-;5107:50;;5037:126;;;:::o;5169:144::-;5237:9;5270:37;5301:5;5270:37;:::i;:::-;5257:50;;5169:144;;;:::o;5319:167::-;5424:55;5473:5;5424:55;:::i;:::-;5419:3;5412:68;5319:167;;:::o;5492:258::-;5603:4;5641:2;5630:9;5626:18;5618:26;;5654:89;5740:1;5729:9;5725:17;5716:6;5654:89;:::i;:::-;5492:258;;;;:::o;5756:99::-;5808:6;5842:5;5836:12;5826:22;;5756:99;;;:::o;5861:169::-;5945:11;5979:6;5974:3;5967:19;6019:4;6014:3;6010:14;5995:29;;5861:169;;;;:::o;6036:246::-;6117:1;6127:113;6141:6;6138:1;6135:13;6127:113;;;6226:1;6221:3;6217:11;6211:18;6207:1;6202:3;6198:11;6191:39;6163:2;6160:1;6156:10;6151:15;;6127:113;;;6274:1;6265:6;6260:3;6256:16;6249:27;6098:184;6036:246;;;:::o;6288:102::-;6329:6;6380:2;6376:7;6371:2;6364:5;6360:14;6356:28;6346:38;;6288:102;;;:::o;6396:377::-;6484:3;6512:39;6545:5;6512:39;:::i;:::-;6567:71;6631:6;6626:3;6567:71;:::i;:::-;6560:78;;6647:65;6705:6;6700:3;6693:4;6686:5;6682:16;6647:65;:::i;:::-;6737:29;6759:6;6737:29;:::i;:::-;6732:3;6728:39;6721:46;;6488:285;6396:377;;;;:::o;6779:313::-;6892:4;6930:2;6919:9;6915:18;6907:26;;6979:9;6973:4;6969:20;6965:1;6954:9;6950:17;6943:47;7007:78;7080:4;7071:6;7007:78;:::i;:::-;6999:86;;6779:313;;;;:::o;7136:248::-;7225:5;7266:3;7257:6;7252:3;7248:16;7244:26;7241:113;;;7273:79;;:::i;:::-;7241:113;7372:6;7363:15;;7136:248;;;;:::o;7390:720::-;7501:6;7509;7558:2;7546:9;7537:7;7533:23;7529:32;7526:119;;;7564:79;;:::i;:::-;7526:119;7712:1;7701:9;7697:17;7684:31;7742:18;7734:6;7731:30;7728:117;;;7764:79;;:::i;:::-;7728:117;7869:96;7957:7;7948:6;7937:9;7933:22;7869:96;:::i;:::-;7859:106;;7655:320;8014:2;8040:53;8085:7;8076:6;8065:9;8061:22;8040:53;:::i;:::-;8030:63;;7985:118;7390:720;;;;;:::o;8116:329::-;8175:6;8224:2;8212:9;8203:7;8199:23;8195:32;8192:119;;;8230:79;;:::i;:::-;8192:119;8350:1;8375:53;8420:7;8411:6;8400:9;8396:22;8375:53;:::i;:::-;8365:63;;8321:117;8116:329;;;;:::o;8451:474::-;8519:6;8527;8576:2;8564:9;8555:7;8551:23;8547:32;8544:119;;;8582:79;;:::i;:::-;8544:119;8702:1;8727:53;8772:7;8763:6;8752:9;8748:22;8727:53;:::i;:::-;8717:63;;8673:117;8829:2;8855:53;8900:7;8891:6;8880:9;8876:22;8855:53;:::i;:::-;8845:63;;8800:118;8451:474;;;;;:::o;8931:117::-;9040:1;9037;9030:12;9054:117;9163:1;9160;9153:12;9177:117;9286:1;9283;9276:12;9300:763;9416:4;9422:6;9478:11;9465:25;9578:1;9572:4;9568:12;9557:8;9541:14;9537:29;9533:48;9513:18;9509:73;9499:168;;9586:79;;:::i;:::-;9499:168;9698:18;9688:8;9684:33;9676:41;;9750:4;9737:18;9727:28;;9778:18;9770:6;9767:30;9764:117;;;9800:79;;:::i;:::-;9764:117;9908:2;9902:4;9898:13;9890:21;;9965:4;9957:6;9953:17;9937:14;9933:38;9927:4;9923:49;9920:136;;;9975:79;;:::i;:::-;9920:136;9429:634;9300:763;;;;;:::o;10069:724::-;10146:4;10152:6;10208:11;10195:25;10308:1;10302:4;10298:12;10287:8;10271:14;10267:29;10263:48;10243:18;10239:73;10229:168;;10316:79;;:::i;:::-;10229:168;10428:18;10418:8;10414:33;10406:41;;10480:4;10467:18;10457:28;;10508:18;10500:6;10497:30;10494:117;;;10530:79;;:::i;:::-;10494:117;10638:2;10632:4;10628:13;10620:21;;10695:4;10687:6;10683:17;10667:14;10663:38;10657:4;10653:49;10650:136;;;10705:79;;:::i;:::-;10650:136;10159:634;10069:724;;;;;:::o;10799:147::-;10900:11;10937:3;10922:18;;10799:147;;;;:::o;10952:146::-;11049:6;11044:3;11039;11026:30;11090:1;11081:6;11076:3;11072:16;11065:27;10952:146;;;:::o;11126:327::-;11240:3;11261:88;11342:6;11337:3;11261:88;:::i;:::-;11254:95;;11359:56;11408:6;11403:3;11396:5;11359:56;:::i;:::-;11440:6;11435:3;11431:16;11424:23;;11126:327;;;;;:::o;11459:291::-;11599:3;11621:103;11720:3;11711:6;11703;11621:103;:::i;:::-;11614:110;;11741:3;11734:10;;11459:291;;;;;:::o;11756:886::-;12017:4;12055:3;12044:9;12040:19;12032:27;;12069:71;12137:1;12126:9;12122:17;12113:6;12069:71;:::i;:::-;12150:72;12218:2;12207:9;12203:18;12194:6;12150:72;:::i;:::-;12232;12300:2;12289:9;12285:18;12276:6;12232:72;:::i;:::-;12314;12382:2;12371:9;12367:18;12358:6;12314:72;:::i;:::-;12396:73;12464:3;12453:9;12449:19;12440:6;12396:73;:::i;:::-;12479;12547:3;12536:9;12532:19;12523:6;12479:73;:::i;:::-;12562;12630:3;12619:9;12615:19;12606:6;12562:73;:::i;:::-;11756:886;;;;;;;;;;:::o;12648:98::-;12699:6;12733:5;12727:12;12717:22;;12648:98;;;:::o;12752:386::-;12856:3;12884:38;12916:5;12884:38;:::i;:::-;12938:88;13019:6;13014:3;12938:88;:::i;:::-;12931:95;;13035:65;13093:6;13088:3;13081:4;13074:5;13070:16;13035:65;:::i;:::-;13125:6;13120:3;13116:16;13109:23;;12860:278;12752:386;;;;:::o;13144:427::-;13320:3;13342:93;13431:3;13422:6;13342:93;:::i;:::-;13335:100;;13452:93;13541:3;13532:6;13452:93;:::i;:::-;13445:100;;13562:3;13555:10;;13144:427;;;;;:::o;13577:143::-;13634:5;13665:6;13659:13;13650:22;;13681:33;13708:5;13681:33;:::i;:::-;13577:143;;;;:::o;13726:351::-;13796:6;13845:2;13833:9;13824:7;13820:23;13816:32;13813:119;;;13851:79;;:::i;:::-;13813:119;13971:1;13996:64;14052:7;14043:6;14032:9;14028:22;13996:64;:::i;:::-;13986:74;;13942:128;13726:351;;;;:::o;14083:180::-;14131:77;14128:1;14121:88;14228:4;14225:1;14218:15;14252:4;14249:1;14242:15;14269:410;14309:7;14332:20;14350:1;14332:20;:::i;:::-;14327:25;;14366:20;14384:1;14366:20;:::i;:::-;14361:25;;14421:1;14418;14414:9;14443:30;14461:11;14443:30;:::i;:::-;14432:41;;14622:1;14613:7;14609:15;14606:1;14603:22;14583:1;14576:9;14556:83;14533:139;;14652:18;;:::i;:::-;14533:139;14317:362;14269:410;;;;:::o;14685:180::-;14733:77;14730:1;14723:88;14830:4;14827:1;14820:15;14854:4;14851:1;14844:15;14871:185;14911:1;14928:20;14946:1;14928:20;:::i;:::-;14923:25;;14962:20;14980:1;14962:20;:::i;:::-;14957:25;;15001:1;14991:35;;15006:18;;:::i;:::-;14991:35;15048:1;15045;15041:9;15036:14;;14871:185;;;;:::o;15062:403::-;15165:4;15219:11;15206:25;15319:1;15313:4;15309:12;15298:8;15282:14;15278:29;15274:48;15254:18;15250:73;15240:168;;15327:79;;:::i;:::-;15240:168;15439:18;15429:8;15425:33;15417:41;;15170:295;15062:403;;;;:::o;15471:180::-;15611:32;15607:1;15599:6;15595:14;15588:56;15471:180;:::o;15657:366::-;15799:3;15820:67;15884:2;15879:3;15820:67;:::i;:::-;15813:74;;15896:93;15985:3;15896:93;:::i;:::-;16014:2;16009:3;16005:12;15998:19;;15657:366;;;:::o;16029:419::-;16195:4;16233:2;16222:9;16218:18;16210:26;;16282:9;16276:4;16272:20;16268:1;16257:9;16253:17;16246:47;16310:131;16436:4;16310:131;:::i;:::-;16302:139;;16029:419;;;:::o;16454:178::-;16594:30;16590:1;16582:6;16578:14;16571:54;16454:178;:::o;16638:366::-;16780:3;16801:67;16865:2;16860:3;16801:67;:::i;:::-;16794:74;;16877:93;16966:3;16877:93;:::i;:::-;16995:2;16990:3;16986:12;16979:19;;16638:366;;;:::o;17010:419::-;17176:4;17214:2;17203:9;17199:18;17191:26;;17263:9;17257:4;17253:20;17249:1;17238:9;17234:17;17227:47;17291:131;17417:4;17291:131;:::i;:::-;17283:139;;17010:419;;;:::o;17435:221::-;17575:34;17571:1;17563:6;17559:14;17552:58;17644:4;17639:2;17631:6;17627:15;17620:29;17435:221;:::o;17662:366::-;17804:3;17825:67;17889:2;17884:3;17825:67;:::i;:::-;17818:74;;17901:93;17990:3;17901:93;:::i;:::-;18019:2;18014:3;18010:12;18003:19;;17662:366;;;:::o;18034:419::-;18200:4;18238:2;18227:9;18223:18;18215:26;;18287:9;18281:4;18277:20;18273:1;18262:9;18258:17;18251:47;18315:131;18441:4;18315:131;:::i;:::-;18307:139;;18034:419;;;:::o;18459:233::-;18498:3;18521:24;18539:5;18521:24;:::i;:::-;18512:33;;18567:66;18560:5;18557:77;18554:103;;18637:18;;:::i;:::-;18554:103;18684:1;18677:5;18673:13;18666:20;;18459:233;;;:::o;18698:332::-;18819:4;18857:2;18846:9;18842:18;18834:26;;18870:71;18938:1;18927:9;18923:17;18914:6;18870:71;:::i;:::-;18951:72;19019:2;19008:9;19004:18;18995:6;18951:72;:::i;:::-;18698:332;;;;;:::o;19036:116::-;19106:21;19121:5;19106:21;:::i;:::-;19099:5;19096:32;19086:60;;19142:1;19139;19132:12;19086:60;19036:116;:::o;19158:137::-;19212:5;19243:6;19237:13;19228:22;;19259:30;19283:5;19259:30;:::i;:::-;19158:137;;;;:::o;19301:345::-;19368:6;19417:2;19405:9;19396:7;19392:23;19388:32;19385:119;;;19423:79;;:::i;:::-;19385:119;19543:1;19568:61;19621:7;19612:6;19601:9;19597:22;19568:61;:::i;:::-;19558:71;;19514:125;19301:345;;;;:::o;19652:442::-;19801:4;19839:2;19828:9;19824:18;19816:26;;19852:71;19920:1;19909:9;19905:17;19896:6;19852:71;:::i;:::-;19933:72;20001:2;19990:9;19986:18;19977:6;19933:72;:::i;:::-;20015;20083:2;20072:9;20068:18;20059:6;20015:72;:::i;:::-;19652:442;;;;;;:::o;20100:225::-;20240:34;20236:1;20228:6;20224:14;20217:58;20309:8;20304:2;20296:6;20292:15;20285:33;20100:225;:::o;20331:366::-;20473:3;20494:67;20558:2;20553:3;20494:67;:::i;:::-;20487:74;;20570:93;20659:3;20570:93;:::i;:::-;20688:2;20683:3;20679:12;20672:19;;20331:366;;;:::o;20703:419::-;20869:4;20907:2;20896:9;20892:18;20884:26;;20956:9;20950:4;20946:20;20942:1;20931:9;20927:17;20920:47;20984:131;21110:4;20984:131;:::i;:::-;20976:139;;20703:419;;;:::o;21128:148::-;21230:11;21267:3;21252:18;;21128:148;;;;:::o;21282:214::-;21422:66;21418:1;21410:6;21406:14;21399:90;21282:214;:::o;21502:400::-;21662:3;21683:84;21765:1;21760:3;21683:84;:::i;:::-;21676:91;;21776:93;21865:3;21776:93;:::i;:::-;21894:1;21889:3;21885:11;21878:18;;21502:400;;;:::o;21908:79::-;21947:7;21976:5;21965:16;;21908:79;;;:::o;21993:157::-;22098:45;22118:24;22136:5;22118:24;:::i;:::-;22098:45;:::i;:::-;22093:3;22086:58;21993:157;;:::o;22156:663::-;22397:3;22419:148;22563:3;22419:148;:::i;:::-;22412:155;;22577:75;22648:3;22639:6;22577:75;:::i;:::-;22677:2;22672:3;22668:12;22661:19;;22690:75;22761:3;22752:6;22690:75;:::i;:::-;22790:2;22785:3;22781:12;22774:19;;22810:3;22803:10;;22156:663;;;;;:::o;22825:180::-;22873:77;22870:1;22863:88;22970:4;22967:1;22960:15;22994:4;22991:1;22984:15;23011:180;23059:77;23056:1;23049:88;23156:4;23153:1;23146:15;23180:4;23177:1;23170:15;23197:114;23264:6;23298:5;23292:12;23282:22;;23197:114;;;:::o;23317:163::-;23434:11;23471:3;23456:18;;23317:163;;;;:::o;23486:132::-;23553:4;23576:3;23568:11;;23606:4;23601:3;23597:14;23589:22;;23486:132;;;:::o;23624:116::-;23709:24;23727:5;23709:24;:::i;:::-;23704:3;23697:37;23624:116;;:::o;23746:195::-;23823:10;23844:54;23894:3;23886:6;23844:54;:::i;:::-;23930:4;23925:3;23921:14;23907:28;;23746:195;;;;:::o;23947:113::-;24017:4;24049;24044:3;24040:14;24032:22;;23947:113;;;:::o;24096:776::-;24233:3;24262:54;24310:5;24262:54;:::i;:::-;24332:104;24429:6;24424:3;24332:104;:::i;:::-;24325:111;;24460:56;24510:5;24460:56;:::i;:::-;24539:7;24570:1;24555:292;24580:6;24577:1;24574:13;24555:292;;;24656:6;24650:13;24683:71;24750:3;24735:13;24683:71;:::i;:::-;24676:78;;24777:60;24830:6;24777:60;:::i;:::-;24767:70;;24615:232;24602:1;24599;24595:9;24590:14;;24555:292;;;24559:14;24863:3;24856:10;;24238:634;;;24096:776;;;;:::o;24878:335::-;25040:3;25062:125;25183:3;25174:6;25062:125;:::i;:::-;25055:132;;25204:3;25197:10;;24878:335;;;;:::o;25219:182::-;25359:34;25355:1;25347:6;25343:14;25336:58;25219:182;:::o;25407:366::-;25549:3;25570:67;25634:2;25629:3;25570:67;:::i;:::-;25563:74;;25646:93;25735:3;25646:93;:::i;:::-;25764:2;25759:3;25755:12;25748:19;;25407:366;;;:::o;25779:419::-;25945:4;25983:2;25972:9;25968:18;25960:26;;26032:9;26026:4;26022:20;26018:1;26007:9;26003:17;25996:47;26060:131;26186:4;26060:131;:::i;:::-;26052:139;;25779:419;;;:::o;26204:194::-;26244:4;26264:20;26282:1;26264:20;:::i;:::-;26259:25;;26298:20;26316:1;26298:20;:::i;:::-;26293:25;;26342:1;26339;26335:9;26327:17;;26366:1;26360:4;26357:11;26354:37;;;26371:18;;:::i;:::-;26354:37;26204:194;;;;:::o;26404:182::-;26544:34;26540:1;26532:6;26528:14;26521:58;26404:182;:::o;26592:366::-;26734:3;26755:67;26819:2;26814:3;26755:67;:::i;:::-;26748:74;;26831:93;26920:3;26831:93;:::i;:::-;26949:2;26944:3;26940:12;26933:19;;26592:366;;;:::o;26964:419::-;27130:4;27168:2;27157:9;27153:18;27145:26;;27217:9;27211:4;27207:20;27203:1;27192:9;27188:17;27181:47;27245:131;27371:4;27245:131;:::i;:::-;27237:139;;26964:419;;;:::o;27389:86::-;27424:7;27464:4;27457:5;27453:16;27442:27;;27389:86;;;:::o;27481:118::-;27552:22;27568:5;27552:22;:::i;:::-;27545:5;27542:33;27532:61;;27589:1;27586;27579:12;27532:61;27481:118;:::o;27605:135::-;27649:5;27687:6;27674:20;27665:29;;27703:31;27728:5;27703:31;:::i;:::-;27605:135;;;;:::o;27746:325::-;27803:6;27852:2;27840:9;27831:7;27827:23;27823:32;27820:119;;;27858:79;;:::i;:::-;27820:119;27978:1;28003:51;28046:7;28037:6;28026:9;28022:22;28003:51;:::i;:::-;27993:61;;27949:115;27746:325;;;;:::o;28077:89::-;28113:7;28153:6;28146:5;28142:18;28131:29;;28077:89;;;:::o;28172:120::-;28244:23;28261:5;28244:23;:::i;:::-;28237:5;28234:34;28224:62;;28282:1;28279;28272:12;28224:62;28172:120;:::o;28298:137::-;28343:5;28381:6;28368:20;28359:29;;28397:32;28423:5;28397:32;:::i;:::-;28298:137;;;;:::o;28441:327::-;28499:6;28548:2;28536:9;28527:7;28523:23;28519:32;28516:119;;;28554:79;;:::i;:::-;28516:119;28674:1;28699:52;28743:7;28734:6;28723:9;28719:22;28699:52;:::i;:::-;28689:62;;28645:116;28441:327;;;;:::o;28774:104::-;28819:7;28848:24;28866:5;28848:24;:::i;:::-;28837:35;;28774:104;;;:::o;28884:138::-;28965:32;28991:5;28965:32;:::i;:::-;28958:5;28955:43;28945:71;;29012:1;29009;29002:12;28945:71;28884:138;:::o;29028:155::-;29082:5;29120:6;29107:20;29098:29;;29136:41;29171:5;29136:41;:::i;:::-;29028:155;;;;:::o;29189:345::-;29256:6;29305:2;29293:9;29284:7;29280:23;29276:32;29273:119;;;29311:79;;:::i;:::-;29273:119;29431:1;29456:61;29509:7;29500:6;29489:9;29485:22;29456:61;:::i;:::-;29446:71;;29402:125;29189:345;;;;:::o;29540:115::-;29625:23;29642:5;29625:23;:::i;:::-;29620:3;29613:36;29540:115;;:::o;29661:142::-;29764:32;29790:5;29764:32;:::i;:::-;29759:3;29752:45;29661:142;;:::o;29809:470::-;29972:4;30010:2;29999:9;29995:18;29987:26;;30023:71;30091:1;30080:9;30076:17;30067:6;30023:71;:::i;:::-;30104:70;30170:2;30159:9;30155:18;30146:6;30104:70;:::i;:::-;30184:88;30268:2;30257:9;30253:18;30244:6;30184:88;:::i;:::-;29809:470;;;;;;:::o;30285:169::-;30425:21;30421:1;30413:6;30409:14;30402:45;30285:169;:::o;30460:366::-;30602:3;30623:67;30687:2;30682:3;30623:67;:::i;:::-;30616:74;;30699:93;30788:3;30699:93;:::i;:::-;30817:2;30812:3;30808:12;30801:19;;30460:366;;;:::o;30832:419::-;30998:4;31036:2;31025:9;31021:18;31013:26;;31085:9;31079:4;31075:20;31071:1;31060:9;31056:17;31049:47;31113:131;31239:4;31113:131;:::i;:::-;31105:139;;30832:419;;;:::o;31257:112::-;31340:22;31356:5;31340:22;:::i;:::-;31335:3;31328:35;31257:112;;:::o;31375:545::-;31548:4;31586:3;31575:9;31571:19;31563:27;;31600:71;31668:1;31657:9;31653:17;31644:6;31600:71;:::i;:::-;31681:68;31745:2;31734:9;31730:18;31721:6;31681:68;:::i;:::-;31759:72;31827:2;31816:9;31812:18;31803:6;31759:72;:::i;:::-;31841;31909:2;31898:9;31894:18;31885:6;31841:72;:::i;:::-;31375:545;;;;;;;:::o
Swarm Source
ipfs://7a14af88667d8337408d54a21271c3d1c75cd44f463a6f320e9e90293d0616ee
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.