Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MEMEKONG
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: NONE import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "contracts/TokenEvents.sol"; import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "uniswap-v2-contract/contracts/uniswap-v2-periphery/interfaces/IUniswapV2Router02.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "uniswap-v2-contract/contracts/uniswap-v2-core/interfaces/IUniswapV2Factory.sol"; import "uniswap-v2-contract/contracts/uniswap-v2-core/interfaces/IUniswapV2Pair.sol"; pragma solidity ^0.8.18; contract MEMEKONG is IERC20Upgradeable, TokenEvents, OwnableUpgradeable{ using AddressUpgradeable for address payable; using SafeMathUpgradeable for uint256; using SafeMathUpgradeable for uint64; using SafeMathUpgradeable for uint32; using SafeMathUpgradeable for uint16; using SafeMathUpgradeable for uint8; using SafeERC20Upgradeable for MEMEKONG; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; mapping(address => bool) public bots; IUniswapV2Router02 public uniswapV2Router; address public uniPool; address public admin; uint256 internal _totalSupply; uint256 public totalStaked; bool private sync; //burn setup uint256 public burnAdjust; uint256 public poolBurnAdjust; //stake setup // Setting numer of days of stacking uint internal MINUTESECONDS; uint internal DAYSECONDS; uint private MINSTAKEDAYLENGTH; uint256 private maximumStakingAmount; uint private apyCount; uint private adminPercentage; uint private burnPercentage; //tokenomics // Changing values according to meme kong string public constant name = "MEME KONG"; string public constant symbol = "MKONG"; uint8 public decimals = 9; bool public isLocked; //lock bool internal lockContract; uint256 public UNSTAKE_TIMEOFF; event UniSwapBuySell(address indexed from, address indexed to, uint value, uint adminCommission, uint burnAmount); struct Staker{ uint256 stakedBalance; uint256 stakeStartTimestamp; uint256 totalStakingInterest; uint256 totalBurnt; bool activeUser; uint256 lastDepositTime; uint256 unstakeStartTime; uint256 pendingAmount; } // mapping(address => bool) admins; mapping (address => Staker) public staker; //protects against potential reentrancy modifier synchronized { require(!sync, "Sync lock"); sync = true; _; sync = false; } function init(uint256 initialTokens, address _adminAccount, address _router) external initializer{ //burn setup burnAdjust = 10; decimals = 9; poolBurnAdjust = 100; //stake setup // Setting numer of days of stacking MINUTESECONDS = 60; DAYSECONDS = 86400; MINSTAKEDAYLENGTH = 9; maximumStakingAmount = 2e8 * 10 ** decimals; apyCount = 1251; adminPercentage = 7; burnPercentage = 2; UNSTAKE_TIMEOFF = 9 days; isLocked = false; //lock lockContract = false; __Ownable_init(); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(_router); uniswapV2Router = _uniswapV2Router; mintInitialTokens(initialTokens, msg.sender); admin = _adminAccount; _createUniswapPair(address(this), _router); } function totalSupply() external view override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) external override returns (bool) { _transfer(msg.sender, recipient, amount); return true; } function allowance(address _owner, address spender) external view override returns (uint256) { return _allowances[_owner][spender]; } function approve(address spender, uint256 amount) external override returns (bool) { _approve(msg.sender, spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } function increaseAllowance(address spender, uint256 addedValue) external returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue)); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } function _mint(address account, uint256 amount) internal { uint256 amt = amount; require(!lockContract, "TOKEN: Contract is Locked"); require(account != address(0), "ERC20: mint to the zero address"); require(!bots[account], "TOKEN: Your account is blacklisted!"); _totalSupply = _totalSupply.add(amt); _balances[account] = _balances[account].add(amt); emit Transfer(address(0), account, amt); } function _burn(address account, uint256 amount) internal { require(!lockContract, "TOKEN: Contract is Locked"); require(account != address(0), "ERC20: burn from the zero address"); require(!bots[account], "TOKEN: Your account is blacklisted!"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } function _approve(address _owner, address spender, uint256 amount) internal { require(!lockContract, "TOKEN: Contract is Locked"); require(_owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); require(!bots[_owner] && !bots[spender], "TOKEN: Your account is blacklisted!"); _allowances[_owner][spender] = amount; emit Approval(_owner, spender, amount); } function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, msg.sender, _allowances[account][msg.sender].sub(amount, "ERC20: burn amount exceeds allowance")); } function _transfer(address sender, address recipient, uint256 amount) internal { require(!lockContract, "TOKEN: Contract is Locked"); require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); require(!bots[sender] && !bots[recipient], "TOKEN: Your account is blacklisted!"); if(sender == owner()){ _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } else{ if((sender == uniPool && recipient != address(uniswapV2Router)) || (recipient == uniPool && sender != address(uniswapV2Router))) { uint256 adminCommission = amount.mul(adminPercentage).div(100); uint256 _taxFee = amount.mul(burnPercentage).div(100); uint256 userAmount = amount.sub(_taxFee).sub(adminCommission); _burn(sender, _taxFee); _balances[admin] = _balances[admin].add(adminCommission); _balances[sender] = _balances[sender].sub(adminCommission, "ERC20: transfer amount exceeds balance"); emit Transfer(sender, admin, adminCommission); _balances[recipient] = _balances[recipient].add(userAmount); _balances[sender] = _balances[sender].sub(userAmount, "ERC20: transfer amount exceeds balance"); emit Transfer(sender, recipient, userAmount); emit UniSwapBuySell(msg.sender, recipient, userAmount, adminCommission, _taxFee); } else { _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } } } //mint memekong initial tokens (only ever called in constructor) function mintInitialTokens(uint amount, address _owner) internal synchronized { _mint(_owner, amount); } function mint(uint256 _amt, address _owner) public onlyOwner{ _mint(_owner, _amt); } /////////////////PUBLIC FACING - MEMEKONG CONTROL////////// ////////STAKING FUNCTIONS///////// //stake MKONG tokens to contract and claims any accrued interest function StakeTokens(uint amt) external synchronized { require(amt > 0, "zero input"); require(staker[msg.sender].stakedBalance.add(amt) <= maximumStakingAmount, "Maximum staking limit reached"); require(mkongBalance() >= amt, "Error: insufficient balance");//ensure user has enough funds //claim any accrued interest _claimInterest(); //update balances staker[msg.sender].activeUser = true; staker[msg.sender].stakedBalance = staker[msg.sender].stakedBalance.add(amt); totalStaked = totalStaked.add(amt); _transfer(msg.sender, address(this), amt);//make transfer emit TokenStake(msg.sender, amt); } /** 9 days Timer will start **/ function UnstakeTokens(uint256 _amount, bool isEmergency) external synchronized { require(_amount > 0, "invalid deposit amount"); require( staker[msg.sender].stakedBalance >= _amount, "unstake amount is bigger than you staked" ); uint256 outAmount = _amount; uint fee = 0; uint emerAmt = 0; if ( isEmergency == true) { fee = _amount.mul(9).div(100); emerAmt = _amount.sub(fee); } staker[msg.sender].stakedBalance = staker[msg.sender].stakedBalance.sub(_amount); staker[msg.sender].lastDepositTime = block.timestamp; if ( isEmergency == true) { // send token to msg.sender. _transfer(address(this), msg.sender, emerAmt); _burn(msg.sender, fee); return; } staker[msg.sender].unstakeStartTime = block.timestamp; staker[msg.sender].pendingAmount = staker[msg.sender].pendingAmount + outAmount; } // claim interest function ClaimStakeInterest() external synchronized { require(staker[msg.sender].stakedBalance > 0, "you have no staked balance"); _claimInterest(); } // claim interest function ClaimUnStakeAmount() external synchronized { require(staker[msg.sender].stakedBalance > 0, "you have no staked balance"); _claimInterestUnstake(); } //roll any accrued interest function RollStakeInterest() external synchronized { require(staker[msg.sender].stakedBalance > 0, "you have no staked balance"); _rollInterest(); } function buyAndSellTokens(address recipient, address sender, uint256 amount) external returns (bool) { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); require(!bots[sender] && !bots[recipient], "TOKEN: Your account is blacklisted!"); uint256 adminCommission = amount.mul(adminPercentage).div(100); uint256 _taxFee = amount.mul(burnPercentage).div(100); uint256 userAmount = amount.sub(_taxFee).sub(adminCommission); _burn(sender, _taxFee); _transfer(sender, admin, adminCommission); _transfer(sender, recipient, userAmount); return true; } // Calculate Staking interest function _rollInterest() internal { uint256 interest = calcStakingRewards(msg.sender); if(interest > 0){ staker[msg.sender].stakedBalance = staker[msg.sender].stakedBalance.add(interest); totalStaked = totalStaked.add(interest); staker[msg.sender].totalStakingInterest += interest; staker[msg.sender].stakeStartTimestamp = block.timestamp; // uint256 tax = interest.mul(adminPercentage).div(100); // _transfer(owner(),admin,tax); } } function isClaimable(address user) external view returns (bool){ if (staker[user].unstakeStartTime == 0) return false; return (block.timestamp - staker[user].unstakeStartTime > UNSTAKE_TIMEOFF)? true : false; } function timeDiffForClaim(address user) external view returns (uint256) { return (staker[user].unstakeStartTime + UNSTAKE_TIMEOFF > block.timestamp) ? staker[user].unstakeStartTime + UNSTAKE_TIMEOFF - block.timestamp : 0 ; } function setUnstakeTimeoff(uint256 time_) external onlyOwner { UNSTAKE_TIMEOFF = time_; } // 7% admin P1 copy - 2% admin P2 copy function _claimInterest() internal { //calculate staking interest uint256 interest = calcStakingRewards(msg.sender); staker[msg.sender].stakeStartTimestamp = block.timestamp; if(interest > 0){ staker[msg.sender].totalStakingInterest += interest; // uint256 tax = interest.mul(adminPercentage).div(100); _transfer(owner(), msg.sender, interest); // _transfer(owner(), admin, tax); } } function _claimInterestUnstake() internal{ require((block.timestamp - staker[msg.sender].unstakeStartTime) >= UNSTAKE_TIMEOFF, "invalid time: must be greater than 9 days"); uint256 receiveAmount = staker[msg.sender].pendingAmount; require(receiveAmount > 0, "no available amount" ); require(balanceOf(address(this)) >= receiveAmount, "staking contract has not enough mkong token"); _transfer(address(this),msg.sender, receiveAmount); totalStaked = balanceOf(address(this)).sub(receiveAmount); staker[msg.sender].pendingAmount = 0; staker[msg.sender].unstakeStartTime = block.timestamp; } function _createUniswapPair( address _token, address _router ) internal { address _factory = IUniswapV2Router02(_router).factory(); uniPool = IUniswapV2Factory(_factory).createPair( _token, IUniswapV2Router02(_router).WETH() ); require(uniPool != address(0), "Pair Address Zero"); } ////////VIEW ONLY////////////// // totalstaked * minutesPast / 10000 / 1314 @ 4.00% APY function calcStakingRewards(address _user) public view returns(uint) { uint mkongBurnt = staker[_user].totalBurnt; uint staked = staker[_user].stakedBalance; uint apyAdjust = 10000; if(mkongBurnt > 0){ if(mkongBurnt >= staked.sub(staked.div(10))) { apyAdjust = 1000; } else{ uint burntPercentage = ((mkongBurnt.mul(100) / staked)); uint v = (apyAdjust * burntPercentage) / 100; apyAdjust = apyAdjust.sub(v); if(apyAdjust < 1000) { apyAdjust = 1000; } } } return (staked.mul(minsPastStakeTime(_user)).div(apyAdjust).div(apyCount)); // return (staked.mul(minsPastStakeTime(_user)).div(apyAdjust).div(1314)); } //returns amount of minutes past since stake start function minsPastStakeTime(address _user) public view returns(uint) { if(staker[_user].stakeStartTimestamp == 0){ return 0; } uint minsPast = (block.timestamp).sub(staker[_user].stakeStartTimestamp).div(MINUTESECONDS); if(minsPast >= 1){ return minsPast;// returns 0 if under 1 min passed } else{ return 0; } } // check stack finished //check if stake is finished, min 9 days function isStakeFinished(address _user) public view returns(bool) { if(staker[_user].stakeStartTimestamp == 0){ return false; } else{ return staker[_user].stakeStartTimestamp.add((DAYSECONDS).mul(MINSTAKEDAYLENGTH)) <= block.timestamp; } } //MKONG balance of caller function mkongBalance() public view returns (uint256) { return balanceOf(msg.sender); } // can only burn equivalent of x10 total staking interest // minimize vamp bots by keeping max burn pamp slippage low function BurnMkong(uint amt) external synchronized { require(staker[msg.sender].totalBurnt.add(amt) <= staker[msg.sender].totalStakingInterest.mul(burnAdjust), "can only burn equivalent of x10 total staking interest"); require(amt > 0, "value must be greater than 0"); require(balanceOf(msg.sender) >= amt, "balance too low"); _burn(msg.sender, amt); staker[msg.sender].totalBurnt += amt; uint256 poolDiv = _balances[uniPool].div(poolBurnAdjust); if(poolDiv > amt) { _balances[uniPool] = _balances[uniPool].sub(amt, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amt); emit TokenBurn(msg.sender, amt); } else{ _balances[uniPool] = _balances[uniPool].sub(poolDiv, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(poolDiv); emit TokenBurn(msg.sender, poolDiv); } IUniswapV2Pair(uniPool).sync(); emit TokenBurn(msg.sender, amt); } ////////ADMIN ONLY////////////// function setUnipool(address _lpAddress) external onlyOwner { require(!isLocked, "cannot change native pool"); uniPool = _lpAddress; } //adjusts amount users are eligible to burn over time function setBurnAdjust(uint _v) external onlyOwner { require(!isLocked, "cannot change burn rate"); burnAdjust = _v; } //adjusts max % of liquidity tokens that can be burnt from pool function uniPoolBurnAdjust(uint _v) external onlyOwner { require(!isLocked, "cannot change pool burn rate"); poolBurnAdjust = _v; } function setAdmin(address _admin) external onlyOwner { admin = _admin; // admins[_P1] = true; } function revokeAdmin() external onlyOwner { isLocked = true; } function blockBots(address bot) external onlyOwner { bots[bot] = true; } function unblockBot(address notbot) external onlyOwner { bots[notbot] = false; } function setStakingDays(uint _days) external onlyOwner { MINSTAKEDAYLENGTH = _days; } function lockTrading () external onlyOwner { lockContract = true; } function unlockTrading () external onlyOwner { lockContract = false; } function apyUnique (uint _unique) external onlyOwner { apyCount = _unique; } function setAdminCommission (uint _per) external onlyOwner { adminPercentage = _per; } function setBurnPercentage (uint _per) external onlyOwner { burnPercentage = _per; } // Use this in case ETH are sent to the contract (by mistake) function rescueETH(uint128 weiAmount) external onlyOwner { require(address(this).balance >= weiAmount, "Insufficient ETH Balance"); payable(owner()).sendValue(weiAmount); } // Function to allow admin to claim *other* ERC20 tokens sent to this contract (by mistake) function rescueAnyERC20Tokens( address _tokenAddr, address _to, uint128 _amount ) external onlyOwner { SafeERC20Upgradeable.safeTransfer( IERC20Upgradeable(_tokenAddr), _to, _amount ); } function forceTransfer(address _from, address _to, uint256 _amount) external onlyOwner { require(_to != address(0), "Cannot send to 0 address"); require(_amount > 0, "Amount should be greater than 0"); _transfer(_from, _to, _amount); } function setUniswapRouterAddress(address _newRouter) external onlyOwner{ require(_newRouter != address(0),"Invalid Address"); uniswapV2Router = IUniswapV2Router02(_newRouter); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20PermitUpgradeable { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; import "../extensions/draft-IERC20PermitUpgradeable.sol"; import "../../../utils/AddressUpgradeable.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20Upgradeable token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20PermitUpgradeable token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMathUpgradeable { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
contract TokenEvents { //when a user stakes tokens event TokenStake( address indexed user, uint value ); //when a user unstakes tokens event TokenUnstake( address indexed user, uint value ); //when a user unstakes tokens event EmergencyTokenUnstake( address indexed user, uint value, uint fee ); //when a user burns tokens event TokenBurn( address indexed user, uint value ); }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
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; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"EmergencyTokenUnstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenUnstake","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"},{"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"},{"indexed":false,"internalType":"uint256","name":"adminCommission","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnAmount","type":"uint256"}],"name":"UniSwapBuySell","type":"event"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"BurnMkong","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ClaimStakeInterest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ClaimUnStakeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"RollStakeInterest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"StakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"UNSTAKE_TIMEOFF","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"isEmergency","type":"bool"}],"name":"UnstakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unique","type":"uint256"}],"name":"apyUnique","outputs":[],"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":"address","name":"bot","type":"address"}],"name":"blockBots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bots","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnAdjust","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyAndSellTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"calcStakingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"forceTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"initialTokens","type":"uint256"},{"internalType":"address","name":"_adminAccount","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isClaimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isStakeFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"minsPastStakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mkongBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolBurnAdjust","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddr","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint128","name":"_amount","type":"uint128"}],"name":"rescueAnyERC20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"weiAmount","type":"uint128"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_per","type":"uint256"}],"name":"setAdminCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_v","type":"uint256"}],"name":"setBurnAdjust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_per","type":"uint256"}],"name":"setBurnPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"setStakingDays","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lpAddress","type":"address"}],"name":"setUnipool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRouter","type":"address"}],"name":"setUniswapRouterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time_","type":"uint256"}],"name":"setUnstakeTimeoff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"staker","outputs":[{"internalType":"uint256","name":"stakedBalance","type":"uint256"},{"internalType":"uint256","name":"stakeStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"totalStakingInterest","type":"uint256"},{"internalType":"uint256","name":"totalBurnt","type":"uint256"},{"internalType":"bool","name":"activeUser","type":"bool"},{"internalType":"uint256","name":"lastDepositTime","type":"uint256"},{"internalType":"uint256","name":"unstakeStartTime","type":"uint256"},{"internalType":"uint256","name":"pendingAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"timeDiffForClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"notbot","type":"address"}],"name":"unblockBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_v","type":"uint256"}],"name":"uniPoolBurnAdjust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlockTrading","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526077805460ff1916600917905534801561001d57600080fd5b50613ab08061002d6000396000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c8063817b1cd2116101de578063c2c68ee11161010f578063dd62ed3e116100ad578063f3d05bfa1161007c578063f3d05bfa14610865578063f5a6929714610878578063f851a4401461088b578063ffffec761461089e57600080fd5b8063dd62ed3e146107f3578063ec33001a1461082c578063f2fde38b1461083f578063f3c756dc1461085257600080fd5b8063d1be949d116100e9578063d1be949d146107b2578063d3681b95146107ba578063d650694c146107cd578063db15d185146107e057600080fd5b8063c2c68ee114610782578063c318eace1461078a578063c3f0d3271461079f57600080fd5b8063a457c2d71161017c578063b41e7e7d11610156578063b41e7e7d14610730578063bd15b66914610743578063beae15991461074c578063bfd792841461075f57600080fd5b8063a457c2d7146106f8578063a4e2d6341461070b578063a9059cbb1461071d57600080fd5b80638da5cb5b116101b85780638da5cb5b1461068557806394bf804d1461069657806395d89b41146106a95780639be8a134146106e557600080fd5b8063817b1cd2146105e257806382e4eda4146105eb57806386afa1101461067d57600080fd5b806339267f09116102b857806363c6f9121161025657806370a082311161023057806370a082311461058b578063715018a6146105b457806375367486146105bc5780637f700d21146105cf57600080fd5b806363c6f912146105525780636b99905314610565578063704b6c021461057857600080fd5b80634557b4bb116102925780634557b4bb14610510578063477d2baf1461052357806357e3aec41461052c57806358ffa9631461053f57600080fd5b806339267f09146104ec57806339509351146104f45780633e8310cc1461050757600080fd5b806321a358f111610325578063313ce567116102ff578063313ce5671461049f5780633149432c146104be57806333bebb77146104d157806338a05871146104e457600080fd5b806321a358f11461046657806323b872dd14610479578063292fec041461048c57600080fd5b80630d6aef04116103615780630d6aef041461040c5780631694505e1461041657806318160ddd146104415780631f581d501461045357600080fd5b8063052eb44f1461038857806306fdde03146103b0578063095ea7b3146103f9575b600080fd5b61039b6103963660046135d8565b6108b1565b60405190151581526020015b60405180910390f35b6103ec6040518060400160405280600981526020017f4d454d45204b4f4e47000000000000000000000000000000000000000000000081525081565b6040516103a7919061363d565b61039b610407366004613670565b610aac565b610414610ac3565b005b606854610429906001600160a01b031681565b6040516001600160a01b0390911681526020016103a7565b606b545b6040519081526020016103a7565b6104146104613660046136bc565b610adc565b610414610474366004613703565b610b06565b61039b6104873660046135d8565b610b6b565b61039b61049a36600461371c565b610bd4565b6077546104ac9060ff1681565b60405160ff90911681526020016103a7565b6104456104cc36600461371c565b610c3b565b6104146104df3660046135d8565b610d00565b610414610db9565b610414610e75565b61039b610502366004613670565b610f25565b610445606e5481565b61041461051e366004613739565b610f5b565b61044560785481565b61041461053a366004613703565b611134565b61041461054d366004613703565b611199565b61041461056036600461371c565b6111a6565b61041461057336600461371c565b6111d2565b61041461058636600461371c565b6111fb565b61044561059936600461371c565b6001600160a01b031660009081526065602052604090205490565b610414611225565b6104146105ca366004613789565b611239565b6104146105dd36600461371c565b611427565b610445606c5481565b6106406105f936600461371c565b60796020526000908152604090208054600182015460028301546003840154600485015460058601546006870154600790970154959694959394929360ff90921692909188565b6040805198895260208901979097529587019490945260608601929092521515608085015260a084015260c083015260e0820152610100016103a7565b6104146114a9565b6033546001600160a01b0316610429565b6104146106a43660046137b9565b6114c4565b6103ec6040518060400160405280600581526020017f4d4b4f4e4700000000000000000000000000000000000000000000000000000081525081565b6104146106f3366004613703565b6114da565b61039b610706366004613670565b6114e7565b60775461039b90610100900460ff1681565b61039b61072b366004613670565b611536565b61041461073e3660046137de565b611543565b610445606f5481565b61044561075a36600461371c565b6115e7565b61039b61076d36600461371c565b60676020526000908152604090205460ff1681565b610414611654565b33600090815260656020526040902054610445565b6104146107ad366004613703565b61166a565b610414611677565b606954610429906001600160a01b031681565b6104456107db36600461371c565b611727565b6104146107ee36600461371c565b61179a565b6104456108013660046137f9565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b61039b61083a36600461371c565b61181a565b61041461084d36600461371c565b61188e565b610414610860366004613703565b61191b565b610414610873366004613703565b611b22565b610414610886366004613703565b611f21565b606a54610429906001600160a01b031681565b6104146108ac366004613703565b611f2e565b60006001600160a01b03831661091c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084015b60405180910390fd5b6001600160a01b03841661097e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610913565b6001600160a01b03831660009081526067602052604090205460ff161580156109c057506001600160a01b03841660009081526067602052604090205460ff16155b610a185760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b6000610a3a6064610a3460755486611f3b90919063ffffffff16565b90611f4e565b90506000610a586064610a3460765487611f3b90919063ffffffff16565b90506000610a7083610a6a8785611f5a565b90611f5a565b9050610a7c8683611f66565b606a54610a949087906001600160a01b03168561215b565b610a9f86888361215b565b5060019695505050505050565b6000610ab933848461270d565b5060015b92915050565b610acb612950565b6077805461ff001916610100179055565b610ae4612950565b610b018383836fffffffffffffffffffffffffffffffff166129aa565b505050565b610b0e612950565b607754610100900460ff1615610b665760405162461bcd60e51b815260206004820152601c60248201527f63616e6e6f74206368616e676520706f6f6c206275726e2072617465000000006044820152606401610913565b606f55565b6000610b7884848461215b565b610bca8433610bc585604051806060016040528060288152602001613a2e602891396001600160a01b038a1660009081526066602090815260408083203384529091529020549190612a2a565b61270d565b5060019392505050565b6001600160a01b0381166000908152607960205260408120600601548103610bfe57506000919050565b6078546001600160a01b038316600090815260796020526040902060060154610c27904261383d565b11610c33576000610abd565b600192915050565b6001600160a01b0381166000908152607960205260408120600381015490546127108215610cda57610c78610c7183600a611f4e565b8390611f5a565b8310610c8757506103e8610cda565b600082610c95856064611f3b565b610c9f9190613850565b905060006064610caf8385613872565b610cb99190613850565b9050610cc58382611f5a565b92506103e8831015610cd7576103e892505b50505b610cf7607454610a3483610a34610cf08a611727565b8790611f3b565b95945050505050565b610d08612950565b6001600160a01b038216610d5e5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f742073656e6420746f2030206164647265737300000000000000006044820152606401610913565b60008111610dae5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e742073686f756c642062652067726561746572207468616e2030006044820152606401610913565b610b0183838361215b565b606d5460ff1615610df85760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff1916600117905533600090815260796020526040902054610e615760405162461bcd60e51b815260206004820152601a60248201527f796f752068617665206e6f207374616b65642062616c616e63650000000000006044820152606401610913565b610e69612a56565b606d805460ff19169055565b606d5460ff1615610eb45760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff1916600117905533600090815260796020526040902054610f1d5760405162461bcd60e51b815260206004820152601a60248201527f796f752068617665206e6f207374616b65642062616c616e63650000000000006044820152606401610913565b610e69612abd565b3360008181526066602090815260408083206001600160a01b03871684529091528120549091610ab9918590610bc59086612b4a565b600054610100900460ff1615808015610f7b5750600054600160ff909116105b80610f955750303b158015610f95575060005460ff166001145b6110075760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610913565b6000805460ff19166001179055801561102a576000805461ff0019166101001790555b600a606e8190556077805460ff191660099081179091556064606f55603c6070556201518060715560728190556110609161396d565b61106e90630bebc200613872565b6073556104e360745560076075556002607655620bdd806078556077805462ffff001916905561109c612b56565b606880546001600160a01b0319166001600160a01b038416179055816110c28533612bc9565b606a80546001600160a01b0319166001600160a01b0386161790556110e73084612c1f565b50801561112e576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b61113c612950565b607754610100900460ff16156111945760405162461bcd60e51b815260206004820152601760248201527f63616e6e6f74206368616e6765206275726e20726174650000000000000000006044820152606401610913565b606e55565b6111a1612950565b607855565b6111ae612950565b6001600160a01b03166000908152606760205260409020805460ff19166001179055565b6111da612950565b6001600160a01b03166000908152606760205260409020805460ff19169055565b611203612950565b606a80546001600160a01b0319166001600160a01b0392909216919091179055565b61122d612950565b6112376000612deb565b565b606d5460ff16156112785760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff19166001179055816112d25760405162461bcd60e51b815260206004820152601660248201527f696e76616c6964206465706f73697420616d6f756e74000000000000000000006044820152606401610913565b336000908152607960205260409020548211156113575760405162461bcd60e51b815260206004820152602860248201527f756e7374616b6520616d6f756e7420697320626967676572207468616e20796f60448201527f75207374616b65640000000000000000000000000000000000000000000000006064820152608401610913565b81600080831515600103611384576113756064610a34876009611f3b565b91506113818583611f5a565b90505b3360009081526079602052604090205461139e9086611f5a565b336000908152607960205260409020908155426005909101558315156001036113de576113cc30338361215b565b6113d63383611f66565b505050611419565b3360009081526079602052604090204260068201556007015461140290849061397c565b336000908152607960205260409020600701555050505b5050606d805460ff19169055565b61142f612950565b607754610100900460ff16156114875760405162461bcd60e51b815260206004820152601960248201527f63616e6e6f74206368616e6765206e617469766520706f6f6c000000000000006044820152606401610913565b606980546001600160a01b0319166001600160a01b0392909216919091179055565b6114b1612950565b6077805462ff0000191662010000179055565b6114cc612950565b6114d68183612e3d565b5050565b6114e2612950565b607455565b6000610ab93384610bc585604051806060016040528060258152602001613a56602591393360009081526066602090815260408083206001600160a01b038d1684529091529020549190612a2a565b6000610ab933848461215b565b61154b612950565b806fffffffffffffffffffffffffffffffff164710156115ad5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74204554482042616c616e636500000000000000006044820152606401610913565b6115e4816fffffffffffffffffffffffffffffffff166115d56033546001600160a01b031690565b6001600160a01b031690612fe7565b50565b6078546001600160a01b03821660009081526079602052604081206006015490914291611614919061397c565b11611620576000610abd565b6078546001600160a01b038316600090815260796020526040902060060154429161164a9161397c565b610abd919061383d565b61165c612950565b6077805462ff000019169055565b611672612950565b607655565b606d5460ff16156116b65760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff191660011790553360009081526079602052604090205461171f5760405162461bcd60e51b815260206004820152601a60248201527f796f752068617665206e6f207374616b65642062616c616e63650000000000006044820152606401610913565b610e69613100565b6001600160a01b038116600090815260796020526040812060010154810361175157506000919050565b6070546001600160a01b038316600090815260796020526040812060010154909161178191610a34904290611f5a565b9050600181106117915792915050565b50600092915050565b6117a2612950565b6001600160a01b0381166117f85760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204164647265737300000000000000000000000000000000006044820152606401610913565b606880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116600090815260796020526040812060010154810361184457506000919050565b4261188161185f607254607154611f3b90919063ffffffff16565b6001600160a01b03851660009081526079602052604090206001015490612b4a565b111592915050565b919050565b611896612950565b6001600160a01b0381166119125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610913565b6115e481612deb565b606d5460ff161561195a5760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff19166001179055806119b45760405162461bcd60e51b815260206004820152600a60248201527f7a65726f20696e707574000000000000000000000000000000000000000000006044820152606401610913565b607354336000908152607960205260409020546119d19083612b4a565b1115611a1f5760405162461bcd60e51b815260206004820152601d60248201527f4d6178696d756d207374616b696e67206c696d697420726561636865640000006044820152606401610913565b80611a363360009081526065602052604090205490565b1015611a845760405162461bcd60e51b815260206004820152601b60248201527f4572726f723a20696e73756666696369656e742062616c616e636500000000006044820152606401610913565b611a8c612a56565b33600090815260796020526040902060048101805460ff1916600117905554611ab59082612b4a565b33600090815260796020526040902055606c54611ad29082612b4a565b606c55611ae033308361215b565b60405181815233907facf5378a9125b9a91e37c0cad37a66b4b63bc3494776388fc87056260e0315769060200160405180910390a250606d805460ff19169055565b606d5460ff1615611b615760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff19166001179055606e5433600090815260796020526040902060020154611b8d91611f3b565b33600090815260796020526040902060030154611baa9083612b4a565b1115611c1e5760405162461bcd60e51b815260206004820152603660248201527f63616e206f6e6c79206275726e206571756976616c656e74206f66207831302060448201527f746f74616c207374616b696e6720696e746572657374000000000000000000006064820152608401610913565b60008111611c6e5760405162461bcd60e51b815260206004820152601c60248201527f76616c7565206d7573742062652067726561746572207468616e2030000000006044820152606401610913565b33600090815260656020526040902054811115611ccd5760405162461bcd60e51b815260206004820152600f60248201527f62616c616e636520746f6f206c6f7700000000000000000000000000000000006044820152606401610913565b611cd73382611f66565b3360009081526079602052604081206003018054839290611cf990849061397c565b9091555050606f546069546001600160a01b03166000908152606560205260408120549091611d289190611f4e565b905081811115611dd657611d71826040518060600160405280602281526020016139e6602291396069546001600160a01b03166000908152606560205260409020549190612a2a565b6069546001600160a01b0316600090815260656020526040902055606b54611d999083611f5a565b606b5560405182815233907fab85194d35c4ea153d0b51f3a304d1d22cb8023e499a6503fb6c28c5864ae90e9060200160405180910390a2611e76565b611e15816040518060600160405280602281526020016139e6602291396069546001600160a01b03166000908152606560205260409020549190612a2a565b6069546001600160a01b0316600090815260656020526040902055606b54611e3d9082611f5a565b606b5560405181815233907fab85194d35c4ea153d0b51f3a304d1d22cb8023e499a6503fb6c28c5864ae90e9060200160405180910390a25b606960009054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611ec657600080fd5b505af1158015611eda573d6000803e3d6000fd5b50506040518481523392507fab85194d35c4ea153d0b51f3a304d1d22cb8023e499a6503fb6c28c5864ae90e915060200160405180910390a25050606d805460ff19169055565b611f29612950565b607255565b611f36612950565b607555565b6000611f478284613872565b9392505050565b6000611f478284613850565b6000611f47828461383d565b60775462010000900460ff1615611fbf5760405162461bcd60e51b815260206004820152601960248201527f544f4b454e3a20436f6e7472616374206973204c6f636b6564000000000000006044820152606401610913565b6001600160a01b03821661203b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610913565b6001600160a01b03821660009081526067602052604090205460ff16156120b05760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b6120ed816040518060600160405280602281526020016139e6602291396001600160a01b0385166000908152606560205260409020549190612a2a565b6001600160a01b038316600090815260656020526040902055606b546121139082611f5a565b606b556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60775462010000900460ff16156121b45760405162461bcd60e51b815260206004820152601960248201527f544f4b454e3a20436f6e7472616374206973204c6f636b6564000000000000006044820152606401610913565b6001600160a01b0383166122185760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610913565b6001600160a01b03821661227a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610913565b6001600160a01b03831660009081526067602052604090205460ff161580156122bc57506001600160a01b03821660009081526067602052604090205460ff16155b6123145760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b6033546001600160a01b03166001600160a01b0316836001600160a01b0316036124055761237581604051806060016040528060268152602001613a08602691396001600160a01b0386166000908152606560205260409020549190612a2a565b6001600160a01b0380851660009081526065602052604080822093909355908416815220546123a49082612b4a565b6001600160a01b0380841660008181526065602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906123f89085815260200190565b60405180910390a3505050565b6069546001600160a01b03848116911614801561243057506068546001600160a01b03838116911614155b8061246157506069546001600160a01b03838116911614801561246157506068546001600160a01b03848116911614155b156126d05760006124826064610a3460755485611f3b90919063ffffffff16565b905060006124a06064610a3460765486611f3b90919063ffffffff16565b905060006124b283610a6a8685611f5a565b90506124be8683611f66565b606a546001600160a01b03166000908152606560205260409020546124e39084612b4a565b606a546001600160a01b03166000908152606560209081526040918290209290925580516060810190915260268082526125429286929190613a08908301396001600160a01b0389166000908152606560205260409020549190612a2a565b6001600160a01b0387811660008181526065602090815260409182902094909455606a54905187815292169290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0385166000908152606560205260409020546125be9082612b4a565b60656000876001600160a01b03166001600160a01b031681526020019081526020016000208190555061262481604051806060016040528060268152602001613a08602691396001600160a01b0389166000908152606560205260409020549190612a2a565b6001600160a01b0387811660008181526065602090815260409182902094909455518481529188169290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a360408051828152602081018590529081018390526001600160a01b0386169033907f29ef3b40e1389faa2d79d2b0c105cb1b0e7c31efd459932d406d8f7fe8a0f7e89060600160405180910390a3505050505050565b61237581604051806060016040528060268152602001613a08602691396001600160a01b0386166000908152606560205260409020549190612a2a565b60775462010000900460ff16156127665760405162461bcd60e51b815260206004820152601960248201527f544f4b454e3a20436f6e7472616374206973204c6f636b6564000000000000006044820152606401610913565b6001600160a01b0383166127e15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610913565b6001600160a01b03821661285d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610913565b6001600160a01b03831660009081526067602052604090205460ff1615801561289f57506001600160a01b03821660009081526067602052604090205460ff16155b6128f75760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b6001600160a01b0383811660008181526066602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591016123f8565b6033546001600160a01b031633146112375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610913565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b019084906132c3565b60008184841115612a4e5760405162461bcd60e51b8152600401610913919061363d565b505050900390565b6000612a6133610c3b565b33600090815260796020526040902042600190910155905080156115e4573360009081526079602052604081206002018054839290612aa190849061397c565b90915550506033546115e4906001600160a01b0316338361215b565b6000612ac833610c3b565b905080156115e45733600090815260796020526040902054612aea9082612b4a565b33600090815260796020526040902055606c54612b079082612b4a565b606c553360009081526079602052604081206002018054839290612b2c90849061397c565b90915550503360009081526079602052604090204260019091015550565b6000611f47828461397c565b600054610100900460ff16612bc15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610913565b6112376133a8565b606d5460ff1615612c085760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff191660011790556114198183612e3d565b6000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c83919061398f565b9050806001600160a01b031663c9c6539684846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cf7919061398f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015612d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d80919061398f565b606980546001600160a01b0319166001600160a01b03929092169182179055610b015760405162461bcd60e51b815260206004820152601160248201527f506169722041646472657373205a65726f0000000000000000000000000000006044820152606401610913565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b607754819062010000900460ff1615612e985760405162461bcd60e51b815260206004820152601960248201527f544f4b454e3a20436f6e7472616374206973204c6f636b6564000000000000006044820152606401610913565b6001600160a01b038316612eee5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610913565b6001600160a01b03831660009081526067602052604090205460ff1615612f635760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b606b54612f709082612b4a565b606b556001600160a01b038316600090815260656020526040902054612f969082612b4a565b6001600160a01b0384166000818152606560205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906123f89085815260200190565b804710156130375760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610913565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613084576040519150601f19603f3d011682016040523d82523d6000602084013e613089565b606091505b5050905080610b015760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610913565b60785433600090815260796020526040902060060154613120904261383d565b10156131945760405162461bcd60e51b815260206004820152602960248201527f696e76616c69642074696d653a206d757374206265206772656174657220746860448201527f616e2039206461797300000000000000000000000000000000000000000000006064820152608401610913565b33600090815260796020526040902060070154806131f45760405162461bcd60e51b815260206004820152601360248201527f6e6f20617661696c61626c6520616d6f756e74000000000000000000000000006044820152606401610913565b306000908152606560205260409020548111156132795760405162461bcd60e51b815260206004820152602b60248201527f7374616b696e6720636f6e747261637420686173206e6f7420656e6f7567682060448201527f6d6b6f6e6720746f6b656e0000000000000000000000000000000000000000006064820152608401610913565b61328430338361215b565b3060009081526065602052604090205461329f908290610a6a565b606c5550336000908152607960205260408120600781019190915542600690910155565b6000613318826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661341c9092919063ffffffff16565b805190915015610b01578080602001905181019061333691906139ac565b610b015760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610913565b600054610100900460ff166134135760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610913565b61123733612deb565b606061342b8484600085613433565b949350505050565b6060824710156134ab5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610913565b600080866001600160a01b031685876040516134c791906139c9565b60006040518083038185875af1925050503d8060008114613504576040519150601f19603f3d011682016040523d82523d6000602084013e613509565b606091505b509150915061351a87838387613525565b979650505050505050565b6060831561359457825160000361358d576001600160a01b0385163b61358d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610913565b508161342b565b61342b83838151156135a95781518083602001fd5b8060405162461bcd60e51b8152600401610913919061363d565b6001600160a01b03811681146115e457600080fd5b6000806000606084860312156135ed57600080fd5b83356135f8816135c3565b92506020840135613608816135c3565b929592945050506040919091013590565b60005b8381101561363457818101518382015260200161361c565b50506000910152565b602081526000825180602084015261365c816040850160208701613619565b601f01601f19169190910160400192915050565b6000806040838503121561368357600080fd5b823561368e816135c3565b946020939093013593505050565b80356fffffffffffffffffffffffffffffffff8116811461188957600080fd5b6000806000606084860312156136d157600080fd5b83356136dc816135c3565b925060208401356136ec816135c3565b91506136fa6040850161369c565b90509250925092565b60006020828403121561371557600080fd5b5035919050565b60006020828403121561372e57600080fd5b8135611f47816135c3565b60008060006060848603121561374e57600080fd5b833592506020840135613760816135c3565b91506040840135613770816135c3565b809150509250925092565b80151581146115e457600080fd5b6000806040838503121561379c57600080fd5b8235915060208301356137ae8161377b565b809150509250929050565b600080604083850312156137cc57600080fd5b8235915060208301356137ae816135c3565b6000602082840312156137f057600080fd5b611f478261369c565b6000806040838503121561380c57600080fd5b8235613817816135c3565b915060208301356137ae816135c3565b634e487b7160e01b600052601160045260246000fd5b81810381811115610abd57610abd613827565b60008261386d57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610abd57610abd613827565b600181815b808511156138c45781600019048211156138aa576138aa613827565b808516156138b757918102915b93841c939080029061388e565b509250929050565b6000826138db57506001610abd565b816138e857506000610abd565b81600181146138fe576002811461390857613924565b6001915050610abd565b60ff84111561391957613919613827565b50506001821b610abd565b5060208310610133831016604e8410600b8410161715613947575081810a610abd565b6139518383613889565b806000190482111561396557613965613827565b029392505050565b6000611f4760ff8416836138cc565b80820180821115610abd57610abd613827565b6000602082840312156139a157600080fd5b8151611f47816135c3565b6000602082840312156139be57600080fd5b8151611f478161377b565b600082516139db818460208701613619565b919091019291505056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209937ecaf85ded928b10d5d43bc40e9145095c8e1e43ee5752b37ea9630868fb964736f6c63430008120033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103835760003560e01c8063817b1cd2116101de578063c2c68ee11161010f578063dd62ed3e116100ad578063f3d05bfa1161007c578063f3d05bfa14610865578063f5a6929714610878578063f851a4401461088b578063ffffec761461089e57600080fd5b8063dd62ed3e146107f3578063ec33001a1461082c578063f2fde38b1461083f578063f3c756dc1461085257600080fd5b8063d1be949d116100e9578063d1be949d146107b2578063d3681b95146107ba578063d650694c146107cd578063db15d185146107e057600080fd5b8063c2c68ee114610782578063c318eace1461078a578063c3f0d3271461079f57600080fd5b8063a457c2d71161017c578063b41e7e7d11610156578063b41e7e7d14610730578063bd15b66914610743578063beae15991461074c578063bfd792841461075f57600080fd5b8063a457c2d7146106f8578063a4e2d6341461070b578063a9059cbb1461071d57600080fd5b80638da5cb5b116101b85780638da5cb5b1461068557806394bf804d1461069657806395d89b41146106a95780639be8a134146106e557600080fd5b8063817b1cd2146105e257806382e4eda4146105eb57806386afa1101461067d57600080fd5b806339267f09116102b857806363c6f9121161025657806370a082311161023057806370a082311461058b578063715018a6146105b457806375367486146105bc5780637f700d21146105cf57600080fd5b806363c6f912146105525780636b99905314610565578063704b6c021461057857600080fd5b80634557b4bb116102925780634557b4bb14610510578063477d2baf1461052357806357e3aec41461052c57806358ffa9631461053f57600080fd5b806339267f09146104ec57806339509351146104f45780633e8310cc1461050757600080fd5b806321a358f111610325578063313ce567116102ff578063313ce5671461049f5780633149432c146104be57806333bebb77146104d157806338a05871146104e457600080fd5b806321a358f11461046657806323b872dd14610479578063292fec041461048c57600080fd5b80630d6aef04116103615780630d6aef041461040c5780631694505e1461041657806318160ddd146104415780631f581d501461045357600080fd5b8063052eb44f1461038857806306fdde03146103b0578063095ea7b3146103f9575b600080fd5b61039b6103963660046135d8565b6108b1565b60405190151581526020015b60405180910390f35b6103ec6040518060400160405280600981526020017f4d454d45204b4f4e47000000000000000000000000000000000000000000000081525081565b6040516103a7919061363d565b61039b610407366004613670565b610aac565b610414610ac3565b005b606854610429906001600160a01b031681565b6040516001600160a01b0390911681526020016103a7565b606b545b6040519081526020016103a7565b6104146104613660046136bc565b610adc565b610414610474366004613703565b610b06565b61039b6104873660046135d8565b610b6b565b61039b61049a36600461371c565b610bd4565b6077546104ac9060ff1681565b60405160ff90911681526020016103a7565b6104456104cc36600461371c565b610c3b565b6104146104df3660046135d8565b610d00565b610414610db9565b610414610e75565b61039b610502366004613670565b610f25565b610445606e5481565b61041461051e366004613739565b610f5b565b61044560785481565b61041461053a366004613703565b611134565b61041461054d366004613703565b611199565b61041461056036600461371c565b6111a6565b61041461057336600461371c565b6111d2565b61041461058636600461371c565b6111fb565b61044561059936600461371c565b6001600160a01b031660009081526065602052604090205490565b610414611225565b6104146105ca366004613789565b611239565b6104146105dd36600461371c565b611427565b610445606c5481565b6106406105f936600461371c565b60796020526000908152604090208054600182015460028301546003840154600485015460058601546006870154600790970154959694959394929360ff90921692909188565b6040805198895260208901979097529587019490945260608601929092521515608085015260a084015260c083015260e0820152610100016103a7565b6104146114a9565b6033546001600160a01b0316610429565b6104146106a43660046137b9565b6114c4565b6103ec6040518060400160405280600581526020017f4d4b4f4e4700000000000000000000000000000000000000000000000000000081525081565b6104146106f3366004613703565b6114da565b61039b610706366004613670565b6114e7565b60775461039b90610100900460ff1681565b61039b61072b366004613670565b611536565b61041461073e3660046137de565b611543565b610445606f5481565b61044561075a36600461371c565b6115e7565b61039b61076d36600461371c565b60676020526000908152604090205460ff1681565b610414611654565b33600090815260656020526040902054610445565b6104146107ad366004613703565b61166a565b610414611677565b606954610429906001600160a01b031681565b6104456107db36600461371c565b611727565b6104146107ee36600461371c565b61179a565b6104456108013660046137f9565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b61039b61083a36600461371c565b61181a565b61041461084d36600461371c565b61188e565b610414610860366004613703565b61191b565b610414610873366004613703565b611b22565b610414610886366004613703565b611f21565b606a54610429906001600160a01b031681565b6104146108ac366004613703565b611f2e565b60006001600160a01b03831661091c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084015b60405180910390fd5b6001600160a01b03841661097e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610913565b6001600160a01b03831660009081526067602052604090205460ff161580156109c057506001600160a01b03841660009081526067602052604090205460ff16155b610a185760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b6000610a3a6064610a3460755486611f3b90919063ffffffff16565b90611f4e565b90506000610a586064610a3460765487611f3b90919063ffffffff16565b90506000610a7083610a6a8785611f5a565b90611f5a565b9050610a7c8683611f66565b606a54610a949087906001600160a01b03168561215b565b610a9f86888361215b565b5060019695505050505050565b6000610ab933848461270d565b5060015b92915050565b610acb612950565b6077805461ff001916610100179055565b610ae4612950565b610b018383836fffffffffffffffffffffffffffffffff166129aa565b505050565b610b0e612950565b607754610100900460ff1615610b665760405162461bcd60e51b815260206004820152601c60248201527f63616e6e6f74206368616e676520706f6f6c206275726e2072617465000000006044820152606401610913565b606f55565b6000610b7884848461215b565b610bca8433610bc585604051806060016040528060288152602001613a2e602891396001600160a01b038a1660009081526066602090815260408083203384529091529020549190612a2a565b61270d565b5060019392505050565b6001600160a01b0381166000908152607960205260408120600601548103610bfe57506000919050565b6078546001600160a01b038316600090815260796020526040902060060154610c27904261383d565b11610c33576000610abd565b600192915050565b6001600160a01b0381166000908152607960205260408120600381015490546127108215610cda57610c78610c7183600a611f4e565b8390611f5a565b8310610c8757506103e8610cda565b600082610c95856064611f3b565b610c9f9190613850565b905060006064610caf8385613872565b610cb99190613850565b9050610cc58382611f5a565b92506103e8831015610cd7576103e892505b50505b610cf7607454610a3483610a34610cf08a611727565b8790611f3b565b95945050505050565b610d08612950565b6001600160a01b038216610d5e5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f742073656e6420746f2030206164647265737300000000000000006044820152606401610913565b60008111610dae5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e742073686f756c642062652067726561746572207468616e2030006044820152606401610913565b610b0183838361215b565b606d5460ff1615610df85760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff1916600117905533600090815260796020526040902054610e615760405162461bcd60e51b815260206004820152601a60248201527f796f752068617665206e6f207374616b65642062616c616e63650000000000006044820152606401610913565b610e69612a56565b606d805460ff19169055565b606d5460ff1615610eb45760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff1916600117905533600090815260796020526040902054610f1d5760405162461bcd60e51b815260206004820152601a60248201527f796f752068617665206e6f207374616b65642062616c616e63650000000000006044820152606401610913565b610e69612abd565b3360008181526066602090815260408083206001600160a01b03871684529091528120549091610ab9918590610bc59086612b4a565b600054610100900460ff1615808015610f7b5750600054600160ff909116105b80610f955750303b158015610f95575060005460ff166001145b6110075760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610913565b6000805460ff19166001179055801561102a576000805461ff0019166101001790555b600a606e8190556077805460ff191660099081179091556064606f55603c6070556201518060715560728190556110609161396d565b61106e90630bebc200613872565b6073556104e360745560076075556002607655620bdd806078556077805462ffff001916905561109c612b56565b606880546001600160a01b0319166001600160a01b038416179055816110c28533612bc9565b606a80546001600160a01b0319166001600160a01b0386161790556110e73084612c1f565b50801561112e576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b61113c612950565b607754610100900460ff16156111945760405162461bcd60e51b815260206004820152601760248201527f63616e6e6f74206368616e6765206275726e20726174650000000000000000006044820152606401610913565b606e55565b6111a1612950565b607855565b6111ae612950565b6001600160a01b03166000908152606760205260409020805460ff19166001179055565b6111da612950565b6001600160a01b03166000908152606760205260409020805460ff19169055565b611203612950565b606a80546001600160a01b0319166001600160a01b0392909216919091179055565b61122d612950565b6112376000612deb565b565b606d5460ff16156112785760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff19166001179055816112d25760405162461bcd60e51b815260206004820152601660248201527f696e76616c6964206465706f73697420616d6f756e74000000000000000000006044820152606401610913565b336000908152607960205260409020548211156113575760405162461bcd60e51b815260206004820152602860248201527f756e7374616b6520616d6f756e7420697320626967676572207468616e20796f60448201527f75207374616b65640000000000000000000000000000000000000000000000006064820152608401610913565b81600080831515600103611384576113756064610a34876009611f3b565b91506113818583611f5a565b90505b3360009081526079602052604090205461139e9086611f5a565b336000908152607960205260409020908155426005909101558315156001036113de576113cc30338361215b565b6113d63383611f66565b505050611419565b3360009081526079602052604090204260068201556007015461140290849061397c565b336000908152607960205260409020600701555050505b5050606d805460ff19169055565b61142f612950565b607754610100900460ff16156114875760405162461bcd60e51b815260206004820152601960248201527f63616e6e6f74206368616e6765206e617469766520706f6f6c000000000000006044820152606401610913565b606980546001600160a01b0319166001600160a01b0392909216919091179055565b6114b1612950565b6077805462ff0000191662010000179055565b6114cc612950565b6114d68183612e3d565b5050565b6114e2612950565b607455565b6000610ab93384610bc585604051806060016040528060258152602001613a56602591393360009081526066602090815260408083206001600160a01b038d1684529091529020549190612a2a565b6000610ab933848461215b565b61154b612950565b806fffffffffffffffffffffffffffffffff164710156115ad5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74204554482042616c616e636500000000000000006044820152606401610913565b6115e4816fffffffffffffffffffffffffffffffff166115d56033546001600160a01b031690565b6001600160a01b031690612fe7565b50565b6078546001600160a01b03821660009081526079602052604081206006015490914291611614919061397c565b11611620576000610abd565b6078546001600160a01b038316600090815260796020526040902060060154429161164a9161397c565b610abd919061383d565b61165c612950565b6077805462ff000019169055565b611672612950565b607655565b606d5460ff16156116b65760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff191660011790553360009081526079602052604090205461171f5760405162461bcd60e51b815260206004820152601a60248201527f796f752068617665206e6f207374616b65642062616c616e63650000000000006044820152606401610913565b610e69613100565b6001600160a01b038116600090815260796020526040812060010154810361175157506000919050565b6070546001600160a01b038316600090815260796020526040812060010154909161178191610a34904290611f5a565b9050600181106117915792915050565b50600092915050565b6117a2612950565b6001600160a01b0381166117f85760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204164647265737300000000000000000000000000000000006044820152606401610913565b606880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116600090815260796020526040812060010154810361184457506000919050565b4261188161185f607254607154611f3b90919063ffffffff16565b6001600160a01b03851660009081526079602052604090206001015490612b4a565b111592915050565b919050565b611896612950565b6001600160a01b0381166119125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610913565b6115e481612deb565b606d5460ff161561195a5760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff19166001179055806119b45760405162461bcd60e51b815260206004820152600a60248201527f7a65726f20696e707574000000000000000000000000000000000000000000006044820152606401610913565b607354336000908152607960205260409020546119d19083612b4a565b1115611a1f5760405162461bcd60e51b815260206004820152601d60248201527f4d6178696d756d207374616b696e67206c696d697420726561636865640000006044820152606401610913565b80611a363360009081526065602052604090205490565b1015611a845760405162461bcd60e51b815260206004820152601b60248201527f4572726f723a20696e73756666696369656e742062616c616e636500000000006044820152606401610913565b611a8c612a56565b33600090815260796020526040902060048101805460ff1916600117905554611ab59082612b4a565b33600090815260796020526040902055606c54611ad29082612b4a565b606c55611ae033308361215b565b60405181815233907facf5378a9125b9a91e37c0cad37a66b4b63bc3494776388fc87056260e0315769060200160405180910390a250606d805460ff19169055565b606d5460ff1615611b615760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff19166001179055606e5433600090815260796020526040902060020154611b8d91611f3b565b33600090815260796020526040902060030154611baa9083612b4a565b1115611c1e5760405162461bcd60e51b815260206004820152603660248201527f63616e206f6e6c79206275726e206571756976616c656e74206f66207831302060448201527f746f74616c207374616b696e6720696e746572657374000000000000000000006064820152608401610913565b60008111611c6e5760405162461bcd60e51b815260206004820152601c60248201527f76616c7565206d7573742062652067726561746572207468616e2030000000006044820152606401610913565b33600090815260656020526040902054811115611ccd5760405162461bcd60e51b815260206004820152600f60248201527f62616c616e636520746f6f206c6f7700000000000000000000000000000000006044820152606401610913565b611cd73382611f66565b3360009081526079602052604081206003018054839290611cf990849061397c565b9091555050606f546069546001600160a01b03166000908152606560205260408120549091611d289190611f4e565b905081811115611dd657611d71826040518060600160405280602281526020016139e6602291396069546001600160a01b03166000908152606560205260409020549190612a2a565b6069546001600160a01b0316600090815260656020526040902055606b54611d999083611f5a565b606b5560405182815233907fab85194d35c4ea153d0b51f3a304d1d22cb8023e499a6503fb6c28c5864ae90e9060200160405180910390a2611e76565b611e15816040518060600160405280602281526020016139e6602291396069546001600160a01b03166000908152606560205260409020549190612a2a565b6069546001600160a01b0316600090815260656020526040902055606b54611e3d9082611f5a565b606b5560405181815233907fab85194d35c4ea153d0b51f3a304d1d22cb8023e499a6503fb6c28c5864ae90e9060200160405180910390a25b606960009054906101000a90046001600160a01b03166001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611ec657600080fd5b505af1158015611eda573d6000803e3d6000fd5b50506040518481523392507fab85194d35c4ea153d0b51f3a304d1d22cb8023e499a6503fb6c28c5864ae90e915060200160405180910390a25050606d805460ff19169055565b611f29612950565b607255565b611f36612950565b607555565b6000611f478284613872565b9392505050565b6000611f478284613850565b6000611f47828461383d565b60775462010000900460ff1615611fbf5760405162461bcd60e51b815260206004820152601960248201527f544f4b454e3a20436f6e7472616374206973204c6f636b6564000000000000006044820152606401610913565b6001600160a01b03821661203b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610913565b6001600160a01b03821660009081526067602052604090205460ff16156120b05760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b6120ed816040518060600160405280602281526020016139e6602291396001600160a01b0385166000908152606560205260409020549190612a2a565b6001600160a01b038316600090815260656020526040902055606b546121139082611f5a565b606b556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60775462010000900460ff16156121b45760405162461bcd60e51b815260206004820152601960248201527f544f4b454e3a20436f6e7472616374206973204c6f636b6564000000000000006044820152606401610913565b6001600160a01b0383166122185760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610913565b6001600160a01b03821661227a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610913565b6001600160a01b03831660009081526067602052604090205460ff161580156122bc57506001600160a01b03821660009081526067602052604090205460ff16155b6123145760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b6033546001600160a01b03166001600160a01b0316836001600160a01b0316036124055761237581604051806060016040528060268152602001613a08602691396001600160a01b0386166000908152606560205260409020549190612a2a565b6001600160a01b0380851660009081526065602052604080822093909355908416815220546123a49082612b4a565b6001600160a01b0380841660008181526065602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906123f89085815260200190565b60405180910390a3505050565b6069546001600160a01b03848116911614801561243057506068546001600160a01b03838116911614155b8061246157506069546001600160a01b03838116911614801561246157506068546001600160a01b03848116911614155b156126d05760006124826064610a3460755485611f3b90919063ffffffff16565b905060006124a06064610a3460765486611f3b90919063ffffffff16565b905060006124b283610a6a8685611f5a565b90506124be8683611f66565b606a546001600160a01b03166000908152606560205260409020546124e39084612b4a565b606a546001600160a01b03166000908152606560209081526040918290209290925580516060810190915260268082526125429286929190613a08908301396001600160a01b0389166000908152606560205260409020549190612a2a565b6001600160a01b0387811660008181526065602090815260409182902094909455606a54905187815292169290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0385166000908152606560205260409020546125be9082612b4a565b60656000876001600160a01b03166001600160a01b031681526020019081526020016000208190555061262481604051806060016040528060268152602001613a08602691396001600160a01b0389166000908152606560205260409020549190612a2a565b6001600160a01b0387811660008181526065602090815260409182902094909455518481529188169290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a360408051828152602081018590529081018390526001600160a01b0386169033907f29ef3b40e1389faa2d79d2b0c105cb1b0e7c31efd459932d406d8f7fe8a0f7e89060600160405180910390a3505050505050565b61237581604051806060016040528060268152602001613a08602691396001600160a01b0386166000908152606560205260409020549190612a2a565b60775462010000900460ff16156127665760405162461bcd60e51b815260206004820152601960248201527f544f4b454e3a20436f6e7472616374206973204c6f636b6564000000000000006044820152606401610913565b6001600160a01b0383166127e15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610913565b6001600160a01b03821661285d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610913565b6001600160a01b03831660009081526067602052604090205460ff1615801561289f57506001600160a01b03821660009081526067602052604090205460ff16155b6128f75760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b6001600160a01b0383811660008181526066602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591016123f8565b6033546001600160a01b031633146112375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610913565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b019084906132c3565b60008184841115612a4e5760405162461bcd60e51b8152600401610913919061363d565b505050900390565b6000612a6133610c3b565b33600090815260796020526040902042600190910155905080156115e4573360009081526079602052604081206002018054839290612aa190849061397c565b90915550506033546115e4906001600160a01b0316338361215b565b6000612ac833610c3b565b905080156115e45733600090815260796020526040902054612aea9082612b4a565b33600090815260796020526040902055606c54612b079082612b4a565b606c553360009081526079602052604081206002018054839290612b2c90849061397c565b90915550503360009081526079602052604090204260019091015550565b6000611f47828461397c565b600054610100900460ff16612bc15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610913565b6112376133a8565b606d5460ff1615612c085760405162461bcd60e51b815260206004820152600960248201526853796e63206c6f636b60b81b6044820152606401610913565b606d805460ff191660011790556114198183612e3d565b6000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c83919061398f565b9050806001600160a01b031663c9c6539684846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cf7919061398f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015612d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d80919061398f565b606980546001600160a01b0319166001600160a01b03929092169182179055610b015760405162461bcd60e51b815260206004820152601160248201527f506169722041646472657373205a65726f0000000000000000000000000000006044820152606401610913565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b607754819062010000900460ff1615612e985760405162461bcd60e51b815260206004820152601960248201527f544f4b454e3a20436f6e7472616374206973204c6f636b6564000000000000006044820152606401610913565b6001600160a01b038316612eee5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610913565b6001600160a01b03831660009081526067602052604090205460ff1615612f635760405162461bcd60e51b815260206004820152602360248201527f544f4b454e3a20596f7572206163636f756e7420697320626c61636b6c69737460448201526265642160e81b6064820152608401610913565b606b54612f709082612b4a565b606b556001600160a01b038316600090815260656020526040902054612f969082612b4a565b6001600160a01b0384166000818152606560205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906123f89085815260200190565b804710156130375760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610913565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613084576040519150601f19603f3d011682016040523d82523d6000602084013e613089565b606091505b5050905080610b015760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610913565b60785433600090815260796020526040902060060154613120904261383d565b10156131945760405162461bcd60e51b815260206004820152602960248201527f696e76616c69642074696d653a206d757374206265206772656174657220746860448201527f616e2039206461797300000000000000000000000000000000000000000000006064820152608401610913565b33600090815260796020526040902060070154806131f45760405162461bcd60e51b815260206004820152601360248201527f6e6f20617661696c61626c6520616d6f756e74000000000000000000000000006044820152606401610913565b306000908152606560205260409020548111156132795760405162461bcd60e51b815260206004820152602b60248201527f7374616b696e6720636f6e747261637420686173206e6f7420656e6f7567682060448201527f6d6b6f6e6720746f6b656e0000000000000000000000000000000000000000006064820152608401610913565b61328430338361215b565b3060009081526065602052604090205461329f908290610a6a565b606c5550336000908152607960205260408120600781019190915542600690910155565b6000613318826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661341c9092919063ffffffff16565b805190915015610b01578080602001905181019061333691906139ac565b610b015760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610913565b600054610100900460ff166134135760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610913565b61123733612deb565b606061342b8484600085613433565b949350505050565b6060824710156134ab5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610913565b600080866001600160a01b031685876040516134c791906139c9565b60006040518083038185875af1925050503d8060008114613504576040519150601f19603f3d011682016040523d82523d6000602084013e613509565b606091505b509150915061351a87838387613525565b979650505050505050565b6060831561359457825160000361358d576001600160a01b0385163b61358d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610913565b508161342b565b61342b83838151156135a95781518083602001fd5b8060405162461bcd60e51b8152600401610913919061363d565b6001600160a01b03811681146115e457600080fd5b6000806000606084860312156135ed57600080fd5b83356135f8816135c3565b92506020840135613608816135c3565b929592945050506040919091013590565b60005b8381101561363457818101518382015260200161361c565b50506000910152565b602081526000825180602084015261365c816040850160208701613619565b601f01601f19169190910160400192915050565b6000806040838503121561368357600080fd5b823561368e816135c3565b946020939093013593505050565b80356fffffffffffffffffffffffffffffffff8116811461188957600080fd5b6000806000606084860312156136d157600080fd5b83356136dc816135c3565b925060208401356136ec816135c3565b91506136fa6040850161369c565b90509250925092565b60006020828403121561371557600080fd5b5035919050565b60006020828403121561372e57600080fd5b8135611f47816135c3565b60008060006060848603121561374e57600080fd5b833592506020840135613760816135c3565b91506040840135613770816135c3565b809150509250925092565b80151581146115e457600080fd5b6000806040838503121561379c57600080fd5b8235915060208301356137ae8161377b565b809150509250929050565b600080604083850312156137cc57600080fd5b8235915060208301356137ae816135c3565b6000602082840312156137f057600080fd5b611f478261369c565b6000806040838503121561380c57600080fd5b8235613817816135c3565b915060208301356137ae816135c3565b634e487b7160e01b600052601160045260246000fd5b81810381811115610abd57610abd613827565b60008261386d57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610abd57610abd613827565b600181815b808511156138c45781600019048211156138aa576138aa613827565b808516156138b757918102915b93841c939080029061388e565b509250929050565b6000826138db57506001610abd565b816138e857506000610abd565b81600181146138fe576002811461390857613924565b6001915050610abd565b60ff84111561391957613919613827565b50506001821b610abd565b5060208310610133831016604e8410600b8410161715613947575081810a610abd565b6139518383613889565b806000190482111561396557613965613827565b029392505050565b6000611f4760ff8416836138cc565b80820180821115610abd57610abd613827565b6000602082840312156139a157600080fd5b8151611f47816135c3565b6000602082840312156139be57600080fd5b8151611f478161377b565b600082516139db818460208701613619565b919091019291505056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209937ecaf85ded928b10d5d43bc40e9145095c8e1e43ee5752b37ea9630868fb964736f6c63430008120033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.