ETH Price: $3,830.55 (+5.35%)

Token

ERC-20: Degen$ Farm Giga Mega Dung (MEGADUNG)
 

Overview

Max Total Supply

1,531,826.797147811771039744 MEGADUNG

Holders

92

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
10,489.248322038578482596 MEGADUNG

Value
$0.00
0x615d102b227700d073075aab354fa9c931646f6f
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Megadung

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 9 of 14: Megadung.sol
// SPDX-License-Identifier: MIT
// Degen'$ Farm: Collectible NFT game (https://degens.farm)
pragma solidity ^0.7.4;

import "./ERC20.sol";
import "./MinterRole.sol";
import "./IDung.sol";

contract Megadung is ERC20, MinterRole {
    using SafeMath for uint256;

    uint256 public constant DUNG_PER_MEGADUNG = 1e15;

    IDung public dung;

    constructor(IDung _dung)
        ERC20("Degen$ Farm Giga Mega Dung", "MEGADUNG")
        MinterRole(msg.sender)
    {
        dung = _dung;
    }

    function mint(address to, uint256 amount) external onlyMinter {
        _mint(to, amount);
    }

    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
    }

    /**
    * @dev Owner can claim any tokens that transferred
    * to this contract address
    */
    function reclaimToken(ERC20 token) external onlyMinter {
        require(address(token) != address(0));
        uint256 balance = token.balanceOf(address(this));
        token.transfer(msg.sender, balance);
    }

    /**
     * @dev This function implement proxy for befor transfer hook form OpenZeppelin ERC20.
     *
     * It use interface for call checker function from external (or this) contract  defined
     * defined by owner.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal override {
        require(to != address(this), "This contract not accept tokens" );
    }

    function wrap(uint amount) external {
        dung.transferFrom(msg.sender, address(this), amount);
        dung.burn(amount);
        _mint(msg.sender, amount/DUNG_PER_MEGADUNG);
    }

    function unwrap(uint amount) external {
        _burn(msg.sender, amount);
        dung.mint(msg.sender, amount*DUNG_PER_MEGADUNG);
    }

}

File 1 of 14: Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 2 of 14: 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 3 of 14: ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./Context.sol";
import "./IERC20.sol";
import "./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 14: IDung.sol
// SPDX-License-Identifier: MIT
// Degen'$ Farm: Collectible NFT game (https://degens.farm)
pragma solidity ^0.7.4;

import "./IERC20.sol";

interface IDung is IERC20 {
    function mint(address to, uint256 amount) external;
    function burn(uint256 amount) external;
}

File 5 of 14: 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 6 of 14: IUniswapV2Pair.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.5.0;
interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 7 of 14: LPTokenWrapper.sol
// SPDX-License-Identifier: MIT
// Degen'$ Farm: Collectible NFT game (https://degens.farm)
pragma solidity ^0.7.4;


import "./IERC20.sol";
import "./SafeERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./Math.sol";
import "./IUniswapV2Pair.sol";

/**
 * @dev this contract forked from
 * https://github.com/Synthetixio/Unipool/blob/master/contracts/Unipool.sol
 *
*/
contract LPTokenWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IUniswapV2Pair public lptoken;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    constructor (IUniswapV2Pair token) {
        lptoken = token;
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function stake(uint256 amount) virtual public {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        lptoken.transferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) virtual public {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        lptoken.transfer(msg.sender, amount);
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 10 of 14: MegadungCompost.sol
// SPDX-License-Identifier: MIT
// Degen'$ Farm: Collectible NFT game (https://degens.farm)
pragma solidity ^0.7.4;

import "./LPTokenWrapper.sol";
import "./IDung.sol";

contract MegadungCompost is LPTokenWrapper, Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IDung;

    IDung public dung;

    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event Harvested(address indexed user);

    constructor (IDung _dung, IUniswapV2Pair _lptoken)
        LPTokenWrapper(_lptoken)
    {
        dung  = _dung;
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                .sub(lastUpdateTime)
                .mul(rewardRate)
                .mul(1e18)
                .div(totalSupply())
            );
    }

    function earned(address account) public view returns (uint256) {
        return
            balanceOf(account)
            .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
            .div(1e18)
            .add(rewards[account]);
    }

    // stake visibility is public as overriding LPTokenWrapper's stake() function
    function stake(uint256 amount) public override updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        super.stake(amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public override updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
        getReward();
    }

    function getReward() public {
        _getReward();
        emit Harvested(msg.sender);
    }

    function _getReward() internal updateReward(msg.sender) {
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            rewards[msg.sender] = 0;
            dung.mint(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function notifyRewardAmount(uint256 reward, uint256 duration)
        external
        onlyOwner
        updateReward(address(0))
    {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(duration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(duration);
        }
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(duration);
        emit RewardAdded(reward);
    }

    /**
     * @dev returns calculated APY in current moment
     *
     * To get Human readable percent - divide result by 100.
     * APY means how much DUNG you can earn, if you will stake
     * LP tokens with total price of 1 DUNG if compost duration
     * will be 1 year and there will no changes in DUNG price
     * and staked LP token count.
    */
    function apy() external view returns (uint) {

        if (periodFinish < block.timestamp) {
            // time is finished - no earnings
            return 0;
        }

        uint stakedLP = totalSupply();
        if (stakedLP == 0) {
            // no staked tokens - infinite APY
            return 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
        }

        (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) = lptoken.getReserves();
        uint256 totalSupplyLP = lptoken.totalSupply();

        uint DungPerLP; // 1 LP price in ETH currency
        if (lptoken.token0() == address(dung)) {
            DungPerLP = 2 ether * (uint256)(reserve0)/totalSupplyLP; // DUNG value + ETH value in 1 LP
        } else {
            DungPerLP = 2 ether * (uint256)(reserve1)/totalSupplyLP; // DUNG value + ETH value in 1 LP
        }

        uint stakedLpInDung = stakedLP*DungPerLP / 1 ether; // total staked LP token count in DUNG currency

        uint earnedDungPerYear = rewardRate * 365 days; // total pool earns per year
        uint earnerDungPerYearForStakedDung = 10000 * earnedDungPerYear / stakedLpInDung;

        return earnerDungPerYearForStakedDung;
    }

}

File 11 of 14: MinterRole.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.4;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev give an account access to this role
     */
    function add(Role storage role, address account) internal {
        require(account != address(0));
        require(!has(role, account));

        role.bearer[account] = true;
    }

    /**
     * @dev remove an account's access to this role
     */
    function remove(Role storage role, address account) internal {
        require(account != address(0));
        require(has(role, account));

        role.bearer[account] = false;
    }

    /**
     * @dev check if an account has this role
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0));
        return role.bearer[account];
    }
}

contract MinterRole  {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor(address sender) {
        if (!isMinter(sender)) {
            _addMinter(sender);
        }
    }

    modifier onlyMinter() {
        require(isMinter(msg.sender), "MinterRole: caller does not have the Minter role");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public onlyMinter {
        _addMinter(account);
    }

    function renounceMinter() public {
        _removeMinter(msg.sender);
    }

    function _addMinter(address account) internal {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal {
        _minters.remove(account);
        emit MinterRemoved(account);
    }

}

File 12 of 14: Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () 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 13 of 14: SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 14 of 14: 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;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IDung","name":"_dung","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DUNG_PER_MEGADUNG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","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":[],"name":"dung","outputs":[{"internalType":"contract IDung","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","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":[{"internalType":"contract ERC20","name":"token","type":"address"}],"name":"reclaimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceMinter","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"amount","type":"uint256"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200168e3803806200168e833981810160405260208110156200003757600080fd5b5051604080518082018252601a81527f446567656e24204661726d2047696761204d6567612044756e670000000000006020828101918252835180850190945260088452674d45474144554e4760c01b9084015281513393916200009f916003919062000202565b508051620000b590600490602084019062000202565b50506005805460ff1916601217905550620000d08162000107565b620000e057620000e0816200012a565b50600780546001600160a01b0319166001600160a01b0392909216919091179055620002ae565b6000620001248260066200017c60201b62000aea1790919060201c565b92915050565b62000145816006620001b260201b62000b1f1790919060201c565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b60006001600160a01b0382166200019257600080fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6001600160a01b038116620001c657600080fd5b620001d282826200017c565b15620001dd57600080fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200023a576000855562000285565b82601f106200025557805160ff191683800117855562000285565b8280016001018555821562000285579182015b828111156200028557825182559160200191906001019062000268565b506200029392915062000297565b5090565b5b8082111562000293576000815560010162000298565b6113d080620002be6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806370a08231116100b8578063a9059cbb1161007c578063a9059cbb146103b0578063aa271e1a146103dc578063b8a899cf14610402578063dd62ed3e1461040a578063de0e9a3e14610438578063ea598cb01461045557610137565b806370a082311461032857806395d89b411461034e578063983b2d5614610356578063986502751461037c578063a457c2d71461038457610137565b8063313ce567116100ff578063313ce56714610271578063395093511461028f57806340c10f19146102bb57806342966c68146102e75780634ae9d9a31461030457610137565b806306fdde031461013c578063095ea7b3146101b957806317ffc320146101f957806318160ddd1461022157806323b872dd1461023b575b600080fd5b610144610472565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017e578181015183820152602001610166565b50505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360408110156101cf57600080fd5b506001600160a01b038135169060200135610508565b604080519115158252519081900360200190f35b61021f6004803603602081101561020f57600080fd5b50356001600160a01b0316610525565b005b61022961067a565b60408051918252519081900360200190f35b6101e56004803603606081101561025157600080fd5b506001600160a01b03813581169160208101359091169060400135610680565b610279610707565b6040805160ff9092168252519081900360200190f35b6101e5600480360360408110156102a557600080fd5b506001600160a01b038135169060200135610710565b61021f600480360360408110156102d157600080fd5b506001600160a01b03813516906020013561075e565b61021f600480360360208110156102fd57600080fd5b50356107b0565b61030c6107bd565b604080516001600160a01b039092168252519081900360200190f35b6102296004803603602081101561033e57600080fd5b50356001600160a01b03166107cc565b6101446107e7565b61021f6004803603602081101561036c57600080fd5b50356001600160a01b0316610848565b61021f610895565b6101e56004803603604081101561039a57600080fd5b506001600160a01b0381351690602001356108a0565b6101e5600480360360408110156103c657600080fd5b506001600160a01b038135169060200135610908565b6101e5600480360360208110156103f257600080fd5b50356001600160a01b031661091c565b61022961092f565b6102296004803603604081101561042057600080fd5b506001600160a01b038135811691602001351661093a565b61021f6004803603602081101561044e57600080fd5b5035610965565b61021f6004803603602081101561046b57600080fd5b50356109e5565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104fe5780601f106104d3576101008083540402835291602001916104fe565b820191906000526020600020905b8154815290600101906020018083116104e157829003601f168201915b5050505050905090565b600061051c610515610b6b565b8484610b6f565b50600192915050565b61052e3361091c565b6105695760405162461bcd60e51b81526004018080602001828103825260308152602001806112b46030913960400191505060405180910390fd5b6001600160a01b03811661057c57600080fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156105cb57600080fd5b505afa1580156105df573d6000803e3d6000fd5b505050506040513d60208110156105f557600080fd5b50516040805163a9059cbb60e01b81523360048201526024810183905290519192506001600160a01b0384169163a9059cbb916044808201926020929091908290030181600087803b15801561064a57600080fd5b505af115801561065e573d6000803e3d6000fd5b505050506040513d602081101561067457600080fd5b50505050565b60025490565b600061068d848484610c5b565b6106fd84610699610b6b565b6106f8856040518060600160405280602881526020016112e4602891396001600160a01b038a166000908152600160205260408120906106d7610b6b565b6001600160a01b031681526020810191909152604001600020549190610db6565b610b6f565b5060019392505050565b60055460ff1690565b600061051c61071d610b6b565b846106f8856001600061072e610b6b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610e4d565b6107673361091c565b6107a25760405162461bcd60e51b81526004018080602001828103825260308152602001806112b46030913960400191505060405180910390fd5b6107ac8282610eae565b5050565b6107ba3382610f9e565b50565b6007546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104fe5780601f106104d3576101008083540402835291602001916104fe565b6108513361091c565b61088c5760405162461bcd60e51b81526004018080602001828103825260308152602001806112b46030913960400191505060405180910390fd5b6107ba8161109a565b61089e336110dc565b565b600061051c6108ad610b6b565b846106f88560405180606001604052806025815260200161137660259139600160006108d7610b6b565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610db6565b600061051c610915610b6b565b8484610c5b565b6000610929600683610aea565b92915050565b66038d7ea4c6800081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61096f3382610f9e565b600754604080516340c10f1960e01b815233600482015266038d7ea4c680008402602482015290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156109ca57600080fd5b505af11580156109de573d6000803e3d6000fd5b5050505050565b600754604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610a3f57600080fd5b505af1158015610a53573d6000803e3d6000fd5b505050506040513d6020811015610a6957600080fd5b505060075460408051630852cd8d60e31b81526004810184905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b158015610ab857600080fd5b505af1158015610acc573d6000803e3d6000fd5b505050506107ba3366038d7ea4c680008381610ae457fe5b04610eae565b60006001600160a01b038216610aff57600080fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6001600160a01b038116610b3257600080fd5b610b3c8282610aea565b15610b4657600080fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b3390565b6001600160a01b038316610bb45760405162461bcd60e51b81526004018080602001828103825260248152602001806113526024913960400191505060405180910390fd5b6001600160a01b038216610bf95760405162461bcd60e51b815260040180806020018281038252602281526020018061126c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610ca05760405162461bcd60e51b815260040180806020018281038252602581526020018061132d6025913960400191505060405180910390fd5b6001600160a01b038216610ce55760405162461bcd60e51b81526004018080602001828103825260238152602001806112276023913960400191505060405180910390fd5b610cf083838361111e565b610d2d8160405180606001604052806026815260200161128e602691396001600160a01b0386166000908152602081905260409020549190610db6565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d5c9082610e4d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e455760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e0a578181015183820152602001610df2565b50505050905090810190601f168015610e375780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ea7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610f09576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610f156000838361111e565b600254610f229082610e4d565b6002556001600160a01b038216600090815260208190526040902054610f489082610e4d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610fe35760405162461bcd60e51b815260040180806020018281038252602181526020018061130c6021913960400191505060405180910390fd5b610fef8260008361111e565b61102c8160405180606001604052806022815260200161124a602291396001600160a01b0385166000908152602081905260409020549190610db6565b6001600160a01b0383166000908152602081905260409020556002546110529082611181565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6110a5600682610b1f565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6110e76006826111de565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b6001600160a01b03821630141561117c576040805162461bcd60e51b815260206004820152601f60248201527f5468697320636f6e7472616374206e6f742061636365707420746f6b656e7300604482015290519081900360640190fd5b505050565b6000828211156111d8576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b0381166111f157600080fd5b6111fb8282610aea565b61120457600080fd5b6001600160a01b0316600090815260209190915260409020805460ff1916905556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220031a3a67231875ccc03b845716a3ba18f56927494d2a0e9e83de9513de1dc6f564736f6c63430007040033000000000000000000000000dada00a9c23390112d08a1377cc59f7d03d9df55

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c806370a08231116100b8578063a9059cbb1161007c578063a9059cbb146103b0578063aa271e1a146103dc578063b8a899cf14610402578063dd62ed3e1461040a578063de0e9a3e14610438578063ea598cb01461045557610137565b806370a082311461032857806395d89b411461034e578063983b2d5614610356578063986502751461037c578063a457c2d71461038457610137565b8063313ce567116100ff578063313ce56714610271578063395093511461028f57806340c10f19146102bb57806342966c68146102e75780634ae9d9a31461030457610137565b806306fdde031461013c578063095ea7b3146101b957806317ffc320146101f957806318160ddd1461022157806323b872dd1461023b575b600080fd5b610144610472565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017e578181015183820152602001610166565b50505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101e5600480360360408110156101cf57600080fd5b506001600160a01b038135169060200135610508565b604080519115158252519081900360200190f35b61021f6004803603602081101561020f57600080fd5b50356001600160a01b0316610525565b005b61022961067a565b60408051918252519081900360200190f35b6101e56004803603606081101561025157600080fd5b506001600160a01b03813581169160208101359091169060400135610680565b610279610707565b6040805160ff9092168252519081900360200190f35b6101e5600480360360408110156102a557600080fd5b506001600160a01b038135169060200135610710565b61021f600480360360408110156102d157600080fd5b506001600160a01b03813516906020013561075e565b61021f600480360360208110156102fd57600080fd5b50356107b0565b61030c6107bd565b604080516001600160a01b039092168252519081900360200190f35b6102296004803603602081101561033e57600080fd5b50356001600160a01b03166107cc565b6101446107e7565b61021f6004803603602081101561036c57600080fd5b50356001600160a01b0316610848565b61021f610895565b6101e56004803603604081101561039a57600080fd5b506001600160a01b0381351690602001356108a0565b6101e5600480360360408110156103c657600080fd5b506001600160a01b038135169060200135610908565b6101e5600480360360208110156103f257600080fd5b50356001600160a01b031661091c565b61022961092f565b6102296004803603604081101561042057600080fd5b506001600160a01b038135811691602001351661093a565b61021f6004803603602081101561044e57600080fd5b5035610965565b61021f6004803603602081101561046b57600080fd5b50356109e5565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104fe5780601f106104d3576101008083540402835291602001916104fe565b820191906000526020600020905b8154815290600101906020018083116104e157829003601f168201915b5050505050905090565b600061051c610515610b6b565b8484610b6f565b50600192915050565b61052e3361091c565b6105695760405162461bcd60e51b81526004018080602001828103825260308152602001806112b46030913960400191505060405180910390fd5b6001600160a01b03811661057c57600080fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156105cb57600080fd5b505afa1580156105df573d6000803e3d6000fd5b505050506040513d60208110156105f557600080fd5b50516040805163a9059cbb60e01b81523360048201526024810183905290519192506001600160a01b0384169163a9059cbb916044808201926020929091908290030181600087803b15801561064a57600080fd5b505af115801561065e573d6000803e3d6000fd5b505050506040513d602081101561067457600080fd5b50505050565b60025490565b600061068d848484610c5b565b6106fd84610699610b6b565b6106f8856040518060600160405280602881526020016112e4602891396001600160a01b038a166000908152600160205260408120906106d7610b6b565b6001600160a01b031681526020810191909152604001600020549190610db6565b610b6f565b5060019392505050565b60055460ff1690565b600061051c61071d610b6b565b846106f8856001600061072e610b6b565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610e4d565b6107673361091c565b6107a25760405162461bcd60e51b81526004018080602001828103825260308152602001806112b46030913960400191505060405180910390fd5b6107ac8282610eae565b5050565b6107ba3382610f9e565b50565b6007546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104fe5780601f106104d3576101008083540402835291602001916104fe565b6108513361091c565b61088c5760405162461bcd60e51b81526004018080602001828103825260308152602001806112b46030913960400191505060405180910390fd5b6107ba8161109a565b61089e336110dc565b565b600061051c6108ad610b6b565b846106f88560405180606001604052806025815260200161137660259139600160006108d7610b6b565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610db6565b600061051c610915610b6b565b8484610c5b565b6000610929600683610aea565b92915050565b66038d7ea4c6800081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61096f3382610f9e565b600754604080516340c10f1960e01b815233600482015266038d7ea4c680008402602482015290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156109ca57600080fd5b505af11580156109de573d6000803e3d6000fd5b5050505050565b600754604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610a3f57600080fd5b505af1158015610a53573d6000803e3d6000fd5b505050506040513d6020811015610a6957600080fd5b505060075460408051630852cd8d60e31b81526004810184905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b158015610ab857600080fd5b505af1158015610acc573d6000803e3d6000fd5b505050506107ba3366038d7ea4c680008381610ae457fe5b04610eae565b60006001600160a01b038216610aff57600080fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6001600160a01b038116610b3257600080fd5b610b3c8282610aea565b15610b4657600080fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b3390565b6001600160a01b038316610bb45760405162461bcd60e51b81526004018080602001828103825260248152602001806113526024913960400191505060405180910390fd5b6001600160a01b038216610bf95760405162461bcd60e51b815260040180806020018281038252602281526020018061126c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610ca05760405162461bcd60e51b815260040180806020018281038252602581526020018061132d6025913960400191505060405180910390fd5b6001600160a01b038216610ce55760405162461bcd60e51b81526004018080602001828103825260238152602001806112276023913960400191505060405180910390fd5b610cf083838361111e565b610d2d8160405180606001604052806026815260200161128e602691396001600160a01b0386166000908152602081905260409020549190610db6565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610d5c9082610e4d565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e455760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e0a578181015183820152602001610df2565b50505050905090810190601f168015610e375780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ea7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610f09576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610f156000838361111e565b600254610f229082610e4d565b6002556001600160a01b038216600090815260208190526040902054610f489082610e4d565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610fe35760405162461bcd60e51b815260040180806020018281038252602181526020018061130c6021913960400191505060405180910390fd5b610fef8260008361111e565b61102c8160405180606001604052806022815260200161124a602291396001600160a01b0385166000908152602081905260409020549190610db6565b6001600160a01b0383166000908152602081905260409020556002546110529082611181565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6110a5600682610b1f565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6110e76006826111de565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b6001600160a01b03821630141561117c576040805162461bcd60e51b815260206004820152601f60248201527f5468697320636f6e7472616374206e6f742061636365707420746f6b656e7300604482015290519081900360640190fd5b505050565b6000828211156111d8576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b0381166111f157600080fd5b6111fb8282610aea565b61120457600080fd5b6001600160a01b0316600090815260209190915260409020805460ff1916905556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220031a3a67231875ccc03b845716a3ba18f56927494d2a0e9e83de9513de1dc6f564736f6c63430007040033

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

000000000000000000000000dada00a9c23390112d08a1377cc59f7d03d9df55

-----Decoded View---------------
Arg [0] : _dung (address): 0xDADA00A9C23390112D08a1377cc59f7d03D9df55

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000dada00a9c23390112d08a1377cc59f7d03d9df55


Deployed Bytecode Sourcemap

189:1555:8:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2149:89:2;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4225:166;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4225:166:2;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;787:212:8;;;;;;;;;;;;;;;;-1:-1:-1;787:212:8;-1:-1:-1;;;;;787:212:8;;:::i;:::-;;3216:106:2;;;:::i;:::-;;;;;;;;;;;;;;;;4858:317;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4858:317:2;;;;;;;;;;;;;;;;;:::i;3067:89::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5570:215;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5570:215:2;;;;;;;;:::i;497:96:8:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;497:96:8;;;;;;;;:::i;599:81::-;;;;;;;;;;;;;;;;-1:-1:-1;599:81:8;;:::i;322:17::-;;;:::i;:::-;;;;-1:-1:-1;;;;;322:17:8;;;;;;;;;;;;;;3380:125:2;;;;;;;;;;;;;;;;-1:-1:-1;3380:125:2;-1:-1:-1;;;;;3380:125:2;;:::i;2351:93::-;;;:::i;1544:90:10:-;;;;;;;;;;;;;;;;-1:-1:-1;1544:90:10;-1:-1:-1;;;;;1544:90:10;;:::i;1640:75::-;;;:::i;6272:266:2:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6272:266:2;;;;;;;;:::i;3708:172::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3708:172:2;;;;;;;;:::i;1431:107:10:-;;;;;;;;;;;;;;;;-1:-1:-1;1431:107:10;-1:-1:-1;;;;;1431:107:10;;:::i;267:48:8:-;;;:::i;3938:149:2:-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3938:149:2;;;;;;;;;;:::i;1604:137:8:-;;;;;;;;;;;;;;;;-1:-1:-1;1604:137:8;;:::i;1413:185::-;;;;;;;;;;;;;;;;-1:-1:-1;1413:185:8;;:::i;2149:89:2:-;2226:5;2219:12;;;;;;;;-1:-1:-1;;2219:12:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2194:13;;2219:12;;2226:5;;2219:12;;2226:5;2219:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2149:89;:::o;4225:166::-;4308:4;4324:39;4333:12;:10;:12::i;:::-;4347:7;4356:6;4324:8;:39::i;:::-;-1:-1:-1;4380:4:2;4225:166;;;;:::o;787:212:8:-;1334:20:10;1343:10;1334:8;:20::i;:::-;1326:81;;;;-1:-1:-1;;;1326:81:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;860:28:8;::::1;852:37;;;::::0;::::1;;899:15;917:5;-1:-1:-1::0;;;;;917:15:8::1;;941:4;917:30;;;;;;;;;;;;;-1:-1:-1::0;;;;;917:30:8::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;917:30:8;957:35:::1;::::0;;-1:-1:-1;;;957:35:8;;972:10:::1;957:35;::::0;::::1;::::0;;;;;;;;;917:30;;-1:-1:-1;;;;;;957:14:8;::::1;::::0;::::1;::::0;:35;;;;;917:30:::1;::::0;957:35;;;;;;;;-1:-1:-1;957:14:8;:35;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;;;787:212:8:o;3216:106:2:-;3303:12;;3216:106;:::o;4858:317::-;4964:4;4980:36;4990:6;4998:9;5009:6;4980:9;:36::i;:::-;5026:121;5035:6;5043:12;:10;:12::i;:::-;5057:89;5095:6;5057:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5057:19:2;;;;;;:11;:19;;;;;;5077:12;:10;:12::i;:::-;-1:-1:-1;;;;;5057:33:2;;;;;;;;;;;;-1:-1:-1;5057:33:2;;;:89;:37;:89::i;:::-;5026:8;:121::i;:::-;-1:-1:-1;5164:4:2;4858:317;;;;;:::o;3067:89::-;3140:9;;;;3067:89;:::o;5570:215::-;5658:4;5674:83;5683:12;:10;:12::i;:::-;5697:7;5706:50;5745:10;5706:11;:25;5718:12;:10;:12::i;:::-;-1:-1:-1;;;;;5706:25:2;;;;;;;;;;;;;;;;;-1:-1:-1;5706:25:2;;;:34;;;;;;;;;;;:38;:50::i;497:96:8:-;1334:20:10;1343:10;1334:8;:20::i;:::-;1326:81;;;;-1:-1:-1;;;1326:81:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;569:17:8::1;575:2;579:6;569:5;:17::i;:::-;497:96:::0;;:::o;599:81::-;648:25;654:10;666:6;648:5;:25::i;:::-;599:81;:::o;322:17::-;;;-1:-1:-1;;;;;322:17:8;;:::o;3380:125:2:-;-1:-1:-1;;;;;3480:18:2;3454:7;3480:18;;;;;;;;;;;;3380:125::o;2351:93::-;2430:7;2423:14;;;;;;;;-1:-1:-1;;2423:14:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2398:13;;2423:14;;2430:7;;2423:14;;2430:7;2423:14;;;;;;;;;;;;;;;;;;;;;;;;1544:90:10;1334:20;1343:10;1334:8;:20::i;:::-;1326:81;;;;-1:-1:-1;;;1326:81:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1608:19:::1;1619:7;1608:10;:19::i;1640:75::-:0;1683:25;1697:10;1683:13;:25::i;:::-;1640:75::o;6272:266:2:-;6365:4;6381:129;6390:12;:10;:12::i;:::-;6404:7;6413:96;6452:15;6413:96;;;;;;;;;;;;;;;;;:11;:25;6425:12;:10;:12::i;:::-;-1:-1:-1;;;;;6413:25:2;;;;;;;;;;;;;;;;;-1:-1:-1;6413:25:2;;;:34;;;;;;;;;;;:96;:38;:96::i;3708:172::-;3794:4;3810:42;3820:12;:10;:12::i;:::-;3834:9;3845:6;3810:9;:42::i;1431:107:10:-;1487:4;1510:21;:8;1523:7;1510:12;:21::i;:::-;1503:28;1431:107;-1:-1:-1;;1431:107:10:o;267:48:8:-;311:4;267:48;:::o;3938:149:2:-;-1:-1:-1;;;;;4053:18:2;;;4027:7;4053:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3938:149::o;1604:137:8:-;1652:25;1658:10;1670:6;1652:5;:25::i;:::-;1687:4;;:47;;;-1:-1:-1;;;1687:47:8;;1697:10;1687:47;;;;311:4;1709:24;;1687:47;;;;;;-1:-1:-1;;;;;1687:4:8;;;;:9;;:47;;;;;:4;;:47;;;;;;;;:4;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1604:137;:::o;1413:185::-;1459:4;;:52;;;-1:-1:-1;;;1459:52:8;;1477:10;1459:52;;;;1497:4;1459:52;;;;;;;;;;;;-1:-1:-1;;;;;1459:4:8;;;;:17;;:52;;;;;;;;;;;;;;;:4;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1521:4:8;;:17;;;-1:-1:-1;;;1521:17:8;;;;;;;;;;-1:-1:-1;;;;;1521:4:8;;;;:9;;:17;;;;;:4;;:17;;;;;;;;:4;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1548:43;1554:10;311:4;1566:6;:24;;;;;;1548:5;:43::i;819:162:10:-;891:4;-1:-1:-1;;;;;915:21:10;;907:30;;;;;;-1:-1:-1;;;;;;954:20:10;:11;:20;;;;;;;;;;;;;;;819:162::o;292:181::-;-1:-1:-1;;;;;368:21:10;;360:30;;;;;;409:18;413:4;419:7;409:3;:18::i;:::-;408:19;400:28;;;;;;-1:-1:-1;;;;;439:20:10;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;439:27:10;462:4;439:27;;;292:181::o;598:104:1:-;685:10;598:104;:::o;9336:340:2:-;-1:-1:-1;;;;;9437:19:2;;9429:68;;;;-1:-1:-1;;;9429:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9515:21:2;;9507:68;;;;-1:-1:-1;;;9507:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9586:18:2;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;9637:32;;;;;;;;;;;;;;;;;9336:340;;;:::o;7012:530::-;-1:-1:-1;;;;;7117:20:2;;7109:70;;;;-1:-1:-1;;;7109:70:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7197:23:2;;7189:71;;;;-1:-1:-1;;;7189:71:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7271:47;7292:6;7300:9;7311:6;7271:20;:47::i;:::-;7349:71;7371:6;7349:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7349:17:2;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;7329:17:2;;;:9;:17;;;;;;;;;;;:91;;;;7453:20;;;;;;;:32;;7478:6;7453:24;:32::i;:::-;-1:-1:-1;;;;;7430:20:2;;;:9;:20;;;;;;;;;;;;:55;;;;7500:35;;;;;;;7430:20;;7500:35;;;;;;;;;;;;;7012:530;;;:::o;5432:163:13:-;5518:7;5553:12;5545:6;;;;5537:29;;;;-1:-1:-1;;;5537:29:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5583:5:13;;;5432:163::o;2690:175::-;2748:7;2779:5;;;2802:6;;;;2794:46;;;;;-1:-1:-1;;;2794:46:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;2857:1;2690:175;-1:-1:-1;;;2690:175:13:o;7813:370:2:-;-1:-1:-1;;;;;7896:21:2;;7888:65;;;;;-1:-1:-1;;;7888:65:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;7964:49;7993:1;7997:7;8006:6;7964:20;:49::i;:::-;8039:12;;:24;;8056:6;8039:16;:24::i;:::-;8024:12;:39;-1:-1:-1;;;;;8094:18:2;;:9;:18;;;;;;;;;;;:30;;8117:6;8094:22;:30::i;:::-;-1:-1:-1;;;;;8073:18:2;;:9;:18;;;;;;;;;;;:51;;;;8139:37;;;;;;;8073:18;;:9;;8139:37;;;;;;;;;;7813:370;;:::o;8503:410::-;-1:-1:-1;;;;;8586:21:2;;8578:67;;;;-1:-1:-1;;;8578:67:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8656:49;8677:7;8694:1;8698:6;8656:20;:49::i;:::-;8737:68;8760:6;8737:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8737:18:2;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;8716:18:2;;:9;:18;;;;;;;;;;:89;8830:12;;:24;;8847:6;8830:16;:24::i;:::-;8815:12;:39;8869:37;;;;;;;;8895:1;;-1:-1:-1;;;;;8869:37:2;;;;;;;;;;;;8503:410;;:::o;1721:119:10:-;1777:21;:8;1790:7;1777:12;:21::i;:::-;1813:20;;-1:-1:-1;;;;;1813:20:10;;;;;;;;1721:119;:::o;1846:127::-;1905:24;:8;1921:7;1905:15;:24::i;:::-;1944:22;;-1:-1:-1;;;;;1944:22:10;;;;;;;;1846:127;:::o;1236:171:8:-;-1:-1:-1;;;;;1344:19:8;;1358:4;1344:19;;1336:64;;;;;-1:-1:-1;;;1336:64:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;1236:171;;;:::o;3136:155:13:-;3194:7;3226:1;3221;:6;;3213:49;;;;;-1:-1:-1;;;3213:49:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3279:5:13;;;3136:155::o;547:184:10:-;-1:-1:-1;;;;;626:21:10;;618:30;;;;;;666:18;670:4;676:7;666:3;:18::i;:::-;658:27;;;;;;-1:-1:-1;;;;;696:20:10;719:5;696:20;;;;;;;;;;;:28;;-1:-1:-1;;696:28:10;;;547:184::o

Swarm Source

ipfs://031a3a67231875ccc03b845716a3ba18f56927494d2a0e9e83de9513de1dc6f5
Loading...
Loading
Loading...
Loading
[ 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.