Contract 0xb6193DF61351736e5190bF1DEB2E4f0769bd1BF2 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xbb8f81d755c876ef4342114a87164fef9fd087660c6d40524778a9e7338725b60x60806040383596392022-11-15 18:00:30523 days 17 hrs ago0x5b0390bccca1f040d8993eb6e4ce8ded93721765 IN  Create: CDeployer0 ETH0.001469650.1
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0xe01a4faa2c19c0224782b39b3ecbc75ed4e06ea1913bfad5e08de916195de0c9391217432022-11-18 18:24:07520 days 17 hrs ago 0xb6193df61351736e5190bf1deb2e4f0769bd1bf2  Contract Creation0 ETH
0xe01a4faa2c19c0224782b39b3ecbc75ed4e06ea1913bfad5e08de916195de0c9391217432022-11-18 18:24:07520 days 17 hrs ago 0x2217aec3440e8fd6d49a118b1502e539f88dba55 0xb6193df61351736e5190bf1deb2e4f0769bd1bf20 ETH
0x1d3f6b01b594c8e1d0c3f327bb0cf78bd57bbf743d6af4f5f23eddf64c9d7f0c391217112022-11-18 18:23:57520 days 17 hrs ago 0xb6193df61351736e5190bf1deb2e4f0769bd1bf2  Contract Creation0 ETH
0x1d3f6b01b594c8e1d0c3f327bb0cf78bd57bbf743d6af4f5f23eddf64c9d7f0c391217112022-11-18 18:23:57520 days 17 hrs ago 0x2217aec3440e8fd6d49a118b1502e539f88dba55 0xb6193df61351736e5190bf1deb2e4f0769bd1bf20 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CDeployer

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : CDeployer.sol
pragma solidity =0.5.16;

import "./Collateral.sol";
import "./interfaces/ICDeployer.sol";

/*
 * This contract is used by the Factory to deploy Collateral(s)
 * The bytecode would be too long to fit in the Factory
 */
 
contract CDeployer is ICDeployer {
	constructor () public {}
	
	function deployCollateral(address uniswapV2Pair) external returns (address collateral) {
		bytes memory bytecode = type(Collateral).creationCode;
		bytes32 salt = keccak256(abi.encodePacked(msg.sender, uniswapV2Pair));
		assembly {
			collateral := create2(0, add(bytecode, 32), mload(bytecode), salt)
		}
	}
}

File 2 of 18 : Collateral.sol
pragma solidity =0.5.16;

import "./PoolToken.sol";
import "./CStorage.sol";
import "./CSetter.sol";
import "./interfaces/IBorrowable.sol";
import "./interfaces/ICollateral.sol";
import "./interfaces/IFactory.sol";
import "./interfaces/ITarotPriceOracle.sol";
import "./interfaces/ITarotCallee.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./libraries/UQ112x112.sol";
import "./libraries/Math.sol";

contract Collateral is ICollateral, PoolToken, CStorage, CSetter {
    using UQ112x112 for uint224;

    constructor() public {}

    /*** Collateralization Model ***/

    // returns the prices of borrowable0's and borrowable1's underlyings with collateral's underlying as denom
    function getPrices() public returns (uint256 price0, uint256 price1) {
        (uint224 twapPrice112x112, ) =
            ITarotPriceOracle(tarotPriceOracle).getResult(underlying);
        (uint112 reserve0, uint112 reserve1, ) =
            IUniswapV2Pair(underlying).getReserves();
        uint256 collateralTotalSupply =
            IUniswapV2Pair(underlying).totalSupply();

        uint224 currentPrice112x112 =
            UQ112x112.encode(reserve1).uqdiv(reserve0);
        uint256 adjustmentSquared =
            uint256(twapPrice112x112).mul(2**32).div(currentPrice112x112);
        uint256 adjustment = Math.sqrt(adjustmentSquared.mul(2**32));

        uint256 currentBorrowable0Price =
            uint256(collateralTotalSupply).mul(1e18).div(reserve0 * 2);
        uint256 currentBorrowable1Price =
            uint256(collateralTotalSupply).mul(1e18).div(reserve1 * 2);

        price0 = currentBorrowable0Price.mul(adjustment).div(2**32);
        price1 = currentBorrowable1Price.mul(2**32).div(adjustment);

        /*
         * Price calculation errors may happen in some edge pairs where
         * reserve0 / reserve1 is close to 2**112 or 1/2**112
         * We're going to prevent users from using pairs at risk from the UI
         */
        require(price0 > 100, "Tarot: PRICE_CALCULATION_ERROR");
        require(price1 > 100, "Tarot: PRICE_CALCULATION_ERROR");
    }

    // returns liquidity in  collateral's underlying
    function _calculateLiquidity(
        uint256 amountCollateral,
        uint256 amount0,
        uint256 amount1
    ) internal returns (uint256 liquidity, uint256 shortfall) {
        uint256 _safetyMarginSqrt = safetyMarginSqrt;
        (uint256 price0, uint256 price1) = getPrices();

        uint256 a = amount0.mul(price0).div(1e18);
        uint256 b = amount1.mul(price1).div(1e18);
        if (a < b) (a, b) = (b, a);
        a = a.mul(_safetyMarginSqrt).div(1e18);
        b = b.mul(1e18).div(_safetyMarginSqrt);
        uint256 collateralNeeded = a.add(b).mul(liquidationPenalty()).div(1e18);

        if (amountCollateral >= collateralNeeded) {
            return (amountCollateral - collateralNeeded, 0);
        } else {
            return (0, collateralNeeded - amountCollateral);
        }
    }

    /*** ERC20 ***/

    function _transfer(
        address from,
        address to,
        uint256 value
    ) internal {
        require(tokensUnlocked(from, value), "Tarot: INSUFFICIENT_LIQUIDITY");
        super._transfer(from, to, value);
    }

    function tokensUnlocked(address from, uint256 value) public returns (bool) {
        uint256 _balance = balanceOf[from];
        if (value > _balance) return false;
        uint256 finalBalance = _balance - value;
        uint256 amountCollateral = finalBalance.mul(exchangeRate()).div(1e18);
        uint256 amount0 = IBorrowable(borrowable0).borrowBalance(from);
        uint256 amount1 = IBorrowable(borrowable1).borrowBalance(from);
        (, uint256 shortfall) =
            _calculateLiquidity(amountCollateral, amount0, amount1);
        return shortfall == 0;
    }

    /*** Collateral ***/

    function accountLiquidityAmounts(
        address borrower,
        uint256 amount0,
        uint256 amount1
    ) public returns (uint256 liquidity, uint256 shortfall) {
        if (amount0 == uint256(-1))
            amount0 = IBorrowable(borrowable0).borrowBalance(borrower);
        if (amount1 == uint256(-1))
            amount1 = IBorrowable(borrowable1).borrowBalance(borrower);
        uint256 amountCollateral =
            balanceOf[borrower].mul(exchangeRate()).div(1e18);
        return _calculateLiquidity(amountCollateral, amount0, amount1);
    }

    function accountLiquidity(address borrower)
        public
        returns (uint256 liquidity, uint256 shortfall)
    {
        return accountLiquidityAmounts(borrower, uint256(-1), uint256(-1));
    }

    function canBorrow(
        address borrower,
        address borrowable,
        uint256 accountBorrows
    ) public returns (bool) {
        address _borrowable0 = borrowable0;
        address _borrowable1 = borrowable1;
        require(
            borrowable == _borrowable0 || borrowable == _borrowable1,
            "Tarot: INVALID_BORROWABLE"
        );
        uint256 amount0 =
            borrowable == _borrowable0 ? accountBorrows : uint256(-1);
        uint256 amount1 =
            borrowable == _borrowable1 ? accountBorrows : uint256(-1);
        (, uint256 shortfall) =
            accountLiquidityAmounts(borrower, amount0, amount1);
        return shortfall == 0;
    }

    // this function must be called from borrowable0 or borrowable1
    function seize(
        address liquidator,
        address borrower,
        uint256 repayAmount
    ) external returns (uint256 seizeTokens) {
        require(
            msg.sender == borrowable0 || msg.sender == borrowable1,
            "Tarot: UNAUTHORIZED"
        );

        (, uint256 shortfall) = accountLiquidity(borrower);
        require(shortfall > 0, "Tarot: INSUFFICIENT_SHORTFALL");

        uint256 price;
        if (msg.sender == borrowable0) (price, ) = getPrices();
        else (, price) = getPrices();

        uint256 collateralEquivalent = repayAmount.mul(price).div(exchangeRate());

        seizeTokens = collateralEquivalent
            .mul(liquidationIncentive)
            .div(1e18);

        balanceOf[borrower] = balanceOf[borrower].sub(
            seizeTokens,
            "Tarot: LIQUIDATING_TOO_MUCH"
        );
        balanceOf[liquidator] = balanceOf[liquidator].add(seizeTokens);
        emit Transfer(borrower, liquidator, seizeTokens);

        if (liquidationFee > 0) {
            uint256 seizeFee = collateralEquivalent.mul(liquidationFee).div(1e18);
            address reservesManager = IFactory(factory).reservesManager();
            balanceOf[borrower] = balanceOf[borrower].sub(seizeFee, "Tarot: LIQUIDATING_TOO_MUCH");
            balanceOf[reservesManager] = balanceOf[reservesManager].add(seizeFee);
            emit Transfer(borrower, reservesManager, seizeFee);
        }
    }

    // this low-level function should be called from another contract
    function flashRedeem(
        address redeemer,
        uint256 redeemAmount,
        bytes calldata data
    ) external nonReentrant update {
        require(redeemAmount <= totalBalance, "Tarot: INSUFFICIENT_CASH");

        // optimistically transfer funds
        _safeTransfer(redeemer, redeemAmount);
        if (data.length > 0)
            ITarotCallee(redeemer).tarotRedeem(msg.sender, redeemAmount, data);

        uint256 redeemTokens = balanceOf[address(this)];
        uint256 declaredRedeemTokens =
            redeemAmount.mul(1e18).div(exchangeRate()).add(1); // rounded up
        require(
            redeemTokens >= declaredRedeemTokens,
            "Tarot: INSUFFICIENT_REDEEM_TOKENS"
        );

        _burn(address(this), redeemTokens);
        emit Redeem(msg.sender, redeemer, redeemAmount, redeemTokens);
    }
}

File 3 of 18 : ICDeployer.sol
pragma solidity >=0.5.0;

interface ICDeployer {
	function deployCollateral(address uniswapV2Pair) external returns (address collateral);
}

File 4 of 18 : PoolToken.sol
pragma solidity =0.5.16;

import "./TarotERC20.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/IPoolToken.sol";
import "./libraries/SafeMath.sol";

contract PoolToken is IPoolToken, TarotERC20 {
    uint256 internal constant initialExchangeRate = 1e18;
    address public underlying;
    address public factory;
    uint256 public totalBalance;
    uint256 public constant MINIMUM_LIQUIDITY = 1000;

    event Mint(
        address indexed sender,
        address indexed minter,
        uint256 mintAmount,
        uint256 mintTokens
    );
    event Redeem(
        address indexed sender,
        address indexed redeemer,
        uint256 redeemAmount,
        uint256 redeemTokens
    );
    event Sync(uint256 totalBalance);

    /*** Initialize ***/

    // called once by the factory
    function _setFactory() external {
        require(factory == address(0), "Tarot: FACTORY_ALREADY_SET");
        factory = msg.sender;
    }

    /*** PoolToken ***/

    function _update() internal {
        totalBalance = IERC20(underlying).balanceOf(address(this));
        emit Sync(totalBalance);
    }

    function exchangeRate() public returns (uint256) {
        uint256 _totalSupply = totalSupply; // gas savings
        uint256 _totalBalance = totalBalance; // gas savings
        if (_totalSupply == 0 || _totalBalance == 0) return initialExchangeRate;
        return _totalBalance.mul(1e18).div(_totalSupply);
    }

    // this low-level function should be called from another contract
    function mint(address minter)
        external
        nonReentrant
        update
        returns (uint256 mintTokens)
    {
        uint256 balance = IERC20(underlying).balanceOf(address(this));
        uint256 mintAmount = balance.sub(totalBalance);
        mintTokens = mintAmount.mul(1e18).div(exchangeRate());

        if (totalSupply == 0) {
            // permanently lock the first MINIMUM_LIQUIDITY tokens
            mintTokens = mintTokens.sub(MINIMUM_LIQUIDITY);
            _mint(address(0), MINIMUM_LIQUIDITY);
        }
        require(mintTokens > 0, "Tarot: MINT_AMOUNT_ZERO");
        _mint(minter, mintTokens);
        emit Mint(msg.sender, minter, mintAmount, mintTokens);
    }

    // this low-level function should be called from another contract
    function redeem(address redeemer)
        external
        nonReentrant
        update
        returns (uint256 redeemAmount)
    {
        uint256 redeemTokens = balanceOf[address(this)];
        redeemAmount = redeemTokens.mul(exchangeRate()).div(1e18);

        require(redeemAmount > 0, "Tarot: REDEEM_AMOUNT_ZERO");
        require(redeemAmount <= totalBalance, "Tarot: INSUFFICIENT_CASH");
        _burn(address(this), redeemTokens);
        _safeTransfer(redeemer, redeemAmount);
        emit Redeem(msg.sender, redeemer, redeemAmount, redeemTokens);
    }

    // force real balance to match totalBalance
    function skim(address to) external nonReentrant {
        _safeTransfer(
            to,
            IERC20(underlying).balanceOf(address(this)).sub(totalBalance)
        );
    }

    // force totalBalance to match real balance
    function sync() external nonReentrant update {}

    /*** Utilities ***/

    // same safe transfer function used by UniSwapV2 (with fixed underlying)
    bytes4 private constant SELECTOR =
        bytes4(keccak256(bytes("transfer(address,uint256)")));

    function _safeTransfer(address to, uint256 amount) internal {
        (bool success, bytes memory data) =
            underlying.call(abi.encodeWithSelector(SELECTOR, to, amount));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "Tarot: TRANSFER_FAILED"
        );
    }

    // prevents a contract from calling itself, directly or indirectly.
    bool internal _notEntered = true;
    modifier nonReentrant() {
        require(_notEntered, "Tarot: REENTERED");
        _notEntered = false;
        _;
        _notEntered = true;
    }

    // update totalBalance with current balance
    modifier update() {
        _;
        _update();
    }
}

File 5 of 18 : CStorage.sol
pragma solidity =0.5.16;


contract CStorage {
	address public borrowable0;
	address public borrowable1;
	address public tarotPriceOracle;
	uint public safetyMarginSqrt = 1.41421356e18; //safetyMargin: 200%
	uint public liquidationIncentive = 1.02e18; //102%
	uint public liquidationFee = 0.01e18; //1%

	function liquidationPenalty() public view returns (uint) {
		return liquidationIncentive + liquidationFee;
	}
}

File 6 of 18 : CSetter.sol
pragma solidity =0.5.16;

import "./CStorage.sol";
import "./PoolToken.sol";
import "./interfaces/IFactory.sol";
import "./interfaces/ITarotPriceOracle.sol";

contract CSetter is PoolToken, CStorage {
    uint256 public constant SAFETY_MARGIN_SQRT_MIN = 1.00e18; //safetyMargin: 100%
    uint256 public constant SAFETY_MARGIN_SQRT_MAX = 1.58113884e18; //safetyMargin: 250%
    uint256 public constant LIQUIDATION_INCENTIVE_MIN = 1.00e18; //100%
    uint256 public constant LIQUIDATION_INCENTIVE_MAX = 1.05e18; //105%
    uint256 public constant LIQUIDATION_FEE_MAX = 0.05e18; //5%

    event NewSafetyMargin(uint256 newSafetyMarginSqrt);
    event NewLiquidationIncentive(uint256 newLiquidationIncentive);
    event NewLiquidationFee(uint256 newLiquidationFee);

    // called once by the factory at the time of deployment
    function _initialize(
        string calldata _name,
        string calldata _symbol,
        address _underlying,
        address _borrowable0,
        address _borrowable1
    ) external {
        require(msg.sender == factory, "Tarot: UNAUTHORIZED"); // sufficient check
        _setName(_name, _symbol);
        underlying = _underlying;
        borrowable0 = _borrowable0;
        borrowable1 = _borrowable1;
        tarotPriceOracle = IFactory(factory).tarotPriceOracle();
    }

    function _setSafetyMarginSqrt(uint256 newSafetyMarginSqrt)
        external
        nonReentrant
    {
        _checkSetting(
            newSafetyMarginSqrt,
            SAFETY_MARGIN_SQRT_MIN,
            SAFETY_MARGIN_SQRT_MAX
        );
        safetyMarginSqrt = newSafetyMarginSqrt;
        emit NewSafetyMargin(newSafetyMarginSqrt);
    }

    function _setLiquidationIncentive(uint256 newLiquidationIncentive)
        external
        nonReentrant
    {
        _checkSetting(
            newLiquidationIncentive,
            LIQUIDATION_INCENTIVE_MIN,
            LIQUIDATION_INCENTIVE_MAX
        );
        liquidationIncentive = newLiquidationIncentive;
        emit NewLiquidationIncentive(newLiquidationIncentive);
    }

    function _setLiquidationFee(uint256 newLiquidationFee)
        external
        nonReentrant
    {
        _checkSetting(
            newLiquidationFee,
            0,
            LIQUIDATION_FEE_MAX
        );
        liquidationFee = newLiquidationFee;
        emit NewLiquidationFee(newLiquidationFee);
    }

    function _checkSetting(
        uint256 parameter,
        uint256 min,
        uint256 max
    ) internal view {
        _checkAdmin();
        require(parameter >= min, "Tarot: INVALID_SETTING");
        require(parameter <= max, "Tarot: INVALID_SETTING");
    }

    function _checkAdmin() internal view {
        require(msg.sender == IFactory(factory).admin(), "Tarot: UNAUTHORIZED");
    }
}

File 7 of 18 : IBorrowable.sol
pragma solidity >=0.5.0;

interface IBorrowable {
    /*** Tarot ERC20 ***/

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

    /*** Pool Token ***/

    event Mint(
        address indexed sender,
        address indexed minter,
        uint256 mintAmount,
        uint256 mintTokens
    );
    event Redeem(
        address indexed sender,
        address indexed redeemer,
        uint256 redeemAmount,
        uint256 redeemTokens
    );
    event Sync(uint256 totalBalance);

    function underlying() external view returns (address);

    function factory() external view returns (address);

    function totalBalance() external view returns (uint256);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function exchangeRate() external returns (uint256);

    function mint(address minter) external returns (uint256 mintTokens);

    function redeem(address redeemer) external returns (uint256 redeemAmount);

    function skim(address to) external;

    function sync() external;

    function _setFactory() external;

    /*** Borrowable ***/

    event BorrowApproval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Borrow(
        address indexed sender,
        address indexed borrower,
        address indexed receiver,
        uint256 borrowAmount,
        uint256 repayAmount,
        uint256 accountBorrowsPrior,
        uint256 accountBorrows,
        uint256 totalBorrows
    );
    event Liquidate(
        address indexed sender,
        address indexed borrower,
        address indexed liquidator,
        uint256 seizeTokens,
        uint256 repayAmount,
        uint256 accountBorrowsPrior,
        uint256 accountBorrows,
        uint256 totalBorrows
    );

    function BORROW_FEE() external pure returns (uint256);

    function collateral() external view returns (address);

    function reserveFactor() external view returns (uint256);

    function exchangeRateLast() external view returns (uint256);

    function borrowIndex() external view returns (uint256);

    function totalBorrows() external view returns (uint256);

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

    function borrowBalance(address borrower) external view returns (uint256);

    function borrowTracker() external view returns (address);

    function BORROW_PERMIT_TYPEHASH() external pure returns (bytes32);

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

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

    function borrow(
        address borrower,
        address receiver,
        uint256 borrowAmount,
        bytes calldata data
    ) external;

    function liquidate(address borrower, address liquidator)
        external
        returns (uint256 seizeTokens);

    function trackBorrow(address borrower) external;

    /*** Borrowable Interest Rate Model ***/

    event AccrueInterest(
        uint256 interestAccumulated,
        uint256 borrowIndex,
        uint256 totalBorrows
    );
    event CalculateKink(uint256 kinkRate);
    event CalculateBorrowRate(uint256 borrowRate);

    function KINK_BORROW_RATE_MAX() external pure returns (uint256);

    function KINK_BORROW_RATE_MIN() external pure returns (uint256);

    function KINK_MULTIPLIER() external pure returns (uint256);

    function borrowRate() external view returns (uint256);

    function kinkBorrowRate() external view returns (uint256);

    function kinkUtilizationRate() external view returns (uint256);

    function adjustSpeed() external view returns (uint256);

    function rateUpdateTimestamp() external view returns (uint32);

    function accrualTimestamp() external view returns (uint32);

    function accrueInterest() external;

    /*** Borrowable Setter ***/

    event NewReserveFactor(uint256 newReserveFactor);
    event NewKinkUtilizationRate(uint256 newKinkUtilizationRate);
    event NewAdjustSpeed(uint256 newAdjustSpeed);
    event NewBorrowTracker(address newBorrowTracker);

    function RESERVE_FACTOR_MAX() external pure returns (uint256);

    function KINK_UR_MIN() external pure returns (uint256);

    function KINK_UR_MAX() external pure returns (uint256);

    function ADJUST_SPEED_MIN() external pure returns (uint256);

    function ADJUST_SPEED_MAX() external pure returns (uint256);

    function _initialize(
        string calldata _name,
        string calldata _symbol,
        address _underlying,
        address _collateral
    ) external;

    function _setReserveFactor(uint256 newReserveFactor) external;

    function _setKinkUtilizationRate(uint256 newKinkUtilizationRate) external;

    function _setAdjustSpeed(uint256 newAdjustSpeed) external;

    function _setBorrowTracker(address newBorrowTracker) external;
}

File 8 of 18 : ICollateral.sol
pragma solidity >=0.5.0;

interface ICollateral {
    /*** Tarot ERC20 ***/

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

    /*** Pool Token ***/

    event Mint(
        address indexed sender,
        address indexed minter,
        uint256 mintAmount,
        uint256 mintTokens
    );
    event Redeem(
        address indexed sender,
        address indexed redeemer,
        uint256 redeemAmount,
        uint256 redeemTokens
    );
    event Sync(uint256 totalBalance);

    function underlying() external view returns (address);

    function factory() external view returns (address);

    function totalBalance() external view returns (uint256);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function exchangeRate() external returns (uint256);

    function mint(address minter) external returns (uint256 mintTokens);

    function redeem(address redeemer) external returns (uint256 redeemAmount);

    function skim(address to) external;

    function sync() external;

    function _setFactory() external;

    /*** Collateral ***/

    function borrowable0() external view returns (address);

    function borrowable1() external view returns (address);

    function tarotPriceOracle() external view returns (address);

    function safetyMarginSqrt() external view returns (uint256);

    function liquidationIncentive() external view returns (uint256);
 
    function liquidationFee() external view returns (uint256);

    function liquidationPenalty() external view returns (uint256);

    function getPrices() external returns (uint256 price0, uint256 price1);

    function tokensUnlocked(address from, uint256 value)
        external
        returns (bool);

    function accountLiquidityAmounts(
        address account,
        uint256 amount0,
        uint256 amount1
    ) external returns (uint256 liquidity, uint256 shortfall);

    function accountLiquidity(address account)
        external
        returns (uint256 liquidity, uint256 shortfall);

    function canBorrow(
        address account,
        address borrowable,
        uint256 accountBorrows
    ) external returns (bool);

    function seize(
        address liquidator,
        address borrower,
        uint256 repayAmount
    ) external returns (uint256 seizeTokens);

    function flashRedeem(
        address redeemer,
        uint256 redeemAmount,
        bytes calldata data
    ) external;

    /*** Collateral Setter ***/

    event NewSafetyMargin(uint256 newSafetyMarginSqrt);
    event NewLiquidationIncentive(uint256 newLiquidationIncentive);
    event NewLiquidationFee(uint256 newLiquidationFee);

    function SAFETY_MARGIN_SQRT_MIN() external pure returns (uint256);

    function SAFETY_MARGIN_SQRT_MAX() external pure returns (uint256);

    function LIQUIDATION_INCENTIVE_MIN() external pure returns (uint256);

    function LIQUIDATION_INCENTIVE_MAX() external pure returns (uint256);

    function LIQUIDATION_FEE_MAX() external pure returns (uint256);

    function _initialize(
        string calldata _name,
        string calldata _symbol,
        address _underlying,
        address _borrowable0,
        address _borrowable1
    ) external;

    function _setSafetyMarginSqrt(uint256 newSafetyMarginSqrt) external;

    function _setLiquidationIncentive(uint256 newLiquidationIncentive) external;

    function _setLiquidationFee(uint256 newLiquidationFee) external;
}

File 9 of 18 : IFactory.sol
pragma solidity >=0.5.0;

interface IFactory {
	event LendingPoolInitialized(address indexed uniswapV2Pair, address indexed token0, address indexed token1,
		address collateral, address borrowable0, address borrowable1, uint lendingPoolId);
	event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);
	event NewAdmin(address oldAdmin, address newAdmin);
	event NewReservesPendingAdmin(address oldReservesPendingAdmin, address newReservesPendingAdmin);
	event NewReservesAdmin(address oldReservesAdmin, address newReservesAdmin);
	event NewReservesManager(address oldReservesManager, address newReservesManager);
	
	function admin() external view returns (address);
	function pendingAdmin() external view returns (address);
	function reservesAdmin() external view returns (address);
	function reservesPendingAdmin() external view returns (address);
	function reservesManager() external view returns (address);

	function getLendingPool(address uniswapV2Pair) external view returns (
		bool initialized, 
		uint24 lendingPoolId, 
		address collateral, 
		address borrowable0, 
		address borrowable1
	);
	function allLendingPools(uint) external view returns (address uniswapV2Pair);
	function allLendingPoolsLength() external view returns (uint);
	
	function bDeployer() external view returns (address);
	function cDeployer() external view returns (address);
	function tarotPriceOracle() external view returns (address);

	function createCollateral(address uniswapV2Pair) external returns (address collateral);
	function createBorrowable0(address uniswapV2Pair) external returns (address borrowable0);
	function createBorrowable1(address uniswapV2Pair) external returns (address borrowable1);
	function initializeLendingPool(address uniswapV2Pair) external;

	function _setPendingAdmin(address newPendingAdmin) external;
	function _acceptAdmin() external;
	function _setReservesPendingAdmin(address newPendingAdmin) external;
	function _acceptReservesAdmin() external;
	function _setReservesManager(address newReservesManager) external;
}

File 10 of 18 : ITarotPriceOracle.sol
pragma solidity >=0.5.0;

interface ITarotPriceOracle {
    event PriceUpdate(
        address indexed pair,
        uint256 priceCumulative,
        uint32 blockTimestamp,
        bool latestIsSlotA
    );

    function MIN_T() external pure returns (uint32);

    function getPair(address uniswapV2Pair)
        external
        view
        returns (
            uint256 priceCumulativeSlotA,
            uint256 priceCumulativeSlotB,
            uint32 lastUpdateSlotA,
            uint32 lastUpdateSlotB,
            bool latestIsSlotA,
            bool initialized
        );

    function initialize(address uniswapV2Pair) external;

    function getResult(address uniswapV2Pair)
        external
        returns (uint224 price, uint32 T);
}

File 11 of 18 : ITarotCallee.sol
pragma solidity >=0.5.0;

interface ITarotCallee {
    function tarotBorrow(
        address sender,
        address borrower,
        uint256 borrowAmount,
        bytes calldata data
    ) external;

    function tarotRedeem(
        address sender,
        uint256 redeemAmount,
        bytes calldata data
    ) external;
}

File 12 of 18 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

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

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

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
	
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

    function price0CumulativeLast() external view returns (uint);
}

File 13 of 18 : UQ112x112.sol
pragma solidity =0.5.16;

// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))
// src: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/libraries/UQ112x112.sol

// 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 14 of 18 : Math.sol
pragma solidity =0.5.16;

// a library for performing various math operations
// forked from: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/libraries/Math.sol

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

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

File 15 of 18 : TarotERC20.sol
pragma solidity =0.5.16;

import "./libraries/SafeMath.sol";

// This contract is basically UniswapV2ERC20 with small modifications
// src: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol

contract TarotERC20 {
    using SafeMath for uint256;

    string public name;
    string public symbol;
    uint8 public decimals = 18;
    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    bytes32 public DOMAIN_SEPARATOR;
    mapping(address => uint256) public nonces;

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

    constructor() public {}

    function _setName(string memory _name, string memory _symbol) internal {
        name = _name;
        symbol = _symbol;
        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)
            )
        );
    }

    function _mint(address to, uint256 value) internal {
        totalSupply = totalSupply.add(value);
        balanceOf[to] = balanceOf[to].add(value);
        emit Transfer(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);
    }

    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
    ) internal {
        balanceOf[from] = balanceOf[from].sub(
            value,
            "Tarot: TRANSFER_TOO_HIGH"
        );
        balanceOf[to] = balanceOf[to].add(value);
        emit Transfer(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,
                "Tarot: TRANSFER_NOT_ALLOWED"
            );
        }
        _transfer(from, to, value);
        return true;
    }

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

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

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

File 16 of 18 : IERC20.sol
pragma solidity >=0.5.0;

interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint 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 (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

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

File 17 of 18 : IPoolToken.sol
pragma solidity >=0.5.0;

interface IPoolToken {
    /*** Tarot ERC20 ***/

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

    /*** Pool Token ***/

    event Mint(
        address indexed sender,
        address indexed minter,
        uint256 mintAmount,
        uint256 mintTokens
    );
    event Redeem(
        address indexed sender,
        address indexed redeemer,
        uint256 redeemAmount,
        uint256 redeemTokens
    );
    event Sync(uint256 totalBalance);

    function underlying() external view returns (address);

    function factory() external view returns (address);

    function totalBalance() external view returns (uint256);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function exchangeRate() external returns (uint256);

    function mint(address minter) external returns (uint256 mintTokens);

    function redeem(address redeemer) external returns (uint256 redeemAmount);

    function skim(address to) external;

    function sync() external;

    function _setFactory() external;
}

File 18 of 18 : SafeMath.sol
pragma solidity =0.5.16;

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting with custom message on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, errorMessage);

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction underflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, errorMessage);

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers.
     * Reverts on division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers.
     * Reverts with custom message on division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":false,"inputs":[{"internalType":"address","name":"uniswapV2Pair","type":"address"}],"name":"deployCollateral","outputs":[{"internalType":"address","name":"collateral","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506132ad806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80637924fedd14610030575b600080fd5b6100566004803603602081101561004657600080fd5b50356001600160a01b0316610072565b604080516001600160a01b039092168252519081900360200190f35b60006060604051806020016100869061010b565b6020820181038252601f19601f8201166040525090506000338460405160200180836001600160a01b03166001600160a01b031660601b8152601401826001600160a01b03166001600160a01b031660601b815260140192505050604051602081830303815290604052805190602001209050808251602084016000f5949350505050565b613160806101198339019056fe60806040526002805460ff19908116601217909155600b805490911660011790556713a04bbd70573000600e55670e27c49886e60000600f55662386f26fc1000060105534801561004f57600080fd5b506131018061005f6000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c806370a082311161015c578063ba9a7a56116100ce578063c548e3c511610087578063c548e3c51461073d578063d490e7e014610816578063d505accf1461081e578063daf888181461086f578063dd62ed3e14610877578063fff6cae9146108a55761028a565b8063ba9a7a56146106e2578063bb6ff386146106ea578063bc25cf7714610707578063bc9bd12a1461034c578063bd9a548b1461072d578063c45a0155146107355761028a565b80639aac2c53116101205780639aac2c5314610632578063a36a363014610668578063a9059cbb14610670578063ad7a672f1461069c578063afc8276c146106a4578063b2a02ff1146106ac5761028a565b806370a08231146105b05780637ecebe00146105d65780638c765e94146105fc57806395a2251f1461060457806395d89b411461062a5761028a565b806333fabfd1116102005780634fd42e17116101b95780634fd42e17146104c85780635a0f03c6146104e55780636a627842146105245780636e01be101461054a5780636f13cb83146105765780636f307dc3146105a85761028a565b806333fabfd11461049857806334fb08a8146104a0578063356c571f146104a85780633644e515146104b05780633ba0b9a9146104b85780634a5d316c146104c05761028a565b80631ef63a79116102525780631ef63a79146103f357806323b872dd1461041057806323f5589a146104465780632fa5ae1b1461044e57806330adf81f14610472578063313ce5671461047a5761028a565b806306fdde031461028f578063095ea7b31461030c5780630fb60fef1461034c57806318160ddd1461036657806319f3400d1461036e575b600080fd5b6102976108ad565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102d15781810151838201526020016102b9565b50505050905090810190601f1680156102fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103386004803603604081101561032257600080fd5b506001600160a01b03813516906020013561093b565b604080519115158252519081900360200190f35b610354610952565b60408051918252519081900360200190f35b61035461095e565b6103f16004803603606081101561038457600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156103b357600080fd5b8201836020820111156103c557600080fd5b803590602001918460018302840111600160201b831117156103e657600080fd5b509092509050610964565b005b6103f16004803603602081101561040957600080fd5b5035610bbb565b6103386004803603606081101561042657600080fd5b506001600160a01b03813581169160208101359091169060400135610c6a565b610354610d39565b610456610d44565b604080516001600160a01b039092168252519081900360200190f35b610354610d58565b610482610d7c565b6040805160ff9092168252519081900360200190f35b610354610d85565b610456610d90565b610354610d9f565b610354610da5565b610354610dab565b6103f1610dfa565b6103f1600480360360208110156104de57600080fd5b5035610e6c565b61050b600480360360208110156104fb57600080fd5b50356001600160a01b0316610f23565b6040805192835260208301919091528051918290030190f35b6103546004803603602081101561053a57600080fd5b50356001600160a01b0316610f3c565b6103386004803603604081101561056057600080fd5b506001600160a01b03813516906020013561113a565b61050b6004803603606081101561058c57600080fd5b506001600160a01b0381351690602081013590604001356112c6565b610456611434565b610354600480360360208110156105c657600080fd5b50356001600160a01b0316611443565b610354600480360360208110156105ec57600080fd5b50356001600160a01b0316611455565b610354611467565b6103546004803603602081101561061a57600080fd5b50356001600160a01b031661146d565b610297611606565b6103386004803603606081101561064857600080fd5b506001600160a01b03813581169160208101359091169060400135611660565b610354611749565b6103386004803603604081101561068657600080fd5b506001600160a01b03813516906020013561174f565b61035461175c565b610354611762565b610354600480360360608110156106c257600080fd5b506001600160a01b0381358116916020810135909116906040013561176e565b610354611b3a565b6103f16004803603602081101561070057600080fd5b5035611b40565b6103f16004803603602081101561071d57600080fd5b50356001600160a01b0316611bf7565b61050b611cf1565b610456612016565b6103f1600480360360a081101561075357600080fd5b810190602081018135600160201b81111561076d57600080fd5b82018360208201111561077f57600080fd5b803590602001918460018302840111600160201b831117156107a057600080fd5b919390929091602081019035600160201b8111156107bd57600080fd5b8201836020820111156107cf57600080fd5b803590602001918460018302840111600160201b831117156107f057600080fd5b91935091506001600160a01b038135811691602081013582169160409091013516612025565b6103546121c6565b6103f1600480360360e081101561083457600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356121d2565b610456612216565b6103546004803603604081101561088d57600080fd5b506001600160a01b0381358116916020013516612225565b6103f1612242565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109335780601f1061090857610100808354040283529160200191610933565b820191906000526020600020905b81548152906001019060200180831161091657829003601f168201915b505050505081565b60006109483384846122ad565b5060015b92915050565b670de0b6b3a764000081565b60035481565b600b5460ff166109ae576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055600a54831115610a0a576040805162461bcd60e51b81526020600482015260186024820152770a8c2e4dee87440929ca6aa8c8c9286928a9ca8be8682a6960431b604482015290519081900360640190fd5b610a14848461230f565b8015610aba57604051636b4d4dc160e01b8152336004820181815260248301869052606060448401908152606484018590526001600160a01b03881693636b4d4dc193928892889288929190608401848480828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015610aa157600080fd5b505af1158015610ab5573d6000803e3d6000fd5b505050505b3060009081526004602052604081205490610b0b6001610aff610adb610dab565b610af389670de0b6b3a764000063ffffffff6124a116565b9063ffffffff61250116565b9063ffffffff61254316565b905080821015610b4c5760405162461bcd60e51b81526004018080602001828103825260218152602001806130196021913960400191505060405180910390fd5b610b56308361259d565b604080518681526020810184905281516001600160a01b0389169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a35050610ba8612628565b5050600b805460ff191660011790555050565b600b5460ff16610c05576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055610c2281600066b1a2bc2ec500006126d8565b60108190556040805182815290517f21e5451a492a87031e8324e7e1e2ba821fdec0c40972393c9f74dd38bd88a6af9181900360200190a150600b805460ff19166001179055565b6001600160a01b038316600090815260056020908152604080832033845290915281205460001914610d2457604080518082018252601b81527f5461726f743a205452414e534645525f4e4f545f414c4c4f57454400000000006020808301919091526001600160a01b0387166000908152600582528381203382529091529190912054610cff91849063ffffffff61278116565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b610d2f848484612818565b5060019392505050565b601054600f54015b90565b600b5461010090046001600160a01b031681565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b66b1a2bc2ec5000081565b600d546001600160a01b031681565b600e5481565b60065481565b600354600a5460009190811580610dc0575080155b15610dd757670de0b6b3a764000092505050610d41565b610df382610af383670de0b6b3a764000063ffffffff6124a116565b9250505090565b6009546001600160a01b031615610e58576040805162461bcd60e51b815260206004820152601a60248201527f5461726f743a20464143544f52595f414c52454144595f534554000000000000604482015290519081900360640190fd5b600980546001600160a01b03191633179055565b600b5460ff16610eb6576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055610edb81670de0b6b3a7640000670e92596fd62900006126d8565b600f8190556040805182815290517f8a9bb9067f9ecb13a322b548e6df3dd1bd10a54698834dac43ed8f0e765bf94d9181900360200190a150600b805460ff19166001179055565b600080610f3383600019806112c6565b91509150915091565b600b5460009060ff16610f89576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610fde57600080fd5b505afa158015610ff2573d6000803e3d6000fd5b505050506040513d602081101561100857600080fd5b5051600a5490915060009061102490839063ffffffff61287e16565b9050611049611031610dab565b610af383670de0b6b3a764000063ffffffff6124a116565b92506003546000141561107757611068836103e863ffffffff61287e16565b925061107760006103e86128c0565b600083116110cc576040805162461bcd60e51b815260206004820152601760248201527f5461726f743a204d494e545f414d4f554e545f5a45524f000000000000000000604482015290519081900360640190fd5b6110d684846128c0565b604080518281526020810185905281516001600160a01b0387169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a35050611128612628565b600b805460ff19166001179055919050565b6001600160a01b0382166000908152600460205260408120548083111561116557600091505061094c565b828103600061118e670de0b6b3a7640000610af3611181610dab565b859063ffffffff6124a116565b90506000600b60019054906101000a90046001600160a01b03166001600160a01b0316634d73e9ba886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156111fd57600080fd5b505afa158015611211573d6000803e3d6000fd5b505050506040513d602081101561122757600080fd5b5051600c54604080516326b9f4dd60e11b81526001600160a01b038b8116600483015291519394506000939190921691634d73e9ba916024808301926020929190829003018186803b15801561127c57600080fd5b505afa158015611290573d6000803e3d6000fd5b505050506040513d60208110156112a657600080fd5b5051905060006112b7848484612945565b159a9950505050505050505050565b60008060001984141561135557600b54604080516326b9f4dd60e11b81526001600160a01b038881166004830152915161010090930490911691634d73e9ba91602480820192602092909190829003018186803b15801561132657600080fd5b505afa15801561133a573d6000803e3d6000fd5b505050506040513d602081101561135057600080fd5b505193505b6000198314156113db57600c54604080516326b9f4dd60e11b81526001600160a01b03888116600483015291519190921691634d73e9ba916024808301926020929190829003018186803b1580156113ac57600080fd5b505afa1580156113c0573d6000803e3d6000fd5b505050506040513d60208110156113d657600080fd5b505192505b6000611419670de0b6b3a7640000610af36113f4610dab565b6001600160a01b038a166000908152600460205260409020549063ffffffff6124a116565b9050611426818686612945565b92509250505b935093915050565b6008546001600160a01b031681565b60046020526000908152604090205481565b60076020526000908152604090205481565b600f5481565b600b5460009060ff166114ba576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055306000908152600460205260409020546114f8670de0b6b3a7640000610af36114eb610dab565b849063ffffffff6124a116565b91506000821161154f576040805162461bcd60e51b815260206004820152601960248201527f5461726f743a2052454445454d5f414d4f554e545f5a45524f00000000000000604482015290519081900360640190fd5b600a548211156115a1576040805162461bcd60e51b81526020600482015260186024820152770a8c2e4dee87440929ca6aa8c8c9286928a9ca8be8682a6960431b604482015290519081900360640190fd5b6115ab308261259d565b6115b5838361230f565b604080518381526020810183905281516001600160a01b0386169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a350611128612628565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109335780601f1061090857610100808354040283529160200191610933565b600b54600c546000916001600160a01b03610100909104811691811690851682148061169d5750806001600160a01b0316856001600160a01b0316145b6116ee576040805162461bcd60e51b815260206004820152601960248201527f5461726f743a20494e56414c49445f424f52524f5741424c4500000000000000604482015290519081900360640190fd5b6000826001600160a01b0316866001600160a01b03161461171157600019611713565b845b90506000826001600160a01b0316876001600160a01b0316146117385760001961173a565b855b905060006112b78984846112c6565b60105481565b6000610948338484612818565b600a5481565b670e92596fd629000081565b600b5460009061010090046001600160a01b03163314806117995750600c546001600160a01b031633145b6117e0576040805162461bcd60e51b815260206004820152601360248201527215185c9bdd0e8815539055551213d492569151606a1b604482015290519081900360640190fd5b60006117eb84610f23565b91505060008111611843576040805162461bcd60e51b815260206004820152601d60248201527f5461726f743a20494e53554646494349454e545f53484f525446414c4c000000604482015290519081900360640190fd5b600b5460009061010090046001600160a01b031633141561186e57611866611cf1565b50905061187a565b611876611cf1565b9150505b6000611897611887610dab565b610af3878563ffffffff6124a116565b90506118ba670de0b6b3a7640000610af3600f54846124a190919063ffffffff16565b935061192b846040518060400160405280601b81526020017f5461726f743a204c49515549444154494e475f544f4f5f4d5543480000000000815250600460008a6001600160a01b03166001600160a01b03168152602001908152602001600020546127819092919063ffffffff16565b6001600160a01b038088166000908152600460205260408082209390935590891681522054611960908563ffffffff61254316565b6001600160a01b0380891660008181526004602090815260409182902094909455805188815290519193928a16926000805160206130ad83398151915292918290030190a360105415611b305760006119d0670de0b6b3a7640000610af3601054856124a190919063ffffffff16565b90506000600960009054906101000a90046001600160a01b03166001600160a01b031663345ef9416040518163ffffffff1660e01b815260040160206040518083038186803b158015611a2257600080fd5b505afa158015611a36573d6000803e3d6000fd5b505050506040513d6020811015611a4c57600080fd5b5051604080518082018252601b81527f5461726f743a204c49515549444154494e475f544f4f5f4d55434800000000006020828101919091526001600160a01b038c16600090815260049091529190912054919250611ab39190849063ffffffff61278116565b6001600160a01b03808a166000908152600460205260408082209390935590831681522054611ae8908363ffffffff61254316565b6001600160a01b0380831660008181526004602090815260409182902094909455805186815290519193928c16926000805160206130ad83398151915292918290030190a350505b5050509392505050565b6103e881565b600b5460ff16611b8a576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055611baf81670de0b6b3a76400006715f15565d2c5f0006126d8565b600e8190556040805182815290517fdff9a61839be6f6ce5ea77311cc351786a39a9f337c507ff35e7b358fd39c0439181900360200190a150600b805460ff19166001179055565b600b5460ff16611c41576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055600a54600854604080516370a0823160e01b81523060048201529051611ce1938593611cdc9391926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611ca457600080fd5b505afa158015611cb8573d6000803e3d6000fd5b505050506040513d6020811015611cce57600080fd5b50519063ffffffff61287e16565b61230f565b50600b805460ff19166001179055565b600d546008546040805163022351bf60e51b81526001600160a01b03928316600482015281516000948594859491169263446a37e0926024808301939282900301818787803b158015611d4357600080fd5b505af1158015611d57573d6000803e3d6000fd5b505050506040513d6040811015611d6d57600080fd5b505160085460408051630240bc6b60e21b8152905192935060009283926001600160a01b031691630902f1ac916004808301926060929190829003018186803b158015611db957600080fd5b505afa158015611dcd573d6000803e3d6000fd5b505050506040513d6060811015611de357600080fd5b508051602091820151600854604080516318160ddd60e01b815290519396509194506000936001600160a01b03909116926318160ddd926004808201939291829003018186803b158015611e3657600080fd5b505afa158015611e4a573d6000803e3d6000fd5b505050506040513d6020811015611e6057600080fd5b505190506000611e8884611e7385612a47565b6001600160e01b03169063ffffffff612a5916565b90506000611eb16001600160e01b0380841690610af3908916600160201b63ffffffff6124a116565b90506000611ed1611ecc83600160201b63ffffffff6124a116565b612a7e565b90506000611efd6001600160701b036002890216610af387670de0b6b3a764000063ffffffff6124a116565b90506000611f296001600160701b036002890216610af388670de0b6b3a764000063ffffffff6124a116565b9050611f43600160201b610af3848663ffffffff6124a116565b9a50611f5d83610af383600160201b63ffffffff6124a116565b995060648b11611fb4576040805162461bcd60e51b815260206004820152601e60248201527f5461726f743a2050524943455f43414c43554c4154494f4e5f4552524f520000604482015290519081900360640190fd5b60648a11612009576040805162461bcd60e51b815260206004820152601e60248201527f5461726f743a2050524943455f43414c43554c4154494f4e5f4552524f520000604482015290519081900360640190fd5b5050505050505050509091565b6009546001600160a01b031681565b6009546001600160a01b0316331461207a576040805162461bcd60e51b815260206004820152601360248201527215185c9bdd0e8815539055551213d492569151606a1b604482015290519081900360640190fd5b6120ed87878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b018190048102820181019092528981529250899150889081908401838280828437600092019190915250612ad092505050565b600880546001600160a01b03199081166001600160a01b0386811691909117909255600b8054610100600160a81b03191661010086851602179055600c80549091168383161790556009546040805163069f611560e31b8152905191909216916334fb08a8916004808301926020929190829003018186803b15801561217257600080fd5b505afa158015612186573d6000803e3d6000fd5b505050506040513d602081101561219c57600080fd5b5051600d80546001600160a01b0319166001600160a01b0390921691909117905550505050505050565b6715f15565d2c5f00081565b612202878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9612b98565b61220d8787876122ad565b50505050505050565b600c546001600160a01b031681565b600560209081526000928352604080842090915290825290205481565b600b5460ff1661228c576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff1916905561229e612628565b600b805460ff19166001179055565b6001600160a01b03808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0386811660248301526044808301879052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009560609594169382918083835b602083106123bc5780518252601f19909201916020918201910161239d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461241e576040519150601f19603f3d011682016040523d82523d6000602084013e612423565b606091505b5091509150818015612451575080511580612451575080806020019051602081101561244e57600080fd5b50515b61249b576040805162461bcd60e51b815260206004820152601660248201527515185c9bdd0e881514905394d1915497d1905253115160521b604482015290519081900360640190fd5b50505050565b6000826124b05750600061094c565b828202828482816124bd57fe5b04146124fa5760405162461bcd60e51b815260040180806020018281038252602181526020018061308c6021913960400191505060405180910390fd5b9392505050565b60006124fa83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612d6d565b6000828201838110156124fa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600460205260409020546125c6908263ffffffff61287e16565b6001600160a01b0383166000908152600460205260409020556003546125f2908263ffffffff61287e16565b6003556040805182815290516000916001600160a01b038516916000805160206130ad8339815191529181900360200190a35050565b600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561267357600080fd5b505afa158015612687573d6000803e3d6000fd5b505050506040513d602081101561269d57600080fd5b5051600a81905560408051918252517f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf49181900360200190a1565b6126e0612dd2565b8183101561272e576040805162461bcd60e51b81526020600482015260166024820152755461726f743a20494e56414c49445f53455454494e4760501b604482015290519081900360640190fd5b8083111561277c576040805162461bcd60e51b81526020600482015260166024820152755461726f743a20494e56414c49445f53455454494e4760501b604482015290519081900360640190fd5b505050565b600081848411156128105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127d55781810151838201526020016127bd565b50505050905090810190601f1680156128025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b612822838261113a565b612873576040805162461bcd60e51b815260206004820152601d60248201527f5461726f743a20494e53554646494349454e545f4c4951554944495459000000604482015290519081900360640190fd5b61277c838383612ea0565b60006124fa83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612781565b6003546128d3908263ffffffff61254316565b6003556001600160a01b0382166000908152600460205260409020546128ff908263ffffffff61254316565b6001600160a01b03831660008181526004602090815260408083209490945583518581529351929391926000805160206130ad8339815191529281900390910190a35050565b600e5460009081908180612957611cf1565b9092509050600061297a670de0b6b3a7640000610af38a8663ffffffff6124a116565b9050600061299a670de0b6b3a7640000610af38a8663ffffffff6124a116565b9050808210156129a657905b6129c2670de0b6b3a7640000610af3848863ffffffff6124a116565b91506129e085610af383670de0b6b3a764000063ffffffff6124a116565b90506000612a17670de0b6b3a7640000610af36129fb610d39565b612a0b878763ffffffff61254316565b9063ffffffff6124a116565b9050808b10612a33578a0396506000955061142c945050505050565b600097508a9003955061142c945050505050565b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b03841681612a7657fe5b049392505050565b60006003821115612ac1575080600160028204015b81811015612abb57809150600281828581612aaa57fe5b040181612ab357fe5b049050612a93565b50612acb565b8115612acb575060015b919050565b8151612ae3906000906020850190612f80565b508051612af7906001906020840190612f80565b50604051469080605261303a8239604080519182900360520182208651602097880120838301835260018452603160f81b93880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b42851015612bde576040805162461bcd60e51b815260206004820152600e60248201526d15185c9bdd0e881156141254915160921b604482015290519081900360640190fd5b6006546001600160a01b03808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e280820193601f1981019281900390910190855afa158015612cda573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590612d105750896001600160a01b0316816001600160a01b0316145b612d61576040805162461bcd60e51b815260206004820152601860248201527f5461726f743a20494e56414c49445f5349474e41545552450000000000000000604482015290519081900360640190fd5b50505050505050505050565b60008183612dbc5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156127d55781810151838201526020016127bd565b506000838581612dc857fe5b0495945050505050565b600960009054906101000a90046001600160a01b03166001600160a01b031663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b158015612e2057600080fd5b505afa158015612e34573d6000803e3d6000fd5b505050506040513d6020811015612e4a57600080fd5b50516001600160a01b03163314612e9e576040805162461bcd60e51b815260206004820152601360248201527215185c9bdd0e8815539055551213d492569151606a1b604482015290519081900360640190fd5b565b604080518082018252601881527f5461726f743a205452414e534645525f544f4f5f4849474800000000000000006020808301919091526001600160a01b038616600090815260049091529190912054612f0191839063ffffffff61278116565b6001600160a01b038085166000908152600460205260408082209390935590841681522054612f36908263ffffffff61254316565b6001600160a01b0380841660008181526004602090815260409182902094909455805185815290519193928716926000805160206130ad83398151915292918290030190a3505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612fc157805160ff1916838001178555612fee565b82800160010185558215612fee579182015b82811115612fee578251825591602001919060010190612fd3565b50612ffa929150612ffe565b5090565b610d4191905b80821115612ffa576000815560010161300456fe5461726f743a20494e53554646494349454e545f52454445454d5f544f4b454e53454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa265627a7a7231582045b66546aee834972ec410078e62bb947960ab735822243a6000bdd1646fb7fe64736f6c63430005100032a265627a7a723158208676cb6f3e13475e1b7942cf2bbd691c1b328a4e29b3ab2833eed2d222d3e22564736f6c63430005100032

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80637924fedd14610030575b600080fd5b6100566004803603602081101561004657600080fd5b50356001600160a01b0316610072565b604080516001600160a01b039092168252519081900360200190f35b60006060604051806020016100869061010b565b6020820181038252601f19601f8201166040525090506000338460405160200180836001600160a01b03166001600160a01b031660601b8152601401826001600160a01b03166001600160a01b031660601b815260140192505050604051602081830303815290604052805190602001209050808251602084016000f5949350505050565b613160806101198339019056fe60806040526002805460ff19908116601217909155600b805490911660011790556713a04bbd70573000600e55670e27c49886e60000600f55662386f26fc1000060105534801561004f57600080fd5b506131018061005f6000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c806370a082311161015c578063ba9a7a56116100ce578063c548e3c511610087578063c548e3c51461073d578063d490e7e014610816578063d505accf1461081e578063daf888181461086f578063dd62ed3e14610877578063fff6cae9146108a55761028a565b8063ba9a7a56146106e2578063bb6ff386146106ea578063bc25cf7714610707578063bc9bd12a1461034c578063bd9a548b1461072d578063c45a0155146107355761028a565b80639aac2c53116101205780639aac2c5314610632578063a36a363014610668578063a9059cbb14610670578063ad7a672f1461069c578063afc8276c146106a4578063b2a02ff1146106ac5761028a565b806370a08231146105b05780637ecebe00146105d65780638c765e94146105fc57806395a2251f1461060457806395d89b411461062a5761028a565b806333fabfd1116102005780634fd42e17116101b95780634fd42e17146104c85780635a0f03c6146104e55780636a627842146105245780636e01be101461054a5780636f13cb83146105765780636f307dc3146105a85761028a565b806333fabfd11461049857806334fb08a8146104a0578063356c571f146104a85780633644e515146104b05780633ba0b9a9146104b85780634a5d316c146104c05761028a565b80631ef63a79116102525780631ef63a79146103f357806323b872dd1461041057806323f5589a146104465780632fa5ae1b1461044e57806330adf81f14610472578063313ce5671461047a5761028a565b806306fdde031461028f578063095ea7b31461030c5780630fb60fef1461034c57806318160ddd1461036657806319f3400d1461036e575b600080fd5b6102976108ad565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102d15781810151838201526020016102b9565b50505050905090810190601f1680156102fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103386004803603604081101561032257600080fd5b506001600160a01b03813516906020013561093b565b604080519115158252519081900360200190f35b610354610952565b60408051918252519081900360200190f35b61035461095e565b6103f16004803603606081101561038457600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156103b357600080fd5b8201836020820111156103c557600080fd5b803590602001918460018302840111600160201b831117156103e657600080fd5b509092509050610964565b005b6103f16004803603602081101561040957600080fd5b5035610bbb565b6103386004803603606081101561042657600080fd5b506001600160a01b03813581169160208101359091169060400135610c6a565b610354610d39565b610456610d44565b604080516001600160a01b039092168252519081900360200190f35b610354610d58565b610482610d7c565b6040805160ff9092168252519081900360200190f35b610354610d85565b610456610d90565b610354610d9f565b610354610da5565b610354610dab565b6103f1610dfa565b6103f1600480360360208110156104de57600080fd5b5035610e6c565b61050b600480360360208110156104fb57600080fd5b50356001600160a01b0316610f23565b6040805192835260208301919091528051918290030190f35b6103546004803603602081101561053a57600080fd5b50356001600160a01b0316610f3c565b6103386004803603604081101561056057600080fd5b506001600160a01b03813516906020013561113a565b61050b6004803603606081101561058c57600080fd5b506001600160a01b0381351690602081013590604001356112c6565b610456611434565b610354600480360360208110156105c657600080fd5b50356001600160a01b0316611443565b610354600480360360208110156105ec57600080fd5b50356001600160a01b0316611455565b610354611467565b6103546004803603602081101561061a57600080fd5b50356001600160a01b031661146d565b610297611606565b6103386004803603606081101561064857600080fd5b506001600160a01b03813581169160208101359091169060400135611660565b610354611749565b6103386004803603604081101561068657600080fd5b506001600160a01b03813516906020013561174f565b61035461175c565b610354611762565b610354600480360360608110156106c257600080fd5b506001600160a01b0381358116916020810135909116906040013561176e565b610354611b3a565b6103f16004803603602081101561070057600080fd5b5035611b40565b6103f16004803603602081101561071d57600080fd5b50356001600160a01b0316611bf7565b61050b611cf1565b610456612016565b6103f1600480360360a081101561075357600080fd5b810190602081018135600160201b81111561076d57600080fd5b82018360208201111561077f57600080fd5b803590602001918460018302840111600160201b831117156107a057600080fd5b919390929091602081019035600160201b8111156107bd57600080fd5b8201836020820111156107cf57600080fd5b803590602001918460018302840111600160201b831117156107f057600080fd5b91935091506001600160a01b038135811691602081013582169160409091013516612025565b6103546121c6565b6103f1600480360360e081101561083457600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356121d2565b610456612216565b6103546004803603604081101561088d57600080fd5b506001600160a01b0381358116916020013516612225565b6103f1612242565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109335780601f1061090857610100808354040283529160200191610933565b820191906000526020600020905b81548152906001019060200180831161091657829003601f168201915b505050505081565b60006109483384846122ad565b5060015b92915050565b670de0b6b3a764000081565b60035481565b600b5460ff166109ae576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055600a54831115610a0a576040805162461bcd60e51b81526020600482015260186024820152770a8c2e4dee87440929ca6aa8c8c9286928a9ca8be8682a6960431b604482015290519081900360640190fd5b610a14848461230f565b8015610aba57604051636b4d4dc160e01b8152336004820181815260248301869052606060448401908152606484018590526001600160a01b03881693636b4d4dc193928892889288929190608401848480828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015610aa157600080fd5b505af1158015610ab5573d6000803e3d6000fd5b505050505b3060009081526004602052604081205490610b0b6001610aff610adb610dab565b610af389670de0b6b3a764000063ffffffff6124a116565b9063ffffffff61250116565b9063ffffffff61254316565b905080821015610b4c5760405162461bcd60e51b81526004018080602001828103825260218152602001806130196021913960400191505060405180910390fd5b610b56308361259d565b604080518681526020810184905281516001600160a01b0389169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a35050610ba8612628565b5050600b805460ff191660011790555050565b600b5460ff16610c05576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055610c2281600066b1a2bc2ec500006126d8565b60108190556040805182815290517f21e5451a492a87031e8324e7e1e2ba821fdec0c40972393c9f74dd38bd88a6af9181900360200190a150600b805460ff19166001179055565b6001600160a01b038316600090815260056020908152604080832033845290915281205460001914610d2457604080518082018252601b81527f5461726f743a205452414e534645525f4e4f545f414c4c4f57454400000000006020808301919091526001600160a01b0387166000908152600582528381203382529091529190912054610cff91849063ffffffff61278116565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b610d2f848484612818565b5060019392505050565b601054600f54015b90565b600b5461010090046001600160a01b031681565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b66b1a2bc2ec5000081565b600d546001600160a01b031681565b600e5481565b60065481565b600354600a5460009190811580610dc0575080155b15610dd757670de0b6b3a764000092505050610d41565b610df382610af383670de0b6b3a764000063ffffffff6124a116565b9250505090565b6009546001600160a01b031615610e58576040805162461bcd60e51b815260206004820152601a60248201527f5461726f743a20464143544f52595f414c52454144595f534554000000000000604482015290519081900360640190fd5b600980546001600160a01b03191633179055565b600b5460ff16610eb6576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055610edb81670de0b6b3a7640000670e92596fd62900006126d8565b600f8190556040805182815290517f8a9bb9067f9ecb13a322b548e6df3dd1bd10a54698834dac43ed8f0e765bf94d9181900360200190a150600b805460ff19166001179055565b600080610f3383600019806112c6565b91509150915091565b600b5460009060ff16610f89576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610fde57600080fd5b505afa158015610ff2573d6000803e3d6000fd5b505050506040513d602081101561100857600080fd5b5051600a5490915060009061102490839063ffffffff61287e16565b9050611049611031610dab565b610af383670de0b6b3a764000063ffffffff6124a116565b92506003546000141561107757611068836103e863ffffffff61287e16565b925061107760006103e86128c0565b600083116110cc576040805162461bcd60e51b815260206004820152601760248201527f5461726f743a204d494e545f414d4f554e545f5a45524f000000000000000000604482015290519081900360640190fd5b6110d684846128c0565b604080518281526020810185905281516001600160a01b0387169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a35050611128612628565b600b805460ff19166001179055919050565b6001600160a01b0382166000908152600460205260408120548083111561116557600091505061094c565b828103600061118e670de0b6b3a7640000610af3611181610dab565b859063ffffffff6124a116565b90506000600b60019054906101000a90046001600160a01b03166001600160a01b0316634d73e9ba886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156111fd57600080fd5b505afa158015611211573d6000803e3d6000fd5b505050506040513d602081101561122757600080fd5b5051600c54604080516326b9f4dd60e11b81526001600160a01b038b8116600483015291519394506000939190921691634d73e9ba916024808301926020929190829003018186803b15801561127c57600080fd5b505afa158015611290573d6000803e3d6000fd5b505050506040513d60208110156112a657600080fd5b5051905060006112b7848484612945565b159a9950505050505050505050565b60008060001984141561135557600b54604080516326b9f4dd60e11b81526001600160a01b038881166004830152915161010090930490911691634d73e9ba91602480820192602092909190829003018186803b15801561132657600080fd5b505afa15801561133a573d6000803e3d6000fd5b505050506040513d602081101561135057600080fd5b505193505b6000198314156113db57600c54604080516326b9f4dd60e11b81526001600160a01b03888116600483015291519190921691634d73e9ba916024808301926020929190829003018186803b1580156113ac57600080fd5b505afa1580156113c0573d6000803e3d6000fd5b505050506040513d60208110156113d657600080fd5b505192505b6000611419670de0b6b3a7640000610af36113f4610dab565b6001600160a01b038a166000908152600460205260409020549063ffffffff6124a116565b9050611426818686612945565b92509250505b935093915050565b6008546001600160a01b031681565b60046020526000908152604090205481565b60076020526000908152604090205481565b600f5481565b600b5460009060ff166114ba576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055306000908152600460205260409020546114f8670de0b6b3a7640000610af36114eb610dab565b849063ffffffff6124a116565b91506000821161154f576040805162461bcd60e51b815260206004820152601960248201527f5461726f743a2052454445454d5f414d4f554e545f5a45524f00000000000000604482015290519081900360640190fd5b600a548211156115a1576040805162461bcd60e51b81526020600482015260186024820152770a8c2e4dee87440929ca6aa8c8c9286928a9ca8be8682a6960431b604482015290519081900360640190fd5b6115ab308261259d565b6115b5838361230f565b604080518381526020810183905281516001600160a01b0386169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a350611128612628565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156109335780601f1061090857610100808354040283529160200191610933565b600b54600c546000916001600160a01b03610100909104811691811690851682148061169d5750806001600160a01b0316856001600160a01b0316145b6116ee576040805162461bcd60e51b815260206004820152601960248201527f5461726f743a20494e56414c49445f424f52524f5741424c4500000000000000604482015290519081900360640190fd5b6000826001600160a01b0316866001600160a01b03161461171157600019611713565b845b90506000826001600160a01b0316876001600160a01b0316146117385760001961173a565b855b905060006112b78984846112c6565b60105481565b6000610948338484612818565b600a5481565b670e92596fd629000081565b600b5460009061010090046001600160a01b03163314806117995750600c546001600160a01b031633145b6117e0576040805162461bcd60e51b815260206004820152601360248201527215185c9bdd0e8815539055551213d492569151606a1b604482015290519081900360640190fd5b60006117eb84610f23565b91505060008111611843576040805162461bcd60e51b815260206004820152601d60248201527f5461726f743a20494e53554646494349454e545f53484f525446414c4c000000604482015290519081900360640190fd5b600b5460009061010090046001600160a01b031633141561186e57611866611cf1565b50905061187a565b611876611cf1565b9150505b6000611897611887610dab565b610af3878563ffffffff6124a116565b90506118ba670de0b6b3a7640000610af3600f54846124a190919063ffffffff16565b935061192b846040518060400160405280601b81526020017f5461726f743a204c49515549444154494e475f544f4f5f4d5543480000000000815250600460008a6001600160a01b03166001600160a01b03168152602001908152602001600020546127819092919063ffffffff16565b6001600160a01b038088166000908152600460205260408082209390935590891681522054611960908563ffffffff61254316565b6001600160a01b0380891660008181526004602090815260409182902094909455805188815290519193928a16926000805160206130ad83398151915292918290030190a360105415611b305760006119d0670de0b6b3a7640000610af3601054856124a190919063ffffffff16565b90506000600960009054906101000a90046001600160a01b03166001600160a01b031663345ef9416040518163ffffffff1660e01b815260040160206040518083038186803b158015611a2257600080fd5b505afa158015611a36573d6000803e3d6000fd5b505050506040513d6020811015611a4c57600080fd5b5051604080518082018252601b81527f5461726f743a204c49515549444154494e475f544f4f5f4d55434800000000006020828101919091526001600160a01b038c16600090815260049091529190912054919250611ab39190849063ffffffff61278116565b6001600160a01b03808a166000908152600460205260408082209390935590831681522054611ae8908363ffffffff61254316565b6001600160a01b0380831660008181526004602090815260409182902094909455805186815290519193928c16926000805160206130ad83398151915292918290030190a350505b5050509392505050565b6103e881565b600b5460ff16611b8a576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055611baf81670de0b6b3a76400006715f15565d2c5f0006126d8565b600e8190556040805182815290517fdff9a61839be6f6ce5ea77311cc351786a39a9f337c507ff35e7b358fd39c0439181900360200190a150600b805460ff19166001179055565b600b5460ff16611c41576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff19169055600a54600854604080516370a0823160e01b81523060048201529051611ce1938593611cdc9391926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611ca457600080fd5b505afa158015611cb8573d6000803e3d6000fd5b505050506040513d6020811015611cce57600080fd5b50519063ffffffff61287e16565b61230f565b50600b805460ff19166001179055565b600d546008546040805163022351bf60e51b81526001600160a01b03928316600482015281516000948594859491169263446a37e0926024808301939282900301818787803b158015611d4357600080fd5b505af1158015611d57573d6000803e3d6000fd5b505050506040513d6040811015611d6d57600080fd5b505160085460408051630240bc6b60e21b8152905192935060009283926001600160a01b031691630902f1ac916004808301926060929190829003018186803b158015611db957600080fd5b505afa158015611dcd573d6000803e3d6000fd5b505050506040513d6060811015611de357600080fd5b508051602091820151600854604080516318160ddd60e01b815290519396509194506000936001600160a01b03909116926318160ddd926004808201939291829003018186803b158015611e3657600080fd5b505afa158015611e4a573d6000803e3d6000fd5b505050506040513d6020811015611e6057600080fd5b505190506000611e8884611e7385612a47565b6001600160e01b03169063ffffffff612a5916565b90506000611eb16001600160e01b0380841690610af3908916600160201b63ffffffff6124a116565b90506000611ed1611ecc83600160201b63ffffffff6124a116565b612a7e565b90506000611efd6001600160701b036002890216610af387670de0b6b3a764000063ffffffff6124a116565b90506000611f296001600160701b036002890216610af388670de0b6b3a764000063ffffffff6124a116565b9050611f43600160201b610af3848663ffffffff6124a116565b9a50611f5d83610af383600160201b63ffffffff6124a116565b995060648b11611fb4576040805162461bcd60e51b815260206004820152601e60248201527f5461726f743a2050524943455f43414c43554c4154494f4e5f4552524f520000604482015290519081900360640190fd5b60648a11612009576040805162461bcd60e51b815260206004820152601e60248201527f5461726f743a2050524943455f43414c43554c4154494f4e5f4552524f520000604482015290519081900360640190fd5b5050505050505050509091565b6009546001600160a01b031681565b6009546001600160a01b0316331461207a576040805162461bcd60e51b815260206004820152601360248201527215185c9bdd0e8815539055551213d492569151606a1b604482015290519081900360640190fd5b6120ed87878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b018190048102820181019092528981529250899150889081908401838280828437600092019190915250612ad092505050565b600880546001600160a01b03199081166001600160a01b0386811691909117909255600b8054610100600160a81b03191661010086851602179055600c80549091168383161790556009546040805163069f611560e31b8152905191909216916334fb08a8916004808301926020929190829003018186803b15801561217257600080fd5b505afa158015612186573d6000803e3d6000fd5b505050506040513d602081101561219c57600080fd5b5051600d80546001600160a01b0319166001600160a01b0390921691909117905550505050505050565b6715f15565d2c5f00081565b612202878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9612b98565b61220d8787876122ad565b50505050505050565b600c546001600160a01b031681565b600560209081526000928352604080842090915290825290205481565b600b5460ff1661228c576040805162461bcd60e51b815260206004820152601060248201526f15185c9bdd0e8814915153951154915160821b604482015290519081900360640190fd5b600b805460ff1916905561229e612628565b600b805460ff19166001179055565b6001600160a01b03808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0386811660248301526044808301879052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009560609594169382918083835b602083106123bc5780518252601f19909201916020918201910161239d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461241e576040519150601f19603f3d011682016040523d82523d6000602084013e612423565b606091505b5091509150818015612451575080511580612451575080806020019051602081101561244e57600080fd5b50515b61249b576040805162461bcd60e51b815260206004820152601660248201527515185c9bdd0e881514905394d1915497d1905253115160521b604482015290519081900360640190fd5b50505050565b6000826124b05750600061094c565b828202828482816124bd57fe5b04146124fa5760405162461bcd60e51b815260040180806020018281038252602181526020018061308c6021913960400191505060405180910390fd5b9392505050565b60006124fa83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612d6d565b6000828201838110156124fa576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600460205260409020546125c6908263ffffffff61287e16565b6001600160a01b0383166000908152600460205260409020556003546125f2908263ffffffff61287e16565b6003556040805182815290516000916001600160a01b038516916000805160206130ad8339815191529181900360200190a35050565b600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561267357600080fd5b505afa158015612687573d6000803e3d6000fd5b505050506040513d602081101561269d57600080fd5b5051600a81905560408051918252517f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf49181900360200190a1565b6126e0612dd2565b8183101561272e576040805162461bcd60e51b81526020600482015260166024820152755461726f743a20494e56414c49445f53455454494e4760501b604482015290519081900360640190fd5b8083111561277c576040805162461bcd60e51b81526020600482015260166024820152755461726f743a20494e56414c49445f53455454494e4760501b604482015290519081900360640190fd5b505050565b600081848411156128105760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127d55781810151838201526020016127bd565b50505050905090810190601f1680156128025780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b612822838261113a565b612873576040805162461bcd60e51b815260206004820152601d60248201527f5461726f743a20494e53554646494349454e545f4c4951554944495459000000604482015290519081900360640190fd5b61277c838383612ea0565b60006124fa83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612781565b6003546128d3908263ffffffff61254316565b6003556001600160a01b0382166000908152600460205260409020546128ff908263ffffffff61254316565b6001600160a01b03831660008181526004602090815260408083209490945583518581529351929391926000805160206130ad8339815191529281900390910190a35050565b600e5460009081908180612957611cf1565b9092509050600061297a670de0b6b3a7640000610af38a8663ffffffff6124a116565b9050600061299a670de0b6b3a7640000610af38a8663ffffffff6124a116565b9050808210156129a657905b6129c2670de0b6b3a7640000610af3848863ffffffff6124a116565b91506129e085610af383670de0b6b3a764000063ffffffff6124a116565b90506000612a17670de0b6b3a7640000610af36129fb610d39565b612a0b878763ffffffff61254316565b9063ffffffff6124a116565b9050808b10612a33578a0396506000955061142c945050505050565b600097508a9003955061142c945050505050565b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b03841681612a7657fe5b049392505050565b60006003821115612ac1575080600160028204015b81811015612abb57809150600281828581612aaa57fe5b040181612ab357fe5b049050612a93565b50612acb565b8115612acb575060015b919050565b8151612ae3906000906020850190612f80565b508051612af7906001906020840190612f80565b50604051469080605261303a8239604080519182900360520182208651602097880120838301835260018452603160f81b93880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b42851015612bde576040805162461bcd60e51b815260206004820152600e60248201526d15185c9bdd0e881156141254915160921b604482015290519081900360640190fd5b6006546001600160a01b03808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e08501825280519083012061190160f01b6101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e280820193601f1981019281900390910190855afa158015612cda573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590612d105750896001600160a01b0316816001600160a01b0316145b612d61576040805162461bcd60e51b815260206004820152601860248201527f5461726f743a20494e56414c49445f5349474e41545552450000000000000000604482015290519081900360640190fd5b50505050505050505050565b60008183612dbc5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156127d55781810151838201526020016127bd565b506000838581612dc857fe5b0495945050505050565b600960009054906101000a90046001600160a01b03166001600160a01b031663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b158015612e2057600080fd5b505afa158015612e34573d6000803e3d6000fd5b505050506040513d6020811015612e4a57600080fd5b50516001600160a01b03163314612e9e576040805162461bcd60e51b815260206004820152601360248201527215185c9bdd0e8815539055551213d492569151606a1b604482015290519081900360640190fd5b565b604080518082018252601881527f5461726f743a205452414e534645525f544f4f5f4849474800000000000000006020808301919091526001600160a01b038616600090815260049091529190912054612f0191839063ffffffff61278116565b6001600160a01b038085166000908152600460205260408082209390935590841681522054612f36908263ffffffff61254316565b6001600160a01b0380841660008181526004602090815260409182902094909455805185815290519193928716926000805160206130ad83398151915292918290030190a3505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612fc157805160ff1916838001178555612fee565b82800160010185558215612fee579182015b82811115612fee578251825591602001919060010190612fd3565b50612ffa929150612ffe565b5090565b610d4191905b80821115612ffa576000815560010161300456fe5461726f743a20494e53554646494349454e545f52454445454d5f544f4b454e53454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa265627a7a7231582045b66546aee834972ec410078e62bb947960ab735822243a6000bdd1646fb7fe64736f6c63430005100032a265627a7a723158208676cb6f3e13475e1b7942cf2bbd691c1b328a4e29b3ab2833eed2d222d3e22564736f6c63430005100032

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