ETH Price: $3,342.99 (+0.11%)
 

Overview

Max Total Supply

5,210,732.565261111262452888 stSLP

Holders

66

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
6,480.706198910887002755 stSLP

Value
$0.00
0xc91f8f860f80660af9b19f8f4e335eac148db586
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:
ScrambleConverter

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 14 : ScrambleConverter.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity 0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "../interfaces/IUniswapV2Router02.sol";
import "../interfaces/IUniswapV2Pair.sol";
import "../interfaces/IScramble.sol";

import "./math/SafeMathUint.sol";
import "./math/SafeMathInt.sol";

/// @title Scramble Converter
/// @dev A heavily modified version of DividendPayingToken (https://github.com/Roger-Wu/erc1726-dividend-paying-token)

contract ScrambleConverter is ERC20("Staked Scramble LP", "stSLP"), Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeMathUint for uint256;
    using SafeMathInt for int256;

    IScramble public scramble;
    IUniswapV2Pair public scrambleLp;
    IUniswapV2Router02 public router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

    uint256 public constant MAGNITUDE = 2 ** 128;
    uint256 public magnifiedEtherPerShare;

    event EtherDistributed(address indexed from, uint256 weiAmount);
    event Deposit(address indexed user, uint256 amountLp);
    event Withdraw(address indexed user, uint256 amountLp, uint256 voidedEthRewards);
    event Claim(address indexed user, uint256 lpStaked, uint256 ethClaimed);
    event Compound(address indexed user, uint256 lpStaked, uint256 ethClaimed, uint256 lpAdded);

    mapping(address => int256) public magnifiedEtherCorrections;
    mapping(address => uint256) public withdrawnEther;
    mapping(address => uint256) public compoundedLpTokens;
    mapping(address => uint256) public userLockEndTimestamp;

    uint256 public totalEtherDistributed;
    uint256 public lockTime = 7 days;
    address public feeReceiver;

    bool public depositAllowed;
    bool public withdrawAllowed;
    bool public claimAllowed;
    bool public compoundAllowed;

    receive() external payable {
        distributeEther();
    }

    function distributeEther() public payable {
        require(totalSupply() > 0, "Nowhere to distribute");
        if (msg.value > 0) {
            magnifiedEtherPerShare = magnifiedEtherPerShare.add((msg.value).mul(MAGNITUDE) / totalSupply());
            totalEtherDistributed += msg.value;
            emit EtherDistributed(msg.sender, msg.value);
        }
    }

    function deposit(uint256 amount) public {
        require(depositAllowed, "Deposit not allowed");
        require(amount > 0, "Amount can't be zero");
        require(amount <= scrambleLp.balanceOf(msg.sender), "Amount over user balance");
        require(amount <= scrambleLp.allowance(msg.sender, address(this)), "Not enough allowance");
        userLockEndTimestamp[msg.sender] = block.timestamp + lockTime;
        scrambleLp.transferFrom(msg.sender, address(this), amount);
        _mint(msg.sender, amount);
        emit Deposit(msg.sender, amount);
    }

    function withdraw(uint256 amount) public nonReentrant {
        require(withdrawAllowed, "Withdraw not allowed");
        require(amount > 0, "Amount can't be zero");
        require(amount <= balanceOf(msg.sender), "Amount over user balance");
        if (lockTime > 0) {
            require(userLockEndTimestamp[msg.sender] <= block.timestamp, "Still locked");
        }
        uint256 voidedEthRewards = etherOf(msg.sender);
        withdrawnEther[msg.sender] = withdrawnEther[msg.sender].add(voidedEthRewards);
        userLockEndTimestamp[msg.sender] = block.timestamp + lockTime;
        scrambleLp.transfer(msg.sender, amount);
        _burn(msg.sender, amount);
        emit Withdraw(msg.sender, amount, voidedEthRewards);
        (bool success,) = address(this).call{value: voidedEthRewards}("");
        require(success);
    }

    function claim() public nonReentrant {
        require(claimAllowed, "Claim not allowed");
        uint256 accumulatedEther = etherOf(msg.sender);
        require(accumulatedEther > 0, "Nothing to claim");
        uint256 toWithdraw = (accumulatedEther * 80) / 100;
        uint256 toFee = accumulatedEther - toWithdraw;
        withdrawnEther[msg.sender] = withdrawnEther[msg.sender].add(accumulatedEther);
        userLockEndTimestamp[msg.sender] = block.timestamp + lockTime;
        emit Claim(msg.sender, balanceOf(msg.sender), accumulatedEther);
        payable(msg.sender).transfer(toWithdraw);
        payable(feeReceiver).transfer(toFee);
    }

    function compound(uint256 _amountOutMin, uint256 _amountTokenMin, uint256 _amountETHMin) public nonReentrant {
        require(compoundAllowed, "Compound not allowed");
        require(address(scramble) != address(0), "Scramble address not set");
        require(_amountOutMin != 0, "amountOutMin can't be zero");
        require(_amountTokenMin != 0, "amountTokenMin can't be zero");
        require(_amountETHMin != 0, "amountETHMin can't be zero");
        uint256 accumulatedEther = etherOf(msg.sender);
        require(accumulatedEther > 0, "Nothing to compound");
        uint256 toWithdraw = (accumulatedEther * 80) / 100;
        uint256 toFee = accumulatedEther - toWithdraw;
        withdrawnEther[msg.sender] = withdrawnEther[msg.sender].add(accumulatedEther);
        userLockEndTimestamp[msg.sender] = block.timestamp + lockTime;
        payable(feeReceiver).transfer(toFee);
        (, uint112 r1) = getReserves();
        uint256 toSwap = getSwapAmount(r1, toWithdraw);
        uint256 toLiquidity = toWithdraw - toSwap;
        uint scrambleBalanceBefore = scramble.balanceOf(address(this));
        router.swapExactETHForTokens{value: toSwap}(_amountOutMin, _pair(), address(this), block.timestamp);
        uint gotScramble = scramble.balanceOf(address(this)) - scrambleBalanceBefore;
        (,, uint256 gotLiquidity) = router.addLiquidityETH{value: toLiquidity}(address(scramble), gotScramble, _amountTokenMin, _amountETHMin, msg.sender, block.timestamp);
        emit Compound(msg.sender, balanceOf(msg.sender), accumulatedEther, gotLiquidity);
        deposit(gotLiquidity);
    }

    function getCompoundInputParametersOfUser(address _user, uint256 swapSlippage, uint256 liqSlippage) public view returns (uint256, uint256) {
        uint256 accumulatedEther = etherOf(_user);
        if (accumulatedEther == 0) {
            return (0, 0);
        } else {
            uint256 toWithdraw = (accumulatedEther * 80) / 100;
            (uint112 r0, uint112 r1) = getReserves();
            uint256 toSwap = getSwapAmount(r1, toWithdraw);
            uint256 toLiquidity = toWithdraw - toSwap;
            uint256 amountScramble = router.getAmountOut(toSwap, r1, r0);
            uint256 slippageScramble = (amountScramble * swapSlippage * 1e10) / 100e12;
            uint256 minAmountScramble = amountScramble - slippageScramble;
            uint256 slippageEth = (toLiquidity * liqSlippage * 1e10) / 100e12;
            uint256 minAmountEth = toLiquidity - slippageEth;
            return (minAmountScramble, minAmountEth);
        }
    }

    /*
    s = optimal swap amount
    r = amount of reserve for token a
    a = amount of token a the user currently has (not added to reserve yet)
    f = swap fee percent
    s = (sqrt(((2 - f)r)^2 + 4(1 - f)ar) - (2 - f)r) / (2(1 - f))
    source: https://github.com/stakewithus/defi-by-example/blob/main/contracts/TestUniswapOptimal.sol
    */
    function getSwapAmount(uint256 r, uint256 a) public pure returns (uint256) {
        return (sqrt(r.mul(r.mul(3988009) + a.mul(3988000))).sub(r.mul(1997))) / 1994;
    }

    function getReserves() public view returns (uint112, uint112) {
        (uint112 _reserve0, uint112 _reserve1,) = scrambleLp.getReserves();
        return address(scramble) < router.WETH() ? (_reserve0, _reserve1) : (_reserve1, _reserve0);
    }

    function setScrambleLpAddress(address _address) external onlyOwner {
        scrambleLp = IUniswapV2Pair(_address);
    }

    function setScrambleAddress(address _address) external onlyOwner {
        scramble = IScramble(_address);
        scramble.approve(address(router), type(uint256).max); // used for gas savings in compound
    }

    function setFeeReceiverAddress(address _address) external onlyOwner {
        feeReceiver = _address;
    }

    function setLockTime(uint256 _lockTime) external onlyOwner {
        lockTime = _lockTime;
    }

    function emergencyWithdrawEth(uint256 _amount) external onlyOwner {
        payable(owner()).transfer(_amount);
    }

    function emergencyWithdrawScrambleLp(uint256 _amount) external onlyOwner {
        scrambleLp.transfer(owner(), _amount);
    }

    function setAllowedActions(bool _depositAllowed, bool _withdrawAllowed, bool _claimAllowed, bool _compoundAllowed) external onlyOwner {
        depositAllowed = _depositAllowed;
        withdrawAllowed = _withdrawAllowed;
        claimAllowed = _claimAllowed;
        compoundAllowed = _compoundAllowed;
    }

    function etherOf(address _user) public view returns (uint256) {
        return cumulativeEtherOf(_user).sub(withdrawnEther[_user]);
    }

    function percentShareOf(address _user) public view returns (uint256) {
        if (totalSupply() > 0) {
            return (balanceOf(_user) * 1e18) / totalSupply();
        } else {
            return 0;
        }
    }

    function cumulativeEtherOf(address _user) public view returns (uint256) {
        return magnifiedEtherPerShare.mul(balanceOf(_user)).toInt256Safe().add(magnifiedEtherCorrections[_user]).toUint256Safe() / MAGNITUDE;
    }

    function _transfer(address from, address to, uint256 value) internal override {
        revert("Transfer not allowed");
        super._transfer(from, to, value);
        int256 _magCorrection = magnifiedEtherPerShare.mul(value).toInt256Safe();
        magnifiedEtherCorrections[from] = magnifiedEtherCorrections[from].add(_magCorrection);
        magnifiedEtherCorrections[to] = magnifiedEtherCorrections[to].sub(_magCorrection);
    }

    function _mint(address account, uint256 value) internal override {
        super._mint(account, value);
        magnifiedEtherCorrections[account] = magnifiedEtherCorrections[account].sub((magnifiedEtherPerShare.mul(value)).toInt256Safe());
    }

    function _burn(address account, uint256 value) internal override {
        super._burn(account, value);
        magnifiedEtherCorrections[account] = magnifiedEtherCorrections[account].add((magnifiedEtherPerShare.mul(value)).toInt256Safe());
    }

    function _pair() internal view returns (address[] memory) {
        address[] memory pair = new address[](2);
        pair[0] = router.WETH();
        pair[1] = address(scramble);
        return pair;
    }

    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
        // else z = 0 (default value)
    }
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 14 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

        _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be 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 Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

    /**
     * @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) {
        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) {
        return a * b;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 14 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 7 of 14 : IUniswapV2Pair.sol
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 8 of 14 : IScramble.sol
pragma solidity 0.8.19;
import "../interfaces/IUniswapV2Pair.sol";

interface IScramble {
    function mint(address to, uint256 amount) external;
    function balanceOf(address account) external view returns (uint256);
    function totalSupply() external view returns (uint256);
    function transferUnderlying(address to, uint256 value) external returns (bool);
    function fragmentToScramble(uint256 value) external view returns (uint256);
    function scrambleToFragment(uint256 scramble) external view returns (uint256);
    function balanceOfUnderlying(address who) external view returns (uint256);
    function burn(uint256 amount) external;
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function INIT_SUPPLY() external view returns (uint);
    function MINTER_ROLE() external view returns (bytes32);
    function REBASER_ROLE() external view returns (bytes32);
    function setReflectionsReceiver(address) external;
    function approve(address spender, uint256 amount) external returns (bool);
    function transfer(address, uint) external returns (bool);
    function rebase(
        uint256 epoch,
        uint256 indexDelta,
        bool positive
    ) external returns (uint256);
    function setExcludedFromReflections(address, bool) external;
    function uniswapV2Pair() external returns (IUniswapV2Pair);
    function owner() external returns (address);
    function reflectionsReceiver() external returns (address);
    function tradingOpen() external returns (bool);
    function setMaxWallet(uint) external;
    function openTrading() external;
    function manualSwap() external;
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 9 of 14 : SafeMathUint.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.1;

/**
 * @title SafeMathUint
 * @dev Math operations with safety checks that revert on error
 */
library SafeMathUint {
    function toInt256Safe(uint256 a) internal pure returns (int256) {
        int256 b = int256(a);
        require(b >= 0);
        return b;
    }
}

File 10 of 14 : SafeMathInt.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.1;

/**
 * @title SafeMathInt
 * @dev Math operations with safety checks that revert on error
 * @dev SafeMath adapted for int256
 * Based on code of  https://github.com/RequestNetwork/requestNetwork/blob/master/packages/requestNetworkSmartContracts/contracts/base/math/SafeMathInt.sol
 */
library SafeMathInt {
    function mul(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when multiplying INT256_MIN with -1
        // https://github.com/RequestNetwork/requestNetwork/issues/43
        require(!(a == -2 ** 255 && b == -1) && !(b == -2 ** 255 && a == -1));

        int256 c = a * b;
        require((b == 0) || (c / b == a));
        return c;
    }

    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing INT256_MIN by -1
        // https://github.com/RequestNetwork/requestNetwork/issues/43
        require(!(a == -2 ** 255 && b == -1) && (b > 0));

        return a / b;
    }

    function sub(int256 a, int256 b) internal pure returns (int256) {
        require((b >= 0 && a - b <= a) || (b < 0 && a - b > a));

        return a - b;
    }

    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

File 11 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 12 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 13 of 14 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 14 of 14 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"lpStaked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethClaimed","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"lpStaked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethClaimed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpAdded","type":"uint256"}],"name":"Compound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountLp","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"EtherDistributed","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountLp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"voidedEthRewards","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAGNITUDE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"uint256","name":"_amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"_amountETHMin","type":"uint256"}],"name":"compound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compoundAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"compoundedLpTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"cumulativeEtherOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributeEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyWithdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyWithdrawScrambleLp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"etherOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"swapSlippage","type":"uint256"},{"internalType":"uint256","name":"liqSlippage","type":"uint256"}],"name":"getCompoundInputParametersOfUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"","type":"uint112"},{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"r","type":"uint256"},{"internalType":"uint256","name":"a","type":"uint256"}],"name":"getSwapAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":[],"name":"lockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"magnifiedEtherCorrections","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"magnifiedEtherPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"_user","type":"address"}],"name":"percentShareOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scramble","outputs":[{"internalType":"contract IScramble","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scrambleLp","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_depositAllowed","type":"bool"},{"internalType":"bool","name":"_withdrawAllowed","type":"bool"},{"internalType":"bool","name":"_claimAllowed","type":"bool"},{"internalType":"bool","name":"_compoundAllowed","type":"bool"}],"name":"setAllowedActions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setFeeReceiverAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockTime","type":"uint256"}],"name":"setLockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setScrambleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setScrambleLpAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalEtherDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userLockEndTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawnEther","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600980546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d17905562093a806010553480156200003e57600080fd5b506040518060400160405280601281526020017105374616b656420536372616d626c65204c560741b8152506040518060400160405280600581526020016407374534c560dc1b8152508160039081620000999190620001cb565b506004620000a88282620001cb565b505050620000c5620000bf620000d060201b60201c565b620000d4565b600160065562000297565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015157607f821691505b6020821081036200017257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001c657600081815260208120601f850160051c81016020861015620001a15750805b601f850160051c820191505b81811015620001c257828155600101620001ad565b5050505b505050565b81516001600160401b03811115620001e757620001e762000126565b620001ff81620001f884546200013c565b8462000178565b602080601f8311600181146200023757600084156200021e5750858301515b600019600386901b1c1916600185901b178555620001c2565b600085815260208120601f198616915b82811015620002685788860151825594840194600190910190840162000247565b5085821015620002875787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612c0b80620002a76000396000f3fe6080604052600436106102975760003560e01c80638da5cb5b1161015a578063c30ea2a2116100c1578063f0d396ed1161007a578063f0d396ed14610823578063f2fde38b14610843578063f3c85eba14610863578063f58d80c914610883578063f887ea40146108a3578063f9e87952146108c357600080fd5b8063c30ea2a214610740578063cb8fe02c14610761578063dbfc59ab14610781578063dd62ed3e146107b6578063e18bf122146107d6578063ea27c93c146107f657600080fd5b8063a9059cbb11610113578063a9059cbb1461067f578063ae04d45d1461069f578063b3f00674146106bf578063b6b55f25146106df578063bc4297e7146106ff578063be8529fc1461072057600080fd5b80638da5cb5b146105ab5780638e64fcd7146105dd5780639511d72f1461060a57806395d89b411461062a5780639c4e31481461063f578063a457c2d71461065f57600080fd5b80633c73ad87116101fe5780636d3036a7116101b75780636d3036a7146104e75780636eabfced146104ff57806370a082311461051f578063715018a61461055557806376154ddf1461056a578063872f0b971461058a57600080fd5b80633c73ad8714610446578063429093cc14610473578063494bf608146104935780634e71d92d1461049b578063574eab01146104b057806366e582aa146104d157600080fd5b806323b872dd1161025057806323b872dd146103945780632e1a7d4d146103b45780632e3702d5146103d4578063313ce567146103ea578063368519f314610406578063395093511461042657600080fd5b806306fdde03146102ab5780630902f1ac146102d6578063095ea7b31461030b5780630d6680871461033b57806315ba0e451461035f57806318160ddd1461037f57600080fd5b366102a6576102a46108f0565b005b600080fd5b3480156102b757600080fd5b506102c06109cd565b6040516102cd9190612675565b60405180910390f35b3480156102e257600080fd5b506102eb610a5f565b604080516001600160701b039384168152929091166020830152016102cd565b34801561031757600080fd5b5061032b6103263660046126d8565b610b81565b60405190151581526020016102cd565b34801561034757600080fd5b5061035160105481565b6040519081526020016102cd565b34801561036b57600080fd5b506102a461037a366004612704565b610b9b565b34801561038b57600080fd5b50600254610351565b3480156103a057600080fd5b5061032b6103af366004612721565b610bc5565b3480156103c057600080fd5b506102a46103cf366004612762565b610be9565b3480156103e057600080fd5b50610351600f5481565b3480156103f657600080fd5b50604051601281526020016102cd565b34801561041257600080fd5b5061035161042136600461277b565b610eb2565b34801561043257600080fd5b5061032b6104413660046126d8565b610f13565b34801561045257600080fd5b50610351610461366004612704565b600c6020526000908152604090205481565b34801561047f57600080fd5b506102a461048e366004612762565b610f35565b6102a46108f0565b3480156104a757600080fd5b506102a4610f7b565b3480156104bc57600080fd5b5060115461032b90600160a81b900460ff1681565b3480156104dd57600080fd5b50610351600a5481565b3480156104f357600080fd5b50610351600160801b81565b34801561050b57600080fd5b506102a461051a366004612704565b61114e565b34801561052b57600080fd5b5061035161053a366004612704565b6001600160a01b031660009081526020819052604090205490565b34801561056157600080fd5b506102a46111e2565b34801561057657600080fd5b50610351610585366004612704565b6111f4565b34801561059657600080fd5b5060115461032b90600160b01b900460ff1681565b3480156105b757600080fd5b506005546001600160a01b03165b6040516001600160a01b0390911681526020016102cd565b3480156105e957600080fd5b506103516105f8366004612704565b600d6020526000908152604090205481565b34801561061657600080fd5b506102a4610625366004612762565b611250565b34801561063657600080fd5b506102c06112ae565b34801561064b57600080fd5b506102a461065a366004612704565b6112bd565b34801561066b57600080fd5b5061032b61067a3660046126d8565b6112e7565b34801561068b57600080fd5b5061032b61069a3660046126d8565b611362565b3480156106ab57600080fd5b506102a46106ba366004612762565b611370565b3480156106cb57600080fd5b506011546105c5906001600160a01b031681565b3480156106eb57600080fd5b506102a46106fa366004612762565b61137d565b34801561070b57600080fd5b5060115461032b90600160b81b900460ff1681565b34801561072c57600080fd5b5061035161073b366004612704565b611662565b34801561074c57600080fd5b5060115461032b90600160a01b900460ff1681565b34801561076d57600080fd5b506007546105c5906001600160a01b031681565b34801561078d57600080fd5b506107a161079c36600461279d565b611688565b604080519283526020830191909152016102cd565b3480156107c257600080fd5b506103516107d13660046127d2565b61181a565b3480156107e257600080fd5b506008546105c5906001600160a01b031681565b34801561080257600080fd5b50610351610811366004612704565b600b6020526000908152604090205481565b34801561082f57600080fd5b506102a461083e366004612819565b611845565b34801561084f57600080fd5b506102a461085e366004612704565b6118ad565b34801561086f57600080fd5b506102a461087e366004612875565b611923565b34801561088f57600080fd5b5061035161089e366004612704565b611e7a565b3480156108af57600080fd5b506009546105c5906001600160a01b031681565b3480156108cf57600080fd5b506103516108de366004612704565b600e6020526000908152604090205481565b60006108fb60025490565b116109455760405162461bcd60e51b81526020600482015260156024820152744e6f776865726520746f206469737472696275746560581b60448201526064015b60405180910390fd5b34156109cb5761097861095760025490565b61096534600160801b611ec7565b61096f91906128b7565b600a5490611ed3565b600a8190555034600f600082825461099091906128d9565b909155505060405134815233907f2aaa7923c74576791f293c17c5b1617a0c94ad8beb3c351bef807fd8784268439060200160405180910390a25b565b6060600380546109dc906128ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610a08906128ec565b8015610a555780601f10610a2a57610100808354040283529160200191610a55565b820191906000526020600020905b815481529060010190602001808311610a3857829003601f168201915b5050505050905090565b600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610ab8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610adc9190612937565b5091509150600960009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b589190612987565b6007546001600160a01b03918216911610610b74578082610b77565b81815b9350935050509091565b600033610b8f818585611edf565b60019150505b92915050565b610ba3612003565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600033610bd385828561205d565b610bde8585856120d7565b506001949350505050565b610bf1612116565b601154600160a81b900460ff16610c415760405162461bcd60e51b815260206004820152601460248201527315da5d1a191c985dc81b9bdd08185b1b1bddd95960621b604482015260640161093c565b60008111610c885760405162461bcd60e51b8152602060048201526014602482015273416d6f756e742063616e2774206265207a65726f60601b604482015260640161093c565b33600090815260208190526040902054811115610ce25760405162461bcd60e51b8152602060048201526018602482015277416d6f756e74206f76657220757365722062616c616e636560401b604482015260640161093c565b60105415610d3857336000908152600e6020526040902054421015610d385760405162461bcd60e51b815260206004820152600c60248201526b14dd1a5b1b081b1bd8dad95960a21b604482015260640161093c565b6000610d4333611662565b336000908152600c6020526040902054909150610d609082611ed3565b336000908152600c6020526040902055601054610d7d90426128d9565b336000818152600e60205260409081902092909255600854915163a9059cbb60e01b81526004810191909152602481018490526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610de4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0891906129a4565b50610e13338361216f565b604080518381526020810183905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2604051600090309083908381818185875af1925050503d8060008114610e90576040519150601f19603f3d011682016040523d82523d6000602084013e610e95565b606091505b5050905080610ea357600080fd5b5050610eaf6001600655565b50565b60006107ca610f02610ec6856107cd611ec7565b610efc610ef7610ed987623cda20611ec7565b610ee689623cda29611ec7565b610ef091906128d9565b8890611ec7565b6121d3565b90612242565b610f0c91906128b7565b9392505050565b600033610b8f818585610f26838361181a565b610f3091906128d9565b611edf565b610f3d612003565b6005546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610f77573d6000803e3d6000fd5b5050565b610f83612116565b601154600160b01b900460ff16610fd05760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08185b1b1bddd959607a1b604482015260640161093c565b6000610fdb33611662565b9050600081116110205760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b604482015260640161093c565b6000606461102f8360506129c1565b61103991906128b7565b9050600061104782846129d8565b336000908152600c60205260409020549091506110649084611ed3565b336000908152600c602052604090205560105461108190426128d9565b336000818152600e602090815260408083209490945581905291909120547f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf79060408051918252602082018790520160405180910390a2604051339083156108fc029084906000818181858888f19350505050158015611105573d6000803e3d6000fd5b506011546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611140573d6000803e3d6000fd5b505050506109cb6001600655565b611156612003565b600780546001600160a01b0319166001600160a01b0383811691821790925560095460405163095ea7b360e01b81529216600483015260001960248301529063095ea7b3906044015b6020604051808303816000875af11580156111be573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7791906129a4565b6111ea612003565b6109cb600061224e565b6001600160a01b0381166000908152600b602090815260408083205491839052822054600a54600160801b92611246926112419261123b916112369190611ec7565b6122a0565b906122b0565b6122ee565b610b9591906128b7565b611258612003565b6008546001600160a01b031663a9059cbb61127b6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810184905260440161119f565b6060600480546109dc906128ec565b6112c5612003565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b600033816112f5828661181a565b9050838110156113555760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161093c565b610bde8286868403611edf565b600033610b8f8185856120d7565b611378612003565b601055565b601154600160a01b900460ff166113cc5760405162461bcd60e51b815260206004820152601360248201527211195c1bdcda5d081b9bdd08185b1b1bddd959606a1b604482015260640161093c565b600081116114135760405162461bcd60e51b8152602060048201526014602482015273416d6f756e742063616e2774206265207a65726f60601b604482015260640161093c565b6008546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561145b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147f91906129eb565b8111156114c95760405162461bcd60e51b8152602060048201526018602482015277416d6f756e74206f76657220757365722062616c616e636560401b604482015260640161093c565b600854604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015611517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153b91906129eb565b8111156115815760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820616c6c6f77616e636560601b604482015260640161093c565b60105461158e90426128d9565b336000818152600e6020526040908190209290925560085491516323b872dd60e01b81526004810191909152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156115fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161f91906129a4565b5061162a3382612301565b60405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a250565b6001600160a01b0381166000908152600c6020526040812054610b9590610efc846111f4565b600080600061169686611662565b9050806000036116ad576000809250925050611812565b600060646116bc8360506129c1565b6116c691906128b7565b90506000806116d3610a5f565b9150915060006116ec826001600160701b031685610eb2565b905060006116fa82866129d8565b600954604051630153543560e21b8152600481018590526001600160701b038087166024830152871660448201529192506000916001600160a01b039091169063054d50d490606401602060405180830381865afa158015611760573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178491906129eb565b90506000655af3107a40006117998d846129c1565b6117a8906402540be4006129c1565b6117b291906128b7565b905060006117c082846129d8565b90506000655af3107a40006117d58e876129c1565b6117e4906402540be4006129c1565b6117ee91906128b7565b905060006117fc82876129d8565b929c50919a506118129950505050505050505050565b935093915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61184d612003565b6011805461ffff60a01b1916600160a01b9515159590950260ff60a81b191694909417600160a81b931515939093029290921761ffff60b01b1916600160b01b9115159190910260ff60b81b191617600160b81b91151591909102179055565b6118b5612003565b6001600160a01b03811661191a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093c565b610eaf8161224e565b61192b612116565b601154600160b81b900460ff1661197b5760405162461bcd60e51b815260206004820152601460248201527310dbdb5c1bdd5b99081b9bdd08185b1b1bddd95960621b604482015260640161093c565b6007546001600160a01b03166119d35760405162461bcd60e51b815260206004820152601860248201527f536372616d626c652061646472657373206e6f74207365740000000000000000604482015260640161093c565b82600003611a235760405162461bcd60e51b815260206004820152601a60248201527f616d6f756e744f75744d696e2063616e2774206265207a65726f000000000000604482015260640161093c565b81600003611a735760405162461bcd60e51b815260206004820152601c60248201527f616d6f756e74546f6b656e4d696e2063616e2774206265207a65726f00000000604482015260640161093c565b80600003611ac35760405162461bcd60e51b815260206004820152601a60248201527f616d6f756e744554484d696e2063616e2774206265207a65726f000000000000604482015260640161093c565b6000611ace33611662565b905060008111611b165760405162461bcd60e51b8152602060048201526013602482015272139bdd1a1a5b99c81d1bc818dbdb5c1bdd5b99606a1b604482015260640161093c565b60006064611b258360506129c1565b611b2f91906128b7565b90506000611b3d82846129d8565b336000908152600c6020526040902054909150611b5a9084611ed3565b336000908152600c6020526040902055601054611b7790426128d9565b336000908152600e60205260408082209290925560115491516001600160a01b03909216916108fc84150291849190818181858888f19350505050158015611bc3573d6000803e3d6000fd5b506000611bce610a5f565b9150506000611be6826001600160701b031685610eb2565b90506000611bf482866129d8565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611c42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6691906129eb565b6009549091506001600160a01b0316637ff36ab5848c611c84612345565b30426040518663ffffffff1660e01b8152600401611ca59493929190612a04565b60006040518083038185885af1158015611cc3573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052611cec9190810190612a84565b506007546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611d3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5e91906129eb565b611d6891906129d8565b60095460075460405163f305d71960e01b81526001600160a01b03918216600482015260248101849052604481018e9052606481018d90523360848201524260a482015292935060009291169063f305d71990869060c40160606040518083038185885af1158015611dde573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611e039190612b42565b3360008181526020819052604090205491945092507f1c349721eed47ef3e6aede3963c2597161fbd9d7be47bd891a7ecf27780b804c915060408051918252602082018d9052810184905260600160405180910390a2611e628161137d565b505050505050505050611e756001600655565b505050565b600080611e8660025490565b1115611eba576002546001600160a01b03831660009081526020819052604090205461124690670de0b6b3a76400006129c1565b506000919050565b919050565b6000610f0c82846129c1565b6000610f0c82846128d9565b6001600160a01b038316611f415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161093c565b6001600160a01b038216611fa25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161093c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146109cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b6000612069848461181a565b905060001981146120d157818110156120c45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161093c565b6120d18484848403611edf565b50505050565b60405162461bcd60e51b8152602060048201526014602482015273151c985b9cd9995c881b9bdd08185b1b1bddd95960621b604482015260640161093c565b6002600654036121685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161093c565b6002600655565b6121798282612484565b6121b361219461123683600a54611ec790919063ffffffff16565b6001600160a01b0384166000908152600b6020526040902054906122b0565b6001600160a01b039092166000908152600b602052604090209190915550565b6000600382111561223457508060006121ed6002836128b7565b6121f89060016128d9565b90505b8181101561222e5790508060028161221381866128b7565b61221d91906128d9565b61222791906128b7565b90506121fb565b50919050565b8115611ec257506001919050565b6000610f0c82846129d8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008181811215610b9557600080fd5b6000806122bd8385612b70565b9050600083121580156122d05750838112155b806122e557506000831280156122e557508381125b610f0c57600080fd5b6000808212156122fd57600080fd5b5090565b61230b82826125b6565b6121b361232661123683600a54611ec790919063ffffffff16565b6001600160a01b0384166000908152600b602052604090205490612438565b604080516002808252606080830184529260009291906020830190803683375050600954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156123b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d79190612987565b816000815181106123ea576123ea612b98565b6001600160a01b03928316602091820292909201015260075482519116908290600190811061241b5761241b612b98565b6001600160a01b0390921660209283029190910190910152919050565b60008082121580156124535750826124508382612bae565b13155b80612471575060008212801561247157508261246f8382612bae565b135b61247a57600080fd5b610f0c8284612bae565b6001600160a01b0382166124e45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161093c565b6001600160a01b038216600090815260208190526040902054818110156125585760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161093c565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b03821661260c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161093c565b806002600082825461261e91906128d9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b818110156126a257858101830151858201604001528201612686565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610eaf57600080fd5b600080604083850312156126eb57600080fd5b82356126f6816126c3565b946020939093013593505050565b60006020828403121561271657600080fd5b8135610f0c816126c3565b60008060006060848603121561273657600080fd5b8335612741816126c3565b92506020840135612751816126c3565b929592945050506040919091013590565b60006020828403121561277457600080fd5b5035919050565b6000806040838503121561278e57600080fd5b50508035926020909101359150565b6000806000606084860312156127b257600080fd5b83356127bd816126c3565b95602085013595506040909401359392505050565b600080604083850312156127e557600080fd5b82356127f0816126c3565b91506020830135612800816126c3565b809150509250929050565b8015158114610eaf57600080fd5b6000806000806080858703121561282f57600080fd5b843561283a8161280b565b9350602085013561284a8161280b565b9250604085013561285a8161280b565b9150606085013561286a8161280b565b939692955090935050565b60008060006060848603121561288a57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052601160045260246000fd5b6000826128d457634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610b9557610b956128a1565b600181811c9082168061290057607f821691505b60208210810361222e57634e487b7160e01b600052602260045260246000fd5b80516001600160701b0381168114611ec257600080fd5b60008060006060848603121561294c57600080fd5b61295584612920565b925061296360208501612920565b9150604084015163ffffffff8116811461297c57600080fd5b809150509250925092565b60006020828403121561299957600080fd5b8151610f0c816126c3565b6000602082840312156129b657600080fd5b8151610f0c8161280b565b8082028115828204841417610b9557610b956128a1565b81810381811115610b9557610b956128a1565b6000602082840312156129fd57600080fd5b5051919050565b600060808201868352602060808185015281875180845260a086019150828901935060005b81811015612a4e5784516001600160a01b031683529383019391830191600101612a29565b50506001600160a01b039690961660408501525050506060015292915050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215612a9757600080fd5b825167ffffffffffffffff80821115612aaf57600080fd5b818501915085601f830112612ac357600080fd5b815181811115612ad557612ad5612a6e565b8060051b604051601f19603f83011681018181108582111715612afa57612afa612a6e565b604052918252848201925083810185019188831115612b1857600080fd5b938501935b82851015612b3657845184529385019392850192612b1d565b98975050505050505050565b600080600060608486031215612b5757600080fd5b8351925060208401519150604084015190509250925092565b8082018281126000831280158216821582161715612b9057612b906128a1565b505092915050565b634e487b7160e01b600052603260045260246000fd5b8181036000831280158383131683831282161715612bce57612bce6128a1565b509291505056fea2646970667358221220fd83cbcbdad9cd178071904a340f82ae9ab60971c1b8ed85d7d81efa0600781164736f6c63430008130033

Deployed Bytecode

0x6080604052600436106102975760003560e01c80638da5cb5b1161015a578063c30ea2a2116100c1578063f0d396ed1161007a578063f0d396ed14610823578063f2fde38b14610843578063f3c85eba14610863578063f58d80c914610883578063f887ea40146108a3578063f9e87952146108c357600080fd5b8063c30ea2a214610740578063cb8fe02c14610761578063dbfc59ab14610781578063dd62ed3e146107b6578063e18bf122146107d6578063ea27c93c146107f657600080fd5b8063a9059cbb11610113578063a9059cbb1461067f578063ae04d45d1461069f578063b3f00674146106bf578063b6b55f25146106df578063bc4297e7146106ff578063be8529fc1461072057600080fd5b80638da5cb5b146105ab5780638e64fcd7146105dd5780639511d72f1461060a57806395d89b411461062a5780639c4e31481461063f578063a457c2d71461065f57600080fd5b80633c73ad87116101fe5780636d3036a7116101b75780636d3036a7146104e75780636eabfced146104ff57806370a082311461051f578063715018a61461055557806376154ddf1461056a578063872f0b971461058a57600080fd5b80633c73ad8714610446578063429093cc14610473578063494bf608146104935780634e71d92d1461049b578063574eab01146104b057806366e582aa146104d157600080fd5b806323b872dd1161025057806323b872dd146103945780632e1a7d4d146103b45780632e3702d5146103d4578063313ce567146103ea578063368519f314610406578063395093511461042657600080fd5b806306fdde03146102ab5780630902f1ac146102d6578063095ea7b31461030b5780630d6680871461033b57806315ba0e451461035f57806318160ddd1461037f57600080fd5b366102a6576102a46108f0565b005b600080fd5b3480156102b757600080fd5b506102c06109cd565b6040516102cd9190612675565b60405180910390f35b3480156102e257600080fd5b506102eb610a5f565b604080516001600160701b039384168152929091166020830152016102cd565b34801561031757600080fd5b5061032b6103263660046126d8565b610b81565b60405190151581526020016102cd565b34801561034757600080fd5b5061035160105481565b6040519081526020016102cd565b34801561036b57600080fd5b506102a461037a366004612704565b610b9b565b34801561038b57600080fd5b50600254610351565b3480156103a057600080fd5b5061032b6103af366004612721565b610bc5565b3480156103c057600080fd5b506102a46103cf366004612762565b610be9565b3480156103e057600080fd5b50610351600f5481565b3480156103f657600080fd5b50604051601281526020016102cd565b34801561041257600080fd5b5061035161042136600461277b565b610eb2565b34801561043257600080fd5b5061032b6104413660046126d8565b610f13565b34801561045257600080fd5b50610351610461366004612704565b600c6020526000908152604090205481565b34801561047f57600080fd5b506102a461048e366004612762565b610f35565b6102a46108f0565b3480156104a757600080fd5b506102a4610f7b565b3480156104bc57600080fd5b5060115461032b90600160a81b900460ff1681565b3480156104dd57600080fd5b50610351600a5481565b3480156104f357600080fd5b50610351600160801b81565b34801561050b57600080fd5b506102a461051a366004612704565b61114e565b34801561052b57600080fd5b5061035161053a366004612704565b6001600160a01b031660009081526020819052604090205490565b34801561056157600080fd5b506102a46111e2565b34801561057657600080fd5b50610351610585366004612704565b6111f4565b34801561059657600080fd5b5060115461032b90600160b01b900460ff1681565b3480156105b757600080fd5b506005546001600160a01b03165b6040516001600160a01b0390911681526020016102cd565b3480156105e957600080fd5b506103516105f8366004612704565b600d6020526000908152604090205481565b34801561061657600080fd5b506102a4610625366004612762565b611250565b34801561063657600080fd5b506102c06112ae565b34801561064b57600080fd5b506102a461065a366004612704565b6112bd565b34801561066b57600080fd5b5061032b61067a3660046126d8565b6112e7565b34801561068b57600080fd5b5061032b61069a3660046126d8565b611362565b3480156106ab57600080fd5b506102a46106ba366004612762565b611370565b3480156106cb57600080fd5b506011546105c5906001600160a01b031681565b3480156106eb57600080fd5b506102a46106fa366004612762565b61137d565b34801561070b57600080fd5b5060115461032b90600160b81b900460ff1681565b34801561072c57600080fd5b5061035161073b366004612704565b611662565b34801561074c57600080fd5b5060115461032b90600160a01b900460ff1681565b34801561076d57600080fd5b506007546105c5906001600160a01b031681565b34801561078d57600080fd5b506107a161079c36600461279d565b611688565b604080519283526020830191909152016102cd565b3480156107c257600080fd5b506103516107d13660046127d2565b61181a565b3480156107e257600080fd5b506008546105c5906001600160a01b031681565b34801561080257600080fd5b50610351610811366004612704565b600b6020526000908152604090205481565b34801561082f57600080fd5b506102a461083e366004612819565b611845565b34801561084f57600080fd5b506102a461085e366004612704565b6118ad565b34801561086f57600080fd5b506102a461087e366004612875565b611923565b34801561088f57600080fd5b5061035161089e366004612704565b611e7a565b3480156108af57600080fd5b506009546105c5906001600160a01b031681565b3480156108cf57600080fd5b506103516108de366004612704565b600e6020526000908152604090205481565b60006108fb60025490565b116109455760405162461bcd60e51b81526020600482015260156024820152744e6f776865726520746f206469737472696275746560581b60448201526064015b60405180910390fd5b34156109cb5761097861095760025490565b61096534600160801b611ec7565b61096f91906128b7565b600a5490611ed3565b600a8190555034600f600082825461099091906128d9565b909155505060405134815233907f2aaa7923c74576791f293c17c5b1617a0c94ad8beb3c351bef807fd8784268439060200160405180910390a25b565b6060600380546109dc906128ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610a08906128ec565b8015610a555780601f10610a2a57610100808354040283529160200191610a55565b820191906000526020600020905b815481529060010190602001808311610a3857829003601f168201915b5050505050905090565b600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610ab8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610adc9190612937565b5091509150600960009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b589190612987565b6007546001600160a01b03918216911610610b74578082610b77565b81815b9350935050509091565b600033610b8f818585611edf565b60019150505b92915050565b610ba3612003565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600033610bd385828561205d565b610bde8585856120d7565b506001949350505050565b610bf1612116565b601154600160a81b900460ff16610c415760405162461bcd60e51b815260206004820152601460248201527315da5d1a191c985dc81b9bdd08185b1b1bddd95960621b604482015260640161093c565b60008111610c885760405162461bcd60e51b8152602060048201526014602482015273416d6f756e742063616e2774206265207a65726f60601b604482015260640161093c565b33600090815260208190526040902054811115610ce25760405162461bcd60e51b8152602060048201526018602482015277416d6f756e74206f76657220757365722062616c616e636560401b604482015260640161093c565b60105415610d3857336000908152600e6020526040902054421015610d385760405162461bcd60e51b815260206004820152600c60248201526b14dd1a5b1b081b1bd8dad95960a21b604482015260640161093c565b6000610d4333611662565b336000908152600c6020526040902054909150610d609082611ed3565b336000908152600c6020526040902055601054610d7d90426128d9565b336000818152600e60205260409081902092909255600854915163a9059cbb60e01b81526004810191909152602481018490526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610de4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0891906129a4565b50610e13338361216f565b604080518381526020810183905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2604051600090309083908381818185875af1925050503d8060008114610e90576040519150601f19603f3d011682016040523d82523d6000602084013e610e95565b606091505b5050905080610ea357600080fd5b5050610eaf6001600655565b50565b60006107ca610f02610ec6856107cd611ec7565b610efc610ef7610ed987623cda20611ec7565b610ee689623cda29611ec7565b610ef091906128d9565b8890611ec7565b6121d3565b90612242565b610f0c91906128b7565b9392505050565b600033610b8f818585610f26838361181a565b610f3091906128d9565b611edf565b610f3d612003565b6005546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610f77573d6000803e3d6000fd5b5050565b610f83612116565b601154600160b01b900460ff16610fd05760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd08185b1b1bddd959607a1b604482015260640161093c565b6000610fdb33611662565b9050600081116110205760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b604482015260640161093c565b6000606461102f8360506129c1565b61103991906128b7565b9050600061104782846129d8565b336000908152600c60205260409020549091506110649084611ed3565b336000908152600c602052604090205560105461108190426128d9565b336000818152600e602090815260408083209490945581905291909120547f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf79060408051918252602082018790520160405180910390a2604051339083156108fc029084906000818181858888f19350505050158015611105573d6000803e3d6000fd5b506011546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611140573d6000803e3d6000fd5b505050506109cb6001600655565b611156612003565b600780546001600160a01b0319166001600160a01b0383811691821790925560095460405163095ea7b360e01b81529216600483015260001960248301529063095ea7b3906044015b6020604051808303816000875af11580156111be573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7791906129a4565b6111ea612003565b6109cb600061224e565b6001600160a01b0381166000908152600b602090815260408083205491839052822054600a54600160801b92611246926112419261123b916112369190611ec7565b6122a0565b906122b0565b6122ee565b610b9591906128b7565b611258612003565b6008546001600160a01b031663a9059cbb61127b6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810184905260440161119f565b6060600480546109dc906128ec565b6112c5612003565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b600033816112f5828661181a565b9050838110156113555760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161093c565b610bde8286868403611edf565b600033610b8f8185856120d7565b611378612003565b601055565b601154600160a01b900460ff166113cc5760405162461bcd60e51b815260206004820152601360248201527211195c1bdcda5d081b9bdd08185b1b1bddd959606a1b604482015260640161093c565b600081116114135760405162461bcd60e51b8152602060048201526014602482015273416d6f756e742063616e2774206265207a65726f60601b604482015260640161093c565b6008546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561145b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147f91906129eb565b8111156114c95760405162461bcd60e51b8152602060048201526018602482015277416d6f756e74206f76657220757365722062616c616e636560401b604482015260640161093c565b600854604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015611517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153b91906129eb565b8111156115815760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820616c6c6f77616e636560601b604482015260640161093c565b60105461158e90426128d9565b336000818152600e6020526040908190209290925560085491516323b872dd60e01b81526004810191909152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156115fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161f91906129a4565b5061162a3382612301565b60405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a250565b6001600160a01b0381166000908152600c6020526040812054610b9590610efc846111f4565b600080600061169686611662565b9050806000036116ad576000809250925050611812565b600060646116bc8360506129c1565b6116c691906128b7565b90506000806116d3610a5f565b9150915060006116ec826001600160701b031685610eb2565b905060006116fa82866129d8565b600954604051630153543560e21b8152600481018590526001600160701b038087166024830152871660448201529192506000916001600160a01b039091169063054d50d490606401602060405180830381865afa158015611760573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178491906129eb565b90506000655af3107a40006117998d846129c1565b6117a8906402540be4006129c1565b6117b291906128b7565b905060006117c082846129d8565b90506000655af3107a40006117d58e876129c1565b6117e4906402540be4006129c1565b6117ee91906128b7565b905060006117fc82876129d8565b929c50919a506118129950505050505050505050565b935093915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61184d612003565b6011805461ffff60a01b1916600160a01b9515159590950260ff60a81b191694909417600160a81b931515939093029290921761ffff60b01b1916600160b01b9115159190910260ff60b81b191617600160b81b91151591909102179055565b6118b5612003565b6001600160a01b03811661191a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161093c565b610eaf8161224e565b61192b612116565b601154600160b81b900460ff1661197b5760405162461bcd60e51b815260206004820152601460248201527310dbdb5c1bdd5b99081b9bdd08185b1b1bddd95960621b604482015260640161093c565b6007546001600160a01b03166119d35760405162461bcd60e51b815260206004820152601860248201527f536372616d626c652061646472657373206e6f74207365740000000000000000604482015260640161093c565b82600003611a235760405162461bcd60e51b815260206004820152601a60248201527f616d6f756e744f75744d696e2063616e2774206265207a65726f000000000000604482015260640161093c565b81600003611a735760405162461bcd60e51b815260206004820152601c60248201527f616d6f756e74546f6b656e4d696e2063616e2774206265207a65726f00000000604482015260640161093c565b80600003611ac35760405162461bcd60e51b815260206004820152601a60248201527f616d6f756e744554484d696e2063616e2774206265207a65726f000000000000604482015260640161093c565b6000611ace33611662565b905060008111611b165760405162461bcd60e51b8152602060048201526013602482015272139bdd1a1a5b99c81d1bc818dbdb5c1bdd5b99606a1b604482015260640161093c565b60006064611b258360506129c1565b611b2f91906128b7565b90506000611b3d82846129d8565b336000908152600c6020526040902054909150611b5a9084611ed3565b336000908152600c6020526040902055601054611b7790426128d9565b336000908152600e60205260408082209290925560115491516001600160a01b03909216916108fc84150291849190818181858888f19350505050158015611bc3573d6000803e3d6000fd5b506000611bce610a5f565b9150506000611be6826001600160701b031685610eb2565b90506000611bf482866129d8565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611c42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6691906129eb565b6009549091506001600160a01b0316637ff36ab5848c611c84612345565b30426040518663ffffffff1660e01b8152600401611ca59493929190612a04565b60006040518083038185885af1158015611cc3573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052611cec9190810190612a84565b506007546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611d3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5e91906129eb565b611d6891906129d8565b60095460075460405163f305d71960e01b81526001600160a01b03918216600482015260248101849052604481018e9052606481018d90523360848201524260a482015292935060009291169063f305d71990869060c40160606040518083038185885af1158015611dde573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611e039190612b42565b3360008181526020819052604090205491945092507f1c349721eed47ef3e6aede3963c2597161fbd9d7be47bd891a7ecf27780b804c915060408051918252602082018d9052810184905260600160405180910390a2611e628161137d565b505050505050505050611e756001600655565b505050565b600080611e8660025490565b1115611eba576002546001600160a01b03831660009081526020819052604090205461124690670de0b6b3a76400006129c1565b506000919050565b919050565b6000610f0c82846129c1565b6000610f0c82846128d9565b6001600160a01b038316611f415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161093c565b6001600160a01b038216611fa25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161093c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146109cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161093c565b6000612069848461181a565b905060001981146120d157818110156120c45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161093c565b6120d18484848403611edf565b50505050565b60405162461bcd60e51b8152602060048201526014602482015273151c985b9cd9995c881b9bdd08185b1b1bddd95960621b604482015260640161093c565b6002600654036121685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161093c565b6002600655565b6121798282612484565b6121b361219461123683600a54611ec790919063ffffffff16565b6001600160a01b0384166000908152600b6020526040902054906122b0565b6001600160a01b039092166000908152600b602052604090209190915550565b6000600382111561223457508060006121ed6002836128b7565b6121f89060016128d9565b90505b8181101561222e5790508060028161221381866128b7565b61221d91906128d9565b61222791906128b7565b90506121fb565b50919050565b8115611ec257506001919050565b6000610f0c82846129d8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008181811215610b9557600080fd5b6000806122bd8385612b70565b9050600083121580156122d05750838112155b806122e557506000831280156122e557508381125b610f0c57600080fd5b6000808212156122fd57600080fd5b5090565b61230b82826125b6565b6121b361232661123683600a54611ec790919063ffffffff16565b6001600160a01b0384166000908152600b602052604090205490612438565b604080516002808252606080830184529260009291906020830190803683375050600954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa1580156123b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d79190612987565b816000815181106123ea576123ea612b98565b6001600160a01b03928316602091820292909201015260075482519116908290600190811061241b5761241b612b98565b6001600160a01b0390921660209283029190910190910152919050565b60008082121580156124535750826124508382612bae565b13155b80612471575060008212801561247157508261246f8382612bae565b135b61247a57600080fd5b610f0c8284612bae565b6001600160a01b0382166124e45760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161093c565b6001600160a01b038216600090815260208190526040902054818110156125585760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161093c565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b03821661260c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161093c565b806002600082825461261e91906128d9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b818110156126a257858101830151858201604001528201612686565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610eaf57600080fd5b600080604083850312156126eb57600080fd5b82356126f6816126c3565b946020939093013593505050565b60006020828403121561271657600080fd5b8135610f0c816126c3565b60008060006060848603121561273657600080fd5b8335612741816126c3565b92506020840135612751816126c3565b929592945050506040919091013590565b60006020828403121561277457600080fd5b5035919050565b6000806040838503121561278e57600080fd5b50508035926020909101359150565b6000806000606084860312156127b257600080fd5b83356127bd816126c3565b95602085013595506040909401359392505050565b600080604083850312156127e557600080fd5b82356127f0816126c3565b91506020830135612800816126c3565b809150509250929050565b8015158114610eaf57600080fd5b6000806000806080858703121561282f57600080fd5b843561283a8161280b565b9350602085013561284a8161280b565b9250604085013561285a8161280b565b9150606085013561286a8161280b565b939692955090935050565b60008060006060848603121561288a57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052601160045260246000fd5b6000826128d457634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610b9557610b956128a1565b600181811c9082168061290057607f821691505b60208210810361222e57634e487b7160e01b600052602260045260246000fd5b80516001600160701b0381168114611ec257600080fd5b60008060006060848603121561294c57600080fd5b61295584612920565b925061296360208501612920565b9150604084015163ffffffff8116811461297c57600080fd5b809150509250925092565b60006020828403121561299957600080fd5b8151610f0c816126c3565b6000602082840312156129b657600080fd5b8151610f0c8161280b565b8082028115828204841417610b9557610b956128a1565b81810381811115610b9557610b956128a1565b6000602082840312156129fd57600080fd5b5051919050565b600060808201868352602060808185015281875180845260a086019150828901935060005b81811015612a4e5784516001600160a01b031683529383019391830191600101612a29565b50506001600160a01b039690961660408501525050506060015292915050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215612a9757600080fd5b825167ffffffffffffffff80821115612aaf57600080fd5b818501915085601f830112612ac357600080fd5b815181811115612ad557612ad5612a6e565b8060051b604051601f19603f83011681018181108582111715612afa57612afa612a6e565b604052918252848201925083810185019188831115612b1857600080fd5b938501935b82851015612b3657845184529385019392850192612b1d565b98975050505050505050565b600080600060608486031215612b5757600080fd5b8351925060208401519150604084015190509250925092565b8082018281126000831280158216821582161715612b9057612b906128a1565b505092915050565b634e487b7160e01b600052603260045260246000fd5b8181036000831280158383131683831282161715612bce57612bce6128a1565b509291505056fea2646970667358221220fd83cbcbdad9cd178071904a340f82ae9ab60971c1b8ed85d7d81efa0600781164736f6c63430008130033

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.