Contract 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc62db03a0d17cafadcea1e71033f3f3452f7adc8e33d6cc0ec24e72cd7346a8eDeploy95602702021-07-28 23:52:26125 days 22 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.016186572
0x62c36de2a35765909aca4f25cbd4dcdae5e683e080d5823bc9153f338bb26ee9Deploy95599592021-07-28 23:36:49125 days 22 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01889818
0xe26008c623866b0218371d9fbcbf10536de5bb3c44ef2467edd876370ff43bb7Deploy88933622021-07-05 14:54:21149 days 7 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01348869
0x49c3f155c92bdfcbce7175b86fd4fb29d6df5008858c26e2738885eeb4ddd3aaDeploy88929472021-07-05 14:33:31149 days 7 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01348869
0x4c42fc1828e756a383a9c610eb75e4025db1e9d915718caab3a3eaca56defd59Deploy87329042021-06-29 23:57:45154 days 22 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01348863
0xe936dfb14fae9f9177f0011f53bb8340af73d94d302df3b9fff3a921edf153e2Deploy87327192021-06-29 23:48:30154 days 22 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01348875
0x2d362e2700fbc78b14ec4b9d6ad4495e23c214b9bba81af8b7f5fb9c2a793dd9Deploy87326712021-06-29 23:46:05154 days 22 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01348857
0x7decebef2ed093c747adfae6b63fdbb7f9972f2b28a61d2d259c6248d4894542Deploy87326102021-06-29 23:42:57154 days 22 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01348851
0xac49b2c5c576e3adf90f5f0488c8b65a2a51cb15c44e74fe9cf2d15457c882a4Deploy87320092021-06-29 23:12:32154 days 23 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01358499
0xbd3fee4ff0fd0e475d9a1fd88df5ef26924d9959341140a997b5c8909a386aa8Deploy87310792021-06-29 22:25:42154 days 23 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.0005
0x1cdf8d1d18363e2b1b29d6d385a53efa5b4c55ecdef2922918cf34527b869bbfDeploy77193132021-05-25 14:57:44190 days 7 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.018789526
0x6fd0d36ed8e71d5038bb60883ae428752cb74544fe754244368df61187ce49ebDeploy77003112021-05-24 23:02:46190 days 23 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01342055
0x72e6f0c73a378a07aa3b0c47587808c35d4bf176f6f5e07a234c6a6d01edc1faDeploy77002282021-05-24 22:58:37190 days 23 hrs ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01342073
0xf43d15fb6343982fa034bd08e9914accb81e2c34c7bfdade537f8d54ffe181f7Deploy76988702021-05-24 21:50:39191 days 34 mins ago0x30464064081de25bcfd350be95f3bcc61e9c174f IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01342055
0xf4ca50b8d3451278c96d917066588e29175745eebc9d7c8530cc27f24a94b580Deploy74978432021-05-17 20:58:11198 days 1 hr ago0x2f80e5163a7a774038753593010173322ea6f9fe IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01350161
0xc8f27c9629091a8f3dc6c66276d2b59c2e5036e0b560255bda1bf9303928e966Deploy73620172021-05-13 1:53:44202 days 20 hrs ago0x0af91fa049a7e1894f480bfe5bba20142c6c29a9 IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.040209765
0x7d78da05a648f21bdcbc7182fff3959c33cb2a1c994a9de04bebf90ab2ca8cf5Deploy73555352021-05-12 20:25:25203 days 2 hrs ago0x2f80e5163a7a774038753593010173322ea6f9fe IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.013324855
0x06d5f7276fe5450351d4347e4dce4e81f80260c3020157ff0309b5f4163e8d83Deploy72815652021-05-09 23:02:34205 days 23 hrs ago0x0af91fa049a7e1894f480bfe5bba20142c6c29a9 IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.01347813
0x4cd8ded732ad4896efbe31c86b0c031324cd1ce3599a4231c764f4d8f0b795ddTransfer Ownersh...72761972021-05-09 18:26:13206 days 3 hrs ago0x0af91fa049a7e1894f480bfe5bba20142c6c29a9 IN  0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb0 BNB0.000154195
0xbbc8c90c3605c68838238ab0d1a92d330a2e48da52ab3fac6d987f365573bdaa0x6080604072761862021-05-09 18:25:40206 days 3 hrs ago0x0af91fa049a7e1894f480bfe5bba20142c6c29a9 IN  Contract Creation0 BNB0.00477888
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc62db03a0d17cafadcea1e71033f3f3452f7adc8e33d6cc0ec24e72cd7346a8e95602702021-07-28 23:52:26125 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0xc62db03a0d17cafadcea1e71033f3f3452f7adc8e33d6cc0ec24e72cd7346a8e95602702021-07-28 23:52:26125 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x62c36de2a35765909aca4f25cbd4dcdae5e683e080d5823bc9153f338bb26ee995599592021-07-28 23:36:49125 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x62c36de2a35765909aca4f25cbd4dcdae5e683e080d5823bc9153f338bb26ee995599592021-07-28 23:36:49125 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0xe26008c623866b0218371d9fbcbf10536de5bb3c44ef2467edd876370ff43bb788933622021-07-05 14:54:21149 days 7 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0xe26008c623866b0218371d9fbcbf10536de5bb3c44ef2467edd876370ff43bb788933622021-07-05 14:54:21149 days 7 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x49c3f155c92bdfcbce7175b86fd4fb29d6df5008858c26e2738885eeb4ddd3aa88929472021-07-05 14:33:31149 days 7 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x49c3f155c92bdfcbce7175b86fd4fb29d6df5008858c26e2738885eeb4ddd3aa88929472021-07-05 14:33:31149 days 7 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x4c42fc1828e756a383a9c610eb75e4025db1e9d915718caab3a3eaca56defd5987329042021-06-29 23:57:45154 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x4c42fc1828e756a383a9c610eb75e4025db1e9d915718caab3a3eaca56defd5987329042021-06-29 23:57:45154 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0xe936dfb14fae9f9177f0011f53bb8340af73d94d302df3b9fff3a921edf153e287327192021-06-29 23:48:30154 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0xe936dfb14fae9f9177f0011f53bb8340af73d94d302df3b9fff3a921edf153e287327192021-06-29 23:48:30154 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x2d362e2700fbc78b14ec4b9d6ad4495e23c214b9bba81af8b7f5fb9c2a793dd987326712021-06-29 23:46:05154 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x2d362e2700fbc78b14ec4b9d6ad4495e23c214b9bba81af8b7f5fb9c2a793dd987326712021-06-29 23:46:05154 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x7decebef2ed093c747adfae6b63fdbb7f9972f2b28a61d2d259c6248d489454287326102021-06-29 23:42:57154 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x7decebef2ed093c747adfae6b63fdbb7f9972f2b28a61d2d259c6248d489454287326102021-06-29 23:42:57154 days 22 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0xac49b2c5c576e3adf90f5f0488c8b65a2a51cb15c44e74fe9cf2d15457c882a487320092021-06-29 23:12:32154 days 23 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0xac49b2c5c576e3adf90f5f0488c8b65a2a51cb15c44e74fe9cf2d15457c882a487320092021-06-29 23:12:32154 days 23 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0xbd3fee4ff0fd0e475d9a1fd88df5ef26924d9959341140a997b5c8909a386aa887310792021-06-29 22:25:42154 days 23 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x1cdf8d1d18363e2b1b29d6d385a53efa5b4c55ecdef2922918cf34527b869bbf77193132021-05-25 14:57:44190 days 7 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x1cdf8d1d18363e2b1b29d6d385a53efa5b4c55ecdef2922918cf34527b869bbf77193132021-05-25 14:57:44190 days 7 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x6fd0d36ed8e71d5038bb60883ae428752cb74544fe754244368df61187ce49eb77003112021-05-24 23:02:46190 days 23 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x6fd0d36ed8e71d5038bb60883ae428752cb74544fe754244368df61187ce49eb77003112021-05-24 23:02:46190 days 23 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x72e6f0c73a378a07aa3b0c47587808c35d4bf176f6f5e07a234c6a6d01edc1fa77002282021-05-24 22:58:37190 days 23 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
0x72e6f0c73a378a07aa3b0c47587808c35d4bf176f6f5e07a234c6a6d01edc1fa77002282021-05-24 22:58:37190 days 23 hrs ago 0x2826dd9d427d441471fe98204b4cf1a6d02ec5fb  Contract Creation0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MetaSwapDeployer

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 2 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 3 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @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 {_setupDecimals} is
     * called.
     *
     * 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 _decimals;
    }

    /**
     * @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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        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);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @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 { }
}

File 4 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 5 of 10 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 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;
    }
}

File 6 of 10 : IMetaSwap.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./ISwap.sol";

interface IMetaSwap {
    // pool data view functions
    function getA() external view returns (uint256);

    function getToken(uint8 index) external view returns (IERC20);

    function getTokenIndex(address tokenAddress) external view returns (uint8);

    function getTokenBalance(uint8 index) external view returns (uint256);

    function getVirtualPrice() external view returns (uint256);

    function isGuarded() external view returns (bool);

    function swapStorage()
        external
        view
        returns (
            uint256 initialA,
            uint256 futureA,
            uint256 initialATime,
            uint256 futureATime,
            uint256 swapFee,
            uint256 adminFee,
            uint256 defaultDepositFee,
            uint256 defaultWithdrawFee,
            address lpToken,
            address devaddr
        );

    // min return calculation functions
    function calculateSwap(
        uint8 tokenIndexFrom,
        uint8 tokenIndexTo,
        uint256 dx
    ) external view returns (uint256);

    function calculateSwapUnderlying(
        uint8 tokenIndexFrom,
        uint8 tokenIndexTo,
        uint256 dx
    ) external view returns (uint256);

    function calculateTokenAmount(
        address account,
        uint256[] calldata amounts,
        bool deposit
    ) external view returns (uint256);

    function calculateRemoveLiquidity(address account, uint256 amount)
        external
        view
        returns (uint256[] memory);

    function calculateRemoveLiquidityOneToken(
        address account,
        uint256 tokenAmount,
        uint8 tokenIndex
    ) external view returns (uint256 availableTokenAmount);

    // state modifying functions
    function initializeMetaSwap(
        IERC20[] memory pooledTokens,
        uint8[] memory decimals,
        string memory lpTokenName,
        string memory lpTokenSymbol,
        uint256 a,
        uint256 fee,
        uint256 adminFee,
        uint256 depositFee,
        uint256 withdrawFee,
        address devaddr,
        ISwap baseSwap
    ) external;

    function swap(
        uint8 tokenIndexFrom,
        uint8 tokenIndexTo,
        uint256 dx,
        uint256 minDy,
        uint256 deadline
    ) external returns (uint256);

    function swapUnderlying(
        uint8 tokenIndexFrom,
        uint8 tokenIndexTo,
        uint256 dx,
        uint256 minDy,
        uint256 deadline
    ) external returns (uint256);

    function addLiquidity(
        uint256[] calldata amounts,
        uint256 minToMint,
        uint256 deadline
    ) external returns (uint256);

    function removeLiquidity(
        uint256 amount,
        uint256[] calldata minAmounts,
        uint256 deadline
    ) external returns (uint256[] memory);

    function removeLiquidityOneToken(
        uint256 tokenAmount,
        uint8 tokenIndex,
        uint256 minAmount,
        uint256 deadline
    ) external returns (uint256);

    function removeLiquidityImbalance(
        uint256[] calldata amounts,
        uint256 maxBurnAmount,
        uint256 deadline
    ) external returns (uint256);

    // withdraw fee update function
    function updateUserWithdrawFee(address recipient, uint256 transferAmount)
        external;
}

File 7 of 10 : IMetaSwapDeposit.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./ISwap.sol";
import "./IMetaSwap.sol";

interface IMetaSwapDeposit {
    function initialize(
        ISwap baseSwap_,
        IMetaSwap metaSwap_,
        IERC20 metaLPToken_
    ) external;
}

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

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

interface ISwap {
    // pool data view functions
    function getA() external view returns (uint256);

    function getToken(uint8 index) external view returns (IERC20);

    function getTokenIndex(address tokenAddress) external view returns (uint8);

    function getTokenBalance(uint8 index) external view returns (uint256);

    function getVirtualPrice() external view returns (uint256);

    // min return calculation functions
    function calculateSwap(
        uint8 tokenIndexFrom,
        uint8 tokenIndexTo,
        uint256 dx
    ) external view returns (uint256);

    function calculateTokenAmount(
        address account,
        uint256[] calldata amounts,
        bool deposit
    ) external view returns (uint256);

    function calculateRemoveLiquidity(address account, uint256 amount)
        external
        view
        returns (uint256[] memory);

    function calculateRemoveLiquidityOneToken(
        address account,
        uint256 tokenAmount,
        uint8 tokenIndex
    ) external view returns (uint256 availableTokenAmount);

    // state modifying functions
    function initialize(
        IERC20[] memory pooledTokens,
        uint8[] memory decimals,
        string memory lpTokenName,
        string memory lpTokenSymbol,
        uint256 a,
        uint256 fee,
        uint256 adminFee,
        uint256 depositFee,
        uint256 withdrawFee,
        address devaddr
    ) external;

    function swap(
        uint8 tokenIndexFrom,
        uint8 tokenIndexTo,
        uint256 dx,
        uint256 minDy,
        uint256 deadline
    ) external returns (uint256);

    function addLiquidity(
        uint256[] calldata amounts,
        uint256 minToMint,
        uint256 deadline
    ) external returns (uint256);

    function removeLiquidity(
        uint256 amount,
        uint256[] calldata minAmounts,
        uint256 deadline
    ) external returns (uint256[] memory);

    function removeLiquidityOneToken(
        uint256 tokenAmount,
        uint8 tokenIndex,
        uint256 minAmount,
        uint256 deadline
    ) external returns (uint256);

    function removeLiquidityImbalance(
        uint256[] calldata amounts,
        uint256 maxBurnAmount,
        uint256 deadline
    ) external returns (uint256);

    // withdraw fee update function
    function updateUserWithdrawFee(address recipient, uint256 transferAmount)
        external;
}

File 9 of 10 : MetaSwapDeployer.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "openzeppelin-contracts-3.4/proxy/Clones.sol";
import "../interfaces/ISwap.sol";
import "../interfaces/IMetaSwap.sol";
import "../interfaces/IMetaSwapDeposit.sol";

/**
 * @title MetaSwapDeployer
 * @notice A library to be used to permissionlessly deploy Metapools.
 */

contract MetaSwapDeployer is Ownable {
    event NewMetaSwapPool(
        address indexed deployer,
        address metaSwapAddress,
        address metaSwapDepositAddress
    );

    struct MetaSwapPoolInfo {
        address metaSwapAddress;
        address metaSwapDepositAddress;
    }

    MetaSwapPoolInfo[] public metaSwapPoolInfo;
    address public metaSwapAddress;
    address public metaSwapDepositAddress;

    constructor(address _swapAddress, address _swapDepositAddress)
        public
        Ownable()
    {
        metaSwapAddress = _swapAddress;
        metaSwapDepositAddress = _swapDepositAddress;
    }

    function metaSwapPoolLength() external view returns (uint256) {
        return metaSwapPoolInfo.length;
    }

    function deploy(
        IERC20[] memory _pooledTokens,
        uint8[] memory decimals,
        string memory lpTokenName,
        string memory lpTokenSymbol,
        uint256 _a,
        uint256 _fee,
        uint256 _adminFee,
        uint256 _depositFee,
        uint256 _withdrawFee,
        ISwap baseSwap
    ) external returns (address) {
        address metaSwapClone = Clones.clone(metaSwapAddress);
        address metaSwapDepositClone = Clones.clone(metaSwapDepositAddress);
        IMetaSwap(metaSwapClone).initializeMetaSwap(
            _pooledTokens,
            decimals,
            lpTokenName,
            lpTokenSymbol,
            _a,
            _fee,
            _adminFee,
            _depositFee,
            _withdrawFee,
            owner(),
            baseSwap
        );
        (
            uint256 initialA,
            uint256 futureA,
            uint256 initialATime,
            uint256 futureATime,
            uint256 swapFee,
            uint256 adminFee,
            uint256 defaultDepositFee,
            uint256 defaultWithdrawFee,
            address lpToken,
            address devaddr
        ) = IMetaSwap(metaSwapClone).swapStorage();

        IMetaSwapDeposit(metaSwapDepositClone).initialize(
            baseSwap,
            IMetaSwap(metaSwapClone),
            IERC20(lpToken)
        );
        Ownable(metaSwapClone).transferOwnership(owner());
        metaSwapPoolInfo.push(
            MetaSwapPoolInfo({
                metaSwapAddress: metaSwapClone,
                metaSwapDepositAddress: metaSwapDepositClone
            })
        );
        emit NewMetaSwapPool(msg.sender, metaSwapClone, metaSwapDepositClone);
        return metaSwapClone;
    }
}

File 10 of 10 : Clones.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address master) internal returns (address instance) {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, master))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `master` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address master, bytes32 salt) internal returns (address instance) {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, master))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create2(0, ptr, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address master, bytes32 salt, address deployer) internal pure returns (address predicted) {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, master))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)
            mstore(add(ptr, 0x38), shl(0x60, deployer))
            mstore(add(ptr, 0x4c), salt)
            mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))
            predicted := keccak256(add(ptr, 0x37), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address master, bytes32 salt) internal view returns (address predicted) {
        return predictDeterministicAddress(master, salt, address(this));
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_swapAddress","type":"address"},{"internalType":"address","name":"_swapDepositAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"deployer","type":"address"},{"indexed":false,"internalType":"address","name":"metaSwapAddress","type":"address"},{"indexed":false,"internalType":"address","name":"metaSwapDepositAddress","type":"address"}],"name":"NewMetaSwapPool","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"},{"inputs":[{"internalType":"contract IERC20[]","name":"_pooledTokens","type":"address[]"},{"internalType":"uint8[]","name":"decimals","type":"uint8[]"},{"internalType":"string","name":"lpTokenName","type":"string"},{"internalType":"string","name":"lpTokenSymbol","type":"string"},{"internalType":"uint256","name":"_a","type":"uint256"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_adminFee","type":"uint256"},{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"uint256","name":"_withdrawFee","type":"uint256"},{"internalType":"contract ISwap","name":"baseSwap","type":"address"}],"name":"deploy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metaSwapAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metaSwapDepositAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metaSwapPoolInfo","outputs":[{"internalType":"address","name":"metaSwapAddress","type":"address"},{"internalType":"address","name":"metaSwapDepositAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metaSwapPoolLength","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161103838038061103883398101604081905261002f916100b8565b60006100396100b4565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b039384166001600160a01b03199182161790915560038054929093169116179055610109565b3390565b600080604083850312156100ca578182fd5b82516100d5816100f1565b60208401519092506100e6816100f1565b809150509250929050565b6001600160a01b038116811461010657600080fd5b50565b610f20806101186000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100dd578063f2fde38b146100e5578063fbc2c15b146100f8578063fcf879e91461010057610088565b806304414a071461008d5780630f3e9613146100ab578063525eb29a146100c0578063715018a6146100d3575b600080fd5b610095610121565b6040516100a29190610e75565b60405180910390f35b6100b3610127565b6040516100a29190610c65565b6100b36100ce366004610a19565b610143565b6100db610505565b005b6100b36105f0565b6100db6100f33660046109f6565b61060c565b6100b3610759565b61011361010e366004610b05565b610775565b6040516100a2929190610c86565b60015490565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b600254600090819061016a9073ffffffffffffffffffffffffffffffffffffffff166107b8565b6003549091506000906101929073ffffffffffffffffffffffffffffffffffffffff166107b8565b90508173ffffffffffffffffffffffffffffffffffffffff1663fc79b11d8e8e8e8e8e8e8e8e8e6101c16105f0565b8f6040518c63ffffffff1660e01b81526004016101e89b9a99989796959493929190610cad565b600060405180830381600087803b15801561020257600080fd5b505af1158015610216573d6000803e3d6000fd5b505050506000806000806000806000806000808b73ffffffffffffffffffffffffffffffffffffffff16635fd65f0f6040518163ffffffff1660e01b81526004016101406040518083038186803b15801561027057600080fd5b505afa158015610284573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a89190610b1d565b99509950995099509950995099509950995099508a73ffffffffffffffffffffffffffffffffffffffff1663c0c53b8b8f8e856040518463ffffffff1660e01b81526004016102f993929190610d7c565b600060405180830381600087803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b505050508b73ffffffffffffffffffffffffffffffffffffffff1663f2fde38b61034f6105f0565b6040518263ffffffff1660e01b815260040161036b9190610c65565b600060405180830381600087803b15801561038557600080fd5b505af1158015610399573d6000803e3d6000fd5b50505050600160405180604001604052808e73ffffffffffffffffffffffffffffffffffffffff1681526020018d73ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050503373ffffffffffffffffffffffffffffffffffffffff167f066ddb396d6a2323b8a583f695359cfbca7a8b216b5b7025956e969d29cec5788d8d6040516104e1929190610c86565b60405180910390a250999a50505050505050505050509a9950505050505050505050565b61050d61086a565b73ffffffffffffffffffffffffffffffffffffffff1661052b6105f0565b73ffffffffffffffffffffffffffffffffffffffff1614610581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057890610e40565b60405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61061461086a565b73ffffffffffffffffffffffffffffffffffffffff166106326105f0565b73ffffffffffffffffffffffffffffffffffffffff161461067f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057890610e40565b73ffffffffffffffffffffffffffffffffffffffff81166106cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057890610dac565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b6001818154811061078257fe5b60009182526020909120600290910201805460019091015473ffffffffffffffffffffffffffffffffffffffff91821692501682565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff8116610865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057890610e09565b919050565b3390565b600082601f83011261087e578081fd5b813561089161088c82610ea5565b610e7e565b8181529150602080830190848101818402860182018710156108b257600080fd5b60005b848110156108da5781356108c881610ec5565b845292820192908201906001016108b5565b505050505092915050565b600082601f8301126108f5578081fd5b813561090361088c82610ea5565b81815291506020808301908481018184028601820187101561092457600080fd5b6000805b8581101561095257823560ff81168114610940578283fd5b85529383019391830191600101610928565b50505050505092915050565b803561096981610ec5565b92915050565b600082601f83011261097f578081fd5b813567ffffffffffffffff811115610995578182fd5b6109c660207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601610e7e565b91508082528360208285010111156109dd57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610a07578081fd5b8135610a1281610ec5565b9392505050565b6000806000806000806000806000806101408b8d031215610a38578586fd5b8a3567ffffffffffffffff80821115610a4f578788fd5b610a5b8e838f0161086e565b9b5060208d0135915080821115610a70578788fd5b610a7c8e838f016108e5565b9a5060408d0135915080821115610a91578788fd5b610a9d8e838f0161096f565b995060608d0135915080821115610ab2578788fd5b50610abf8d828e0161096f565b97505060808b0135955060a08b0135945060c08b0135935060e08b013592506101008b01359150610af48c6101208d0161095e565b90509295989b9194979a5092959850565b600060208284031215610b16578081fd5b5035919050565b6000806000806000806000806000806101408b8d031215610b3c578586fd5b8a51995060208b0151985060408b0151975060608b0151965060808b0151955060a08b0151945060c08b0151935060e08b015192506101008b0151610b8081610ec5565b6101208c0151909250610b9281610ec5565b809150509295989b9194979a5092959850565b73ffffffffffffffffffffffffffffffffffffffff169052565b6000815180845260208085019450808401835b83811015610bf157815160ff1687529582019590820190600101610bd2565b509495945050505050565b60008151808452815b81811015610c2157602081850181015186830182015201610c05565b81811115610c325782602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b6000610160825261016082018d518082526101808401915060208f01835b82811015610cf157610cde848351610ba5565b6020938401939190910190600101610ccb565b5050508281036020840152610d06818e610bbf565b90508281036040840152610d1a818d610bfc565b90508281036060840152610d2e818c610bfc565b9150508860808301528760a08301528660c08301528560e083015284610100830152610d5e610120830185610ba5565b610d6c610140830184610ba5565b9c9b505050505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff93841681529183166020830152909116604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f455243313136373a20637265617465206661696c656400000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b90815260200190565b60405181810167ffffffffffffffff81118282101715610e9d57600080fd5b604052919050565b600067ffffffffffffffff821115610ebb578081fd5b5060209081020190565b73ffffffffffffffffffffffffffffffffffffffff81168114610ee757600080fd5b5056fea2646970667358221220ed0a507f0e800e6c26ab6055f9db987d12e9717c82b078d233581c46a9ae833764736f6c634300060c0033000000000000000000000000f642f2a626a8b732619606c493abfc2433dd2d35000000000000000000000000eb636022175609e82d0cc6bf0efd4e299ac895f1

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

000000000000000000000000f642f2a626a8b732619606c493abfc2433dd2d35000000000000000000000000eb636022175609e82d0cc6bf0efd4e299ac895f1

-----Decoded View---------------
Arg [0] : _swapAddress (address): 0xf642f2a626a8b732619606c493abfc2433dd2d35
Arg [1] : _swapDepositAddress (address): 0xeb636022175609e82d0cc6bf0efd4e299ac895f1

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f642f2a626a8b732619606c493abfc2433dd2d35
Arg [1] : 000000000000000000000000eb636022175609e82d0cc6bf0efd4e299ac895f1


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.