Contract 0xB9B492B5D470ae0eB2BB07a87062EC97615d8b09

Contract Overview

Balance:
0 BNB

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xffb0f9c7908f5d9e3d59b9b2446bdbc67089bf7eb4d6bf9f8e345f32af2b329aSell129540532021-10-05 8:00:1719 days 17 hrs ago0x735520f20ec3faefe91b2a2318b82d6f9e986ea3 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.0009394
0xc9f67f0b75217c3f47c13b817f52d8845fe49f4fb90c5be1680ff69e19afdb7cCreate Token128372822021-10-01 5:54:5323 days 20 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185302
0x616275fdbcb60eac142e1b09fff0f8bc12c298c566848f46ffb131cce1d7c35eSell128341432021-10-01 3:17:5323 days 22 hrs ago0x735520f20ec3faefe91b2a2318b82d6f9e986ea3 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.0009394
0x9e5d6696d429629626bfa6f47cc16fabd72363e2c03e25d9065bba85eccf0438Buy128338912021-10-01 3:05:1723 days 22 hrs ago0x735520f20ec3faefe91b2a2318b82d6f9e986ea3 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.0016155
0x1442cb7660bb6541c8dd00d811b838e2c048a4c5b2edcf193a9cf4f5824c2346Create Token127837752021-09-29 8:55:3725 days 17 hrs ago0x735520f20ec3faefe91b2a2318b82d6f9e986ea3 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185338
0xe83207faa3bf2a5637bf7adfa4595601a1ba553471db3d38a9941f618ee69514Create Token127835312021-09-29 8:43:2525 days 17 hrs ago0x735520f20ec3faefe91b2a2318b82d6f9e986ea3 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185314
0xff275076ea4989be88efa5ba8630f8f594335dc95fca608b1f76d25af4afd182Create Token127798642021-09-29 5:40:0325 days 20 hrs ago0x91ec1d18ed7a3587b87066f0ab1a641dcbb84e9e IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.0018529
0x2329c4d894fa00269eeffb69ed3956c8d1c7bca3897027ee5d9351f5e38f2b6eCreate Token126735732021-09-25 12:34:5629 days 13 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185362
0x94b950b5828127e975936aac278ddcaa517b70da1e024520e463ebd8ec07a163Create Token126686592021-09-25 8:29:0729 days 17 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185374
0x54f6359ee2ac2a9baa549d083c875e3212eeb90aa8d11f37756434353128b5daCreate Token126686172021-09-25 8:27:0129 days 17 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185314
0x8f94f1fac47088742cda4c0b3b8364fd2fd34930d7a32ea953f7497b9aa0e82cCreate Token126683752021-09-25 8:14:5529 days 17 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185374
0x2931560e5897b44a25cfd8c6c63e930dc223561c5d63657df9dd0e7c0cbdf870Create Token126674982021-09-25 7:31:0429 days 18 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185314
0x77db6d5e71d0fcd4a35d613fcdcb18b98a6282c4ea1d20fd1668494b96a5b1b3Create Token126474372021-09-24 14:38:2030 days 11 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185326
0x7c37de830f065918a8051981c076c0b02fca2e1236dfb3ad8f41875ebf60cd31Create Token126473852021-09-24 14:35:4430 days 11 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185302
0x2a3e15fed4d8098041f28ddffbc4f81b2492c66a1b7a667ba74f845b210b0fd2Create Token126473722021-09-24 14:35:0530 days 11 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185314
0x48e2143acb616003339dc2c94c47886cd1f172196414d2f8ac05e91b2b9ecf0dCreate Token126404932021-09-24 8:51:0830 days 17 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185302
0xffdced7c8fea74d3c682fc6efd091aac23865073d0184661fc7cea1fa3a6439fCreate Token126377872021-09-24 6:35:4530 days 19 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185374
0x10c221c5e815a576dd3c968d338322b5d6c55d21109cc1c4829a3f339ec6996dCreate Token126374942021-09-24 6:21:0630 days 19 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185338
0xedfd6c33d001784b4c8930a1bb3f4416e43443e88532e198043cd93e2af66b9bCreate Token126081102021-09-23 5:50:2631 days 20 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185398
0xe979ef49c85bffc1d2b0d01e9bbfff0b8a7bb93e7da2f3af7a9424f111403389Create Token124407082021-09-17 9:20:4937 days 16 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185374
0x8800fec9ddcefe17b31a4f2057fb91b59339282bef8566b742c3096876e36cf2Create Token124404562021-09-17 9:08:1337 days 16 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185374
0x50749ec585aa7743e2c3bb49c756f3274a05a5e6a92a23982519f62514dc9fc0Create Token124403712021-09-17 9:03:5837 days 16 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185374
0xbb5c8858bacb2ae1a203cf32fae3e8a8ed9030d87aa99f3bc8b8f1b6e20550c8Create Token124403242021-09-17 9:01:3737 days 16 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00185374
0xbba179325bca4919947b2d699be5c31a330f86a8217f928533a9059bc2e69113Create Token124402482021-09-17 8:57:4937 days 17 hrs ago0xecf69a95695106ec8ffeb0f904ee8b3f2a914cc6 IN  0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB0.00200374
0xdcb21da0b5e3ef7b8ccf4e52bdaf08c9a627bb7c52e24a62dca2b604c850392b0x60806040118066462021-08-26 5:25:5859 days 20 hrs ago0x32a935f79ce498aeff77acd2f7f35b3aabc31a2d IN  Contract Creation0 BNB0.01556009
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xb857f70e3ff91b868ec2122f3127e4e21c72a531376696d9d47652c7245f8c24129766772021-10-06 2:51:3718 days 23 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0xb857f70e3ff91b868ec2122f3127e4e21c72a531376696d9d47652c7245f8c24129766772021-10-06 2:51:3718 days 23 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0xb857f70e3ff91b868ec2122f3127e4e21c72a531376696d9d47652c7245f8c24129766772021-10-06 2:51:3718 days 23 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0xb857f70e3ff91b868ec2122f3127e4e21c72a531376696d9d47652c7245f8c24129766772021-10-06 2:51:3718 days 23 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0xb857f70e3ff91b868ec2122f3127e4e21c72a531376696d9d47652c7245f8c24129766772021-10-06 2:51:3718 days 23 hrs ago 0xfc1ccd12a3afbf3e6e5ba134fa446935d20bc2f6 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB
0x1946f61a628ed5d23e349421cecddab4e9f34770ca88f1d082a6c958ed4c3669129587462021-10-05 11:54:5619 days 14 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0x1946f61a628ed5d23e349421cecddab4e9f34770ca88f1d082a6c958ed4c3669129587462021-10-05 11:54:5619 days 14 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0x1946f61a628ed5d23e349421cecddab4e9f34770ca88f1d082a6c958ed4c3669129587462021-10-05 11:54:5619 days 14 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0x1946f61a628ed5d23e349421cecddab4e9f34770ca88f1d082a6c958ed4c3669129587462021-10-05 11:54:5619 days 14 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0x1946f61a628ed5d23e349421cecddab4e9f34770ca88f1d082a6c958ed4c3669129587462021-10-05 11:54:5619 days 14 hrs ago 0xfc1ccd12a3afbf3e6e5ba134fa446935d20bc2f6 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB
0xaea1745d5e00712d40b484d2c120049fea53750f1fb7d88911300a7613116030129545202021-10-05 8:23:3819 days 17 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0xaea1745d5e00712d40b484d2c120049fea53750f1fb7d88911300a7613116030129545202021-10-05 8:23:3819 days 17 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0xaea1745d5e00712d40b484d2c120049fea53750f1fb7d88911300a7613116030129545202021-10-05 8:23:3819 days 17 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0xaea1745d5e00712d40b484d2c120049fea53750f1fb7d88911300a7613116030129545202021-10-05 8:23:3819 days 17 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0xaea1745d5e00712d40b484d2c120049fea53750f1fb7d88911300a7613116030129545202021-10-05 8:23:3819 days 17 hrs ago 0xfc1ccd12a3afbf3e6e5ba134fa446935d20bc2f6 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB
0xffb0f9c7908f5d9e3d59b9b2446bdbc67089bf7eb4d6bf9f8e345f32af2b329a129540532021-10-05 8:00:1719 days 17 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0xffb0f9c7908f5d9e3d59b9b2446bdbc67089bf7eb4d6bf9f8e345f32af2b329a129540532021-10-05 8:00:1719 days 17 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0xffb0f9c7908f5d9e3d59b9b2446bdbc67089bf7eb4d6bf9f8e345f32af2b329a129540532021-10-05 8:00:1719 days 17 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0xffb0f9c7908f5d9e3d59b9b2446bdbc67089bf7eb4d6bf9f8e345f32af2b329a129540532021-10-05 8:00:1719 days 17 hrs ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0xafa085e862e282aeb380fd9843d399b583032ded05fbe6b4f02576d6b54245a8129462322021-10-05 1:26:1020 days 33 mins ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0xafa085e862e282aeb380fd9843d399b583032ded05fbe6b4f02576d6b54245a8129462322021-10-05 1:26:1020 days 33 mins ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0xafa085e862e282aeb380fd9843d399b583032ded05fbe6b4f02576d6b54245a8129462322021-10-05 1:26:1020 days 33 mins ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
0xafa085e862e282aeb380fd9843d399b583032ded05fbe6b4f02576d6b54245a8129462322021-10-05 1:26:1020 days 33 mins ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x0663ce84485b8f1383dfe01b214f31eef76a23ce0 BNB
0xafa085e862e282aeb380fd9843d399b583032ded05fbe6b4f02576d6b54245a8129462322021-10-05 1:26:1020 days 33 mins ago 0xa41aa441d4036ef40846e4b331fd1c3fd4200937 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b090 BNB
0x84a2771a9172cf925a187fc7edfc729f26f37878695da56f2f970a10d2c49a56129462162021-10-05 1:25:0620 days 34 mins ago 0xb9b492b5d470ae0eb2bb07a87062ec97615d8b09 0x4d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MintClubBond

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 1500 runs

Other Settings:
default evmVersion
File 1 of 8 : MintClubBond.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./MintClubFactory.sol";
import "./MintClubToken.sol";
import "./lib/Math.sol";

/**
* @title MintClub Bond
*
* Providing liquidity for MintClub tokens with a bonding curve.
*/
contract MintClubBond is MintClubFactory {
    uint256 private constant BUY_TAX = 3; // 0.3%
    uint256 private constant SELL_TAX = 13; // 1.3%
    uint256 private constant MAX_TAX = 1000;

    // Token => Reserve Balance
    mapping (address => uint256) public reserveBalance;

    MintClubToken private RESERVE_TOKEN; // Any IERC20
    address public defaultBeneficiary;

    event Buy(address tokenAddress, address buyer, uint256 amountMinted, uint256 reserveAmount, address beneficiary, uint256 taxAmount);
    event Sell(address tokenAddress, address seller, uint256 amountBurned, uint256 refundAmount, address beneficiary, uint256 taxAmount);

    constructor(address baseToken, address implementation) MintClubFactory(implementation) {
        RESERVE_TOKEN = MintClubToken(baseToken);
        defaultBeneficiary = address(0x82CA6d313BffE56E9096b16633dfD414148D66b1);
    }

    modifier _checkBondExists(address tokenAddress) {
        require(maxSupply[tokenAddress] > 0, "TOKEN_NOT_FOUND");
        _;
    }

    // MARK: - Utility functions for external calls

    function reserveTokenAddress() external view returns (address) {
        return address(RESERVE_TOKEN);
    }

    function setDefaultBeneficiary(address beneficiary) external onlyOwner {
        require(beneficiary != address(0), 'DEFAULT_BENEFICIARY_CANNOT_BE_NULL');
        defaultBeneficiary = beneficiary;
    }

    function currentPrice(address tokenAddress) external view _checkBondExists(tokenAddress) returns (uint256) {
        return MintClubToken(tokenAddress).totalSupply();
    }

    function createAndBuy(string memory name, string memory symbol, uint256 maxTokenSupply, uint256 reserveAmount, address beneficiary) external {
        address newToken = createToken(name, symbol, maxTokenSupply);
        buy(newToken, reserveAmount, 0, beneficiary);
    }

    /**
     * @dev Use the simplest bonding curve (y = x) as we can adjust total supply of reserve tokens to adjust slope
     * Price = SLOPE * totalSupply = totalSupply (where slope = 1)
     */
    function getMintReward(address tokenAddress, uint256 reserveAmount) public view _checkBondExists(tokenAddress) returns (uint256, uint256) {
        uint256 taxAmount = reserveAmount * BUY_TAX / MAX_TAX;
        uint256 newSupply = Math.floorSqrt(2 * 1e18 * ((reserveAmount - taxAmount) + reserveBalance[tokenAddress]));
        uint256 toMint = newSupply - MintClubToken(tokenAddress).totalSupply();

        require(newSupply <= maxSupply[tokenAddress], "EXCEEDED_MAX_SUPPLY");

        return (toMint, taxAmount);
    }

    function getBurnRefund(address tokenAddress, uint256 tokenAmount) public view _checkBondExists(tokenAddress) returns (uint256, uint256) {
        uint256 newTokenSupply = MintClubToken(tokenAddress).totalSupply() - tokenAmount;

        // Should be the same as: (1/2 * (totalSupply**2 - newTokenSupply**2);
        uint256 reserveAmount = reserveBalance[tokenAddress] - (newTokenSupply**2 / (2 * 1e18));
        uint256 taxAmount = reserveAmount * SELL_TAX / MAX_TAX;

        return (reserveAmount - taxAmount, taxAmount);
    }

    function buy(address tokenAddress, uint256 reserveAmount, uint256 minReward, address beneficiary) public {
        (uint256 rewardTokens, uint256 taxAmount) = getMintReward(tokenAddress, reserveAmount);
        require(rewardTokens >= minReward, "SLIPPAGE_LIMIT_EXCEEDED");

        // Transfer reserve tokens
        require(RESERVE_TOKEN.transferFrom(_msgSender(), address(this), reserveAmount - taxAmount), "RESERVE_TOKEN_TRANSFER_FAILED");
        reserveBalance[tokenAddress] += (reserveAmount - taxAmount);

        // Mint reward tokens to the buyer
        MintClubToken(tokenAddress).mint(_msgSender(), rewardTokens);

        // Pay tax to the beneficiary / Send to the default beneficiary if not set (or abused)
        address actualBeneficiary = beneficiary;
        if (beneficiary == address(0) || beneficiary == _msgSender()) {
            actualBeneficiary = defaultBeneficiary;
        }
        RESERVE_TOKEN.transferFrom(_msgSender(), actualBeneficiary, taxAmount);

        emit Buy(tokenAddress, _msgSender(), rewardTokens, reserveAmount, actualBeneficiary, taxAmount);
    }

    function sell(address tokenAddress, uint256 tokenAmount, uint256 minRefund, address beneficiary) public {
        (uint256 refundAmount, uint256 taxAmount) = getBurnRefund(tokenAddress, tokenAmount);
        require(refundAmount >= minRefund, "SLIPPAGE_LIMIT_EXCEEDED");

        // Burn token first
        MintClubToken(tokenAddress).burnFrom(_msgSender(), tokenAmount);

        // Refund reserve tokens to the seller
        reserveBalance[tokenAddress] -= (refundAmount + taxAmount);
        require(RESERVE_TOKEN.transfer(_msgSender(), refundAmount), "RESERVE_TOKEN_TRANSFER_FAILED");

        // Pay tax to the beneficiary / Send to the default beneficiary if not set (or abused)
        address actualBeneficiary = beneficiary;
        if (beneficiary == address(0) || beneficiary == _msgSender()) {
            actualBeneficiary = defaultBeneficiary;
        }
        RESERVE_TOKEN.transfer(actualBeneficiary, taxAmount);

        emit Sell(tokenAddress, _msgSender(), tokenAmount, refundAmount, actualBeneficiary, taxAmount);
    }
}

File 2 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 3 of 8 : MintClubFactory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./MintClubToken.sol";

/**
* @title MintClub Token Factory
*
* Create an ERC20 token using proxy pattern to save gas
*/
abstract contract MintClubFactory is Ownable {
    /**
     *  ERC20 Token implementation contract
     *  We use "EIP-1167: Minimal Proxy Contract" in order to save gas cost for each token deployment
     *  REF: https://github.com/optionality/clone-factory
     */
    address public tokenImplementation;

    // Array of all created tokens
    address[] public tokens;

    // Token => Max Supply
    mapping (address => uint256) public maxSupply;
    uint256 private constant MAX_SUPPLY_LIMIT = 1000000 * 1e18; // Where it requires 100M HUNT tokens as collateral

    event TokenCreated(address tokenAddress, string name, string symbol, uint256 maxTokenSupply);
    event ImplementationUpdated(address tokenImplementation);

    constructor(address implementation) {
        updateTokenImplementation(implementation);
    }

    // NOTE: This won't change the implementation of tokens that already created
    function updateTokenImplementation(address implementation) public onlyOwner {
        require(implementation != address(0), 'IMPLEMENTATION_CANNOT_BE_NULL');

        tokenImplementation = implementation;
        emit ImplementationUpdated(tokenImplementation);
    }

    // REF: https://github.com/optionality/clone-factory
    function _createClone(address target) private returns (address result) {
        bytes20 targetBytes = bytes20(target);
        assembly {
            let clone := mload(0x40)
            mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(clone, 0x14), targetBytes)
            mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            result := create(0, clone, 0x37)
        }
    }

    function createToken(string memory name, string memory symbol, uint256 maxTokenSupply) public returns (address) {
        require(maxTokenSupply > 0, 'MAX_SUPPLY_MUST_BE_POSITIVE');
        require(maxTokenSupply <= MAX_SUPPLY_LIMIT, 'MAX_SUPPLY_LIMIT_EXCEEDED');

        address tokenAddress = _createClone(tokenImplementation);
        MintClubToken newToken = MintClubToken(tokenAddress);
        newToken.init(name, symbol);

        tokens.push(tokenAddress);
        maxSupply[tokenAddress] = maxTokenSupply;

        emit TokenCreated(tokenAddress, name, symbol, maxTokenSupply);

        return tokenAddress;
    }

    function tokenCount() external view returns (uint256) {
        return tokens.length;
    }

    function exists(address tokenAddress) external view returns (bool) {
        return maxSupply[tokenAddress] > 0;
    }
}

File 4 of 8 : MintClubToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "./lib/ERC20Initializable.sol";

contract MintClubToken is ERC20Initializable {
    bool private _initialized; // false by default
    address private _owner; // Ownable is implemented manually to meke it compatible with `initializable`

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    function init(string memory name_, string memory symbol_) external {
        require(_initialized == false, "CONTRACT_ALREADY_INITIALIZED");

        _name = name_;
        _symbol = symbol_;
        _owner = _msgSender();

        _initialized = true;

        emit OwnershipTransferred(address(0), _owner);
    }

    function owner() public view returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    function mint(address to, uint256 amount) public onlyOwner {
        _mint(to, amount);
    }

    // NOTE:
    // Disable direct burn function call because it can affect on bonding curve
    // Users can just send the tokens to the token contract address
    // for the same burning effect without changing the totalSupply
    function burnFrom(address account, uint256 amount) public onlyOwner {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        _approve(account, _msgSender(), currentAllowance - amount);
        _burn(account, amount);
    }
}

File 5 of 8 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

library Math {
    /**
     * @dev returns the largest integer smaller than or equal to the square root of a positive integer
     *
     * @param _num a positive integer
     *
     * @return the largest integer smaller than or equal to the square root of the positive integer
     */
    function floorSqrt(uint256 _num) internal pure returns (uint256) {
        uint256 x = _num / 2 + 1;
        uint256 y = (x + _num / x) / 2;
        while (x > y) {
            x = y;
            y = (x + _num / x) / 2;
        }
        return x;
    }
}

File 6 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 8 : ERC20Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @notice A slightly modified version of ERC20.sol (from Openzeppelin 4.1.0) for initialization pattern
 */

abstract contract ERC20Initializable is Context, IERC20 {
    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string internal _name;
    string internal _symbol;

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1500
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"baseToken","type":"address"},{"internalType":"address","name":"implementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountMinted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reserveAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"taxAmount","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenImplementation","type":"address"}],"name":"ImplementationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountBurned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"refundAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"taxAmount","type":"uint256"}],"name":"Sell","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"uint256","name":"maxTokenSupply","type":"uint256"}],"name":"TokenCreated","type":"event"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"reserveAmount","type":"uint256"},{"internalType":"uint256","name":"minReward","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxTokenSupply","type":"uint256"},{"internalType":"uint256","name":"reserveAmount","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"createAndBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxTokenSupply","type":"uint256"}],"name":"createToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultBeneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"getBurnRefund","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"reserveAmount","type":"uint256"}],"name":"getMintReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reserveBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"minRefund","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"sell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"setDefaultBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"updateTokenImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162001bce38038062001bce833981016040819052620000349162000209565b80620000403362000090565b6200004b81620000e0565b5050600580546001600160a01b039092166001600160a01b0319928316179055600680549091167382ca6d313bffe56e9096b16633dfd414148d66b117905562000241565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620001985760405162461bcd60e51b815260206004820152601d60248201527f494d504c454d454e544154494f4e5f43414e4e4f545f42455f4e554c4c000000604482015260640162000137565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f310ba5f1d2ed074b51e2eccd052a47ae9ab7c6b800d1fca3db3999d6a592ca039060200160405180910390a150565b80516001600160a01b03811681146200020457600080fd5b919050565b600080604083850312156200021d57600080fd5b6200022883620001ec565b91506200023860208401620001ec565b90509250929050565b61197d80620002516000396000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c80639f181b5e116100cd578063e9833c2f11610081578063ee1ea4ff11610066578063ee1ea4ff146102f8578063f2fde38b14610309578063f6a3d24e1461031c57600080fd5b8063e9833c2f146102d2578063eb0cf64d146102e557600080fd5b8063d20dd349116100b2578063d20dd3491461028c578063daa434991461029f578063dc8de379146102b257600080fd5b80639f181b5e14610271578063c60b8d581461027957600080fd5b806354ab58af11610124578063715018a611610109578063715018a61461022a5780638da5cb5b146102325780639cc7becf1461024357600080fd5b806354ab58af146102045780635b0605301461021757600080fd5b806337430a511161015557806337430a51146101b65780633f60b633146101de5780634f64b2be146101f157600080fd5b80632dc8f867146101715780632f3a3d5d14610186575b600080fd5b61018461017f366004611573565b610357565b005b600154610199906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101c96101c4366004611549565b610680565b604080519283526020830191909152016101ad565b6101846101ec366004611573565b6107e3565b6101996101ff3660046116d0565b610b06565b600654610199906001600160a01b031681565b6101996102253660046115db565b610b30565b610184610d1f565b6000546001600160a01b0316610199565b61026361025136600461152e565b60036020526000908152604090205481565b6040519081526020016101ad565b600254610263565b610184610287366004611648565b610d85565b61018461029a36600461152e565b610da9565b6101846102ad36600461152e565b610eba565b6102636102c036600461152e565b60046020526000908152604090205481565b6102636102e036600461152e565b610fbf565b6101c96102f3366004611549565b61109e565b6005546001600160a01b0316610199565b61018461031736600461152e565b611264565b61034761032a36600461152e565b6001600160a01b0316600090815260036020526040902054151590565b60405190151581526020016101ad565b6000806103648686610680565b91509150838210156103bd5760405162461bcd60e51b815260206004820152601760248201527f534c4950504147455f4c494d49545f455843454544454400000000000000000060448201526064015b60405180910390fd5b6001600160a01b0386166379cc6790336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101889052604401600060405180830381600087803b15801561041557600080fd5b505af1158015610429573d6000803e3d6000fd5b50505050808261043991906117c3565b6001600160a01b03871660009081526004602052604081208054909190610461908490611904565b90915550506005546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401602060405180830381600087803b1580156104c057600080fd5b505af11580156104d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f891906115b9565b6105445760405162461bcd60e51b815260206004820152601d60248201527f524553455256455f544f4b454e5f5452414e534645525f4641494c454400000060448201526064016103b4565b826001600160a01b038116158061056357506001600160a01b03841633145b1561057657506006546001600160a01b03165b6005546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b1580156105dd57600080fd5b505af11580156105f1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061591906115b9565b50604080516001600160a01b03808a16825233602083015291810188905260608101859052908216608082015260a081018390527faf3add10310b906b5d302a1b317dec15cedffe6254bd570e2f71f0dba50004089060c0015b60405180910390a150505050505050565b6001600160a01b038216600090815260036020526040812054819084906106e95760405162461bcd60e51b815260206004820152600f60248201527f544f4b454e5f4e4f545f464f554e44000000000000000000000000000000000060448201526064016103b4565b600084866001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561072557600080fd5b505afa158015610739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075d91906116e9565b6107679190611904565b90506000671bc16d674ec8000061077f600284611838565b61078991906117db565b6001600160a01b0388166000908152600460205260409020546107ac9190611904565b905060006103e86107be600d846118e5565b6107c891906117db565b90506107d48183611904565b9550935050505b509250929050565b6000806107f0868661109e565b91509150838210156108445760405162461bcd60e51b815260206004820152601760248201527f534c4950504147455f4c494d49545f455843454544454400000000000000000060448201526064016103b4565b6005546001600160a01b03166323b872dd3330610861858a611904565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b1580156108b057600080fd5b505af11580156108c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e891906115b9565b6109345760405162461bcd60e51b815260206004820152601d60248201527f524553455256455f544f4b454e5f5452414e534645525f4641494c454400000060448201526064016103b4565b61093e8186611904565b6001600160a01b038716600090815260046020526040812080549091906109669084906117c3565b90915550506001600160a01b0386166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401600060405180830381600087803b1580156109c357600080fd5b505af11580156109d7573d6000803e3d6000fd5b5085925050506001600160a01b03811615806109fb57506001600160a01b03841633145b15610a0e57506006546001600160a01b03165b6005546001600160a01b03166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b039182166004820152908416602482015260448101859052606401602060405180830381600087803b158015610a7057600080fd5b505af1158015610a84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa891906115b9565b50604080516001600160a01b03808a16825233602083015291810185905260608101889052908216608082015260a081018390527f7a758c3f267ecc5b9a5f17490ce833537dd367b341461622558f19f2ee043ea59060c00161066f565b60028181548110610b1657600080fd5b6000918252602090912001546001600160a01b0316905081565b6000808211610b815760405162461bcd60e51b815260206004820152601b60248201527f4d41585f535550504c595f4d5553545f42455f504f534954495645000000000060448201526064016103b4565b69d3c21bcecceda1000000821115610bdb5760405162461bcd60e51b815260206004820152601960248201527f4d41585f535550504c595f4c494d49545f45584345454445440000000000000060448201526064016103b4565b600154600090610bf3906001600160a01b0316611346565b6040517f7029144c00000000000000000000000000000000000000000000000000000000815290915081906001600160a01b03821690637029144c90610c3f9089908990600401611795565b600060405180830381600087803b158015610c5957600080fd5b505af1158015610c6d573d6000803e3d6000fd5b505060028054600181019091557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915560009081526003602052604090819020879055517f75d1eb2d61d7e210835bc16e78ac4d0e4f905c108a81852a6b68c4d46b4f40f39250610d0e9150849089908990899061174f565b60405180910390a150949350505050565b6000546001600160a01b03163314610d795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b4565b610d8360006113af565b565b6000610d92868686610b30565b9050610da181846000856107e3565b505050505050565b6000546001600160a01b03163314610e035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b4565b6001600160a01b038116610e595760405162461bcd60e51b815260206004820152601d60248201527f494d504c454d454e544154494f4e5f43414e4e4f545f42455f4e554c4c00000060448201526064016103b4565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f310ba5f1d2ed074b51e2eccd052a47ae9ab7c6b800d1fca3db3999d6a592ca039060200160405180910390a150565b6000546001600160a01b03163314610f145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b4565b6001600160a01b038116610f905760405162461bcd60e51b815260206004820152602260248201527f44454641554c545f42454e45464943494152595f43414e4e4f545f42455f4e5560448201527f4c4c00000000000000000000000000000000000000000000000000000000000060648201526084016103b4565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b03811660009081526003602052604081205482906110265760405162461bcd60e51b815260206004820152600f60248201527f544f4b454e5f4e4f545f464f554e44000000000000000000000000000000000060448201526064016103b4565b826001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561105f57600080fd5b505afa158015611073573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109791906116e9565b9392505050565b6001600160a01b038216600090815260036020526040812054819084906111075760405162461bcd60e51b815260206004820152600f60248201527f544f4b454e5f4e4f545f464f554e44000000000000000000000000000000000060448201526064016103b4565b60006103e86111176003876118e5565b61112191906117db565b6001600160a01b0387166000908152600460205260408120549192509061116d9061114c8489611904565b61115691906117c3565b61116890671bc16d674ec800006118e5565b61140c565b90506000876001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111aa57600080fd5b505afa1580156111be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e291906116e9565b6111ec9083611904565b6001600160a01b0389166000908152600360205260409020549091508211156112575760405162461bcd60e51b815260206004820152601360248201527f45584345454445445f4d41585f535550504c590000000000000000000000000060448201526064016103b4565b9791965090945050505050565b6000546001600160a01b031633146112be5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103b4565b6001600160a01b03811661133a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103b4565b611343816113af565b50565b6000808260601b90506040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528160148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f0949350505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008061141a6002846117db565b6114259060016117c3565b90506000600261143583866117db565b61143f90846117c3565b61144991906117db565b90505b8082111561147e57905080600261146382866117db565b61146d90846117c3565b61147791906117db565b905061144c565b5092915050565b80356001600160a01b038116811461149c57600080fd5b919050565b600082601f8301126114b257600080fd5b813567ffffffffffffffff808211156114cd576114cd611931565b604051601f8301601f19908116603f011681019082821181831017156114f5576114f5611931565b8160405283815286602085880101111561150e57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561154057600080fd5b61109782611485565b6000806040838503121561155c57600080fd5b61156583611485565b946020939093013593505050565b6000806000806080858703121561158957600080fd5b61159285611485565b935060208501359250604085013591506115ae60608601611485565b905092959194509250565b6000602082840312156115cb57600080fd5b8151801515811461109757600080fd5b6000806000606084860312156115f057600080fd5b833567ffffffffffffffff8082111561160857600080fd5b611614878388016114a1565b9450602086013591508082111561162a57600080fd5b50611637868287016114a1565b925050604084013590509250925092565b600080600080600060a0868803121561166057600080fd5b853567ffffffffffffffff8082111561167857600080fd5b61168489838a016114a1565b9650602088013591508082111561169a57600080fd5b506116a7888289016114a1565b94505060408601359250606086013591506116c460808701611485565b90509295509295909350565b6000602082840312156116e257600080fd5b5035919050565b6000602082840312156116fb57600080fd5b5051919050565b6000815180845260005b818110156117285760208185018101518683018201520161170c565b8181111561173a576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03851681526080602082015260006117716080830186611702565b82810360408401526117838186611702565b91505082606083015295945050505050565b6040815260006117a86040830185611702565b82810360208401526117ba8185611702565b95945050505050565b600082198211156117d6576117d661191b565b500190565b6000826117f857634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156107db57816000190482111561181e5761181e61191b565b8085161561182b57918102915b93841c9390800290611802565b600061109760ff841683600082611851575060016118df565b8161185e575060006118df565b8160018114611874576002811461187e5761189a565b60019150506118df565b60ff84111561188f5761188f61191b565b50506001821b6118df565b5060208310610133831016604e8410600b84101617156118bd575081810a6118df565b6118c783836117fd565b80600019048211156118db576118db61191b565b0290505b92915050565b60008160001904831182151516156118ff576118ff61191b565b500290565b6000828210156119165761191661191b565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220e52a5f22818b0f2f512ec98b74f10fa2e088e70919019ecad2d0d03cef1bbf4764736f6c634300080600330000000000000000000000004d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130000000000000000000000002742f8b233c01dda8b7a92e81e29f1f7c92ed9cf

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000004d24bf63e5d6e03708e2dfd5cc8253b3f22fe9130000000000000000000000002742f8b233c01dda8b7a92e81e29f1f7c92ed9cf
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004d24bf63e5d6e03708e2dfd5cc8253b3f22fe913
Arg [1] : 0000000000000000000000002742f8b233c01dda8b7a92e81e29f1f7c92ed9cf


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading