Contract 0x5f1d751f447236f486f4268b883782897a902379

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xa3fea72966c5d3a0da2611ce6ce47873f5d1e385c6fb33a903d79f5a8feb20a2Set Fee To132272022024-03-29 3:00:4050 days 10 hrs agoEbisusBay: Deployer IN  EbisusBay: Ryoshi Factory0 CRO0.1544841 5,048.5
0x2ab9f2d0d7360995c5a333d06d60f842fcfb21068a2e71997f5e8a311a1a34b0Set Default Fee131950472024-03-27 0:28:2452 days 13 hrs agoEbisusBay: Deployer IN  EbisusBay: Ryoshi Factory0 CRO0.1422181 5,050
0x749e204d50fedf444547205b9468ebd255355bd51be4943e674451da57fabc8bSet Fee To131950462024-03-27 0:28:1852 days 13 hrs agoEbisusBay: Deployer IN  EbisusBay: Ryoshi Factory0 CRO0.24081345 5,048.5
0xed106471daa94d5695d2ea98c005c639d426c6371c31c6d23923d614ca113edc0x60806040131950432024-03-27 0:28:0252 days 13 hrs agoEbisusBay: Deployer IN  Create: RyoshiFactory0 CRO15.7916928545 5,048.5
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6cfd728ad36f7f0f20bfbd5435d469fea5742585dff185e13091bcefcffcfbde139886262024-05-18 5:01:358 hrs 57 mins ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x5fb154f3fad4f701daeaec25021f454533f3e59f81c494e1686eb978e9f2a1f9139882382024-05-18 4:24:449 hrs 33 mins ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xfcaef5e662a27680df29ded31f31630d9a6ca4c6197611851f7f5f0d36715939139848792024-05-17 23:05:2814 hrs 53 mins ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x11bf650e7fb32946c3eaa6842845973d1e9071c5ebbf5f7556f84f585fe1e162139841992024-05-17 22:00:4615 hrs 57 mins ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xd688eaabc84b05324da609efee73cdbe0ad359383950bdc5b5cccaf628d87b68139751802024-05-17 7:40:141 day 6 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xf9bbea555c625255257eb6e8840f87bf12d85893dec66393db05efdb83586192139749112024-05-17 7:14:351 day 6 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xc6671629385880465adaa5172c6ec4bf6b5dcb29937ccd56b27f3a77f8d7c02e139744052024-05-17 6:26:281 day 7 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xe37dee6996a5387a80524cb0aef358409efe5917e15ecd26da6d81fe26054957139740492024-05-17 5:52:361 day 8 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x29420c6c67ae79a92365b9f6815ff8f7edb7fa37b199a105f32f7b1040eb5b1c139711752024-05-17 1:19:431 day 12 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x3bbd3eb3ecc95a6a2fa00eea1a494c2e80ba30daa66996044c8308bbafaca10a139648242024-05-16 15:15:501 day 22 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x4f06f95265a86c1d32dbabeb1044ea06c79d31e5c2747bb4b80730e49ed3fd91139613882024-05-16 9:48:322 days 4 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xdfe9021f41cac9b5cc03585e5bfe6ab762d99fb91eff725484c4f559586156d4139518842024-05-15 18:45:212 days 19 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xe541b21a5da9483d3556b7c1b95e463c56331efe4bec903eab5c53103b10f160139505342024-05-15 16:36:562 days 21 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x6bf44cb015ce3eaba3f6fd2121bed9681fe6d46b1c180646b1938cf2c000a058139496882024-05-15 15:16:272 days 22 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xa627c13cdee209a1a2e0a37dee6c6dc0315de89b9c2f84fd82c7fc8d25bcf19a139495072024-05-15 14:59:132 days 22 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xe7f8ab33d07ec607e11929aead04a5cb0c2fe520fe948e2898c3a9b75ec329d5139494822024-05-15 14:56:502 days 23 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xac25b2c8e8647a26d16c55d95f1ef1672cfec9d11ff6835d2a647c7aec248f26139494272024-05-15 14:51:372 days 23 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xba1b584d4214e3fa748e6230e69a9e64ae908c881f8e98c45895bb33732c4fb5139494132024-05-15 14:50:172 days 23 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x1ed7fa545efe7fae2947a336679aca68708586eee823ad401684a241511d25ea139471022024-05-15 11:10:273 days 2 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x4f37f33f0cf237daf753bece4359f6dacb848163dc645ba6594ca51adde58d3d139403592024-05-15 0:30:283 days 13 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x458b79a11f9781697d429734a9e88a9c12bb7ac21c8c294db1df2075b312716f139355982024-05-14 16:58:133 days 21 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x0cc77428861650b9668970757663f810051804d19bd521449e05c5d2b7980b92139350682024-05-14 16:07:513 days 21 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x8b84ba17f7c056ed3b6952a067e0f32b4c3467700c80a40f0213e5eaf80eb026139298822024-05-14 7:54:314 days 6 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0x0ce72f4263176fcb6eaa6441e5e2b3ebde8d26fa369f4913d9bb4d263a830fe1139298212024-05-14 7:48:444 days 6 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
0xd0152a0e89aadcb564ce063f17c74eeb1e24180d80eacd0a54712b1c128792f1139280252024-05-14 4:58:294 days 9 hrs ago EbisusBay: Ryoshi Factory  Contract Creation0 CRO
[ Download CSV Export 
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RyoshiFactory

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion
File 1 of 10 : IERC20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

interface IERC20 {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(
        address owner,
        address spender
    ) external view returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);
}

File 2 of 10 : IRyoshiCallee.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

interface IRyoshiCallee {
    function RyoshiCall(
        address sender,
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external;
}

File 3 of 10 : IRyoshiERC20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

interface IRyoshiERC20 {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 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 (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(
        address owner,
        address spender
    ) external view returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 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 (uint256);

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

File 4 of 10 : IRyoshiFactory.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

interface IRyoshiFactory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    event FeeSetterChanged(address indexed oldSetter, address indexed newSetter);
    event FeeToChanged(address indexed oldFeeTo, address indexed newFeeTo);
    event SwapFeeChanged(address indexed pair, uint32 oldSwapFee, uint32 newSwapFee);
    event DefaultFeeChanged(uint32 oldSwapFee, uint32 newSwapFee);

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function swapFee() external view returns (uint32);

    function getPair(
        address tokenA,
        address tokenB
    ) external view returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

    function createPair(
        address tokenA,
        address tokenB
    ) external returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
    function setSwapFee(address pair, uint32 swapFee) external;
}

File 5 of 10 : IRyoshiPair.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

import {IRyoshiERC20} from "./IRyoshiERC20.sol";

interface IRyoshiPair is IRyoshiERC20 {
    event Mint(address indexed sender, uint256 amount0, uint256 amount1);
    event Burn(
        address indexed sender,
        uint256 amount0,
        uint256 amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

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

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(
        address to
    ) external returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

File 6 of 10 : Math.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

// a library for performing various math operations

library Math {
    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    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;
        }
    }
}

File 7 of 10 : UQ112x112.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))

// range: [0, 2**112 - 1]
// resolution: 1 / 2**112

library UQ112x112 {
    //solhint-disable-next-line state-visibility
    uint224 constant Q112 = 2 ** 112;

    // encode a uint112 as a UQ112x112
    function encode(uint112 y) internal pure returns (uint224 z) {
        z = uint224(y) * Q112; // never overflows
    }

    // divide a UQ112x112 by a uint112, returning a UQ112x112
    function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {
        z = x / uint224(y);
    }
}

File 8 of 10 : RyoshiERC20.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

import {IRyoshiERC20} from "./interfaces/IRyoshiERC20.sol";

contract RyoshiERC20 is IRyoshiERC20 {
    string public constant override name = "Ryoshi LPs";
    string public constant override symbol = "RYOSHI-LP";
    uint8 public constant override decimals = 18;
    uint256 public override totalSupply;
    mapping(address => uint256) public override balanceOf;
    mapping(address => mapping(address => uint256)) public override allowance;

    bytes32 public override DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant override PERMIT_TYPEHASH =
        0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint256) public override nonces;

    constructor() {
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                ),
                keccak256(bytes(name)),
                keccak256(bytes("1")),
                block.chainid,
                address(this)
            )
        );
    }

    function _mint(address to, uint256 value) internal {
        totalSupply += value;
        balanceOf[to] += value;
        emit Transfer(address(0), to, value);
    }

    function _burn(address from, uint256 value) internal {
        balanceOf[from] -= value;
        totalSupply -= value;
        emit Transfer(from, address(0), value);
    }

    function _approve(address owner, address spender, uint256 value) private {
        allowance[owner][spender] = value;
        emit Approval(owner, spender, value);
    }

    function _transfer(address from, address to, uint256 value) private {
        balanceOf[from] -= value;
        balanceOf[to] += value;
        emit Transfer(from, to, value);
    }

    function approve(
        address spender,
        uint256 value
    ) external override returns (bool) {
        _approve(msg.sender, spender, value);
        return true;
    }

    function transfer(
        address to,
        uint256 value
    ) external override returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external override returns (bool) {
        if (allowance[from][msg.sender] != type(uint256).max) {
            allowance[from][msg.sender] -= value;
        }
        _transfer(from, to, value);
        return true;
    }

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override {
        require(deadline >= block.timestamp, "Ryoshi: EXPIRED");
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                DOMAIN_SEPARATOR,
                keccak256(
                    abi.encode(
                        PERMIT_TYPEHASH,
                        owner,
                        spender,
                        value,
                        nonces[owner]++,
                        deadline
                    )
                )
            )
        );
        address recoveredAddress = ecrecover(digest, v, r, s);
        require(
            recoveredAddress != address(0) && recoveredAddress == owner,
            "Ryoshi: INVALID_SIGNATURE"
        );
        _approve(owner, spender, value);
    }
}

File 9 of 10 : RyoshiFactory.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

import {IRyoshiFactory} from "./interfaces/IRyoshiFactory.sol";
import {IRyoshiPair} from "./interfaces/IRyoshiPair.sol";
import {RyoshiPair} from "./RyoshiPair.sol";

contract RyoshiFactory is IRyoshiFactory {
    bytes32 public constant PAIR_HASH =
        keccak256(type(RyoshiPair).creationCode);

    address public override feeTo;
    address public override feeToSetter;
    uint32 public override swapFee = 30; // 0.3% default 

    mapping(address => mapping(address => address)) public override getPair;
    address[] public override allPairs;

    constructor(address _feeToSetter) {
        feeToSetter = _feeToSetter;
    }

    function allPairsLength() external view override returns (uint256) {
        return allPairs.length;
    }

    function createPair(
        address tokenA,
        address tokenB
    ) external override returns (address pair) {
        require(tokenA != tokenB, "Ryoshi: IDENTICAL_ADDRESSES");
        (address token0, address token1) = tokenA < tokenB
            ? (tokenA, tokenB)
            : (tokenB, tokenA);
        require(token0 != address(0), "Ryoshi: ZERO_ADDRESS");
        require(
            getPair[token0][token1] == address(0),
            "Ryoshi: PAIR_EXISTS"
        ); // single check is sufficient

        pair = address(
            new RyoshiPair{
                salt: keccak256(abi.encodePacked(token0, token1))
            }()
        );
        IRyoshiPair(pair).initialize(token0, token1);
        getPair[token0][token1] = pair;
        getPair[token1][token0] = pair; // populate mapping in the reverse direction
        RyoshiPair(pair).setSwapFee(swapFee);
        allPairs.push(pair);
        emit PairCreated(token0, token1, pair, allPairs.length);
    }

    function setFeeTo(address _feeTo) external override {
        require(msg.sender == feeToSetter, "Ryoshi: FORBIDDEN");
        emit FeeToChanged(feeTo, _feeTo);
        feeTo = _feeTo;
    }

    function setFeeToSetter(address _feeToSetter) external override {
        require(msg.sender == feeToSetter, "Ryoshi: FORBIDDEN");
        emit FeeSetterChanged(feeToSetter, _feeToSetter);
        feeToSetter = _feeToSetter;
    }

    function setDefaultFee(uint32 _swapFee) external  {
        require(msg.sender == feeToSetter, "Ryoshi: FORBIDDEN");
        require(_swapFee > 0, "RyoshiPair: lower then 0");
        require(_swapFee <= 100, 'RyoshiPair: FORBIDDEN_FEE');
        swapFee = _swapFee;
        emit DefaultFeeChanged(swapFee, _swapFee);
    }

    function setSwapFee(address _pair, uint32 _swapFee) external override{
        require(msg.sender == feeToSetter, 'Ryoshi: FORBIDDEN');
        require(_swapFee > 0, "RyoshiPair: lower then 0");
        require(_swapFee <= 100, 'RyoshiPair: FORBIDDEN_FEE');
        RyoshiPair(_pair).setSwapFee(_swapFee);
        emit SwapFeeChanged(_pair, swapFee, _swapFee);
    }
}

File 10 of 10 : RyoshiPair.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity =0.8.4;

import {IRyoshiPair} from "./interfaces/IRyoshiPair.sol";
import {RyoshiERC20} from "./RyoshiERC20.sol";
import {Math} from "./libraries/Math.sol";
import {UQ112x112} from "./libraries/UQ112x112.sol";
import {IERC20} from "./interfaces/IERC20.sol";
import {IRyoshiFactory} from "./interfaces/IRyoshiFactory.sol";
import {IRyoshiCallee} from "./interfaces/IRyoshiCallee.sol";

contract RyoshiPair is IRyoshiPair, RyoshiERC20 {
    using UQ112x112 for uint224;

    uint256 public constant override MINIMUM_LIQUIDITY = 10 ** 3;

    address public override factory;
    address public override token0;
    address public override token1;

    uint112 private reserve0; // uses single storage slot, accessible via getReserves
    uint112 private reserve1; // uses single storage slot, accessible via getReserves
    uint32 private blockTimestampLast; // uses single storage slot, accessible via getReserves

    uint256 public override price0CumulativeLast;
    uint256 public override price1CumulativeLast;
    uint256 public override kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event
    uint32 public swapFee;

    uint256 private unlocked = 1;
    modifier lock() {
        require(unlocked == 1, "Ryoshi: LOCKED");
        unlocked = 0;
        _;
        unlocked = 1;
    }

    function getReserves()
        public
        view
        override
        returns (
            uint112 _reserve0,
            uint112 _reserve1,
            uint32 _blockTimestampLast
        )
    {
        _reserve0 = reserve0;
        _reserve1 = reserve1;
        _blockTimestampLast = blockTimestampLast;
    }

    function _safeTransfer(address token, address to, uint256 value) private {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.transfer.selector, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "Ryoshi: TRANSFER_FAILED"
        );
    }

    constructor() {
        factory = msg.sender;
    }

    // called once by the factory at time of deployment
    function initialize(address _token0, address _token1) external override {
        require(msg.sender == factory, "Ryoshi: FORBIDDEN"); // sufficient check
        token0 = _token0;
        token1 = _token1;
    }

    function setSwapFee(uint32 _swapFee) external {
        require(msg.sender == factory, 'RyoshiPair: FORBIDDEN');
        swapFee = _swapFee;
    }

    // update reserves and, on the first call per block, price accumulators
    function _update(
        uint256 balance0,
        uint256 balance1,
        uint112 _reserve0,
        uint112 _reserve1
    ) private {
        require(
            balance0 <= type(uint112).max && balance1 <= type(uint112).max,
            "Ryoshi: OVERFLOW"
        );
        uint32 blockTimestamp = uint32(block.timestamp % 2 ** 32);
        unchecked {
            uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
            if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
                // * never overflows, and + overflow is desired
                price0CumulativeLast +=
                    uint256(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) *
                    timeElapsed;
                price1CumulativeLast +=
                    uint256(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) *
                    timeElapsed;
            }
        }
        reserve0 = uint112(balance0);
        reserve1 = uint112(balance1);
        blockTimestampLast = blockTimestamp;
        emit Sync(reserve0, reserve1);
    }

    // if fee is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k)
    function _mintFee(
        uint112 _reserve0,
        uint112 _reserve1
    ) private returns (bool feeOn) {
        address feeTo = IRyoshiFactory(factory).feeTo();
        feeOn = feeTo != address(0);
        uint256 _kLast = kLast; // gas savings
        if (feeOn) {
            if (_kLast != 0) {
                uint256 rootK = Math.sqrt(uint256(_reserve0) * _reserve1);
                uint256 rootKLast = Math.sqrt(_kLast);
                if (rootK > rootKLast) {
                    uint256 numerator = totalSupply * (rootK - rootKLast);
                    uint256 denominator = rootK * 5 + rootKLast;
                    uint256 liquidity = numerator / denominator;
                    if (liquidity > 0) _mint(feeTo, liquidity);
                }
            }
        } else if (_kLast != 0) {
            kLast = 0;
        }
    }

    // this low-level function should be called from a contract which performs important safety checks
    function mint(
        address to
    ) external override lock returns (uint256 liquidity) {
        (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings
        uint256 balance0 = IERC20(token0).balanceOf(address(this));
        uint256 balance1 = IERC20(token1).balanceOf(address(this));
        uint256 amount0 = balance0 - _reserve0;
        uint256 amount1 = balance1 - _reserve1;

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint256 _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        if (_totalSupply == 0) {
            liquidity = Math.sqrt(amount0 * amount1) - MINIMUM_LIQUIDITY;
            _mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
        } else {
            liquidity = Math.min(
                (amount0 * _totalSupply) / _reserve0,
                (amount1 * _totalSupply) / _reserve1
            );
        }
        require(liquidity > 0, "Ryoshi: INSUFFICIENT_LIQUIDITY_MINTED");
        _mint(to, liquidity);

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint256(reserve0) * reserve1; // reserve0 and reserve1 are up-to-date
        emit Mint(msg.sender, amount0, amount1);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function burn(
        address to
    ) external override lock returns (uint256 amount0, uint256 amount1) {
        (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings
        address _token0 = token0; // gas savings
        address _token1 = token1; // gas savings
        uint256 balance0 = IERC20(_token0).balanceOf(address(this));
        uint256 balance1 = IERC20(_token1).balanceOf(address(this));
        uint256 liquidity = balanceOf[address(this)];

        bool feeOn = _mintFee(_reserve0, _reserve1);
        uint256 _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        amount0 = (liquidity * balance0) / _totalSupply; // using balances ensures pro-rata distribution
        amount1 = (liquidity * balance1) / _totalSupply; // using balances ensures pro-rata distribution
        require(
            amount0 > 0 && amount1 > 0,
            "Ryoshi: INSUFFICIENT_LIQUIDITY_BURNED"
        );
        _burn(address(this), liquidity);
        _safeTransfer(_token0, to, amount0);
        _safeTransfer(_token1, to, amount1);
        balance0 = IERC20(_token0).balanceOf(address(this));
        balance1 = IERC20(_token1).balanceOf(address(this));

        _update(balance0, balance1, _reserve0, _reserve1);
        if (feeOn) kLast = uint256(reserve0) * reserve1; // reserve0 and reserve1 are up-to-date
        emit Burn(msg.sender, amount0, amount1, to);
    }

    // this low-level function should be called from a contract which performs important safety checks
    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external override lock {
        require(
            amount0Out > 0 || amount1Out > 0,
            "Ryoshi: INSUFFICIENT_OUTPUT_AMOUNT"
        );
        (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings
        require(
            amount0Out < _reserve0 && amount1Out < _reserve1,
            "Ryoshi: INSUFFICIENT_LIQUIDITY"
        );

        uint256 balance0;
        uint256 balance1;
        {
            // scope for _token{0,1}, avoids stack too deep errors
            address _token0 = token0;
            address _token1 = token1;
            require(to != _token0 && to != _token1, "Ryoshi: INVALID_TO");
            if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out); // optimistically transfer tokens
            if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out); // optimistically transfer tokens
            if (data.length > 0)
                IRyoshiCallee(to).RyoshiCall(
                    msg.sender,
                    amount0Out,
                    amount1Out,
                    data
                );
            balance0 = IERC20(_token0).balanceOf(address(this));
            balance1 = IERC20(_token1).balanceOf(address(this));
        }
        uint256 amount0In = balance0 > _reserve0 - amount0Out
            ? balance0 - (_reserve0 - amount0Out)
            : 0;
        uint256 amount1In = balance1 > _reserve1 - amount1Out
            ? balance1 - (_reserve1 - amount1Out)
            : 0;
        require(
            amount0In > 0 || amount1In > 0,
            "Ryoshi: INSUFFICIENT_INPUT_AMOUNT"
        );
        {
            // scope for reserve{0,1}Adjusted, avoids stack too deep errors
            uint256 balance0Adjusted = balance0 * 10000 - amount0In * swapFee;
            uint256 balance1Adjusted = balance1 * 10000 - amount1In * swapFee;
            require(
                balance0Adjusted * balance1Adjusted >=
                    uint256(_reserve0) * _reserve1 * 10000 ** 2,
                "Ryoshi: K"
            );
        }

        _update(balance0, balance1, _reserve0, _reserve1);
        emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
    }

    // force balances to match reserves
    function skim(address to) external override lock {
        address _token0 = token0; // gas savings
        address _token1 = token1; // gas savings
        _safeTransfer(
            _token0,
            to,
            IERC20(_token0).balanceOf(address(this)) - reserve0
        );
        _safeTransfer(
            _token1,
            to,
            IERC20(_token1).balanceOf(address(this)) - reserve1
        );
    }

    // force reserves to match balances
    function sync() external override lock {
        _update(
            IERC20(token0).balanceOf(address(this)),
            IERC20(token1).balanceOf(address(this)),
            reserve0,
            reserve1
        );
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 9999
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"oldSwapFee","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"newSwapFee","type":"uint32"}],"name":"DefaultFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldSetter","type":"address"},{"indexed":true,"internalType":"address","name":"newSetter","type":"address"}],"name":"FeeSetterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldFeeTo","type":"address"},{"indexed":true,"internalType":"address","name":"newFeeTo","type":"address"}],"name":"FeeToChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"PairCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint32","name":"oldSwapFee","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"newSwapFee","type":"uint32"}],"name":"SwapFeeChanged","type":"event"},{"inputs":[],"name":"PAIR_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allPairsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"createPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeToSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_swapFee","type":"uint32"}],"name":"setDefaultFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeTo","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeToSetter","type":"address"}],"name":"setFeeToSetter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pair","type":"address"},{"internalType":"uint32","name":"_swapFee","type":"uint32"}],"name":"setSwapFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapFee","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"}]

60806040526001805463ffffffff60a01b1916600f60a11b17905534801561002657600080fd5b5060405161381b38038061381b8339810160408190526100459161006a565b600180546001600160a01b0319166001600160a01b0392909216919091179055610098565b60006020828403121561007b578081fd5b81516001600160a01b0381168114610091578182fd5b9392505050565b613774806100a76000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80639e68ceb811610081578063c9c653961161005b578063c9c65396146101e8578063e6a43905146101fb578063f46901ed1461023c57600080fd5b80639e68ceb8146101ad578063a2e74af6146101c2578063be465990146101d557600080fd5b806354cf2aeb116100b257806354cf2aeb14610156578063574f2ba31461019357806364f91c72146101a557600080fd5b8063017e7e58146100d9578063094b7415146101235780631e3dd18b14610143575b600080fd5b6000546100f99073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6001546100f99073ffffffffffffffffffffffffffffffffffffffff1681565b6100f9610151366004610eaf565b61024f565b60015461017e9074010000000000000000000000000000000000000000900463ffffffff1681565b60405163ffffffff909116815260200161011a565b6003545b60405190815260200161011a565b610197610286565b6101c06101bb366004610e86565b6102b3565b005b6101c06101d0366004610e33565b610517565b6101c06101e3366004610ec7565b610626565b6100f96101f6366004610e54565b610818565b6100f9610209366004610e54565b600260209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b6101c061024a366004610e33565b610cdb565b6003818154811061025f57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60405161029560208201610de9565b6020820181038252601f19601f820116604052508051906020012081565b60015473ffffffffffffffffffffffffffffffffffffffff163314610339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f52796f7368693a20464f5242494444454e00000000000000000000000000000060448201526064015b60405180910390fd5b60008163ffffffff16116103a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f52796f736869506169723a206c6f776572207468656e203000000000000000006044820152606401610330565b60648163ffffffff16111561041a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f52796f736869506169723a20464f5242494444454e5f464545000000000000006044820152606401610330565b6040517fd6d788c300000000000000000000000000000000000000000000000000000000815263ffffffff8216600482015273ffffffffffffffffffffffffffffffffffffffff83169063d6d788c390602401600060405180830381600087803b15801561048757600080fd5b505af115801561049b573d6000803e3d6000fd5b5050600154604080517401000000000000000000000000000000000000000090920463ffffffff90811683528516602083015273ffffffffffffffffffffffffffffffffffffffff861693507f11607fca84441429b308f6e9376db71755ef2d64058512a24b9eeb1eebf92fd392500160405180910390a25050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f52796f7368693a20464f5242494444454e0000000000000000000000000000006044820152606401610330565b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f774b126b94b3cc801460a024dd575406c3ebf27affd7c36198a53ac6655f056d90600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff1633146106a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f52796f7368693a20464f5242494444454e0000000000000000000000000000006044820152606401610330565b60008163ffffffff1611610717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f52796f736869506169723a206c6f776572207468656e203000000000000000006044820152606401610330565b60648163ffffffff161115610788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f52796f736869506169723a20464f5242494444454e5f464545000000000000006044820152606401610330565b600180547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff8481168281029390931793849055604080519290940416815260208101919091527f431ac7733c7243b4cb00161656677daf0fb488e111d5e8aa5cfbfcba22c57550910160405180910390a150565b60008173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f52796f7368693a204944454e544943414c5f41444452455353455300000000006044820152606401610330565b6000808373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16106108ed5783856108f0565b84845b909250905073ffffffffffffffffffffffffffffffffffffffff8216610972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f52796f7368693a205a45524f5f414444524553530000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260026020908152604080832085851684529091529020541615610a0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f52796f7368693a20504149525f455849535453000000000000000000000000006044820152606401610330565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084811b8216602084015283901b16603482015260480160405160208183030381529060405280519060200120604051610a6c90610de9565b8190604051809103906000f5905080158015610a8c573d6000803e3d6000fd5b506040517f485cc95500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015283811660248301529194509084169063485cc95590604401600060405180830381600087803b158015610b0257600080fd5b505af1158015610b16573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff82811660008181526002602081815260408084208787168552825280842080547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116978b169788179091559282528084209484529390529082902080549091168317905560015490517fd6d788c30000000000000000000000000000000000000000000000000000000081527401000000000000000000000000000000000000000090910463ffffffff16600482015263d6d788c390602401600060405180830381600087803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b50506003805460018101825560008290527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8881169182179092559154604080519384526020840191909152858216945090861692507f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9910160405180910390a3505092915050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610d5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f52796f7368693a20464f5242494444454e0000000000000000000000000000006044820152606401610330565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f82b35d45c357f923889a214ea247bfd97c31805b21391e139b94c750134b29bc91a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61288680610ee283390190565b803573ffffffffffffffffffffffffffffffffffffffff81168114610e1a57600080fd5b919050565b803563ffffffff81168114610e1a57600080fd5b600060208284031215610e44578081fd5b610e4d82610df6565b9392505050565b60008060408385031215610e66578081fd5b610e6f83610df6565b9150610e7d60208401610df6565b90509250929050565b60008060408385031215610e98578182fd5b610ea183610df6565b9150610e7d60208401610e1f565b600060208284031215610ec0578081fd5b5035919050565b600060208284031215610ed8578081fd5b610e4d82610e1f56fe60806040526001600d5534801561001557600080fd5b50604080518082018252600a81526952796f736869204c507360b01b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527fe2dbd5e0266a4d7b15958df592d1b42c3650a596e9765312f711b820f5ddc304918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f198184030181529190528051602090910120600355600580546001600160a01b031916331790556127788061010e6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636a62784211610104578063ba9a7a56116100a2578063d505accf11610071578063d505accf146104c2578063d6d788c3146104d5578063dd62ed3e146104e8578063fff6cae91461051357600080fd5b8063ba9a7a5614610480578063bc25cf7714610489578063c45a01551461049c578063d21220a7146104af57600080fd5b80637ecebe00116100de5780637ecebe00146103e957806389afcb441461040957806395d89b4114610431578063a9059cbb1461046d57600080fd5b80636a627842146103ad57806370a08231146103c05780637464fc3d146103e057600080fd5b806330adf81f11610171578063485cc9551161014b578063485cc9551461036357806354cf2aeb146103765780635909c0d51461039b5780635a3d5493146103a457600080fd5b806330adf81f14610319578063313ce567146103405780633644e5151461035a57600080fd5b8063095ea7b3116101ad578063095ea7b3146102a15780630dfe1681146102c457806318160ddd146102ef57806323b872dd1461030657600080fd5b8063022c0d9f146101d457806306fdde03146101e95780630902f1ac1461023b575b600080fd5b6101e76101e23660046123ec565b61051b565b005b6102256040518060400160405280600a81526020017f52796f736869204c50730000000000000000000000000000000000000000000081525081565b6040516102329190612528565b60405180910390f35b600854604080516dffffffffffffffffffffffffffff80841682526e01000000000000000000000000000084041660208201527c010000000000000000000000000000000000000000000000000000000090920463ffffffff1690820152606001610232565b6102b46102af366004612389565b610b6f565b6040519015158152602001610232565b6006546102d7906001600160a01b031681565b6040516001600160a01b039091168152602001610232565b6102f860005481565b604051908152602001610232565b6102b46103143660046122d4565b610b85565b6102f87f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b610348601281565b60405160ff9091168152602001610232565b6102f860035481565b6101e761037136600461229c565b610c1d565b600c546103869063ffffffff1681565b60405163ffffffff9091168152602001610232565b6102f860095481565b6102f8600a5481565b6102f86103bb366004612264565b610cbd565b6102f86103ce366004612264565b60016020526000908152604090205481565b6102f8600b5481565b6102f86103f7366004612264565b60046020526000908152604090205481565b61041c610417366004612264565b611037565b60408051928352602083019190915201610232565b6102256040518060400160405280600981526020017f52594f5348492d4c50000000000000000000000000000000000000000000000081525081565b6102b461047b366004612389565b611451565b6102f86103e881565b6101e7610497366004612264565b61145e565b6005546102d7906001600160a01b031681565b6007546102d7906001600160a01b031681565b6101e76104d0366004612314565b6115c9565b6101e76104e336600461247d565b61183f565b6102f86104f636600461229c565b600260209081526000928352604080842090915290825290205481565b6101e76118d0565b600d546001146105725760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b454400000000000000000000000000000000000060448201526064015b60405180910390fd5b6000600d55841515806105855750600084115b6105f75760405162461bcd60e51b815260206004820152602260248201527f52796f7368693a20494e53554646494349454e545f4f55545055545f414d4f5560448201527f4e540000000000000000000000000000000000000000000000000000000000006064820152608401610569565b6000806106536008546dffffffffffffffffffffffffffff808216926e01000000000000000000000000000083049091169163ffffffff7c01000000000000000000000000000000000000000000000000000000009091041690565b5091509150816dffffffffffffffffffffffffffff16871080156106865750806dffffffffffffffffffffffffffff1686105b6106d25760405162461bcd60e51b815260206004820152601e60248201527f52796f7368693a20494e53554646494349454e545f4c495155494449545900006044820152606401610569565b60065460075460009182916001600160a01b039182169190811690891682148015906107105750806001600160a01b0316896001600160a01b031614155b61075c5760405162461bcd60e51b815260206004820152601260248201527f52796f7368693a20494e56414c49445f544f00000000000000000000000000006044820152606401610569565b8a1561076d5761076d828a8d611a54565b891561077e5761077e818a8c611a54565b8615610804576040517f1877786f0000000000000000000000000000000000000000000000000000000081526001600160a01b038a1690631877786f906107d19033908f908f908e908e906004016124bd565b600060405180830381600087803b1580156107eb57600080fd5b505af11580156107ff573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b15801561084357600080fd5b505afa158015610857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087b91906123d4565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a082319060240160206040518083038186803b1580156108bd57600080fd5b505afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f591906123d4565b92505050600089856dffffffffffffffffffffffffffff166109179190612661565b8311610924576000610948565b61093e8a6dffffffffffffffffffffffffffff8716612661565b6109489084612661565b905060006109668a6dffffffffffffffffffffffffffff8716612661565b8311610973576000610997565b61098d8a6dffffffffffffffffffffffffffff8716612661565b6109979084612661565b905060008211806109a85750600081115b610a1a5760405162461bcd60e51b815260206004820152602160248201527f52796f7368693a20494e53554646494349454e545f494e5055545f414d4f554e60448201527f54000000000000000000000000000000000000000000000000000000000000006064820152608401610569565b600c54600090610a309063ffffffff1684612624565b610a3c86612710612624565b610a469190612661565b600c54909150600090610a5f9063ffffffff1684612624565b610a6b86612710612624565b610a759190612661565b9050610a946dffffffffffffffffffffffffffff808916908a16612624565b610aa2906305f5e100612624565b610aac8284612624565b1015610afa5760405162461bcd60e51b815260206004820152600960248201527f52796f7368693a204b00000000000000000000000000000000000000000000006044820152606401610569565b5050610b0884848888611b9d565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600d55505050505050505050565b6000610b7c338484611e2b565b50600192915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610c08576001600160a01b038416600090815260026020908152604080832033845290915281208054849290610c02908490612661565b90915550505b610c13848484611e8d565b5060019392505050565b6005546001600160a01b03163314610c775760405162461bcd60e51b815260206004820152601160248201527f52796f7368693a20464f5242494444454e0000000000000000000000000000006044820152606401610569565b600680546001600160a01b039384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b6000600d54600114610d115760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b45440000000000000000000000000000000000006044820152606401610569565b6000600d819055600854600654604080516370a0823160e01b815230600482015290516dffffffffffffffffffffffffffff808516956e0100000000000000000000000000009095041693926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610d8c57600080fd5b505afa158015610da0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc491906123d4565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015610e0d57600080fd5b505afa158015610e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4591906123d4565b90506000610e636dffffffffffffffffffffffffffff861684612661565b90506000610e816dffffffffffffffffffffffffffff861684612661565b90506000610e8f8787611f2e565b60005490915080610ecd576103e8610eaf610eaa8587612624565b612083565b610eb99190612661565b9850610ec860006103e86120f3565b610f22565b610f1f6dffffffffffffffffffffffffffff8916610eeb8387612624565b610ef591906125cc565b6dffffffffffffffffffffffffffff8916610f108487612624565b610f1a91906125cc565b61217c565b98505b60008911610f985760405162461bcd60e51b815260206004820152602560248201527f52796f7368693a20494e53554646494349454e545f4c49515549444954595f4d60448201527f494e5445440000000000000000000000000000000000000000000000000000006064820152608401610569565b610fa28a8a6120f3565b610fae86868a8a611b9d565b8115610fe957600854610fe5906dffffffffffffffffffffffffffff6e010000000000000000000000000000820481169116612624565b600b555b604080518581526020810185905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600d5550949695505050505050565b600080600d5460011461108c5760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b45440000000000000000000000000000000000006044820152606401610569565b6000600d819055600854600654600754604080516370a0823160e01b815230600482015290516dffffffffffffffffffffffffffff808616966e01000000000000000000000000000090960416946001600160a01b0394851694909316929184916370a0823191602480820192602092909190829003018186803b15801561111357600080fd5b505afa158015611127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114b91906123d4565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b15801561119057600080fd5b505afa1580156111a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c891906123d4565b306000908152600160205260408120549192506111e58888611f2e565b600054909150806111f68685612624565b61120091906125cc565b9a508061120d8585612624565b61121791906125cc565b995060008b118015611229575060008a115b61129b5760405162461bcd60e51b815260206004820152602560248201527f52796f7368693a20494e53554646494349454e545f4c49515549444954595f4260448201527f55524e45440000000000000000000000000000000000000000000000000000006064820152608401610569565b6112a53084612194565b6112b0878d8d611a54565b6112bb868d8c611a54565b6040516370a0823160e01b81523060048201526001600160a01b038816906370a082319060240160206040518083038186803b1580156112fa57600080fd5b505afa15801561130e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133291906123d4565b6040516370a0823160e01b81523060048201529095506001600160a01b038716906370a082319060240160206040518083038186803b15801561137457600080fd5b505afa158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac91906123d4565b93506113ba85858b8b611b9d565b81156113f5576008546113f1906dffffffffffffffffffffffffffff6e010000000000000000000000000000820481169116612624565b600b555b604080518c8152602081018c90526001600160a01b038e169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a35050505050505050506001600d81905550915091565b6000610b7c338484611e8d565b600d546001146114b05760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b45440000000000000000000000000000000000006044820152606401610569565b6000600d556006546007546008546040516370a0823160e01b81523060048201526001600160a01b03938416939092169161156591849186916dffffffffffffffffffffffffffff169083906370a08231906024015b60206040518083038186803b15801561151e57600080fd5b505afa158015611532573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155691906123d4565b6115609190612661565b611a54565b6008546040516370a0823160e01b81523060048201526115bf91839186916e01000000000000000000000000000090046dffffffffffffffffffffffffffff16906001600160a01b038416906370a0823190602401611506565b50506001600d5550565b428410156116195760405162461bcd60e51b815260206004820152600f60248201527f52796f7368693a204558504952454400000000000000000000000000000000006044820152606401610569565b6003546001600160a01b038816600090815260046020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b91908761166c836126a8565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e001604051602081830303815290604052805190602001206040516020016117009291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015611789573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116158015906117dd5750886001600160a01b0316816001600160a01b0316145b6118295760405162461bcd60e51b815260206004820152601960248201527f52796f7368693a20494e56414c49445f5349474e4154555245000000000000006044820152606401610569565b611834898989611e2b565b505050505050505050565b6005546001600160a01b031633146118995760405162461bcd60e51b815260206004820152601560248201527f52796f736869506169723a20464f5242494444454e00000000000000000000006044820152606401610569565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000001663ffffffff92909216919091179055565b600d546001146119225760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b45440000000000000000000000000000000000006044820152606401610569565b6000600d556006546040516370a0823160e01b8152306004820152611a4d916001600160a01b0316906370a082319060240160206040518083038186803b15801561196c57600080fd5b505afa158015611980573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a491906123d4565b6007546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156119e757600080fd5b505afa1580156119fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1f91906123d4565b6008546dffffffffffffffffffffffffffff808216916e010000000000000000000000000000900416611b9d565b6001600d55565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691611ade91906124a1565b6000604051808303816000865af19150503d8060008114611b1b576040519150601f19603f3d011682016040523d82523d6000602084013e611b20565b606091505b5091509150818015611b4a575080511580611b4a575080806020019051810190611b4a91906123b4565b611b965760405162461bcd60e51b815260206004820152601760248201527f52796f7368693a205452414e534645525f4641494c45440000000000000000006044820152606401610569565b5050505050565b6dffffffffffffffffffffffffffff8411801590611bc957506dffffffffffffffffffffffffffff8311155b611c155760405162461bcd60e51b815260206004820152601060248201527f52796f7368693a204f564552464c4f57000000000000000000000000000000006044820152606401610569565b6000611c26640100000000426126e1565b60085490915063ffffffff7c01000000000000000000000000000000000000000000000000000000009091048116820390811615801590611c7657506dffffffffffffffffffffffffffff841615155b8015611c9157506dffffffffffffffffffffffffffff831615155b15611d3b578063ffffffff16611cce85611caa86612217565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690612248565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff8116611d0e84611caa87612217565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b506008805463ffffffff83167c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff6dffffffffffffffffffffffffffff8881166e0100000000000000000000000000009081027fffffffff000000000000000000000000000000000000000000000000000000009095168b83161794909417918216831794859055604080519382169282169290921783529290930490911660208201527f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1910160405180910390a15050505050565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831660009081526001602052604081208054839290611eb5908490612661565b90915550506001600160a01b03821660009081526001602052604081208054839290611ee2908490612579565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611e8091815260200190565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b158015611f7f57600080fd5b505afa158015611f93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb79190612280565b600b546001600160a01b03821615801594509192509061206f57801561206a576000611ff9610eaa6dffffffffffffffffffffffffffff808816908916612624565b9050600061200683612083565b90508082111561206757600061201c8284612661565b6000546120299190612624565b9050600082612039856005612624565b6120439190612579565b9050600061205182846125cc565b905080156120635761206387826120f3565b5050505b50505b61207b565b801561207b576000600b555b505092915050565b600060038211156120e4575080600061209d6002836125cc565b6120a8906001612579565b90505b818110156120de579050806002816120c381866125cc565b6120cd9190612579565b6120d791906125cc565b90506120ab565b50919050565b81156120ee575060015b919050565b806000808282546121049190612579565b90915550506001600160a01b03821660009081526001602052604081208054839290612131908490612579565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b600081831061218b578161218d565b825b9392505050565b6001600160a01b038216600090815260016020526040812080548392906121bc908490612661565b92505081905550806000808282546121d49190612661565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612170565b60006122426e0100000000000000000000000000006dffffffffffffffffffffffffffff84166125e0565b92915050565b600061218d6dffffffffffffffffffffffffffff831684612591565b600060208284031215612275578081fd5b813561218d81612753565b600060208284031215612291578081fd5b815161218d81612753565b600080604083850312156122ae578081fd5b82356122b981612753565b915060208301356122c981612753565b809150509250929050565b6000806000606084860312156122e8578081fd5b83356122f381612753565b9250602084013561230381612753565b929592945050506040919091013590565b600080600080600080600060e0888a03121561232e578283fd5b873561233981612753565b9650602088013561234981612753565b95506040880135945060608801359350608088013560ff8116811461236c578384fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561239b578182fd5b82356123a681612753565b946020939093013593505050565b6000602082840312156123c5578081fd5b8151801515811461218d578182fd5b6000602082840312156123e5578081fd5b5051919050565b600080600080600060808688031215612403578081fd5b8535945060208601359350604086013561241c81612753565b9250606086013567ffffffffffffffff80821115612438578283fd5b818801915088601f83011261244b578283fd5b813581811115612459578384fd5b89602082850101111561246a578384fd5b9699959850939650602001949392505050565b60006020828403121561248e578081fd5b813563ffffffff8116811461218d578182fd5b600082516124b3818460208701612678565b9190910192915050565b6001600160a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101949350505050565b6020815260008251806020840152612547816040850160208701612678565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561258c5761258c6126f5565b500190565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff808416806125c0576125c0612724565b92169190910492915050565b6000826125db576125db612724565b500490565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083168185168183048111821515161561261b5761261b6126f5565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561265c5761265c6126f5565b500290565b600082821015612673576126736126f5565b500390565b60005b8381101561269357818101518382015260200161267b565b838111156126a2576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156126da576126da6126f5565b5060010190565b6000826126f0576126f0612724565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6001600160a01b038116811461276857600080fd5b5056fea164736f6c6343000804000aa164736f6c6343000804000a000000000000000000000000454cfaa623a629cc0b4017aeb85d54c42e91479d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80639e68ceb811610081578063c9c653961161005b578063c9c65396146101e8578063e6a43905146101fb578063f46901ed1461023c57600080fd5b80639e68ceb8146101ad578063a2e74af6146101c2578063be465990146101d557600080fd5b806354cf2aeb116100b257806354cf2aeb14610156578063574f2ba31461019357806364f91c72146101a557600080fd5b8063017e7e58146100d9578063094b7415146101235780631e3dd18b14610143575b600080fd5b6000546100f99073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6001546100f99073ffffffffffffffffffffffffffffffffffffffff1681565b6100f9610151366004610eaf565b61024f565b60015461017e9074010000000000000000000000000000000000000000900463ffffffff1681565b60405163ffffffff909116815260200161011a565b6003545b60405190815260200161011a565b610197610286565b6101c06101bb366004610e86565b6102b3565b005b6101c06101d0366004610e33565b610517565b6101c06101e3366004610ec7565b610626565b6100f96101f6366004610e54565b610818565b6100f9610209366004610e54565b600260209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b6101c061024a366004610e33565b610cdb565b6003818154811061025f57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60405161029560208201610de9565b6020820181038252601f19601f820116604052508051906020012081565b60015473ffffffffffffffffffffffffffffffffffffffff163314610339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f52796f7368693a20464f5242494444454e00000000000000000000000000000060448201526064015b60405180910390fd5b60008163ffffffff16116103a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f52796f736869506169723a206c6f776572207468656e203000000000000000006044820152606401610330565b60648163ffffffff16111561041a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f52796f736869506169723a20464f5242494444454e5f464545000000000000006044820152606401610330565b6040517fd6d788c300000000000000000000000000000000000000000000000000000000815263ffffffff8216600482015273ffffffffffffffffffffffffffffffffffffffff83169063d6d788c390602401600060405180830381600087803b15801561048757600080fd5b505af115801561049b573d6000803e3d6000fd5b5050600154604080517401000000000000000000000000000000000000000090920463ffffffff90811683528516602083015273ffffffffffffffffffffffffffffffffffffffff861693507f11607fca84441429b308f6e9376db71755ef2d64058512a24b9eeb1eebf92fd392500160405180910390a25050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f52796f7368693a20464f5242494444454e0000000000000000000000000000006044820152606401610330565b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f774b126b94b3cc801460a024dd575406c3ebf27affd7c36198a53ac6655f056d90600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff1633146106a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f52796f7368693a20464f5242494444454e0000000000000000000000000000006044820152606401610330565b60008163ffffffff1611610717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f52796f736869506169723a206c6f776572207468656e203000000000000000006044820152606401610330565b60648163ffffffff161115610788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f52796f736869506169723a20464f5242494444454e5f464545000000000000006044820152606401610330565b600180547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff8481168281029390931793849055604080519290940416815260208101919091527f431ac7733c7243b4cb00161656677daf0fb488e111d5e8aa5cfbfcba22c57550910160405180910390a150565b60008173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156108b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f52796f7368693a204944454e544943414c5f41444452455353455300000000006044820152606401610330565b6000808373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16106108ed5783856108f0565b84845b909250905073ffffffffffffffffffffffffffffffffffffffff8216610972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f52796f7368693a205a45524f5f414444524553530000000000000000000000006044820152606401610330565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260026020908152604080832085851684529091529020541615610a0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f52796f7368693a20504149525f455849535453000000000000000000000000006044820152606401610330565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084811b8216602084015283901b16603482015260480160405160208183030381529060405280519060200120604051610a6c90610de9565b8190604051809103906000f5905080158015610a8c573d6000803e3d6000fd5b506040517f485cc95500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015283811660248301529194509084169063485cc95590604401600060405180830381600087803b158015610b0257600080fd5b505af1158015610b16573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff82811660008181526002602081815260408084208787168552825280842080547fffffffffffffffffffffffff0000000000000000000000000000000000000000908116978b169788179091559282528084209484529390529082902080549091168317905560015490517fd6d788c30000000000000000000000000000000000000000000000000000000081527401000000000000000000000000000000000000000090910463ffffffff16600482015263d6d788c390602401600060405180830381600087803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b50506003805460018101825560008290527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8881169182179092559154604080519384526020840191909152858216945090861692507f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9910160405180910390a3505092915050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610d5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f52796f7368693a20464f5242494444454e0000000000000000000000000000006044820152606401610330565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f82b35d45c357f923889a214ea247bfd97c31805b21391e139b94c750134b29bc91a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61288680610ee283390190565b803573ffffffffffffffffffffffffffffffffffffffff81168114610e1a57600080fd5b919050565b803563ffffffff81168114610e1a57600080fd5b600060208284031215610e44578081fd5b610e4d82610df6565b9392505050565b60008060408385031215610e66578081fd5b610e6f83610df6565b9150610e7d60208401610df6565b90509250929050565b60008060408385031215610e98578182fd5b610ea183610df6565b9150610e7d60208401610e1f565b600060208284031215610ec0578081fd5b5035919050565b600060208284031215610ed8578081fd5b610e4d82610e1f56fe60806040526001600d5534801561001557600080fd5b50604080518082018252600a81526952796f736869204c507360b01b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527fe2dbd5e0266a4d7b15958df592d1b42c3650a596e9765312f711b820f5ddc304918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f198184030181529190528051602090910120600355600580546001600160a01b031916331790556127788061010e6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636a62784211610104578063ba9a7a56116100a2578063d505accf11610071578063d505accf146104c2578063d6d788c3146104d5578063dd62ed3e146104e8578063fff6cae91461051357600080fd5b8063ba9a7a5614610480578063bc25cf7714610489578063c45a01551461049c578063d21220a7146104af57600080fd5b80637ecebe00116100de5780637ecebe00146103e957806389afcb441461040957806395d89b4114610431578063a9059cbb1461046d57600080fd5b80636a627842146103ad57806370a08231146103c05780637464fc3d146103e057600080fd5b806330adf81f11610171578063485cc9551161014b578063485cc9551461036357806354cf2aeb146103765780635909c0d51461039b5780635a3d5493146103a457600080fd5b806330adf81f14610319578063313ce567146103405780633644e5151461035a57600080fd5b8063095ea7b3116101ad578063095ea7b3146102a15780630dfe1681146102c457806318160ddd146102ef57806323b872dd1461030657600080fd5b8063022c0d9f146101d457806306fdde03146101e95780630902f1ac1461023b575b600080fd5b6101e76101e23660046123ec565b61051b565b005b6102256040518060400160405280600a81526020017f52796f736869204c50730000000000000000000000000000000000000000000081525081565b6040516102329190612528565b60405180910390f35b600854604080516dffffffffffffffffffffffffffff80841682526e01000000000000000000000000000084041660208201527c010000000000000000000000000000000000000000000000000000000090920463ffffffff1690820152606001610232565b6102b46102af366004612389565b610b6f565b6040519015158152602001610232565b6006546102d7906001600160a01b031681565b6040516001600160a01b039091168152602001610232565b6102f860005481565b604051908152602001610232565b6102b46103143660046122d4565b610b85565b6102f87f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b610348601281565b60405160ff9091168152602001610232565b6102f860035481565b6101e761037136600461229c565b610c1d565b600c546103869063ffffffff1681565b60405163ffffffff9091168152602001610232565b6102f860095481565b6102f8600a5481565b6102f86103bb366004612264565b610cbd565b6102f86103ce366004612264565b60016020526000908152604090205481565b6102f8600b5481565b6102f86103f7366004612264565b60046020526000908152604090205481565b61041c610417366004612264565b611037565b60408051928352602083019190915201610232565b6102256040518060400160405280600981526020017f52594f5348492d4c50000000000000000000000000000000000000000000000081525081565b6102b461047b366004612389565b611451565b6102f86103e881565b6101e7610497366004612264565b61145e565b6005546102d7906001600160a01b031681565b6007546102d7906001600160a01b031681565b6101e76104d0366004612314565b6115c9565b6101e76104e336600461247d565b61183f565b6102f86104f636600461229c565b600260209081526000928352604080842090915290825290205481565b6101e76118d0565b600d546001146105725760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b454400000000000000000000000000000000000060448201526064015b60405180910390fd5b6000600d55841515806105855750600084115b6105f75760405162461bcd60e51b815260206004820152602260248201527f52796f7368693a20494e53554646494349454e545f4f55545055545f414d4f5560448201527f4e540000000000000000000000000000000000000000000000000000000000006064820152608401610569565b6000806106536008546dffffffffffffffffffffffffffff808216926e01000000000000000000000000000083049091169163ffffffff7c01000000000000000000000000000000000000000000000000000000009091041690565b5091509150816dffffffffffffffffffffffffffff16871080156106865750806dffffffffffffffffffffffffffff1686105b6106d25760405162461bcd60e51b815260206004820152601e60248201527f52796f7368693a20494e53554646494349454e545f4c495155494449545900006044820152606401610569565b60065460075460009182916001600160a01b039182169190811690891682148015906107105750806001600160a01b0316896001600160a01b031614155b61075c5760405162461bcd60e51b815260206004820152601260248201527f52796f7368693a20494e56414c49445f544f00000000000000000000000000006044820152606401610569565b8a1561076d5761076d828a8d611a54565b891561077e5761077e818a8c611a54565b8615610804576040517f1877786f0000000000000000000000000000000000000000000000000000000081526001600160a01b038a1690631877786f906107d19033908f908f908e908e906004016124bd565b600060405180830381600087803b1580156107eb57600080fd5b505af11580156107ff573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b15801561084357600080fd5b505afa158015610857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087b91906123d4565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a082319060240160206040518083038186803b1580156108bd57600080fd5b505afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f591906123d4565b92505050600089856dffffffffffffffffffffffffffff166109179190612661565b8311610924576000610948565b61093e8a6dffffffffffffffffffffffffffff8716612661565b6109489084612661565b905060006109668a6dffffffffffffffffffffffffffff8716612661565b8311610973576000610997565b61098d8a6dffffffffffffffffffffffffffff8716612661565b6109979084612661565b905060008211806109a85750600081115b610a1a5760405162461bcd60e51b815260206004820152602160248201527f52796f7368693a20494e53554646494349454e545f494e5055545f414d4f554e60448201527f54000000000000000000000000000000000000000000000000000000000000006064820152608401610569565b600c54600090610a309063ffffffff1684612624565b610a3c86612710612624565b610a469190612661565b600c54909150600090610a5f9063ffffffff1684612624565b610a6b86612710612624565b610a759190612661565b9050610a946dffffffffffffffffffffffffffff808916908a16612624565b610aa2906305f5e100612624565b610aac8284612624565b1015610afa5760405162461bcd60e51b815260206004820152600960248201527f52796f7368693a204b00000000000000000000000000000000000000000000006044820152606401610569565b5050610b0884848888611b9d565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600d55505050505050505050565b6000610b7c338484611e2b565b50600192915050565b6001600160a01b03831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610c08576001600160a01b038416600090815260026020908152604080832033845290915281208054849290610c02908490612661565b90915550505b610c13848484611e8d565b5060019392505050565b6005546001600160a01b03163314610c775760405162461bcd60e51b815260206004820152601160248201527f52796f7368693a20464f5242494444454e0000000000000000000000000000006044820152606401610569565b600680546001600160a01b039384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b6000600d54600114610d115760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b45440000000000000000000000000000000000006044820152606401610569565b6000600d819055600854600654604080516370a0823160e01b815230600482015290516dffffffffffffffffffffffffffff808516956e0100000000000000000000000000009095041693926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610d8c57600080fd5b505afa158015610da0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc491906123d4565b6007546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015610e0d57600080fd5b505afa158015610e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4591906123d4565b90506000610e636dffffffffffffffffffffffffffff861684612661565b90506000610e816dffffffffffffffffffffffffffff861684612661565b90506000610e8f8787611f2e565b60005490915080610ecd576103e8610eaf610eaa8587612624565b612083565b610eb99190612661565b9850610ec860006103e86120f3565b610f22565b610f1f6dffffffffffffffffffffffffffff8916610eeb8387612624565b610ef591906125cc565b6dffffffffffffffffffffffffffff8916610f108487612624565b610f1a91906125cc565b61217c565b98505b60008911610f985760405162461bcd60e51b815260206004820152602560248201527f52796f7368693a20494e53554646494349454e545f4c49515549444954595f4d60448201527f494e5445440000000000000000000000000000000000000000000000000000006064820152608401610569565b610fa28a8a6120f3565b610fae86868a8a611b9d565b8115610fe957600854610fe5906dffffffffffffffffffffffffffff6e010000000000000000000000000000820481169116612624565b600b555b604080518581526020810185905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600d5550949695505050505050565b600080600d5460011461108c5760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b45440000000000000000000000000000000000006044820152606401610569565b6000600d819055600854600654600754604080516370a0823160e01b815230600482015290516dffffffffffffffffffffffffffff808616966e01000000000000000000000000000090960416946001600160a01b0394851694909316929184916370a0823191602480820192602092909190829003018186803b15801561111357600080fd5b505afa158015611127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114b91906123d4565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a082319060240160206040518083038186803b15801561119057600080fd5b505afa1580156111a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c891906123d4565b306000908152600160205260408120549192506111e58888611f2e565b600054909150806111f68685612624565b61120091906125cc565b9a508061120d8585612624565b61121791906125cc565b995060008b118015611229575060008a115b61129b5760405162461bcd60e51b815260206004820152602560248201527f52796f7368693a20494e53554646494349454e545f4c49515549444954595f4260448201527f55524e45440000000000000000000000000000000000000000000000000000006064820152608401610569565b6112a53084612194565b6112b0878d8d611a54565b6112bb868d8c611a54565b6040516370a0823160e01b81523060048201526001600160a01b038816906370a082319060240160206040518083038186803b1580156112fa57600080fd5b505afa15801561130e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133291906123d4565b6040516370a0823160e01b81523060048201529095506001600160a01b038716906370a082319060240160206040518083038186803b15801561137457600080fd5b505afa158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac91906123d4565b93506113ba85858b8b611b9d565b81156113f5576008546113f1906dffffffffffffffffffffffffffff6e010000000000000000000000000000820481169116612624565b600b555b604080518c8152602081018c90526001600160a01b038e169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a35050505050505050506001600d81905550915091565b6000610b7c338484611e8d565b600d546001146114b05760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b45440000000000000000000000000000000000006044820152606401610569565b6000600d556006546007546008546040516370a0823160e01b81523060048201526001600160a01b03938416939092169161156591849186916dffffffffffffffffffffffffffff169083906370a08231906024015b60206040518083038186803b15801561151e57600080fd5b505afa158015611532573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155691906123d4565b6115609190612661565b611a54565b6008546040516370a0823160e01b81523060048201526115bf91839186916e01000000000000000000000000000090046dffffffffffffffffffffffffffff16906001600160a01b038416906370a0823190602401611506565b50506001600d5550565b428410156116195760405162461bcd60e51b815260206004820152600f60248201527f52796f7368693a204558504952454400000000000000000000000000000000006044820152606401610569565b6003546001600160a01b038816600090815260046020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b91908761166c836126a8565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e001604051602081830303815290604052805190602001206040516020016117009291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015611789573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001519150506001600160a01b038116158015906117dd5750886001600160a01b0316816001600160a01b0316145b6118295760405162461bcd60e51b815260206004820152601960248201527f52796f7368693a20494e56414c49445f5349474e4154555245000000000000006044820152606401610569565b611834898989611e2b565b505050505050505050565b6005546001600160a01b031633146118995760405162461bcd60e51b815260206004820152601560248201527f52796f736869506169723a20464f5242494444454e00000000000000000000006044820152606401610569565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000001663ffffffff92909216919091179055565b600d546001146119225760405162461bcd60e51b815260206004820152600e60248201527f52796f7368693a204c4f434b45440000000000000000000000000000000000006044820152606401610569565b6000600d556006546040516370a0823160e01b8152306004820152611a4d916001600160a01b0316906370a082319060240160206040518083038186803b15801561196c57600080fd5b505afa158015611980573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a491906123d4565b6007546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156119e757600080fd5b505afa1580156119fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1f91906123d4565b6008546dffffffffffffffffffffffffffff808216916e010000000000000000000000000000900416611b9d565b6001600d55565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691611ade91906124a1565b6000604051808303816000865af19150503d8060008114611b1b576040519150601f19603f3d011682016040523d82523d6000602084013e611b20565b606091505b5091509150818015611b4a575080511580611b4a575080806020019051810190611b4a91906123b4565b611b965760405162461bcd60e51b815260206004820152601760248201527f52796f7368693a205452414e534645525f4641494c45440000000000000000006044820152606401610569565b5050505050565b6dffffffffffffffffffffffffffff8411801590611bc957506dffffffffffffffffffffffffffff8311155b611c155760405162461bcd60e51b815260206004820152601060248201527f52796f7368693a204f564552464c4f57000000000000000000000000000000006044820152606401610569565b6000611c26640100000000426126e1565b60085490915063ffffffff7c01000000000000000000000000000000000000000000000000000000009091048116820390811615801590611c7657506dffffffffffffffffffffffffffff841615155b8015611c9157506dffffffffffffffffffffffffffff831615155b15611d3b578063ffffffff16611cce85611caa86612217565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1690612248565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff8116611d0e84611caa87612217565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b506008805463ffffffff83167c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff6dffffffffffffffffffffffffffff8881166e0100000000000000000000000000009081027fffffffff000000000000000000000000000000000000000000000000000000009095168b83161794909417918216831794859055604080519382169282169290921783529290930490911660208201527f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1910160405180910390a15050505050565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03831660009081526001602052604081208054839290611eb5908490612661565b90915550506001600160a01b03821660009081526001602052604081208054839290611ee2908490612579565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611e8091815260200190565b600080600560009054906101000a90046001600160a01b03166001600160a01b031663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b158015611f7f57600080fd5b505afa158015611f93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb79190612280565b600b546001600160a01b03821615801594509192509061206f57801561206a576000611ff9610eaa6dffffffffffffffffffffffffffff808816908916612624565b9050600061200683612083565b90508082111561206757600061201c8284612661565b6000546120299190612624565b9050600082612039856005612624565b6120439190612579565b9050600061205182846125cc565b905080156120635761206387826120f3565b5050505b50505b61207b565b801561207b576000600b555b505092915050565b600060038211156120e4575080600061209d6002836125cc565b6120a8906001612579565b90505b818110156120de579050806002816120c381866125cc565b6120cd9190612579565b6120d791906125cc565b90506120ab565b50919050565b81156120ee575060015b919050565b806000808282546121049190612579565b90915550506001600160a01b03821660009081526001602052604081208054839290612131908490612579565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b600081831061218b578161218d565b825b9392505050565b6001600160a01b038216600090815260016020526040812080548392906121bc908490612661565b92505081905550806000808282546121d49190612661565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612170565b60006122426e0100000000000000000000000000006dffffffffffffffffffffffffffff84166125e0565b92915050565b600061218d6dffffffffffffffffffffffffffff831684612591565b600060208284031215612275578081fd5b813561218d81612753565b600060208284031215612291578081fd5b815161218d81612753565b600080604083850312156122ae578081fd5b82356122b981612753565b915060208301356122c981612753565b809150509250929050565b6000806000606084860312156122e8578081fd5b83356122f381612753565b9250602084013561230381612753565b929592945050506040919091013590565b600080600080600080600060e0888a03121561232e578283fd5b873561233981612753565b9650602088013561234981612753565b95506040880135945060608801359350608088013560ff8116811461236c578384fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561239b578182fd5b82356123a681612753565b946020939093013593505050565b6000602082840312156123c5578081fd5b8151801515811461218d578182fd5b6000602082840312156123e5578081fd5b5051919050565b600080600080600060808688031215612403578081fd5b8535945060208601359350604086013561241c81612753565b9250606086013567ffffffffffffffff80821115612438578283fd5b818801915088601f83011261244b578283fd5b813581811115612459578384fd5b89602082850101111561246a578384fd5b9699959850939650602001949392505050565b60006020828403121561248e578081fd5b813563ffffffff8116811461218d578182fd5b600082516124b3818460208701612678565b9190910192915050565b6001600160a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101949350505050565b6020815260008251806020840152612547816040850160208701612678565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561258c5761258c6126f5565b500190565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff808416806125c0576125c0612724565b92169190910492915050565b6000826125db576125db612724565b500490565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083168185168183048111821515161561261b5761261b6126f5565b02949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561265c5761265c6126f5565b500290565b600082821015612673576126736126f5565b500390565b60005b8381101561269357818101518382015260200161267b565b838111156126a2576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156126da576126da6126f5565b5060010190565b6000826126f0576126f0612724565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6001600160a01b038116811461276857600080fd5b5056fea164736f6c6343000804000aa164736f6c6343000804000a

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

000000000000000000000000454cfaa623a629cc0b4017aeb85d54c42e91479d

-----Decoded View---------------
Arg [0] : _feeToSetter (address): 0x454cfaa623a629cc0b4017aeb85d54c42e91479d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000454cfaa623a629cc0b4017aeb85d54c42e91479d


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