Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 242 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 19399102 | 747 days ago | IN | 0 ETH | 0.00175034 | ||||
| Approve | 18115845 | 927 days ago | IN | 0 ETH | 0.00082428 | ||||
| Transfer | 18115188 | 927 days ago | IN | 0 ETH | 0.00115191 | ||||
| Approve | 18113067 | 928 days ago | IN | 0 ETH | 0.00060918 | ||||
| Approve | 18104754 | 929 days ago | IN | 0 ETH | 0.00043383 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040652 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040652 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040667 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040652 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040667 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040652 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040667 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040667 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040667 | ||||
| Transfer | 18097460 | 930 days ago | IN | 0 ETH | 0.00040667 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041336 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 | ||||
| Transfer | 18097459 | 930 days ago | IN | 0 ETH | 0.00041367 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x60806040 | 18077675 | 932 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Token
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2023-09-06
*/
/**
* CJCJ CJCJ CJCJCJCJCJCJCJCJ
CJCJCJ CJCJCJ
CJCJCJ CJCJCJ
CJCJCJ CJCJCJ
CJCJCJ CJCJCJ
CJCJCJ CJCJ CJCJCJ
CJCJ CJCJ CJ CJCJCJ
* TG:https://t.me/CarlJohnson_Erc20
* TWITTER:https://twitter.com/CJ_MAN_
**/
// File: IPancakePair.sol
pragma solidity ^0.8.4;
interface IPancakePair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
pragma solidity ^0.8.4;
interface ISwapFactory {
function createPair(address tokenA, address tokenB) external returns (address pair);
function getPair(address tokenA, address tokenB) external returns (address pair);
}
pragma solidity ^0.8.4;
interface ISwapRouter {
function factoryV2() external pure returns (address);
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to
) external;
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
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 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);
}
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
pragma solidity ^0.8.0;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}
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) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1, "Math: mulDiv overflow");
///////////////////////////////////////////////
// 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 256, 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 << 3) < value ? 1 : 0);
}
}
}
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 `int256` to its ASCII `string` decimal representation.
*/
function toString(int256 value) internal pure returns (string memory) {
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
}
/**
* @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);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return keccak256(bytes(a)) == keccak256(bytes(b));
}
}
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
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;
}
}
pragma solidity ^0.8.0;
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `_msgSender()` is missing `role`.
* Overriding this function changes the behavior of the {onlyRole} modifier.
*
* Format of the revert message is described in {_checkRole}.
*
* _Available since v4.6._
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(account),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* May emit a {RoleGranted} event.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}
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. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
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);
}
}
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);
}
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);
}
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].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* 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}.
*
* 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 default value returned by this function, unless
* it's 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 {}
}
pragma solidity ^0.8.4;
contract TokenDistributor {
constructor (address token) {
ERC20(token).approve(msg.sender, uint(~uint256(0)));
}
}
contract Token is ERC20,Ownable,AccessControl {
bytes32 private constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
using SafeMath for uint256;
ISwapRouter private uniswapV2Router;
address public uniswapV2Pair;
address public usdt;
uint256 public startTradeBlock;
address admin;
address fundAddr;
uint256 public fundCount;
mapping(address => bool) private whiteList;
TokenDistributor public _tokenDistributor;
uint256 sellfee = 15;
uint256 buyfee = 15;
constructor()ERC20("Carl Johnson", "CJ") {
admin=0x418404AD0a9c59065512fE068b85Ef0C0217Fe9a;
//admin=msg.sender;
fundAddr=0xb18967AD7458eBccb0221002ff8cB6f4fF95e1F8;
uint256 total=420690000000000*10**decimals();
_mint(admin, total);
_grantRole(DEFAULT_ADMIN_ROLE,admin);
_grantRole(MANAGER_ROLE, admin);
_grantRole(MANAGER_ROLE, address(this));
whiteList[admin] = true;
whiteList[address(this)] = true;
transferOwnership(admin);
}
function initPair(address _token,address _swap)external onlyRole(MANAGER_ROLE){
usdt=_token;//0xc6e88A94dcEA6f032d805D10558aCf67279f7b4E;//usdt test
address swap=_swap;//0xD99D1c33F9fC3444f8101754aBC46c52416550D1;//bsc test
uniswapV2Router = ISwapRouter(swap);
uniswapV2Pair = ISwapFactory(uniswapV2Router.factory()).createPair(address(this), usdt);
ERC20(usdt).approve(address(uniswapV2Router), type(uint256).max);
_approve(address(this), address(uniswapV2Router),type(uint256).max);
_approve(address(this), address(this),type(uint256).max);
_approve(admin, address(uniswapV2Router),type(uint256).max);
_tokenDistributor = new TokenDistributor(address(this));
}
function decimals() public view virtual override returns (uint8) {
return 9;
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(amount > 0, "amount must gt 0");
if(from != uniswapV2Pair && to != uniswapV2Pair) {
_funTransfer(from, to, amount);
return;
}
if(from == uniswapV2Pair) {
require(startTradeBlock>0, "not open");
super._transfer(from, address(this), amount.mul(buyfee).div(100));
fundCount+=amount.mul(buyfee).div(100);
super._transfer(from, to, amount.mul(100 - buyfee).div(100));
return;
}
if(to == uniswapV2Pair) {
if(whiteList[from]){
super._transfer(from, to, amount);
return;
}
super._transfer(from, address(this), amount.mul(sellfee).div(100));
fundCount+=amount.mul(sellfee).div(100);
swapUsdt(fundCount+amount,fundAddr);
fundCount=0;
super._transfer(from, to, amount.mul(100 - sellfee).div(100));
return;
}
}
function _funTransfer(
address sender,
address recipient,
uint256 tAmount
) private {
super._transfer(sender, recipient, tAmount);
}
bool private inSwap;
modifier lockTheSwap {
inSwap = true;
_;
inSwap = false;
}
function swapToken(uint256 tokenAmount,address to) private lockTheSwap {
address[] memory path = new address[](2);
path[0] = address(usdt);
path[1] = address(this);
uint256 balance = IERC20(usdt).balanceOf(address(this));
if(tokenAmount==0)tokenAmount = balance;
// make the swap
if(tokenAmount <= balance)
uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of CA
path,
address(to),
block.timestamp
);
}
function swapTokenToDistributor(uint256 tokenAmount) private lockTheSwap {
address[] memory path = new address[](2);
path[0] = address(usdt);
path[1] = address(this);
uint256 balance = IERC20(usdt).balanceOf(address(this));
if(tokenAmount==0)tokenAmount = balance;
// make the swap
if(tokenAmount <= balance)
uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of CA
path,
address(_tokenDistributor),
block.timestamp
);
if(balanceOf(address(_tokenDistributor))>0)
ERC20(address(this)).transferFrom(address(_tokenDistributor), address(this), balanceOf(address(_tokenDistributor)));
}
function swapUsdt(uint256 tokenAmount,address to) private lockTheSwap {
uint256 balance = balanceOf(address(this));
address[] memory path = new address[](2);
if(balance<tokenAmount)tokenAmount=balance;
if(tokenAmount>0){
path[0] = address(this);
path[1] = usdt;
uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp);
}
}
function open(address[] calldata adrs) public onlyRole(MANAGER_ROLE) {
startTradeBlock = block.number;
for(uint i=0;i<adrs.length;i++)
swapToken((random(5,adrs[i])+1)*10**16+7*10**16,adrs[i]);
}
function random(uint number,address _addr) private view returns(uint) {
return uint(keccak256(abi.encodePacked(block.timestamp,block.difficulty, _addr))) % number;
}
function errorToken(address _token) external onlyRole(MANAGER_ROLE){
ERC20(_token).transfer(msg.sender, IERC20(_token).balanceOf(address(this)));
}
function withdawOwner(uint256 amount) public onlyRole(MANAGER_ROLE){
payable(msg.sender).transfer(amount);
}
function setbuyfee(uint256 _newbuyfee) public onlyRole(MANAGER_ROLE){
buyfee = _newbuyfee;
}
function setsellfee(uint256 _newsellfee) public onlyRole(MANAGER_ROLE){
sellfee = _newsellfee;
}
receive () external payable {
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenDistributor","outputs":[{"internalType":"contract TokenDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"errorToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_swap","type":"address"}],"name":"initPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"adrs","type":"address[]"}],"name":"open","outputs":[],"stateMutability":"nonpayable","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newbuyfee","type":"uint256"}],"name":"setbuyfee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newsellfee","type":"uint256"}],"name":"setsellfee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTradeBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdawOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080604052600f601055600f6011553480156200001b57600080fd5b506040518060400160405280600c81526020016b21b0b936102537b43739b7b760a11b8152506040518060400160405280600281526020016121a560f11b81525081600390816200006d919062000532565b5060046200007c828262000532565b5050506200009962000093620001d760201b60201c565b620001db565b600b80546001600160a01b031990811673418404ad0a9c59065512fe068b85ef0c0217fe9a17909155600c805490911673b18967ad7458ebccb0221002ff8cb6f4ff95e1f81790556000620000ec600990565b620000f990600a62000711565b6200010c9066017e9d8602b40062000729565b600b5490915062000127906001600160a01b0316826200022d565b600b5462000141906000906001600160a01b0316620002f5565b600b5462000169906000805160206200299d833981519152906001600160a01b0316620002f5565b620001846000805160206200299d83398151915230620002f5565b600b80546001600160a01b039081166000908152600e60205260408082208054600160ff19918216811790925530845291909220805490911690911790559054620001d091166200037f565b5062000759565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002895760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b80600260008282546200029d919062000743565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b5050565b62000301828262000403565b620002f15760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200033b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6200038962000430565b6001600160a01b038116620003f05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000280565b620003fb81620001db565b50565b505050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b6005546001600160a01b031633146200048c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000280565b565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004b957607f821691505b602082108103620004da57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003fe57600081815260208120601f850160051c81016020861015620005095750805b601f850160051c820191505b818110156200052a5782815560010162000515565b505050505050565b81516001600160401b038111156200054e576200054e6200048e565b62000566816200055f8454620004a4565b84620004e0565b602080601f8311600181146200059e5760008415620005855750858301515b600019600386901b1c1916600185901b1785556200052a565b600085815260208120601f198616915b82811015620005cf57888601518255948401946001909101908401620005ae565b5085821015620005ee5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000655578160001904821115620006395762000639620005fe565b808516156200064757918102915b93841c939080029062000619565b509250929050565b6000826200066e575060016200042a565b816200067d575060006200042a565b8160018114620006965760028114620006a157620006c1565b60019150506200042a565b60ff841115620006b557620006b5620005fe565b50506001821b6200042a565b5060208310610133831016604e8410600b8410161715620006e6575081810a6200042a565b620006f2838362000614565b8060001904821115620007095762000709620005fe565b029392505050565b60006200072260ff8416836200065d565b9392505050565b80820281158282048414176200042a576200042a620005fe565b808201808211156200042a576200042a620005fe565b61223480620007696000396000f3fe6080604052600436106200020f5760003560e01c80636f6579a31162000117578063a217fddf11620000a1578063d9927448116200006c578063d99274481462000623578063dd62ed3e1462000648578063efe56cb1146200066d578063f2fde38b146200069257600080fd5b8063a217fddf146200059d578063a457c2d714620005b4578063a9059cbb14620005d9578063d547741f14620005fe57600080fd5b80638718b24f11620000e25780638718b24f146200051e5780638da5cb5b146200054057806391d14854146200056057806395d89b41146200058557600080fd5b80636f6579a3146200048257806370a0823114620004a7578063715018a614620004e15780637ce000a614620004f957600080fd5b80632f48ab7d11620001995780633da14c0a11620001645780633da14c0a146200040b5780633f936ff5146200043057806349bd5a5e1462000448578063553193ca146200046a57600080fd5b80632f48ab7d1462000368578063313ce56714620003a357806336568abe14620003c15780633950935114620003e657600080fd5b80631c6a0c4c11620001da5780631c6a0c4c14620002c357806323b872dd14620002ea578063248a9ca3146200030f5780632f2ff15d146200034357600080fd5b806301ffc9a7146200021c57806306fdde031462000256578063095ea7b3146200027d57806318160ddd14620002a257600080fd5b366200021757005b600080fd5b3480156200022957600080fd5b50620002416200023b36600462001be3565b620006b7565b60405190151581526020015b60405180910390f35b3480156200026357600080fd5b506200026e620006ef565b6040516200024d919062001c35565b3480156200028a57600080fd5b50620002416200029c36600462001c80565b62000789565b348015620002af57600080fd5b506002545b6040519081526020016200024d565b348015620002d057600080fd5b50620002e8620002e236600462001caf565b620007a3565b005b348015620002f757600080fd5b50620002416200030936600462001cc9565b620007f1565b3480156200031c57600080fd5b50620002b46200032e36600462001caf565b60009081526006602052604090206001015490565b3480156200035057600080fd5b50620002e86200036236600462001d0f565b62000819565b3480156200037557600080fd5b506009546200038a906001600160a01b031681565b6040516001600160a01b0390911681526020016200024d565b348015620003b057600080fd5b50604051600981526020016200024d565b348015620003ce57600080fd5b50620002e8620003e036600462001d0f565b62000842565b348015620003f357600080fd5b50620002416200040536600462001c80565b620008c8565b3480156200041857600080fd5b50620002e86200042a36600462001caf565b620008f0565b3480156200043d57600080fd5b50620002b4600d5481565b3480156200045557600080fd5b506008546200038a906001600160a01b031681565b3480156200047757600080fd5b50620002b4600a5481565b3480156200048f57600080fd5b50620002e8620004a136600462001d42565b62000911565b348015620004b457600080fd5b50620002b4620004c636600462001d75565b6001600160a01b031660009081526020819052604090205490565b348015620004ee57600080fd5b50620002e862000b77565b3480156200050657600080fd5b50620002e86200051836600462001caf565b62000b8f565b3480156200052b57600080fd5b50600f546200038a906001600160a01b031681565b3480156200054d57600080fd5b506005546001600160a01b03166200038a565b3480156200056d57600080fd5b50620002416200057f36600462001d0f565b62000bb0565b3480156200059257600080fd5b506200026e62000bdb565b348015620005aa57600080fd5b50620002b4600081565b348015620005c157600080fd5b5062000241620005d336600462001c80565b62000bec565b348015620005e657600080fd5b5062000241620005f836600462001c80565b62000c6d565b3480156200060b57600080fd5b50620002e86200061d36600462001d0f565b62000c7d565b3480156200063057600080fd5b50620002e86200064236600462001d75565b62000ca6565b3480156200065557600080fd5b50620002b46200066736600462001d42565b62000da8565b3480156200067a57600080fd5b50620002e86200068c36600462001d95565b62000dd3565b3480156200069f57600080fd5b50620002e8620006b136600462001d75565b62000eba565b60006001600160e01b03198216637965db0b60e01b1480620006e957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054620007009062001e0f565b80601f01602080910402602001604051908101604052809291908181526020018280546200072e9062001e0f565b80156200077f5780601f1062000753576101008083540402835291602001916200077f565b820191906000526020600020905b8154815290600101906020018083116200076157829003601f168201915b5050505050905090565b6000336200079981858562000f39565b5060019392505050565b600080516020620021df833981519152620007be8162001061565b604051339083156108fc029084906000818181858888f19350505050158015620007ec573d6000803e3d6000fd5b505050565b600033620008018582856200106d565b6200080e858585620010e8565b506001949350505050565b600082815260066020526040902060010154620008368162001061565b620007ec838362001341565b6001600160a01b0381163314620008b85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b620008c48282620013cb565b5050565b60003362000799818585620008de838362000da8565b620008ea919062001e61565b62000f39565b600080516020620021df8339815191526200090b8162001061565b50601155565b600080516020620021df8339815191526200092c8162001061565b600980546001600160a01b038086166001600160a01b0319928316179092556007805492851692909116821790556040805163c45a015560e01b8152905184929163c45a01559160048083019260209291908290030181865afa15801562000998573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009be919062001e77565b6009546040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af115801562000a10573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a36919062001e77565b600880546001600160a01b0319166001600160a01b0392831617905560095460075460405163095ea7b360e01b81529083166004820152600019602482015291169063095ea7b3906044016020604051808303816000875af115801562000aa1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000ac7919062001e97565b5060075462000ae49030906001600160a01b031660001962000f39565b62000af3303060001962000f39565b600b5460075462000b14916001600160a01b03908116911660001962000f39565b3060405162000b239062001bd5565b6001600160a01b039091168152602001604051809103906000f08015801562000b50573d6000803e3d6000fd5b50600f80546001600160a01b0319166001600160a01b039290921691909117905550505050565b62000b8162001435565b62000b8d600062001491565b565b600080516020620021df83398151915262000baa8162001061565b50601055565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060048054620007009062001e0f565b6000338162000bfc828662000da8565b90508381101562000c5e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401620008af565b6200080e828686840362000f39565b60003362000799818585620010e8565b60008281526006602052604090206001015462000c9a8162001061565b620007ec8383620013cb565b600080516020620021df83398151915262000cc18162001061565b6040516370a0823160e01b81523060048201526001600160a01b0383169063a9059cbb90339083906370a0823190602401602060405180830381865afa15801562000d10573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d36919062001ebb565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801562000d82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007ec919062001e97565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600080516020620021df83398151915262000dee8162001061565b43600a5560005b8281101562000eb45762000e9f62000e3a600586868581811062000e1d5762000e1d62001ed5565b905060200201602081019062000e34919062001d75565b620014e3565b62000e4790600162001e61565b62000e5a90662386f26fc1000062001eeb565b62000e6d9066f8b0a10e47000062001e61565b85858481811062000e825762000e8262001ed5565b905060200201602081019062000e99919062001d75565b6200154b565b8062000eab8162001f05565b91505062000df5565b50505050565b62000ec462001435565b6001600160a01b03811662000f2b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620008af565b62000f368162001491565b50565b6001600160a01b03831662000f9d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401620008af565b6001600160a01b038216620010005760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620008af565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b62000f368133620016eb565b60006200107b848462000da8565b9050600019811462000eb45781811015620010d95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401620008af565b62000eb4848484840362000f39565b600081116200112d5760405162461bcd60e51b815260206004820152601060248201526f0616d6f756e74206d75737420677420360841b6044820152606401620008af565b6008546001600160a01b038481169116148015906200115a57506008546001600160a01b03838116911614155b156200116d57620007ec8383836200174f565b6008546001600160a01b039081169084160362001253576000600a5411620011c35760405162461bcd60e51b81526020600482015260086024820152673737ba1037b832b760c11b6044820152606401620008af565b620011f38330620011ed6064620011e6601154876200175c90919063ffffffff16565b906200176a565b62001778565b620012106064620011e6601154846200175c90919063ffffffff16565b600d600082825462001223919062001e61565b92505081905550620007ec8383620011ed6064620011e660115460646200124b919062001f21565b87906200175c565b6008546001600160a01b0390811690831603620007ec576001600160a01b0383166000908152600e602052604090205460ff16156200129957620007ec83838362001778565b620012bc8330620011ed6064620011e6601054876200175c90919063ffffffff16565b620012d96064620011e6601054846200175c90919063ffffffff16565b600d6000828254620012ec919062001e61565b9091555050600d5462001318906200130690839062001e61565b600c546001600160a01b031662001923565b6000600d81905550620007ec8383620011ed6064620011e660105460646200124b919062001f21565b6200134d828262000bb0565b620008c45760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620013873390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b620013d7828262000bb0565b15620008c45760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6005546001600160a01b0316331462000b8d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620008af565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000824244846040516020016200151f93929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b6040516020818303038152906040528051906020012060001c62001544919062001f4d565b9392505050565b6012805460ff19166001179055604080516002808252606082018352600092602083019080368337505060095482519293506001600160a01b0316918391506000906200159c576200159c62001ed5565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110620015d357620015d362001ed5565b6001600160a01b0392831660209182029290920101526009546040516370a0823160e01b815230600482015260009291909116906370a0823190602401602060405180830381865afa1580156200162e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001654919062001ebb565b90508360000362001663578093505b808411620016db57600754604051635c11d79560e01b81526001600160a01b0390911690635c11d79590620016a690879060009087908990429060040162001f7a565b600060405180830381600087803b158015620016c157600080fd5b505af1158015620016d6573d6000803e3d6000fd5b505050505b50506012805460ff191690555050565b620016f7828262000bb0565b620008c457620017078162001a08565b6200171483602062001a1b565b6040516020016200172792919062001fed565b60408051601f198184030181529082905262461bcd60e51b8252620008af9160040162001c35565b620007ec83838362001778565b600062001544828462001eeb565b600062001544828462002066565b6001600160a01b038316620017de5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401620008af565b6001600160a01b038216620018425760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401620008af565b6001600160a01b03831660009081526020819052604090205481811015620018bc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401620008af565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a362000eb4565b6012805460ff1916600117905530600090815260208181526040808320548151600280825260608201845291949390929083019080368337019050509050838210156200196e578193505b8315620016db5730816000815181106200198c576200198c62001ed5565b6001600160a01b039283166020918202929092010152600954825191169082906001908110620019c057620019c062001ed5565b6001600160a01b039283166020918202929092010152600754604051635c11d79560e01b8152911690635c11d79590620016a690879060009086908990429060040162001f7a565b6060620006e96001600160a01b03831660145b6060600062001a2c83600262001eeb565b62001a3990600262001e61565b67ffffffffffffffff81111562001a545762001a5462001f64565b6040519080825280601f01601f19166020018201604052801562001a7f576020820181803683370190505b509050600360fc1b8160008151811062001a9d5762001a9d62001ed5565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062001acf5762001acf62001ed5565b60200101906001600160f81b031916908160001a905350600062001af584600262001eeb565b62001b0290600162001e61565b90505b600181111562001b84576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062001b3a5762001b3a62001ed5565b1a60f81b82828151811062001b535762001b5362001ed5565b60200101906001600160f81b031916908160001a90535060049490941c9362001b7c816200207d565b905062001b05565b508315620015445760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620008af565b610147806200209883390190565b60006020828403121562001bf657600080fd5b81356001600160e01b0319811681146200154457600080fd5b60005b8381101562001c2c57818101518382015260200162001c12565b50506000910152565b602081526000825180602084015262001c5681604085016020870162001c0f565b601f01601f19169190910160400192915050565b6001600160a01b038116811462000f3657600080fd5b6000806040838503121562001c9457600080fd5b823562001ca18162001c6a565b946020939093013593505050565b60006020828403121562001cc257600080fd5b5035919050565b60008060006060848603121562001cdf57600080fd5b833562001cec8162001c6a565b9250602084013562001cfe8162001c6a565b929592945050506040919091013590565b6000806040838503121562001d2357600080fd5b82359150602083013562001d378162001c6a565b809150509250929050565b6000806040838503121562001d5657600080fd5b823562001d638162001c6a565b9150602083013562001d378162001c6a565b60006020828403121562001d8857600080fd5b8135620015448162001c6a565b6000806020838503121562001da957600080fd5b823567ffffffffffffffff8082111562001dc257600080fd5b818501915085601f83011262001dd757600080fd5b81358181111562001de757600080fd5b8660208260051b850101111562001dfd57600080fd5b60209290920196919550909350505050565b600181811c9082168062001e2457607f821691505b60208210810362001e4557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115620006e957620006e962001e4b565b60006020828403121562001e8a57600080fd5b8151620015448162001c6a565b60006020828403121562001eaa57600080fd5b815180151581146200154457600080fd5b60006020828403121562001ece57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417620006e957620006e962001e4b565b60006001820162001f1a5762001f1a62001e4b565b5060010190565b81810381811115620006e957620006e962001e4b565b634e487b7160e01b600052601260045260246000fd5b60008262001f5f5762001f5f62001f37565b500690565b634e487b7160e01b600052604160045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101562001fcc5784516001600160a01b03168352938301939183019160010162001fa5565b50506001600160a01b03969096166060850152505050608001529392505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516200202781601785016020880162001c0f565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200205a81602884016020880162001c0f565b01602801949350505050565b60008262002078576200207862001f37565b500490565b6000816200208f576200208f62001e4b565b50600019019056fe608060405234801561001057600080fd5b5060405161014738038061014783398101604081905261002f916100a8565b60405163095ea7b360e01b815233600482015260001960248201526001600160a01b0382169063095ea7b3906044016020604051808303816000875af115801561007d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a191906100d8565b50506100fa565b6000602082840312156100ba57600080fd5b81516001600160a01b03811681146100d157600080fd5b9392505050565b6000602082840312156100ea57600080fd5b815180151581146100d157600080fd5b603f806101086000396000f3fe6080604052600080fdfea264697066735822122037d9321c6b401b899b67b67ff570f528a19186d942b29f4928e58740c7aae59364736f6c63430008110033241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08a26469706673582212203448a7f90dfb9a51444fb8b45d6eaad9d9c7c8ea078b7cc9677c0227fc0ae30264736f6c63430008110033241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08
Deployed Bytecode
0x6080604052600436106200020f5760003560e01c80636f6579a31162000117578063a217fddf11620000a1578063d9927448116200006c578063d99274481462000623578063dd62ed3e1462000648578063efe56cb1146200066d578063f2fde38b146200069257600080fd5b8063a217fddf146200059d578063a457c2d714620005b4578063a9059cbb14620005d9578063d547741f14620005fe57600080fd5b80638718b24f11620000e25780638718b24f146200051e5780638da5cb5b146200054057806391d14854146200056057806395d89b41146200058557600080fd5b80636f6579a3146200048257806370a0823114620004a7578063715018a614620004e15780637ce000a614620004f957600080fd5b80632f48ab7d11620001995780633da14c0a11620001645780633da14c0a146200040b5780633f936ff5146200043057806349bd5a5e1462000448578063553193ca146200046a57600080fd5b80632f48ab7d1462000368578063313ce56714620003a357806336568abe14620003c15780633950935114620003e657600080fd5b80631c6a0c4c11620001da5780631c6a0c4c14620002c357806323b872dd14620002ea578063248a9ca3146200030f5780632f2ff15d146200034357600080fd5b806301ffc9a7146200021c57806306fdde031462000256578063095ea7b3146200027d57806318160ddd14620002a257600080fd5b366200021757005b600080fd5b3480156200022957600080fd5b50620002416200023b36600462001be3565b620006b7565b60405190151581526020015b60405180910390f35b3480156200026357600080fd5b506200026e620006ef565b6040516200024d919062001c35565b3480156200028a57600080fd5b50620002416200029c36600462001c80565b62000789565b348015620002af57600080fd5b506002545b6040519081526020016200024d565b348015620002d057600080fd5b50620002e8620002e236600462001caf565b620007a3565b005b348015620002f757600080fd5b50620002416200030936600462001cc9565b620007f1565b3480156200031c57600080fd5b50620002b46200032e36600462001caf565b60009081526006602052604090206001015490565b3480156200035057600080fd5b50620002e86200036236600462001d0f565b62000819565b3480156200037557600080fd5b506009546200038a906001600160a01b031681565b6040516001600160a01b0390911681526020016200024d565b348015620003b057600080fd5b50604051600981526020016200024d565b348015620003ce57600080fd5b50620002e8620003e036600462001d0f565b62000842565b348015620003f357600080fd5b50620002416200040536600462001c80565b620008c8565b3480156200041857600080fd5b50620002e86200042a36600462001caf565b620008f0565b3480156200043d57600080fd5b50620002b4600d5481565b3480156200045557600080fd5b506008546200038a906001600160a01b031681565b3480156200047757600080fd5b50620002b4600a5481565b3480156200048f57600080fd5b50620002e8620004a136600462001d42565b62000911565b348015620004b457600080fd5b50620002b4620004c636600462001d75565b6001600160a01b031660009081526020819052604090205490565b348015620004ee57600080fd5b50620002e862000b77565b3480156200050657600080fd5b50620002e86200051836600462001caf565b62000b8f565b3480156200052b57600080fd5b50600f546200038a906001600160a01b031681565b3480156200054d57600080fd5b506005546001600160a01b03166200038a565b3480156200056d57600080fd5b50620002416200057f36600462001d0f565b62000bb0565b3480156200059257600080fd5b506200026e62000bdb565b348015620005aa57600080fd5b50620002b4600081565b348015620005c157600080fd5b5062000241620005d336600462001c80565b62000bec565b348015620005e657600080fd5b5062000241620005f836600462001c80565b62000c6d565b3480156200060b57600080fd5b50620002e86200061d36600462001d0f565b62000c7d565b3480156200063057600080fd5b50620002e86200064236600462001d75565b62000ca6565b3480156200065557600080fd5b50620002b46200066736600462001d42565b62000da8565b3480156200067a57600080fd5b50620002e86200068c36600462001d95565b62000dd3565b3480156200069f57600080fd5b50620002e8620006b136600462001d75565b62000eba565b60006001600160e01b03198216637965db0b60e01b1480620006e957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054620007009062001e0f565b80601f01602080910402602001604051908101604052809291908181526020018280546200072e9062001e0f565b80156200077f5780601f1062000753576101008083540402835291602001916200077f565b820191906000526020600020905b8154815290600101906020018083116200076157829003601f168201915b5050505050905090565b6000336200079981858562000f39565b5060019392505050565b600080516020620021df833981519152620007be8162001061565b604051339083156108fc029084906000818181858888f19350505050158015620007ec573d6000803e3d6000fd5b505050565b600033620008018582856200106d565b6200080e858585620010e8565b506001949350505050565b600082815260066020526040902060010154620008368162001061565b620007ec838362001341565b6001600160a01b0381163314620008b85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b620008c48282620013cb565b5050565b60003362000799818585620008de838362000da8565b620008ea919062001e61565b62000f39565b600080516020620021df8339815191526200090b8162001061565b50601155565b600080516020620021df8339815191526200092c8162001061565b600980546001600160a01b038086166001600160a01b0319928316179092556007805492851692909116821790556040805163c45a015560e01b8152905184929163c45a01559160048083019260209291908290030181865afa15801562000998573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009be919062001e77565b6009546040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af115801562000a10573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a36919062001e77565b600880546001600160a01b0319166001600160a01b0392831617905560095460075460405163095ea7b360e01b81529083166004820152600019602482015291169063095ea7b3906044016020604051808303816000875af115801562000aa1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000ac7919062001e97565b5060075462000ae49030906001600160a01b031660001962000f39565b62000af3303060001962000f39565b600b5460075462000b14916001600160a01b03908116911660001962000f39565b3060405162000b239062001bd5565b6001600160a01b039091168152602001604051809103906000f08015801562000b50573d6000803e3d6000fd5b50600f80546001600160a01b0319166001600160a01b039290921691909117905550505050565b62000b8162001435565b62000b8d600062001491565b565b600080516020620021df83398151915262000baa8162001061565b50601055565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060048054620007009062001e0f565b6000338162000bfc828662000da8565b90508381101562000c5e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401620008af565b6200080e828686840362000f39565b60003362000799818585620010e8565b60008281526006602052604090206001015462000c9a8162001061565b620007ec8383620013cb565b600080516020620021df83398151915262000cc18162001061565b6040516370a0823160e01b81523060048201526001600160a01b0383169063a9059cbb90339083906370a0823190602401602060405180830381865afa15801562000d10573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000d36919062001ebb565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801562000d82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007ec919062001e97565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600080516020620021df83398151915262000dee8162001061565b43600a5560005b8281101562000eb45762000e9f62000e3a600586868581811062000e1d5762000e1d62001ed5565b905060200201602081019062000e34919062001d75565b620014e3565b62000e4790600162001e61565b62000e5a90662386f26fc1000062001eeb565b62000e6d9066f8b0a10e47000062001e61565b85858481811062000e825762000e8262001ed5565b905060200201602081019062000e99919062001d75565b6200154b565b8062000eab8162001f05565b91505062000df5565b50505050565b62000ec462001435565b6001600160a01b03811662000f2b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620008af565b62000f368162001491565b50565b6001600160a01b03831662000f9d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401620008af565b6001600160a01b038216620010005760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620008af565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b62000f368133620016eb565b60006200107b848462000da8565b9050600019811462000eb45781811015620010d95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401620008af565b62000eb4848484840362000f39565b600081116200112d5760405162461bcd60e51b815260206004820152601060248201526f0616d6f756e74206d75737420677420360841b6044820152606401620008af565b6008546001600160a01b038481169116148015906200115a57506008546001600160a01b03838116911614155b156200116d57620007ec8383836200174f565b6008546001600160a01b039081169084160362001253576000600a5411620011c35760405162461bcd60e51b81526020600482015260086024820152673737ba1037b832b760c11b6044820152606401620008af565b620011f38330620011ed6064620011e6601154876200175c90919063ffffffff16565b906200176a565b62001778565b620012106064620011e6601154846200175c90919063ffffffff16565b600d600082825462001223919062001e61565b92505081905550620007ec8383620011ed6064620011e660115460646200124b919062001f21565b87906200175c565b6008546001600160a01b0390811690831603620007ec576001600160a01b0383166000908152600e602052604090205460ff16156200129957620007ec83838362001778565b620012bc8330620011ed6064620011e6601054876200175c90919063ffffffff16565b620012d96064620011e6601054846200175c90919063ffffffff16565b600d6000828254620012ec919062001e61565b9091555050600d5462001318906200130690839062001e61565b600c546001600160a01b031662001923565b6000600d81905550620007ec8383620011ed6064620011e660105460646200124b919062001f21565b6200134d828262000bb0565b620008c45760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620013873390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b620013d7828262000bb0565b15620008c45760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6005546001600160a01b0316331462000b8d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620008af565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000824244846040516020016200151f93929190928352602083019190915260601b6bffffffffffffffffffffffff1916604082015260540190565b6040516020818303038152906040528051906020012060001c62001544919062001f4d565b9392505050565b6012805460ff19166001179055604080516002808252606082018352600092602083019080368337505060095482519293506001600160a01b0316918391506000906200159c576200159c62001ed5565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110620015d357620015d362001ed5565b6001600160a01b0392831660209182029290920101526009546040516370a0823160e01b815230600482015260009291909116906370a0823190602401602060405180830381865afa1580156200162e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001654919062001ebb565b90508360000362001663578093505b808411620016db57600754604051635c11d79560e01b81526001600160a01b0390911690635c11d79590620016a690879060009087908990429060040162001f7a565b600060405180830381600087803b158015620016c157600080fd5b505af1158015620016d6573d6000803e3d6000fd5b505050505b50506012805460ff191690555050565b620016f7828262000bb0565b620008c457620017078162001a08565b6200171483602062001a1b565b6040516020016200172792919062001fed565b60408051601f198184030181529082905262461bcd60e51b8252620008af9160040162001c35565b620007ec83838362001778565b600062001544828462001eeb565b600062001544828462002066565b6001600160a01b038316620017de5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401620008af565b6001600160a01b038216620018425760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401620008af565b6001600160a01b03831660009081526020819052604090205481811015620018bc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401620008af565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a362000eb4565b6012805460ff1916600117905530600090815260208181526040808320548151600280825260608201845291949390929083019080368337019050509050838210156200196e578193505b8315620016db5730816000815181106200198c576200198c62001ed5565b6001600160a01b039283166020918202929092010152600954825191169082906001908110620019c057620019c062001ed5565b6001600160a01b039283166020918202929092010152600754604051635c11d79560e01b8152911690635c11d79590620016a690879060009086908990429060040162001f7a565b6060620006e96001600160a01b03831660145b6060600062001a2c83600262001eeb565b62001a3990600262001e61565b67ffffffffffffffff81111562001a545762001a5462001f64565b6040519080825280601f01601f19166020018201604052801562001a7f576020820181803683370190505b509050600360fc1b8160008151811062001a9d5762001a9d62001ed5565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062001acf5762001acf62001ed5565b60200101906001600160f81b031916908160001a905350600062001af584600262001eeb565b62001b0290600162001e61565b90505b600181111562001b84576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062001b3a5762001b3a62001ed5565b1a60f81b82828151811062001b535762001b5362001ed5565b60200101906001600160f81b031916908160001a90535060049490941c9362001b7c816200207d565b905062001b05565b508315620015445760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620008af565b610147806200209883390190565b60006020828403121562001bf657600080fd5b81356001600160e01b0319811681146200154457600080fd5b60005b8381101562001c2c57818101518382015260200162001c12565b50506000910152565b602081526000825180602084015262001c5681604085016020870162001c0f565b601f01601f19169190910160400192915050565b6001600160a01b038116811462000f3657600080fd5b6000806040838503121562001c9457600080fd5b823562001ca18162001c6a565b946020939093013593505050565b60006020828403121562001cc257600080fd5b5035919050565b60008060006060848603121562001cdf57600080fd5b833562001cec8162001c6a565b9250602084013562001cfe8162001c6a565b929592945050506040919091013590565b6000806040838503121562001d2357600080fd5b82359150602083013562001d378162001c6a565b809150509250929050565b6000806040838503121562001d5657600080fd5b823562001d638162001c6a565b9150602083013562001d378162001c6a565b60006020828403121562001d8857600080fd5b8135620015448162001c6a565b6000806020838503121562001da957600080fd5b823567ffffffffffffffff8082111562001dc257600080fd5b818501915085601f83011262001dd757600080fd5b81358181111562001de757600080fd5b8660208260051b850101111562001dfd57600080fd5b60209290920196919550909350505050565b600181811c9082168062001e2457607f821691505b60208210810362001e4557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115620006e957620006e962001e4b565b60006020828403121562001e8a57600080fd5b8151620015448162001c6a565b60006020828403121562001eaa57600080fd5b815180151581146200154457600080fd5b60006020828403121562001ece57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b8082028115828204841417620006e957620006e962001e4b565b60006001820162001f1a5762001f1a62001e4b565b5060010190565b81810381811115620006e957620006e962001e4b565b634e487b7160e01b600052601260045260246000fd5b60008262001f5f5762001f5f62001f37565b500690565b634e487b7160e01b600052604160045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101562001fcc5784516001600160a01b03168352938301939183019160010162001fa5565b50506001600160a01b03969096166060850152505050608001529392505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516200202781601785016020880162001c0f565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200205a81602884016020880162001c0f565b01602801949350505050565b60008262002078576200207862001f37565b500490565b6000816200208f576200208f62001e4b565b50600019019056fe608060405234801561001057600080fd5b5060405161014738038061014783398101604081905261002f916100a8565b60405163095ea7b360e01b815233600482015260001960248201526001600160a01b0382169063095ea7b3906044016020604051808303816000875af115801561007d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a191906100d8565b50506100fa565b6000602082840312156100ba57600080fd5b81516001600160a01b03811681146100d157600080fd5b9392505050565b6000602082840312156100ea57600080fd5b815180151581146100d157600080fd5b603f806101086000396000f3fe6080604052600080fdfea264697066735822122037d9321c6b401b899b67b67ff570f528a19186d942b29f4928e58740c7aae59364736f6c63430008110033241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08a26469706673582212203448a7f90dfb9a51444fb8b45d6eaad9d9c7c8ea078b7cc9677c0227fc0ae30264736f6c63430008110033
Deployed Bytecode Sourcemap
61562:6272:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36849:204;;;;;;;;;;-1:-1:-1;36849:204:0;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;36849:204:0;;;;;;;;50392:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;52752:201::-;;;;;;;;;;-1:-1:-1;52752:201:0;;;;;:::i;:::-;;:::i;51521:108::-;;;;;;;;;;-1:-1:-1;51609:12:0;;51521:108;;;1755:25:1;;;1743:2;1728:18;51521:108:0;1609:177:1;67432:122:0;;;;;;;;;;-1:-1:-1;67432:122:0;;;;;:::i;:::-;;:::i;:::-;;53533:261;;;;;;;;;;-1:-1:-1;53533:261:0;;;;;:::i;:::-;;:::i;38672:131::-;;;;;;;;;;-1:-1:-1;38672:131:0;;;;;:::i;:::-;38746:7;38773:12;;;:6;:12;;;;;:22;;;;38672:131;39113:147;;;;;;;;;;-1:-1:-1;39113:147:0;;;;;:::i;:::-;;:::i;61797:19::-;;;;;;;;;;-1:-1:-1;61797:19:0;;;;-1:-1:-1;;;;;61797:19:0;;;;;;-1:-1:-1;;;;;3288:32:1;;;3270:51;;3258:2;3243:18;61797:19:0;3124:203:1;63384:92:0;;;;;;;;;;-1:-1:-1;63384:92:0;;63467:1;3474:36:1;;3462:2;3447:18;63384:92:0;3332:184:1;40257:218:0;;;;;;;;;;-1:-1:-1;40257:218:0;;;;;:::i;:::-;;:::i;54203:238::-;;;;;;;;;;-1:-1:-1;54203:238:0;;;;;:::i;:::-;;:::i;67562:106::-;;;;;;;;;;-1:-1:-1;67562:106:0;;;;;:::i;:::-;;:::i;61903:24::-;;;;;;;;;;;;;;;;61762:28;;;;;;;;;;-1:-1:-1;61762:28:0;;;;-1:-1:-1;;;;;61762:28:0;;;61823:30;;;;;;;;;;;;;;;;62630:748;;;;;;;;;;-1:-1:-1;62630:748:0;;;;;:::i;:::-;;:::i;51692:127::-;;;;;;;;;;-1:-1:-1;51692:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;51793:18:0;51766:7;51793:18;;;;;;;;;;;;51692:127;44267:103;;;;;;;;;;;;;:::i;67676:110::-;;;;;;;;;;-1:-1:-1;67676:110:0;;;;;:::i;:::-;;:::i;61983:41::-;;;;;;;;;;-1:-1:-1;61983:41:0;;;;-1:-1:-1;;;;;61983:41:0;;;43626:87;;;;;;;;;;-1:-1:-1;43699:6:0;;-1:-1:-1;;;;;43699:6:0;43626:87;;37145:147;;;;;;;;;;-1:-1:-1;37145:147:0;;;;;:::i;:::-;;:::i;50611:104::-;;;;;;;;;;;;;:::i;36250:49::-;;;;;;;;;;-1:-1:-1;36250:49:0;36295:4;36250:49;;54944:436;;;;;;;;;;-1:-1:-1;54944:436:0;;;;;:::i;:::-;;:::i;52025:193::-;;;;;;;;;;-1:-1:-1;52025:193:0;;;;;:::i;:::-;;:::i;39553:149::-;;;;;;;;;;-1:-1:-1;39553:149:0;;;;;:::i;:::-;;:::i;67259:161::-;;;;;;;;;;-1:-1:-1;67259:161:0;;;;;:::i;:::-;;:::i;52281:151::-;;;;;;;;;;-1:-1:-1;52281:151:0;;;;;:::i;:::-;;:::i;66835:230::-;;;;;;;;;;-1:-1:-1;66835:230:0;;;;;:::i;:::-;;:::i;44525:201::-;;;;;;;;;;-1:-1:-1;44525:201:0;;;;;:::i;:::-;;:::i;36849:204::-;36934:4;-1:-1:-1;;;;;;36958:47:0;;-1:-1:-1;;;36958:47:0;;:87;;-1:-1:-1;;;;;;;;;;6790:40:0;;;37009:36;36951:94;36849:204;-1:-1:-1;;36849:204:0:o;50392:100::-;50446:13;50479:5;50472:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50392:100;:::o;52752:201::-;52835:4;34154:10;52891:32;34154:10;52907:7;52916:6;52891:8;:32::i;:::-;-1:-1:-1;52941:4:0;;52752:201;-1:-1:-1;;;52752:201:0:o;67432:122::-;-1:-1:-1;;;;;;;;;;;36741:16:0;36752:4;36741:10;:16::i;:::-;67510:36:::1;::::0;67518:10:::1;::::0;67510:36;::::1;;;::::0;67539:6;;67510:36:::1;::::0;;;67539:6;67518:10;67510:36;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;67432:122:::0;;:::o;53533:261::-;53630:4;34154:10;53688:38;53704:4;34154:10;53719:6;53688:15;:38::i;:::-;53737:27;53747:4;53753:2;53757:6;53737:9;:27::i;:::-;-1:-1:-1;53782:4:0;;53533:261;-1:-1:-1;;;;53533:261:0:o;39113:147::-;38746:7;38773:12;;;:6;:12;;;;;:22;;;36741:16;36752:4;36741:10;:16::i;:::-;39227:25:::1;39238:4;39244:7;39227:10;:25::i;40257:218::-:0;-1:-1:-1;;;;;40353:23:0;;34154:10;40353:23;40345:83;;;;-1:-1:-1;;;40345:83:0;;5606:2:1;40345:83:0;;;5588:21:1;5645:2;5625:18;;;5618:30;5684:34;5664:18;;;5657:62;-1:-1:-1;;;5735:18:1;;;5728:45;5790:19;;40345:83:0;;;;;;;;;40441:26;40453:4;40459:7;40441:11;:26::i;:::-;40257:218;;:::o;54203:238::-;54291:4;34154:10;54347:64;34154:10;54363:7;54400:10;54372:25;34154:10;54363:7;54372:9;:25::i;:::-;:38;;;;:::i;:::-;54347:8;:64::i;67562:106::-;-1:-1:-1;;;;;;;;;;;36741:16:0;36752:4;36741:10;:16::i;:::-;-1:-1:-1;67641:6:0::1;:19:::0;67562:106::o;62630:748::-;-1:-1:-1;;;;;;;;;;;36741:16:0;36752:4;36741:10;:16::i;:::-;62719:4:::1;:11:::0;;-1:-1:-1;;;;;62719:11:0;;::::1;-1:-1:-1::0;;;;;;62719:11:0;;::::1;;::::0;;;62881:15:::1;:35:::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;62956:25:::1;::::0;;-1:-1:-1;;;62956:25:0;;;;62810:5;;62881:35;62956:23:::1;::::0;:25:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;62881:35;62956:25:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63009:4;::::0;62943:71:::1;::::0;-1:-1:-1;;;62943:71:0;;63002:4:::1;62943:71;::::0;::::1;6550:34:1::0;-1:-1:-1;;;;;63009:4:0;;::::1;6600:18:1::0;;;6593:43;62943:50:0;::::1;::::0;::::1;::::0;6485:18:1;;62943:71:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62927:13;:87:::0;;-1:-1:-1;;;;;;62927:87:0::1;-1:-1:-1::0;;;;;62927:87:0;;::::1;;::::0;;63031:4:::1;::::0;63053:15:::1;::::0;63025:64:::1;::::0;-1:-1:-1;;;63025:64:0;;63053:15;;::::1;63025:64;::::0;::::1;6821:51:1::0;-1:-1:-1;;6888:18:1;;;6881:34;63031:4:0;::::1;::::0;63025:19:::1;::::0;6794:18:1;;63025:64:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;63132:15:0::1;::::0;63100:67:::1;::::0;63117:4:::1;::::0;-1:-1:-1;;;;;63132:15:0::1;-1:-1:-1::0;;63100:8:0::1;:67::i;:::-;63178:56;63195:4;63210;-1:-1:-1::0;;63178:8:0::1;:56::i;:::-;63254:5;::::0;63269:15:::1;::::0;63245:59:::1;::::0;-1:-1:-1;;;;;63254:5:0;;::::1;::::0;63269:15:::1;-1:-1:-1::0;;63245:8:0::1;:59::i;:::-;63364:4;63335:35;;;;;:::i;:::-;-1:-1:-1::0;;;;;3288:32:1;;;3270:51;;3258:2;3243:18;63335:35:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;63315:17:0::1;:55:::0;;-1:-1:-1;;;;;;63315:55:0::1;-1:-1:-1::0;;;;;63315:55:0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;;62630:748:0:o;44267:103::-;43512:13;:11;:13::i;:::-;44332:30:::1;44359:1;44332:18;:30::i;:::-;44267:103::o:0;67676:110::-;-1:-1:-1;;;;;;;;;;;36741:16:0;36752:4;36741:10;:16::i;:::-;-1:-1:-1;67757:7:0::1;:21:::0;67676:110::o;37145:147::-;37231:4;37255:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;37255:29:0;;;;;;;;;;;;;;;37145:147::o;50611:104::-;50667:13;50700:7;50693:14;;;;;:::i;54944:436::-;55037:4;34154:10;55037:4;55120:25;34154:10;55137:7;55120:9;:25::i;:::-;55093:52;;55184:15;55164:16;:35;;55156:85;;;;-1:-1:-1;;;55156:85:0;;7410:2:1;55156:85:0;;;7392:21:1;7449:2;7429:18;;;7422:30;7488:34;7468:18;;;7461:62;-1:-1:-1;;;7539:18:1;;;7532:35;7584:19;;55156:85:0;7208:401:1;55156:85:0;55277:60;55286:5;55293:7;55321:15;55302:16;:34;55277:8;:60::i;52025:193::-;52104:4;34154:10;52160:28;34154:10;52177:2;52181:6;52160:9;:28::i;39553:149::-;38746:7;38773:12;;;:6;:12;;;;;:22;;;36741:16;36752:4;36741:10;:16::i;:::-;39668:26:::1;39680:4;39686:7;39668:11;:26::i;67259:161::-:0;-1:-1:-1;;;;;;;;;;;36741:16:0;36752:4;36741:10;:16::i;:::-;67372:39:::1;::::0;-1:-1:-1;;;67372:39:0;;67405:4:::1;67372:39;::::0;::::1;3270:51:1::0;-1:-1:-1;;;;;67337:22:0;::::1;::::0;::::1;::::0;67360:10:::1;::::0;67337:22;;67372:24:::1;::::0;3243:18:1;;67372:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;67337:75;::::0;-1:-1:-1;;;;;;67337:75:0::1;::::0;;;;;;-1:-1:-1;;;;;6839:32:1;;;67337:75:0::1;::::0;::::1;6821:51:1::0;6888:18;;;6881:34;6794:18;;67337:75:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;52281:151::-:0;-1:-1:-1;;;;;52397:18:0;;;52370:7;52397:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;52281:151::o;66835:230::-;-1:-1:-1;;;;;;;;;;;36741:16:0;36752:4;36741:10;:16::i;:::-;66933:12:::1;66915:15;:30:::0;66960:6:::1;66956:101;66969:13:::0;;::::1;66956:101;;;67001:56;67012:17;67019:1;67021:4;;67026:1;67021:7;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;67012:6;:17::i;:::-;:19;::::0;67030:1:::1;67012:19;:::i;:::-;67011:28;::::0;67033:6:::1;67011:28;:::i;:::-;:37;::::0;67040:8:::1;67011:37;:::i;:::-;67049:4;;67054:1;67049:7;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;67001:9;:56::i;:::-;66983:3:::0;::::1;::::0;::::1;:::i;:::-;;;;66956:101;;;;66835:230:::0;;;:::o;44525:201::-;43512:13;:11;:13::i;:::-;-1:-1:-1;;;;;44614:22:0;::::1;44606:73;;;::::0;-1:-1:-1;;;44606:73:0;;8450:2:1;44606:73:0::1;::::0;::::1;8432:21:1::0;8489:2;8469:18;;;8462:30;8528:34;8508:18;;;8501:62;-1:-1:-1;;;8579:18:1;;;8572:36;8625:19;;44606:73:0::1;8248:402:1::0;44606:73:0::1;44690:28;44709:8;44690:18;:28::i;:::-;44525:201:::0;:::o;58937:346::-;-1:-1:-1;;;;;59039:19:0;;59031:68;;;;-1:-1:-1;;;59031:68:0;;8857:2:1;59031:68:0;;;8839:21:1;8896:2;8876:18;;;8869:30;8935:34;8915:18;;;8908:62;-1:-1:-1;;;8986:18:1;;;8979:34;9030:19;;59031:68:0;8655:400:1;59031:68:0;-1:-1:-1;;;;;59118:21:0;;59110:68;;;;-1:-1:-1;;;59110:68:0;;9262:2:1;59110:68:0;;;9244:21:1;9301:2;9281:18;;;9274:30;9340:34;9320:18;;;9313:62;-1:-1:-1;;;9391:18:1;;;9384:32;9433:19;;59110:68:0;9060:398:1;59110:68:0;-1:-1:-1;;;;;59191:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;59243:32;;1755:25:1;;;59243:32:0;;1728:18:1;59243:32:0;;;;;;;58937:346;;;:::o;37596:105::-;37663:30;37674:4;34154:10;37663;:30::i;59574:419::-;59675:24;59702:25;59712:5;59719:7;59702:9;:25::i;:::-;59675:52;;-1:-1:-1;;59742:16:0;:37;59738:248;;59824:6;59804:16;:26;;59796:68;;;;-1:-1:-1;;;59796:68:0;;9665:2:1;59796:68:0;;;9647:21:1;9704:2;9684:18;;;9677:30;9743:31;9723:18;;;9716:59;9792:18;;59796:68:0;9463:353:1;59796:68:0;59908:51;59917:5;59924:7;59952:6;59933:16;:25;59908:8;:51::i;63487:1128::-;63628:1;63619:6;:10;63611:39;;;;-1:-1:-1;;;63611:39:0;;10023:2:1;63611:39:0;;;10005:21:1;10062:2;10042:18;;;10035:30;-1:-1:-1;;;10081:18:1;;;10074:46;10137:18;;63611:39:0;9821:340:1;63611:39:0;63682:13;;-1:-1:-1;;;;;63674:21:0;;;63682:13;;63674:21;;;;:44;;-1:-1:-1;63705:13:0;;-1:-1:-1;;;;;63699:19:0;;;63705:13;;63699:19;;63674:44;63671:127;;;63735:30;63748:4;63754:2;63758:6;63735:12;:30::i;63671:127::-;63819:13;;-1:-1:-1;;;;;63819:13:0;;;63811:21;;;;63808:320;;63873:1;63857:15;;:17;63849:38;;;;-1:-1:-1;;;63849:38:0;;10368:2:1;63849:38:0;;;10350:21:1;10407:1;10387:18;;;10380:29;-1:-1:-1;;;10425:18:1;;;10418:38;10473:18;;63849:38:0;10166:331:1;63849:38:0;63902:65;63918:4;63932;63939:27;63962:3;63939:18;63950:6;;63939;:10;;:18;;;;:::i;:::-;:22;;:27::i;:::-;63902:15;:65::i;:::-;63993:27;64016:3;63993:18;64004:6;;63993;:10;;:18;;;;:::i;:27::-;63982:9;;:38;;;;;;;:::i;:::-;;;;;;;;64035:60;64051:4;64057:2;64061:33;64090:3;64061:24;64078:6;;64072:3;:12;;;;:::i;:::-;64061:6;;:10;:24::i;63808:320::-;64147:13;;-1:-1:-1;;;;;64147:13:0;;;64141:19;;;;64138:470;;-1:-1:-1;;;;;64180:15:0;;;;;;:9;:15;;;;;;;;64177:112;;;64215:33;64231:4;64237:2;64241:6;64215:15;:33::i;64177:112::-;64303:66;64319:4;64333;64340:28;64364:3;64340:19;64351:7;;64340:6;:10;;:19;;;;:::i;64303:66::-;64395:28;64419:3;64395:19;64406:7;;64395:6;:10;;:19;;;;:::i;:28::-;64384:9;;:39;;;;;;;:::i;:::-;;;;-1:-1:-1;;64447:9:0;;64438:35;;64447:16;;64457:6;;64447:16;:::i;:::-;64464:8;;-1:-1:-1;;;;;64464:8:0;64438;:35::i;:::-;64498:1;64488:9;:11;;;;64514:61;64530:4;64536:2;64540:34;64570:3;64540:25;64557:7;;64551:3;:13;;;;:::i;41854:238::-;41938:22;41946:4;41952:7;41938;:22::i;:::-;41933:152;;41977:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;41977:29:0;;;;;;;;;:36;;-1:-1:-1;;41977:36:0;42009:4;41977:36;;;42060:12;34154:10;;34074:98;42060:12;-1:-1:-1;;;;;42033:40:0;42051:7;-1:-1:-1;;;;;42033:40:0;42045:4;42033:40;;;;;;;;;;41854:238;;:::o;42272:239::-;42356:22;42364:4;42370:7;42356;:22::i;:::-;42352:152;;;42427:5;42395:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;42395:29:0;;;;;;;;;;:37;;-1:-1:-1;;42395:37:0;;;42452:40;34154:10;;42395:12;;42452:40;;42427:5;42452:40;42272:239;;:::o;43791:132::-;43699:6;;-1:-1:-1;;;;;43699:6:0;34154:10;43855:23;43847:68;;;;-1:-1:-1;;;43847:68:0;;10837:2:1;43847:68:0;;;10819:21:1;;;10856:18;;;10849:30;10915:34;10895:18;;;10888:62;10967:18;;43847:68:0;10635:356:1;44886:191:0;44979:6;;;-1:-1:-1;;;;;44996:17:0;;;-1:-1:-1;;;;;;44996:17:0;;;;;;;45029:40;;44979:6;;;44996:17;44979:6;;45029:40;;44960:16;;45029:40;44949:128;44886:191;:::o;67071:180::-;67135:4;67237:6;67191:15;67207:16;67226:5;67174:58;;;;;;;;;11181:19:1;;;11225:2;11216:12;;11209:28;;;;11275:2;11271:15;-1:-1:-1;;11267:53:1;11262:2;11253:12;;11246:75;11346:2;11337:12;;10996:359;67174:58:0;;;;;;;;;;;;;67164:69;;;;;;67159:75;;:84;;;;:::i;:::-;67152:91;67071:180;-1:-1:-1;;;67071:180:0:o;64927:611::-;64863:6;:13;;-1:-1:-1;;64863:13:0;64872:4;64863:13;;;65033:16:::1;::::0;;65047:1:::1;65033:16:::0;;;;;::::1;::::0;;-1:-1:-1;;65033:16:0::1;::::0;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;65078:4:0::1;::::0;65060:7;;;;-1:-1:-1;;;;;;65078:4:0::1;::::0;65060:7;;-1:-1:-1;65078:4:0::1;::::0;65060:7:::1;;;;:::i;:::-;;;;;;:23;-1:-1:-1::0;;;;;65060:23:0::1;;;-1:-1:-1::0;;;;;65060:23:0::1;;;::::0;::::1;65112:4;65094;65099:1;65094:7;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;65094:23:0;;::::1;:7;::::0;;::::1;::::0;;;;;:23;65153:4:::1;::::0;65146:37:::1;::::0;-1:-1:-1;;;65146:37:0;;65177:4:::1;65146:37;::::0;::::1;3270:51:1::0;65128:15:0::1;::::0;65153:4;;;::::1;::::0;65146:22:::1;::::0;3243:18:1;;65146:37:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65128:55;;65197:11;65210:1;65197:14:::0;65194:39:::1;;65226:7;65212:21;;65194:39;65288:7;65273:11;:22;65270:260;;65306:15;::::0;:224:::1;::::0;-1:-1:-1;;;65306:224:0;;-1:-1:-1;;;;;65306:15:0;;::::1;::::0;:69:::1;::::0;:224:::1;::::0;65390:11;;65306:15:::1;::::0;65459:4;;65486:2;;65504:15:::1;::::0;65306:224:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;65270:260;-1:-1:-1::0;;64899:6:0;:14;;-1:-1:-1;;64899:14:0;;;-1:-1:-1;;64927:611:0:o;37991:492::-;38080:22;38088:4;38094:7;38080;:22::i;:::-;38075:401;;38268:28;38288:7;38268:19;:28::i;:::-;38369:38;38397:4;38404:2;38369:19;:38::i;:::-;38173:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;38173:257:0;;;;;;;;;;-1:-1:-1;;;38119:345:0;;;;;;;:::i;64621:178::-;64748:43;64764:6;64772:9;64783:7;64748:15;:43::i;30178:98::-;30236:7;30263:5;30267:1;30263;:5;:::i;30577:98::-;30635:7;30662:5;30666:1;30662;:5;:::i;55850:806::-;-1:-1:-1;;;;;55947:18:0;;55939:68;;;;-1:-1:-1;;;55939:68:0;;13870:2:1;55939:68:0;;;13852:21:1;13909:2;13889:18;;;13882:30;13948:34;13928:18;;;13921:62;-1:-1:-1;;;13999:18:1;;;13992:35;14044:19;;55939:68:0;13668:401:1;55939:68:0;-1:-1:-1;;;;;56026:16:0;;56018:64;;;;-1:-1:-1;;;56018:64:0;;14276:2:1;56018:64:0;;;14258:21:1;14315:2;14295:18;;;14288:30;14354:34;14334:18;;;14327:62;-1:-1:-1;;;14405:18:1;;;14398:33;14448:19;;56018:64:0;14074:399:1;56018:64:0;-1:-1:-1;;;;;56168:15:0;;56146:19;56168:15;;;;;;;;;;;56202:21;;;;56194:72;;;;-1:-1:-1;;;56194:72:0;;14680:2:1;56194:72:0;;;14662:21:1;14719:2;14699:18;;;14692:30;14758:34;14738:18;;;14731:62;-1:-1:-1;;;14809:18:1;;;14802:36;14855:19;;56194:72:0;14478:402:1;56194:72:0;-1:-1:-1;;;;;56302:15:0;;;:9;:15;;;;;;;;;;;56320:20;;;56302:38;;56520:13;;;;;;;;;;:23;;;;;;56572:26;;1755:25:1;;;56520:13:0;;56572:26;;1728:18:1;56572:26:0;;;;;;;56611:37;67432:122;66363:464;64863:6;:13;;-1:-1:-1;;64863:13:0;64872:4;64863:13;;;66480:4:::1;-1:-1:-1::0;51793:18:0;;;;;;;;;;;;66521:16;;66535:1:::1;66521:16:::0;;;;;::::1;::::0;;51793:18;;-1:-1:-1;66521:16:0;;;;::::1;::::0;51793:18;66521:16:::1;::::0;::::1;;::::0;-1:-1:-1;66521:16:0::1;66497:40;;66559:11;66551:7;:19;66548:42;;;66583:7;66571:19;;66548:42;66604:13:::0;;66601:219:::1;;66651:4;66633;66638:1;66633:7;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;66633:23:0;;::::1;:7;::::0;;::::1;::::0;;;;;:23;66681:4:::1;::::0;66671:7;;66681:4;::::1;::::0;66671;;66681;;66671:7;::::1;;;;;:::i;:::-;-1:-1:-1::0;;;;;66671:14:0;;::::1;:7;::::0;;::::1;::::0;;;;;:14;66700:15:::1;::::0;:108:::1;::::0;-1:-1:-1;;;66700:108:0;;:15;::::1;::::0;:69:::1;::::0;:108:::1;::::0;66770:11;;66700:15:::1;::::0;66784:4;;66789:2;;66792:15:::1;::::0;66700:108:::1;;;:::i;23396:151::-:0;23454:13;23487:52;-1:-1:-1;;;;;23499:22:0;;21271:2;22792:447;22867:13;22893:19;22925:10;22929:6;22925:1;:10;:::i;:::-;:14;;22938:1;22925:14;:::i;:::-;22915:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22915:25:0;;22893:47;;-1:-1:-1;;;22951:6:0;22958:1;22951:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;22951:15:0;;;;;;;;;-1:-1:-1;;;22977:6:0;22984:1;22977:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;22977:15:0;;;;;;;;-1:-1:-1;23008:9:0;23020:10;23024:6;23020:1;:10;:::i;:::-;:14;;23033:1;23020:14;:::i;:::-;23008:26;;23003:131;23040:1;23036;:5;23003:131;;;-1:-1:-1;;;23084:5:0;23092:3;23084:11;23075:21;;;;;;;:::i;:::-;;;;23063:6;23070:1;23063:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;23063:33:0;;;;;;;;-1:-1:-1;23121:1:0;23111:11;;;;;23043:3;;;:::i;:::-;;;23003:131;;;-1:-1:-1;23152:10:0;;23144:55;;;;-1:-1:-1;;;23144:55:0;;15228:2:1;23144:55:0;;;15210:21:1;;;15247:18;;;15240:30;15306:34;15286:18;;;15279:62;15358:18;;23144:55:0;15026:356:1;-1:-1:-1;;;;;;;;:::o;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;497:250;582:1;592:113;606:6;603:1;600:13;592:113;;;682:11;;;676:18;663:11;;;656:39;628:2;621:10;592:113;;;-1:-1:-1;;739:1:1;721:16;;714:27;497:250::o;752:396::-;901:2;890:9;883:21;864:4;933:6;927:13;976:6;971:2;960:9;956:18;949:34;992:79;1064:6;1059:2;1048:9;1044:18;1039:2;1031:6;1027:15;992:79;:::i;:::-;1132:2;1111:15;-1:-1:-1;;1107:29:1;1092:45;;;;1139:2;1088:54;;752:396;-1:-1:-1;;752:396:1:o;1153:131::-;-1:-1:-1;;;;;1228:31:1;;1218:42;;1208:70;;1274:1;1271;1264:12;1289:315;1357:6;1365;1418:2;1406:9;1397:7;1393:23;1389:32;1386:52;;;1434:1;1431;1424:12;1386:52;1473:9;1460:23;1492:31;1517:5;1492:31;:::i;:::-;1542:5;1594:2;1579:18;;;;1566:32;;-1:-1:-1;;;1289:315:1:o;1791:180::-;1850:6;1903:2;1891:9;1882:7;1878:23;1874:32;1871:52;;;1919:1;1916;1909:12;1871:52;-1:-1:-1;1942:23:1;;1791:180;-1:-1:-1;1791:180:1:o;1976:456::-;2053:6;2061;2069;2122:2;2110:9;2101:7;2097:23;2093:32;2090:52;;;2138:1;2135;2128:12;2090:52;2177:9;2164:23;2196:31;2221:5;2196:31;:::i;:::-;2246:5;-1:-1:-1;2303:2:1;2288:18;;2275:32;2316:33;2275:32;2316:33;:::i;:::-;1976:456;;2368:7;;-1:-1:-1;;;2422:2:1;2407:18;;;;2394:32;;1976:456::o;2804:315::-;2872:6;2880;2933:2;2921:9;2912:7;2908:23;2904:32;2901:52;;;2949:1;2946;2939:12;2901:52;2985:9;2972:23;2962:33;;3045:2;3034:9;3030:18;3017:32;3058:31;3083:5;3058:31;:::i;:::-;3108:5;3098:15;;;2804:315;;;;;:::o;3521:388::-;3589:6;3597;3650:2;3638:9;3629:7;3625:23;3621:32;3618:52;;;3666:1;3663;3656:12;3618:52;3705:9;3692:23;3724:31;3749:5;3724:31;:::i;:::-;3774:5;-1:-1:-1;3831:2:1;3816:18;;3803:32;3844:33;3803:32;3844:33;:::i;3914:247::-;3973:6;4026:2;4014:9;4005:7;4001:23;3997:32;3994:52;;;4042:1;4039;4032:12;3994:52;4081:9;4068:23;4100:31;4125:5;4100:31;:::i;4399:615::-;4485:6;4493;4546:2;4534:9;4525:7;4521:23;4517:32;4514:52;;;4562:1;4559;4552:12;4514:52;4602:9;4589:23;4631:18;4672:2;4664:6;4661:14;4658:34;;;4688:1;4685;4678:12;4658:34;4726:6;4715:9;4711:22;4701:32;;4771:7;4764:4;4760:2;4756:13;4752:27;4742:55;;4793:1;4790;4783:12;4742:55;4833:2;4820:16;4859:2;4851:6;4848:14;4845:34;;;4875:1;4872;4865:12;4845:34;4928:7;4923:2;4913:6;4910:1;4906:14;4902:2;4898:23;4894:32;4891:45;4888:65;;;4949:1;4946;4939:12;4888:65;4980:2;4972:11;;;;;5002:6;;-1:-1:-1;4399:615:1;;-1:-1:-1;;;;4399:615:1:o;5019:380::-;5098:1;5094:12;;;;5141;;;5162:61;;5216:4;5208:6;5204:17;5194:27;;5162:61;5269:2;5261:6;5258:14;5238:18;5235:38;5232:161;;5315:10;5310:3;5306:20;5303:1;5296:31;5350:4;5347:1;5340:15;5378:4;5375:1;5368:15;5232:161;;5019:380;;;:::o;5820:127::-;5881:10;5876:3;5872:20;5869:1;5862:31;5912:4;5909:1;5902:15;5936:4;5933:1;5926:15;5952:125;6017:9;;;6038:10;;;6035:36;;;6051:18;;:::i;6082:251::-;6152:6;6205:2;6193:9;6184:7;6180:23;6176:32;6173:52;;;6221:1;6218;6211:12;6173:52;6253:9;6247:16;6272:31;6297:5;6272:31;:::i;6926:277::-;6993:6;7046:2;7034:9;7025:7;7021:23;7017:32;7014:52;;;7062:1;7059;7052:12;7014:52;7094:9;7088:16;7147:5;7140:13;7133:21;7126:5;7123:32;7113:60;;7169:1;7166;7159:12;7614:184;7684:6;7737:2;7725:9;7716:7;7712:23;7708:32;7705:52;;;7753:1;7750;7743:12;7705:52;-1:-1:-1;7776:16:1;;7614:184;-1:-1:-1;7614:184:1:o;7803:127::-;7864:10;7859:3;7855:20;7852:1;7845:31;7895:4;7892:1;7885:15;7919:4;7916:1;7909:15;7935:168;8008:9;;;8039;;8056:15;;;8050:22;;8036:37;8026:71;;8077:18;;:::i;8108:135::-;8147:3;8168:17;;;8165:43;;8188:18;;:::i;:::-;-1:-1:-1;8235:1:1;8224:13;;8108:135::o;10502:128::-;10569:9;;;10590:11;;;10587:37;;;10604:18;;:::i;11360:127::-;11421:10;11416:3;11412:20;11409:1;11402:31;11452:4;11449:1;11442:15;11476:4;11473:1;11466:15;11492:112;11524:1;11550;11540:35;;11555:18;;:::i;:::-;-1:-1:-1;11589:9:1;;11492:112::o;11609:127::-;11670:10;11665:3;11661:20;11658:1;11651:31;11701:4;11698:1;11691:15;11725:4;11722:1;11715:15;11741:980;12003:4;12051:3;12040:9;12036:19;12082:6;12071:9;12064:25;12108:2;12146:6;12141:2;12130:9;12126:18;12119:34;12189:3;12184:2;12173:9;12169:18;12162:31;12213:6;12248;12242:13;12279:6;12271;12264:22;12317:3;12306:9;12302:19;12295:26;;12356:2;12348:6;12344:15;12330:29;;12377:1;12387:195;12401:6;12398:1;12395:13;12387:195;;;12466:13;;-1:-1:-1;;;;;12462:39:1;12450:52;;12557:15;;;;12522:12;;;;12498:1;12416:9;12387:195;;;-1:-1:-1;;;;;;;12638:32:1;;;;12633:2;12618:18;;12611:60;-1:-1:-1;;;12702:3:1;12687:19;12680:35;12599:3;11741:980;-1:-1:-1;;;11741:980:1:o;12726:812::-;13137:25;13132:3;13125:38;13107:3;13192:6;13186:13;13208:75;13276:6;13271:2;13266:3;13262:12;13255:4;13247:6;13243:17;13208:75;:::i;:::-;-1:-1:-1;;;13342:2:1;13302:16;;;13334:11;;;13327:40;13392:13;;13414:76;13392:13;13476:2;13468:11;;13461:4;13449:17;;13414:76;:::i;:::-;13510:17;13529:2;13506:26;;12726:812;-1:-1:-1;;;;12726:812:1:o;13543:120::-;13583:1;13609;13599:35;;13614:18;;:::i;:::-;-1:-1:-1;13648:9:1;;13543:120::o;14885:136::-;14924:3;14952:5;14942:39;;14961:18;;:::i;:::-;-1:-1:-1;;;14997:18:1;;14885:136::o
Swarm Source
ipfs://3448a7f90dfb9a51444fb8b45d6eaad9d9c7c8ea078b7cc9677c0227fc0ae302
Loading...
Loading
Loading...
Loading
Net Worth in USD
$139.30
Net Worth in ETH
0.070025
Token Allocations
WETH
100.00%
Multichain Portfolio | 32 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $1,990.06 | 0.07 | $139.3 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.