ERC-20
Overview
Max Total Supply
14,419,845.073677803146515155 xSHOP
Holders
66
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
101,432.941692198488915779 xSHOPValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
XShop
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "./IXShop.sol"; /// @title Shop Bot Staking Contract /// @notice This contract allow users to stake SHOP tokens and earn rewards from the fees generated by the platform contract XShop is IXShop, ERC20("Staked Shop Bot", "xSHOP"), Ownable, ReentrancyGuard { IERC20 public constant shopToken = IERC20(0x99e186E8671DB8B10d45B7A1C430952a9FBE0D40); IUniswapV2Router02 public constant uniswapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uint256 public constant epochDuration = 1 days; uint256 public minimumStake = 20000 * 1e18; // Staking time lock, 5 days by default uint256 public timeLock = 5 days; // Total rewards injected uint256 public totalRewards; // Snapshot of the epoch, generated by the snapshot(), used to calculate rewards struct EpochInfo { // Snapshot time uint256 timestamp; // Rewards injected uint256 rewards; // Total deposited snap uint256 supply; // $SHOP swapped for rewards for re-investors uint256 shop; // This is used for aligning with the user deposits/withdrawals during epoch to adjust totalsupply uint256 deposited; uint256 withdrawn; } uint256 public currentEpoch; mapping(uint256 => EpochInfo) public epochInfo; // User info, there's also a balance of xSHOP on the ERC20 super contract struct UserInfo { //epoch => total amount deposited during the epoch mapping(uint256 => uint256) depositedInEpoch; mapping(uint256 => uint256) withdrawnInEpoch; mapping(uint256 => bool) isReinvestingOnForEpoch; // a starting epoch for reward calculation for user - either last claimed or first deposit uint256 lastEpochClaimedOrReinvested; uint256 firstDeposit; } mapping(address => UserInfo) public userInfo; // That's for enumerating re-investors because we have to iterate over them to buy SHOP for rewards generated uint256 public reInvestorsCount; mapping(address => uint256) public reInvestorsIndex; mapping(uint256 => address) public reInvestors; // ========== Configuration ========== constructor() ReentrancyGuard() { } function setMinimumStake(uint256 _minimumStake) public onlyOwner { minimumStake = _minimumStake; } function setTimeLock(uint256 _timeLock) public onlyOwner { timeLock = _timeLock; } // ========== State changing ========== function deposit(uint256 _amount) public nonReentrant { require(_amount + balanceOf(msg.sender) >= minimumStake, "Minimum deposit is 20K $SHOP"); require(shopToken.transferFrom(msg.sender, address(this), _amount), "Transfer failed"); if (userInfo[msg.sender].firstDeposit == 0) { userInfo[msg.sender].firstDeposit = block.timestamp; } _updateStake(msg.sender, _amount, true); emit Deposited(msg.sender, _amount); } function withdraw(uint256 _amount) public nonReentrant { require(balanceOf(msg.sender) >= _amount, "Insufficient balance"); require(userInfo[msg.sender].firstDeposit + timeLock < block.timestamp, "Too early to withdraw"); _updateStake(msg.sender, _amount, false); require(shopToken.transfer(msg.sender, _amount), "Transfer failed"); emit Withdrawn(msg.sender, _amount); } function claimReward() public nonReentrant { require(currentEpoch > 1, "No rewards have been distributed yet"); // uint256 lastSnapshotTime = epochInfo[currentEpoch - 1].timestamp; // require(lastSnapshotTime + epochDuration <= block.timestamp, "Too early to calculate rewards"); require (!(reInvestorsIndex[msg.sender] > 0), "Auto-compounding is enabled"); uint256 reward = calculateRewardForUser(msg.sender); require(reward > 0, "No reward available"); require(address(this).balance >= reward, "Insufficient contract balance to transfer reward"); payable(msg.sender).transfer(reward); userInfo[msg.sender].lastEpochClaimedOrReinvested = currentEpoch - 1; emit Claimed(msg.sender, reward); } // we need it to be only owner to keep epochs precise function snapshot() public payable nonReentrant onlyOwner { require(msg.value > 0, "ETH amount must be greater than 0"); uint256 lastSnapshotTime = 0; if (currentEpoch > 0) { lastSnapshotTime = epochInfo[currentEpoch - 1].timestamp; require(block.timestamp >= lastSnapshotTime + epochDuration - 5 minutes, "Too early for a new snapshot"); } totalRewards += msg.value; epochInfo[currentEpoch].rewards = msg.value; epochInfo[currentEpoch].timestamp = block.timestamp; epochInfo[currentEpoch].supply = totalSupply(); // swap ETH for autocompounding uint256 ethToSell = 0; uint256[] memory stakersRewarsInEpoch = new uint256[](reInvestorsCount + 1); for (uint256 i = 1; i <= reInvestorsCount; i++) { address user = reInvestors[i]; userInfo[user].isReinvestingOnForEpoch[currentEpoch] = true; stakersRewarsInEpoch[i] = _calculateReward(user, true); ethToSell += stakersRewarsInEpoch[i]; if (ethToSell > 0) { userInfo[user].lastEpochClaimedOrReinvested = currentEpoch; } } uint256 xShopToMintTotal = 0; if (ethToSell > 0) { xShopToMintTotal = _swapEthForShop(ethToSell); epochInfo[currentEpoch].shop = xShopToMintTotal; //now updating staking balances for (uint256 i = 1; i <= reInvestorsCount; i++) { uint256 xShopToMint = stakersRewarsInEpoch[i] * xShopToMintTotal / ethToSell; _updateStake(msg.sender, xShopToMint, true); } } emit Snapshot(currentEpoch, msg.value, msg.sender); currentEpoch++; } function toggleReinvesting() public { bool currentStatus = reInvestorsIndex[msg.sender] > 0; if (!currentStatus) { // Add re-investor to the renumeration if (reInvestorsIndex[msg.sender] == 0) { reInvestorsCount++; reInvestorsIndex[msg.sender] = reInvestorsCount; reInvestors[reInvestorsCount] = msg.sender; userInfo[msg.sender].isReinvestingOnForEpoch[currentEpoch] = true; } } else { // Remove re-investor from the renumeration if (reInvestorsIndex[msg.sender] != 0) { uint256 index = reInvestorsIndex[msg.sender]; address lastReinvestor = reInvestors[reInvestorsCount]; // Swap the msg.sender to remove with the last msg.sender reInvestors[index] = lastReinvestor; reInvestorsIndex[lastReinvestor] = index; // Remove the last msg.sender and update count delete reInvestors[reInvestorsCount]; delete reInvestorsIndex[msg.sender]; reInvestorsCount--; userInfo[msg.sender].isReinvestingOnForEpoch[currentEpoch] = false; } } emit Reinvestment(msg.sender, !currentStatus); } function rescueETH(uint256 _weiAmount) external { payable(owner()).transfer(_weiAmount); } function rescueERC20(address _tokenAdd, uint256 _amount) external { IERC20(_tokenAdd).transfer(owner(), _amount); } // ========== View functions ========== function getPendingReward() public view returns (uint256) { return calculateRewardForUser(msg.sender); } function calculateRewardForUser(address user) public view returns (uint256) { return _calculateReward(user, false); } function isReinvesting(address user) external view returns (bool) { return reInvestorsIndex[user] > 0; } // ========== Internal functions ========== function _updateStake(address _user, uint256 _amount, bool _isDeposit) internal { if (_isDeposit) { userInfo[_user].depositedInEpoch[currentEpoch] += _amount; epochInfo[currentEpoch].deposited += _amount; _mint(_user, _amount); } else { userInfo[_user].withdrawnInEpoch[currentEpoch] += _amount; epochInfo[currentEpoch].withdrawn += _amount; _burn(_user, _amount); } } function _swapEthForShop(uint256 _ethAmount) internal returns (uint256) { address[] memory path = new address[](2); path[0] = uniswapRouter.WETH(); path[1] = address(shopToken); // 15 seeconds from the current block time uint256 deadline = block.timestamp + 15; // Swap and return the amount of SHOP tokens received uint[] memory amounts = uniswapRouter.swapExactETHForTokens{value: _ethAmount}( 0, // Accept any amount of SHOP path, address(this), deadline ); emit Swapped(_ethAmount, amounts[1]); // Return the amount of SHOP tokens received return amounts[1]; } // Mock function for demonstration purposes. In reality, you'd interact with a decentralized exchange contract here. function _calculateReward(address _user, bool _isForReinvestment) internal view returns (uint256) { uint256 reward = 0; if (currentEpoch < 1) { return 0; } uint256 userBalanceInEpoch = balanceOf(_user); uint256 i = currentEpoch; while (i >= userInfo[_user].lastEpochClaimedOrReinvested && i <= currentEpoch) { uint256 supplyInEpoch = epochInfo[i].supply; uint256 epochReward = supplyInEpoch == 0 || i >= currentEpoch - 1 ? 0 : userBalanceInEpoch * epochInfo[i].rewards / supplyInEpoch; if (epochReward > 0 && (_isForReinvestment && reInvestorsIndex[_user] > 0 || !_isForReinvestment && !userInfo[_user].isReinvestingOnForEpoch[i])) { reward += epochReward; } if (i == 0) { break; } userBalanceInEpoch -= userInfo[_user].depositedInEpoch[i]; userBalanceInEpoch += userInfo[_user].withdrawnInEpoch[i]; i--; } return reward; } function _beforeTokenTransfer(address _from, address _to, uint256 _amount) internal override { super._beforeTokenTransfer(_from, _to, _amount); require(_from == address(0) || _to == address(0), "Only stake or unstake"); } receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IXShop is IERC20 { event Snapshot(uint256 epoch, uint256 rewards, address indexed from); event Swapped(uint256 eth, uint256 shop); event Deposited(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event Claimed(address indexed user, uint256 reward); event Reinvestment(address indexed user, bool status); // ========== State Changing Functions ========== // Deposit (stake) SHOP tokens and get XSHOP tokens of the same amount in return function deposit(uint256 _amount) external; // Withdraw (unstake) SHOP tokens and get XSHOP tokens back function withdraw(uint256 _amount) external; // Claim pending reward function claimReward() external; // Snapshot the current epoch and distribute rewards (ETH sent in msg.value) function snapshot() external payable; // Switch Autocompounding on/off function toggleReinvesting() external; // Get ETH from the contract function rescueETH(uint256 _weiAmount) external; // Get ERC20 from the contract function rescueERC20(address _tokenAdd, uint256 _amount) external; // ========== View functions ========== // Get pending rewards function calculateRewardForUser(address user) external view returns (uint256); // Get auto-compounding status function isReinvesting(address user) external view returns (bool); // Total rewards injected, - this is only for distribution function totalRewards() external view returns (uint256); // Current epoch ordinal number, starts from 0 and increases by 1 after each snapshot (by default every 24 hours) function currentEpoch() external view returns (uint256); }
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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","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":"bool","name":"status","type":"bool"}],"name":"Reinvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewards","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"eth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shop","type":"uint256"}],"name":"Swapped","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"calculateRewardForUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentEpoch","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":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"epochDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochInfo","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"shop","type":"uint256"},{"internalType":"uint256","name":"deposited","type":"uint256"},{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isReinvesting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumStake","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"reInvestors","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reInvestorsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reInvestorsIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAdd","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_weiAmount","type":"uint256"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumStake","type":"uint256"}],"name":"setMinimumStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeLock","type":"uint256"}],"name":"setTimeLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shopToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleReinvesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalRewards","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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"lastEpochClaimedOrReinvested","type":"uint256"},{"internalType":"uint256","name":"firstDeposit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405269043c33c19375648000006007556206978060085534801562000025575f80fd5b506040518060400160405280600f81526020016e14dd185ad9590814da1bdc08109bdd608a1b8152506040518060400160405280600581526020016407853484f560dc1b81525081600390816200007d9190620001a9565b5060046200008c8282620001a9565b505050620000a9620000a3620000b460201b60201c565b620000b8565b600160065562000271565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200013257607f821691505b6020821081036200015157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001a4575f81815260208120601f850160051c810160208610156200017f5750805b601f850160051c820191505b81811015620001a0578281556001016200018b565b5050505b505050565b81516001600160401b03811115620001c557620001c562000109565b620001dd81620001d684546200011d565b8462000157565b602080601f83116001811462000213575f8415620001fb5750858301515b5f19600386901b1c1916600185901b178555620001a0565b5f85815260208120601f198616915b82811015620002435788860151825594840194600190910190840162000222565b50858210156200026157878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b612438806200027f5f395ff3fe608060405260043610610220575f3560e01c8063766718081161011e578063b6b55f25116100a8578063db40eeaa1161006d578063db40eeaa146106ad578063dd62ed3e146106d8578063ec5ffac2146106f7578063ece571d11461070c578063f2fde38b14610733575f80fd5b8063b6b55f2514610612578063b88a802f14610631578063c93c612414610645578063c9f0afd614610679578063d085835a14610698575f80fd5b806395d89b41116100ee57806395d89b41146105995780639711715a146105ad5780639e252f00146105b5578063a457c2d7146105d4578063a9059cbb146105f3575f80fd5b806376671808146105345780637b0003a5146105495780638cd4426d1461055d5780638da5cb5b1461057c575f80fd5b80633356240b116101aa5780635bcb318a1161016f5780635bcb318a146104585780635fddc6ea1461047757806370a08231146104ad578063715018a6146104e1578063735de9f7146104f5575f80fd5b80633356240b1461037f5780633894228e14610394578063395093511461040f5780634ff0876a1461042e5780635a23248d14610444575f80fd5b80631959a002116101f05780631959a002146102bb578063233e99031461030557806323b872dd146103265780632e1a7d4d14610345578063313ce56714610364575f80fd5b806306fdde031461022b578063095ea7b3146102555780630e15561a1461028457806318160ddd146102a7575f80fd5b3661022757005b5f80fd5b348015610236575f80fd5b5061023f610752565b60405161024c9190612073565b60405180910390f35b348015610260575f80fd5b5061027461026f3660046120d2565b6107e2565b604051901515815260200161024c565b34801561028f575f80fd5b5061029960095481565b60405190815260200161024c565b3480156102b2575f80fd5b50600254610299565b3480156102c6575f80fd5b506102f06102d53660046120fc565b600c6020525f90815260409020600381015460049091015482565b6040805192835260208301919091520161024c565b348015610310575f80fd5b5061032461031f36600461211e565b6107fb565b005b348015610331575f80fd5b50610274610340366004612135565b610808565b348015610350575f80fd5b5061032461035f36600461211e565b61082b565b34801561036f575f80fd5b506040516012815260200161024c565b34801561038a575f80fd5b50610299600d5481565b34801561039f575f80fd5b506103e26103ae36600461211e565b600b6020525f9081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161024c565b34801561041a575f80fd5b506102746104293660046120d2565b6109f7565b348015610439575f80fd5b506102996201518081565b34801561044f575f80fd5b50610299610a18565b348015610463575f80fd5b5061032461047236600461211e565b610a27565b348015610482575f80fd5b506102746104913660046120fc565b6001600160a01b03165f908152600e6020526040902054151590565b3480156104b8575f80fd5b506102996104c73660046120fc565b6001600160a01b03165f9081526020819052604090205490565b3480156104ec575f80fd5b50610324610a34565b348015610500575f80fd5b5061051c737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161024c565b34801561053f575f80fd5b50610299600a5481565b348015610554575f80fd5b50610324610a47565b348015610568575f80fd5b506103246105773660046120d2565b610bd7565b348015610587575f80fd5b506005546001600160a01b031661051c565b3480156105a4575f80fd5b5061023f610c6b565b610324610c7a565b3480156105c0575f80fd5b506103246105cf36600461211e565b610fdb565b3480156105df575f80fd5b506102746105ee3660046120d2565b611016565b3480156105fe575f80fd5b5061027461060d3660046120d2565b611090565b34801561061d575f80fd5b5061032461062c36600461211e565b61109d565b34801561063c575f80fd5b50610324611238565b348015610650575f80fd5b5061051c61065f36600461211e565b600f6020525f90815260409020546001600160a01b031681565b348015610684575f80fd5b506102996106933660046120fc565b611449565b3480156106a3575f80fd5b5061029960085481565b3480156106b8575f80fd5b506102996106c73660046120fc565b600e6020525f908152604090205481565b3480156106e3575f80fd5b506102996106f2366004612173565b611454565b348015610702575f80fd5b5061029960075481565b348015610717575f80fd5b5061051c7399e186e8671db8b10d45b7a1c430952a9fbe0d4081565b34801561073e575f80fd5b5061032461074d3660046120fc565b61147e565b606060038054610761906121aa565b80601f016020809104026020016040519081016040528092919081815260200182805461078d906121aa565b80156107d85780601f106107af576101008083540402835291602001916107d8565b820191905f5260205f20905b8154815290600101906020018083116107bb57829003601f168201915b5050505050905090565b5f336107ef8185856114f4565b60019150505b92915050565b610803611617565b600755565b5f33610815858285611671565b6108208585856116e9565b506001949350505050565b610833611896565b335f9081526020819052604090205481111561088d5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b600854335f908152600c602052604090206004015442916108ad916121f6565b106108f25760405162461bcd60e51b8152602060048201526015602482015274546f6f206561726c7920746f20776974686472617760581b6044820152606401610884565b6108fd33825f6118ef565b60405163a9059cbb60e01b8152336004820152602481018290527399e186e8671db8b10d45b7a1c430952a9fbe0d409063a9059cbb906044016020604051808303815f875af1158015610952573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109769190612209565b6109b45760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610884565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a26109f46001600655565b50565b5f336107ef818585610a098383611454565b610a1391906121f6565b6114f4565b5f610a2233611449565b905090565b610a2f611617565b600855565b610a3c611617565b610a455f6119d0565b565b335f908152600e6020526040902054151580610ade57335f908152600e60205260408120549003610ad957600d8054905f610a8183612228565b9091555050600d54335f818152600e60209081526040808320859055938252600f815283822080546001600160a01b03191684179055918152600c8252828120600a54825260020190915220805460ff191660011790555b610b9e565b335f908152600e602052604090205415610b9e57335f818152600e602081815260408084208054600d80548752600f8086528488205483895285892080546001600160a01b039092166001600160a01b03199283168117909155808a52888852868a2085905583548a5291875294882080549095169094559686529390925290839055835491939092610b7083612240565b9091555050335f908152600c60209081526040808320600a5484526002019091529020805460ff1916905550505b6040518115815233907f1778146923612b783fff50f1bf7125d5ac389aaaa7eeb721cdd087aad49a47259060200160405180910390a250565b816001600160a01b031663a9059cbb610bf86005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303815f875af1158015610c42573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c669190612209565b505050565b606060048054610761906121aa565b610c82611896565b610c8a611617565b5f3411610ce35760405162461bcd60e51b815260206004820152602160248201527f45544820616d6f756e74206d7573742062652067726561746572207468616e206044820152600360fc1b6064820152608401610884565b600a545f9015610d7a57600b5f6001600a54610cff9190612255565b815260208101919091526040015f2054905061012c610d2162015180836121f6565b610d2b9190612255565b421015610d7a5760405162461bcd60e51b815260206004820152601c60248201527f546f6f206561726c7920666f722061206e657720736e617073686f74000000006044820152606401610884565b3460095f828254610d8b91906121f6565b9091555050600a80545f908152600b6020526040808220346001909101559154815220429055600254600a545f908152600b6020526040812060020191909155600d548190610ddb9060016121f6565b67ffffffffffffffff811115610df357610df3612268565b604051908082528060200260200182016040528015610e1c578160200160208202803683370190505b50905060015b600d548111610ef3575f818152600f60209081526040808320546001600160a01b0316808452600c8352818420600a548552600201909252909120805460ff19166001908117909155610e76908290611a21565b838381518110610e8857610e8861227c565b602002602001018181525050828281518110610ea657610ea661227c565b602002602001015184610eb991906121f6565b93508315610ee057600a546001600160a01b0382165f908152600c60205260409020600301555b5080610eeb81612228565b915050610e22565b505f8215610f7c57610f0483611bef565b600a545f908152600b60205260409020600301819055905060015b600d548111610f7a575f8483858481518110610f3d57610f3d61227c565b6020026020010151610f4f9190612290565b610f5991906122a7565b9050610f67338260016118ef565b5080610f7281612228565b915050610f1f565b505b600a546040805191825234602083015233917f3771e5d47b21ef0e87e4a0cd8cb08eedd7d729e204635aea6e2f6e6c02504282910160405180910390a2600a8054905f610fc883612228565b919050555050505050610a456001600655565b6005546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015611012573d5f803e3d5ffd5b5050565b5f33816110238286611454565b9050838110156110835760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610884565b61082082868684036114f4565b5f336107ef8185856116e9565b6110a5611896565b600754335f908152602081905260409020546110c190836121f6565b101561110f5760405162461bcd60e51b815260206004820152601c60248201527f4d696e696d756d206465706f7369742069732032304b202453484f50000000006044820152606401610884565b6040516323b872dd60e01b8152336004820152306024820152604481018290527399e186e8671db8b10d45b7a1c430952a9fbe0d40906323b872dd906064016020604051808303815f875af115801561116a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061118e9190612209565b6111cc5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610884565b335f908152600c602052604081206004015490036111fa57335f908152600c60205260409020426004909101555b611206338260016118ef565b60405181815233907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016109e2565b611240611896565b6001600a541161129e5760405162461bcd60e51b8152602060048201526024808201527f4e6f20726577617264732068617665206265656e206469737472696275746564604482015263081e595d60e21b6064820152608401610884565b335f908152600e6020526040902054156112fa5760405162461bcd60e51b815260206004820152601b60248201527f4175746f2d636f6d706f756e64696e6720697320656e61626c656400000000006044820152606401610884565b5f61130433611449565b90505f811161134b5760405162461bcd60e51b81526020600482015260136024820152724e6f2072657761726420617661696c61626c6560681b6044820152606401610884565b804710156113b45760405162461bcd60e51b815260206004820152603060248201527f496e73756666696369656e7420636f6e74726163742062616c616e636520746f60448201526f081d1c985b9cd9995c881c995dd85c9960821b6064820152608401610884565b604051339082156108fc029083905f818181858888f193505050501580156113de573d5f803e3d5ffd5b506001600a546113ee9190612255565b335f818152600c6020526040908190206003019290925590517fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a906114369084815260200190565b60405180910390a250610a456001600655565b5f6107f5825f611a21565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b611486611617565b6001600160a01b0381166114eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610884565b6109f4816119d0565b6001600160a01b0383166115565760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610884565b6001600160a01b0382166115b75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610884565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610a455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b5f61167c8484611454565b90505f1981146116e357818110156116d65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610884565b6116e384848484036114f4565b50505050565b6001600160a01b03831661174d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610884565b6001600160a01b0382166117af5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610884565b6117ba838383611e0f565b6001600160a01b0383165f90815260208190526040902054818110156118315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610884565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36116e3565b6002600654036118e85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610884565b6002600655565b8015611961576001600160a01b0383165f908152600c60209081526040808320600a548452909152812080548492906119299084906121f6565b9091555050600a545f908152600b6020526040812060040180548492906119519084906121f6565b90915550610c6690508383611e70565b6001600160a01b0383165f908152600c60209081526040808320600a548452600101909152812080548492906119989084906121f6565b9091555050600a545f908152600b6020526040812060050180548492906119c09084906121f6565b90915550610c6690508383611f38565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f805f90506001600a541015611a3a575f9150506107f5565b6001600160a01b0384165f90815260208190526040902054600a545b6001600160a01b0386165f908152600c60205260409020600301548110801590611a825750600a548111155b15611be5575f818152600b602052604081206002015490811580611ab457506001600a54611ab09190612255565b8310155b611ae4575f838152600b60205260409020600101548290611ad59086612290565b611adf91906122a7565b611ae6565b5f5b90505f81118015611b4f5750868015611b1557506001600160a01b0388165f908152600e602052604090205415155b80611b4f575086158015611b4f57506001600160a01b0388165f908152600c6020908152604080832086845260020190915290205460ff16155b15611b6157611b5e81866121f6565b94505b825f03611b6f575050611be5565b6001600160a01b0388165f908152600c60209081526040808320868452909152902054611b9c9085612255565b6001600160a01b0389165f908152600c60209081526040808320878452600101909152902054909450611bcf90856121f6565b935082611bdb81612240565b9350505050611a56565b5090949350505050565b6040805160028082526060820183525f9283929190602083019080368337019050509050737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c63573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c8791906122c6565b815f81518110611c9957611c9961227c565b60200260200101906001600160a01b031690816001600160a01b0316815250507399e186e8671db8b10d45b7a1c430952a9fbe0d4081600181518110611ce157611ce161227c565b6001600160a01b03909216602092830291909101909101525f611d0542600f6121f6565b604051637ff36ab560e01b81529091505f90737a250d5630b4cf539739df2c5dacb4c659f2488d90637ff36ab5908790611d499085908890309089906004016122e1565b5f6040518083038185885af1158015611d64573d5f803e3d5ffd5b50505050506040513d5f823e601f3d908101601f19168201604052611d8c9190810190612349565b90507f5a6443be634d8594e0dff76c972a6a74f88bf761fb6e334d88dd979516f3bc8f8582600181518110611dc357611dc361227c565b6020026020010151604051611de2929190918252602082015260400190565b60405180910390a180600181518110611dfd57611dfd61227c565b60200260200101519350505050919050565b6001600160a01b0383161580611e2c57506001600160a01b038216155b610c665760405162461bcd60e51b81526020600482015260156024820152744f6e6c79207374616b65206f7220756e7374616b6560581b6044820152606401610884565b6001600160a01b038216611ec65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610884565b611ed15f8383611e0f565b8060025f828254611ee291906121f6565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216611f985760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610884565b611fa3825f83611e0f565b6001600160a01b0382165f90815260208190526040902054818110156120165760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610884565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b5f6020808352835180828501525f5b8181101561209e57858101830151858201604001528201612082565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146109f4575f80fd5b5f80604083850312156120e3575f80fd5b82356120ee816120be565b946020939093013593505050565b5f6020828403121561210c575f80fd5b8135612117816120be565b9392505050565b5f6020828403121561212e575f80fd5b5035919050565b5f805f60608486031215612147575f80fd5b8335612152816120be565b92506020840135612162816120be565b929592945050506040919091013590565b5f8060408385031215612184575f80fd5b823561218f816120be565b9150602083013561219f816120be565b809150509250929050565b600181811c908216806121be57607f821691505b6020821081036121dc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156107f5576107f56121e2565b5f60208284031215612219575f80fd5b81518015158114612117575f80fd5b5f60018201612239576122396121e2565b5060010190565b5f8161224e5761224e6121e2565b505f190190565b818103818111156107f5576107f56121e2565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b80820281158282048414176107f5576107f56121e2565b5f826122c157634e487b7160e01b5f52601260045260245ffd5b500490565b5f602082840312156122d6575f80fd5b8151612117816120be565b5f60808201868352602060808185015281875180845260a08601915082890193505f5b818110156123295784516001600160a01b031683529383019391830191600101612304565b50506001600160a01b039690961660408501525050506060015292915050565b5f602080838503121561235a575f80fd5b825167ffffffffffffffff80821115612371575f80fd5b818501915085601f830112612384575f80fd5b81518181111561239657612396612268565b8060051b604051601f19603f830116810181811085821117156123bb576123bb612268565b6040529182528482019250838101850191888311156123d8575f80fd5b938501935b828510156123f6578451845293850193928501926123dd565b9897505050505050505056fea2646970667358221220c47ca134f172df8d090a75977e22530903cbda0b5b01809498304e4961b760c864736f6c63430008150033
Deployed Bytecode
0x608060405260043610610220575f3560e01c8063766718081161011e578063b6b55f25116100a8578063db40eeaa1161006d578063db40eeaa146106ad578063dd62ed3e146106d8578063ec5ffac2146106f7578063ece571d11461070c578063f2fde38b14610733575f80fd5b8063b6b55f2514610612578063b88a802f14610631578063c93c612414610645578063c9f0afd614610679578063d085835a14610698575f80fd5b806395d89b41116100ee57806395d89b41146105995780639711715a146105ad5780639e252f00146105b5578063a457c2d7146105d4578063a9059cbb146105f3575f80fd5b806376671808146105345780637b0003a5146105495780638cd4426d1461055d5780638da5cb5b1461057c575f80fd5b80633356240b116101aa5780635bcb318a1161016f5780635bcb318a146104585780635fddc6ea1461047757806370a08231146104ad578063715018a6146104e1578063735de9f7146104f5575f80fd5b80633356240b1461037f5780633894228e14610394578063395093511461040f5780634ff0876a1461042e5780635a23248d14610444575f80fd5b80631959a002116101f05780631959a002146102bb578063233e99031461030557806323b872dd146103265780632e1a7d4d14610345578063313ce56714610364575f80fd5b806306fdde031461022b578063095ea7b3146102555780630e15561a1461028457806318160ddd146102a7575f80fd5b3661022757005b5f80fd5b348015610236575f80fd5b5061023f610752565b60405161024c9190612073565b60405180910390f35b348015610260575f80fd5b5061027461026f3660046120d2565b6107e2565b604051901515815260200161024c565b34801561028f575f80fd5b5061029960095481565b60405190815260200161024c565b3480156102b2575f80fd5b50600254610299565b3480156102c6575f80fd5b506102f06102d53660046120fc565b600c6020525f90815260409020600381015460049091015482565b6040805192835260208301919091520161024c565b348015610310575f80fd5b5061032461031f36600461211e565b6107fb565b005b348015610331575f80fd5b50610274610340366004612135565b610808565b348015610350575f80fd5b5061032461035f36600461211e565b61082b565b34801561036f575f80fd5b506040516012815260200161024c565b34801561038a575f80fd5b50610299600d5481565b34801561039f575f80fd5b506103e26103ae36600461211e565b600b6020525f9081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161024c565b34801561041a575f80fd5b506102746104293660046120d2565b6109f7565b348015610439575f80fd5b506102996201518081565b34801561044f575f80fd5b50610299610a18565b348015610463575f80fd5b5061032461047236600461211e565b610a27565b348015610482575f80fd5b506102746104913660046120fc565b6001600160a01b03165f908152600e6020526040902054151590565b3480156104b8575f80fd5b506102996104c73660046120fc565b6001600160a01b03165f9081526020819052604090205490565b3480156104ec575f80fd5b50610324610a34565b348015610500575f80fd5b5061051c737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161024c565b34801561053f575f80fd5b50610299600a5481565b348015610554575f80fd5b50610324610a47565b348015610568575f80fd5b506103246105773660046120d2565b610bd7565b348015610587575f80fd5b506005546001600160a01b031661051c565b3480156105a4575f80fd5b5061023f610c6b565b610324610c7a565b3480156105c0575f80fd5b506103246105cf36600461211e565b610fdb565b3480156105df575f80fd5b506102746105ee3660046120d2565b611016565b3480156105fe575f80fd5b5061027461060d3660046120d2565b611090565b34801561061d575f80fd5b5061032461062c36600461211e565b61109d565b34801561063c575f80fd5b50610324611238565b348015610650575f80fd5b5061051c61065f36600461211e565b600f6020525f90815260409020546001600160a01b031681565b348015610684575f80fd5b506102996106933660046120fc565b611449565b3480156106a3575f80fd5b5061029960085481565b3480156106b8575f80fd5b506102996106c73660046120fc565b600e6020525f908152604090205481565b3480156106e3575f80fd5b506102996106f2366004612173565b611454565b348015610702575f80fd5b5061029960075481565b348015610717575f80fd5b5061051c7399e186e8671db8b10d45b7a1c430952a9fbe0d4081565b34801561073e575f80fd5b5061032461074d3660046120fc565b61147e565b606060038054610761906121aa565b80601f016020809104026020016040519081016040528092919081815260200182805461078d906121aa565b80156107d85780601f106107af576101008083540402835291602001916107d8565b820191905f5260205f20905b8154815290600101906020018083116107bb57829003601f168201915b5050505050905090565b5f336107ef8185856114f4565b60019150505b92915050565b610803611617565b600755565b5f33610815858285611671565b6108208585856116e9565b506001949350505050565b610833611896565b335f9081526020819052604090205481111561088d5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b600854335f908152600c602052604090206004015442916108ad916121f6565b106108f25760405162461bcd60e51b8152602060048201526015602482015274546f6f206561726c7920746f20776974686472617760581b6044820152606401610884565b6108fd33825f6118ef565b60405163a9059cbb60e01b8152336004820152602481018290527399e186e8671db8b10d45b7a1c430952a9fbe0d409063a9059cbb906044016020604051808303815f875af1158015610952573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109769190612209565b6109b45760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610884565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a26109f46001600655565b50565b5f336107ef818585610a098383611454565b610a1391906121f6565b6114f4565b5f610a2233611449565b905090565b610a2f611617565b600855565b610a3c611617565b610a455f6119d0565b565b335f908152600e6020526040902054151580610ade57335f908152600e60205260408120549003610ad957600d8054905f610a8183612228565b9091555050600d54335f818152600e60209081526040808320859055938252600f815283822080546001600160a01b03191684179055918152600c8252828120600a54825260020190915220805460ff191660011790555b610b9e565b335f908152600e602052604090205415610b9e57335f818152600e602081815260408084208054600d80548752600f8086528488205483895285892080546001600160a01b039092166001600160a01b03199283168117909155808a52888852868a2085905583548a5291875294882080549095169094559686529390925290839055835491939092610b7083612240565b9091555050335f908152600c60209081526040808320600a5484526002019091529020805460ff1916905550505b6040518115815233907f1778146923612b783fff50f1bf7125d5ac389aaaa7eeb721cdd087aad49a47259060200160405180910390a250565b816001600160a01b031663a9059cbb610bf86005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303815f875af1158015610c42573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c669190612209565b505050565b606060048054610761906121aa565b610c82611896565b610c8a611617565b5f3411610ce35760405162461bcd60e51b815260206004820152602160248201527f45544820616d6f756e74206d7573742062652067726561746572207468616e206044820152600360fc1b6064820152608401610884565b600a545f9015610d7a57600b5f6001600a54610cff9190612255565b815260208101919091526040015f2054905061012c610d2162015180836121f6565b610d2b9190612255565b421015610d7a5760405162461bcd60e51b815260206004820152601c60248201527f546f6f206561726c7920666f722061206e657720736e617073686f74000000006044820152606401610884565b3460095f828254610d8b91906121f6565b9091555050600a80545f908152600b6020526040808220346001909101559154815220429055600254600a545f908152600b6020526040812060020191909155600d548190610ddb9060016121f6565b67ffffffffffffffff811115610df357610df3612268565b604051908082528060200260200182016040528015610e1c578160200160208202803683370190505b50905060015b600d548111610ef3575f818152600f60209081526040808320546001600160a01b0316808452600c8352818420600a548552600201909252909120805460ff19166001908117909155610e76908290611a21565b838381518110610e8857610e8861227c565b602002602001018181525050828281518110610ea657610ea661227c565b602002602001015184610eb991906121f6565b93508315610ee057600a546001600160a01b0382165f908152600c60205260409020600301555b5080610eeb81612228565b915050610e22565b505f8215610f7c57610f0483611bef565b600a545f908152600b60205260409020600301819055905060015b600d548111610f7a575f8483858481518110610f3d57610f3d61227c565b6020026020010151610f4f9190612290565b610f5991906122a7565b9050610f67338260016118ef565b5080610f7281612228565b915050610f1f565b505b600a546040805191825234602083015233917f3771e5d47b21ef0e87e4a0cd8cb08eedd7d729e204635aea6e2f6e6c02504282910160405180910390a2600a8054905f610fc883612228565b919050555050505050610a456001600655565b6005546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015611012573d5f803e3d5ffd5b5050565b5f33816110238286611454565b9050838110156110835760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610884565b61082082868684036114f4565b5f336107ef8185856116e9565b6110a5611896565b600754335f908152602081905260409020546110c190836121f6565b101561110f5760405162461bcd60e51b815260206004820152601c60248201527f4d696e696d756d206465706f7369742069732032304b202453484f50000000006044820152606401610884565b6040516323b872dd60e01b8152336004820152306024820152604481018290527399e186e8671db8b10d45b7a1c430952a9fbe0d40906323b872dd906064016020604051808303815f875af115801561116a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061118e9190612209565b6111cc5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610884565b335f908152600c602052604081206004015490036111fa57335f908152600c60205260409020426004909101555b611206338260016118ef565b60405181815233907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4906020016109e2565b611240611896565b6001600a541161129e5760405162461bcd60e51b8152602060048201526024808201527f4e6f20726577617264732068617665206265656e206469737472696275746564604482015263081e595d60e21b6064820152608401610884565b335f908152600e6020526040902054156112fa5760405162461bcd60e51b815260206004820152601b60248201527f4175746f2d636f6d706f756e64696e6720697320656e61626c656400000000006044820152606401610884565b5f61130433611449565b90505f811161134b5760405162461bcd60e51b81526020600482015260136024820152724e6f2072657761726420617661696c61626c6560681b6044820152606401610884565b804710156113b45760405162461bcd60e51b815260206004820152603060248201527f496e73756666696369656e7420636f6e74726163742062616c616e636520746f60448201526f081d1c985b9cd9995c881c995dd85c9960821b6064820152608401610884565b604051339082156108fc029083905f818181858888f193505050501580156113de573d5f803e3d5ffd5b506001600a546113ee9190612255565b335f818152600c6020526040908190206003019290925590517fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a906114369084815260200190565b60405180910390a250610a456001600655565b5f6107f5825f611a21565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b611486611617565b6001600160a01b0381166114eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610884565b6109f4816119d0565b6001600160a01b0383166115565760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610884565b6001600160a01b0382166115b75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610884565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610a455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b5f61167c8484611454565b90505f1981146116e357818110156116d65760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610884565b6116e384848484036114f4565b50505050565b6001600160a01b03831661174d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610884565b6001600160a01b0382166117af5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610884565b6117ba838383611e0f565b6001600160a01b0383165f90815260208190526040902054818110156118315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610884565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36116e3565b6002600654036118e85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610884565b6002600655565b8015611961576001600160a01b0383165f908152600c60209081526040808320600a548452909152812080548492906119299084906121f6565b9091555050600a545f908152600b6020526040812060040180548492906119519084906121f6565b90915550610c6690508383611e70565b6001600160a01b0383165f908152600c60209081526040808320600a548452600101909152812080548492906119989084906121f6565b9091555050600a545f908152600b6020526040812060050180548492906119c09084906121f6565b90915550610c6690508383611f38565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f805f90506001600a541015611a3a575f9150506107f5565b6001600160a01b0384165f90815260208190526040902054600a545b6001600160a01b0386165f908152600c60205260409020600301548110801590611a825750600a548111155b15611be5575f818152600b602052604081206002015490811580611ab457506001600a54611ab09190612255565b8310155b611ae4575f838152600b60205260409020600101548290611ad59086612290565b611adf91906122a7565b611ae6565b5f5b90505f81118015611b4f5750868015611b1557506001600160a01b0388165f908152600e602052604090205415155b80611b4f575086158015611b4f57506001600160a01b0388165f908152600c6020908152604080832086845260020190915290205460ff16155b15611b6157611b5e81866121f6565b94505b825f03611b6f575050611be5565b6001600160a01b0388165f908152600c60209081526040808320868452909152902054611b9c9085612255565b6001600160a01b0389165f908152600c60209081526040808320878452600101909152902054909450611bcf90856121f6565b935082611bdb81612240565b9350505050611a56565b5090949350505050565b6040805160028082526060820183525f9283929190602083019080368337019050509050737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c63573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c8791906122c6565b815f81518110611c9957611c9961227c565b60200260200101906001600160a01b031690816001600160a01b0316815250507399e186e8671db8b10d45b7a1c430952a9fbe0d4081600181518110611ce157611ce161227c565b6001600160a01b03909216602092830291909101909101525f611d0542600f6121f6565b604051637ff36ab560e01b81529091505f90737a250d5630b4cf539739df2c5dacb4c659f2488d90637ff36ab5908790611d499085908890309089906004016122e1565b5f6040518083038185885af1158015611d64573d5f803e3d5ffd5b50505050506040513d5f823e601f3d908101601f19168201604052611d8c9190810190612349565b90507f5a6443be634d8594e0dff76c972a6a74f88bf761fb6e334d88dd979516f3bc8f8582600181518110611dc357611dc361227c565b6020026020010151604051611de2929190918252602082015260400190565b60405180910390a180600181518110611dfd57611dfd61227c565b60200260200101519350505050919050565b6001600160a01b0383161580611e2c57506001600160a01b038216155b610c665760405162461bcd60e51b81526020600482015260156024820152744f6e6c79207374616b65206f7220756e7374616b6560581b6044820152606401610884565b6001600160a01b038216611ec65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610884565b611ed15f8383611e0f565b8060025f828254611ee291906121f6565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216611f985760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610884565b611fa3825f83611e0f565b6001600160a01b0382165f90815260208190526040902054818110156120165760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610884565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b5f6020808352835180828501525f5b8181101561209e57858101830151858201604001528201612082565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146109f4575f80fd5b5f80604083850312156120e3575f80fd5b82356120ee816120be565b946020939093013593505050565b5f6020828403121561210c575f80fd5b8135612117816120be565b9392505050565b5f6020828403121561212e575f80fd5b5035919050565b5f805f60608486031215612147575f80fd5b8335612152816120be565b92506020840135612162816120be565b929592945050506040919091013590565b5f8060408385031215612184575f80fd5b823561218f816120be565b9150602083013561219f816120be565b809150509250929050565b600181811c908216806121be57607f821691505b6020821081036121dc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156107f5576107f56121e2565b5f60208284031215612219575f80fd5b81518015158114612117575f80fd5b5f60018201612239576122396121e2565b5060010190565b5f8161224e5761224e6121e2565b505f190190565b818103818111156107f5576107f56121e2565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b80820281158282048414176107f5576107f56121e2565b5f826122c157634e487b7160e01b5f52601260045260245ffd5b500490565b5f602082840312156122d6575f80fd5b8151612117816120be565b5f60808201868352602060808185015281875180845260a08601915082890193505f5b818110156123295784516001600160a01b031683529383019391830191600101612304565b50506001600160a01b039690961660408501525050506060015292915050565b5f602080838503121561235a575f80fd5b825167ffffffffffffffff80821115612371575f80fd5b818501915085601f830112612384575f80fd5b81518181111561239657612396612268565b8060051b604051601f19603f830116810181811085821117156123bb576123bb612268565b6040529182528482019250838101850191888311156123d8575f80fd5b938501935b828510156123f6578451845293850193928501926123dd565b9897505050505050505056fea2646970667358221220c47ca134f172df8d090a75977e22530903cbda0b5b01809498304e4961b760c864736f6c63430008150033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.