More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 4,184 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 21497100 | 33 hrs ago | IN | 0 ETH | 0.00011207 | ||||
Approve | 21479567 | 3 days ago | IN | 0 ETH | 0.00018898 | ||||
Approve | 21451398 | 7 days ago | IN | 0 ETH | 0.00050744 | ||||
Approve | 21414385 | 12 days ago | IN | 0 ETH | 0.0004937 | ||||
Transfer | 21381536 | 17 days ago | IN | 0 ETH | 0.00201276 | ||||
Approve | 21234891 | 38 days ago | IN | 0 ETH | 0.00046641 | ||||
Approve | 21220699 | 40 days ago | IN | 0 ETH | 0.00051005 | ||||
Approve | 21216305 | 40 days ago | IN | 0 ETH | 0.00051685 | ||||
Approve | 21216304 | 40 days ago | IN | 0 ETH | 0.00052559 | ||||
Approve | 21216297 | 40 days ago | IN | 0 ETH | 0.00052101 | ||||
Approve | 21216296 | 40 days ago | IN | 0 ETH | 0.00052442 | ||||
Approve | 21216161 | 40 days ago | IN | 0 ETH | 0.00098926 | ||||
Approve | 21203583 | 42 days ago | IN | 0 ETH | 0.0005074 | ||||
Approve | 21203497 | 42 days ago | IN | 0 ETH | 0.00045185 | ||||
Approve | 21203485 | 42 days ago | IN | 0 ETH | 0.00049214 | ||||
Approve | 21203481 | 42 days ago | IN | 0 ETH | 0.00029092 | ||||
Approve | 21203439 | 42 days ago | IN | 0 ETH | 0.00051533 | ||||
Approve | 21106407 | 55 days ago | IN | 0 ETH | 0.0001783 | ||||
Approve | 21106401 | 55 days ago | IN | 0 ETH | 0.00022325 | ||||
Approve | 21033167 | 66 days ago | IN | 0 ETH | 0.00027987 | ||||
Approve | 20910079 | 83 days ago | IN | 0 ETH | 0.00037767 | ||||
Approve | 20777035 | 101 days ago | IN | 0 ETH | 0.00037098 | ||||
Transfer | 20777031 | 101 days ago | IN | 0 ETH | 0.00032629 | ||||
Approve | 20617990 | 124 days ago | IN | 0 ETH | 0.00004028 | ||||
Approve | 20601829 | 126 days ago | IN | 0 ETH | 0.00003626 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21451402 | 7 days ago | 0.00031914 ETH | ||||
21451402 | 7 days ago | 0.00031914 ETH | ||||
21414418 | 12 days ago | 0.00170779 ETH | ||||
21414418 | 12 days ago | 0.00170779 ETH | ||||
21220702 | 40 days ago | 0.00086703 ETH | ||||
21220702 | 40 days ago | 0.00086703 ETH | ||||
21216161 | 40 days ago | 0.00086703 ETH | ||||
21216161 | 40 days ago | 0.00086703 ETH | ||||
21203586 | 42 days ago | 0.00034419 ETH | ||||
21203586 | 42 days ago | 0.00034419 ETH | ||||
21106412 | 55 days ago | 0.00016796 ETH | ||||
21106412 | 55 days ago | 0.00016796 ETH | ||||
20910079 | 83 days ago | 0.00016796 ETH | ||||
20910079 | 83 days ago | 0.00016796 ETH | ||||
20601837 | 126 days ago | 0.00002778 ETH | ||||
20601837 | 126 days ago | 0.00002778 ETH | ||||
20595375 | 127 days ago | 0.00195178 ETH | ||||
20595375 | 127 days ago | 0.00195178 ETH | ||||
20561323 | 132 days ago | 0.00025427 ETH | ||||
20561323 | 132 days ago | 0.00025427 ETH | ||||
20397012 | 154 days ago | 0.00025447 ETH | ||||
20397012 | 154 days ago | 0.00025447 ETH | ||||
20382884 | 156 days ago | 0.00081267 ETH | ||||
20382884 | 156 days ago | 0.00081267 ETH | ||||
20288166 | 170 days ago | 0.00069088 ETH |
Loading...
Loading
Contract Name:
Myobu
Compiler Version
v0.8.7+commit.e28d00a7
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.0; import "./ERC20Snapshot.sol"; contract Myobu is ERC20Snapshot { address public override DAO; // solhint-disable-line address public override myobuSwap; bool private antiLiqBot; constructor(address payable addr1) MyobuBase(addr1) { setFees(Fees(10, 10, 10, 10)); } modifier onlySupportedPair(address pair) { require(taxedPair(pair), "Pair is not supported"); _; } modifier onlyMyobuswapOnAntiLiq() { require(!antiLiqBot || _msgSender() == myobuSwap, "Use MyobuSwap"); _; } modifier checkDeadline(uint256 deadline) { require(block.timestamp <= deadline, "Transaction expired"); _; } function setDAO(address newDAO) external onlyOwner { DAO = newDAO; emit DAOChanged(newDAO); } function setMyobuSwap(address newMyobuSwap) external onlyOwner { myobuSwap = newMyobuSwap; emit MyobuSwapChanged(newMyobuSwap); } function snapshot() external returns (uint256) { require(_msgSender() == owner() || _msgSender() == DAO); return _snapshot(); } function setAntiLiqBot(bool setTo) external virtual onlyOwner { antiLiqBot = setTo; } function noFeeAddLiquidityETH(LiquidityETHParams calldata params) external payable override onlySupportedPair(params.pair) checkDeadline(params.deadline) onlyMyobuswapOnAntiLiq lockTheSwap returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ) { _transfer(_msgSender(), address(this), params.amountTokenOrLP); uint256 beforeBalance = address(this).balance - msg.value; (amountToken, amountETH, liquidity) = IUniswapV2Router( _routerFor[params.pair] ).addLiquidityETH{value: msg.value}( address(this), params.amountTokenOrLP, params.amountTokenMin, params.amountETHMin, params.to, block.timestamp ); // router refunds to this address, refund all back to sender if (address(this).balance > beforeBalance) { payable(_msgSender()).transfer( address(this).balance - beforeBalance ); } emit LiquidityAddedETH(params.pair, amountToken, amountETH, liquidity); } function noFeeRemoveLiquidityETH(LiquidityETHParams calldata params) external override onlySupportedPair(params.pair) checkDeadline(params.deadline) lockTheSwap returns (uint256 amountToken, uint256 amountETH) { MyobuLib.transferTokens( params.pair, _msgSender(), address(this), params.amountTokenOrLP ); (amountToken, amountETH) = IUniswapV2Router(_routerFor[params.pair]) .removeLiquidityETH( address(this), params.amountTokenOrLP, params.amountTokenMin, params.amountETHMin, params.to, block.timestamp ); emit LiquidityRemovedETH( params.pair, amountToken, amountETH, params.amountTokenOrLP ); } function noFeeAddLiquidity(AddLiquidityParams calldata params) external override onlySupportedPair(params.pair) checkDeadline(params.deadline) onlyMyobuswapOnAntiLiq lockTheSwap returns ( uint256 amountMyobu, uint256 amountToken, uint256 liquidity ) { address token = MyobuLib.tokenFor(params.pair); uint256 beforeBalance = IERC20(token).balanceOf(address(this)); _transfer(_msgSender(), address(this), params.amountToken); MyobuLib.transferTokens( token, _msgSender(), address(this), params.amountTokenB ); (amountToken, amountMyobu, liquidity) = IUniswapV2Router( _routerFor[params.pair] ).addLiquidity( token, address(this), params.amountTokenB, params.amountToken, params.amountTokenBMin, params.amountTokenMin, params.to, block.timestamp ); // router refunds to this address, refund all back to sender uint256 currentBalance = IERC20(token).balanceOf(address(this)); if (currentBalance > beforeBalance) { IERC20(token).transfer( _msgSender(), currentBalance - beforeBalance ); } emit LiquidityAdded(params.pair, amountMyobu, amountToken, liquidity); } function noFeeRemoveLiquidity(RemoveLiquidityParams calldata params) external override onlySupportedPair(params.pair) checkDeadline(params.deadline) lockTheSwap returns (uint256 amountMyobu, uint256 amountToken) { MyobuLib.transferTokens( params.pair, _msgSender(), address(this), params.amountLP ); (amountToken, amountMyobu) = IUniswapV2Router(_routerFor[params.pair]) .removeLiquidity( MyobuLib.tokenFor(params.pair), address(this), params.amountLP, params.amountTokenBMin, params.amountTokenMin, params.to, block.timestamp ); emit LiquidityRemoved( params.pair, amountMyobu, amountToken, params.amountLP ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Utils/Arrays.sol"; import "./Utils/Counters.sol"; import "./MyobuBase.sol"; /** * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and * total supply at the time are recorded for later access. * * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be * used to create an efficient ERC20 forking mechanism. * * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id * and the account address. * * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it * return `block.number` will trigger the creation of snapshot at the begining of each new block. When overridding this * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract. * * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient * alternative consider {ERC20Votes}. * * ==== Gas Costs * * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much * smaller since identical balances in subsequent snapshots are stored as a single entry. * * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent * transfers will have normal cost until the next snapshot, and so on. */ abstract contract ERC20Snapshot is MyobuBase { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a // Snapshot struct, but that would impede usage of functions that work on an array. struct Snapshots { uint256[] ids; uint256[] values; } mapping(address => Snapshots) private _accountBalanceSnapshots; Snapshots private _totalSupplySnapshots; // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid. Counters.Counter private _currentSnapshotId; /** * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created. */ event Snapshot(uint256 id); /** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to the public. * * [WARNING] * ==== * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking, * you must consider that it can potentially be used by attackers in two ways. * * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs * section above. * * We haven't measured the actual numbers; if this is something you're interested in please reach out to us. * ==== */ function _snapshot() internal virtual returns (uint256) { _currentSnapshotId.increment(); uint256 currentId = getCurrentSnapshotId(); emit Snapshot(currentId); return currentId; } /** * @dev Get the current snapshotId */ function getCurrentSnapshotId() public view virtual returns (uint256) { return _currentSnapshotId.current(); } /** * @dev Retrieves the balance of `account` at the time `snapshotId` was created. */ function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt( snapshotId, _accountBalanceSnapshots[account] ); return snapshotted ? value : balanceOf(account); } /** * @dev Retrieves the total supply at the time `snapshotId` was created. */ function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt( snapshotId, _totalSupplySnapshots ); return snapshotted ? value : totalSupply(); } // Update balance and/or total supply snapshots before the values are modified. This is implemented // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations. function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // mint _updateAccountSnapshot(to); _updateTotalSupplySnapshot(); } else if (to == address(0)) { // burn _updateAccountSnapshot(from); _updateTotalSupplySnapshot(); } else { // transfer _updateAccountSnapshot(from); _updateAccountSnapshot(to); } } function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) { require(snapshotId > 0, "ERC20Snapshot: id is 0"); require( snapshotId <= getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id" ); // When a valid snapshot is queried, there are three possibilities: // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds // to this id is the current one. // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the // requested id, and its value is the one to return. // c) More snapshots were created after the requested one, and the queried value was later modified. There will be // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is // larger than the requested one. // // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does // exactly this. uint256 index = snapshots.ids.findUpperBound(snapshotId); if (index == snapshots.ids.length) { return (false, 0); } else { return (true, snapshots.values[index]); } } function _updateAccountSnapshot(address account) private { _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account)); } function _updateTotalSupplySnapshot() private { _updateSnapshot(_totalSupplySnapshots, totalSupply()); } function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private { uint256 currentId = getCurrentSnapshotId(); if (_lastSnapshotId(snapshots.ids) < currentId) { snapshots.ids.push(currentId); snapshots.values.push(currentValue); } } function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) { if (ids.length == 0) { return 0; } else { return ids[ids.length - 1]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC20.sol"; import "./Utils/MyobuLib.sol"; import "./Utils/Ownable.sol"; import "./Interfaces/IUniswapV2Router.sol"; import "./Interfaces/IUniswapV2Factory.sol"; import "./Interfaces/IUniswapV2Pair.sol"; import "./Interfaces/IMyobu.sol"; abstract contract MyobuBase is IMyobu, Ownable, ERC20 { uint256 internal constant MAX = type(uint256).max; uint256 private constant SUPPLY = 1000000000000 * 10**9; string internal constant NAME = unicode"Myōbu"; string internal constant SYMBOL = "MYOBU"; uint8 internal constant DECIMALS = 9; // pair => router mapping(address => address) internal _routerFor; mapping(address => bool) private taxedTransfer; Fees private fees; address payable internal _taxAddress; IUniswapV2Router internal uniswapV2Router; address internal uniswapV2Pair; bool private tradingOpen; bool private liquidityAdded; bool private inSwap; bool private swapEnabled; modifier lockTheSwap() { inSwap = true; _; inSwap = false; } constructor(address payable addr1) ERC20(NAME, SYMBOL) { _taxAddress = addr1; _mint(_msgSender(), SUPPLY); } function decimals() public pure virtual override returns (uint8) { return DECIMALS; } function taxedPair(address pair) public view virtual override returns (bool) { return _routerFor[pair] != address(0); } // Transfer tokens without emmiting events from an address to this address, used for taking fees function transferFee(address from, uint256 amount) internal { _balances[from] -= amount; _balances[address(this)] += amount; } function takeFee( address from, uint256 amount, uint256 teamFee ) internal returns (uint256) { if (teamFee == 0) return 0; uint256 tTeam = MyobuLib.percentageOf(amount, teamFee); transferFee(from, tTeam); emit FeesTaken(tTeam); return tTeam; } function _transfer( address from, address to, uint256 amount ) internal virtual override { // If no fee, it is 0 which will take no fee uint256 _teamFee; if (from != owner() && to != owner()) { if (swapEnabled && !inSwap) { if (taxedPair(from) && !taxedPair(to)) { require(tradingOpen); _teamFee = fees.buyFee; } else if (taxedTransfer[from] || taxedTransfer[to]) { _teamFee = fees.transferFee; } else if (taxedPair(to)) { require(tradingOpen); require(amount <= (balanceOf(to) * fees.impact) / 100); swapTokensForEth(balanceOf(address(this))); sendETHToFee(address(this).balance); _teamFee = fees.sellFee; } } } uint256 fee = takeFee(from, amount, _teamFee); super._transfer(from, to, amount - fee); } function swapTokensForEth(uint256 tokenAmount) internal lockTheSwap { MyobuLib.swapForETH(uniswapV2Router, tokenAmount, address(this)); } function sendETHToFee(uint256 amount) internal { _taxAddress.transfer(amount); } function openTrading() external virtual onlyOwner { require(liquidityAdded); tradingOpen = true; } function addDEX(address pair, address router) public virtual onlyOwner { require(!taxedPair(pair), "DEX already exists"); address tokenFor = MyobuLib.tokenFor(pair); _routerFor[pair] = router; _approve(address(this), router, MAX); IERC20(tokenFor).approve(router, MAX); IERC20(pair).approve(router, MAX); } function removeDEX(address pair) external virtual onlyOwner { require(taxedPair(pair), "DEX does not exist"); address tokenFor = MyobuLib.tokenFor(pair); address router = _routerFor[pair]; delete _routerFor[pair]; _approve(address(this), router, 0); IERC20(tokenFor).approve(router, 0); IERC20(pair).approve(router, 0); } function addLiquidity() external virtual onlyOwner lockTheSwap { IUniswapV2Router _uniswapV2Router = IUniswapV2Router( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); addDEX(uniswapV2Pair, address(_uniswapV2Router)); MyobuLib.addLiquidityETH( uniswapV2Router, balanceOf(address(this)), address(this).balance, owner() ); liquidityAdded = true; } function setTaxAddress(address payable newTaxAddress) external onlyOwner { _taxAddress = newTaxAddress; emit TaxAddressChanged(newTaxAddress); } function setTaxedTransferFor(address[] calldata taxedTransfer_) external virtual onlyOwner { for (uint256 i; i < taxedTransfer_.length; i++) { taxedTransfer[taxedTransfer_[i]] = true; } emit TaxedTransferAddedFor(taxedTransfer_); } function removeTaxedTransferFor(address[] calldata notTaxed) external virtual onlyOwner { for (uint256 i; i < notTaxed.length; i++) { taxedTransfer[notTaxed[i]] = false; } emit TaxedTransferRemovedFor(notTaxed); } function manualswap() external onlyOwner { swapTokensForEth(balanceOf(address(this))); } function manualsend() external onlyOwner { sendETHToFee(address(this).balance); } function setSwapRouter(IUniswapV2Router newRouter) external onlyOwner { require(liquidityAdded, "Add liquidity before doing this"); address weth = uniswapV2Router.WETH(); address newPair = IUniswapV2Factory(newRouter.factory()).getPair( address(this), weth ); require( newPair != address(0), "WETH Pair does not exist for that router" ); require(taxedPair(newPair), "The pair must be a taxed pair"); (uint256 reservesOld, , ) = IUniswapV2Pair(uniswapV2Pair).getReserves(); (uint256 reservesNew, , ) = IUniswapV2Pair(newPair).getReserves(); require( reservesNew > reservesOld, "New pair must have more WETH Reserves" ); uniswapV2Router = newRouter; uniswapV2Pair = newPair; } function setFees(Fees memory newFees) public onlyOwner { require( newFees.impact != 0 && newFees.impact <= 100, "Impact must be greater than 0 and under or equal to 100" ); require( newFees.buyFee < 15 && newFees.sellFee < 15 && newFees.transferFee <= newFees.sellFee, "Fees for a buy / sell must be under 15" ); fees = newFees; if (newFees.buyFee + newFees.sellFee == 0) { swapEnabled = false; } else { swapEnabled = true; } emit FeesChanged(newFees); } function currentFees() external view override returns (Fees memory) { return fees; } // solhint-disable-next-line receive() external payable virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Math.sol"; /** * @dev Collection of functions related to array types. */ library Arrays { /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds down (it does integer division with truncation). if (array[mid] > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && array[low - 1] == element) { return low - 1; } else { return low; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; interface IMyobu is IERC20 { event DAOChanged(address newDAOContract); event MyobuSwapChanged(address newMyobuSwap); function DAO() external view returns (address); // solhint-disable-line function myobuSwap() external view returns (address); event TaxAddressChanged(address newTaxAddress); event TaxedTransferAddedFor(address[] addresses); event TaxedTransferRemovedFor(address[] addresses); event FeesTaken(uint256 teamFee); event FeesChanged(Fees newFees); struct Fees { uint256 impact; uint256 buyFee; uint256 sellFee; uint256 transferFee; } function currentFees() external view returns (Fees memory); struct LiquidityETHParams { address pair; address to; uint256 amountTokenOrLP; uint256 amountTokenMin; uint256 amountETHMin; uint256 deadline; } event LiquidityAddedETH( address pair, uint256 amountToken, uint256 amountETH, uint256 liquidity ); function noFeeAddLiquidityETH(LiquidityETHParams calldata params) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); event LiquidityRemovedETH( address pair, uint256 amountToken, uint256 amountETH, uint256 amountRemoved ); function noFeeRemoveLiquidityETH(LiquidityETHParams calldata params) external returns (uint256 amountToken, uint256 amountETH); struct AddLiquidityParams { address pair; address to; uint256 amountToken; uint256 amountTokenB; uint256 amountTokenMin; uint256 amountTokenBMin; uint256 deadline; } event LiquidityAdded( address pair, uint256 amountMyobu, uint256 amountToken, uint256 liquidity ); function noFeeAddLiquidity(AddLiquidityParams calldata params) external returns ( uint256 amountMyobu, uint256 amountToken, uint256 liquidity ); struct RemoveLiquidityParams { address pair; address to; uint256 amountLP; uint256 amountTokenMin; uint256 amountTokenBMin; uint256 deadline; } event LiquidityRemoved( address pair, uint256 amountMyobu, uint256 amountToken, uint256 liquidity ); function noFeeRemoveLiquidity(RemoveLiquidityParams calldata params) external returns (uint256 amountMyobu, uint256 amountToken); function taxedPair(address pair) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 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 (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 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 (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); 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 (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IUniswapV2Factory { function createPair(address tokenA, address tokenB) external returns (address pair); function getPair(address tokenA, address tokenB) external view returns (address pair); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IUniswapV2Router01 { function factory() external pure returns (address); // solhint-disable-next-line function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); } interface IUniswapV2Router is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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() external virtual onlyOwner { _setOwner(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) external virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../Interfaces/IUniswapV2Router.sol"; import "../Interfaces/IUniswapV2Pair.sol"; import "../Interfaces/IERC20.sol"; library MyobuLib { /** * @dev Calculates the percentage of a number * @param number: The number to calculate the percentage of * @param percentage: The percentage of the number to return * @return The percentage of a number */ function percentageOf(uint256 number, uint256 percentage) internal pure returns (uint256) { return (number * percentage) / 100; } /** * @dev Swaps an amount of tokens for ETH * @param uniswapV2Router: The uniswap router to trade through * @param amount: The amount of tokens to swap * @param to: The address to send the recieved tokens to * @return The amount of ETH recieved */ function swapForETH( IUniswapV2Router uniswapV2Router, uint256 amount, address to ) internal returns (uint256) { uint256 startingBalance = to.balance; address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( amount, 0, path, to, block.timestamp ); return to.balance - startingBalance; } /** * @dev Adds liquidity for the token in ETH * @param uniswapV2Router: The uniswap router to add liquidity through * @param amountToken: The amount of tokens to add liquidity with * @param amountETH: The amount of ETH to add liquidity with * @param to: The address to send the recieved LP tokens to */ function addLiquidityETH( IUniswapV2Router uniswapV2Router, uint256 amountToken, uint256 amountETH, address to ) internal { uniswapV2Router.addLiquidityETH{value: amountETH}( address(this), amountToken, 0, 0, to, block.timestamp ); } /** * @param token: The address of the token to transfer * @param from: The sender of the tokens * @param to: The receiver of the tokens * @param amount: The amount of tokens to transfer */ function transferTokens( address token, address from, address to, uint256 amount ) internal { IERC20(token).transferFrom(from, to, amount); } /** * @dev Returns the token for a Uniswap V2 Pair */ function tokenFor(address pair) internal view returns (address) { return IUniswapV2Pair(pair).token0(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Interfaces/IERC20.sol"; import "./Interfaces/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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require( currentAllowance >= amount, "ERC20: transfer amount exceeds allowance" ); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve( _msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require( currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero" ); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require( senderBalance >= amount, "ERC20: transfer amount exceeds balance" ); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `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; _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; } _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 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 {} // solhint-disable-line /** * @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 {} // solhint-disable-line }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval( address indexed owner, address indexed spender, uint256 value ); }
// SPDX-License-Identifier: MIT 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", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"addr1","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newDAOContract","type":"address"}],"name":"DAOChanged","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"impact","type":"uint256"},{"internalType":"uint256","name":"buyFee","type":"uint256"},{"internalType":"uint256","name":"sellFee","type":"uint256"},{"internalType":"uint256","name":"transferFee","type":"uint256"}],"indexed":false,"internalType":"struct IMyobu.Fees","name":"newFees","type":"tuple"}],"name":"FeesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"teamFee","type":"uint256"}],"name":"FeesTaken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountMyobu","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"LiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"LiquidityAddedETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountMyobu","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"LiquidityRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountRemoved","type":"uint256"}],"name":"LiquidityRemovedETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newMyobuSwap","type":"address"}],"name":"MyobuSwapChanged","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":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newTaxAddress","type":"address"}],"name":"TaxAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"TaxedTransferAddedFor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"TaxedTransferRemovedFor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DAO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"address","name":"router","type":"address"}],"name":"addDEX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"addLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentFees","outputs":[{"components":[{"internalType":"uint256","name":"impact","type":"uint256"},{"internalType":"uint256","name":"buyFee","type":"uint256"},{"internalType":"uint256","name":"sellFee","type":"uint256"},{"internalType":"uint256","name":"transferFee","type":"uint256"}],"internalType":"struct IMyobu.Fees","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":[],"name":"getCurrentSnapshotId","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":[],"name":"manualsend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualswap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"myobuSwap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountTokenB","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountTokenBMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct IMyobu.AddLiquidityParams","name":"params","type":"tuple"}],"name":"noFeeAddLiquidity","outputs":[{"internalType":"uint256","name":"amountMyobu","type":"uint256"},{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountTokenOrLP","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct IMyobu.LiquidityETHParams","name":"params","type":"tuple"}],"name":"noFeeAddLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountLP","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountTokenBMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct IMyobu.RemoveLiquidityParams","name":"params","type":"tuple"}],"name":"noFeeRemoveLiquidity","outputs":[{"internalType":"uint256","name":"amountMyobu","type":"uint256"},{"internalType":"uint256","name":"amountToken","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountTokenOrLP","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct IMyobu.LiquidityETHParams","name":"params","type":"tuple"}],"name":"noFeeRemoveLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"removeDEX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"notTaxed","type":"address[]"}],"name":"removeTaxedTransferFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"setTo","type":"bool"}],"name":"setAntiLiqBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDAO","type":"address"}],"name":"setDAO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"impact","type":"uint256"},{"internalType":"uint256","name":"buyFee","type":"uint256"},{"internalType":"uint256","name":"sellFee","type":"uint256"},{"internalType":"uint256","name":"transferFee","type":"uint256"}],"internalType":"struct IMyobu.Fees","name":"newFees","type":"tuple"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMyobuSwap","type":"address"}],"name":"setMyobuSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IUniswapV2Router","name":"newRouter","type":"address"}],"name":"setSwapRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newTaxAddress","type":"address"}],"name":"setTaxAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"taxedTransfer_","type":"address[]"}],"name":"setTaxedTransferFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"taxedPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004082380380620040828339810160408190526200003491620006a9565b80604051806040016040528060068152602001654d79c58d627560d01b815250604051806040016040528060058152602001644d594f425560d81b8152506200008c620000866200012e60201b60201c565b62000132565b8151620000a190600490602085019062000603565b508051620000b790600590602084019062000603565b5050600c80546001600160a01b0319166001600160a01b03841617905550620000f1620000e13390565b683635c9adc5dea0000062000182565b50620001276040518060800160405280600a8152602001600a8152602001600a8152602001600a8152506200027960201b60201c565b5062000779565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620001de5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b620001ec6000838362000492565b8060036000828254620002009190620006db565b90915550506001600160a01b038216600090815260016020526040812080548392906200022f908490620006db565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000546001600160a01b03163314620002d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620001d5565b805115801590620002e857508051606410155b6200035c5760405162461bcd60e51b815260206004820152603760248201527f496d70616374206d7573742062652067726561746572207468616e203020616e60448201527f6420756e646572206f7220657175616c20746f203130300000000000000000006064820152608401620001d5565b600f8160200151108015620003755750600f8160400151105b80156200038a57508060400151816060015111155b620003e75760405162461bcd60e51b815260206004820152602660248201527f4665657320666f72206120627579202f2073656c6c206d75737420626520756e60448201526564657220313560d01b6064820152608401620001d5565b8051600855602081015160098190556040820151600a8190556060830151600b556200041391620006db565b6200042b57600e805460ff60b81b191690556200043f565b600e805460ff60b81b1916600160b81b1790555b60408051825181526020808401519082015282820151818301526060808401519082015290517fcf017c5010fe93359ce9498a638540e036462c920835120cbe9f0d98743f1b7a9181900360800190a150565b620004aa838383620004ce60201b6200260e1760201c565b6001600160a01b038316620004d357620004c482620004fe565b620004ce62000537565b505050565b6001600160a01b038216620004ed57620004c483620004fe565b620004f883620004fe565b620004ce825b6001600160a01b0381166000908152600f6020908152604080832060019092529091205462000534919062000549565b62000549565b50565b6200054760106200052e60035490565b565b60006200055562000598565b9050806200056384620005b6565b1015620004ce578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b6000620005b16012620005ff60201b620026131760201c565b905090565b8054600090620005c857506000919050565b81548290620005da90600190620006f6565b81548110620005ed57620005ed62000763565b90600052602060002001549050919050565b5490565b828054620006119062000710565b90600052602060002090601f01602090048101928262000635576000855562000680565b82601f106200065057805160ff191683800117855562000680565b8280016001018555821562000680579182015b828111156200068057825182559160200191906001019062000663565b506200068e92915062000692565b5090565b5b808211156200068e576000815560010162000693565b600060208284031215620006bc57600080fd5b81516001600160a01b0381168114620006d457600080fd5b9392505050565b60008219821115620006f157620006f16200074d565b500190565b6000828210156200070b576200070b6200074d565b500390565b600181811c908216806200072557607f821691505b602082108114156200074757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6138f980620007896000396000f3fe60806040526004361061023f5760003560e01c80637c6e5c811161012e578063a457c2d7116100ab578063dd62ed3e1161006f578063dd62ed3e146106d3578063e73a914c14610719578063e8078d9414610739578063f2fde38b1461074e578063fd77c9601461076e57600080fd5b8063a457c2d714610649578063a9059cbb14610669578063c3c8cd8014610689578063c9567bf91461069e578063d0d29fbf146106b357600080fd5b806395d89b41116100f257806395d89b41146105bf5780639711715a146105d4578063981b24d0146105e957806398fabd3a14610609578063a1883d261461062957600080fd5b80637c6e5c81146105165780638c83176a1461054e5780638c8f3f821461056e5780638cdbadbf1461058e5780638da5cb5b146105a157600080fd5b80634ee2cd7e116101bc5780636fc3eaec116101805780636fc3eaec1461048c57806370a08231146104a15780637113e855146104c1578063715018a6146104e157806374896523146104f657600080fd5b80634ee2cd7e146103ba5780635439ad86146103da5780635d467b6a146103ef5780635d9644c4146104245780636df2dcd61461046c57600080fd5b806323b872dd1161020357806323b872dd1461031e578063313ce5671461033e5780633560d1b51461035a578063395093511461037a578063412736571461039a57600080fd5b8063016145f21461024b57806303e148de1461028b57806306fdde03146102ad578063095ea7b3146102cf57806318160ddd146102ff57600080fd5b3661024657005b600080fd5b34801561025757600080fd5b5061026b610266366004613438565b61078e565b604080519384526020840192909252908201526060015b60405180910390f35b34801561029757600080fd5b506102ab6102a6366004613389565b610bd3565b005b3480156102b957600080fd5b506102c2610cad565b604051610282919061365d565b3480156102db57600080fd5b506102ef6102ea36600461335d565b610d3f565b6040519015158152602001610282565b34801561030b57600080fd5b506003545b604051908152602001610282565b34801561032a57600080fd5b506102ef61033936600461331c565b610d56565b34801561034a57600080fd5b5060405160098152602001610282565b34801561036657600080fd5b506102ab6103753660046132a9565b610e02565b34801561038657600080fd5b506102ef61039536600461335d565b610e81565b3480156103a657600080fd5b506102ab6103b53660046132a9565b610ebd565b3480156103c657600080fd5b506103106103d536600461335d565b61130a565b3480156103e657600080fd5b50610310611353565b3480156103fb57600080fd5b5061040f61040a3660046134be565b611363565b60408051928352602083019190915201610282565b34801561043057600080fd5b5061043961151f565b60405161028291908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561047857600080fd5b506102ab6104873660046132e3565b611577565b34801561049857600080fd5b506102ab611742565b3480156104ad57600080fd5b506103106104bc3660046132a9565b611777565b3480156104cd57600080fd5b506102ef6104dc3660046132a9565b611792565b3480156104ed57600080fd5b506102ab6117b2565b34801561050257600080fd5b506102ab6105113660046133fe565b6117e6565b34801561052257600080fd5b50601454610536906001600160a01b031681565b6040516001600160a01b039091168152602001610282565b34801561055a57600080fd5b506102ab610569366004613389565b61182e565b34801561057a57600080fd5b506102ab6105893660046132a9565b6118fc565b61026b61059c3660046134be565b611a6f565b3480156105ad57600080fd5b506000546001600160a01b0316610536565b3480156105cb57600080fd5b506102c2611cfa565b3480156105e057600080fd5b50610310611d09565b3480156105f557600080fd5b5061031061060436600461352a565b611d47565b34801561061557600080fd5b50601354610536906001600160a01b031681565b34801561063557600080fd5b506102ab6106443660046132a9565b611d72565b34801561065557600080fd5b506102ef61066436600461335d565b611dea565b34801561067557600080fd5b506102ef61068436600461335d565b611e83565b34801561069557600080fd5b506102ab611e90565b3480156106aa57600080fd5b506102ab611ecb565b3480156106bf57600080fd5b5061040f6106ce3660046134be565b611f20565b3480156106df57600080fd5b506103106106ee3660046132e3565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b34801561072557600080fd5b506102ab6107343660046132a9565b6120db565b34801561074557600080fd5b506102ab612153565b34801561075a57600080fd5b506102ab6107693660046132a9565b612399565b34801561077a57600080fd5b506102ab61078936600461344a565b612434565b6000808061079f60208501856132a9565b6107a881611792565b6107cd5760405162461bcd60e51b81526004016107c4906136b2565b60405180910390fd5b8460c00135804211156107f25760405162461bcd60e51b81526004016107c4906136e1565b601454600160a01b900460ff16158061081e57506014546001600160a01b0316336001600160a01b0316145b61085a5760405162461bcd60e51b815260206004820152600d60248201526c0557365204d796f62755377617609c1b60448201526064016107c4565b600e805460ff60b01b1916600160b01b179055600061088461087f60208901896132a9565b612617565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156108c957600080fd5b505afa1580156108dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109019190613543565b905061091233308a6040013561268a565b6109228233308b60600135612807565b6006600061093360208b018b6132a9565b6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663e8e3370083308b606001358c604001358d60a001358e608001358f602001602081019061099e91906132a9565b60405160e089901b6001600160e01b03191681526001600160a01b039788166004820152958716602487015260448601949094526064850192909252608484015260a483015290911660c48201524260e482015261010401606060405180830381600087803b158015610a1057600080fd5b505af1158015610a24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a489190613580565b6040516370a0823160e01b81523060048201529199509197509095506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610a9357600080fd5b505afa158015610aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acb9190613543565b905081811115610b6f576001600160a01b03831663a9059cbb33610aef858561380d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610b3557600080fd5b505af1158015610b49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6d919061341b565b505b7f64b83944e79c3ce8d4c297411de637c3e102d064677aac0c163976ebdcd6f50e610b9d60208b018b6132a9565b898989604051610bb094939291906135e9565b60405180910390a15050600e805460ff60b01b1916905550939592945090925050565b6000546001600160a01b03163314610bfd5760405162461bcd60e51b81526004016107c49061370e565b60005b81811015610c6f57600160076000858585818110610c2057610c2061388a565b9050602002016020810190610c3591906132a9565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610c6781613859565b915050610c00565b507f70e726881c86ff879cab43b40fe568dc9d57db26eaaf1435d5cfd3d5d3d2e3c78282604051610ca192919061360f565b60405180910390a15050565b606060048054610cbc90613824565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce890613824565b8015610d355780601f10610d0a57610100808354040283529160200191610d35565b820191906000526020600020905b815481529060010190602001808311610d1857829003601f168201915b5050505050905090565b6000610d4c338484612891565b5060015b92915050565b6000610d6384848461268a565b6001600160a01b038416600090815260026020908152604080832033845290915290205482811015610de85760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016107c4565b610df58533858403612891565b60019150505b9392505050565b6000546001600160a01b03163314610e2c5760405162461bcd60e51b81526004016107c49061370e565b601480546001600160a01b0319166001600160a01b0383169081179091556040519081527f7c916373d56fa77c6c0a47d637d20e8670919d411d61550378dd42fbd526f1c4906020015b60405180910390a150565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091610d4c918590610eb89086906137b4565b612891565b6000546001600160a01b03163314610ee75760405162461bcd60e51b81526004016107c49061370e565b600e54600160a81b900460ff16610f405760405162461bcd60e51b815260206004820152601f60248201527f416464206c6971756964697479206265666f726520646f696e6720746869730060448201526064016107c4565b600d54604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c4648916004808301926020929190829003018186803b158015610f8557600080fd5b505afa158015610f99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fbd91906132c6565b90506000826001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015610ffa57600080fd5b505afa15801561100e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103291906132c6565b60405163e6a4390560e01b81523060048201526001600160a01b038481166024830152919091169063e6a439059060440160206040518083038186803b15801561107b57600080fd5b505afa15801561108f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b391906132c6565b90506001600160a01b03811661111c5760405162461bcd60e51b815260206004820152602860248201527f57455448205061697220646f6573206e6f7420657869737420666f72207468616044820152673a103937baba32b960c11b60648201526084016107c4565b61112581611792565b6111715760405162461bcd60e51b815260206004820152601d60248201527f5468652070616972206d7573742062652061207461786564207061697200000060448201526064016107c4565b600e5460408051630240bc6b60e21b815290516000926001600160a01b031691630902f1ac916004808301926060929190829003018186803b1580156111b657600080fd5b505afa1580156111ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ee91906134da565b50506001600160701b031690506000826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561123657600080fd5b505afa15801561124a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126e91906134da565b50506001600160701b031690508181116112d85760405162461bcd60e51b815260206004820152602560248201527f4e65772070616972206d7573742068617665206d6f7265205745544820526573604482015264657276657360d81b60648201526084016107c4565b5050600d80546001600160a01b039485166001600160a01b031991821617909155600e80549290941691161790915550565b6001600160a01b0382166000908152600f60205260408120819081906113319085906129b5565b91509150816113485761134385611777565b61134a565b805b95945050505050565b600061135e60125490565b905090565b60008061137360208401846132a9565b61137c81611792565b6113985760405162461bcd60e51b81526004016107c4906136b2565b8360a00135804211156113bd5760405162461bcd60e51b81526004016107c4906136e1565b600e805460ff60b01b1916600160b01b1790556113ec6113e060208701876132a9565b33308860400135612807565b600660006113fd60208801886132a9565b6001600160a01b03908116825260208083019390935260409182016000205416916302751cec91309190890180359160608b01359160808c01359161144491908d016132a9565b426040518763ffffffff1660e01b8152600401611466969594939291906135ae565b6040805180830381600087803b15801561147f57600080fd5b505af1158015611493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b7919061355c565b90945092507fefd72b207f9ce854f390856eb1595b3d30d4bdb69cb41ec7a02cc20167fb61986114ea60208701876132a9565b8585886040013560405161150194939291906135e9565b60405180910390a15050600e805460ff60b01b191690559092909150565b61154a6040518060800160405280600081526020016000815260200160008152602001600081525090565b506040805160808101825260085481526009546020820152600a5491810191909152600b54606082015290565b6000546001600160a01b031633146115a15760405162461bcd60e51b81526004016107c49061370e565b6115aa82611792565b156115ec5760405162461bcd60e51b815260206004820152601260248201527144455820616c72656164792065786973747360701b60448201526064016107c4565b60006115f783612617565b6001600160a01b03848116600090815260066020526040902080546001600160a01b03191691851691909117905590506116343083600019612891565b60405163095ea7b360e01b81526001600160a01b038381166004830152600019602483015282169063095ea7b390604401602060405180830381600087803b15801561167f57600080fd5b505af1158015611693573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b7919061341b565b5060405163095ea7b360e01b81526001600160a01b038381166004830152600019602483015284169063095ea7b3906044015b602060405180830381600087803b15801561170457600080fd5b505af1158015611718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173c919061341b565b50505050565b6000546001600160a01b0316331461176c5760405162461bcd60e51b81526004016107c49061370e565b61177547612aac565b565b6001600160a01b031660009081526001602052604090205490565b6001600160a01b0390811660009081526006602052604090205416151590565b6000546001600160a01b031633146117dc5760405162461bcd60e51b81526004016107c49061370e565b6117756000612aea565b6000546001600160a01b031633146118105760405162461bcd60e51b81526004016107c49061370e565b60148054911515600160a01b0260ff60a01b19909216919091179055565b6000546001600160a01b031633146118585760405162461bcd60e51b81526004016107c49061370e565b60005b818110156118ca5760006007600085858581811061187b5761187b61388a565b905060200201602081019061189091906132a9565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806118c281613859565b91505061185b565b507f7aa701ce35f1b491895c6c3e6c3872f135608c09e24df465ce2df2e0b47223688282604051610ca192919061360f565b6000546001600160a01b031633146119265760405162461bcd60e51b81526004016107c49061370e565b61192f81611792565b6119705760405162461bcd60e51b815260206004820152601260248201527111115608191bd95cc81b9bdd08195e1a5cdd60721b60448201526064016107c4565b600061197b82612617565b6001600160a01b03808416600090815260066020526040812080546001600160a01b031981169091559293509116906119b79030908390612891565b60405163095ea7b360e01b81526001600160a01b0382811660048301526000602483015283169063095ea7b390604401602060405180830381600087803b158015611a0157600080fd5b505af1158015611a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a39919061341b565b5060405163095ea7b360e01b81526001600160a01b0382811660048301526000602483015284169063095ea7b3906044016116ea565b60008080611a8060208501856132a9565b611a8981611792565b611aa55760405162461bcd60e51b81526004016107c4906136b2565b8460a0013580421115611aca5760405162461bcd60e51b81526004016107c4906136e1565b601454600160a01b900460ff161580611af657506014546001600160a01b0316336001600160a01b0316145b611b325760405162461bcd60e51b815260206004820152600d60248201526c0557365204d796f62755377617609c1b60448201526064016107c4565b600e805460ff60b01b1916600160b01b179055611b5a611b4f3390565b30886040013561268a565b6000611b66344761380d565b905060066000611b7960208a018a6132a9565b6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663f305d71934308a604001358b606001358c608001358d6020016020810190611bdf91906132a9565b426040518863ffffffff1660e01b8152600401611c01969594939291906135ae565b6060604051808303818588803b158015611c1a57600080fd5b505af1158015611c2e573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611c539190613580565b9197509550935047811015611c9a57336108fc611c70834761380d565b6040518115909202916000818181858888f19350505050158015611c98573d6000803e3d6000fd5b505b7f30834679453bdb296e5431ef21208ba179941518b4d01bc4ccc7f2355360df87611cc860208901896132a9565b878787604051611cdb94939291906135e9565b60405180910390a15050600e805460ff60b01b19169055509193909250565b606060058054610cbc90613824565b600080546001600160a01b0316331480611d3657506013546001600160a01b0316336001600160a01b0316145b611d3f57600080fd5b61135e612b3a565b6000806000611d578460106129b5565b9150915081611d6857600354611d6a565b805b949350505050565b6000546001600160a01b03163314611d9c5760405162461bcd60e51b81526004016107c49061370e565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f9e905b198adfa70dbc3c719ad6b91c9cea8dfb106a2e2121526342562413acb890602001610e76565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015611e6c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107c4565b611e793385858403612891565b5060019392505050565b6000610d4c33848461268a565b6000546001600160a01b03163314611eba5760405162461bcd60e51b81526004016107c49061370e565b611775611ec630611777565b612b94565b6000546001600160a01b03163314611ef55760405162461bcd60e51b81526004016107c49061370e565b600e54600160a81b900460ff16611f0b57600080fd5b600e805460ff60a01b1916600160a01b179055565b600080611f3060208401846132a9565b611f3981611792565b611f555760405162461bcd60e51b81526004016107c4906136b2565b8360a0013580421115611f7a5760405162461bcd60e51b81526004016107c4906136e1565b600e805460ff60b01b1916600160b01b179055611f9d6113e060208701876132a9565b60066000611fae60208801886132a9565b6001600160a01b039081168252602080830193909352604090910160002054169063baa2abde90611fe59061087f908901896132a9565b306040890180359060808b01359060608c0135906120069060208e016132a9565b60405160e088901b6001600160e01b03191681526001600160a01b039687166004820152948616602486015260448501939093526064840191909152608483015290911660a48201524260c482015260e4016040805180830381600087803b15801561207157600080fd5b505af1158015612085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a9919061355c565b945092507f1dc8bb69df2b8e91fbdcbfcf93d951b3f0000f085a95fe3f7946d6161439245d6114ea60208701876132a9565b6000546001600160a01b031633146121055760405162461bcd60e51b81526004016107c49061370e565b601380546001600160a01b0319166001600160a01b0383169081179091556040519081527f7a62ea533b501818ff8d9bde48cb1382a6df937b9339fe41e7d9a18db20e3e8690602001610e76565b6000546001600160a01b0316331461217d5760405162461bcd60e51b81526004016107c49061370e565b600e805460ff60b01b1916600160b01b179055600d80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b81529051829163c45a0155916004808301926020929190829003018186803b1580156121f057600080fd5b505afa158015612204573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222891906132c6565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561227057600080fd5b505afa158015612284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a891906132c6565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156122f057600080fd5b505af1158015612304573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232891906132c6565b600e80546001600160a01b0319166001600160a01b039290921691821790556123519082611577565b600d54612382906001600160a01b031661236a30611777565b4761237d6000546001600160a01b031690565b612bcf565b50600e805461ffff60a81b1916600160a81b179055565b6000546001600160a01b031633146123c35760405162461bcd60e51b81526004016107c49061370e565b6001600160a01b0381166124285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c4565b61243181612aea565b50565b6000546001600160a01b0316331461245e5760405162461bcd60e51b81526004016107c49061370e565b80511580159061247057508051606410155b6124e25760405162461bcd60e51b815260206004820152603760248201527f496d70616374206d7573742062652067726561746572207468616e203020616e60448201527f6420756e646572206f7220657175616c20746f2031303000000000000000000060648201526084016107c4565b600f81602001511080156124fa5750600f8160400151105b801561250e57508060400151816060015111155b6125695760405162461bcd60e51b815260206004820152602660248201527f4665657320666f72206120627579202f2073656c6c206d75737420626520756e60448201526564657220313560d01b60648201526084016107c4565b8051600855602081015160098190556040820151600a8190556060830151600b55612593916137b4565b6125a957600e805460ff60b81b191690556125bd565b600e805460ff60b81b1916600160b81b1790555b6040805182518152602080840151908201528183015191810191909152606080830151908201527fcf017c5010fe93359ce9498a638540e036462c920835120cbe9f0d98743f1b7a90608001610e76565b505050565b5490565b6000816001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561265257600080fd5b505afa158015612666573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5091906132c6565b600080546001600160a01b038581169116148015906126b757506000546001600160a01b03848116911614155b156127dd57600e54600160b81b900460ff1680156126df5750600e54600160b01b900460ff16155b156127dd576126ed84611792565b80156126ff57506126fd83611792565b155b1561272357600e54600160a01b900460ff1661271a57600080fd5b506009546127dd565b6001600160a01b03841660009081526007602052604090205460ff168061276257506001600160a01b03831660009081526007602052604090205460ff165b156127705750600b546127dd565b61277983611792565b156127dd57600e54600160a01b900460ff1661279457600080fd5b6008546064906127a385611777565b6127ad91906137ee565b6127b791906137cc565b8211156127c357600080fd5b6127cf611ec630611777565b6127d847612aac565b50600a545b60006127ea858484612c63565b905061280085856127fb848761380d565b612cc5565b5050505050565b6040516323b872dd60e01b81526001600160a01b0384811660048301528381166024830152604482018390528516906323b872dd90606401602060405180830381600087803b15801561285957600080fd5b505af115801561286d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612800919061341b565b6001600160a01b0383166128f35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107c4565b6001600160a01b0382166129545760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107c4565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60008060008411612a015760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016107c4565b612a09611353565b841115612a585760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016107c4565b6000612a648486612e9e565b8454909150811415612a7d576000809250925050612aa5565b6001846001018281548110612a9457612a9461388a565b906000526020600020015492509250505b9250929050565b600c546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612ae6573d6000803e3d6000fd5b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612b4a601280546001019055565b6000612b54611353565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb6781604051612b8791815260200190565b60405180910390a1919050565b600e805460ff60b01b1916600160b01b179055600d54612bbe906001600160a01b03168230612f61565b5050600e805460ff60b01b19169055565b60405163f305d71960e01b81526001600160a01b0385169063f305d719908490612c0890309088906000908190899042906004016135ae565b6060604051808303818588803b158015612c2157600080fd5b505af1158015612c35573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612c5a9190613580565b50505050505050565b600081612c7257506000610dfb565b6000612c7e84846130e0565b9050612c8a85826130f8565b6040518181527ffba1cbbf893e6a61412440b48fca1c80a5bf24d2f7deb6d5544717745077a3609060200160405180910390a1949350505050565b6001600160a01b038316612d295760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107c4565b6001600160a01b038216612d8b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107c4565b612d9683838361314d565b6001600160a01b03831660009081526001602052604090205481811015612e0e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107c4565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290612e459084906137b4565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612e9191815260200190565b60405180910390a361173c565b8154600090612eaf57506000610d50565b82546000905b80821015612f0b576000612ec98383613195565b905084868281548110612ede57612ede61388a565b90600052602060002001541115612ef757809150612f05565b612f028160016137b4565b92505b50612eb5565b600082118015612f4057508385612f2360018561380d565b81548110612f3357612f3361388a565b9060005260206000200154145b15612f5957612f5060018361380d565b92505050610d50565b509050610d50565b6040805160028082526060820183526000926001600160a01b0385163192849290916020830190803683370190505090503081600081518110612fa657612fa661388a565b60200260200101906001600160a01b031690816001600160a01b031681525050856001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015612fff57600080fd5b505afa158015613013573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061303791906132c6565b8160018151811061304a5761304a61388a565b6001600160a01b03928316602091820292909201015260405163791ac94760e01b81529087169063791ac9479061308e90889060009086908a904290600401613743565b600060405180830381600087803b1580156130a857600080fd5b505af11580156130bc573d6000803e3d6000fd5b5050505081846001600160a01b0316316130d6919061380d565b9695505050505050565b600060646130ee83856137ee565b610dfb91906137cc565b6001600160a01b0382166000908152600160205260408120805483929061312090849061380d565b909155505030600090815260016020526040812080548392906131449084906137b4565b90915550505050565b6001600160a01b03831661316c57613164826131b0565b61260e6131da565b6001600160a01b03821661318357613164836131b0565b61318c836131b0565b61260e826131b0565b60006131a460028484186137cc565b610dfb908484166137b4565b6001600160a01b0381166000908152600f60205260409020612431906131d583611777565b6131e8565b61177560106131d560035490565b60006131f2611353565b9050806131fe84613232565b101561260e578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b805460009061324357506000919050565b815482906132539060019061380d565b815481106132635761326361388a565b90600052602060002001549050919050565b919050565b600060c0828403121561328c57600080fd5b50919050565b80516001600160701b038116811461327557600080fd5b6000602082840312156132bb57600080fd5b8135610dfb816138a0565b6000602082840312156132d857600080fd5b8151610dfb816138a0565b600080604083850312156132f657600080fd5b8235613301816138a0565b91506020830135613311816138a0565b809150509250929050565b60008060006060848603121561333157600080fd5b833561333c816138a0565b9250602084013561334c816138a0565b929592945050506040919091013590565b6000806040838503121561337057600080fd5b823561337b816138a0565b946020939093013593505050565b6000806020838503121561339c57600080fd5b823567ffffffffffffffff808211156133b457600080fd5b818501915085601f8301126133c857600080fd5b8135818111156133d757600080fd5b8660208260051b85010111156133ec57600080fd5b60209290920196919550909350505050565b60006020828403121561341057600080fd5b8135610dfb816138b5565b60006020828403121561342d57600080fd5b8151610dfb816138b5565b600060e0828403121561328c57600080fd5b60006080828403121561345c57600080fd5b6040516080810181811067ffffffffffffffff8211171561348d57634e487b7160e01b600052604160045260246000fd5b8060405250823581526020830135602082015260408301356040820152606083013560608201528091505092915050565b600060c082840312156134d057600080fd5b610dfb838361327a565b6000806000606084860312156134ef57600080fd5b6134f884613292565b925061350660208501613292565b9150604084015163ffffffff8116811461351f57600080fd5b809150509250925092565b60006020828403121561353c57600080fd5b5035919050565b60006020828403121561355557600080fd5b5051919050565b6000806040838503121561356f57600080fd5b505080516020909101519092909150565b60008060006060848603121561359557600080fd5b8351925060208401519150604084015190509250925092565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b60208082528181018390526000908460408401835b86811015613652578235613637816138a0565b6001600160a01b031682529183019190830190600101613624565b509695505050505050565b600060208083528351808285015260005b8181101561368a5785810183015185820160400152820161366e565b8181111561369c576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526015908201527414185a5c881a5cc81b9bdd081cdd5c1c1bdc9d1959605a1b604082015260600190565b602080825260139082015272151c985b9cd858dd1a5bdb88195e1c1a5c9959606a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156137935784516001600160a01b03168352938301939183019160010161376e565b50506001600160a01b03969096166060850152505050608001529392505050565b600082198211156137c7576137c7613874565b500190565b6000826137e957634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561380857613808613874565b500290565b60008282101561381f5761381f613874565b500390565b600181811c9082168061383857607f821691505b6020821081141561328c57634e487b7160e01b600052602260045260246000fd5b600060001982141561386d5761386d613874565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461243157600080fd5b801515811461243157600080fdfea2646970667358221220177cf2a5f091164fe97ffa11f82b954b1173f1eab7a488d87f2cccdf54256ce764736f6c6343000807003300000000000000000000000097fdef5b5e3285592068316ae4fb453d12f83f03
Deployed Bytecode
0x60806040526004361061023f5760003560e01c80637c6e5c811161012e578063a457c2d7116100ab578063dd62ed3e1161006f578063dd62ed3e146106d3578063e73a914c14610719578063e8078d9414610739578063f2fde38b1461074e578063fd77c9601461076e57600080fd5b8063a457c2d714610649578063a9059cbb14610669578063c3c8cd8014610689578063c9567bf91461069e578063d0d29fbf146106b357600080fd5b806395d89b41116100f257806395d89b41146105bf5780639711715a146105d4578063981b24d0146105e957806398fabd3a14610609578063a1883d261461062957600080fd5b80637c6e5c81146105165780638c83176a1461054e5780638c8f3f821461056e5780638cdbadbf1461058e5780638da5cb5b146105a157600080fd5b80634ee2cd7e116101bc5780636fc3eaec116101805780636fc3eaec1461048c57806370a08231146104a15780637113e855146104c1578063715018a6146104e157806374896523146104f657600080fd5b80634ee2cd7e146103ba5780635439ad86146103da5780635d467b6a146103ef5780635d9644c4146104245780636df2dcd61461046c57600080fd5b806323b872dd1161020357806323b872dd1461031e578063313ce5671461033e5780633560d1b51461035a578063395093511461037a578063412736571461039a57600080fd5b8063016145f21461024b57806303e148de1461028b57806306fdde03146102ad578063095ea7b3146102cf57806318160ddd146102ff57600080fd5b3661024657005b600080fd5b34801561025757600080fd5b5061026b610266366004613438565b61078e565b604080519384526020840192909252908201526060015b60405180910390f35b34801561029757600080fd5b506102ab6102a6366004613389565b610bd3565b005b3480156102b957600080fd5b506102c2610cad565b604051610282919061365d565b3480156102db57600080fd5b506102ef6102ea36600461335d565b610d3f565b6040519015158152602001610282565b34801561030b57600080fd5b506003545b604051908152602001610282565b34801561032a57600080fd5b506102ef61033936600461331c565b610d56565b34801561034a57600080fd5b5060405160098152602001610282565b34801561036657600080fd5b506102ab6103753660046132a9565b610e02565b34801561038657600080fd5b506102ef61039536600461335d565b610e81565b3480156103a657600080fd5b506102ab6103b53660046132a9565b610ebd565b3480156103c657600080fd5b506103106103d536600461335d565b61130a565b3480156103e657600080fd5b50610310611353565b3480156103fb57600080fd5b5061040f61040a3660046134be565b611363565b60408051928352602083019190915201610282565b34801561043057600080fd5b5061043961151f565b60405161028291908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561047857600080fd5b506102ab6104873660046132e3565b611577565b34801561049857600080fd5b506102ab611742565b3480156104ad57600080fd5b506103106104bc3660046132a9565b611777565b3480156104cd57600080fd5b506102ef6104dc3660046132a9565b611792565b3480156104ed57600080fd5b506102ab6117b2565b34801561050257600080fd5b506102ab6105113660046133fe565b6117e6565b34801561052257600080fd5b50601454610536906001600160a01b031681565b6040516001600160a01b039091168152602001610282565b34801561055a57600080fd5b506102ab610569366004613389565b61182e565b34801561057a57600080fd5b506102ab6105893660046132a9565b6118fc565b61026b61059c3660046134be565b611a6f565b3480156105ad57600080fd5b506000546001600160a01b0316610536565b3480156105cb57600080fd5b506102c2611cfa565b3480156105e057600080fd5b50610310611d09565b3480156105f557600080fd5b5061031061060436600461352a565b611d47565b34801561061557600080fd5b50601354610536906001600160a01b031681565b34801561063557600080fd5b506102ab6106443660046132a9565b611d72565b34801561065557600080fd5b506102ef61066436600461335d565b611dea565b34801561067557600080fd5b506102ef61068436600461335d565b611e83565b34801561069557600080fd5b506102ab611e90565b3480156106aa57600080fd5b506102ab611ecb565b3480156106bf57600080fd5b5061040f6106ce3660046134be565b611f20565b3480156106df57600080fd5b506103106106ee3660046132e3565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b34801561072557600080fd5b506102ab6107343660046132a9565b6120db565b34801561074557600080fd5b506102ab612153565b34801561075a57600080fd5b506102ab6107693660046132a9565b612399565b34801561077a57600080fd5b506102ab61078936600461344a565b612434565b6000808061079f60208501856132a9565b6107a881611792565b6107cd5760405162461bcd60e51b81526004016107c4906136b2565b60405180910390fd5b8460c00135804211156107f25760405162461bcd60e51b81526004016107c4906136e1565b601454600160a01b900460ff16158061081e57506014546001600160a01b0316336001600160a01b0316145b61085a5760405162461bcd60e51b815260206004820152600d60248201526c0557365204d796f62755377617609c1b60448201526064016107c4565b600e805460ff60b01b1916600160b01b179055600061088461087f60208901896132a9565b612617565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156108c957600080fd5b505afa1580156108dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109019190613543565b905061091233308a6040013561268a565b6109228233308b60600135612807565b6006600061093360208b018b6132a9565b6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663e8e3370083308b606001358c604001358d60a001358e608001358f602001602081019061099e91906132a9565b60405160e089901b6001600160e01b03191681526001600160a01b039788166004820152958716602487015260448601949094526064850192909252608484015260a483015290911660c48201524260e482015261010401606060405180830381600087803b158015610a1057600080fd5b505af1158015610a24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a489190613580565b6040516370a0823160e01b81523060048201529199509197509095506000906001600160a01b038416906370a082319060240160206040518083038186803b158015610a9357600080fd5b505afa158015610aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acb9190613543565b905081811115610b6f576001600160a01b03831663a9059cbb33610aef858561380d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610b3557600080fd5b505af1158015610b49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6d919061341b565b505b7f64b83944e79c3ce8d4c297411de637c3e102d064677aac0c163976ebdcd6f50e610b9d60208b018b6132a9565b898989604051610bb094939291906135e9565b60405180910390a15050600e805460ff60b01b1916905550939592945090925050565b6000546001600160a01b03163314610bfd5760405162461bcd60e51b81526004016107c49061370e565b60005b81811015610c6f57600160076000858585818110610c2057610c2061388a565b9050602002016020810190610c3591906132a9565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610c6781613859565b915050610c00565b507f70e726881c86ff879cab43b40fe568dc9d57db26eaaf1435d5cfd3d5d3d2e3c78282604051610ca192919061360f565b60405180910390a15050565b606060048054610cbc90613824565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce890613824565b8015610d355780601f10610d0a57610100808354040283529160200191610d35565b820191906000526020600020905b815481529060010190602001808311610d1857829003601f168201915b5050505050905090565b6000610d4c338484612891565b5060015b92915050565b6000610d6384848461268a565b6001600160a01b038416600090815260026020908152604080832033845290915290205482811015610de85760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016107c4565b610df58533858403612891565b60019150505b9392505050565b6000546001600160a01b03163314610e2c5760405162461bcd60e51b81526004016107c49061370e565b601480546001600160a01b0319166001600160a01b0383169081179091556040519081527f7c916373d56fa77c6c0a47d637d20e8670919d411d61550378dd42fbd526f1c4906020015b60405180910390a150565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091610d4c918590610eb89086906137b4565b612891565b6000546001600160a01b03163314610ee75760405162461bcd60e51b81526004016107c49061370e565b600e54600160a81b900460ff16610f405760405162461bcd60e51b815260206004820152601f60248201527f416464206c6971756964697479206265666f726520646f696e6720746869730060448201526064016107c4565b600d54604080516315ab88c960e31b815290516000926001600160a01b03169163ad5c4648916004808301926020929190829003018186803b158015610f8557600080fd5b505afa158015610f99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fbd91906132c6565b90506000826001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015610ffa57600080fd5b505afa15801561100e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103291906132c6565b60405163e6a4390560e01b81523060048201526001600160a01b038481166024830152919091169063e6a439059060440160206040518083038186803b15801561107b57600080fd5b505afa15801561108f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b391906132c6565b90506001600160a01b03811661111c5760405162461bcd60e51b815260206004820152602860248201527f57455448205061697220646f6573206e6f7420657869737420666f72207468616044820152673a103937baba32b960c11b60648201526084016107c4565b61112581611792565b6111715760405162461bcd60e51b815260206004820152601d60248201527f5468652070616972206d7573742062652061207461786564207061697200000060448201526064016107c4565b600e5460408051630240bc6b60e21b815290516000926001600160a01b031691630902f1ac916004808301926060929190829003018186803b1580156111b657600080fd5b505afa1580156111ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ee91906134da565b50506001600160701b031690506000826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561123657600080fd5b505afa15801561124a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126e91906134da565b50506001600160701b031690508181116112d85760405162461bcd60e51b815260206004820152602560248201527f4e65772070616972206d7573742068617665206d6f7265205745544820526573604482015264657276657360d81b60648201526084016107c4565b5050600d80546001600160a01b039485166001600160a01b031991821617909155600e80549290941691161790915550565b6001600160a01b0382166000908152600f60205260408120819081906113319085906129b5565b91509150816113485761134385611777565b61134a565b805b95945050505050565b600061135e60125490565b905090565b60008061137360208401846132a9565b61137c81611792565b6113985760405162461bcd60e51b81526004016107c4906136b2565b8360a00135804211156113bd5760405162461bcd60e51b81526004016107c4906136e1565b600e805460ff60b01b1916600160b01b1790556113ec6113e060208701876132a9565b33308860400135612807565b600660006113fd60208801886132a9565b6001600160a01b03908116825260208083019390935260409182016000205416916302751cec91309190890180359160608b01359160808c01359161144491908d016132a9565b426040518763ffffffff1660e01b8152600401611466969594939291906135ae565b6040805180830381600087803b15801561147f57600080fd5b505af1158015611493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b7919061355c565b90945092507fefd72b207f9ce854f390856eb1595b3d30d4bdb69cb41ec7a02cc20167fb61986114ea60208701876132a9565b8585886040013560405161150194939291906135e9565b60405180910390a15050600e805460ff60b01b191690559092909150565b61154a6040518060800160405280600081526020016000815260200160008152602001600081525090565b506040805160808101825260085481526009546020820152600a5491810191909152600b54606082015290565b6000546001600160a01b031633146115a15760405162461bcd60e51b81526004016107c49061370e565b6115aa82611792565b156115ec5760405162461bcd60e51b815260206004820152601260248201527144455820616c72656164792065786973747360701b60448201526064016107c4565b60006115f783612617565b6001600160a01b03848116600090815260066020526040902080546001600160a01b03191691851691909117905590506116343083600019612891565b60405163095ea7b360e01b81526001600160a01b038381166004830152600019602483015282169063095ea7b390604401602060405180830381600087803b15801561167f57600080fd5b505af1158015611693573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b7919061341b565b5060405163095ea7b360e01b81526001600160a01b038381166004830152600019602483015284169063095ea7b3906044015b602060405180830381600087803b15801561170457600080fd5b505af1158015611718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173c919061341b565b50505050565b6000546001600160a01b0316331461176c5760405162461bcd60e51b81526004016107c49061370e565b61177547612aac565b565b6001600160a01b031660009081526001602052604090205490565b6001600160a01b0390811660009081526006602052604090205416151590565b6000546001600160a01b031633146117dc5760405162461bcd60e51b81526004016107c49061370e565b6117756000612aea565b6000546001600160a01b031633146118105760405162461bcd60e51b81526004016107c49061370e565b60148054911515600160a01b0260ff60a01b19909216919091179055565b6000546001600160a01b031633146118585760405162461bcd60e51b81526004016107c49061370e565b60005b818110156118ca5760006007600085858581811061187b5761187b61388a565b905060200201602081019061189091906132a9565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806118c281613859565b91505061185b565b507f7aa701ce35f1b491895c6c3e6c3872f135608c09e24df465ce2df2e0b47223688282604051610ca192919061360f565b6000546001600160a01b031633146119265760405162461bcd60e51b81526004016107c49061370e565b61192f81611792565b6119705760405162461bcd60e51b815260206004820152601260248201527111115608191bd95cc81b9bdd08195e1a5cdd60721b60448201526064016107c4565b600061197b82612617565b6001600160a01b03808416600090815260066020526040812080546001600160a01b031981169091559293509116906119b79030908390612891565b60405163095ea7b360e01b81526001600160a01b0382811660048301526000602483015283169063095ea7b390604401602060405180830381600087803b158015611a0157600080fd5b505af1158015611a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a39919061341b565b5060405163095ea7b360e01b81526001600160a01b0382811660048301526000602483015284169063095ea7b3906044016116ea565b60008080611a8060208501856132a9565b611a8981611792565b611aa55760405162461bcd60e51b81526004016107c4906136b2565b8460a0013580421115611aca5760405162461bcd60e51b81526004016107c4906136e1565b601454600160a01b900460ff161580611af657506014546001600160a01b0316336001600160a01b0316145b611b325760405162461bcd60e51b815260206004820152600d60248201526c0557365204d796f62755377617609c1b60448201526064016107c4565b600e805460ff60b01b1916600160b01b179055611b5a611b4f3390565b30886040013561268a565b6000611b66344761380d565b905060066000611b7960208a018a6132a9565b6001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166001600160a01b031663f305d71934308a604001358b606001358c608001358d6020016020810190611bdf91906132a9565b426040518863ffffffff1660e01b8152600401611c01969594939291906135ae565b6060604051808303818588803b158015611c1a57600080fd5b505af1158015611c2e573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611c539190613580565b9197509550935047811015611c9a57336108fc611c70834761380d565b6040518115909202916000818181858888f19350505050158015611c98573d6000803e3d6000fd5b505b7f30834679453bdb296e5431ef21208ba179941518b4d01bc4ccc7f2355360df87611cc860208901896132a9565b878787604051611cdb94939291906135e9565b60405180910390a15050600e805460ff60b01b19169055509193909250565b606060058054610cbc90613824565b600080546001600160a01b0316331480611d3657506013546001600160a01b0316336001600160a01b0316145b611d3f57600080fd5b61135e612b3a565b6000806000611d578460106129b5565b9150915081611d6857600354611d6a565b805b949350505050565b6000546001600160a01b03163314611d9c5760405162461bcd60e51b81526004016107c49061370e565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527f9e905b198adfa70dbc3c719ad6b91c9cea8dfb106a2e2121526342562413acb890602001610e76565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015611e6c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107c4565b611e793385858403612891565b5060019392505050565b6000610d4c33848461268a565b6000546001600160a01b03163314611eba5760405162461bcd60e51b81526004016107c49061370e565b611775611ec630611777565b612b94565b6000546001600160a01b03163314611ef55760405162461bcd60e51b81526004016107c49061370e565b600e54600160a81b900460ff16611f0b57600080fd5b600e805460ff60a01b1916600160a01b179055565b600080611f3060208401846132a9565b611f3981611792565b611f555760405162461bcd60e51b81526004016107c4906136b2565b8360a0013580421115611f7a5760405162461bcd60e51b81526004016107c4906136e1565b600e805460ff60b01b1916600160b01b179055611f9d6113e060208701876132a9565b60066000611fae60208801886132a9565b6001600160a01b039081168252602080830193909352604090910160002054169063baa2abde90611fe59061087f908901896132a9565b306040890180359060808b01359060608c0135906120069060208e016132a9565b60405160e088901b6001600160e01b03191681526001600160a01b039687166004820152948616602486015260448501939093526064840191909152608483015290911660a48201524260c482015260e4016040805180830381600087803b15801561207157600080fd5b505af1158015612085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120a9919061355c565b945092507f1dc8bb69df2b8e91fbdcbfcf93d951b3f0000f085a95fe3f7946d6161439245d6114ea60208701876132a9565b6000546001600160a01b031633146121055760405162461bcd60e51b81526004016107c49061370e565b601380546001600160a01b0319166001600160a01b0383169081179091556040519081527f7a62ea533b501818ff8d9bde48cb1382a6df937b9339fe41e7d9a18db20e3e8690602001610e76565b6000546001600160a01b0316331461217d5760405162461bcd60e51b81526004016107c49061370e565b600e805460ff60b01b1916600160b01b179055600d80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b81529051829163c45a0155916004808301926020929190829003018186803b1580156121f057600080fd5b505afa158015612204573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222891906132c6565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561227057600080fd5b505afa158015612284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a891906132c6565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156122f057600080fd5b505af1158015612304573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232891906132c6565b600e80546001600160a01b0319166001600160a01b039290921691821790556123519082611577565b600d54612382906001600160a01b031661236a30611777565b4761237d6000546001600160a01b031690565b612bcf565b50600e805461ffff60a81b1916600160a81b179055565b6000546001600160a01b031633146123c35760405162461bcd60e51b81526004016107c49061370e565b6001600160a01b0381166124285760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c4565b61243181612aea565b50565b6000546001600160a01b0316331461245e5760405162461bcd60e51b81526004016107c49061370e565b80511580159061247057508051606410155b6124e25760405162461bcd60e51b815260206004820152603760248201527f496d70616374206d7573742062652067726561746572207468616e203020616e60448201527f6420756e646572206f7220657175616c20746f2031303000000000000000000060648201526084016107c4565b600f81602001511080156124fa5750600f8160400151105b801561250e57508060400151816060015111155b6125695760405162461bcd60e51b815260206004820152602660248201527f4665657320666f72206120627579202f2073656c6c206d75737420626520756e60448201526564657220313560d01b60648201526084016107c4565b8051600855602081015160098190556040820151600a8190556060830151600b55612593916137b4565b6125a957600e805460ff60b81b191690556125bd565b600e805460ff60b81b1916600160b81b1790555b6040805182518152602080840151908201528183015191810191909152606080830151908201527fcf017c5010fe93359ce9498a638540e036462c920835120cbe9f0d98743f1b7a90608001610e76565b505050565b5490565b6000816001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561265257600080fd5b505afa158015612666573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5091906132c6565b600080546001600160a01b038581169116148015906126b757506000546001600160a01b03848116911614155b156127dd57600e54600160b81b900460ff1680156126df5750600e54600160b01b900460ff16155b156127dd576126ed84611792565b80156126ff57506126fd83611792565b155b1561272357600e54600160a01b900460ff1661271a57600080fd5b506009546127dd565b6001600160a01b03841660009081526007602052604090205460ff168061276257506001600160a01b03831660009081526007602052604090205460ff165b156127705750600b546127dd565b61277983611792565b156127dd57600e54600160a01b900460ff1661279457600080fd5b6008546064906127a385611777565b6127ad91906137ee565b6127b791906137cc565b8211156127c357600080fd5b6127cf611ec630611777565b6127d847612aac565b50600a545b60006127ea858484612c63565b905061280085856127fb848761380d565b612cc5565b5050505050565b6040516323b872dd60e01b81526001600160a01b0384811660048301528381166024830152604482018390528516906323b872dd90606401602060405180830381600087803b15801561285957600080fd5b505af115801561286d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612800919061341b565b6001600160a01b0383166128f35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107c4565b6001600160a01b0382166129545760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107c4565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60008060008411612a015760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b60448201526064016107c4565b612a09611353565b841115612a585760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016107c4565b6000612a648486612e9e565b8454909150811415612a7d576000809250925050612aa5565b6001846001018281548110612a9457612a9461388a565b906000526020600020015492509250505b9250929050565b600c546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015612ae6573d6000803e3d6000fd5b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612b4a601280546001019055565b6000612b54611353565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb6781604051612b8791815260200190565b60405180910390a1919050565b600e805460ff60b01b1916600160b01b179055600d54612bbe906001600160a01b03168230612f61565b5050600e805460ff60b01b19169055565b60405163f305d71960e01b81526001600160a01b0385169063f305d719908490612c0890309088906000908190899042906004016135ae565b6060604051808303818588803b158015612c2157600080fd5b505af1158015612c35573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612c5a9190613580565b50505050505050565b600081612c7257506000610dfb565b6000612c7e84846130e0565b9050612c8a85826130f8565b6040518181527ffba1cbbf893e6a61412440b48fca1c80a5bf24d2f7deb6d5544717745077a3609060200160405180910390a1949350505050565b6001600160a01b038316612d295760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107c4565b6001600160a01b038216612d8b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107c4565b612d9683838361314d565b6001600160a01b03831660009081526001602052604090205481811015612e0e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107c4565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290612e459084906137b4565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612e9191815260200190565b60405180910390a361173c565b8154600090612eaf57506000610d50565b82546000905b80821015612f0b576000612ec98383613195565b905084868281548110612ede57612ede61388a565b90600052602060002001541115612ef757809150612f05565b612f028160016137b4565b92505b50612eb5565b600082118015612f4057508385612f2360018561380d565b81548110612f3357612f3361388a565b9060005260206000200154145b15612f5957612f5060018361380d565b92505050610d50565b509050610d50565b6040805160028082526060820183526000926001600160a01b0385163192849290916020830190803683370190505090503081600081518110612fa657612fa661388a565b60200260200101906001600160a01b031690816001600160a01b031681525050856001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015612fff57600080fd5b505afa158015613013573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061303791906132c6565b8160018151811061304a5761304a61388a565b6001600160a01b03928316602091820292909201015260405163791ac94760e01b81529087169063791ac9479061308e90889060009086908a904290600401613743565b600060405180830381600087803b1580156130a857600080fd5b505af11580156130bc573d6000803e3d6000fd5b5050505081846001600160a01b0316316130d6919061380d565b9695505050505050565b600060646130ee83856137ee565b610dfb91906137cc565b6001600160a01b0382166000908152600160205260408120805483929061312090849061380d565b909155505030600090815260016020526040812080548392906131449084906137b4565b90915550505050565b6001600160a01b03831661316c57613164826131b0565b61260e6131da565b6001600160a01b03821661318357613164836131b0565b61318c836131b0565b61260e826131b0565b60006131a460028484186137cc565b610dfb908484166137b4565b6001600160a01b0381166000908152600f60205260409020612431906131d583611777565b6131e8565b61177560106131d560035490565b60006131f2611353565b9050806131fe84613232565b101561260e578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b805460009061324357506000919050565b815482906132539060019061380d565b815481106132635761326361388a565b90600052602060002001549050919050565b919050565b600060c0828403121561328c57600080fd5b50919050565b80516001600160701b038116811461327557600080fd5b6000602082840312156132bb57600080fd5b8135610dfb816138a0565b6000602082840312156132d857600080fd5b8151610dfb816138a0565b600080604083850312156132f657600080fd5b8235613301816138a0565b91506020830135613311816138a0565b809150509250929050565b60008060006060848603121561333157600080fd5b833561333c816138a0565b9250602084013561334c816138a0565b929592945050506040919091013590565b6000806040838503121561337057600080fd5b823561337b816138a0565b946020939093013593505050565b6000806020838503121561339c57600080fd5b823567ffffffffffffffff808211156133b457600080fd5b818501915085601f8301126133c857600080fd5b8135818111156133d757600080fd5b8660208260051b85010111156133ec57600080fd5b60209290920196919550909350505050565b60006020828403121561341057600080fd5b8135610dfb816138b5565b60006020828403121561342d57600080fd5b8151610dfb816138b5565b600060e0828403121561328c57600080fd5b60006080828403121561345c57600080fd5b6040516080810181811067ffffffffffffffff8211171561348d57634e487b7160e01b600052604160045260246000fd5b8060405250823581526020830135602082015260408301356040820152606083013560608201528091505092915050565b600060c082840312156134d057600080fd5b610dfb838361327a565b6000806000606084860312156134ef57600080fd5b6134f884613292565b925061350660208501613292565b9150604084015163ffffffff8116811461351f57600080fd5b809150509250925092565b60006020828403121561353c57600080fd5b5035919050565b60006020828403121561355557600080fd5b5051919050565b6000806040838503121561356f57600080fd5b505080516020909101519092909150565b60008060006060848603121561359557600080fd5b8351925060208401519150604084015190509250925092565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b60208082528181018390526000908460408401835b86811015613652578235613637816138a0565b6001600160a01b031682529183019190830190600101613624565b509695505050505050565b600060208083528351808285015260005b8181101561368a5785810183015185820160400152820161366e565b8181111561369c576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526015908201527414185a5c881a5cc81b9bdd081cdd5c1c1bdc9d1959605a1b604082015260600190565b602080825260139082015272151c985b9cd858dd1a5bdb88195e1c1a5c9959606a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156137935784516001600160a01b03168352938301939183019160010161376e565b50506001600160a01b03969096166060850152505050608001529392505050565b600082198211156137c7576137c7613874565b500190565b6000826137e957634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561380857613808613874565b500290565b60008282101561381f5761381f613874565b500390565b600181811c9082168061383857607f821691505b6020821081141561328c57634e487b7160e01b600052602260045260246000fd5b600060001982141561386d5761386d613874565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461243157600080fd5b801515811461243157600080fdfea2646970667358221220177cf2a5f091164fe97ffa11f82b954b1173f1eab7a488d87f2cccdf54256ce764736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000097fdef5b5e3285592068316ae4fb453d12f83f03
-----Decoded View---------------
Arg [0] : addr1 (address): 0x97fDEf5b5e3285592068316ae4FB453D12f83f03
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000097fdef5b5e3285592068316ae4fb453d12f83f03
Loading...
Loading
Loading...
Loading
OVERVIEW
Myōbu is a blockchain-based project that is building a GameFi ecosystem. Through its native token, holders will gain access to upcoming games, an NFT marketplace, and other on-chain products.Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.