ETH Price: $3,507.47 (+2.53%)

Contract

0x37836821a2c03c171fB1a595767f4a16e2b93Fc4
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Create Pair52831842024-06-26 4:29:4324 days ago1719376183IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.000033040.0121
Swap Exact ETH F...11117882024-03-21 15:03:11120 days ago1711033391IN
Thruster: ThrusterFactory (1.00%)
0.0001 ETH0.00002261.00000031
Swap Exact ETH F...11117682024-03-21 15:02:31120 days ago1711033351IN
Thruster: ThrusterFactory (1.00%)
0.001 ETH0.00002261.00000031
Create Pair8120282024-03-14 16:31:11127 days ago1710433871IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.008192313.00000026
Create Pair8110632024-03-14 15:59:01127 days ago1710431941IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.008192313.00000025
Create Pair6755882024-03-11 12:43:11130 days ago1710160991IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.000002730.00100026
Create Pair6754992024-03-11 12:40:13130 days ago1710160813IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.000002730.00100026
Swap Exact ETH F...5170382024-03-07 20:38:11134 days ago1709843891IN
Thruster: ThrusterFactory (1.00%)
0.05 ETH0.000033831.5
Create Pair3800492024-03-04 16:31:53137 days ago1709569913IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.002730771.00000027
Swap Exact Token...2155852024-02-29 21:09:45141 days ago1709240985IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.000114885
Swap Exact Token...2153002024-02-29 21:00:15141 days ago1709240415IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.000114885
Swap Exact Token...2152862024-02-29 20:59:47141 days ago1709240387IN
Thruster: ThrusterFactory (1.00%)
0 ETH0.000114885
0x608060401574982024-02-28 12:53:31142 days ago1709124811IN
 Create: ThrusterFactory
0 ETH0.003641021

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
62801672024-07-19 6:22:2922 hrs ago1721370149
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
59518172024-07-11 15:57:298 days ago1720713449
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
59145242024-07-10 19:14:239 days ago1720638863
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
58793672024-07-09 23:42:2910 days ago1720568549
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
58104592024-07-08 9:25:3311 days ago1720430733
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
57242522024-07-06 9:31:5913 days ago1720258319
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
55558942024-07-02 12:00:0317 days ago1719921603
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
55493352024-07-02 8:21:2517 days ago1719908485
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
55250062024-07-01 18:50:2718 days ago1719859827
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
54174592024-06-29 7:05:3320 days ago1719644733
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
53771242024-06-28 8:41:0321 days ago1719564063
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
53764742024-06-28 8:19:2321 days ago1719562763
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
53557912024-06-27 20:49:5722 days ago1719521397
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
53316632024-06-27 7:25:4122 days ago1719473141
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
53297072024-06-27 6:20:2922 days ago1719469229
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
53007872024-06-26 14:16:2923 days ago1719411389
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
53006582024-06-26 14:12:1123 days ago1719411131
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
52981932024-06-26 12:50:0123 days ago1719406201
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
52975512024-06-26 12:28:3723 days ago1719404917
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
52973942024-06-26 12:23:2323 days ago1719404603
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
52891452024-06-26 7:48:2523 days ago1719388105
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
52874112024-06-26 6:50:3723 days ago1719384637
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
52872142024-06-26 6:44:0323 days ago1719384243
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
52831842024-06-26 4:29:4324 days ago1719376183
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
52812792024-06-26 3:26:1324 days ago1719372373
Thruster: ThrusterFactory (1.00%)
 Contract Creation0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ThrusterFactory

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion
File 1 of 17 : ThrusterFactory.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.5.16;

import "interfaces/IThrusterFactory.sol";

import "contracts/ThrusterGas.sol";
import "contracts/ThrusterPair.sol";

contract ThrusterFactory is IThrusterFactory, ThrusterGas {
    uint256 public yieldCut;
    address public yieldTo;
    address public yieldToSetter;
    address public pointsAdmin;

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

    address private constant BLAST_POINTS = 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800;

    event PairCreated(address indexed token0, address indexed token1, address pair, uint256);
    event SetYieldTo(address indexed yieldTo);
    event SetYieldToSetter(address indexed newYieldToSetter);
    event SetYieldCut(uint256 yieldCut);
    event Swap(
        address indexed pair,
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(address indexed pair, uint112 reserve0, uint112 reserve1);
    event Transfer(address indexed pair, address indexed from, address indexed to, uint256 value);

    constructor(address _yieldToSetter, address _pointsAdmin) public ThrusterGas(_yieldToSetter) {
        yieldToSetter = _yieldToSetter;
        pointsAdmin = _pointsAdmin;
        IBlastPoints(BLAST_POINTS).configurePointsOperator(_pointsAdmin);
    }

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

    function createPair(address tokenA, address tokenB) external returns (address pair) {
        require(tokenA != tokenB, "ThrusterFactory: IDENTICAL_ADDRESSES");
        (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), "ThrusterFactory: ZERO_ADDRESS");
        require(getPair[token0][token1] == address(0), "ThrusterFactory: PAIR_EXISTS"); // single check is sufficient
        bytes memory bytecode = type(ThrusterPair).creationCode;
        bytes32 salt = keccak256(abi.encodePacked(token0, token1));
        assembly {
            pair := create2(0, add(bytecode, 32), mload(bytecode), salt)
        }
        IThrusterPair(pair).initialize(token0, token1);
        getPair[token0][token1] = pair;
        getPair[token1][token0] = pair; // populate mapping in the reverse direction
        allPairs.push(pair);
        pairExists[pair] = true;
        emit PairCreated(token0, token1, pair, allPairs.length);
    }

    function setYieldTo(address _yieldTo) external {
        require(msg.sender == yieldToSetter, "ThrusterFactory: FORBIDDEN");
        yieldTo = _yieldTo;
        emit SetYieldTo(_yieldTo);
    }

    function setYieldToSetter(address _newYieldToSetter) external {
        require(msg.sender == yieldToSetter, "ThrusterFactory: FORBIDDEN");
        require(_newYieldToSetter != address(0), "ThrusterFactory: ZERO_ADDRESS");
        yieldToSetter = _newYieldToSetter;
        emit SetYieldToSetter(_newYieldToSetter);
    }

    function setYieldCut(uint256 _yieldCut) external {
        require(msg.sender == yieldToSetter, "ThrusterFactory: FORBIDDEN");
        require(_yieldCut < 6 && _yieldCut > 0, "ThrusterFactory: INVALID_YIELD_CUT"); // Yield cut is 16-50% of the LP yield
        yieldCut = _yieldCut;
        emit SetYieldCut(_yieldCut);
    }

    function emitSync(uint112 reserve0, uint112 reserve1) external {
        require(pairExists[msg.sender], "ThrusterFactory: PAIR_DOES_NOT_EXIST");
        emit Sync(msg.sender, reserve0, reserve1);
    }

    function emitTransfer(address from, address to, uint256 liquidity) external {
        require(pairExists[msg.sender], "ThrusterFactory: PAIR_DOES_NOT_EXIST");
        emit Transfer(msg.sender, from, to, liquidity);
    }

    function emitSwap(
        address sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address to
    ) external {
        require(pairExists[msg.sender], "ThrusterFactory: PAIR_DOES_NOT_EXIST");
        emit Swap(msg.sender, sender, amount0In, amount1In, amount0Out, amount1Out, to);
    }
}

File 2 of 17 : IThrusterFactory.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

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

    function yieldCut() external view returns (uint256);
    function yieldTo() external view returns (address);
    function yieldToSetter() external view returns (address);

    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 setYieldTo(address) external;
    function setYieldToSetter(address) external;
    function setYieldCut(uint256) external;

    function emitSync(uint112 reserve0, uint112 reserve1) external;
    function emitSwap(
        address sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address to
    ) external;
    function emitTransfer(address from, address to, uint256 value) external;

    function pointsAdmin() external view returns (address);
}

File 3 of 17 : ThrusterGas.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.5.16;

import "interfaces/IBlast.sol";
import "interfaces/IThrusterGas.sol";

contract ThrusterGas is IThrusterGas {
    IBlast public constant BLAST = IBlast(0x4300000000000000000000000000000000000002);
    address public manager;

    event ClaimGas(address indexed recipient, uint256 amount);

    modifier onlyManager() {
        require(msg.sender == manager, "FORBIDDEN");
        _;
    }

    constructor(address _manager) public {
        BLAST.configureClaimableGas();
        manager = _manager;
    }

    function claimGas(address _recipient, uint256 _minClaimRateBips) external onlyManager returns (uint256 amount) {
        if (_minClaimRateBips == 0) {
            amount = BLAST.claimMaxGas(address(this), _recipient);
        } else {
            amount = BLAST.claimGasAtMinClaimRate(address(this), _recipient, _minClaimRateBips);
        }
        emit ClaimGas(_recipient, amount);
    }

    function setManager(address _manager) external onlyManager {
        manager = _manager;
    }
}

File 4 of 17 : ThrusterPair.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.5.16;

import "interfaces/IBlastPoints.sol";
import "interfaces/IERC20.sol";
import "interfaces/IThrusterCallee.sol";
import "interfaces/IThrusterFactory.sol";
import "interfaces/IThrusterPair.sol";
import "interfaces/IThrusterERC20.sol";

import "contracts/ThrusterYield.sol";
import "contracts/libraries/Math.sol";
import "contracts/libraries/SafeMath.sol";
import "contracts/libraries/UQ112x112.sol";

contract ThrusterPair is IThrusterPair, IThrusterERC20, ThrusterYield {
    using SafeMath for uint256;
    using UQ112x112 for uint224;

    uint256 public constant MINIMUM_LIQUIDITY = 10 ** 3;
    bytes4 private constant SELECTOR = bytes4(keccak256(bytes("transfer(address,uint256)")));
    string public constant name = "Thruster LP";
    string public constant symbol = "T-LP";
    uint8 public constant decimals = 18;
    bytes32 public DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint256) public nonces;
    address private constant BLAST_POINTS = 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800;

    address public factory;
    address public token0;
    address public token1;
    uint256 public totalSupply;

    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 price0CumulativeLast;
    uint256 public price1CumulativeLast;
    uint256 public kLast; // reserve0 * reserve1, as of immediately after the most recent liquidity event

    uint256 private unlocked = 1;

    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

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

    function getReserves() public view 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(SELECTOR, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "ThrusterPair: TRANSFER_FAILED");
    }

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

    constructor() public ThrusterYield(IThrusterFactory(msg.sender).yieldToSetter()) {
        factory = msg.sender;
        uint256 chainId;
        assembly {
            chainId := chainid
        }
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(name)),
                keccak256(bytes("1")),
                chainId,
                address(this)
            )
        );
    }

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

    // update reserves and, on the first call per block, price accumulators
    function _update(uint256 balance0, uint256 balance1, uint112 _reserve0, uint112 _reserve1) private {
        require(balance0 <= uint112(-1) && balance1 <= uint112(-1), "ThrusterPair: OVERFLOW");
        uint32 blockTimestamp = uint32(block.timestamp % 2 ** 32);
        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);
        IThrusterFactory(factory).emitSync(reserve0, reserve1);
    }

    // if yieldCut is on, mint liquidity equivalent to 1/6th of the growth in sqrt(k)
    function _mintYieldCut(uint112 _reserve0, uint112 _reserve1) private returns (bool yieldCutOn) {
        address yieldTo = IThrusterFactory(factory).yieldTo();
        yieldCutOn = yieldTo != address(0);
        uint256 _kLast = kLast; // gas savings
        if (yieldCutOn) {
            if (_kLast != 0) {
                uint256 rootK = Math.sqrt(uint256(_reserve0).mul(_reserve1));
                uint256 rootKLast = Math.sqrt(_kLast);
                if (rootK > rootKLast) {
                    uint256 numerator = totalSupply.mul(rootK.sub(rootKLast));
                    uint256 denominator = rootK.mul(IThrusterFactory(factory).yieldCut()).add(rootKLast);
                    uint256 liquidity = numerator / denominator;
                    if (liquidity > 0) _mint(yieldTo, 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 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.sub(_reserve0);
        uint256 amount1 = balance1.sub(_reserve1);

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

        _update(balance0, balance1, _reserve0, _reserve1);
        if (yieldCutOn) kLast = uint256(reserve0).mul(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 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 yieldCutOn = _mintYieldCut(_reserve0, _reserve1);
        amount0 = liquidity.mul(balance0) / totalSupply; // using balances ensures pro-rata distribution
        amount1 = liquidity.mul(balance1) / totalSupply; // using balances ensures pro-rata distribution
        require(amount0 > 0 && amount1 > 0, "ThrusterPair: 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 (yieldCutOn) kLast = uint256(reserve0).mul(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 lock {
        require(amount0Out > 0 || amount1Out > 0, "ThrusterPair: INSUFFICIENT_OUTPUT_AMOUNT");
        (uint112 _reserve0, uint112 _reserve1,) = getReserves(); // gas savings
        require(amount0Out < _reserve0 && amount1Out < _reserve1, "ThrusterPair: 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, "ThrusterPair: 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) IThrusterCallee(to).uniswapV2Call(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, "ThrusterPair: INSUFFICIENT_INPUT_AMOUNT");
        {
            // scope for reserve{0,1}Adjusted, avoids stack too deep errors
            uint256 balance0Adjusted = balance0.mul(1000).sub(amount0In.mul(10));
            uint256 balance1Adjusted = balance1.mul(1000).sub(amount1In.mul(10));
            require(
                balance0Adjusted.mul(balance1Adjusted) >= uint256(_reserve0).mul(_reserve1).mul(1000 ** 2),
                "ThrusterPair: K"
            );
        }

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

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

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

    // Moving all ThrusterERC20 functions into ThrusterPair contract
    function _mint(address to, uint256 value) internal {
        totalSupply = totalSupply.add(value);
        balanceOf[to] = balanceOf[to].add(value);
        emit Transfer(address(0), to, value);
        IThrusterFactory(factory).emitTransfer(address(0), to, value);
    }

    function _burn(address from, uint256 value) internal {
        balanceOf[from] = balanceOf[from].sub(value);
        totalSupply = totalSupply.sub(value);
        emit Transfer(from, address(0), value);
        IThrusterFactory(factory).emitTransfer(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] = balanceOf[from].sub(value);
        balanceOf[to] = balanceOf[to].add(value);
        emit Transfer(from, to, value);
        IThrusterFactory(factory).emitTransfer(from, to, value);
    }

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

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

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

    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
        external
    {
        require(deadline >= block.timestamp, "ThrusterERC20: 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, "ThrusterERC20: INVALID_SIGNATURE");
        _approve(owner, spender, value);
    }
}

File 5 of 17 : IBlast.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

interface IBlast {
    enum YieldMode {
        AUTOMATIC,
        VOID,
        CLAIMABLE
    }

    enum GasMode {
        VOID,
        CLAIMABLE
    }

    // configure
    function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
    function configure(YieldMode _yield, GasMode gasMode, address governor) external;

    // base configuration options
    function configureClaimableYield() external;
    function configureClaimableYieldOnBehalf(address contractAddress) external;
    function configureAutomaticYield() external;
    function configureAutomaticYieldOnBehalf(address contractAddress) external;
    function configureVoidYield() external;
    function configureVoidYieldOnBehalf(address contractAddress) external;
    function configureClaimableGas() external;
    function configureClaimableGasOnBehalf(address contractAddress) external;
    function configureVoidGas() external;
    function configureVoidGasOnBehalf(address contractAddress) external;
    function configureGovernor(address _governor) external;
    function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;

    // claim yield
    function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
    function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);

    // claim gas
    function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips)
        external
        returns (uint256);
    function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume)
        external
        returns (uint256);

    // read functions
    function readClaimableYield(address contractAddress) external view returns (uint256);
    function readYieldConfiguration(address contractAddress) external view returns (uint8);
    function readGasParams(address contractAddress)
        external
        view
        returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}

File 6 of 17 : IThrusterGas.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

interface IThrusterGas {
    function claimGas(address _recipient, uint256 _minClaimRateBips) external returns (uint256 amount);

    function setManager(address _manager) external;
}

File 7 of 17 : IBlastPoints.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

interface IBlastPoints {
	function configurePointsOperator(address operator) external;
}

File 8 of 17 : IERC20.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

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 9 of 17 : IThrusterCallee.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

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

File 10 of 17 : IThrusterPair.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

interface IThrusterPair {
    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;

    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 11 of 17 : IThrusterERC20.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

interface IThrusterERC20 {
    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 12 of 17 : ThrusterYield.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.5.16;

import "interfaces/IBlast.sol";
import "interfaces/IThrusterYield.sol";
import "interfaces/IERC20Rebasing.sol";

contract ThrusterYield is IThrusterYield {
    IBlast public constant BLAST = IBlast(0x4300000000000000000000000000000000000002);
    IERC20Rebasing public constant USDB = IERC20Rebasing(0x4300000000000000000000000000000000000003);
    IERC20Rebasing public constant WETHB = IERC20Rebasing(0x4300000000000000000000000000000000000004);
    address public manager;

    event ClaimYieldAll(
        address indexed recipient, uint256 amountWETH, uint256 amountUSDB, uint256 amountGas
    );
    event ClaimGas(address indexed recipient, uint256 amount);

    modifier onlyManager() {
        require(msg.sender == manager, "FORBIDDEN");
        _;
    }

    constructor(address _manager) public {
        BLAST.configureClaimableGas();
        USDB.configure(IERC20Rebasing.YieldMode.CLAIMABLE);
        WETHB.configure(IERC20Rebasing.YieldMode.CLAIMABLE);
        manager = _manager;
    }

    function claimYieldAll(address _recipient, uint256 _amountWETH, uint256 _amountUSDB)
        external
        onlyManager
        returns (uint256 amountWETH, uint256 amountUSDB, uint256 amountGas)
    {
        amountWETH = IERC20Rebasing(WETHB).claim(_recipient, _amountWETH);
        amountUSDB = IERC20Rebasing(USDB).claim(_recipient, _amountUSDB);
        amountGas = IBlast(BLAST).claimMaxGas(address(this), _recipient);
        emit ClaimYieldAll(_recipient, amountWETH, amountUSDB, amountGas);
    }

    function claimGas(address _recipient, uint256 _minClaimRateBips) external onlyManager returns (uint256 amount) {
        if (_minClaimRateBips == 0) {
            amount = BLAST.claimMaxGas(address(this), _recipient);
        } else {
            amount = BLAST.claimGasAtMinClaimRate(address(this), _recipient, _minClaimRateBips);
        }
        emit ClaimGas(_recipient, amount);
    }

    function setManager(address _manager) external onlyManager {
        manager = _manager;
    }
}

File 13 of 17 : Math.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.5.16;

// 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 14 of 17 : SafeMath.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.16 <0.7.0;

// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)

library SafeMath {
    function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }

    function sub(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require((z = x - y) <= x, "ds-math-sub-underflow");
    }

    function mul(uint256 x, uint256 y) internal pure returns (uint256 z) {
        require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
    }
}

File 15 of 17 : UQ112x112.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.5.16;

// 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 {
    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 16 of 17 : IThrusterYield.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

interface IThrusterYield {
    function claimYieldAll(address _recipient, uint256 _amountWETH, uint256 _amountUSDB)
        external
        returns (uint256 amountWETH, uint256 amountUSDB, uint256 amountGas);
    function claimGas(address _recipient, uint256 _minClaimRateBips) external returns (uint256 amount);

    function setManager(address _manager) external;
}

File 17 of 17 : IERC20Rebasing.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

interface IERC20Rebasing {
    enum YieldMode {
        AUTOMATIC,
        VOID,
        CLAIMABLE
    }
    // changes the yield mode of the caller and update the balance
    // to reflect the configuration

    function configure(IERC20Rebasing.YieldMode) external returns (uint256);
    // "claimable" yield mode accounts can call this this claim their yield
    // to another address
    function claim(address recipient, uint256 amount) external returns (uint256);
    // read the claimable amount for an account
    function getClaimableAmount(address account) external view returns (uint256);
}

Settings
{
  "remappings": [
    "openzeppelin/=lib/openzeppelin-contracts/",
    "@uniswap/v2-core/=lib/v2-core/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solidity-lib/=lib/solidity-lib/contracts/",
    "v2-core/=lib/v2-core/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "istanbul",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_yieldToSetter","type":"address"},{"internalType":"address","name":"_pointsAdmin","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimGas","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":false,"internalType":"uint256","name":"yieldCut","type":"uint256"}],"name":"SetYieldCut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"yieldTo","type":"address"}],"name":"SetYieldTo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newYieldToSetter","type":"address"}],"name":"SetYieldToSetter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint112","name":"reserve0","type":"uint112"},{"indexed":false,"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"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"},{"constant":true,"inputs":[],"name":"BLAST","outputs":[{"internalType":"contract IBlast","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"allPairsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_minClaimRateBips","type":"uint256"}],"name":"claimGas","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"createPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"amount0In","type":"uint256"},{"internalType":"uint256","name":"amount1In","type":"uint256"},{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"emitSwap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint112","name":"reserve0","type":"uint112"},{"internalType":"uint112","name":"reserve1","type":"uint112"}],"name":"emitSync","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"emitTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pairExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pointsAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_yieldCut","type":"uint256"}],"name":"setYieldCut","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_yieldTo","type":"address"}],"name":"setYieldTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newYieldToSetter","type":"address"}],"name":"setYieldToSetter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"yieldCut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"yieldTo","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"yieldToSetter","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051613f93380380613f938339818101604052604081101561003357600080fd5b50805160209091015160408051634e606c4760e01b81529051839173430000000000000000000000000000000000000291634e606c479160048082019260009290919082900301818387803b15801561008b57600080fd5b505af115801561009f573d6000803e3d6000fd5b5050600080546001600160a01b03199081166001600160a01b03958616178255600380548216888716179055600480549091169486169485178155604080516336b91f2b60e01b8152918201959095529351732536fe9ab3f511540f2f9e2ec2a805005c3dd800946336b91f2b9450602480820194509082900301818387803b15801561012b57600080fd5b505af115801561013f573d6000803e3d6000fd5b505050505050613e3f806101546000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806397d75776116100ad578063d0ebdbe711610071578063d0ebdbe7146102f6578063e634c4861461031c578063e6a439051461034a578063f23afcf614610378578063fe295c811461038057610121565b806397d757761461026a578063b2cef4ef14610272578063b7224bd5146102b8578063bd454fae146102c0578063c9c65396146102c857610121565b80633972bae0116100f45780633972bae01461020f578063481c6a7514610217578063574f2ba31461021f5780635895c6b3146102275780636ed8acd01461024d57610121565b806305bafd92146101265780631a56f648146101645780631e3dd18b1461019e57806323de6651146101d7575b600080fd5b6101526004803603604081101561013c57600080fd5b506001600160a01b0381351690602001356103a6565b60408051918252519081900360200190f35b61018a6004803603602081101561017a57600080fd5b50356001600160a01b031661054f565b604080519115158252519081900360200190f35b6101bb600480360360208110156101b457600080fd5b5035610564565b604080516001600160a01b039092168252519081900360200190f35b61020d600480360360608110156101ed57600080fd5b506001600160a01b0381358116916020810135909116906040013561058b565b005b6101bb610634565b6101bb610643565b610152610652565b61020d6004803603602081101561023d57600080fd5b50356001600160a01b0316610658565b61020d6004803603602081101561026357600080fd5b5035610759565b6101bb61083c565b61020d600480360360c081101561028857600080fd5b506001600160a01b03813581169160208101359160408201359160608101359160808201359160a0013516610847565b6101526108f8565b6101bb6108fe565b6101bb600480360360408110156102de57600080fd5b506001600160a01b038135811691602001351661090d565b61020d6004803603602081101561030c57600080fd5b50356001600160a01b0316610c44565b61020d6004803603604081101561033257600080fd5b506001600160701b0381358116916020013516610cb1565b6101bb6004803603604081101561036057600080fd5b506001600160a01b0381358116916020013516610d48565b6101bb610d6e565b61020d6004803603602081101561039657600080fd5b50356001600160a01b0316610d7d565b600080546001600160a01b031633146103f2576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b8161047f576040805163662aa11d60e01b81523060048201526001600160a01b038516602482015290516002604360981b019163662aa11d9160448083019260209291908290030181600087803b15801561044c57600080fd5b505af1158015610460573d6000803e3d6000fd5b505050506040513d602081101561047657600080fd5b5051905061050a565b60408051630951888f60e01b81523060048201526001600160a01b03851660248201526044810184905290516002604360981b0191630951888f9160648083019260209291908290030181600087803b1580156104db57600080fd5b505af11580156104ef573d6000803e3d6000fd5b505050506040513d602081101561050557600080fd5b505190505b6040805182815290516001600160a01b038516917f5eadc4013530f38d8b7709b47915d0cef30eee941dad69669a5b45e0686879fa919081900360200190a292915050565b60066020526000908152604090205460ff1681565b6007818154811061057157fe5b6000918252602090912001546001600160a01b0316905081565b3360009081526006602052604090205460ff166105da5760405162461bcd60e51b815260040180806020018281038252602481526020018062003de76024913960400191505060405180910390fd5b816001600160a01b0316836001600160a01b0316336001600160a01b03167fd1398bee19313d6bf672ccb116e51f4a1a947e91c757907f51fbb5b5e56c698f846040518082815260200191505060405180910390a4505050565b6002546001600160a01b031681565b6000546001600160a01b031681565b60075490565b6003546001600160a01b031633146106b4576040805162461bcd60e51b815260206004820152601a6024820152792a34393ab9ba32b92330b1ba37b93c9d102327a92124a22222a760311b604482015290519081900360640190fd5b6001600160a01b03811661070f576040805162461bcd60e51b815260206004820152601d60248201527f5468727573746572466163746f72793a205a45524f5f41444452455353000000604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0383169081179091556040517f9334b72f41f480521fbe9332bce7c38b01a41a57810f5b1770dd7338b8cb21e390600090a250565b6003546001600160a01b031633146107b5576040805162461bcd60e51b815260206004820152601a6024820152792a34393ab9ba32b92330b1ba37b93c9d102327a92124a22222a760311b604482015290519081900360640190fd5b6006811080156107c55750600081115b6108015760405162461bcd60e51b815260040180806020018281038252602281526020018062003da16022913960400191505060405180910390fd5b60018190556040805182815290517f94bb7553e573439d751d9d88e87265ff48a4bb9bb41bfcb75dde6ba610791baf9181900360200190a150565b6002604360981b0181565b3360009081526006602052604090205460ff166108965760405162461bcd60e51b815260040180806020018281038252602481526020018062003de76024913960400191505060405180910390fd5b60408051868152602081018690528082018590526060810184905290516001600160a01b03808416929089169133917f236c64fd115dc00cafeeaf44b6ca2af23a66ba0e282852756756b073c5515075919081900360800190a4505050505050565b60015481565b6004546001600160a01b031681565b6000816001600160a01b0316836001600160a01b031614156109615760405162461bcd60e51b815260040180806020018281038252602481526020018062003dc36024913960400191505060405180910390fd5b600080836001600160a01b0316856001600160a01b031610610984578385610987565b84845b90925090506001600160a01b0382166109e7576040805162461bcd60e51b815260206004820152601d60248201527f5468727573746572466163746f72793a205a45524f5f41444452455353000000604482015290519081900360640190fd5b6001600160a01b03828116600090815260056020908152604080832085851684529091529020541615610a61576040805162461bcd60e51b815260206004820152601c60248201527f5468727573746572466163746f72793a20504149525f45584953545300000000604482015290519081900360640190fd5b606060405180602001610a7390610e23565b6020820181038252601f19601f8201166040525090506000838360405160200180836001600160a01b03166001600160a01b031660601b8152601401826001600160a01b03166001600160a01b031660601b815260140192505050604051602081830303815290604052805190602001209050808251602084016000f56040805163485cc95560e01b81526001600160a01b038781166004830152868116602483015291519297509087169163485cc9559160448082019260009290919082900301818387803b158015610b4657600080fd5b505af1158015610b5a573d6000803e3d6000fd5b505050506001600160a01b0384811660008181526005602081815260408084208987168086529083528185208054978d166001600160a01b031998891681179091559383528185208686528352818520805488168517905560078054600181810183557fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688909101805490991686179098558486526006845294829020805460ff1916909717909655925483519283529082015281517f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9929181900390910190a35050505092915050565b6000546001600160a01b03163314610c8f576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604090205460ff16610d005760405162461bcd60e51b815260040180806020018281038252602481526020018062003de76024913960400191505060405180910390fd5b604080516001600160701b03808516825283166020820152815133927fc95e30a514d4115dee44b3ba17b2fc114501726562d4c5f2663c06f42df8f1e7928290030190a25050565b60056020908152600092835260408084209091529082529020546001600160a01b031681565b6003546001600160a01b031681565b6003546001600160a01b03163314610dd9576040805162461bcd60e51b815260206004820152601a6024820152792a34393ab9ba32b92330b1ba37b93c9d102327a92124a22222a760311b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f6d4e548a5a8c5ce85140453085235387a0e4325ce99409117e28f73dcb57a70390600090a250565b612f6f8062000e328339019056fe60806040526001600b553480156200001657600080fd5b50336001600160a01b031663f23afcf66040518163ffffffff1660e01b815260040160206040518083038186803b1580156200005157600080fd5b505afa15801562000066573d6000803e3d6000fd5b505050506040513d60208110156200007d57600080fd5b505160408051634e606c4760e01b8152905173430000000000000000000000000000000000000291634e606c4791600480830192600092919082900301818387803b158015620000cc57600080fd5b505af1158015620000e1573d6000803e3d6000fd5b5050604051631a33757d60e01b81527343000000000000000000000000000000000000039250631a33757d9150600290600401808260ff168152602001915050602060405180830381600087803b1580156200013c57600080fd5b505af115801562000151573d6000803e3d6000fd5b505050506040513d60208110156200016857600080fd5b5050604051631a33757d60e01b815273430000000000000000000000000000000000000490631a33757d90600290600401808260ff168152602001915050602060405180830381600087803b158015620001c157600080fd5b505af1158015620001d6573d6000803e3d6000fd5b505050506040513d6020811015620001ed57600080fd5b5050600080546001600160a01b039092166001600160a01b03199283161790556003805490911633179055604051469080605262002f1d8239604080519182900360520182208282018252600b83526a05468727573746572204c560ac1b602093840152815180830183526001808252603160f81b918501919091528251808501929092527f3af5d1a86556868dba39da8abc73e7f6f54b91f5db29b776d7b86cb2594958d7828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201959095523060a0808301919091528251808303909101815260c0909101909152805191012090915550612c2380620002fa6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80636a6278421161011a578063ad66aeb8116100ad578063d0ebdbe71161007c578063d0ebdbe71461062d578063d21220a714610653578063d505accf1461065b578063dd62ed3e146106ac578063fff6cae9146106da57610206565b8063ad66aeb8146105a7578063ba9a7a56146105f7578063bc25cf77146105ff578063c45a01551461062557610206565b806389afcb44116100e957806389afcb441461052c57806395d89b411461056b57806397d7577614610573578063a9059cbb1461057b57610206565b80636a627842146104b257806370a08231146104d85780637464fc3d146104fe5780637ecebe001461050657610206565b806330adf81f1161019d578063481c6a751161016c578063481c6a7514610464578063485cc9551461046c5780635909c0d51461049a5780635a3d5493146104a257806366759ad9146104aa57610206565b806330adf81f1461042e578063313ce5671461043657806331a0edec146104545780633644e5151461045c57610206565b8063095ea7b3116101d9578063095ea7b31461038c5780630dfe1681146103cc57806318160ddd146103f057806323b872dd146103f857610206565b8063022c0d9f1461020b57806305bafd921461029957806306fdde03146102d75780630902f1ac14610354575b600080fd5b6102976004803603608081101561022157600080fd5b8135916020810135916001600160a01b03604083013516919081019060808101606082013564010000000081111561025857600080fd5b82018360208201111561026a57600080fd5b8035906020019184600183028401116401000000008311171561028c57600080fd5b5090925090506106e2565b005b6102c5600480360360408110156102af57600080fd5b506001600160a01b038135169060200135610cb3565b60408051918252519081900360200190f35b6102df610e5c565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610319578181015183820152602001610301565b50505050905090810190601f1680156103465780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61035c610e83565b604080516001600160701b03948516815292909316602083015263ffffffff168183015290519081900360600190f35b6103b8600480360360408110156103a257600080fd5b506001600160a01b038135169060200135610ead565b604080519115158252519081900360200190f35b6103d4610ec4565b604080516001600160a01b039092168252519081900360200190f35b6102c5610ed3565b6103b86004803603606081101561040e57600080fd5b506001600160a01b03813581169160208101359091169060400135610ed9565b6102c5610f73565b61043e610f97565b6040805160ff9092168252519081900360200190f35b6103d4610f9c565b6102c5610fa7565b6103d4610fad565b6102976004803603604081101561048257600080fd5b506001600160a01b0381358116916020013516610fbc565b6102c5611148565b6102c561114e565b6103d4611154565b6102c5600480360360208110156104c857600080fd5b50356001600160a01b031661115f565b6102c5600480360360208110156104ee57600080fd5b50356001600160a01b0316611465565b6102c5611477565b6102c56004803603602081101561051c57600080fd5b50356001600160a01b031661147d565b6105526004803603602081101561054257600080fd5b50356001600160a01b031661148f565b6040805192835260208301919091528051918290030190f35b6102df61183d565b6103d461185d565b6103b86004803603604081101561059157600080fd5b506001600160a01b038135169060200135611868565b6105d9600480360360608110156105bd57600080fd5b506001600160a01b038135169060208101359060400135611875565b60408051938452602084019290925282820152519081900360600190f35b6102c5611aa9565b6102976004803603602081101561061557600080fd5b50356001600160a01b0316611aaf565b6103d4611c21565b6102976004803603602081101561064357600080fd5b50356001600160a01b0316611c30565b6103d4611c9d565b610297600480360360e081101561067157600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611cac565b6102c5600480360360408110156106c257600080fd5b506001600160a01b0381358116916020013516611eb7565b610297611ed4565b600b54600114610730576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b55841515806107435750600084115b61077e5760405162461bcd60e51b8152600401808060200182810382526028815260200180612b4a6028913960400191505060405180910390fd5b600080610789610e83565b5091509150816001600160701b0316871080156107ae5750806001600160701b031686105b6107e95760405162461bcd60e51b8152600401808060200182810382526024815260200180612b266024913960400191505060405180910390fd5b60045460055460009182916001600160a01b039182169190811690891682148015906108275750806001600160a01b0316896001600160a01b031614155b610878576040805162461bcd60e51b815260206004820152601860248201527f5468727573746572506169723a20494e56414c49445f544f0000000000000000604482015290519081900360640190fd5b8a1561088957610889828a8d61203d565b891561089a5761089a818a8c61203d565b861561095557886001600160a01b03166310d1e85c338d8d8c8c6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b15801561093c57600080fd5b505af1158015610950573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561099b57600080fd5b505afa1580156109af573d6000803e3d6000fd5b505050506040513d60208110156109c557600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038316916370a0823191602480820192602092909190829003018186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d6020811015610a3b57600080fd5b5051925060009150506001600160701b0385168a90038311610a5e576000610a6d565b89856001600160701b03160383035b9050600089856001600160701b0316038311610a8a576000610a99565b89856001600160701b03160383035b90506000821180610aaa5750600081115b610ae55760405162461bcd60e51b8152600401808060200182810382526027815260200180612b9d6027913960400191505060405180910390fd5b6000610b19610afb84600a63ffffffff6121d716565b610b0d876103e863ffffffff6121d716565b9063ffffffff61223a16565b90506000610b31610afb84600a63ffffffff6121d716565b9050610b62620f4240610b566001600160701b038b8116908b1663ffffffff6121d716565b9063ffffffff6121d716565b610b72838363ffffffff6121d716565b1015610bb7576040805162461bcd60e51b815260206004820152600f60248201526e5468727573746572506169723a204b60881b604482015290519081900360640190fd5b5050610bc58484888861228a565b60408051838152602081018390528082018d9052606081018c905290516001600160a01b038b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a36003546040805163b2cef4ef60e01b81523360048201526024810185905260448101849052606481018e9052608481018d90526001600160a01b038c811660a48301529151919092169163b2cef4ef9160c480830192600092919082900301818387803b158015610c8957600080fd5b505af1158015610c9d573d6000803e3d6000fd5b50506001600b5550505050505050505050505050565b600080546001600160a01b03163314610cff576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b81610d8c576040805163662aa11d60e01b81523060048201526001600160a01b038516602482015290516002604360981b019163662aa11d9160448083019260209291908290030181600087803b158015610d5957600080fd5b505af1158015610d6d573d6000803e3d6000fd5b505050506040513d6020811015610d8357600080fd5b50519050610e17565b60408051630951888f60e01b81523060048201526001600160a01b03851660248201526044810184905290516002604360981b0191630951888f9160648083019260209291908290030181600087803b158015610de857600080fd5b505af1158015610dfc573d6000803e3d6000fd5b505050506040513d6020811015610e1257600080fd5b505190505b6040805182815290516001600160a01b038516917f5eadc4013530f38d8b7709b47915d0cef30eee941dad69669a5b45e0686879fa919081900360200190a292915050565b6040518060400160405280600b81526020016a05468727573746572204c560ac1b81525081565b6007546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b6000610eba3384846124d2565b5060015b92915050565b6004546001600160a01b031681565b60065481565b6001600160a01b0383166000908152600d6020908152604080832033845290915281205460001914610f5e576001600160a01b0384166000908152600d60209081526040808320338452909152902054610f39908363ffffffff61223a16565b6001600160a01b0385166000908152600d602090815260408083203384529091529020555b610f69848484612534565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b6003604360981b0181565b60015481565b6000546001600160a01b031681565b6003546001600160a01b0316331461101b576040805162461bcd60e51b815260206004820152601760248201527f5468727573746572506169723a20464f5242494444454e000000000000000000604482015290519081900360640190fd5b732536fe9ab3f511540f2f9e2ec2a805005c3dd8006001600160a01b03166336b91f2b600360009054906101000a90046001600160a01b03166001600160a01b031663bd454fae6040518163ffffffff1660e01b815260040160206040518083038186803b15801561108c57600080fd5b505afa1580156110a0573d6000803e3d6000fd5b505050506040513d60208110156110b657600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015251602480830192600092919082900301818387803b1580156110fe57600080fd5b505af1158015611112573d6000803e3d6000fd5b5050600480546001600160a01b039586166001600160a01b03199182161790915560058054949095169316929092179092555050565b60085481565b60095481565b6004604360981b0181565b6000600b546001146111af576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b819055806111bf610e83565b5060048054604080516370a0823160e01b81523093810193909352519395509193506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561121657600080fd5b505afa15801561122a573d6000803e3d6000fd5b505050506040513d602081101561124057600080fd5b5051600554604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561129357600080fd5b505afa1580156112a7573d6000803e3d6000fd5b505050506040513d60208110156112bd57600080fd5b5051905060006112dc836001600160701b03871663ffffffff61223a16565b905060006112f9836001600160701b03871663ffffffff61223a16565b905060006113078787612663565b60065490915080611344576113306103e8610b0d61132b878763ffffffff6121d716565b61283a565b985061133f60006103e861288c565b611393565b6113906001600160701b038916611361868463ffffffff6121d716565b8161136857fe5b046001600160701b038916611383868563ffffffff6121d716565b8161138a57fe5b04612994565b98505b600089116113d25760405162461bcd60e51b815260040180806020018281038252602b815260200180612bc4602b913960400191505060405180910390fd5b6113dc8a8a61288c565b6113e886868a8a61228a565b811561141857600754611414906001600160701b0380821691600160701b90041663ffffffff6121d716565b600a555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600b5550949695505050505050565b600c6020526000908152604090205481565b600a5481565b60026020526000908152604090205481565b600080600b546001146114e0576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b819055806114f0610e83565b5060048054600554604080516370a0823160e01b81523094810194909452519496509294506001600160a01b039081169392169160009184916370a0823191602480820192602092909190829003018186803b15801561154f57600080fd5b505afa158015611563573d6000803e3d6000fd5b505050506040513d602081101561157957600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156115c757600080fd5b505afa1580156115db573d6000803e3d6000fd5b505050506040513d60208110156115f157600080fd5b5051306000908152600c60205260408120549192506116108888612663565b600654909150611626838663ffffffff6121d716565b8161162d57fe5b6006549190049a50611645838563ffffffff6121d716565b8161164c57fe5b04985060008a11801561165f5750600089115b61169a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612b72602b913960400191505060405180910390fd5b6116a430836129ac565b6116af868c8c61203d565b6116ba858c8b61203d565b604080516370a0823160e01b815230600482015290516001600160a01b038816916370a08231916024808301926020929190829003018186803b15801561170057600080fd5b505afa158015611714573d6000803e3d6000fd5b505050506040513d602081101561172a57600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038716916370a0823191602480820192602092909190829003018186803b15801561177657600080fd5b505afa15801561178a573d6000803e3d6000fd5b505050506040513d60208110156117a057600080fd5b505192506117b084848a8a61228a565b80156117e0576007546117dc906001600160701b0380821691600160701b90041663ffffffff6121d716565b600a555b604080518b8152602081018b905281516001600160a01b038e169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a350505050505050506001600b81905550915091565b604051806040016040528060048152602001630542d4c560e41b81525081565b6002604360981b0181565b6000610eba338484612534565b60008054819081906001600160a01b031633146118c5576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b60408051635569f64b60e11b81526001600160a01b03881660048201526024810187905290516004604360981b019163aad3ec969160448083019260209291908290030181600087803b15801561191b57600080fd5b505af115801561192f573d6000803e3d6000fd5b505050506040513d602081101561194557600080fd5b505160408051635569f64b60e11b81526001600160a01b03891660048201526024810187905290519194506003604360981b019163aad3ec96916044808201926020929091908290030181600087803b1580156119a157600080fd5b505af11580156119b5573d6000803e3d6000fd5b505050506040513d60208110156119cb57600080fd5b50516040805163662aa11d60e01b81523060048201526001600160a01b038916602482015290519193506002604360981b019163662aa11d916044808201926020929091908290030181600087803b158015611a2657600080fd5b505af1158015611a3a573d6000803e3d6000fd5b505050506040513d6020811015611a5057600080fd5b5051604080518581526020810185905280820183905290519192506001600160a01b038816917f1943c53b7309df037b9077befdba52e1fd2c298ad0e91a0b4a4d163c7d095f189181900360600190a293509350939050565b6103e881565b600b54600114611afd576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b5560048054600554600754604080516370a0823160e01b81523095810195909552516001600160a01b03938416949390921692611bb09285928792611bab926001600160701b039092169185916370a08231916024808301926020929190829003018186803b158015611b7357600080fd5b505afa158015611b87573d6000803e3d6000fd5b505050506040513d6020811015611b9d57600080fd5b50519063ffffffff61223a16565b61203d565b600754604080516370a0823160e01b81523060048201529051611c179284928792611bab92600160701b90046001600160701b0316916001600160a01b038616916370a0823191602480820192602092909190829003018186803b158015611b7357600080fd5b50506001600b5550565b6003546001600160a01b031681565b6000546001600160a01b03163314611c7b576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031681565b42841015611cfa576040805162461bcd60e51b8152602060048201526016602482015275151a1c9d5cdd195c915490cc8c0e881156141254915160521b604482015290519081900360640190fd5b600180546001600160a01b03808a166000818152600260209081526040808320805480890190915581517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98185015280830195909552948d166060850152608084018c905260a084019490945260c08084018b90528451808503909101815260e08401855280519082012061190160f01b6101008501526101028401959095526101228084019590955283518084039095018552610142830180855285519582019590952094829052610162830180855285905260ff89166101828401526101a283018890526101c2830187905292519394909390926101e2808401939192601f1981019281900390910190855afa158015611e1a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590611e505750886001600160a01b0316816001600160a01b0316145b611ea1576040805162461bcd60e51b815260206004820181905260248201527f546872757374657245524332303a20494e56414c49445f5349474e4154555245604482015290519081900360640190fd5b611eac8989896124d2565b505050505050505050565b600d60209081526000928352604080842090915290825290205481565b600b54600114611f22576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b5560048054604080516370a0823160e01b8152309381019390935251612036926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015611f7757600080fd5b505afa158015611f8b573d6000803e3d6000fd5b505050506040513d6020811015611fa157600080fd5b5051600554604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611fee57600080fd5b505afa158015612002573d6000803e3d6000fd5b505050506040513d602081101561201857600080fd5b50516007546001600160701b0380821691600160701b90041661228a565b6001600b55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b602083106120ea5780518252601f1990920191602091820191016120cb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461214c576040519150601f19603f3d011682016040523d82523d6000602084013e612151565b606091505b509150915081801561217f57508051158061217f575080806020019051602081101561217c57600080fd5b50515b6121d0576040805162461bcd60e51b815260206004820152601d60248201527f5468727573746572506169723a205452414e534645525f4641494c4544000000604482015290519081900360640190fd5b5050505050565b60008115806121f2575050808202828282816121ef57fe5b04145b610ebe576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820382811115610ebe576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6001600160701b0384118015906122a857506001600160701b038311155b6122f2576040805162461bcd60e51b81526020600482015260166024820152755468727573746572506169723a204f564552464c4f5760501b604482015290519081900360640190fd5b60075463ffffffff42811691600160e01b9004811682039081161580159061232257506001600160701b03841615155b801561233657506001600160701b03831615155b156123a7578063ffffffff166123648561234f86612a9f565b6001600160e01b03169063ffffffff612ab116565b600880546001600160e01b03929092169290920201905563ffffffff811661238f8461234f87612a9f565b600980546001600160e01b0392909216929092020190555b600780546dffffffffffffffffffffffffffff19166001600160701b03888116919091176dffffffffffffffffffffffffffff60701b1916600160701b8883168102919091176001600160e01b0316600160e01b63ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a16003546007546040805163731a624360e11b81526001600160701b038084166004830152600160701b9093049092166024830152516001600160a01b039092169163e634c4869160448082019260009290919082900301818387803b1580156124b257600080fd5b505af11580156124c6573d6000803e3d6000fd5b50505050505050505050565b6001600160a01b038084166000818152600d6020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166000908152600c602052604090205461255d908263ffffffff61223a16565b6001600160a01b038085166000908152600c60205260408082209390935590841681522054612592908263ffffffff612ad616565b6001600160a01b038084166000818152600c602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3600354604080516323de665160e01b81526001600160a01b038681166004830152858116602483015260448201859052915191909216916323de665191606480830192600092919082900301818387803b15801561264657600080fd5b505af115801561265a573d6000803e3d6000fd5b50505050505050565b600080600360009054906101000a90046001600160a01b03166001600160a01b0316633972bae06040518163ffffffff1660e01b815260040160206040518083038186803b1580156126b457600080fd5b505afa1580156126c8573d6000803e3d6000fd5b505050506040513d60208110156126de57600080fd5b5051600a546001600160a01b03821615801594509192509061282657801561282157600061272161132b6001600160701b0388811690881663ffffffff6121d716565b9050600061272e8361283a565b90508082111561281e57600061275c61274d848463ffffffff61223a16565b6006549063ffffffff6121d716565b905060006127fa836127ee600360009054906101000a90046001600160a01b03166001600160a01b031663b7224bd56040518163ffffffff1660e01b815260040160206040518083038186803b1580156127b557600080fd5b505afa1580156127c9573d6000803e3d6000fd5b505050506040513d60208110156127df57600080fd5b5051879063ffffffff6121d716565b9063ffffffff612ad616565b9050600081838161280757fe5b049050801561281a5761281a878261288c565b5050505b50505b612832565b8015612832576000600a555b505092915050565b6000600382111561287d575080600160028204015b818110156128775780915060028182858161286657fe5b04018161286f57fe5b04905061284f565b50612887565b8115612887575060015b919050565b60065461289f908263ffffffff612ad616565b6006556001600160a01b0382166000908152600c60205260409020546128cb908263ffffffff612ad616565b6001600160a01b0383166000818152600c602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3600354604080516323de665160e01b81526000600482018190526001600160a01b03868116602484015260448301869052925192909316926323de66519260648084019382900301818387803b15801561297857600080fd5b505af115801561298c573d6000803e3d6000fd5b505050505050565b60008183106129a357816129a5565b825b9392505050565b6001600160a01b0382166000908152600c60205260409020546129d5908263ffffffff61223a16565b6001600160a01b0383166000908152600c6020526040902055600654612a01908263ffffffff61223a16565b6006556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3600354604080516323de665160e01b81526001600160a01b0385811660048301526000602483018190526044830186905292519316926323de66519260648084019391929182900301818387803b15801561297857600080fd5b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b03841681612ace57fe5b049392505050565b80820182811015610ebe576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fdfe5468727573746572506169723a20494e53554646494349454e545f4c49515549444954595468727573746572506169723a20494e53554646494349454e545f4f55545055545f414d4f554e545468727573746572506169723a20494e53554646494349454e545f4c49515549444954595f4255524e45445468727573746572506169723a20494e53554646494349454e545f494e5055545f414d4f554e545468727573746572506169723a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a723158207e42aa68e98a053ea6dbc0918c80d9cabbf9356d32e1f2cd794994ea5e8416ea64736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e7472616374295468727573746572466163746f72793a20494e56414c49445f5949454c445f4355545468727573746572466163746f72793a204944454e544943414c5f4144445245535345535468727573746572466163746f72793a20504149525f444f45535f4e4f545f4558495354a265627a7a72315820dda84da3414462b932313b221c461bdc175b7570caf850707be6466435d6a65764736f6c634300051000320000000000000000000000003b143ca171194c97183ef51b0d56554aa68d0588000000000000000000000000d6b64e44aae0938118ad0dae251b859d85351c22

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c806397d75776116100ad578063d0ebdbe711610071578063d0ebdbe7146102f6578063e634c4861461031c578063e6a439051461034a578063f23afcf614610378578063fe295c811461038057610121565b806397d757761461026a578063b2cef4ef14610272578063b7224bd5146102b8578063bd454fae146102c0578063c9c65396146102c857610121565b80633972bae0116100f45780633972bae01461020f578063481c6a7514610217578063574f2ba31461021f5780635895c6b3146102275780636ed8acd01461024d57610121565b806305bafd92146101265780631a56f648146101645780631e3dd18b1461019e57806323de6651146101d7575b600080fd5b6101526004803603604081101561013c57600080fd5b506001600160a01b0381351690602001356103a6565b60408051918252519081900360200190f35b61018a6004803603602081101561017a57600080fd5b50356001600160a01b031661054f565b604080519115158252519081900360200190f35b6101bb600480360360208110156101b457600080fd5b5035610564565b604080516001600160a01b039092168252519081900360200190f35b61020d600480360360608110156101ed57600080fd5b506001600160a01b0381358116916020810135909116906040013561058b565b005b6101bb610634565b6101bb610643565b610152610652565b61020d6004803603602081101561023d57600080fd5b50356001600160a01b0316610658565b61020d6004803603602081101561026357600080fd5b5035610759565b6101bb61083c565b61020d600480360360c081101561028857600080fd5b506001600160a01b03813581169160208101359160408201359160608101359160808201359160a0013516610847565b6101526108f8565b6101bb6108fe565b6101bb600480360360408110156102de57600080fd5b506001600160a01b038135811691602001351661090d565b61020d6004803603602081101561030c57600080fd5b50356001600160a01b0316610c44565b61020d6004803603604081101561033257600080fd5b506001600160701b0381358116916020013516610cb1565b6101bb6004803603604081101561036057600080fd5b506001600160a01b0381358116916020013516610d48565b6101bb610d6e565b61020d6004803603602081101561039657600080fd5b50356001600160a01b0316610d7d565b600080546001600160a01b031633146103f2576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b8161047f576040805163662aa11d60e01b81523060048201526001600160a01b038516602482015290516002604360981b019163662aa11d9160448083019260209291908290030181600087803b15801561044c57600080fd5b505af1158015610460573d6000803e3d6000fd5b505050506040513d602081101561047657600080fd5b5051905061050a565b60408051630951888f60e01b81523060048201526001600160a01b03851660248201526044810184905290516002604360981b0191630951888f9160648083019260209291908290030181600087803b1580156104db57600080fd5b505af11580156104ef573d6000803e3d6000fd5b505050506040513d602081101561050557600080fd5b505190505b6040805182815290516001600160a01b038516917f5eadc4013530f38d8b7709b47915d0cef30eee941dad69669a5b45e0686879fa919081900360200190a292915050565b60066020526000908152604090205460ff1681565b6007818154811061057157fe5b6000918252602090912001546001600160a01b0316905081565b3360009081526006602052604090205460ff166105da5760405162461bcd60e51b815260040180806020018281038252602481526020018062003de76024913960400191505060405180910390fd5b816001600160a01b0316836001600160a01b0316336001600160a01b03167fd1398bee19313d6bf672ccb116e51f4a1a947e91c757907f51fbb5b5e56c698f846040518082815260200191505060405180910390a4505050565b6002546001600160a01b031681565b6000546001600160a01b031681565b60075490565b6003546001600160a01b031633146106b4576040805162461bcd60e51b815260206004820152601a6024820152792a34393ab9ba32b92330b1ba37b93c9d102327a92124a22222a760311b604482015290519081900360640190fd5b6001600160a01b03811661070f576040805162461bcd60e51b815260206004820152601d60248201527f5468727573746572466163746f72793a205a45524f5f41444452455353000000604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0383169081179091556040517f9334b72f41f480521fbe9332bce7c38b01a41a57810f5b1770dd7338b8cb21e390600090a250565b6003546001600160a01b031633146107b5576040805162461bcd60e51b815260206004820152601a6024820152792a34393ab9ba32b92330b1ba37b93c9d102327a92124a22222a760311b604482015290519081900360640190fd5b6006811080156107c55750600081115b6108015760405162461bcd60e51b815260040180806020018281038252602281526020018062003da16022913960400191505060405180910390fd5b60018190556040805182815290517f94bb7553e573439d751d9d88e87265ff48a4bb9bb41bfcb75dde6ba610791baf9181900360200190a150565b6002604360981b0181565b3360009081526006602052604090205460ff166108965760405162461bcd60e51b815260040180806020018281038252602481526020018062003de76024913960400191505060405180910390fd5b60408051868152602081018690528082018590526060810184905290516001600160a01b03808416929089169133917f236c64fd115dc00cafeeaf44b6ca2af23a66ba0e282852756756b073c5515075919081900360800190a4505050505050565b60015481565b6004546001600160a01b031681565b6000816001600160a01b0316836001600160a01b031614156109615760405162461bcd60e51b815260040180806020018281038252602481526020018062003dc36024913960400191505060405180910390fd5b600080836001600160a01b0316856001600160a01b031610610984578385610987565b84845b90925090506001600160a01b0382166109e7576040805162461bcd60e51b815260206004820152601d60248201527f5468727573746572466163746f72793a205a45524f5f41444452455353000000604482015290519081900360640190fd5b6001600160a01b03828116600090815260056020908152604080832085851684529091529020541615610a61576040805162461bcd60e51b815260206004820152601c60248201527f5468727573746572466163746f72793a20504149525f45584953545300000000604482015290519081900360640190fd5b606060405180602001610a7390610e23565b6020820181038252601f19601f8201166040525090506000838360405160200180836001600160a01b03166001600160a01b031660601b8152601401826001600160a01b03166001600160a01b031660601b815260140192505050604051602081830303815290604052805190602001209050808251602084016000f56040805163485cc95560e01b81526001600160a01b038781166004830152868116602483015291519297509087169163485cc9559160448082019260009290919082900301818387803b158015610b4657600080fd5b505af1158015610b5a573d6000803e3d6000fd5b505050506001600160a01b0384811660008181526005602081815260408084208987168086529083528185208054978d166001600160a01b031998891681179091559383528185208686528352818520805488168517905560078054600181810183557fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688909101805490991686179098558486526006845294829020805460ff1916909717909655925483519283529082015281517f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9929181900390910190a35050505092915050565b6000546001600160a01b03163314610c8f576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604090205460ff16610d005760405162461bcd60e51b815260040180806020018281038252602481526020018062003de76024913960400191505060405180910390fd5b604080516001600160701b03808516825283166020820152815133927fc95e30a514d4115dee44b3ba17b2fc114501726562d4c5f2663c06f42df8f1e7928290030190a25050565b60056020908152600092835260408084209091529082529020546001600160a01b031681565b6003546001600160a01b031681565b6003546001600160a01b03163314610dd9576040805162461bcd60e51b815260206004820152601a6024820152792a34393ab9ba32b92330b1ba37b93c9d102327a92124a22222a760311b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f6d4e548a5a8c5ce85140453085235387a0e4325ce99409117e28f73dcb57a70390600090a250565b612f6f8062000e328339019056fe60806040526001600b553480156200001657600080fd5b50336001600160a01b031663f23afcf66040518163ffffffff1660e01b815260040160206040518083038186803b1580156200005157600080fd5b505afa15801562000066573d6000803e3d6000fd5b505050506040513d60208110156200007d57600080fd5b505160408051634e606c4760e01b8152905173430000000000000000000000000000000000000291634e606c4791600480830192600092919082900301818387803b158015620000cc57600080fd5b505af1158015620000e1573d6000803e3d6000fd5b5050604051631a33757d60e01b81527343000000000000000000000000000000000000039250631a33757d9150600290600401808260ff168152602001915050602060405180830381600087803b1580156200013c57600080fd5b505af115801562000151573d6000803e3d6000fd5b505050506040513d60208110156200016857600080fd5b5050604051631a33757d60e01b815273430000000000000000000000000000000000000490631a33757d90600290600401808260ff168152602001915050602060405180830381600087803b158015620001c157600080fd5b505af1158015620001d6573d6000803e3d6000fd5b505050506040513d6020811015620001ed57600080fd5b5050600080546001600160a01b039092166001600160a01b03199283161790556003805490911633179055604051469080605262002f1d8239604080519182900360520182208282018252600b83526a05468727573746572204c560ac1b602093840152815180830183526001808252603160f81b918501919091528251808501929092527f3af5d1a86556868dba39da8abc73e7f6f54b91f5db29b776d7b86cb2594958d7828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201959095523060a0808301919091528251808303909101815260c0909101909152805191012090915550612c2380620002fa6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80636a6278421161011a578063ad66aeb8116100ad578063d0ebdbe71161007c578063d0ebdbe71461062d578063d21220a714610653578063d505accf1461065b578063dd62ed3e146106ac578063fff6cae9146106da57610206565b8063ad66aeb8146105a7578063ba9a7a56146105f7578063bc25cf77146105ff578063c45a01551461062557610206565b806389afcb44116100e957806389afcb441461052c57806395d89b411461056b57806397d7577614610573578063a9059cbb1461057b57610206565b80636a627842146104b257806370a08231146104d85780637464fc3d146104fe5780637ecebe001461050657610206565b806330adf81f1161019d578063481c6a751161016c578063481c6a7514610464578063485cc9551461046c5780635909c0d51461049a5780635a3d5493146104a257806366759ad9146104aa57610206565b806330adf81f1461042e578063313ce5671461043657806331a0edec146104545780633644e5151461045c57610206565b8063095ea7b3116101d9578063095ea7b31461038c5780630dfe1681146103cc57806318160ddd146103f057806323b872dd146103f857610206565b8063022c0d9f1461020b57806305bafd921461029957806306fdde03146102d75780630902f1ac14610354575b600080fd5b6102976004803603608081101561022157600080fd5b8135916020810135916001600160a01b03604083013516919081019060808101606082013564010000000081111561025857600080fd5b82018360208201111561026a57600080fd5b8035906020019184600183028401116401000000008311171561028c57600080fd5b5090925090506106e2565b005b6102c5600480360360408110156102af57600080fd5b506001600160a01b038135169060200135610cb3565b60408051918252519081900360200190f35b6102df610e5c565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610319578181015183820152602001610301565b50505050905090810190601f1680156103465780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61035c610e83565b604080516001600160701b03948516815292909316602083015263ffffffff168183015290519081900360600190f35b6103b8600480360360408110156103a257600080fd5b506001600160a01b038135169060200135610ead565b604080519115158252519081900360200190f35b6103d4610ec4565b604080516001600160a01b039092168252519081900360200190f35b6102c5610ed3565b6103b86004803603606081101561040e57600080fd5b506001600160a01b03813581169160208101359091169060400135610ed9565b6102c5610f73565b61043e610f97565b6040805160ff9092168252519081900360200190f35b6103d4610f9c565b6102c5610fa7565b6103d4610fad565b6102976004803603604081101561048257600080fd5b506001600160a01b0381358116916020013516610fbc565b6102c5611148565b6102c561114e565b6103d4611154565b6102c5600480360360208110156104c857600080fd5b50356001600160a01b031661115f565b6102c5600480360360208110156104ee57600080fd5b50356001600160a01b0316611465565b6102c5611477565b6102c56004803603602081101561051c57600080fd5b50356001600160a01b031661147d565b6105526004803603602081101561054257600080fd5b50356001600160a01b031661148f565b6040805192835260208301919091528051918290030190f35b6102df61183d565b6103d461185d565b6103b86004803603604081101561059157600080fd5b506001600160a01b038135169060200135611868565b6105d9600480360360608110156105bd57600080fd5b506001600160a01b038135169060208101359060400135611875565b60408051938452602084019290925282820152519081900360600190f35b6102c5611aa9565b6102976004803603602081101561061557600080fd5b50356001600160a01b0316611aaf565b6103d4611c21565b6102976004803603602081101561064357600080fd5b50356001600160a01b0316611c30565b6103d4611c9d565b610297600480360360e081101561067157600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611cac565b6102c5600480360360408110156106c257600080fd5b506001600160a01b0381358116916020013516611eb7565b610297611ed4565b600b54600114610730576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b55841515806107435750600084115b61077e5760405162461bcd60e51b8152600401808060200182810382526028815260200180612b4a6028913960400191505060405180910390fd5b600080610789610e83565b5091509150816001600160701b0316871080156107ae5750806001600160701b031686105b6107e95760405162461bcd60e51b8152600401808060200182810382526024815260200180612b266024913960400191505060405180910390fd5b60045460055460009182916001600160a01b039182169190811690891682148015906108275750806001600160a01b0316896001600160a01b031614155b610878576040805162461bcd60e51b815260206004820152601860248201527f5468727573746572506169723a20494e56414c49445f544f0000000000000000604482015290519081900360640190fd5b8a1561088957610889828a8d61203d565b891561089a5761089a818a8c61203d565b861561095557886001600160a01b03166310d1e85c338d8d8c8c6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b15801561093c57600080fd5b505af1158015610950573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561099b57600080fd5b505afa1580156109af573d6000803e3d6000fd5b505050506040513d60208110156109c557600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038316916370a0823191602480820192602092909190829003018186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d6020811015610a3b57600080fd5b5051925060009150506001600160701b0385168a90038311610a5e576000610a6d565b89856001600160701b03160383035b9050600089856001600160701b0316038311610a8a576000610a99565b89856001600160701b03160383035b90506000821180610aaa5750600081115b610ae55760405162461bcd60e51b8152600401808060200182810382526027815260200180612b9d6027913960400191505060405180910390fd5b6000610b19610afb84600a63ffffffff6121d716565b610b0d876103e863ffffffff6121d716565b9063ffffffff61223a16565b90506000610b31610afb84600a63ffffffff6121d716565b9050610b62620f4240610b566001600160701b038b8116908b1663ffffffff6121d716565b9063ffffffff6121d716565b610b72838363ffffffff6121d716565b1015610bb7576040805162461bcd60e51b815260206004820152600f60248201526e5468727573746572506169723a204b60881b604482015290519081900360640190fd5b5050610bc58484888861228a565b60408051838152602081018390528082018d9052606081018c905290516001600160a01b038b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a36003546040805163b2cef4ef60e01b81523360048201526024810185905260448101849052606481018e9052608481018d90526001600160a01b038c811660a48301529151919092169163b2cef4ef9160c480830192600092919082900301818387803b158015610c8957600080fd5b505af1158015610c9d573d6000803e3d6000fd5b50506001600b5550505050505050505050505050565b600080546001600160a01b03163314610cff576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b81610d8c576040805163662aa11d60e01b81523060048201526001600160a01b038516602482015290516002604360981b019163662aa11d9160448083019260209291908290030181600087803b158015610d5957600080fd5b505af1158015610d6d573d6000803e3d6000fd5b505050506040513d6020811015610d8357600080fd5b50519050610e17565b60408051630951888f60e01b81523060048201526001600160a01b03851660248201526044810184905290516002604360981b0191630951888f9160648083019260209291908290030181600087803b158015610de857600080fd5b505af1158015610dfc573d6000803e3d6000fd5b505050506040513d6020811015610e1257600080fd5b505190505b6040805182815290516001600160a01b038516917f5eadc4013530f38d8b7709b47915d0cef30eee941dad69669a5b45e0686879fa919081900360200190a292915050565b6040518060400160405280600b81526020016a05468727573746572204c560ac1b81525081565b6007546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b6000610eba3384846124d2565b5060015b92915050565b6004546001600160a01b031681565b60065481565b6001600160a01b0383166000908152600d6020908152604080832033845290915281205460001914610f5e576001600160a01b0384166000908152600d60209081526040808320338452909152902054610f39908363ffffffff61223a16565b6001600160a01b0385166000908152600d602090815260408083203384529091529020555b610f69848484612534565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b6003604360981b0181565b60015481565b6000546001600160a01b031681565b6003546001600160a01b0316331461101b576040805162461bcd60e51b815260206004820152601760248201527f5468727573746572506169723a20464f5242494444454e000000000000000000604482015290519081900360640190fd5b732536fe9ab3f511540f2f9e2ec2a805005c3dd8006001600160a01b03166336b91f2b600360009054906101000a90046001600160a01b03166001600160a01b031663bd454fae6040518163ffffffff1660e01b815260040160206040518083038186803b15801561108c57600080fd5b505afa1580156110a0573d6000803e3d6000fd5b505050506040513d60208110156110b657600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015251602480830192600092919082900301818387803b1580156110fe57600080fd5b505af1158015611112573d6000803e3d6000fd5b5050600480546001600160a01b039586166001600160a01b03199182161790915560058054949095169316929092179092555050565b60085481565b60095481565b6004604360981b0181565b6000600b546001146111af576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b819055806111bf610e83565b5060048054604080516370a0823160e01b81523093810193909352519395509193506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561121657600080fd5b505afa15801561122a573d6000803e3d6000fd5b505050506040513d602081101561124057600080fd5b5051600554604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561129357600080fd5b505afa1580156112a7573d6000803e3d6000fd5b505050506040513d60208110156112bd57600080fd5b5051905060006112dc836001600160701b03871663ffffffff61223a16565b905060006112f9836001600160701b03871663ffffffff61223a16565b905060006113078787612663565b60065490915080611344576113306103e8610b0d61132b878763ffffffff6121d716565b61283a565b985061133f60006103e861288c565b611393565b6113906001600160701b038916611361868463ffffffff6121d716565b8161136857fe5b046001600160701b038916611383868563ffffffff6121d716565b8161138a57fe5b04612994565b98505b600089116113d25760405162461bcd60e51b815260040180806020018281038252602b815260200180612bc4602b913960400191505060405180910390fd5b6113dc8a8a61288c565b6113e886868a8a61228a565b811561141857600754611414906001600160701b0380821691600160701b90041663ffffffff6121d716565b600a555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600b5550949695505050505050565b600c6020526000908152604090205481565b600a5481565b60026020526000908152604090205481565b600080600b546001146114e0576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b819055806114f0610e83565b5060048054600554604080516370a0823160e01b81523094810194909452519496509294506001600160a01b039081169392169160009184916370a0823191602480820192602092909190829003018186803b15801561154f57600080fd5b505afa158015611563573d6000803e3d6000fd5b505050506040513d602081101561157957600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156115c757600080fd5b505afa1580156115db573d6000803e3d6000fd5b505050506040513d60208110156115f157600080fd5b5051306000908152600c60205260408120549192506116108888612663565b600654909150611626838663ffffffff6121d716565b8161162d57fe5b6006549190049a50611645838563ffffffff6121d716565b8161164c57fe5b04985060008a11801561165f5750600089115b61169a5760405162461bcd60e51b815260040180806020018281038252602b815260200180612b72602b913960400191505060405180910390fd5b6116a430836129ac565b6116af868c8c61203d565b6116ba858c8b61203d565b604080516370a0823160e01b815230600482015290516001600160a01b038816916370a08231916024808301926020929190829003018186803b15801561170057600080fd5b505afa158015611714573d6000803e3d6000fd5b505050506040513d602081101561172a57600080fd5b5051604080516370a0823160e01b815230600482015290519195506001600160a01b038716916370a0823191602480820192602092909190829003018186803b15801561177657600080fd5b505afa15801561178a573d6000803e3d6000fd5b505050506040513d60208110156117a057600080fd5b505192506117b084848a8a61228a565b80156117e0576007546117dc906001600160701b0380821691600160701b90041663ffffffff6121d716565b600a555b604080518b8152602081018b905281516001600160a01b038e169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a350505050505050506001600b81905550915091565b604051806040016040528060048152602001630542d4c560e41b81525081565b6002604360981b0181565b6000610eba338484612534565b60008054819081906001600160a01b031633146118c5576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b60408051635569f64b60e11b81526001600160a01b03881660048201526024810187905290516004604360981b019163aad3ec969160448083019260209291908290030181600087803b15801561191b57600080fd5b505af115801561192f573d6000803e3d6000fd5b505050506040513d602081101561194557600080fd5b505160408051635569f64b60e11b81526001600160a01b03891660048201526024810187905290519194506003604360981b019163aad3ec96916044808201926020929091908290030181600087803b1580156119a157600080fd5b505af11580156119b5573d6000803e3d6000fd5b505050506040513d60208110156119cb57600080fd5b50516040805163662aa11d60e01b81523060048201526001600160a01b038916602482015290519193506002604360981b019163662aa11d916044808201926020929091908290030181600087803b158015611a2657600080fd5b505af1158015611a3a573d6000803e3d6000fd5b505050506040513d6020811015611a5057600080fd5b5051604080518581526020810185905280820183905290519192506001600160a01b038816917f1943c53b7309df037b9077befdba52e1fd2c298ad0e91a0b4a4d163c7d095f189181900360600190a293509350939050565b6103e881565b600b54600114611afd576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b5560048054600554600754604080516370a0823160e01b81523095810195909552516001600160a01b03938416949390921692611bb09285928792611bab926001600160701b039092169185916370a08231916024808301926020929190829003018186803b158015611b7357600080fd5b505afa158015611b87573d6000803e3d6000fd5b505050506040513d6020811015611b9d57600080fd5b50519063ffffffff61223a16565b61203d565b600754604080516370a0823160e01b81523060048201529051611c179284928792611bab92600160701b90046001600160701b0316916001600160a01b038616916370a0823191602480820192602092909190829003018186803b158015611b7357600080fd5b50506001600b5550565b6003546001600160a01b031681565b6000546001600160a01b03163314611c7b576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031681565b42841015611cfa576040805162461bcd60e51b8152602060048201526016602482015275151a1c9d5cdd195c915490cc8c0e881156141254915160521b604482015290519081900360640190fd5b600180546001600160a01b03808a166000818152600260209081526040808320805480890190915581517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98185015280830195909552948d166060850152608084018c905260a084019490945260c08084018b90528451808503909101815260e08401855280519082012061190160f01b6101008501526101028401959095526101228084019590955283518084039095018552610142830180855285519582019590952094829052610162830180855285905260ff89166101828401526101a283018890526101c2830187905292519394909390926101e2808401939192601f1981019281900390910190855afa158015611e1a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590611e505750886001600160a01b0316816001600160a01b0316145b611ea1576040805162461bcd60e51b815260206004820181905260248201527f546872757374657245524332303a20494e56414c49445f5349474e4154555245604482015290519081900360640190fd5b611eac8989896124d2565b505050505050505050565b600d60209081526000928352604080842090915290825290205481565b600b54600114611f22576040805162461bcd60e51b8152602060048201526014602482015273151a1c9d5cdd195c94185a5c8e881313d0d2d15160621b604482015290519081900360640190fd5b6000600b5560048054604080516370a0823160e01b8152309381019390935251612036926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015611f7757600080fd5b505afa158015611f8b573d6000803e3d6000fd5b505050506040513d6020811015611fa157600080fd5b5051600554604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611fee57600080fd5b505afa158015612002573d6000803e3d6000fd5b505050506040513d602081101561201857600080fd5b50516007546001600160701b0380821691600160701b90041661228a565b6001600b55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b602083106120ea5780518252601f1990920191602091820191016120cb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461214c576040519150601f19603f3d011682016040523d82523d6000602084013e612151565b606091505b509150915081801561217f57508051158061217f575080806020019051602081101561217c57600080fd5b50515b6121d0576040805162461bcd60e51b815260206004820152601d60248201527f5468727573746572506169723a205452414e534645525f4641494c4544000000604482015290519081900360640190fd5b5050505050565b60008115806121f2575050808202828282816121ef57fe5b04145b610ebe576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b80820382811115610ebe576040805162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b604482015290519081900360640190fd5b6001600160701b0384118015906122a857506001600160701b038311155b6122f2576040805162461bcd60e51b81526020600482015260166024820152755468727573746572506169723a204f564552464c4f5760501b604482015290519081900360640190fd5b60075463ffffffff42811691600160e01b9004811682039081161580159061232257506001600160701b03841615155b801561233657506001600160701b03831615155b156123a7578063ffffffff166123648561234f86612a9f565b6001600160e01b03169063ffffffff612ab116565b600880546001600160e01b03929092169290920201905563ffffffff811661238f8461234f87612a9f565b600980546001600160e01b0392909216929092020190555b600780546dffffffffffffffffffffffffffff19166001600160701b03888116919091176dffffffffffffffffffffffffffff60701b1916600160701b8883168102919091176001600160e01b0316600160e01b63ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a16003546007546040805163731a624360e11b81526001600160701b038084166004830152600160701b9093049092166024830152516001600160a01b039092169163e634c4869160448082019260009290919082900301818387803b1580156124b257600080fd5b505af11580156124c6573d6000803e3d6000fd5b50505050505050505050565b6001600160a01b038084166000818152600d6020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166000908152600c602052604090205461255d908263ffffffff61223a16565b6001600160a01b038085166000908152600c60205260408082209390935590841681522054612592908263ffffffff612ad616565b6001600160a01b038084166000818152600c602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3600354604080516323de665160e01b81526001600160a01b038681166004830152858116602483015260448201859052915191909216916323de665191606480830192600092919082900301818387803b15801561264657600080fd5b505af115801561265a573d6000803e3d6000fd5b50505050505050565b600080600360009054906101000a90046001600160a01b03166001600160a01b0316633972bae06040518163ffffffff1660e01b815260040160206040518083038186803b1580156126b457600080fd5b505afa1580156126c8573d6000803e3d6000fd5b505050506040513d60208110156126de57600080fd5b5051600a546001600160a01b03821615801594509192509061282657801561282157600061272161132b6001600160701b0388811690881663ffffffff6121d716565b9050600061272e8361283a565b90508082111561281e57600061275c61274d848463ffffffff61223a16565b6006549063ffffffff6121d716565b905060006127fa836127ee600360009054906101000a90046001600160a01b03166001600160a01b031663b7224bd56040518163ffffffff1660e01b815260040160206040518083038186803b1580156127b557600080fd5b505afa1580156127c9573d6000803e3d6000fd5b505050506040513d60208110156127df57600080fd5b5051879063ffffffff6121d716565b9063ffffffff612ad616565b9050600081838161280757fe5b049050801561281a5761281a878261288c565b5050505b50505b612832565b8015612832576000600a555b505092915050565b6000600382111561287d575080600160028204015b818110156128775780915060028182858161286657fe5b04018161286f57fe5b04905061284f565b50612887565b8115612887575060015b919050565b60065461289f908263ffffffff612ad616565b6006556001600160a01b0382166000908152600c60205260409020546128cb908263ffffffff612ad616565b6001600160a01b0383166000818152600c602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3600354604080516323de665160e01b81526000600482018190526001600160a01b03868116602484015260448301869052925192909316926323de66519260648084019382900301818387803b15801561297857600080fd5b505af115801561298c573d6000803e3d6000fd5b505050505050565b60008183106129a357816129a5565b825b9392505050565b6001600160a01b0382166000908152600c60205260409020546129d5908263ffffffff61223a16565b6001600160a01b0383166000908152600c6020526040902055600654612a01908263ffffffff61223a16565b6006556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3600354604080516323de665160e01b81526001600160a01b0385811660048301526000602483018190526044830186905292519316926323de66519260648084019391929182900301818387803b15801561297857600080fd5b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b03841681612ace57fe5b049392505050565b80820182811015610ebe576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fdfe5468727573746572506169723a20494e53554646494349454e545f4c49515549444954595468727573746572506169723a20494e53554646494349454e545f4f55545055545f414d4f554e545468727573746572506169723a20494e53554646494349454e545f4c49515549444954595f4255524e45445468727573746572506169723a20494e53554646494349454e545f494e5055545f414d4f554e545468727573746572506169723a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a723158207e42aa68e98a053ea6dbc0918c80d9cabbf9356d32e1f2cd794994ea5e8416ea64736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e7472616374295468727573746572466163746f72793a20494e56414c49445f5949454c445f4355545468727573746572466163746f72793a204944454e544943414c5f4144445245535345535468727573746572466163746f72793a20504149525f444f45535f4e4f545f4558495354a265627a7a72315820dda84da3414462b932313b221c461bdc175b7570caf850707be6466435d6a65764736f6c63430005100032

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

0000000000000000000000003b143ca171194c97183ef51b0d56554aa68d0588000000000000000000000000d6b64e44aae0938118ad0dae251b859d85351c22

-----Decoded View---------------
Arg [0] : _yieldToSetter (address): 0x3B143ca171194C97183eF51B0d56554AA68d0588
Arg [1] : _pointsAdmin (address): 0xd6b64E44aae0938118aD0dAE251b859D85351c22

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003b143ca171194c97183ef51b0d56554aa68d0588
Arg [1] : 000000000000000000000000d6b64e44aae0938118ad0dae251b859d85351c22


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.