ETH Price: $3,860.35 (+6.97%)

Token

Hop ETH LP Token (HOP-LP-ETH)

Overview

Max Total Supply

835.478248623680538533 HOP-LP-ETH

Holders

10,565

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.001683314608816461 HOP-LP-ETH

Value
$0.00
0x24d9Ad4603a20512D6Ac47a1404aDb130180062d
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Hop is a scalable rollup-to-rollup general token bridge. It allows users to send tokens from one rollup or sidechain to another almost immediately without having to wait for the networks challenge period.

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x22D63A26...8BdF89C92
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
LPToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at optimistic.etherscan.io on 2022-02-28
*/

/**
 *Submitted for verification at arbiscan.io on 2022-02-28
*/

// 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;
    }
}


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

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

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


/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    using SafeMath for uint256;

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

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

interface IAllowlist {
    function getPoolAccountLimit(address poolAddress)
        external
        view
        returns (uint256);

    function getPoolCap(address poolAddress) external view returns (uint256);

    function verifyAddress(address account, bytes32[] calldata merkleProof)
        external
        returns (bool);
}

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

    function getAllowlist() external view returns (IAllowlist);

    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);

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

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

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

    function calculateRemoveLiquidityOneToken(
        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 withdrawFee
    ) 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;
}

/**
 * @title Liquidity Provider Token
 * @notice This token is an ERC20 detailed token with added capability to be minted by the owner.
 * It is used to represent user's shares when providing liquidity to swap contracts.
 */
contract LPToken is ERC20Burnable, Ownable {
    using SafeMath for uint256;

    // Address of the swap contract that owns this LP token. When a user adds liquidity to the swap contract,
    // they receive a proportionate amount of this LPToken.
    ISwap public swap;

    /**
     * @notice Deploys LPToken contract with given name, symbol, and decimals
     * @dev the caller of this constructor will become the owner of this contract
     * @param name_ name of this token
     * @param symbol_ symbol of this token
     * @param decimals_ number of decimals this token will be based on
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint8 decimals_
    ) public ERC20(name_, symbol_) {
        _setupDecimals(decimals_);
        swap = ISwap(_msgSender());
    }

    /**
     * @notice Mints the given amount of LPToken to the recipient.
     * @dev only owner can call this mint function
     * @param recipient address of account to receive the tokens
     * @param amount amount of tokens to mint
     */
    function mint(address recipient, uint256 amount) external onlyOwner {
        require(amount != 0, "amount == 0");
        _mint(recipient, amount);
    }

    /**
     * @dev Overrides ERC20._beforeTokenTransfer() which get called on every transfers including
     * minting and burning. This ensures that swap.updateUserWithdrawFees are called everytime.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal override(ERC20) {
        super._beforeTokenTransfer(from, to, amount);
        swap.updateUserWithdrawFee(to, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swap","outputs":[{"internalType":"contract ISwap","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600436106100e65760003560e01c806306fdde03146100eb578063095ea7b31461016857806318160ddd146101a857806323b872dd146101c2578063313ce567146101f8578063395093511461021657806340c10f191461024257806342966c681461027057806370a082311461028d578063715018a6146102b357806379cc6790146102bb5780638119c065146102e75780638da5cb5b1461030b57806395d89b4114610313578063a457c2d71461031b578063a9059cbb14610347578063dd62ed3e14610373578063f2fde38b146103a1575b600080fd5b6100f36103c7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012d578181015183820152602001610115565b50505050905090810190601f16801561015a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101946004803603604081101561017e57600080fd5b506001600160a01b03813516906020013561045d565b604080519115158252519081900360200190f35b6101b061047a565b60408051918252519081900360200190f35b610194600480360360608110156101d857600080fd5b506001600160a01b03813581169160208101359091169060400135610480565b610200610507565b6040805160ff9092168252519081900360200190f35b6101946004803603604081101561022c57600080fd5b506001600160a01b038135169060200135610510565b61026e6004803603604081101561025857600080fd5b506001600160a01b03813516906020013561055e565b005b61026e6004803603602081101561028657600080fd5b503561060e565b6101b0600480360360208110156102a357600080fd5b50356001600160a01b0316610622565b61026e61063d565b61026e600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356106dd565b6102ef610737565b604080516001600160a01b039092168252519081900360200190f35b6102ef610746565b6100f361075a565b6101946004803603604081101561033157600080fd5b506001600160a01b0381351690602001356107bb565b6101946004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610823565b6101b06004803603604081101561038957600080fd5b506001600160a01b0381358116916020013516610837565b61026e600480360360208110156103b757600080fd5b50356001600160a01b0316610862565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104535780601f1061042857610100808354040283529160200191610453565b820191906000526020600020905b81548152906001019060200180831161043657829003601f168201915b5050505050905090565b600061047161046a61095e565b8484610962565b50600192915050565b60025490565b600061048d848484610a4e565b6104fd8461049961095e565b6104f885604051806060016040528060288152602001610fe3602891396001600160a01b038a166000908152600160205260408120906104d761095e565b6001600160a01b031681526020810191909152604001600020549190610b97565b610962565b5060019392505050565b60055460ff1690565b600061047161051d61095e565b846104f8856001600061052e61095e565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610c2e565b61056661095e565b6001600160a01b0316610577610746565b6001600160a01b0316146105c0576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b80610600576040805162461bcd60e51b815260206004820152600b60248201526a0616d6f756e74203d3d20360ac1b604482015290519081900360640190fd5b61060a8282610c8d565b5050565b61061f61061961095e565b82610d6b565b50565b6001600160a01b031660009081526020819052604090205490565b61064561095e565b6001600160a01b0316610656610746565b6001600160a01b03161461069f576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b03169060008051602061102b833981519152908390a360058054610100600160a81b0319169055565b60006107148260405180606001604052806024815260200161104b6024913961070d8661070861095e565b610837565b9190610b97565b90506107288361072261095e565b83610962565b6107328383610d6b565b505050565b6006546001600160a01b031681565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104535780601f1061042857610100808354040283529160200191610453565b60006104716107c861095e565b846104f8856040518060600160405280602581526020016110f960259139600160006107f261095e565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610b97565b600061047161083061095e565b8484610a4e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61086a61095e565b6001600160a01b031661087b610746565b6001600160a01b0316146108c4576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b6001600160a01b0381166109095760405162461bcd60e51b8152600401808060200182810382526026815260200180610f756026913960400191505060405180910390fd5b6005546040516001600160a01b03808416926101009004169060008051602061102b83398151915290600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160a01b0383166109a75760405162461bcd60e51b81526004018080602001828103825260248152602001806110d56024913960400191505060405180910390fd5b6001600160a01b0382166109ec5760405162461bcd60e51b8152600401808060200182810382526022815260200180610f9b6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610a935760405162461bcd60e51b81526004018080602001828103825260258152602001806110b06025913960400191505060405180910390fd5b6001600160a01b038216610ad85760405162461bcd60e51b8152600401808060200182810382526023815260200180610f306023913960400191505060405180910390fd5b610ae3838383610e55565b610b2081604051806060016040528060268152602001610fbd602691396001600160a01b0386166000908152602081905260409020549190610b97565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610b4f9082610c2e565b6001600160a01b0380841660008181526020818152604091829020949094558051858152905191939287169260008051602061106f83398151915292918290030190a3505050565b60008184841115610c265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610beb578181015183820152602001610bd3565b50505050905090810190601f168015610c185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610c86576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610ce8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610cf460008383610e55565b600254610d019082610c2e565b6002556001600160a01b038216600090815260208190526040902054610d279082610c2e565b6001600160a01b03831660008181526020818152604080832094909455835185815293519293919260008051602061106f8339815191529281900390910190a35050565b6001600160a01b038216610db05760405162461bcd60e51b815260040180806020018281038252602181526020018061108f6021913960400191505060405180910390fd5b610dbc82600083610e55565b610df981604051806060016040528060228152602001610f53602291396001600160a01b0385166000908152602081905260409020549190610b97565b6001600160a01b038316600090815260208190526040902055600254610e1f9082610ed2565b6002556040805182815290516000916001600160a01b0385169160008051602061106f8339815191529181900360200190a35050565b610e60838383610732565b60065460408051633003049760e21b81526001600160a01b038581166004830152602482018590529151919092169163c00c125c91604480830192600092919082900301818387803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50505050505050565b600082821115610f29576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e045524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122046a51ada9d4318949b2e88589972156ea45333f763efabd75d2aa564cd38d5d764736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100e65760003560e01c806306fdde03146100eb578063095ea7b31461016857806318160ddd146101a857806323b872dd146101c2578063313ce567146101f8578063395093511461021657806340c10f191461024257806342966c681461027057806370a082311461028d578063715018a6146102b357806379cc6790146102bb5780638119c065146102e75780638da5cb5b1461030b57806395d89b4114610313578063a457c2d71461031b578063a9059cbb14610347578063dd62ed3e14610373578063f2fde38b146103a1575b600080fd5b6100f36103c7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012d578181015183820152602001610115565b50505050905090810190601f16801561015a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101946004803603604081101561017e57600080fd5b506001600160a01b03813516906020013561045d565b604080519115158252519081900360200190f35b6101b061047a565b60408051918252519081900360200190f35b610194600480360360608110156101d857600080fd5b506001600160a01b03813581169160208101359091169060400135610480565b610200610507565b6040805160ff9092168252519081900360200190f35b6101946004803603604081101561022c57600080fd5b506001600160a01b038135169060200135610510565b61026e6004803603604081101561025857600080fd5b506001600160a01b03813516906020013561055e565b005b61026e6004803603602081101561028657600080fd5b503561060e565b6101b0600480360360208110156102a357600080fd5b50356001600160a01b0316610622565b61026e61063d565b61026e600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356106dd565b6102ef610737565b604080516001600160a01b039092168252519081900360200190f35b6102ef610746565b6100f361075a565b6101946004803603604081101561033157600080fd5b506001600160a01b0381351690602001356107bb565b6101946004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610823565b6101b06004803603604081101561038957600080fd5b506001600160a01b0381358116916020013516610837565b61026e600480360360208110156103b757600080fd5b50356001600160a01b0316610862565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104535780601f1061042857610100808354040283529160200191610453565b820191906000526020600020905b81548152906001019060200180831161043657829003601f168201915b5050505050905090565b600061047161046a61095e565b8484610962565b50600192915050565b60025490565b600061048d848484610a4e565b6104fd8461049961095e565b6104f885604051806060016040528060288152602001610fe3602891396001600160a01b038a166000908152600160205260408120906104d761095e565b6001600160a01b031681526020810191909152604001600020549190610b97565b610962565b5060019392505050565b60055460ff1690565b600061047161051d61095e565b846104f8856001600061052e61095e565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610c2e565b61056661095e565b6001600160a01b0316610577610746565b6001600160a01b0316146105c0576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b80610600576040805162461bcd60e51b815260206004820152600b60248201526a0616d6f756e74203d3d20360ac1b604482015290519081900360640190fd5b61060a8282610c8d565b5050565b61061f61061961095e565b82610d6b565b50565b6001600160a01b031660009081526020819052604090205490565b61064561095e565b6001600160a01b0316610656610746565b6001600160a01b03161461069f576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b03169060008051602061102b833981519152908390a360058054610100600160a81b0319169055565b60006107148260405180606001604052806024815260200161104b6024913961070d8661070861095e565b610837565b9190610b97565b90506107288361072261095e565b83610962565b6107328383610d6b565b505050565b6006546001600160a01b031681565b60055461010090046001600160a01b031690565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104535780601f1061042857610100808354040283529160200191610453565b60006104716107c861095e565b846104f8856040518060600160405280602581526020016110f960259139600160006107f261095e565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610b97565b600061047161083061095e565b8484610a4e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61086a61095e565b6001600160a01b031661087b610746565b6001600160a01b0316146108c4576040805162461bcd60e51b8152602060048201819052602482015260008051602061100b833981519152604482015290519081900360640190fd5b6001600160a01b0381166109095760405162461bcd60e51b8152600401808060200182810382526026815260200180610f756026913960400191505060405180910390fd5b6005546040516001600160a01b03808416926101009004169060008051602061102b83398151915290600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160a01b0383166109a75760405162461bcd60e51b81526004018080602001828103825260248152602001806110d56024913960400191505060405180910390fd5b6001600160a01b0382166109ec5760405162461bcd60e51b8152600401808060200182810382526022815260200180610f9b6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610a935760405162461bcd60e51b81526004018080602001828103825260258152602001806110b06025913960400191505060405180910390fd5b6001600160a01b038216610ad85760405162461bcd60e51b8152600401808060200182810382526023815260200180610f306023913960400191505060405180910390fd5b610ae3838383610e55565b610b2081604051806060016040528060268152602001610fbd602691396001600160a01b0386166000908152602081905260409020549190610b97565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610b4f9082610c2e565b6001600160a01b0380841660008181526020818152604091829020949094558051858152905191939287169260008051602061106f83398151915292918290030190a3505050565b60008184841115610c265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610beb578181015183820152602001610bd3565b50505050905090810190601f168015610c185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610c86576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610ce8576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610cf460008383610e55565b600254610d019082610c2e565b6002556001600160a01b038216600090815260208190526040902054610d279082610c2e565b6001600160a01b03831660008181526020818152604080832094909455835185815293519293919260008051602061106f8339815191529281900390910190a35050565b6001600160a01b038216610db05760405162461bcd60e51b815260040180806020018281038252602181526020018061108f6021913960400191505060405180910390fd5b610dbc82600083610e55565b610df981604051806060016040528060228152602001610f53602291396001600160a01b0385166000908152602081905260409020549190610b97565b6001600160a01b038316600090815260208190526040902055600254610e1f9082610ed2565b6002556040805182815290516000916001600160a01b0385169160008051602061106f8339815191529181900360200190a35050565b610e60838383610732565b60065460408051633003049760e21b81526001600160a01b038581166004830152602482018590529151919092169163c00c125c91604480830192600092919082900301818387803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50505050505050565b600082821115610f29576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e045524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122046a51ada9d4318949b2e88589972156ea45333f763efabd75d2aa564cd38d5d764736f6c634300060c0033

Deployed Bytecode Sourcemap

28479:1719:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13188:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15334:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15334:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;14287:108;;;:::i;:::-;;;;;;;;;;;;;;;;15985:321;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15985:321:0;;;;;;;;;;;;;;;;;:::i;14131:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16715:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16715:218:0;;;;;;;;:::i;29574:157::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29574:157:0;;;;;;;;:::i;:::-;;22477:91;;;;;;;;;;;;;;;;-1:-1:-1;22477:91:0;;:::i;14458:127::-;;;;;;;;;;;;;;;;-1:-1:-1;14458:127:0;-1:-1:-1;;;;;14458:127:0;;:::i;24857:148::-;;;:::i;22887:295::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22887:295:0;;;;;;;;:::i;28736:17::-;;;:::i;:::-;;;;-1:-1:-1;;;;;28736:17:0;;;;;;;;;;;;;;24206:87;;;:::i;13398:95::-;;;:::i;17436:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;17436:269:0;;;;;;;;:::i;14798:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;14798:175:0;;;;;;;;:::i;15036:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15036:151:0;;;;;;;;;;:::i;25160:244::-;;;;;;;;;;;;;;;;-1:-1:-1;25160:244:0;-1:-1:-1;;;;;25160:244:0;;:::i;13188:91::-;13266:5;13259:12;;;;;;;;-1:-1:-1;;13259:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13233:13;;13259:12;;13266:5;;13259:12;;13266:5;13259:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13188:91;:::o;15334:169::-;15417:4;15434:39;15443:12;:10;:12::i;:::-;15457:7;15466:6;15434:8;:39::i;:::-;-1:-1:-1;15491:4:0;15334:169;;;;:::o;14287:108::-;14375:12;;14287:108;:::o;15985:321::-;16091:4;16108:36;16118:6;16126:9;16137:6;16108:9;:36::i;:::-;16155:121;16164:6;16172:12;:10;:12::i;:::-;16186:89;16224:6;16186:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16186:19:0;;;;;;:11;:19;;;;;;16206:12;:10;:12::i;:::-;-1:-1:-1;;;;;16186:33:0;;;;;;;;;;;;-1:-1:-1;16186:33:0;;;:89;:37;:89::i;:::-;16155:8;:121::i;:::-;-1:-1:-1;16294:4:0;15985:321;;;;;:::o;14131:91::-;14205:9;;;;14131:91;:::o;16715:218::-;16803:4;16820:83;16829:12;:10;:12::i;:::-;16843:7;16852:50;16891:10;16852:11;:25;16864:12;:10;:12::i;:::-;-1:-1:-1;;;;;16852:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;16852:25:0;;;:34;;;;;;;;;;;:38;:50::i;29574:157::-;24437:12;:10;:12::i;:::-;-1:-1:-1;;;;;24426:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24426:23:0;;24418:68;;;;;-1:-1:-1;;;24418:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24418:68:0;;;;;;;;;;;;;;;29661:11;29653:35:::1;;;::::0;;-1:-1:-1;;;29653:35:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29653:35:0;;;;;;;;;;;;;::::1;;29699:24;29705:9;29716:6;29699:5;:24::i;:::-;29574:157:::0;;:::o;22477:91::-;22533:27;22539:12;:10;:12::i;:::-;22553:6;22533:5;:27::i;:::-;22477:91;:::o;14458:127::-;-1:-1:-1;;;;;14559:18:0;14532:7;14559:18;;;;;;;;;;;;14458:127::o;24857:148::-;24437:12;:10;:12::i;:::-;-1:-1:-1;;;;;24426:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24426:23:0;;24418:68;;;;;-1:-1:-1;;;24418:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24418:68:0;;;;;;;;;;;;;;;24948:6:::1;::::0;24927:40:::1;::::0;24964:1:::1;::::0;24948:6:::1;::::0;::::1;-1:-1:-1::0;;;;;24948:6:0::1;::::0;-1:-1:-1;;;;;;;;;;;24927:40:0;24964:1;;24927:40:::1;24978:6;:19:::0;;-1:-1:-1;;;;;;24978:19:0::1;::::0;;24857:148::o;22887:295::-;22964:26;22993:84;23030:6;22993:84;;;;;;;;;;;;;;;;;:32;23003:7;23012:12;:10;:12::i;:::-;22993:9;:32::i;:::-;:36;:84;:36;:84::i;:::-;22964:113;;23090:51;23099:7;23108:12;:10;:12::i;:::-;23122:18;23090:8;:51::i;:::-;23152:22;23158:7;23167:6;23152:5;:22::i;:::-;22887:295;;;:::o;28736:17::-;;;-1:-1:-1;;;;;28736:17:0;;:::o;24206:87::-;24279:6;;;;;-1:-1:-1;;;;;24279:6:0;;24206:87::o;13398:95::-;13478:7;13471:14;;;;;;;;-1:-1:-1;;13471:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13445:13;;13471:14;;13478:7;;13471:14;;13478:7;13471:14;;;;;;;;;;;;;;;;;;;;;;;;17436:269;17529:4;17546:129;17555:12;:10;:12::i;:::-;17569:7;17578:96;17617:15;17578:96;;;;;;;;;;;;;;;;;:11;:25;17590:12;:10;:12::i;:::-;-1:-1:-1;;;;;17578:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;17578:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;14798:175::-;14884:4;14901:42;14911:12;:10;:12::i;:::-;14925:9;14936:6;14901:9;:42::i;15036:151::-;-1:-1:-1;;;;;15152:18:0;;;15125:7;15152:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15036:151::o;25160:244::-;24437:12;:10;:12::i;:::-;-1:-1:-1;;;;;24426:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24426:23:0;;24418:68;;;;;-1:-1:-1;;;24418:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24418:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25249:22:0;::::1;25241:73;;;;-1:-1:-1::0;;;25241:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25351:6;::::0;25330:38:::1;::::0;-1:-1:-1;;;;;25330:38:0;;::::1;::::0;25351:6:::1;::::0;::::1;;::::0;-1:-1:-1;;;;;;;;;;;25330:38:0;;;::::1;25379:6;:17:::0;;-1:-1:-1;;;;;25379:17:0;;::::1;;;-1:-1:-1::0;;;;;;25379:17:0;;::::1;::::0;;;::::1;::::0;;25160:244::o;683:106::-;771:10;683:106;:::o;20583:346::-;-1:-1:-1;;;;;20685:19:0;;20677:68;;;;-1:-1:-1;;;20677:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20764:21:0;;20756:68;;;;-1:-1:-1;;;20756:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20837:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;20889:32;;;;;;;;;;;;;;;;;20583:346;;;:::o;18195:539::-;-1:-1:-1;;;;;18301:20:0;;18293:70;;;;-1:-1:-1;;;18293:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18382:23:0;;18374:71;;;;-1:-1:-1;;;18374:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18458:47;18479:6;18487:9;18498:6;18458:20;:47::i;:::-;18538:71;18560:6;18538:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18538:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;18518:17:0;;;:9;:17;;;;;;;;;;;:91;;;;18643:20;;;;;;;:32;;18668:6;18643:24;:32::i;:::-;-1:-1:-1;;;;;18620:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;18691:35;;;;;;;18620:20;;18691:35;;;;-1:-1:-1;;;;;;;;;;;18691:35:0;;;;;;;;18195:539;;;:::o;9283:166::-;9369:7;9405:12;9397:6;;;;9389:29;;;;-1:-1:-1;;;9389:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9436:5:0;;;9283:166::o;6456:179::-;6514:7;6546:5;;;6570:6;;;;6562:46;;;;;-1:-1:-1;;;6562:46:0;;;;;;;;;;;;-1:-1:-1;;;6562:46:0;;;;;;;;;;;;;;;6626:1;6456:179;-1:-1:-1;;;6456:179:0:o;19016:378::-;-1:-1:-1;;;;;19100:21:0;;19092:65;;;;;-1:-1:-1;;;19092:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19170:49;19199:1;19203:7;19212:6;19170:20;:49::i;:::-;19247:12;;:24;;19264:6;19247:16;:24::i;:::-;19232:12;:39;-1:-1:-1;;;;;19303:18:0;;:9;:18;;;;;;;;;;;:30;;19326:6;19303:22;:30::i;:::-;-1:-1:-1;;;;;19282:18:0;;:9;:18;;;;;;;;;;;:51;;;;19349:37;;;;;;;19282:18;;:9;;-1:-1:-1;;;;;;;;;;;19349:37:0;;;;;;;;;19016:378;;:::o;19727:418::-;-1:-1:-1;;;;;19811:21:0;;19803:67;;;;-1:-1:-1;;;19803:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19883:49;19904:7;19921:1;19925:6;19883:20;:49::i;:::-;19966:68;19989:6;19966:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19966:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;19945:18:0;;:9;:18;;;;;;;;;;:89;20060:12;;:24;;20077:6;20060:16;:24::i;:::-;20045:12;:39;20100:37;;;;;;;;20126:1;;-1:-1:-1;;;;;20100:37:0;;;-1:-1:-1;;;;;;;;;;;20100:37:0;;;;;;;;19727:418;;:::o;29952:243::-;30094:44;30121:4;30127:2;30131:6;30094:26;:44::i;:::-;30149:4;;:38;;;-1:-1:-1;;;30149:38:0;;-1:-1:-1;;;;;30149:38:0;;;;;;;;;;;;;;;:4;;;;;:26;;:38;;;;;:4;;:38;;;;;;;:4;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29952:243;;;:::o;6918:158::-;6976:7;7009:1;7004;:6;;6996:49;;;;;-1:-1:-1;;;6996:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7063:5:0;;;6918:158::o

Swarm Source

ipfs://46a51ada9d4318949b2e88589972156ea45333f763efabd75d2aa564cd38d5d7
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.