Overview
GLMR Balance
0 GLMR
GLMR Value
$0.00More Info
Private Name Tags
ContractCreator:
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60a06040 | 629893 | 732 days ago | IN | Create: PostAuctionLauncher | 0 GLMR | 0.2875302 |
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
1492889 | 605 days ago | 501.89399591 GLMR |
Loading...
Loading
Contract Name:
PostAuctionLauncher
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.6.12; //---------------------------------------------------------------------------------- // I n s t a n t // // .:mmm. .:mmm:. .ii. .:SSSSSSSSSSSSS. .oOOOOOOOOOOOo. // .mMM'':Mm. .:MM'':Mm:. .II: :SSs.......... .oOO'''''''''''OOo. // .:Mm' ':Mm. .:Mm' 'MM:. .II: 'sSSSSSSSSSSSSS:. :OO. .OO: // .'mMm' ':MM:.:MMm' ':MM:. .II: .:...........:SS. 'OOo:.........:oOO' // 'mMm' ':MMmm' 'mMm: II: 'sSSSSSSSSSSSSS' 'oOOOOOOOOOOOO' // //---------------------------------------------------------------------------------- // // Chef Gonpachi's Post Auction Launcher // // A post auction contract that takes the proceeds and creates a liquidity pool // // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // Made for Sushi.com // // Enjoy. (c) Chef Gonpachi // <https://github.com/chefgonpachi/MISO/> // // --------------------------------------------------------------------- // SPDX-License-Identifier: GPL-3.0 // --------------------------------------------------------------------- import "../OpenZeppelin/utils/ReentrancyGuard.sol"; import "../Access/MISOAccessControls.sol"; import "../Utils/SafeTransfer.sol"; import "../Utils/BoringMath.sol"; import "../UniswapV2/UniswapV2Library.sol"; import "../UniswapV2/interfaces/IUniswapV2Pair.sol"; import "../UniswapV2/interfaces/IUniswapV2Factory.sol"; import "../interfaces/IWETH9.sol"; import "../interfaces/IERC20.sol"; import "../interfaces/IMisoAuction.sol"; contract PostAuctionLauncher is MISOAccessControls, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringMath32 for uint32; using BoringMath16 for uint16; address private constant ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; uint256 private constant LIQUIDITY_PRECISION = 10000; /// @notice MISOLiquidity template id. uint256 public constant liquidityTemplate = 3; /// @notice First Token address. IERC20 public token1; /// @notice Second Token address. IERC20 public token2; /// @notice Uniswap V2 factory address. IUniswapV2Factory public factory; /// @notice WETH contract address. address private immutable weth; /// @notice LP pair address. address public tokenPair; /// @notice Withdraw wallet address. address public wallet; /// @notice Token market contract address. IMisoAuction public market; struct LauncherInfo { uint32 locktime; uint64 unlock; uint16 liquidityPercent; bool launched; uint128 liquidityAdded; } LauncherInfo public launcherInfo; /// @notice Emitted when LP contract is initialised. event InitLiquidityLauncher(address indexed token1, address indexed token2, address factory, address sender); /// @notice Emitted when LP is launched. event LiquidityAdded(uint256 liquidity); /// @notice Emitted when wallet is updated. event WalletUpdated(address indexed wallet); /// @notice Emitted when launcher is cancelled. event LauncherCancelled(address indexed wallet); constructor (address _weth) public { weth = _weth; } /** * @notice Initializes main contract variables (requires launchwindow to be more than 2 days.) * @param _market Auction address for launcher. * @param _factory Uniswap V2 factory address. * @param _admin Contract owner address. * @param _wallet Withdraw wallet address. * @param _liquidityPercent Percentage of payment currency sent to liquidity pool. * @param _locktime How long the liquidity will be locked. Number of seconds. */ function initAuctionLauncher( address _market, address _factory, address _admin, address _wallet, uint256 _liquidityPercent, uint256 _locktime ) public { require(_locktime < 10000000000, 'PostAuction: Enter an unix timestamp in seconds, not miliseconds'); require(_liquidityPercent <= LIQUIDITY_PRECISION, 'PostAuction: Liquidity percentage greater than 100.00% (>10000)'); require(_liquidityPercent > 0, 'PostAuction: Liquidity percentage equals zero'); require(_admin != address(0), "PostAuction: admin is the zero address"); require(_wallet != address(0), "PostAuction: wallet is the zero address"); initAccessControls(_admin); market = IMisoAuction(_market); token1 = IERC20(market.paymentCurrency()); token2 = IERC20(market.auctionToken()); if (address(token1) == ETH_ADDRESS) { token1 = IERC20(weth); } uint256 d1 = uint256(token1.decimals()); uint256 d2 = uint256(token2.decimals()); require(d2 >= d1); factory = IUniswapV2Factory(_factory); bytes32 pairCodeHash = IUniswapV2Factory(_factory).pairCodeHash(); tokenPair = UniswapV2Library.pairFor(_factory, address(token1), address(token2), pairCodeHash); wallet = _wallet; launcherInfo.liquidityPercent = BoringMath.to16(_liquidityPercent); launcherInfo.locktime = BoringMath.to32(_locktime); uint256 initalTokenAmount = market.getTotalTokens().mul(_liquidityPercent).div(LIQUIDITY_PRECISION); _safeTransferFrom(address(token2), msg.sender, initalTokenAmount); emit InitLiquidityLauncher(address(token1), address(token2), address(_factory), _admin); } receive() external payable { if(msg.sender != weth ){ depositETH(); } } /// @notice Deposits ETH to the contract. function depositETH() public payable { require(address(token1) == weth || address(token2) == weth, "PostAuction: Launcher not accepting ETH"); if (msg.value > 0 ) { IWETH(weth).deposit{value : msg.value}(); } } /** * @notice Deposits first Token to the contract. * @param _amount Number of tokens to deposit. */ function depositToken1(uint256 _amount) external returns (bool success) { return _deposit( address(token1), msg.sender, _amount); } /** * @notice Deposits second Token to the contract. * @param _amount Number of tokens to deposit. */ function depositToken2(uint256 _amount) external returns (bool success) { return _deposit( address(token2), msg.sender, _amount); } /** * @notice Deposits Tokens to the contract. * @param _amount Number of tokens to deposit. * @param _from Where the tokens to deposit will come from. * @param _token Token address. */ function _deposit(address _token, address _from, uint _amount) internal returns (bool success) { require(!launcherInfo.launched, "PostAuction: Must first launch liquidity"); require(launcherInfo.liquidityAdded == 0, "PostAuction: Liquidity already added"); require(_amount > 0, "PostAuction: Token amount must be greater than 0"); _safeTransferFrom(_token, _from, _amount); return true; } /** * @notice Checks if market wallet is set to this launcher */ function marketConnected() public view returns (bool) { return market.wallet() == address(this); } /** * @notice Finalizes Token sale and launches LP. * @return liquidity Number of LPs. */ function finalize() external nonReentrant returns (uint256 liquidity) { // GP: Can we remove admin, let anyone can finalise and launch? // require(hasAdminRole(msg.sender) || hasOperatorRole(msg.sender), "PostAuction: Sender must be operator"); require(marketConnected(), "PostAuction: Auction must have this launcher address set as the destination wallet"); require(!launcherInfo.launched); if (!market.finalized()) { market.finalize(); } launcherInfo.launched = true; if (!market.auctionSuccessful() ) { return 0; } /// @dev if the auction is settled in weth, wrap any contract balance uint256 launcherBalance = address(this).balance; if (launcherBalance > 0 ) { IWETH(weth).deposit{value : launcherBalance}(); } (uint256 token1Amount, uint256 token2Amount) = getTokenAmounts(); /// @dev cannot start a liquidity pool with no tokens on either side if (token1Amount == 0 || token2Amount == 0 ) { return 0; } address pair = factory.getPair(address(token1), address(token2)); require(pair == address(0) || getLPBalance() == 0, "PostLiquidity: Pair not new"); if(pair == address(0)) { createPool(); } /// @dev add liquidity to pool via the pair directly _safeTransfer(address(token1), tokenPair, token1Amount); _safeTransfer(address(token2), tokenPair, token2Amount); liquidity = IUniswapV2Pair(tokenPair).mint(address(this)); launcherInfo.liquidityAdded = BoringMath.to128(uint256(launcherInfo.liquidityAdded).add(liquidity)); /// @dev if unlock time not yet set, add it. if (launcherInfo.unlock == 0 ) { launcherInfo.unlock = BoringMath.to64(block.timestamp + uint256(launcherInfo.locktime)); } emit LiquidityAdded(liquidity); } function getTokenAmounts() public view returns (uint256 token1Amount, uint256 token2Amount) { token1Amount = getToken1Balance().mul(uint256(launcherInfo.liquidityPercent)).div(LIQUIDITY_PRECISION); token2Amount = getToken2Balance(); uint256 tokenPrice = market.tokenPrice(); uint256 d2 = uint256(token2.decimals()); uint256 maxToken1Amount = token2Amount.mul(tokenPrice).div(10**(d2)); uint256 maxToken2Amount = token1Amount .mul(10**(d2)) .div(tokenPrice); /// @dev if more than the max. if (token2Amount > maxToken2Amount) { token2Amount = maxToken2Amount; } /// @dev if more than the max. if (token1Amount > maxToken1Amount) { token1Amount = maxToken1Amount; } } /** * @notice Withdraws LPs from the contract. * @return liquidity Number of LPs. */ function withdrawLPTokens() external returns (uint256 liquidity) { require(hasAdminRole(msg.sender) || hasOperatorRole(msg.sender), "PostAuction: Sender must be operator"); require(launcherInfo.launched, "PostAuction: Must first launch liquidity"); require(block.timestamp >= uint256(launcherInfo.unlock), "PostAuction: Liquidity is locked"); liquidity = IERC20(tokenPair).balanceOf(address(this)); require(liquidity > 0, "PostAuction: Liquidity must be greater than 0"); _safeTransfer(tokenPair, wallet, liquidity); } /// @notice Withraws deposited tokens and ETH from the contract to wallet. function withdrawDeposits() external { require(hasAdminRole(msg.sender) || hasOperatorRole(msg.sender), "PostAuction: Sender must be operator"); require(launcherInfo.launched, "PostAuction: Must first launch liquidity"); uint256 token1Amount = getToken1Balance(); if (token1Amount > 0 ) { _safeTransfer(address(token1), wallet, token1Amount); } uint256 token2Amount = getToken2Balance(); if (token2Amount > 0 ) { _safeTransfer(address(token2), wallet, token2Amount); } } // TODO // GP: Sweep non relevant ERC20s / ETH //-------------------------------------------------------- // Setter functions //-------------------------------------------------------- /** * @notice Admin can set the wallet through this function. * @param _wallet Wallet is where funds will be sent. */ function setWallet(address payable _wallet) external { require(hasAdminRole(msg.sender)); require(_wallet != address(0), "Wallet is the zero address"); wallet = _wallet; emit WalletUpdated(_wallet); } function cancelLauncher() external { require(hasAdminRole(msg.sender)); require(!launcherInfo.launched); launcherInfo.launched = true; emit LauncherCancelled(msg.sender); } //-------------------------------------------------------- // Helper functions //-------------------------------------------------------- /** * @notice Creates new SLP pair through SushiSwap. */ function createPool() internal { factory.createPair(address(token1), address(token2)); } //-------------------------------------------------------- // Getter functions //-------------------------------------------------------- /** * @notice Gets the number of first token deposited into this contract. * @return uint256 Number of WETH. */ function getToken1Balance() public view returns (uint256) { return token1.balanceOf(address(this)); } /** * @notice Gets the number of second token deposited into this contract. * @return uint256 Number of WETH. */ function getToken2Balance() public view returns (uint256) { return token2.balanceOf(address(this)); } /** * @notice Returns LP token address.. * @return address LP address. */ function getLPTokenAddress() public view returns (address) { return tokenPair; } /** * @notice Returns LP Token balance. * @return uint256 LP Token balance. */ function getLPBalance() public view returns (uint256) { return IERC20(tokenPair).balanceOf(address(this)); } //-------------------------------------------------------- // Init functions //-------------------------------------------------------- /** * @notice Decodes and hands auction data to the initAuction function. * @param _data Encoded data for initialization. */ function init(bytes calldata _data) external payable { } function initLauncher( bytes calldata _data ) public { ( address _market, address _factory, address _admin, address _wallet, uint256 _liquidityPercent, uint256 _locktime ) = abi.decode(_data, ( address, address, address, address, uint256, uint256 )); initAuctionLauncher( _market, _factory,_admin,_wallet,_liquidityPercent,_locktime); } /** * @notice Collects data to initialize the auction and encodes them. * @param _market Auction address for launcher. * @param _factory Uniswap V2 factory address. * @param _admin Contract owner address. * @param _wallet Withdraw wallet address. * @param _liquidityPercent Percentage of payment currency sent to liquidity pool. * @param _locktime How long the liquidity will be locked. Number of seconds. * @return _data All the data in bytes format. */ function getLauncherInitData( address _market, address _factory, address _admin, address _wallet, uint256 _liquidityPercent, uint256 _locktime ) external pure returns (bytes memory _data) { return abi.encode(_market, _factory, _admin, _wallet, _liquidityPercent, _locktime ); } }
pragma solidity 0.6.12; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.6.12; import "./MISOAdminAccess.sol"; /** * @notice Access Controls * @author Attr: BlockRocket.tech */ contract MISOAccessControls is MISOAdminAccess { /// @notice Role definitions bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant SMART_CONTRACT_ROLE = keccak256("SMART_CONTRACT_ROLE"); bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); /** * @notice The deployer is automatically given the admin role which will allow them to then grant roles to other addresses */ constructor() public { } ///////////// // Lookups // ///////////// /** * @notice Used to check whether an address has the minter role * @param _address EOA or contract being checked * @return bool True if the account has the role or false if it does not */ function hasMinterRole(address _address) public view returns (bool) { return hasRole(MINTER_ROLE, _address); } /** * @notice Used to check whether an address has the smart contract role * @param _address EOA or contract being checked * @return bool True if the account has the role or false if it does not */ function hasSmartContractRole(address _address) public view returns (bool) { return hasRole(SMART_CONTRACT_ROLE, _address); } /** * @notice Used to check whether an address has the operator role * @param _address EOA or contract being checked * @return bool True if the account has the role or false if it does not */ function hasOperatorRole(address _address) public view returns (bool) { return hasRole(OPERATOR_ROLE, _address); } /////////////// // Modifiers // /////////////// /** * @notice Grants the minter role to an address * @dev The sender must have the admin role * @param _address EOA or contract receiving the new role */ function addMinterRole(address _address) external { grantRole(MINTER_ROLE, _address); } /** * @notice Removes the minter role from an address * @dev The sender must have the admin role * @param _address EOA or contract affected */ function removeMinterRole(address _address) external { revokeRole(MINTER_ROLE, _address); } /** * @notice Grants the smart contract role to an address * @dev The sender must have the admin role * @param _address EOA or contract receiving the new role */ function addSmartContractRole(address _address) external { grantRole(SMART_CONTRACT_ROLE, _address); } /** * @notice Removes the smart contract role from an address * @dev The sender must have the admin role * @param _address EOA or contract affected */ function removeSmartContractRole(address _address) external { revokeRole(SMART_CONTRACT_ROLE, _address); } /** * @notice Grants the operator role to an address * @dev The sender must have the admin role * @param _address EOA or contract receiving the new role */ function addOperatorRole(address _address) external { grantRole(OPERATOR_ROLE, _address); } /** * @notice Removes the operator role from an address * @dev The sender must have the admin role * @param _address EOA or contract affected */ function removeOperatorRole(address _address) external { revokeRole(OPERATOR_ROLE, _address); } }
pragma solidity 0.6.12; contract SafeTransfer { address private constant ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; /// @notice Event for token withdrawals. event TokensWithdrawn(address token, address to, uint256 amount); /// @dev Helper function to handle both ETH and ERC20 payments function _safeTokenPayment( address _token, address payable _to, uint256 _amount ) internal { if (address(_token) == ETH_ADDRESS) { _safeTransferETH(_to,_amount ); } else { _safeTransfer(_token, _to, _amount); } emit TokensWithdrawn(_token, _to, _amount); } /// @dev Helper function to handle both ETH and ERC20 payments function _tokenPayment( address _token, address payable _to, uint256 _amount ) internal { if (address(_token) == ETH_ADDRESS) { _to.transfer(_amount); } else { _safeTransfer(_token, _to, _amount); } emit TokensWithdrawn(_token, _to, _amount); } /// @dev Transfer helper from UniswapV2 Router function _safeApprove(address token, address to, uint value) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED'); } /** * There are many non-compliant ERC20 tokens... this can handle most, adapted from UniSwap V2 * Im trying to make it a habit to put external calls last (reentrancy) * You can put this in an internal function if you like. */ function _safeTransfer( address token, address to, uint256 amount ) internal virtual { // solium-disable-next-line security/no-low-level-calls (bool success, bytes memory data) = token.call( // 0xa9059cbb = bytes4(keccak256("transfer(address,uint256)")) abi.encodeWithSelector(0xa9059cbb, to, amount) ); require(success && (data.length == 0 || abi.decode(data, (bool)))); // ERC20 Transfer failed } function _safeTransferFrom( address token, address from, uint256 amount ) internal virtual { // solium-disable-next-line security/no-low-level-calls (bool success, bytes memory data) = token.call( // 0x23b872dd = bytes4(keccak256("transferFrom(address,address,uint256)")) abi.encodeWithSelector(0x23b872dd, from, address(this), amount) ); require(success && (data.length == 0 || abi.decode(data, (bool)))); // ERC20 TransferFrom failed } function _safeTransferFrom(address token, address from, address to, uint value) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED'); } function _safeTransferETH(address to, uint value) internal { (bool success,) = to.call{value:value}(new bytes(0)); require(success, 'TransferHelper: ETH_TRANSFER_FAILED'); } }
pragma solidity 0.6.12; /// @notice A library for performing overflow-/underflow-safe math, /// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math). library BoringMath { function add(uint256 a, uint256 b) internal pure returns (uint256 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint256 a, uint256 b) internal pure returns (uint256 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { require(b == 0 || (c = a * b) / b == a, "BoringMath: Mul Overflow"); } function div(uint256 a, uint256 b) internal pure returns (uint256 c) { require(b > 0, "BoringMath: Div zero"); c = a / b; } function to128(uint256 a) internal pure returns (uint128 c) { require(a <= uint128(-1), "BoringMath: uint128 Overflow"); c = uint128(a); } function to64(uint256 a) internal pure returns (uint64 c) { require(a <= uint64(-1), "BoringMath: uint64 Overflow"); c = uint64(a); } function to32(uint256 a) internal pure returns (uint32 c) { require(a <= uint32(-1), "BoringMath: uint32 Overflow"); c = uint32(a); } function to16(uint256 a) internal pure returns (uint16 c) { require(a <= uint16(-1), "BoringMath: uint16 Overflow"); c = uint16(a); } } /// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint128. library BoringMath128 { function add(uint128 a, uint128 b) internal pure returns (uint128 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint128 a, uint128 b) internal pure returns (uint128 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } } /// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint64. library BoringMath64 { function add(uint64 a, uint64 b) internal pure returns (uint64 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint64 a, uint64 b) internal pure returns (uint64 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } } /// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32. library BoringMath32 { function add(uint32 a, uint32 b) internal pure returns (uint32 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint32 a, uint32 b) internal pure returns (uint32 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } } /// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32. library BoringMath16 { function add(uint16 a, uint16 b) internal pure returns (uint16 c) { require((c = a + b) >= b, "BoringMath: Add Overflow"); } function sub(uint16 a, uint16 b) internal pure returns (uint16 c) { require((c = a - b) <= a, "BoringMath: Underflow"); } }
pragma solidity 0.6.12; import './interfaces/IUniswapV2Pair.sol'; import "./libraries/SafeMath.sol"; library UniswapV2Library { using SafeMathUniswap for uint; // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS'); } // calculates the CREATE2 address for a pair without making any external calls function pairFor(address factory, address tokenA, address tokenB, bytes32 pairCodeHash) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)), pairCodeHash // init code hash )))); } // fetches and sorts the reserves for a pair function getReserves(address factory, address tokenA, address tokenB, bytes32 pairCodeHash) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB, pairCodeHash)).getReserves(); (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0); } // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) { require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT'); require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); amountB = amountA.mul(reserveB) / reserveA; } // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn.mul(997); uint numerator = amountInWithFee.mul(reserveOut); uint denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) { require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint numerator = reserveIn.mul(amountOut).mul(1000); uint denominator = reserveOut.sub(amountOut).mul(997); amountIn = (numerator / denominator).add(1); } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(address factory, uint amountIn, address[] memory path, bytes32 pairCodeHash) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1], pairCodeHash); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsIn(address factory, uint amountOut, address[] memory path, bytes32 pairCodeHash) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[amounts.length - 1] = amountOut; for (uint i = path.length - 1; i > 0; i--) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i], pairCodeHash); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } }
pragma solidity 0.6.12; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity 0.6.12; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function migrator() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function pairCodeHash() external pure returns (bytes32); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; function setMigrator(address) external; }
pragma solidity 0.6.12; import "./IERC20.sol"; interface IWETH is IERC20 { function deposit() external payable; function withdraw(uint) external; function transfer(address, uint) external returns (bool); }
pragma solidity 0.6.12; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function transferFrom( address from, address to, uint256 amount ) external returns (bool); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; }
pragma solidity 0.6.12; interface IMisoAuction { function initAuction( address _funder, address _token, uint256 _tokenSupply, uint256 _startDate, uint256 _endDate, address _paymentCurrency, uint256 _startPrice, uint256 _minimumPrice, address _operator, address _pointList, address payable _wallet ) external; function auctionSuccessful() external view returns (bool); function finalized() external view returns (bool); function wallet() external view returns (address); function paymentCurrency() external view returns (address); function auctionToken() external view returns (address); function finalize() external; function tokenPrice() external view returns (uint256); function getTotalTokens() external view returns (uint256); }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.6.12; import "../OpenZeppelin/access/AccessControl.sol"; contract MISOAdminAccess is AccessControl { /// @dev Whether access is initialised. bool private initAccess; /// @notice The deployer is automatically given the admin role which will allow them to then grant roles to other addresses. constructor() public { } /** * @notice Initializes access controls. * @param _admin Admins address. */ function initAccessControls(address _admin) public { require(!initAccess, "Already initialised"); require(_admin != address(0), "Incorrect input"); _setupRole(DEFAULT_ADMIN_ROLE, _admin); initAccess = true; } ///////////// // Lookups // ///////////// /** * @notice Used to check whether an address has the admin role. * @param _address EOA or contract being checked. * @return bool True if the account has the role or false if it does not. */ function hasAdminRole(address _address) public view returns (bool) { return hasRole(DEFAULT_ADMIN_ROLE, _address); } /////////////// // Modifiers // /////////////// /** * @notice Grants the admin role to an address. * @dev The sender must have the admin role. * @param _address EOA or contract receiving the new role. */ function addAdminRole(address _address) external { grantRole(DEFAULT_ADMIN_ROLE, _address); } /** * @notice Removes the admin role from an address. * @dev The sender must have the admin role. * @param _address EOA or contract affected. */ function removeAdminRole(address _address) external { revokeRole(DEFAULT_ADMIN_ROLE, _address); } }
pragma solidity 0.6.12; import "../utils/EnumerableSet.sol"; import "../utils/Context.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { emit RoleAdminChanged(role, _roles[role].adminRole, adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } }
pragma solidity 0.6.12; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
pragma solidity 0.6.12; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
pragma solidity =0.6.12; // a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math) library SafeMathUniswap { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x, 'ds-math-add-overflow'); } function sub(uint x, uint y) internal pure returns (uint z) { require((z = x - y) <= x, 'ds-math-sub-underflow'); } function mul(uint x, uint y) internal pure returns (uint z) { require(y == 0 || (z = x * y) / y == x, 'ds-math-mul-overflow'); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":true,"internalType":"address","name":"token2","type":"address"},{"indexed":false,"internalType":"address","name":"factory","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"InitLiquidityLauncher","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"LauncherCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"LiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"WalletUpdated","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMART_CONTRACT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addOperatorRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addSmartContractRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelLauncher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositToken1","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositToken2","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalize","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getLPBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLPTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_market","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_liquidityPercent","type":"uint256"},{"internalType":"uint256","name":"_locktime","type":"uint256"}],"name":"getLauncherInitData","outputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getToken1Balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getToken2Balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenAmounts","outputs":[{"internalType":"uint256","name":"token1Amount","type":"uint256"},{"internalType":"uint256","name":"token2Amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"hasAdminRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"hasMinterRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"hasOperatorRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"hasSmartContractRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"init","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"initAccessControls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_market","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_liquidityPercent","type":"uint256"},{"internalType":"uint256","name":"_locktime","type":"uint256"}],"name":"initAuctionLauncher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initLauncher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launcherInfo","outputs":[{"internalType":"uint32","name":"locktime","type":"uint32"},{"internalType":"uint64","name":"unlock","type":"uint64"},{"internalType":"uint16","name":"liquidityPercent","type":"uint16"},{"internalType":"bool","name":"launched","type":"bool"},{"internalType":"uint128","name":"liquidityAdded","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityTemplate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"market","outputs":[{"internalType":"contract IMisoAuction","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketConnected","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeOperatorRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeSmartContractRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_wallet","type":"address"}],"name":"setWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token2","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLPTokens","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405234801561001057600080fd5b5060405161332e38038061332e8339818101604052602081101561003357600080fd5b50516001600255606081901b6001600160601b0319166080526001600160a01b03166132a9610085600039806102dd5280610c265280610c5e5280610ccf5280611051528061171d52506132a96000f3fe6080604052600436106102cd5760003560e01c80639010d07c11610175578063d5391393116100dc578063edf8bc1311610095578063f6326fb31161006f578063f6326fb314610b56578063f82fc8ce14610b5e578063fc4e3e0a14610bd9578063fc62485a14610c0c5761030c565b8063edf8bc1314610b17578063ee16c16014610b2c578063f5b541a614610b415761030c565b8063d539139314610a02578063d547741f14610a17578063d73cc4df14610a50578063dccfe31014610a7e578063deaa59df14610ab1578063e6594abd14610ae45761030c565b8063c395fcb31161012e578063c395fcb314610951578063c45a015514610984578063c9d41a4014610999578063c9e57aa6146109ae578063ca15c873146109c3578063d21220a7146109ed5761030c565b80639010d07c1461083a57806391d148541461086a5780639478941c146108a3578063a217fddf146108d6578063adbf3776146108eb578063b7928b1d1461091e5761030c565b8063521eb273116102345780637cf2ed22116101ed57806380f55605116101c757806380f55605146107c85780638566de4b146107dd578063857d2608146107f25780638a845fc0146108075761030c565b80637cf2ed22146107405780637f4f577d14610755578063801ea6ec146107b35761030c565b8063521eb2731461065c57806354f1e126146106715780636595171c146106a457806368b84b72146106d75780636f43f17b1461070157806371210a0d146107165761030c565b806336568abe1161028657806336568abe1461048a5780633f16431a146104c35780634422c3a1146104f65780634bb278f3146105c45780634ddf47d4146105d95780635153786b146106475761030c565b8063099db01714610311578063113b0ab214610358578063248a9ca31461038b57806325be124e146103c75780632dd7131a146103f85780632f2ff15d146104515761030c565b3661030c57336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461030a5761030a610c21565b005b600080fd5b34801561031d57600080fd5b506103446004803603602081101561033457600080fd5b50356001600160a01b0316610d44565b604080519115158252519081900360200190f35b34801561036457600080fd5b506103446004803603602081101561037b57600080fd5b50356001600160a01b0316610d64565b34801561039757600080fd5b506103b5600480360360208110156103ae57600080fd5b5035610d7e565b60408051918252519081900360200190f35b3480156103d357600080fd5b506103dc610d93565b604080516001600160a01b039092168252519081900360200190f35b34801561040457600080fd5b5061030a600480360360c081101561041b57600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359091169060808101359060a00135610da2565b34801561045d57600080fd5b5061030a6004803603604081101561047457600080fd5b50803590602001356001600160a01b03166113ad565b34801561049657600080fd5b5061030a600480360360408110156104ad57600080fd5b50803590602001356001600160a01b0316611419565b3480156104cf57600080fd5b5061030a600480360360208110156104e657600080fd5b50356001600160a01b031661147a565b34801561050257600080fd5b5061054f600480360360c081101561051957600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359091169060808101359060a00135611495565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610589578181015183820152602001610571565b50505050905090810190601f1680156105b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156105d057600080fd5b506103b56114e6565b61030a600480360360208110156105ef57600080fd5b810190602081018135600160201b81111561060957600080fd5b82018360208201111561061b57600080fd5b803590602001918460018302840111600160201b8311171561063c57600080fd5b509092509050611415565b34801561065357600080fd5b506103b5611a79565b34801561066857600080fd5b506103dc611af6565b34801561067d57600080fd5b5061030a6004803603602081101561069457600080fd5b50356001600160a01b0316611b05565b3480156106b057600080fd5b5061030a600480360360208110156106c757600080fd5b50356001600160a01b0316611b1d565b3480156106e357600080fd5b50610344600480360360208110156106fa57600080fd5b5035611b28565b34801561070d57600080fd5b506103b5611b42565b34801561072257600080fd5b506103446004803603602081101561073957600080fd5b5035611b8d565b34801561074c57600080fd5b5061030a611ba7565b34801561076157600080fd5b5061076a611ca0565b6040805163ffffffff909616865267ffffffffffffffff909416602086015261ffff90921684840152151560608401526001600160801b03166080830152519081900360a00190f35b3480156107bf57600080fd5b506103b5611ce7565b3480156107d457600080fd5b506103dc611d36565b3480156107e957600080fd5b506103b5611d45565b3480156107fe57600080fd5b506103b5611d4a565b34801561081357600080fd5b5061030a6004803603602081101561082a57600080fd5b50356001600160a01b0316611d5c565b34801561084657600080fd5b506103dc6004803603604081101561085d57600080fd5b5080359060200135611d74565b34801561087657600080fd5b506103446004803603604081101561088d57600080fd5b50803590602001356001600160a01b0316611d93565b3480156108af57600080fd5b5061030a600480360360208110156108c657600080fd5b50356001600160a01b0316611dab565b3480156108e257600080fd5b506103b5611dc3565b3480156108f757600080fd5b5061030a6004803603602081101561090e57600080fd5b50356001600160a01b0316611dc8565b34801561092a57600080fd5b5061030a6004803603602081101561094157600080fd5b50356001600160a01b0316611de0565b34801561095d57600080fd5b506103446004803603602081101561097457600080fd5b50356001600160a01b0316611df8565b34801561099057600080fd5b506103dc611e04565b3480156109a557600080fd5b5061030a611e13565b3480156109ba57600080fd5b506103dc611e7c565b3480156109cf57600080fd5b506103b5600480360360208110156109e657600080fd5b5035611e8b565b3480156109f957600080fd5b506103dc611ea2565b348015610a0e57600080fd5b506103b5611eb1565b348015610a2357600080fd5b5061030a60048036036040811015610a3a57600080fd5b50803590602001356001600160a01b0316611ec3565b348015610a5c57600080fd5b50610a65611f1c565b6040805192835260208301919091528051918290030190f35b348015610a8a57600080fd5b5061030a60048036036020811015610aa157600080fd5b50356001600160a01b0316612096565b348015610abd57600080fd5b5061030a60048036036020811015610ad457600080fd5b50356001600160a01b03166120a1565b348015610af057600080fd5b5061030a60048036036020811015610b0757600080fd5b50356001600160a01b0316612158565b348015610b2357600080fd5b506103b561220d565b348015610b3857600080fd5b506103dc6123e4565b348015610b4d57600080fd5b506103b56123f3565b61030a610c21565b348015610b6a57600080fd5b5061030a60048036036020811015610b8157600080fd5b810190602081018135600160201b811115610b9b57600080fd5b820183602082011115610bad57600080fd5b803590602001918460018302840111600160201b83111715610bce57600080fd5b509092509050612405565b348015610be557600080fd5b5061034460048036036020811015610bfc57600080fd5b50356001600160a01b031661246c565b348015610c1857600080fd5b50610344612486565b6003547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0390811691161480610c8c57506004547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b039081169116145b610cc75760405162461bcd60e51b81526004018080602001828103825260278152602001806131f16027913960400191505060405180910390fd5b3415610d42577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d2857600080fd5b505af1158015610d3c573d6000803e3d6000fd5b50505050505b565b6000610d5e60008051602061318083398151915283611d93565b92915050565b6000610d5e600080516020612f9083398151915283611d93565b60009081526020819052604090206002015490565b6004546001600160a01b031681565b6402540be4008110610de55760405162461bcd60e51b81526004018080602001828103825260408152602001806131406040913960400191505060405180910390fd5b612710821115610e265760405162461bcd60e51b815260040180806020018281038252603f815260200180612f51603f913960400191505060405180910390fd5b60008211610e655760405162461bcd60e51b815260040180806020018281038252602d8152602001806131c4602d913960400191505060405180910390fd5b6001600160a01b038416610eaa5760405162461bcd60e51b81526004018080602001828103825260268152602001806130d66026913960400191505060405180910390fd5b6001600160a01b038316610eef5760405162461bcd60e51b8152600401808060200182810382526027815260200180612fb06027913960400191505060405180910390fd5b610ef884612158565b600880546001600160a01b0319166001600160a01b03888116919091179182905560408051633d15cc6d60e01b815290519290911691633d15cc6d91600480820192602092909190829003018186803b158015610f5457600080fd5b505afa158015610f68573d6000803e3d6000fd5b505050506040513d6020811015610f7e57600080fd5b5051600380546001600160a01b0319166001600160a01b03928316179055600854604080516304cfed9960e51b8152905191909216916399fdb320916004808301926020929190829003018186803b158015610fd957600080fd5b505afa158015610fed573d6000803e3d6000fd5b505050506040513d602081101561100357600080fd5b5051600480546001600160a01b0319166001600160a01b0392831617905560035473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee9116141561107d57600380546001600160a01b0319167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161790555b6003546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156110c257600080fd5b505afa1580156110d6573d6000803e3d6000fd5b505050506040513d60208110156110ec57600080fd5b5051600480546040805163313ce56760e01b8152905160ff90941694506000936001600160a01b039092169263313ce567928282019260209290829003018186803b15801561113a57600080fd5b505afa15801561114e573d6000803e3d6000fd5b505050506040513d602081101561116457600080fd5b505160ff1690508181101561117857600080fd5b600580546001600160a01b0319166001600160a01b03891690811790915560408051631355724960e31b8152905160009291639aab9248916004808301926020929190829003018186803b1580156111cf57600080fd5b505afa1580156111e3573d6000803e3d6000fd5b505050506040513d60208110156111f957600080fd5b505160035460045491925061121d918a916001600160a01b0390811691168461251b565b600680546001600160a01b03199081166001600160a01b039384161790915560078054909116918816919091179055611255856125b9565b6009805461ffff92909216600160601b0261ffff60601b1990921691909117905561127f84612616565b600960000160006101000a81548163ffffffff021916908363ffffffff160217905550600061133461271061132e88600860009054906101000a90046001600160a01b03166001600160a01b031663f08b82e66040518163ffffffff1660e01b815260040160206040518083038186803b1580156112fc57600080fd5b505afa158015611310573d6000803e3d6000fd5b505050506040513d602081101561132657600080fd5b505190612671565b906126dd565b60045490915061134e906001600160a01b0316338361273b565b600454600354604080516001600160a01b038d811682528c811660208301528251948116949316927f347f9def0950a93749244d7a0cfde1e52dcb48c303a538fda3ceb25c2576d656929181900390910190a350505050505050505050565b6000828152602081905260409020600201546113d0906113cb61285c565b611d93565b61140b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612f22602f913960400191505060405180910390fd5b6114158282612860565b5050565b61142161285c565b6001600160a01b0316816001600160a01b0316146114705760405162461bcd60e51b815260040180806020018281038252602f815260200180613245602f913960400191505060405180910390fd5b61141582826128c9565b611492600080516020612f90833981519152826113ad565b50565b604080516001600160a01b03978816602082015295871686820152938616606086015291909416608084015260a083019390935260c0808301939093528051808303909301835260e0909101905290565b600060028054141561153f576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002805561154b612486565b6115865760405162461bcd60e51b81526004018080602001828103825260528152602001806130846052913960600191505060405180910390fd5b600954600160701b900460ff161561159d57600080fd5b600860009054906101000a90046001600160a01b03166001600160a01b031663b3f05b976040518163ffffffff1660e01b815260040160206040518083038186803b1580156115eb57600080fd5b505afa1580156115ff573d6000803e3d6000fd5b505050506040513d602081101561161557600080fd5b505161168457600860009054906101000a90046001600160a01b03166001600160a01b0316634bb278f36040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561166b57600080fd5b505af115801561167f573d6000803e3d6000fd5b505050505b6009805460ff60701b1916600160701b179055600854604080516336d0054b60e01b815290516001600160a01b03909216916336d0054b91600480820192602092909190829003018186803b1580156116dc57600080fd5b505afa1580156116f0573d6000803e3d6000fd5b505050506040513d602081101561170657600080fd5b505161171457506000611a71565b478015611790577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561177657600080fd5b505af115801561178a573d6000803e3d6000fd5b50505050505b60008061179b611f1c565b9150915081600014806117ac575080155b156117bd5760009350505050611a71565b600554600354600480546040805163e6a4390560e01b81526001600160a01b0394851693810193909352908316602483015251600093929092169163e6a4390591604480820192602092909190829003018186803b15801561181e57600080fd5b505afa158015611832573d6000803e3d6000fd5b505050506040513d602081101561184857600080fd5b505190506001600160a01b03811615806118675750611865611b42565b155b6118b8576040805162461bcd60e51b815260206004820152601b60248201527f506f73744c69717569646974793a2050616972206e6f74206e65770000000000604482015290519081900360640190fd5b6001600160a01b0381166118ce576118ce612932565b6003546006546118eb916001600160a01b039081169116856129bb565b600454600654611908916001600160a01b039081169116846129bb565b600654604080516335313c2160e11b815230600482015290516001600160a01b0390921691636a627842916024808201926020929091908290030181600087803b15801561195557600080fd5b505af1158015611969573d6000803e3d6000fd5b505050506040513d602081101561197f57600080fd5b50516009549095506119aa906119a590600160781b90046001600160801b031687612a37565b612a8f565b600980546001600160801b0392909216600160781b026fffffffffffffffffffffffffffffffff60781b19909216919091179081905567ffffffffffffffff600160201b90910416611a3957600954611a0a9063ffffffff164201612aed565b6009805467ffffffffffffffff92909216600160201b026bffffffffffffffff00000000199092169190911790555b6040805186815290517ffdb748c915e4e67b4bb23287bf4295a4595ce48b50343214369f72ccfb974cfa9181900360200190a1505050505b600160025590565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611ac457600080fd5b505afa158015611ad8573d6000803e3d6000fd5b505050506040513d6020811015611aee57600080fd5b505190505b90565b6007546001600160a01b031681565b61149260008051602061318083398151915282611ec3565b6114926000826113ad565b600454600090610d5e906001600160a01b03163384612b4c565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611ac457600080fd5b600354600090610d5e906001600160a01b03163384612b4c565b611bb033611df8565b80611bbf5750611bbf3361246c565b611bfa5760405162461bcd60e51b81526004018080602001828103825260248152602001806130fc6024913960400191505060405180910390fd5b600954600160701b900460ff16611c425760405162461bcd60e51b8152600401808060200182810382526028815260200180612fd76028913960400191505060405180910390fd5b6000611c4c611a79565b90508015611c7157600354600754611c71916001600160a01b039081169116836129bb565b6000611c7b611ce7565b9050801561141557600454600754611415916001600160a01b039081169116836129bb565b60095463ffffffff811690600160201b810467ffffffffffffffff1690600160601b810461ffff1690600160701b810460ff1690600160781b90046001600160801b031685565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015611ac457600080fd5b6008546001600160a01b031681565b600381565b600080516020612f9083398151915281565b611492600080516020612f9083398151915282611ec3565b6000828152602081905260408120611d8c9083612c3b565b9392505050565b6000828152602081905260408120611d8c9083612c47565b61149260008051602061312083398151915282611ec3565b600081565b611492600080516020613180833981519152826113ad565b611492600080516020613120833981519152826113ad565b6000610d5e8183611d93565b6005546001600160a01b031681565b611e1c33611df8565b611e2557600080fd5b600954600160701b900460ff1615611e3c57600080fd5b6009805460ff60701b1916600160701b17905560405133907f8c549b74aaa0c6619e0bbf388c66d59e84e25a829b1849376129856c778c6b4290600090a2565b6006546001600160a01b031690565b6000818152602081905260408120610d5e90612c5c565b6003546001600160a01b031681565b60008051602061318083398151915281565b600082815260208190526040902060020154611ee1906113cb61285c565b6114705760405162461bcd60e51b81526004018080602001828103825260308152602001806130246030913960400191505060405180910390fd5b6009546000908190611f49906127109061132e90600160601b900461ffff16611f43611a79565b90612671565b9150611f53611ce7565b90506000600860009054906101000a90046001600160a01b03166001600160a01b0316637ff9b5966040518163ffffffff1660e01b815260040160206040518083038186803b158015611fa557600080fd5b505afa158015611fb9573d6000803e3d6000fd5b505050506040513d6020811015611fcf57600080fd5b5051600480546040805163313ce56760e01b815290519394506000936001600160a01b039092169263313ce567928282019260209290829003018186803b15801561201957600080fd5b505afa15801561202d573d6000803e3d6000fd5b505050506040513d602081101561204357600080fd5b505160ff169050600061205e600a83900a61132e8686612671565b905060006120748461132e88600a87900a612671565b905080851115612082578094505b8186111561208e578195505b505050509091565b611492600082611ec3565b6120aa33611df8565b6120b357600080fd5b6001600160a01b03811661210e576040805162461bcd60e51b815260206004820152601a60248201527f57616c6c657420697320746865207a65726f2061646472657373000000000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0383169081179091556040517f4edbfac5b40fe46ac1af1fd222b224b38cfeeb9e21bd4fc6344526c245f7549b90600090a250565b60015460ff16156121a6576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5cd959606a1b604482015290519081900360640190fd5b6001600160a01b0381166121f3576040805162461bcd60e51b815260206004820152600f60248201526e125b98dbdc9c9958dd081a5b9c1d5d608a1b604482015290519081900360640190fd5b6121fe60008261140b565b506001805460ff191681179055565b600061221833611df8565b8061222757506122273361246c565b6122625760405162461bcd60e51b81526004018080602001828103825260248152602001806130fc6024913960400191505060405180910390fd5b600954600160701b900460ff166122aa5760405162461bcd60e51b8152600401808060200182810382526028815260200180612fd76028913960400191505060405180910390fd5b600954600160201b900467ffffffffffffffff16421015612312576040805162461bcd60e51b815260206004820181905260248201527f506f737441756374696f6e3a204c6971756964697479206973206c6f636b6564604482015290519081900360640190fd5b600654604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561235d57600080fd5b505afa158015612371573d6000803e3d6000fd5b505050506040513d602081101561238757600080fd5b50519050806123c75760405162461bcd60e51b815260040180806020018281038252602d815260200180613218602d913960400191505060405180910390fd5b600654600754611af3916001600160a01b039081169116836129bb565b6006546001600160a01b031681565b60008051602061312083398151915281565b600080600080600080878760c081101561241e57600080fd5b506001600160a01b0381358116975060208201358116965060408201358116955060608201351693506080810135925060a001359050612462868686868686610da2565b5050505050505050565b6000610d5e60008051602061312083398151915283611d93565b6000306001600160a01b0316600860009054906101000a90046001600160a01b03166001600160a01b031663521eb2736040518163ffffffff1660e01b815260040160206040518083038186803b1580156124e057600080fd5b505afa1580156124f4573d6000803e3d6000fd5b505050506040513d602081101561250a57600080fd5b50516001600160a01b031614905090565b600080600061252a8686612c67565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529b90941b9093166069840152607d830199909952609d808301969096528851808303909601865260bd9091019097525050815191909401209392505050565b600061ffff821115612612576040805162461bcd60e51b815260206004820152601b60248201527f426f72696e674d6174683a2075696e743136204f766572666c6f770000000000604482015290519081900360640190fd5b5090565b600063ffffffff821115612612576040805162461bcd60e51b815260206004820152601b60248201527f426f72696e674d6174683a2075696e743332204f766572666c6f770000000000604482015290519081900360640190fd5b600081158061268c5750508082028282828161268957fe5b04145b610d5e576040805162461bcd60e51b815260206004820152601860248201527f426f72696e674d6174683a204d756c204f766572666c6f770000000000000000604482015290519081900360640190fd5b600080821161272a576040805162461bcd60e51b8152602060048201526014602482015273426f72696e674d6174683a20446976207a65726f60601b604482015290519081900360640190fd5b81838161273357fe5b049392505050565b604080516001600160a01b038481166024830152306044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b178152925182516000946060949389169392918291908083835b602083106127be5780518252601f19909201916020918201910161279f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612820576040519150601f19603f3d011682016040523d82523d6000602084013e612825565b606091505b5091509150818015612853575080511580612853575080806020019051602081101561285057600080fd5b50515b610d3c57600080fd5b3390565b60008281526020819052604090206128789082612d45565b156114155761288561285c565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020819052604090206128e19082612d5a565b15611415576128ee61285c565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60055460035460048054604080516364e329cb60e11b81526001600160a01b0394851693810193909352908316602483015251919092169163c9c653969160448083019260209291908290030181600087803b15801561299157600080fd5b505af11580156129a5573d6000803e3d6000fd5b505050506040513d602081101561141557600080fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17815292518251600094606094938916939291829190808383602083106127be5780518252601f19909201916020918201910161279f565b81810181811015610d5e576040805162461bcd60e51b815260206004820152601860248201527f426f72696e674d6174683a20416464204f766572666c6f770000000000000000604482015290519081900360640190fd5b60006001600160801b03821115612612576040805162461bcd60e51b815260206004820152601c60248201527f426f72696e674d6174683a2075696e74313238204f766572666c6f7700000000604482015290519081900360640190fd5b600067ffffffffffffffff821115612612576040805162461bcd60e51b815260206004820152601b60248201527f426f72696e674d6174683a2075696e743634204f766572666c6f770000000000604482015290519081900360640190fd5b600954600090600160701b900460ff1615612b985760405162461bcd60e51b8152600401808060200182810382526028815260200180612fd76028913960400191505060405180910390fd5b600954600160781b90046001600160801b031615612be75760405162461bcd60e51b81526004018080602001828103825260248152602001806131a06024913960400191505060405180910390fd5b60008211612c265760405162461bcd60e51b81526004018080602001828103825260308152602001806130546030913960400191505060405180910390fd5b612c3184848461273b565b5060019392505050565b6000611d8c8383612d6f565b6000611d8c836001600160a01b038416612dd3565b6000610d5e82612deb565b600080826001600160a01b0316846001600160a01b03161415612cbb5760405162461bcd60e51b8152600401808060200182810382526025815260200180612fff6025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610612cdb578284612cde565b83835b90925090506001600160a01b038216612d3e576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b6000611d8c836001600160a01b038416612def565b6000611d8c836001600160a01b038416612e39565b81546000908210612db15760405162461bcd60e51b8152600401808060200182810382526022815260200180612f006022913960400191505060405180910390fd5b826000018281548110612dc057fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000612dfb8383612dd3565b612e3157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d5e565b506000610d5e565b60008181526001830160205260408120548015612ef55783546000198083019190810190600090879083908110612e6c57fe5b9060005260206000200154905080876000018481548110612e8957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080612eb957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d5e565b6000915050610d5e56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74506f737441756374696f6e3a204c69717569646974792070657263656e746167652067726561746572207468616e203130302e30302520283e3130303030299d49f397ae9ef1a834b569acb967799a367061e305932181a44f5773da873bfd506f737441756374696f6e3a2077616c6c657420697320746865207a65726f2061646472657373506f737441756374696f6e3a204d757374206669727374206c61756e6368206c6971756964697479556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65506f737441756374696f6e3a20546f6b656e20616d6f756e74206d7573742062652067726561746572207468616e2030506f737441756374696f6e3a2041756374696f6e206d75737420686176652074686973206c61756e63686572206164647265737320736574206173207468652064657374696e6174696f6e2077616c6c6574506f737441756374696f6e3a2061646d696e20697320746865207a65726f2061646472657373506f737441756374696f6e3a2053656e646572206d757374206265206f70657261746f7297667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929506f737441756374696f6e3a20456e74657220616e20756e69782074696d657374616d7020696e207365636f6e64732c206e6f74206d696c697365636f6e64739f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6506f737441756374696f6e3a204c697175696469747920616c7265616479206164646564506f737441756374696f6e3a204c69717569646974792070657263656e7461676520657175616c73207a65726f506f737441756374696f6e3a204c61756e63686572206e6f7420616363657074696e6720455448506f737441756374696f6e3a204c6971756964697479206d7573742062652067726561746572207468616e2030416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212201feff48b0cae493f3131a127e531af8e5b0ea29716da052c1dfe822dc10f57ac64736f6c634300060c0033000000000000000000000000acc15dc74880c9944775448304b263d191c6077f
Deployed Bytecode
0x6080604052600436106102cd5760003560e01c80639010d07c11610175578063d5391393116100dc578063edf8bc1311610095578063f6326fb31161006f578063f6326fb314610b56578063f82fc8ce14610b5e578063fc4e3e0a14610bd9578063fc62485a14610c0c5761030c565b8063edf8bc1314610b17578063ee16c16014610b2c578063f5b541a614610b415761030c565b8063d539139314610a02578063d547741f14610a17578063d73cc4df14610a50578063dccfe31014610a7e578063deaa59df14610ab1578063e6594abd14610ae45761030c565b8063c395fcb31161012e578063c395fcb314610951578063c45a015514610984578063c9d41a4014610999578063c9e57aa6146109ae578063ca15c873146109c3578063d21220a7146109ed5761030c565b80639010d07c1461083a57806391d148541461086a5780639478941c146108a3578063a217fddf146108d6578063adbf3776146108eb578063b7928b1d1461091e5761030c565b8063521eb273116102345780637cf2ed22116101ed57806380f55605116101c757806380f55605146107c85780638566de4b146107dd578063857d2608146107f25780638a845fc0146108075761030c565b80637cf2ed22146107405780637f4f577d14610755578063801ea6ec146107b35761030c565b8063521eb2731461065c57806354f1e126146106715780636595171c146106a457806368b84b72146106d75780636f43f17b1461070157806371210a0d146107165761030c565b806336568abe1161028657806336568abe1461048a5780633f16431a146104c35780634422c3a1146104f65780634bb278f3146105c45780634ddf47d4146105d95780635153786b146106475761030c565b8063099db01714610311578063113b0ab214610358578063248a9ca31461038b57806325be124e146103c75780632dd7131a146103f85780632f2ff15d146104515761030c565b3661030c57336001600160a01b037f000000000000000000000000acc15dc74880c9944775448304b263d191c6077f161461030a5761030a610c21565b005b600080fd5b34801561031d57600080fd5b506103446004803603602081101561033457600080fd5b50356001600160a01b0316610d44565b604080519115158252519081900360200190f35b34801561036457600080fd5b506103446004803603602081101561037b57600080fd5b50356001600160a01b0316610d64565b34801561039757600080fd5b506103b5600480360360208110156103ae57600080fd5b5035610d7e565b60408051918252519081900360200190f35b3480156103d357600080fd5b506103dc610d93565b604080516001600160a01b039092168252519081900360200190f35b34801561040457600080fd5b5061030a600480360360c081101561041b57600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359091169060808101359060a00135610da2565b34801561045d57600080fd5b5061030a6004803603604081101561047457600080fd5b50803590602001356001600160a01b03166113ad565b34801561049657600080fd5b5061030a600480360360408110156104ad57600080fd5b50803590602001356001600160a01b0316611419565b3480156104cf57600080fd5b5061030a600480360360208110156104e657600080fd5b50356001600160a01b031661147a565b34801561050257600080fd5b5061054f600480360360c081101561051957600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359091169060808101359060a00135611495565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610589578181015183820152602001610571565b50505050905090810190601f1680156105b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156105d057600080fd5b506103b56114e6565b61030a600480360360208110156105ef57600080fd5b810190602081018135600160201b81111561060957600080fd5b82018360208201111561061b57600080fd5b803590602001918460018302840111600160201b8311171561063c57600080fd5b509092509050611415565b34801561065357600080fd5b506103b5611a79565b34801561066857600080fd5b506103dc611af6565b34801561067d57600080fd5b5061030a6004803603602081101561069457600080fd5b50356001600160a01b0316611b05565b3480156106b057600080fd5b5061030a600480360360208110156106c757600080fd5b50356001600160a01b0316611b1d565b3480156106e357600080fd5b50610344600480360360208110156106fa57600080fd5b5035611b28565b34801561070d57600080fd5b506103b5611b42565b34801561072257600080fd5b506103446004803603602081101561073957600080fd5b5035611b8d565b34801561074c57600080fd5b5061030a611ba7565b34801561076157600080fd5b5061076a611ca0565b6040805163ffffffff909616865267ffffffffffffffff909416602086015261ffff90921684840152151560608401526001600160801b03166080830152519081900360a00190f35b3480156107bf57600080fd5b506103b5611ce7565b3480156107d457600080fd5b506103dc611d36565b3480156107e957600080fd5b506103b5611d45565b3480156107fe57600080fd5b506103b5611d4a565b34801561081357600080fd5b5061030a6004803603602081101561082a57600080fd5b50356001600160a01b0316611d5c565b34801561084657600080fd5b506103dc6004803603604081101561085d57600080fd5b5080359060200135611d74565b34801561087657600080fd5b506103446004803603604081101561088d57600080fd5b50803590602001356001600160a01b0316611d93565b3480156108af57600080fd5b5061030a600480360360208110156108c657600080fd5b50356001600160a01b0316611dab565b3480156108e257600080fd5b506103b5611dc3565b3480156108f757600080fd5b5061030a6004803603602081101561090e57600080fd5b50356001600160a01b0316611dc8565b34801561092a57600080fd5b5061030a6004803603602081101561094157600080fd5b50356001600160a01b0316611de0565b34801561095d57600080fd5b506103446004803603602081101561097457600080fd5b50356001600160a01b0316611df8565b34801561099057600080fd5b506103dc611e04565b3480156109a557600080fd5b5061030a611e13565b3480156109ba57600080fd5b506103dc611e7c565b3480156109cf57600080fd5b506103b5600480360360208110156109e657600080fd5b5035611e8b565b3480156109f957600080fd5b506103dc611ea2565b348015610a0e57600080fd5b506103b5611eb1565b348015610a2357600080fd5b5061030a60048036036040811015610a3a57600080fd5b50803590602001356001600160a01b0316611ec3565b348015610a5c57600080fd5b50610a65611f1c565b6040805192835260208301919091528051918290030190f35b348015610a8a57600080fd5b5061030a60048036036020811015610aa157600080fd5b50356001600160a01b0316612096565b348015610abd57600080fd5b5061030a60048036036020811015610ad457600080fd5b50356001600160a01b03166120a1565b348015610af057600080fd5b5061030a60048036036020811015610b0757600080fd5b50356001600160a01b0316612158565b348015610b2357600080fd5b506103b561220d565b348015610b3857600080fd5b506103dc6123e4565b348015610b4d57600080fd5b506103b56123f3565b61030a610c21565b348015610b6a57600080fd5b5061030a60048036036020811015610b8157600080fd5b810190602081018135600160201b811115610b9b57600080fd5b820183602082011115610bad57600080fd5b803590602001918460018302840111600160201b83111715610bce57600080fd5b509092509050612405565b348015610be557600080fd5b5061034460048036036020811015610bfc57600080fd5b50356001600160a01b031661246c565b348015610c1857600080fd5b50610344612486565b6003547f000000000000000000000000acc15dc74880c9944775448304b263d191c6077f6001600160a01b0390811691161480610c8c57506004547f000000000000000000000000acc15dc74880c9944775448304b263d191c6077f6001600160a01b039081169116145b610cc75760405162461bcd60e51b81526004018080602001828103825260278152602001806131f16027913960400191505060405180910390fd5b3415610d42577f000000000000000000000000acc15dc74880c9944775448304b263d191c6077f6001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d2857600080fd5b505af1158015610d3c573d6000803e3d6000fd5b50505050505b565b6000610d5e60008051602061318083398151915283611d93565b92915050565b6000610d5e600080516020612f9083398151915283611d93565b60009081526020819052604090206002015490565b6004546001600160a01b031681565b6402540be4008110610de55760405162461bcd60e51b81526004018080602001828103825260408152602001806131406040913960400191505060405180910390fd5b612710821115610e265760405162461bcd60e51b815260040180806020018281038252603f815260200180612f51603f913960400191505060405180910390fd5b60008211610e655760405162461bcd60e51b815260040180806020018281038252602d8152602001806131c4602d913960400191505060405180910390fd5b6001600160a01b038416610eaa5760405162461bcd60e51b81526004018080602001828103825260268152602001806130d66026913960400191505060405180910390fd5b6001600160a01b038316610eef5760405162461bcd60e51b8152600401808060200182810382526027815260200180612fb06027913960400191505060405180910390fd5b610ef884612158565b600880546001600160a01b0319166001600160a01b03888116919091179182905560408051633d15cc6d60e01b815290519290911691633d15cc6d91600480820192602092909190829003018186803b158015610f5457600080fd5b505afa158015610f68573d6000803e3d6000fd5b505050506040513d6020811015610f7e57600080fd5b5051600380546001600160a01b0319166001600160a01b03928316179055600854604080516304cfed9960e51b8152905191909216916399fdb320916004808301926020929190829003018186803b158015610fd957600080fd5b505afa158015610fed573d6000803e3d6000fd5b505050506040513d602081101561100357600080fd5b5051600480546001600160a01b0319166001600160a01b0392831617905560035473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee9116141561107d57600380546001600160a01b0319167f000000000000000000000000acc15dc74880c9944775448304b263d191c6077f6001600160a01b03161790555b6003546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156110c257600080fd5b505afa1580156110d6573d6000803e3d6000fd5b505050506040513d60208110156110ec57600080fd5b5051600480546040805163313ce56760e01b8152905160ff90941694506000936001600160a01b039092169263313ce567928282019260209290829003018186803b15801561113a57600080fd5b505afa15801561114e573d6000803e3d6000fd5b505050506040513d602081101561116457600080fd5b505160ff1690508181101561117857600080fd5b600580546001600160a01b0319166001600160a01b03891690811790915560408051631355724960e31b8152905160009291639aab9248916004808301926020929190829003018186803b1580156111cf57600080fd5b505afa1580156111e3573d6000803e3d6000fd5b505050506040513d60208110156111f957600080fd5b505160035460045491925061121d918a916001600160a01b0390811691168461251b565b600680546001600160a01b03199081166001600160a01b039384161790915560078054909116918816919091179055611255856125b9565b6009805461ffff92909216600160601b0261ffff60601b1990921691909117905561127f84612616565b600960000160006101000a81548163ffffffff021916908363ffffffff160217905550600061133461271061132e88600860009054906101000a90046001600160a01b03166001600160a01b031663f08b82e66040518163ffffffff1660e01b815260040160206040518083038186803b1580156112fc57600080fd5b505afa158015611310573d6000803e3d6000fd5b505050506040513d602081101561132657600080fd5b505190612671565b906126dd565b60045490915061134e906001600160a01b0316338361273b565b600454600354604080516001600160a01b038d811682528c811660208301528251948116949316927f347f9def0950a93749244d7a0cfde1e52dcb48c303a538fda3ceb25c2576d656929181900390910190a350505050505050505050565b6000828152602081905260409020600201546113d0906113cb61285c565b611d93565b61140b5760405162461bcd60e51b815260040180806020018281038252602f815260200180612f22602f913960400191505060405180910390fd5b6114158282612860565b5050565b61142161285c565b6001600160a01b0316816001600160a01b0316146114705760405162461bcd60e51b815260040180806020018281038252602f815260200180613245602f913960400191505060405180910390fd5b61141582826128c9565b611492600080516020612f90833981519152826113ad565b50565b604080516001600160a01b03978816602082015295871686820152938616606086015291909416608084015260a083019390935260c0808301939093528051808303909301835260e0909101905290565b600060028054141561153f576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002805561154b612486565b6115865760405162461bcd60e51b81526004018080602001828103825260528152602001806130846052913960600191505060405180910390fd5b600954600160701b900460ff161561159d57600080fd5b600860009054906101000a90046001600160a01b03166001600160a01b031663b3f05b976040518163ffffffff1660e01b815260040160206040518083038186803b1580156115eb57600080fd5b505afa1580156115ff573d6000803e3d6000fd5b505050506040513d602081101561161557600080fd5b505161168457600860009054906101000a90046001600160a01b03166001600160a01b0316634bb278f36040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561166b57600080fd5b505af115801561167f573d6000803e3d6000fd5b505050505b6009805460ff60701b1916600160701b179055600854604080516336d0054b60e01b815290516001600160a01b03909216916336d0054b91600480820192602092909190829003018186803b1580156116dc57600080fd5b505afa1580156116f0573d6000803e3d6000fd5b505050506040513d602081101561170657600080fd5b505161171457506000611a71565b478015611790577f000000000000000000000000acc15dc74880c9944775448304b263d191c6077f6001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561177657600080fd5b505af115801561178a573d6000803e3d6000fd5b50505050505b60008061179b611f1c565b9150915081600014806117ac575080155b156117bd5760009350505050611a71565b600554600354600480546040805163e6a4390560e01b81526001600160a01b0394851693810193909352908316602483015251600093929092169163e6a4390591604480820192602092909190829003018186803b15801561181e57600080fd5b505afa158015611832573d6000803e3d6000fd5b505050506040513d602081101561184857600080fd5b505190506001600160a01b03811615806118675750611865611b42565b155b6118b8576040805162461bcd60e51b815260206004820152601b60248201527f506f73744c69717569646974793a2050616972206e6f74206e65770000000000604482015290519081900360640190fd5b6001600160a01b0381166118ce576118ce612932565b6003546006546118eb916001600160a01b039081169116856129bb565b600454600654611908916001600160a01b039081169116846129bb565b600654604080516335313c2160e11b815230600482015290516001600160a01b0390921691636a627842916024808201926020929091908290030181600087803b15801561195557600080fd5b505af1158015611969573d6000803e3d6000fd5b505050506040513d602081101561197f57600080fd5b50516009549095506119aa906119a590600160781b90046001600160801b031687612a37565b612a8f565b600980546001600160801b0392909216600160781b026fffffffffffffffffffffffffffffffff60781b19909216919091179081905567ffffffffffffffff600160201b90910416611a3957600954611a0a9063ffffffff164201612aed565b6009805467ffffffffffffffff92909216600160201b026bffffffffffffffff00000000199092169190911790555b6040805186815290517ffdb748c915e4e67b4bb23287bf4295a4595ce48b50343214369f72ccfb974cfa9181900360200190a1505050505b600160025590565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611ac457600080fd5b505afa158015611ad8573d6000803e3d6000fd5b505050506040513d6020811015611aee57600080fd5b505190505b90565b6007546001600160a01b031681565b61149260008051602061318083398151915282611ec3565b6114926000826113ad565b600454600090610d5e906001600160a01b03163384612b4c565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611ac457600080fd5b600354600090610d5e906001600160a01b03163384612b4c565b611bb033611df8565b80611bbf5750611bbf3361246c565b611bfa5760405162461bcd60e51b81526004018080602001828103825260248152602001806130fc6024913960400191505060405180910390fd5b600954600160701b900460ff16611c425760405162461bcd60e51b8152600401808060200182810382526028815260200180612fd76028913960400191505060405180910390fd5b6000611c4c611a79565b90508015611c7157600354600754611c71916001600160a01b039081169116836129bb565b6000611c7b611ce7565b9050801561141557600454600754611415916001600160a01b039081169116836129bb565b60095463ffffffff811690600160201b810467ffffffffffffffff1690600160601b810461ffff1690600160701b810460ff1690600160781b90046001600160801b031685565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015611ac457600080fd5b6008546001600160a01b031681565b600381565b600080516020612f9083398151915281565b611492600080516020612f9083398151915282611ec3565b6000828152602081905260408120611d8c9083612c3b565b9392505050565b6000828152602081905260408120611d8c9083612c47565b61149260008051602061312083398151915282611ec3565b600081565b611492600080516020613180833981519152826113ad565b611492600080516020613120833981519152826113ad565b6000610d5e8183611d93565b6005546001600160a01b031681565b611e1c33611df8565b611e2557600080fd5b600954600160701b900460ff1615611e3c57600080fd5b6009805460ff60701b1916600160701b17905560405133907f8c549b74aaa0c6619e0bbf388c66d59e84e25a829b1849376129856c778c6b4290600090a2565b6006546001600160a01b031690565b6000818152602081905260408120610d5e90612c5c565b6003546001600160a01b031681565b60008051602061318083398151915281565b600082815260208190526040902060020154611ee1906113cb61285c565b6114705760405162461bcd60e51b81526004018080602001828103825260308152602001806130246030913960400191505060405180910390fd5b6009546000908190611f49906127109061132e90600160601b900461ffff16611f43611a79565b90612671565b9150611f53611ce7565b90506000600860009054906101000a90046001600160a01b03166001600160a01b0316637ff9b5966040518163ffffffff1660e01b815260040160206040518083038186803b158015611fa557600080fd5b505afa158015611fb9573d6000803e3d6000fd5b505050506040513d6020811015611fcf57600080fd5b5051600480546040805163313ce56760e01b815290519394506000936001600160a01b039092169263313ce567928282019260209290829003018186803b15801561201957600080fd5b505afa15801561202d573d6000803e3d6000fd5b505050506040513d602081101561204357600080fd5b505160ff169050600061205e600a83900a61132e8686612671565b905060006120748461132e88600a87900a612671565b905080851115612082578094505b8186111561208e578195505b505050509091565b611492600082611ec3565b6120aa33611df8565b6120b357600080fd5b6001600160a01b03811661210e576040805162461bcd60e51b815260206004820152601a60248201527f57616c6c657420697320746865207a65726f2061646472657373000000000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0383169081179091556040517f4edbfac5b40fe46ac1af1fd222b224b38cfeeb9e21bd4fc6344526c245f7549b90600090a250565b60015460ff16156121a6576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5cd959606a1b604482015290519081900360640190fd5b6001600160a01b0381166121f3576040805162461bcd60e51b815260206004820152600f60248201526e125b98dbdc9c9958dd081a5b9c1d5d608a1b604482015290519081900360640190fd5b6121fe60008261140b565b506001805460ff191681179055565b600061221833611df8565b8061222757506122273361246c565b6122625760405162461bcd60e51b81526004018080602001828103825260248152602001806130fc6024913960400191505060405180910390fd5b600954600160701b900460ff166122aa5760405162461bcd60e51b8152600401808060200182810382526028815260200180612fd76028913960400191505060405180910390fd5b600954600160201b900467ffffffffffffffff16421015612312576040805162461bcd60e51b815260206004820181905260248201527f506f737441756374696f6e3a204c6971756964697479206973206c6f636b6564604482015290519081900360640190fd5b600654604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561235d57600080fd5b505afa158015612371573d6000803e3d6000fd5b505050506040513d602081101561238757600080fd5b50519050806123c75760405162461bcd60e51b815260040180806020018281038252602d815260200180613218602d913960400191505060405180910390fd5b600654600754611af3916001600160a01b039081169116836129bb565b6006546001600160a01b031681565b60008051602061312083398151915281565b600080600080600080878760c081101561241e57600080fd5b506001600160a01b0381358116975060208201358116965060408201358116955060608201351693506080810135925060a001359050612462868686868686610da2565b5050505050505050565b6000610d5e60008051602061312083398151915283611d93565b6000306001600160a01b0316600860009054906101000a90046001600160a01b03166001600160a01b031663521eb2736040518163ffffffff1660e01b815260040160206040518083038186803b1580156124e057600080fd5b505afa1580156124f4573d6000803e3d6000fd5b505050506040513d602081101561250a57600080fd5b50516001600160a01b031614905090565b600080600061252a8686612c67565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529b90941b9093166069840152607d830199909952609d808301969096528851808303909601865260bd9091019097525050815191909401209392505050565b600061ffff821115612612576040805162461bcd60e51b815260206004820152601b60248201527f426f72696e674d6174683a2075696e743136204f766572666c6f770000000000604482015290519081900360640190fd5b5090565b600063ffffffff821115612612576040805162461bcd60e51b815260206004820152601b60248201527f426f72696e674d6174683a2075696e743332204f766572666c6f770000000000604482015290519081900360640190fd5b600081158061268c5750508082028282828161268957fe5b04145b610d5e576040805162461bcd60e51b815260206004820152601860248201527f426f72696e674d6174683a204d756c204f766572666c6f770000000000000000604482015290519081900360640190fd5b600080821161272a576040805162461bcd60e51b8152602060048201526014602482015273426f72696e674d6174683a20446976207a65726f60601b604482015290519081900360640190fd5b81838161273357fe5b049392505050565b604080516001600160a01b038481166024830152306044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b178152925182516000946060949389169392918291908083835b602083106127be5780518252601f19909201916020918201910161279f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612820576040519150601f19603f3d011682016040523d82523d6000602084013e612825565b606091505b5091509150818015612853575080511580612853575080806020019051602081101561285057600080fd5b50515b610d3c57600080fd5b3390565b60008281526020819052604090206128789082612d45565b156114155761288561285c565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020819052604090206128e19082612d5a565b15611415576128ee61285c565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60055460035460048054604080516364e329cb60e11b81526001600160a01b0394851693810193909352908316602483015251919092169163c9c653969160448083019260209291908290030181600087803b15801561299157600080fd5b505af11580156129a5573d6000803e3d6000fd5b505050506040513d602081101561141557600080fd5b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17815292518251600094606094938916939291829190808383602083106127be5780518252601f19909201916020918201910161279f565b81810181811015610d5e576040805162461bcd60e51b815260206004820152601860248201527f426f72696e674d6174683a20416464204f766572666c6f770000000000000000604482015290519081900360640190fd5b60006001600160801b03821115612612576040805162461bcd60e51b815260206004820152601c60248201527f426f72696e674d6174683a2075696e74313238204f766572666c6f7700000000604482015290519081900360640190fd5b600067ffffffffffffffff821115612612576040805162461bcd60e51b815260206004820152601b60248201527f426f72696e674d6174683a2075696e743634204f766572666c6f770000000000604482015290519081900360640190fd5b600954600090600160701b900460ff1615612b985760405162461bcd60e51b8152600401808060200182810382526028815260200180612fd76028913960400191505060405180910390fd5b600954600160781b90046001600160801b031615612be75760405162461bcd60e51b81526004018080602001828103825260248152602001806131a06024913960400191505060405180910390fd5b60008211612c265760405162461bcd60e51b81526004018080602001828103825260308152602001806130546030913960400191505060405180910390fd5b612c3184848461273b565b5060019392505050565b6000611d8c8383612d6f565b6000611d8c836001600160a01b038416612dd3565b6000610d5e82612deb565b600080826001600160a01b0316846001600160a01b03161415612cbb5760405162461bcd60e51b8152600401808060200182810382526025815260200180612fff6025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b031610612cdb578284612cde565b83835b90925090506001600160a01b038216612d3e576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b6000611d8c836001600160a01b038416612def565b6000611d8c836001600160a01b038416612e39565b81546000908210612db15760405162461bcd60e51b8152600401808060200182810382526022815260200180612f006022913960400191505060405180910390fd5b826000018281548110612dc057fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000612dfb8383612dd3565b612e3157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d5e565b506000610d5e565b60008181526001830160205260408120548015612ef55783546000198083019190810190600090879083908110612e6c57fe5b9060005260206000200154905080876000018481548110612e8957fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080612eb957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d5e565b6000915050610d5e56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74506f737441756374696f6e3a204c69717569646974792070657263656e746167652067726561746572207468616e203130302e30302520283e3130303030299d49f397ae9ef1a834b569acb967799a367061e305932181a44f5773da873bfd506f737441756374696f6e3a2077616c6c657420697320746865207a65726f2061646472657373506f737441756374696f6e3a204d757374206669727374206c61756e6368206c6971756964697479556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65506f737441756374696f6e3a20546f6b656e20616d6f756e74206d7573742062652067726561746572207468616e2030506f737441756374696f6e3a2041756374696f6e206d75737420686176652074686973206c61756e63686572206164647265737320736574206173207468652064657374696e6174696f6e2077616c6c6574506f737441756374696f6e3a2061646d696e20697320746865207a65726f2061646472657373506f737441756374696f6e3a2053656e646572206d757374206265206f70657261746f7297667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929506f737441756374696f6e3a20456e74657220616e20756e69782074696d657374616d7020696e207365636f6e64732c206e6f74206d696c697365636f6e64739f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6506f737441756374696f6e3a204c697175696469747920616c7265616479206164646564506f737441756374696f6e3a204c69717569646974792070657263656e7461676520657175616c73207a65726f506f737441756374696f6e3a204c61756e63686572206e6f7420616363657074696e6720455448506f737441756374696f6e3a204c6971756964697479206d7573742062652067726561746572207468616e2030416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212201feff48b0cae493f3131a127e531af8e5b0ea29716da052c1dfe822dc10f57ac64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000acc15dc74880c9944775448304b263d191c6077f
-----Decoded View---------------
Arg [0] : _weth (address): 0xAcc15dC74880C9944775448304B263D191c6077F
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000acc15dc74880c9944775448304b263d191c6077f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 23 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.