ERC-20
Overview
Max Total Supply
7,000 APE
Holders
28
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x3896EAC5...24780A4C1 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ApeToken
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
byzantium EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "./lib/ERC20Presaleable.sol"; import "./lib/ERC20Vestable.sol"; import "./lib/ERC20Burnable.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; // APE Token (https://ape.cash) // Presale 19200 // Initial Uniswap Liquidity 12800 // Marketing (vested) 5000 // Team & development (vested) 15000 // Liquidity Mining 48000 contract ApeToken is ERC20Burnable, ERC20Vestable, ERC20Presaleable { IUniswapV2Router02 private router; uint256 public stakingPoolDateAdd = 24 hours; address public stakingPoolPending; address public constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; event LiquidityAdded( uint256 amountToken, uint256 amountEth, uint256 liquidity ); event DeveloperAddedPendingPool(address pendingPool); event DeveloperAddedPool(address pool); constructor( address payable secondDeveloper, address[] memory stakingPools, address marketing, uint256 presaleCap, address[] memory supporters, uint256[] memory supporterRewards ) public ERC20("Ape.cash", "APE") RoleAware(msg.sender, stakingPools) ERC20Presaleable(presaleCap) { // number of tokens is vested over 3 months, see ERC20Vestable _addBeneficiary(msg.sender, 10500); _addBeneficiary(secondDeveloper, 4500); _addBeneficiary(marketing, 5000); addWhitelist(UNISWAP_ROUTER_ADDRESS); router = IUniswapV2Router02(UNISWAP_ROUTER_ADDRESS); for (uint256 index = 0; index < supporters.length; index++) { _mint(supporters[index], supporterRewards[index]); } } // developer can add staking pools. as these can mint, function is timelocked for 24 hours function addStakingPoolConfirm() public onlyDeveloper { require(now >= stakingPoolDateAdd.add(24 hours)); grantRole(STAKING_POOL_ROLE, stakingPoolPending); grantRole(WHITELIST_ROLE, stakingPoolPending); emit DeveloperAddedPool(stakingPoolPending); } function addStakingPoolInitial(address stakingPool) public onlyDeveloper { stakingPoolDateAdd = now; stakingPoolPending = stakingPool; emit DeveloperAddedPendingPool(stakingPool); } // allow contracts with role ape staking pool to mint rewards for users function mint(address to, uint256 amount) public onlyStakingPool nonReentrant { if (totalSupply() <= _maximumSupply) { _mint(to, amount); } } function listOnUniswap() public onlyDeveloper onlyBeforeUniswap { // mint 160 APE per held ETH to list on Uniswap timeListed = now; addWhitelist(uniswapEthPair); uint256 ethBalance = address(this).balance; uint256 apeBalance = ethBalance.mul(uniswapApePerEth); _mint(address(this), apeBalance); _approve(address(this), address(router), apeBalance); (uint256 amountToken, uint256 amountEth, uint256 liquidity) = router .addLiquidityETH{value: ethBalance}( address(this), apeBalance, apeBalance, ethBalance, address(0), block.timestamp + uint256(5).mul(1 minutes) ); revokeRole(WHITELIST_ROLE, uniswapEthPair); revokeRole(WHITELIST_ROLE, UNISWAP_ROUTER_ADDRESS); addWhitelistFrom(uniswapEthPair); stopPresale(); uniswapPairImpl = IUniswapV2Pair(uniswapEthPair); emit LiquidityAdded(amountToken, amountEth, liquidity); } function transfer(address recipient, uint256 amount) public override(ERC20Burnable, ERC20) returns (bool) { return ERC20Burnable.transfer(recipient, amount); } function transferFrom( address sender, address recipient, uint256 amount ) public override(ERC20Burnable, ERC20) returns (bool) { return ERC20Burnable.transferFrom(sender, recipient, amount); } function approve(address spender, uint256 amount) public virtual override(ERC20Burnable, ERC20) returns (bool) { if (spender == UNISWAP_ROUTER_ADDRESS && !isContract(uniswapEthPair)) { revert("Only the contract can provide initial Uniswap liquidity"); } return ERC20Burnable.approve(spender, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "./RoleAware.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; abstract contract ERC20Burnable is RoleAware, ERC20 { uint256 public _minimumSupply = 20000 * (10**18); uint256 public _maximumSupply = 150000 * (10**18); uint256 private constant roughDay = 60 * 60 * 24; uint256 public timeListed = 0; uint256 private toBurnFromUni; // address of giveth, an on-chain charity address public constant GIVETH_ADDRESS = 0x8f951903C9360345B4e1b536c7F5ae8f88A64e79; function _partialBurn( uint256 amount, address recipient, address sender ) internal returns (uint256) { uint256 burnAmount = calculateBurnAmount(amount, recipient, sender); if (anyWhitelisted(sender, recipient)) { return amount; } if (burnAmount > 0) { if (recipient == uniswapEthPair) { toBurnFromUni = toBurnFromUni.add(amount.mul(20).div(100)); return amount; } else { _burn(sender, burnAmount); _mint( GIVETH_ADDRESS, burnAmount.div(20) ); _mint(_developer, burnAmount.div(30)); } } return amount.sub(burnAmount); } function calculateBurnAmount( uint256 amount, address recipient, address sender ) public view returns (uint256) { uint256 burnAmount = 0; uint256 burnPercentage = 0; if (timeListed != 0) { uint256 sinceLaunch = now.add(1).sub(timeListed.add(1)); uint256 daysSinceLaunch = sinceLaunch.div(roughDay); if (daysSinceLaunch > 10) { burnPercentage = 5; } else { burnPercentage = uint256(15).sub(daysSinceLaunch); } } if (totalSupply() > _minimumSupply) { burnAmount = amount.mul(burnPercentage).div(100); uint256 availableBurn = totalSupply().sub(_minimumSupply); if (burnAmount > availableBurn) { burnAmount = availableBurn; } } return burnAmount; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { return super.transfer( recipient, _partialBurn(amount, recipient, msg.sender) ); } function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { return super.transferFrom( sender, recipient, _partialBurn(amount, recipient, sender) ); } function approve(address spender, uint256 amount) public virtual override returns (bool) { if (toBurnFromUni != 0) { uint256 toBurn = toBurnFromUni; toBurnFromUni = 0; _burn(uniswapEthPair, toBurn); _mint(GIVETH_ADDRESS, toBurn.div(100)); _mint(_developer, toBurn.div(100)); uniswapPairImpl.sync(); } return super.approve(spender, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "./RoleAware.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; abstract contract ERC20Presaleable is RoleAware, ReentrancyGuard, ERC20 { bool internal _presale = false; uint256 public presaleApePerEther = 200; uint256 public presaleApePerEtherAfterThreshhold = 180; uint256 public uniswapApePerEth = 160; uint256 public presaleEtherReceived = 0 ether; uint256 public maxPresaleEtherValue; uint256 internal _minTokenPurchaseAmount = .1 ether; uint256 internal _maxTokenPurchaseAmount = 1.5 ether; uint256 internal _presaleEtherThreshhold = 69 ether; mapping(address => bool) private _whitelisted; mapping(address => uint256) public presaleContributions; event PresalePurchased( address buyer, uint256 entitlement, uint256 weiContributed ); constructor(uint256 maxPresaleValue) public { maxPresaleEtherValue = maxPresaleValue.mul(1 ether); } modifier onlyDuringPresale() { require( _presale == true || _whitelisted[msg.sender], "The presale is not active" ); _; } modifier onlyBeforePresale() { require(_presale == false); _; } function stopPresale() public onlyDeveloper onlyDuringPresale { _presale = false; } function startPresale() public onlyBeforeUniswap onlyDeveloper { _presale = true; } function addPresaleWhitelist(address buyer) public onlyBeforeUniswap onlyDeveloper { _whitelisted[buyer] = true; } function addPresaleMultiple(address[] memory buyer) public onlyBeforeUniswap onlyDeveloper { for (uint256 index = 0; index < buyer.length; index++) { _whitelisted[buyer[index]] = true; } } function presale() public payable onlyDuringPresale nonReentrant returns (bool) { require( msg.value >= _minTokenPurchaseAmount, "Minimum purchase amount not met" ); require( presaleEtherReceived.add(msg.value) <= maxPresaleEtherValue || _whitelisted[msg.sender], "Presale maximum already achieved" ); require( presaleContributions[msg.sender].add( msg.value.mul(presaleApePerEtherAfterThreshhold) ) <= _maxTokenPurchaseAmount.mul(presaleApePerEtherAfterThreshhold), "Amount of ether sent too high" ); presaleContributions[msg.sender] = presaleContributions[msg.sender].add( msg.value.mul( presaleEtherReceived > _presaleEtherThreshhold ? presaleApePerEtherAfterThreshhold : presaleApePerEther ) ); if (!_whitelisted[msg.sender]) { presaleEtherReceived = presaleEtherReceived.add(msg.value); } emit PresalePurchased( msg.sender, presaleContributions[msg.sender], msg.value ); _developer.transfer(msg.value.mul(2).div(10)); } function _getPresaleEntitlement() internal returns (uint256) { require( presaleContributions[msg.sender] >= 0, "No presale contribution or already redeemed" ); uint256 value = presaleContributions[msg.sender]; presaleContributions[msg.sender] = 0; return value; } // presale funds only claimable after uniswap pair created to prevent malicious 3rd-party listing function claimPresale() public onlyAfterUniswap nonReentrant returns (bool) { uint256 result = _getPresaleEntitlement(); if (result > 0) { _mint(msg.sender, result); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "./RoleAware.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; abstract contract ERC20Vestable is RoleAware, ERC20 { // tokens vest 10% every 10 days. `claimFunds` can be called once every 10 days uint256 public claimFrequency = 10 days; mapping(address => uint256) public _vestingAllowances; mapping(address => uint256) public _claimAmounts; mapping(address => uint256) public _lastClaimed; function _grantFunds(address beneficiary) internal { require( _vestingAllowances[beneficiary] > 0 && _vestingAllowances[beneficiary] >= _claimAmounts[beneficiary], "Entire allowance already claimed, or no initial aloowance" ); _vestingAllowances[beneficiary] = _vestingAllowances[beneficiary].sub( _claimAmounts[beneficiary] ); _mint( beneficiary, _claimAmounts[beneficiary].mul(10**uint256(decimals())) ); } // internal function only ever called from constructor function _addBeneficiary(address beneficiary, uint256 amount) internal onlyBeforeUniswap { _vestingAllowances[beneficiary] = amount; _claimAmounts[beneficiary] = amount.div(10); _lastClaimed[beneficiary] = now; // beneficiary gets 10% of funds immediately _grantFunds(beneficiary); } function claimFunds() public { require( _lastClaimed[msg.sender] != 0 && now >= _lastClaimed[msg.sender].add(claimFrequency), "Allowance cannot be claimed more than once every 10 days" ); _lastClaimed[msg.sender] = now; _grantFunds(msg.sender); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./UniswapAware.sol"; contract RoleAware is AccessControl, UniswapAware { bytes32 public constant STAKING_POOL_ROLE = keccak256("STAKING_POOL_ROLE"); bytes32 public constant WHITELIST_ROLE = keccak256("WHITELIST_ROLE"); bytes32 public constant WHITELIST_TO_ROLE = keccak256("WHITELIST_TO_ROLE"); bytes32 public constant WHITELIST_FROM_ROLE = keccak256("WHITELIST_FROM_ROLE"); bytes32 public constant DEVELOPER_ROLE = keccak256("DEVELOPER_ROLE"); address payable public _developer; constructor(address payable developer, address[] memory stakingPools) public { _developer = developer; _setupRole(DEVELOPER_ROLE, _developer); _setupRole(DEFAULT_ADMIN_ROLE, _developer); grantRole(WHITELIST_ROLE, address(this)); // O(n) iteration allowed as stakingPools will contain very few items for (uint256 i = 0; i < stakingPools.length; i++) { grantRole(STAKING_POOL_ROLE, stakingPools[i]); grantRole(WHITELIST_ROLE, stakingPools[i]); } } modifier onlyDeveloper() { require(hasRole(DEVELOPER_ROLE, msg.sender), "Caller is not developer"); _; } // distinct from external staking pools, Ape staking pools can mint rewards for users modifier onlyStakingPool() { require( hasRole(STAKING_POOL_ROLE, msg.sender), "Caller is not a staking pool" ); _; } // needed to add new external liquidity pools - pools should not be burned by default function addWhitelist(address grantee) public onlyDeveloper { grantRole(WHITELIST_ROLE, grantee); } function addWhitelistTo(address grantee) public onlyDeveloper { grantRole(WHITELIST_TO_ROLE, grantee); } function addWhitelistFrom(address grantee) public onlyDeveloper { grantRole(WHITELIST_FROM_ROLE, grantee); } function anyWhitelisted(address sender, address recipient) internal view returns (bool) { return (hasRole(WHITELIST_ROLE, sender) || hasRole(WHITELIST_ROLE, recipient) || hasRole(WHITELIST_ROLE, msg.sender) || hasRole(WHITELIST_TO_ROLE, recipient) || hasRole(WHITELIST_FROM_ROLE, sender)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; contract UniswapAware { address public uniswapEthPair; IUniswapV2Pair public uniswapPairImpl; function isContract(address _addr) internal view returns (bool) { uint32 size; assembly { size := extcodesize(_addr) } return (size > 0); } constructor() public { uniswapEthPair = pairFor( 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, address(this) ); } function pairFor( address factory, address tokenA, address tokenB ) public pure returns (address pair) { (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); pair = address( uint256( keccak256( abi.encodePacked( hex"ff", factory, keccak256(abi.encodePacked(token0, token1)), hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" ) ) ) ); } modifier onlyAfterUniswap() { require( isContract(uniswapEthPair), "You can't perform this action until the Uniswap listing" ); _; } modifier onlyBeforeUniswap() { require( !isContract(uniswapEthPair), "You can't perform this action after the Uniswap listing" ); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "../utils/EnumerableSet.sol"; import "../utils/Address.sol"; import "../GSN/Context.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * 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: * * ``` * 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}: * * ``` * 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. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @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 {_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) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @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 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. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _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. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _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 granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { 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. * * [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}. * ==== */ 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 { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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 sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "../../GSN/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of 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 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, 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 * * - `to` 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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @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 to 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 { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
pragma solidity >=0.5.0; interface IUniswapV2Pair { 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.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "byzantium", "libraries": { "": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"secondDeveloper","type":"address"},{"internalType":"address[]","name":"stakingPools","type":"address[]"},{"internalType":"address","name":"marketing","type":"address"},{"internalType":"uint256","name":"presaleCap","type":"uint256"},{"internalType":"address[]","name":"supporters","type":"address[]"},{"internalType":"uint256[]","name":"supporterRewards","type":"uint256[]"}],"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":false,"internalType":"address","name":"pendingPool","type":"address"}],"name":"DeveloperAddedPendingPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"DeveloperAddedPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"LiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"entitlement","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"weiContributed","type":"uint256"}],"name":"PresalePurchased","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":"DEVELOPER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GIVETH_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING_POOL_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNISWAP_ROUTER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_FROM_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_TO_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_claimAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_developer","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_lastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_minimumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_vestingAllowances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"buyer","type":"address[]"}],"name":"addPresaleMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"buyer","type":"address"}],"name":"addPresaleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"addStakingPoolConfirm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakingPool","type":"address"}],"name":"addStakingPoolInitial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"grantee","type":"address"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"grantee","type":"address"}],"name":"addWhitelistFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"grantee","type":"address"}],"name":"addWhitelistTo","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"sender","type":"address"}],"name":"calculateBurnAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFrequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"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":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"listOnUniswap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPresaleEtherValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"factory","type":"address"},{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"pairFor","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"presale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleApePerEther","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleApePerEtherAfterThreshhold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleContributions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEtherReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"stakingPoolDateAdd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingPoolPending","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeListed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapApePerEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapEthPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapPairImpl","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405269043c33c1937564800000600b55691fc3842bd1f071c00000600c556000600d819055620d2f00600f556013805460ff1916905560c860145560b460155560a060165560175567016345785d8a00006019556714d1120d7b160000601a556803bd913e6c1df40000601b5562015180601f553480156200008357600080fd5b50604051620046dd380380620046dd833981810160405260c0811015620000a957600080fd5b815160208301805160405192949293830192919084640100000000821115620000d157600080fd5b908301906020820185811115620000e757600080fd5b82518660208202830111640100000000821117156200010557600080fd5b82525081516020918201928201910280838360005b83811015620001345781810151838201526020016200011a565b5050505091909101604081815260208401519084015160609094018051919694959294935090846401000000008211156200016e57600080fd5b9083019060208201858111156200018457600080fd5b8251866020820283011164010000000082111715620001a257600080fd5b82525081516020918201928201910280838360005b83811015620001d1578181015183820152602001620001b7565b5050505090500160405260200180516040519392919084640100000000821115620001fb57600080fd5b9083019060208201858111156200021157600080fd5b82518660208202830111640100000000821117156200022f57600080fd5b82525081516020918201928201910280838360005b838110156200025e57818101518382015260200162000244565b50505050905001604052505050826040518060400160405280600881526020017f4170652e636173680000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f415045000000000000000000000000000000000000000000000000000000000081525033886200031e735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc230620005a1640100000000026401000000009004565b60018054600160a060020a0319908116600160a060020a039384161790915560038054909116848316179081905562000372916000805160206200462c83398151915291166401000000006200069a810204565b6003546200039590600090600160a060020a03166401000000006200069a810204565b620003b96000805160206200460c83398151915230640100000000620006b3810204565b60005b81518110156200043f57620004157fdc6620a9e291af8d2d6799199d9a28fda5ae9826fd9a55fbee69a1275b027489838381518110620003f857fe5b6020026020010151620006b3640100000000026401000000009004565b620004366000805160206200460c833981519152838381518110620003f857fe5b600101620003bc565b505060016004555081516200045c90600890602085019062000fc2565b5080516200047290600990602084019062000fc2565b5050600a805460ff1916601217905550620004a481670de0b6b3a7640000640100000000620024036200074382021704565b60185550620004bf33612904640100000000620007c4810204565b620004d686611194640100000000620007c4810204565b620004ed84611388640100000000620007c4810204565b62000515737a250d5630b4cf539739df2c5dacb4c659f2488d640100000000620008ad810204565b601e8054600160a060020a031916737a250d5630b4cf539739df2c5dacb4c659f2488d17905560005b825181101562000594576200058b8382815181106200055957fe5b60200260200101518383815181106200056e57fe5b602002602001015162000964640100000000026401000000009004565b6001016200053e565b505050505050506200105e565b600080600083600160a060020a031685600160a060020a031610620005c8578385620005cb565b84845b604080516c01000000000000000000000000600160a060020a03948516810260208084019190915293851681026034830152825160288184030181526048830184528051908501207fff00000000000000000000000000000000000000000000000000000000000000606884015294909a1690990260698a0152607d8901929092527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808a01919091528251808a03909101815260bd909801909152865196019590952095945050505050565b620006af828264010000000062000a9c810204565b5050565b600082815260208190526040902060020154620006ec90620006dd64010000000062000b21810204565b64010000000062000b25810204565b6200069a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180620045dd602f913960400191505060405180910390fd5b6000826200075457506000620007be565b828202828482816200076257fe5b0414620007bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806200464c6021913960400191505060405180910390fd5b90505b92915050565b600154620007e490600160a060020a031664010000000062000b4d810204565b156200083c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806200466d6037913960400191505060405180910390fd5b600160a060020a03821660009081526010602052604090208190556200087281600a6401000000006200245f62000b5982021704565b600160a060020a0383166000908152601160209081526040808320939093556012905220429055620006af8264010000000062000bac810204565b620008d16000805160206200462c8339815191523364010000000062000b25810204565b6200093d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420646576656c6f706572000000000000000000604482015290519081900360640190fd5b620009616000805160206200460c83398151915282640100000000620006b3810204565b50565b600160a060020a038216620009da57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620009f16000838364010000000062000d04810204565b60075462000a0e9082640100000000620024a162000d0982021704565b600755600160a060020a03821660009081526005602052604090205462000a449082640100000000620024a162000d0982021704565b600160a060020a03831660008181526005602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082815260208190526040902062000ac49082640100000000620024fe62000d7e82021704565b15620006af5762000add64010000000062000b21810204565b600160a060020a031681600160a060020a0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b3390565b6000828152602081905260408120620007bb90836401000000006200251362000d9e82021704565b3b63ffffffff16151590565b6000620007bb83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525062000dbe640100000000026401000000009004565b600160a060020a0381166000908152601060205260409020541580159062000bf75750600160a060020a03811660009081526011602090815260408083205460109092529091205410155b62000c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526039815260200180620046a46039913960400191505060405180910390fd5b600160a060020a03811660009081526011602090815260408083205460109092529091205462000c8c916401000000006200252862000e7f82021704565b600160a060020a038216600090815260106020526040902055620009618162000cf562000cc164010000000062000ed2810204565b600160a060020a0385166000908152601160205260409020549060ff16600a0a640100000000620024036200074382021704565b64010000000062000964810204565b505050565b600082820183811015620007bb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000620007bb83600160a060020a03841664010000000062000edb810204565b6000620007bb83600160a060020a03841664010000000062000f33810204565b6000818362000e68576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000e2c57818101518382015260200162000e12565b50505050905090810190601f16801562000e5a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858162000e7557fe5b0495945050505050565b6000620007bb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525062000f4b640100000000026401000000009004565b600a5460ff1690565b600062000ef2838364010000000062000f33810204565b62000f2a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620007be565b506000620007be565b60009081526001919091016020526040902054151590565b6000818484111562000fba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831562000e2c57818101518382015260200162000e12565b505050900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200100557805160ff191683800117855562001035565b8280016001018555821562001035579182015b828111156200103557825182559160200191906001019062001018565b506200104392915062001047565b5090565b5b8082111562001043576000815560010162001048565b61356f806200106e6000396000f3fe60806040526004361061039b5760003560e060020a90048063729b47e6116101e0578063a208d76311610106578063be53a511116100a4578063dd62ed3e11610073578063dd62ed3e14610cc3578063f61d627d14610cfe578063f80f5dd514610d13578063fdea8e0b14610d465761039b565b8063be53a51114610bec578063ca15c87314610c1f578063d0170ecc14610c49578063d547741f14610c8a5761039b565b8063a46985cc116100e0578063a46985cc14610b56578063a6c428b314610b6b578063a9059cbb14610b9e578063ac30777314610bd75761039b565b8063a208d76314610af3578063a217fddf14610b08578063a457c2d714610b1d5761039b565b80639010d07c1161017e57806391e7cd441161014d57806391e7cd44146109e657806395d89b41146109fb5780639cf071d114610a10578063a11e561814610a435761039b565b80639010d07c146109535780639103a0e0146109835780639131b4951461099857806391d14854146109ad5761039b565b80637a9d0758116101ba5780637a9d0758146108ff5780637ad8fdc11461091457806383e71f30146109295780638b3b5bb31461093e5761039b565b8063729b47e6146108a257806379b36943146108d55780637a997ab7146108ea5761039b565b806328160668116102c55780633a0a5eac116102635780636d91c0e2116102325780636d91c0e2146107e25780636fa7279d1461082757806370a082311461085a57806370e1d99b1461088d5761039b565b80633a0a5eac1461074c57806340c10f1914610761578063477f1eba1461079a5780636a76822e146107cd5761039b565b806336568abe1161029f57806336568abe146106b057806338bdff54146106e957806339509351146106fe57806339d794cf146107375761039b565b806328160668146106375780632f2ff15d1461064c578063313ce567146106855761039b565b80630cd2da381161033d5780631ee001111161030c5780631ee0011114610582578063214039ab146105b557806323b872dd146105ca578063248a9ca31461060d5761039b565b80630cd2da381461051057806312cc63dc1461054357806318160ddd146105585780631ad2ad1a1461056d5761039b565b806306fdde031161037957806306fdde031461040757806308ef242414610491578063095ea7b3146104c25780630aca2e11146104fb5761039b565b8063046ef9a5146103a057806304c98b2b146103c9578063057fa3a0146103e0575b600080fd5b3480156103ac57600080fd5b506103b5610d4e565b604080519115158252519081900360200190f35b3480156103d557600080fd5b506103de610e29565b005b3480156103ec57600080fd5b506103f5610ee6565b60408051918252519081900360200190f35b34801561041357600080fd5b5061041c610eec565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561045657818101518382015260200161043e565b50505050905090810190601f1680156104835780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561049d57600080fd5b506104a6610f82565b60408051600160a060020a039092168252519081900360200190f35b3480156104ce57600080fd5b506103b5600480360360408110156104e557600080fd5b50600160a060020a038135169060200135610f9a565b34801561050757600080fd5b506103f561102c565b34801561051c57600080fd5b506103de6004803603602081101561053357600080fd5b5035600160a060020a0316611032565b34801561054f57600080fd5b506103f56110f0565b34801561056457600080fd5b506103f5611114565b34801561057957600080fd5b506103de61111a565b34801561058e57600080fd5b506103f5600480360360208110156105a557600080fd5b5035600160a060020a03166111f9565b3480156105c157600080fd5b506104a661120b565b3480156105d657600080fd5b506103b5600480360360608110156105ed57600080fd5b50600160a060020a0381358116916020810135909116906040013561121a565b34801561061957600080fd5b506103f56004803603602081101561063057600080fd5b5035611231565b34801561064357600080fd5b506103f5611246565b34801561065857600080fd5b506103de6004803603604081101561066f57600080fd5b5080359060200135600160a060020a031661124c565b34801561069157600080fd5b5061069a6112bb565b6040805160ff9092168252519081900360200190f35b3480156106bc57600080fd5b506103de600480360360408110156106d357600080fd5b5080359060200135600160a060020a03166112c4565b3480156106f557600080fd5b506103f5611328565b34801561070a57600080fd5b506103b56004803603604081101561072157600080fd5b50600160a060020a03813516906020013561134c565b34801561074357600080fd5b506104a66113a8565b34801561075857600080fd5b506103f56113b7565b34801561076d57600080fd5b506103de6004803603604081101561078457600080fd5b50600160a060020a0381351690602001356113db565b3480156107a657600080fd5b506103f5600480360360208110156107bd57600080fd5b5035600160a060020a03166114dc565b3480156107d957600080fd5b506103f56114ee565b3480156107ee57600080fd5b506104a66004803603606081101561080557600080fd5b50600160a060020a0381358116916020810135821691604090910135166114f4565b34801561083357600080fd5b506103de6004803603602081101561084a57600080fd5b5035600160a060020a03166115eb565b34801561086657600080fd5b506103f56004803603602081101561087d57600080fd5b5035600160a060020a0316611672565b34801561089957600080fd5b506103de61168d565b3480156108ae57600080fd5b506103f5600480360360208110156108c557600080fd5b5035600160a060020a03166117a2565b3480156108e157600080fd5b506104a66117b4565b3480156108f657600080fd5b506103f56117cc565b34801561090b57600080fd5b506104a66117de565b34801561092057600080fd5b506103de6117ed565b34801561093557600080fd5b506103f5611aab565b34801561094a57600080fd5b506103f5611ab1565b34801561095f57600080fd5b506104a66004803603604081101561097657600080fd5b5080359060200135611ab7565b34801561098f57600080fd5b506103f5611acf565b3480156109a457600080fd5b506103f5611ae1565b3480156109b957600080fd5b506103b5600480360360408110156109d057600080fd5b5080359060200135600160a060020a0316611ae7565b3480156109f257600080fd5b506103f5611aff565b348015610a0757600080fd5b5061041c611b05565b348015610a1c57600080fd5b506103de60048036036020811015610a3357600080fd5b5035600160a060020a0316611b66565b348015610a4f57600080fd5b506103de60048036036020811015610a6657600080fd5b810190602081018135640100000000811115610a8157600080fd5b820183602082011115610a9357600080fd5b80359060200191846020830284011164010000000083111715610ab557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611c38945050505050565b348015610aff57600080fd5b506103f5611d3e565b348015610b1457600080fd5b506103f5611d44565b348015610b2957600080fd5b506103b560048036036040811015610b4057600080fd5b50600160a060020a038135169060200135611d49565b348015610b6257600080fd5b506104a6611db1565b348015610b7757600080fd5b506103f560048036036020811015610b8e57600080fd5b5035600160a060020a0316611dc0565b348015610baa57600080fd5b506103b560048036036040811015610bc157600080fd5b50600160a060020a038135169060200135611dd2565b348015610be357600080fd5b506103de611dde565b348015610bf857600080fd5b506103de60048036036020811015610c0f57600080fd5b5035600160a060020a0316611e72565b348015610c2b57600080fd5b506103f560048036036020811015610c4257600080fd5b5035611ef6565b348015610c5557600080fd5b506103f560048036036060811015610c6c57600080fd5b50803590600160a060020a0360208201358116916040013516611f0d565b348015610c9657600080fd5b506103de60048036036040811015610cad57600080fd5b5080359060200135600160a060020a0316611fcf565b348015610ccf57600080fd5b506103f560048036036040811015610ce657600080fd5b50600160a060020a038135811691602001351661202b565b348015610d0a57600080fd5b506103f5612056565b348015610d1f57600080fd5b506103de60048036036020811015610d3657600080fd5b5035600160a060020a031661205c565b6103b56120ce565b600154600090610d6690600160a060020a031661256a565b610da45760405160e560020a62461bcd0281526004018080602001828103825260378152602001806132ed6037913960400191505060405180910390fd5b60026004541415610dff576040805160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026004556000610e0e612576565b90508015610e2057610e20338261258d565b50600160045590565b600154610e3e90600160a060020a031661256a565b15610e7d5760405160e560020a62461bcd0281526004018080602001828103825260378152602001806134766037913960400191505060405180910390fd5b610e956000805160206132cd83398151915233611ae7565b610ed7576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b6013805460ff19166001179055565b60185481565b60088054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f785780601f10610f4d57610100808354040283529160200191610f78565b820191906000526020600020905b815481529060010190602001808311610f5b57829003601f168201915b5050505050905090565b738f951903c9360345b4e1b536c7f5ae8f88a64e7981565b6000600160a060020a038316737a250d5630b4cf539739df2c5dacb4c659f2488d148015610fda5750600154610fd890600160a060020a031661256a565b155b156110195760405160e560020a62461bcd02815260040180806020018281038252603781526020018061343f6037913960400191505060405180910390fd5b6110238383612682565b90505b92915050565b601f5481565b61104a6000805160206132cd83398151915233611ae7565b61108c576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b42601f556020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316908117825560408051918252517f8d5ebd975d9211b464a772dce4b499da8a0a853b034f87f22e20a7734f169e93929181900390910190a150565b7fdc6620a9e291af8d2d6799199d9a28fda5ae9826fd9a55fbee69a1275b02748981565b60075490565b6111326000805160206132cd83398151915233611ae7565b611174576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b60135460ff161515600114806111995750336000908152601c602052604090205460ff165b6111ed576040805160e560020a62461bcd02815260206004820152601960248201527f5468652070726573616c65206973206e6f742061637469766500000000000000604482015290519081900360640190fd5b6013805460ff19169055565b60126020526000908152604090205481565b602054600160a060020a031681565b6000611227848484612767565b90505b9392505050565b60009081526020819052604090206002015490565b60165481565b60008281526020819052604090206002015461126f9061126a61277e565b611ae7565b6112ad5760405160e560020a62461bcd02815260040180806020018281038252602f8152602001806131f4602f913960400191505060405180910390fd5b6112b78282612782565b5050565b600a5460ff1690565b6112cc61277e565b600160a060020a031681600160a060020a03161461131e5760405160e560020a62461bcd02815260040180806020018281038252602f81526020018061350b602f913960400191505060405180910390fd5b6112b782826127eb565b7ffb1d7521264a126cafd9b576286638679b3b1108a05b47da7156d35bfcb2bb8381565b600061139f61135961277e565b8461139a856006600061136a61277e565b600160a060020a03908116825260208083019390935260409182016000908120918c1681529252902054906124a1565b612854565b50600192915050565b600154600160a060020a031681565b7f83e1446b95f1c1d5ef26abb4f97d0668a474fa1461910124bfb15edcb7ae5ed281565b6114057fdc6620a9e291af8d2d6799199d9a28fda5ae9826fd9a55fbee69a1275b02748933611ae7565b611459576040805160e560020a62461bcd02815260206004820152601c60248201527f43616c6c6572206973206e6f742061207374616b696e6720706f6f6c00000000604482015290519081900360640190fd5b600260045414156114b4576040805160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600455600c546114c4611114565b116114d3576114d3828261258d565b50506001600455565b601d6020526000908152604090205481565b60175481565b600080600083600160a060020a031685600160a060020a03161061151957838561151c565b84845b604080516c01000000000000000000000000600160a060020a03948516810260208084019190915293851681026034830152825160288184030181526048830184528051908501207fff00000000000000000000000000000000000000000000000000000000000000606884015294909a1690990260698a0152607d8901929092527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808a01919091528251808a03909101815260bd909801909152865196019590952095945050505050565b6116036000805160206132cd83398151915233611ae7565b611645576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b61166f7ffb1d7521264a126cafd9b576286638679b3b1108a05b47da7156d35bfcb2bb838261124c565b50565b600160a060020a031660009081526005602052604090205490565b6116a56000805160206132cd83398151915233611ae7565b6116e7576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b601f546116f790620151806124a1565b42101561170357600080fd5b60205461173a907fdc6620a9e291af8d2d6799199d9a28fda5ae9826fd9a55fbee69a1275b02748990600160a060020a031661124c565b60205461175f906000805160206132ad83398151915290600160a060020a031661124c565b6020805460408051600160a060020a039092168252517ff061281be1aea8bc07e834f42cea49373e1d59969fb72d39674f05a638049379929181900390910190a1565b60116020526000908152604090205481565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000805160206132ad83398151915281565b600354600160a060020a031681565b6118056000805160206132cd83398151915233611ae7565b611847576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b60015461185c90600160a060020a031661256a565b1561189b5760405160e560020a62461bcd0281526004018080602001828103825260378152602001806134766037913960400191505060405180910390fd5b42600d556001546118b490600160a060020a031661205c565b6016543031906000906118c8908390612403565b90506118d4308261258d565b601e546118ec903090600160a060020a031683612854565b601e5460009081908190600160a060020a031663f305d7198630878083876119166005603c612403565b42016040518863ffffffff1660e060020a0281526004018087600160a060020a0316815260200186815260200185815260200184815260200183600160a060020a0316815260200182815260200196505050505050506060604051808303818588803b15801561198557600080fd5b505af1158015611999573d6000803e3d6000fd5b50505050506040513d60608110156119b057600080fd5b50805160208201516040909201516001549195509193509091506119ec906000805160206132ad83398151915290600160a060020a0316611fcf565b611a186000805160206132ad833981519152737a250d5630b4cf539739df2c5dacb4c659f2488d611fcf565b600154611a2d90600160a060020a0316611e72565b611a3561111a565b6001546002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055604080518481526020810184905280820183905290517fd7f28048575eead8851d024ead087913957dfb4fd1a02b4d1573f5352a5a2be39181900360600190a15050505050565b60145481565b600f5481565b60008281526020819052604081206110239083612946565b6000805160206132cd83398151915281565b60155481565b60008281526020819052604081206110239083612513565b600d5481565b60098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f785780601f10610f4d57610100808354040283529160200191610f78565b600154611b7b90600160a060020a031661256a565b15611bba5760405160e560020a62461bcd0281526004018080602001828103825260378152602001806134766037913960400191505060405180910390fd5b611bd26000805160206132cd83398151915233611ae7565b611c14576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b600160a060020a03166000908152601c60205260409020805460ff19166001179055565b600154611c4d90600160a060020a031661256a565b15611c8c5760405160e560020a62461bcd0281526004018080602001828103825260378152602001806134766037913960400191505060405180910390fd5b611ca46000805160206132cd83398151915233611ae7565b611ce6576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b60005b81518110156112b7576001601c6000848481518110611d0457fe5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff1916911515919091179055600101611ce9565b600c5481565b600081565b600061139f611d5661277e565b8461139a856040518060600160405280602581526020016134e66025913960066000611d8061277e565b600160a060020a03908116825260208083019390935260409182016000908120918d16815292529020549190612952565b600254600160a060020a031681565b60106020526000908152604090205481565b600061102383836129ec565b3360009081526012602052604090205415801590611e175750600f5433600090815260126020526040902054611e13916124a1565b4210155b611e555760405160e560020a62461bcd0281526004018080602001828103825260388152602001806133546038913960400191505060405180910390fd5b336000818152601260205260409020429055611e7090612a02565b565b611e8a6000805160206132cd83398151915233611ae7565b611ecc576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b61166f7f83e1446b95f1c1d5ef26abb4f97d0668a474fa1461910124bfb15edcb7ae5ed28261124c565b600081815260208190526040812061102690612b05565b600d546000908190819015611f7e576000611f48611f376001600d546124a190919063ffffffff16565b611f424260016124a1565b90612528565b90506000611f59826201518061245f565b9050600a811115611f6d5760059250611f7b565b611f78600f82612528565b92505b50505b600b54611f89611114565b1115611fc657611fa46064611f9e8884612403565b9061245f565b91506000611fb6600b54611f42611114565b905080831115611fc4578092505b505b50949350505050565b600082815260208190526040902060020154611fed9061126a61277e565b61131e5760405160e560020a62461bcd0281526004018080602001828103825260308152602001806133246030913960400191505060405180910390fd5b600160a060020a03918216600090815260066020908152604080832093909416825291909152205490565b600b5481565b6120746000805160206132cd83398151915233611ae7565b6120b6576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b61166f6000805160206132ad8339815191528261124c565b60135460009060ff161515600114806120f65750336000908152601c602052604090205460ff165b61214a576040805160e560020a62461bcd02815260206004820152601960248201527f5468652070726573616c65206973206e6f742061637469766500000000000000604482015290519081900360640190fd5b600260045414156121a5576040805160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600455601954341015612204576040805160e560020a62461bcd02815260206004820152601f60248201527f4d696e696d756d20707572636861736520616d6f756e74206e6f74206d657400604482015290519081900360640190fd5b60185460175461221490346124a1565b1115806122305750336000908152601c602052604090205460ff165b612284576040805160e560020a62461bcd02815260206004820181905260248201527f50726573616c65206d6178696d756d20616c7265616479206163686965766564604482015290519081900360640190fd5b601554601a5461229391612403565b6122c16122ab6015543461240390919063ffffffff16565b336000908152601d6020526040902054906124a1565b1115612317576040805160e560020a62461bcd02815260206004820152601d60248201527f416d6f756e74206f662065746865722073656e7420746f6f2068696768000000604482015290519081900360640190fd5b61233b6122ab601b546017541161233057601454612334565b6015545b3490612403565b336000908152601d6020908152604080832093909355601c9052205460ff1661236f5760175461236b90346124a1565b6017555b336000818152601d6020908152604091829020548251938452908301523482820152517f531c8e55a96ff0523b632a56c0fa5421bb41070dbcf7257b046152cc0fa16a309181900360600190a1600354600160a060020a03166108fc6123db600a611f9e346002612403565b6040518115909202916000818181858888f19350505050158015610e20573d6000803e3d6000fd5b60008261241257506000611026565b8282028284828161241f57fe5b04146110235760405160e560020a62461bcd02815260040180806020018281038252602181526020018061338c6021913960400191505060405180910390fd5b600061102383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612b10565b600082820183811015611023576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061102383600160a060020a038416612b78565b600061102383600160a060020a038416612bc2565b600061102383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612952565b3b63ffffffff16151590565b336000908152601d60205260408120805491905590565b600160a060020a0382166125eb576040805160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6125f760008383612bda565b60075461260490826124a1565b600755600160a060020a03821660009081526005602052604090205461262a90826124a1565b600160a060020a03831660008181526005602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000600e5460001461275d57600e805460009091556001546126ad90600160a060020a031682612bdf565b6126d5738f951903c9360345b4e1b536c7f5ae8f88a64e796126d083606461245f565b61258d565b6003546126f090600160a060020a03166126d083606461245f565b600260009054906101000a9004600160a060020a0316600160a060020a031663fff6cae96040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561274357600080fd5b505af1158015612757573d6000803e3d6000fd5b50505050505b6110238383612cde565b60006112278484612779858789612cf2565b612db9565b3390565b600082815260208190526040902061279a90826124fe565b156112b7576127a761277e565b600160a060020a031681600160a060020a0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020819052604090206128039082612e3b565b156112b75761281061277e565b600160a060020a031681600160a060020a0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600160a060020a03831661289c5760405160e560020a62461bcd02815260040180806020018281038252602481526020018061341b6024913960400191505060405180910390fd5b600160a060020a0382166128e45760405160e560020a62461bcd0281526004018080602001828103825260228152602001806132456022913960400191505060405180910390fd5b600160a060020a03808416600081815260066020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006110238383612e50565b600081848411156129e45760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129a9578181015183820152602001612991565b50505050905090810190601f1680156129d65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000611023836129fd848633612cf2565b612eb7565b600160a060020a03811660009081526010602052604090205415801590612a4c5750600160a060020a03811660009081526011602090815260408083205460109092529091205410155b612a8a5760405160e560020a62461bcd0281526004018080602001828103825260398152602001806134ad6039913960400191505060405180910390fd5b600160a060020a038116600090815260116020908152604080832054601090925290912054612ab891612528565b600160a060020a03821660009081526010602052604090205561166f816126d0612ae06112bb565b600160a060020a0385166000908152601160205260409020549060ff16600a0a612403565b600061102682612ecb565b60008183612b625760405160e560020a62461bcd0281526020600482018181528351602484015283519092839260449091019190850190808383600083156129a9578181015183820152602001612991565b506000838581612b6e57fe5b0495945050505050565b6000612b848383612bc2565b612bba57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611026565b506000611026565b60009081526001919091016020526040902054151590565b505050565b600160a060020a038216612c275760405160e560020a62461bcd0281526004018080602001828103825260218152602001806133d56021913960400191505060405180910390fd5b612c3382600083612bda565b612c708160405180606001604052806022815260200161322360229139600160a060020a0385166000908152600560205260409020549190612952565b600160a060020a038316600090815260056020526040902055600754612c969082612528565b600755604080518281529051600091600160a060020a038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061139f612ceb61277e565b8484612854565b600080612d00858585611f0d565b9050612d0c8385612ecf565b15612d1a578491505061122a565b8015612da657600154600160a060020a0385811691161415612d5e57612d52612d496064611f9e886014612403565b600e54906124a1565b600e555083905061122a565b612d688382612bdf565b612d8b738f951903c9360345b4e1b536c7f5ae8f88a64e796126d083601461245f565b600354612da690600160a060020a03166126d083601e61245f565b612db08582612528565b95945050505050565b6000612dc6848484612f85565b612e3184612dd261277e565b61139a856040518060600160405280602881526020016133ad60289139600160a060020a038a16600090815260066020526040812090612e1061277e565b600160a060020a031681526020810191909152604001600020549190612952565b5060019392505050565b600061102383600160a060020a0384166130e8565b81546000908210612e955760405160e560020a62461bcd0281526004018080602001828103825260228152602001806131af6022913960400191505060405180910390fd5b826000018281548110612ea457fe5b9060005260206000200154905092915050565b600061139f612ec461277e565b8484612f85565b5490565b6000612ee96000805160206132ad83398151915284611ae7565b80612f075750612f076000805160206132ad83398151915283611ae7565b80612f255750612f256000805160206132ad83398151915233611ae7565b80612f555750612f557ffb1d7521264a126cafd9b576286638679b3b1108a05b47da7156d35bfcb2bb8383611ae7565b8061102357506110237f83e1446b95f1c1d5ef26abb4f97d0668a474fa1461910124bfb15edcb7ae5ed284611ae7565b600160a060020a038316612fcd5760405160e560020a62461bcd0281526004018080602001828103825260258152602001806133f66025913960400191505060405180910390fd5b600160a060020a0382166130155760405160e560020a62461bcd0281526004018080602001828103825260238152602001806131d16023913960400191505060405180910390fd5b613020838383612bda565b61305d8160405180606001604052806026815260200161328760269139600160a060020a0386166000908152600560205260409020549190612952565b600160a060020a03808516600090815260056020526040808220939093559084168152205461308c90826124a1565b600160a060020a0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081815260018301602052604081205480156131a4578354600019808301919081019060009087908390811061311b57fe5b906000526020600020015490508087600001848154811061313857fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061316857fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611026565b600091505061102656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737343616c6c6572206973206e6f7420646576656c6f70657200000000000000000045524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365dc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be67604504b9dfd7400a1522f49a8b4a100552da9236849581fd59b7363eb48c6a474c596f752063616e277420706572666f726d207468697320616374696f6e20756e74696c2074686520556e6973776170206c697374696e67416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416c6c6f77616e63652063616e6e6f7420626520636c61696d6564206d6f7265207468616e206f6e63652065766572792031302064617973536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734f6e6c792074686520636f6e74726163742063616e2070726f7669646520696e697469616c20556e6973776170206c6971756964697479596f752063616e277420706572666f726d207468697320616374696f6e2061667465722074686520556e6973776170206c697374696e67456e7469726520616c6c6f77616e636520616c726561647920636c61696d65642c206f72206e6f20696e697469616c20616c6f6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212200ab04f1bf91385d891166032603c7ce053f237181174cb6bc1c9a1c993698ddf64736f6c634300060c0033416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74dc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be67604504b9dfd7400a1522f49a8b4a100552da9236849581fd59b7363eb48c6a474c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77596f752063616e277420706572666f726d207468697320616374696f6e2061667465722074686520556e6973776170206c697374696e67456e7469726520616c6c6f77616e636520616c726561647920636c61696d65642c206f72206e6f20696e697469616c20616c6f6f77616e6365000000000000000000000000d8515e004209567cf28dc7dcc2920aada7fcb52700000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000ea5f9c91a0100701c903dbea4145caeee32a830a000000000000000000000000000000000000000000000000000000000000006300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000190000000000000000000000000448b3c4e033d54902ef318e1f580b3e4cbedb8900000000000000000000000036de990133d36d7e3df9a820aa3ede5a2320de7100000000000000000000000038c5693c5f3716f05ca4489a91f02bf57d362dd3000000000000000000000000426c986a1ed1fc0b384b9f45a9c3955f436ce38b0000000000000000000000004881b34d98668e5758966040442c4e81579523510000000000000000000000004bede6f67be997ae703e6fa1abb9579cf5fdacac00000000000000000000000066aeeadd49026a7cfbde0240a7b148f18966b7b70000000000000000000000006f65d3c7fa2996fb0ace0d343dda2bf8f0a7ce030000000000000000000000009349f4d74770551207e5bfcaeeacc14aa07f4658000000000000000000000000af63977a00d25a301c21d4ad076bc10da23f6f63000000000000000000000000c0a5d9c046f4537ceabb1633e66593e4044f8e9d000000000000000000000000c0bc8226527038f95d0b02b3fa7cfd0d2f344968000000000000000000000000c7de8e0a823153e7ddd9627fe84a0eac0c77d275000000000000000000000000d2cd50f38ffb2115474b4b148d7fc0ec38529de6000000000000000000000000d66dda830d82668402d6583bacf63997745ffdc0000000000000000000000000d6c35c1828a7062e21468768c546a64dd1be1602000000000000000000000000d838a891e891d9e59942a5d04d26b1b67a0e6779000000000000000000000000dc0d74171b31051d4bfa88de496ba5dc700614d1000000000000000000000000dd1c9497b858395de5f340560dd1d667bc93c618000000000000000000000000e66381613aa1de87753666cd463b2337776914f1000000000000000000000000e7b73948ebc9db3cf07ddd013939862e719a9f10000000000000000000000000e81deb6ead3850f9a4593acac6a57a73405e1238000000000000000000000000e9cdbafb6420d8a1379f96e9892ce7eb202be30b000000000000000000000000ed72bb9086d1b6e325ffbcb293a2e4365790dd9e000000000000000000000000f916d5d0310bfcd0d9b8c43d0a29070670d825f9000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac620000000000000000000000000000000000000000000000000000ad78ebc5ac6200000
Deployed Bytecode
0x60806040526004361061039b5760003560e060020a90048063729b47e6116101e0578063a208d76311610106578063be53a511116100a4578063dd62ed3e11610073578063dd62ed3e14610cc3578063f61d627d14610cfe578063f80f5dd514610d13578063fdea8e0b14610d465761039b565b8063be53a51114610bec578063ca15c87314610c1f578063d0170ecc14610c49578063d547741f14610c8a5761039b565b8063a46985cc116100e0578063a46985cc14610b56578063a6c428b314610b6b578063a9059cbb14610b9e578063ac30777314610bd75761039b565b8063a208d76314610af3578063a217fddf14610b08578063a457c2d714610b1d5761039b565b80639010d07c1161017e57806391e7cd441161014d57806391e7cd44146109e657806395d89b41146109fb5780639cf071d114610a10578063a11e561814610a435761039b565b80639010d07c146109535780639103a0e0146109835780639131b4951461099857806391d14854146109ad5761039b565b80637a9d0758116101ba5780637a9d0758146108ff5780637ad8fdc11461091457806383e71f30146109295780638b3b5bb31461093e5761039b565b8063729b47e6146108a257806379b36943146108d55780637a997ab7146108ea5761039b565b806328160668116102c55780633a0a5eac116102635780636d91c0e2116102325780636d91c0e2146107e25780636fa7279d1461082757806370a082311461085a57806370e1d99b1461088d5761039b565b80633a0a5eac1461074c57806340c10f1914610761578063477f1eba1461079a5780636a76822e146107cd5761039b565b806336568abe1161029f57806336568abe146106b057806338bdff54146106e957806339509351146106fe57806339d794cf146107375761039b565b806328160668146106375780632f2ff15d1461064c578063313ce567146106855761039b565b80630cd2da381161033d5780631ee001111161030c5780631ee0011114610582578063214039ab146105b557806323b872dd146105ca578063248a9ca31461060d5761039b565b80630cd2da381461051057806312cc63dc1461054357806318160ddd146105585780631ad2ad1a1461056d5761039b565b806306fdde031161037957806306fdde031461040757806308ef242414610491578063095ea7b3146104c25780630aca2e11146104fb5761039b565b8063046ef9a5146103a057806304c98b2b146103c9578063057fa3a0146103e0575b600080fd5b3480156103ac57600080fd5b506103b5610d4e565b604080519115158252519081900360200190f35b3480156103d557600080fd5b506103de610e29565b005b3480156103ec57600080fd5b506103f5610ee6565b60408051918252519081900360200190f35b34801561041357600080fd5b5061041c610eec565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561045657818101518382015260200161043e565b50505050905090810190601f1680156104835780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561049d57600080fd5b506104a6610f82565b60408051600160a060020a039092168252519081900360200190f35b3480156104ce57600080fd5b506103b5600480360360408110156104e557600080fd5b50600160a060020a038135169060200135610f9a565b34801561050757600080fd5b506103f561102c565b34801561051c57600080fd5b506103de6004803603602081101561053357600080fd5b5035600160a060020a0316611032565b34801561054f57600080fd5b506103f56110f0565b34801561056457600080fd5b506103f5611114565b34801561057957600080fd5b506103de61111a565b34801561058e57600080fd5b506103f5600480360360208110156105a557600080fd5b5035600160a060020a03166111f9565b3480156105c157600080fd5b506104a661120b565b3480156105d657600080fd5b506103b5600480360360608110156105ed57600080fd5b50600160a060020a0381358116916020810135909116906040013561121a565b34801561061957600080fd5b506103f56004803603602081101561063057600080fd5b5035611231565b34801561064357600080fd5b506103f5611246565b34801561065857600080fd5b506103de6004803603604081101561066f57600080fd5b5080359060200135600160a060020a031661124c565b34801561069157600080fd5b5061069a6112bb565b6040805160ff9092168252519081900360200190f35b3480156106bc57600080fd5b506103de600480360360408110156106d357600080fd5b5080359060200135600160a060020a03166112c4565b3480156106f557600080fd5b506103f5611328565b34801561070a57600080fd5b506103b56004803603604081101561072157600080fd5b50600160a060020a03813516906020013561134c565b34801561074357600080fd5b506104a66113a8565b34801561075857600080fd5b506103f56113b7565b34801561076d57600080fd5b506103de6004803603604081101561078457600080fd5b50600160a060020a0381351690602001356113db565b3480156107a657600080fd5b506103f5600480360360208110156107bd57600080fd5b5035600160a060020a03166114dc565b3480156107d957600080fd5b506103f56114ee565b3480156107ee57600080fd5b506104a66004803603606081101561080557600080fd5b50600160a060020a0381358116916020810135821691604090910135166114f4565b34801561083357600080fd5b506103de6004803603602081101561084a57600080fd5b5035600160a060020a03166115eb565b34801561086657600080fd5b506103f56004803603602081101561087d57600080fd5b5035600160a060020a0316611672565b34801561089957600080fd5b506103de61168d565b3480156108ae57600080fd5b506103f5600480360360208110156108c557600080fd5b5035600160a060020a03166117a2565b3480156108e157600080fd5b506104a66117b4565b3480156108f657600080fd5b506103f56117cc565b34801561090b57600080fd5b506104a66117de565b34801561092057600080fd5b506103de6117ed565b34801561093557600080fd5b506103f5611aab565b34801561094a57600080fd5b506103f5611ab1565b34801561095f57600080fd5b506104a66004803603604081101561097657600080fd5b5080359060200135611ab7565b34801561098f57600080fd5b506103f5611acf565b3480156109a457600080fd5b506103f5611ae1565b3480156109b957600080fd5b506103b5600480360360408110156109d057600080fd5b5080359060200135600160a060020a0316611ae7565b3480156109f257600080fd5b506103f5611aff565b348015610a0757600080fd5b5061041c611b05565b348015610a1c57600080fd5b506103de60048036036020811015610a3357600080fd5b5035600160a060020a0316611b66565b348015610a4f57600080fd5b506103de60048036036020811015610a6657600080fd5b810190602081018135640100000000811115610a8157600080fd5b820183602082011115610a9357600080fd5b80359060200191846020830284011164010000000083111715610ab557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611c38945050505050565b348015610aff57600080fd5b506103f5611d3e565b348015610b1457600080fd5b506103f5611d44565b348015610b2957600080fd5b506103b560048036036040811015610b4057600080fd5b50600160a060020a038135169060200135611d49565b348015610b6257600080fd5b506104a6611db1565b348015610b7757600080fd5b506103f560048036036020811015610b8e57600080fd5b5035600160a060020a0316611dc0565b348015610baa57600080fd5b506103b560048036036040811015610bc157600080fd5b50600160a060020a038135169060200135611dd2565b348015610be357600080fd5b506103de611dde565b348015610bf857600080fd5b506103de60048036036020811015610c0f57600080fd5b5035600160a060020a0316611e72565b348015610c2b57600080fd5b506103f560048036036020811015610c4257600080fd5b5035611ef6565b348015610c5557600080fd5b506103f560048036036060811015610c6c57600080fd5b50803590600160a060020a0360208201358116916040013516611f0d565b348015610c9657600080fd5b506103de60048036036040811015610cad57600080fd5b5080359060200135600160a060020a0316611fcf565b348015610ccf57600080fd5b506103f560048036036040811015610ce657600080fd5b50600160a060020a038135811691602001351661202b565b348015610d0a57600080fd5b506103f5612056565b348015610d1f57600080fd5b506103de60048036036020811015610d3657600080fd5b5035600160a060020a031661205c565b6103b56120ce565b600154600090610d6690600160a060020a031661256a565b610da45760405160e560020a62461bcd0281526004018080602001828103825260378152602001806132ed6037913960400191505060405180910390fd5b60026004541415610dff576040805160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026004556000610e0e612576565b90508015610e2057610e20338261258d565b50600160045590565b600154610e3e90600160a060020a031661256a565b15610e7d5760405160e560020a62461bcd0281526004018080602001828103825260378152602001806134766037913960400191505060405180910390fd5b610e956000805160206132cd83398151915233611ae7565b610ed7576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b6013805460ff19166001179055565b60185481565b60088054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f785780601f10610f4d57610100808354040283529160200191610f78565b820191906000526020600020905b815481529060010190602001808311610f5b57829003601f168201915b5050505050905090565b738f951903c9360345b4e1b536c7f5ae8f88a64e7981565b6000600160a060020a038316737a250d5630b4cf539739df2c5dacb4c659f2488d148015610fda5750600154610fd890600160a060020a031661256a565b155b156110195760405160e560020a62461bcd02815260040180806020018281038252603781526020018061343f6037913960400191505060405180910390fd5b6110238383612682565b90505b92915050565b601f5481565b61104a6000805160206132cd83398151915233611ae7565b61108c576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b42601f556020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038316908117825560408051918252517f8d5ebd975d9211b464a772dce4b499da8a0a853b034f87f22e20a7734f169e93929181900390910190a150565b7fdc6620a9e291af8d2d6799199d9a28fda5ae9826fd9a55fbee69a1275b02748981565b60075490565b6111326000805160206132cd83398151915233611ae7565b611174576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b60135460ff161515600114806111995750336000908152601c602052604090205460ff165b6111ed576040805160e560020a62461bcd02815260206004820152601960248201527f5468652070726573616c65206973206e6f742061637469766500000000000000604482015290519081900360640190fd5b6013805460ff19169055565b60126020526000908152604090205481565b602054600160a060020a031681565b6000611227848484612767565b90505b9392505050565b60009081526020819052604090206002015490565b60165481565b60008281526020819052604090206002015461126f9061126a61277e565b611ae7565b6112ad5760405160e560020a62461bcd02815260040180806020018281038252602f8152602001806131f4602f913960400191505060405180910390fd5b6112b78282612782565b5050565b600a5460ff1690565b6112cc61277e565b600160a060020a031681600160a060020a03161461131e5760405160e560020a62461bcd02815260040180806020018281038252602f81526020018061350b602f913960400191505060405180910390fd5b6112b782826127eb565b7ffb1d7521264a126cafd9b576286638679b3b1108a05b47da7156d35bfcb2bb8381565b600061139f61135961277e565b8461139a856006600061136a61277e565b600160a060020a03908116825260208083019390935260409182016000908120918c1681529252902054906124a1565b612854565b50600192915050565b600154600160a060020a031681565b7f83e1446b95f1c1d5ef26abb4f97d0668a474fa1461910124bfb15edcb7ae5ed281565b6114057fdc6620a9e291af8d2d6799199d9a28fda5ae9826fd9a55fbee69a1275b02748933611ae7565b611459576040805160e560020a62461bcd02815260206004820152601c60248201527f43616c6c6572206973206e6f742061207374616b696e6720706f6f6c00000000604482015290519081900360640190fd5b600260045414156114b4576040805160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600455600c546114c4611114565b116114d3576114d3828261258d565b50506001600455565b601d6020526000908152604090205481565b60175481565b600080600083600160a060020a031685600160a060020a03161061151957838561151c565b84845b604080516c01000000000000000000000000600160a060020a03948516810260208084019190915293851681026034830152825160288184030181526048830184528051908501207fff00000000000000000000000000000000000000000000000000000000000000606884015294909a1690990260698a0152607d8901929092527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808a01919091528251808a03909101815260bd909801909152865196019590952095945050505050565b6116036000805160206132cd83398151915233611ae7565b611645576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b61166f7ffb1d7521264a126cafd9b576286638679b3b1108a05b47da7156d35bfcb2bb838261124c565b50565b600160a060020a031660009081526005602052604090205490565b6116a56000805160206132cd83398151915233611ae7565b6116e7576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b601f546116f790620151806124a1565b42101561170357600080fd5b60205461173a907fdc6620a9e291af8d2d6799199d9a28fda5ae9826fd9a55fbee69a1275b02748990600160a060020a031661124c565b60205461175f906000805160206132ad83398151915290600160a060020a031661124c565b6020805460408051600160a060020a039092168252517ff061281be1aea8bc07e834f42cea49373e1d59969fb72d39674f05a638049379929181900390910190a1565b60116020526000908152604090205481565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000805160206132ad83398151915281565b600354600160a060020a031681565b6118056000805160206132cd83398151915233611ae7565b611847576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b60015461185c90600160a060020a031661256a565b1561189b5760405160e560020a62461bcd0281526004018080602001828103825260378152602001806134766037913960400191505060405180910390fd5b42600d556001546118b490600160a060020a031661205c565b6016543031906000906118c8908390612403565b90506118d4308261258d565b601e546118ec903090600160a060020a031683612854565b601e5460009081908190600160a060020a031663f305d7198630878083876119166005603c612403565b42016040518863ffffffff1660e060020a0281526004018087600160a060020a0316815260200186815260200185815260200184815260200183600160a060020a0316815260200182815260200196505050505050506060604051808303818588803b15801561198557600080fd5b505af1158015611999573d6000803e3d6000fd5b50505050506040513d60608110156119b057600080fd5b50805160208201516040909201516001549195509193509091506119ec906000805160206132ad83398151915290600160a060020a0316611fcf565b611a186000805160206132ad833981519152737a250d5630b4cf539739df2c5dacb4c659f2488d611fcf565b600154611a2d90600160a060020a0316611e72565b611a3561111a565b6001546002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055604080518481526020810184905280820183905290517fd7f28048575eead8851d024ead087913957dfb4fd1a02b4d1573f5352a5a2be39181900360600190a15050505050565b60145481565b600f5481565b60008281526020819052604081206110239083612946565b6000805160206132cd83398151915281565b60155481565b60008281526020819052604081206110239083612513565b600d5481565b60098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f785780601f10610f4d57610100808354040283529160200191610f78565b600154611b7b90600160a060020a031661256a565b15611bba5760405160e560020a62461bcd0281526004018080602001828103825260378152602001806134766037913960400191505060405180910390fd5b611bd26000805160206132cd83398151915233611ae7565b611c14576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b600160a060020a03166000908152601c60205260409020805460ff19166001179055565b600154611c4d90600160a060020a031661256a565b15611c8c5760405160e560020a62461bcd0281526004018080602001828103825260378152602001806134766037913960400191505060405180910390fd5b611ca46000805160206132cd83398151915233611ae7565b611ce6576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b60005b81518110156112b7576001601c6000848481518110611d0457fe5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff1916911515919091179055600101611ce9565b600c5481565b600081565b600061139f611d5661277e565b8461139a856040518060600160405280602581526020016134e66025913960066000611d8061277e565b600160a060020a03908116825260208083019390935260409182016000908120918d16815292529020549190612952565b600254600160a060020a031681565b60106020526000908152604090205481565b600061102383836129ec565b3360009081526012602052604090205415801590611e175750600f5433600090815260126020526040902054611e13916124a1565b4210155b611e555760405160e560020a62461bcd0281526004018080602001828103825260388152602001806133546038913960400191505060405180910390fd5b336000818152601260205260409020429055611e7090612a02565b565b611e8a6000805160206132cd83398151915233611ae7565b611ecc576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b61166f7f83e1446b95f1c1d5ef26abb4f97d0668a474fa1461910124bfb15edcb7ae5ed28261124c565b600081815260208190526040812061102690612b05565b600d546000908190819015611f7e576000611f48611f376001600d546124a190919063ffffffff16565b611f424260016124a1565b90612528565b90506000611f59826201518061245f565b9050600a811115611f6d5760059250611f7b565b611f78600f82612528565b92505b50505b600b54611f89611114565b1115611fc657611fa46064611f9e8884612403565b9061245f565b91506000611fb6600b54611f42611114565b905080831115611fc4578092505b505b50949350505050565b600082815260208190526040902060020154611fed9061126a61277e565b61131e5760405160e560020a62461bcd0281526004018080602001828103825260308152602001806133246030913960400191505060405180910390fd5b600160a060020a03918216600090815260066020908152604080832093909416825291909152205490565b600b5481565b6120746000805160206132cd83398151915233611ae7565b6120b6576040805160e560020a62461bcd0281526020600482015260176024820152600080516020613267833981519152604482015290519081900360640190fd5b61166f6000805160206132ad8339815191528261124c565b60135460009060ff161515600114806120f65750336000908152601c602052604090205460ff165b61214a576040805160e560020a62461bcd02815260206004820152601960248201527f5468652070726573616c65206973206e6f742061637469766500000000000000604482015290519081900360640190fd5b600260045414156121a5576040805160e560020a62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600455601954341015612204576040805160e560020a62461bcd02815260206004820152601f60248201527f4d696e696d756d20707572636861736520616d6f756e74206e6f74206d657400604482015290519081900360640190fd5b60185460175461221490346124a1565b1115806122305750336000908152601c602052604090205460ff165b612284576040805160e560020a62461bcd02815260206004820181905260248201527f50726573616c65206d6178696d756d20616c7265616479206163686965766564604482015290519081900360640190fd5b601554601a5461229391612403565b6122c16122ab6015543461240390919063ffffffff16565b336000908152601d6020526040902054906124a1565b1115612317576040805160e560020a62461bcd02815260206004820152601d60248201527f416d6f756e74206f662065746865722073656e7420746f6f2068696768000000604482015290519081900360640190fd5b61233b6122ab601b546017541161233057601454612334565b6015545b3490612403565b336000908152601d6020908152604080832093909355601c9052205460ff1661236f5760175461236b90346124a1565b6017555b336000818152601d6020908152604091829020548251938452908301523482820152517f531c8e55a96ff0523b632a56c0fa5421bb41070dbcf7257b046152cc0fa16a309181900360600190a1600354600160a060020a03166108fc6123db600a611f9e346002612403565b6040518115909202916000818181858888f19350505050158015610e20573d6000803e3d6000fd5b60008261241257506000611026565b8282028284828161241f57fe5b04146110235760405160e560020a62461bcd02815260040180806020018281038252602181526020018061338c6021913960400191505060405180910390fd5b600061102383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612b10565b600082820183811015611023576040805160e560020a62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061102383600160a060020a038416612b78565b600061102383600160a060020a038416612bc2565b600061102383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612952565b3b63ffffffff16151590565b336000908152601d60205260408120805491905590565b600160a060020a0382166125eb576040805160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6125f760008383612bda565b60075461260490826124a1565b600755600160a060020a03821660009081526005602052604090205461262a90826124a1565b600160a060020a03831660008181526005602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000600e5460001461275d57600e805460009091556001546126ad90600160a060020a031682612bdf565b6126d5738f951903c9360345b4e1b536c7f5ae8f88a64e796126d083606461245f565b61258d565b6003546126f090600160a060020a03166126d083606461245f565b600260009054906101000a9004600160a060020a0316600160a060020a031663fff6cae96040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561274357600080fd5b505af1158015612757573d6000803e3d6000fd5b50505050505b6110238383612cde565b60006112278484612779858789612cf2565b612db9565b3390565b600082815260208190526040902061279a90826124fe565b156112b7576127a761277e565b600160a060020a031681600160a060020a0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020819052604090206128039082612e3b565b156112b75761281061277e565b600160a060020a031681600160a060020a0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600160a060020a03831661289c5760405160e560020a62461bcd02815260040180806020018281038252602481526020018061341b6024913960400191505060405180910390fd5b600160a060020a0382166128e45760405160e560020a62461bcd0281526004018080602001828103825260228152602001806132456022913960400191505060405180910390fd5b600160a060020a03808416600081815260066020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006110238383612e50565b600081848411156129e45760405160e560020a62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156129a9578181015183820152602001612991565b50505050905090810190601f1680156129d65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000611023836129fd848633612cf2565b612eb7565b600160a060020a03811660009081526010602052604090205415801590612a4c5750600160a060020a03811660009081526011602090815260408083205460109092529091205410155b612a8a5760405160e560020a62461bcd0281526004018080602001828103825260398152602001806134ad6039913960400191505060405180910390fd5b600160a060020a038116600090815260116020908152604080832054601090925290912054612ab891612528565b600160a060020a03821660009081526010602052604090205561166f816126d0612ae06112bb565b600160a060020a0385166000908152601160205260409020549060ff16600a0a612403565b600061102682612ecb565b60008183612b625760405160e560020a62461bcd0281526020600482018181528351602484015283519092839260449091019190850190808383600083156129a9578181015183820152602001612991565b506000838581612b6e57fe5b0495945050505050565b6000612b848383612bc2565b612bba57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611026565b506000611026565b60009081526001919091016020526040902054151590565b505050565b600160a060020a038216612c275760405160e560020a62461bcd0281526004018080602001828103825260218152602001806133d56021913960400191505060405180910390fd5b612c3382600083612bda565b612c708160405180606001604052806022815260200161322360229139600160a060020a0385166000908152600560205260409020549190612952565b600160a060020a038316600090815260056020526040902055600754612c969082612528565b600755604080518281529051600091600160a060020a038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061139f612ceb61277e565b8484612854565b600080612d00858585611f0d565b9050612d0c8385612ecf565b15612d1a578491505061122a565b8015612da657600154600160a060020a0385811691161415612d5e57612d52612d496064611f9e886014612403565b600e54906124a1565b600e555083905061122a565b612d688382612bdf565b612d8b738f951903c9360345b4e1b536c7f5ae8f88a64e796126d083601461245f565b600354612da690600160a060020a03166126d083601e61245f565b612db08582612528565b95945050505050565b6000612dc6848484612f85565b612e3184612dd261277e565b61139a856040518060600160405280602881526020016133ad60289139600160a060020a038a16600090815260066020526040812090612e1061277e565b600160a060020a031681526020810191909152604001600020549190612952565b5060019392505050565b600061102383600160a060020a0384166130e8565b81546000908210612e955760405160e560020a62461bcd0281526004018080602001828103825260228152602001806131af6022913960400191505060405180910390fd5b826000018281548110612ea457fe5b9060005260206000200154905092915050565b600061139f612ec461277e565b8484612f85565b5490565b6000612ee96000805160206132ad83398151915284611ae7565b80612f075750612f076000805160206132ad83398151915283611ae7565b80612f255750612f256000805160206132ad83398151915233611ae7565b80612f555750612f557ffb1d7521264a126cafd9b576286638679b3b1108a05b47da7156d35bfcb2bb8383611ae7565b8061102357506110237f83e1446b95f1c1d5ef26abb4f97d0668a474fa1461910124bfb15edcb7ae5ed284611ae7565b600160a060020a038316612fcd5760405160e560020a62461bcd0281526004018080602001828103825260258152602001806133f66025913960400191505060405180910390fd5b600160a060020a0382166130155760405160e560020a62461bcd0281526004018080602001828103825260238152602001806131d16023913960400191505060405180910390fd5b613020838383612bda565b61305d8160405180606001604052806026815260200161328760269139600160a060020a0386166000908152600560205260409020549190612952565b600160a060020a03808516600090815260056020526040808220939093559084168152205461308c90826124a1565b600160a060020a0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081815260018301602052604081205480156131a4578354600019808301919081019060009087908390811061311b57fe5b906000526020600020015490508087600001848154811061313857fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061316857fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611026565b600091505061102656fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737343616c6c6572206973206e6f7420646576656c6f70657200000000000000000045524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365dc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be67604504b9dfd7400a1522f49a8b4a100552da9236849581fd59b7363eb48c6a474c596f752063616e277420706572666f726d207468697320616374696f6e20756e74696c2074686520556e6973776170206c697374696e67416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416c6c6f77616e63652063616e6e6f7420626520636c61696d6564206d6f7265207468616e206f6e63652065766572792031302064617973536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734f6e6c792074686520636f6e74726163742063616e2070726f7669646520696e697469616c20556e6973776170206c6971756964697479596f752063616e277420706572666f726d207468697320616374696f6e2061667465722074686520556e6973776170206c697374696e67456e7469726520616c6c6f77616e636520616c726561647920636c61696d65642c206f72206e6f20696e697469616c20616c6f6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212200ab04f1bf91385d891166032603c7ce053f237181174cb6bc1c9a1c993698ddf64736f6c634300060c0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.