ETH Price: $3,243.62 (-3.20%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Initialize150619112022-07-02 8:03:59945 days ago1656749039IN
0x9c92c7dc...32d88caC7
0 ETH0.0029424716.44613059

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DELTA_Rebasing_Liquidity_Token

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : DELTA_Rebasing_Liquidity_Token.sol
import "../../interfaces/IWETH.sol";
import "../../interfaces/IDeltaToken.sol";
import "../../interfaces/IRebasingLiquidityToken.sol";
import '../uniswapv2/libraries/UniswapV2Library.sol';
import '../Upgradability/token/ERC20/ERC20Upgradeable.sol';

interface IRESERVE_VAULT {
    function flashBorrowEverything() external;
}

interface IDELTA_LSW {
    function totalWETHEarmarkedForReferrers() external view returns (uint256);
}

contract DELTA_Rebasing_Liquidity_Token is IRebasingLiquidityToken, ERC20Upgradeable {
    using SafeMathUpgradeable for uint256;

    struct AddressCache {
        address deltaxWethPairAddress;
        IDeltaToken deltaToken;
        IUniswapV2Pair deltaxWethPair;
    }

    uint256 public override rlpPerLP;
    uint256 public _dailyVolumeTargetETH;
    uint256 private lastTargetUpdate;
    uint256 public ethVolumeRemaining;

    //immutables and contstancts
    IUniswapV2Pair public immutable DELTA_WETH_PAIR;
    IDeltaToken public immutable DELTA; 
    address constant internal DEAD_BEEF = 0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF;
    address public constant LSW = 0xdaFCE5670d3F67da9A3A44FE6bc36992e5E2beaB;
    address public immutable RESERVE_VAULT;
    IWETH public constant WETH = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    uint256 constant public _DAILY_PERCENTAGE_COST_INCREASE_TO_MINT_LP = 10;


    function initialize() public virtual initializer {
        __ERC20_init("Rebasing Liquidity Token - DELTA.financial", "DELTA rLP"); // Name, symbol
        // Initially set it to 1LP = 1RLP
        rlpPerLP = 1 ether;
    }

    // Rebasing LP is created before DELTA TOKEN is.
    constructor (address delta, address _reserveVault ) {
        //LSW call points
        RESERVE_VAULT = _reserveVault;
        DELTA = IDeltaToken(delta);
        DELTA_WETH_PAIR = IUniswapV2Pair(address(uint(keccak256(abi.encodePacked(
                hex'ff',
                0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f, // Mainnet uniswap factory
                keccak256(abi.encodePacked(delta, address(WETH))),
                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
            )))));
    }

    function onlyLSW() public view {
        require(msg.sender == LSW, "!LSW GO AWAY");
    }

    // Do not remove this as this is called from the LSW
    function setBaseLPToken(address) public {
        onlyLSW();
        this; // sincence warnings
    }

    // @notice wraps all LP tokens of the caller, requires allowance
    // @dev intent of this function is to get the balance of the caller, and wrap his entire balance, update the basetoken supply, and issue the caller amount of tokens that we transfered from him
    function wrap() public override {
        _performWrap(); // This doesn't return because LSW doesn't expect a return value and we can't adjust it now.
    }

    function wrapWithReturn() external override returns (uint256) {
        return _performWrap();
    }

    function _performWrap() internal returns (uint256) {
        uint256 balanceCaller = DELTA_WETH_PAIR.balanceOf(msg.sender);
        require(balanceCaller > 0, "No tokens to wrap");
        // @dev from caller , to here , amount total of caller
        bool success = DELTA_WETH_PAIR.transferFrom(msg.sender, address(this), balanceCaller);
        require(success, "Transfer Failure");
        uint256 garnishedBalance = balanceCaller.mul(rlpPerLP).div(1e18);
        _mint(msg.sender, garnishedBalance);
        return garnishedBalance;
    }

    function rebase() public {
        require(msg.sender == tx.origin, "Smart wallets cannot call this function");

        uint256 deltaBalance = DELTA.balanceOf(address(this));
        if(deltaBalance > 0) { // remove if we have DELTA in here for some reason
            DELTA.transfer(RESERVE_VAULT, deltaBalance); 
        }

        // Collect pre-rebasing stats
        (uint256 preVolumeDELTAReserve, uint256 preVolumeWETHReserve,) = DELTA_WETH_PAIR.getReserves();
        uint256 preVolumeLPSupply = DELTA_WETH_PAIR.totalSupply();
        uint256 preVolumeLPBalance = DELTA_WETH_PAIR.balanceOf(address(this));

        // Have the delta token allow for burning of LP, temporarily.
        // This will call tokenCaller and them proceed to call reserveCaller and to numberLoops of max transfers
        // And re-add LP tokens payback loan... hence we wrap this in few safety checks
        DELTA.performLiquidityRebasing();
        // calls >tokenCaller >reserveCaller on this contract in order

        // Collect post-rebasing stats
        (uint256 postVolumeDELTAReserve, uint256 postVolumeWETHReserve,) = DELTA_WETH_PAIR.getReserves();
        uint256 postVolumeLPSupply = DELTA_WETH_PAIR.totalSupply();
        uint256 postVolumeLPBalance = DELTA_WETH_PAIR.balanceOf(address(this));

        // All my homies hate division
        // WHERE IS MY FUCKING MONEY?
        require(postVolumeDELTAReserve == preVolumeDELTAReserve, "Delta reserve has changed");
        require(preVolumeWETHReserve + 10 > postVolumeWETHReserve && postVolumeWETHReserve >= preVolumeWETHReserve , "WETH reserve out of bounds");
        require(preVolumeLPBalance + 1e4 >= postVolumeLPBalance && postVolumeLPBalance + 1e5 > preVolumeLPBalance , "LP balance change not within bounds"); 
        require(preVolumeLPSupply + 1e4 >= postVolumeLPSupply && postVolumeLPSupply + 1e5 > preVolumeLPSupply, "LP Supply change not within bounds");
    }

    // Delta token calls this after performLiquidityRebasing is in the middle of execution on the token contract
    function tokenCaller() override public {
        require(msg.sender == address(DELTA));
        IRESERVE_VAULT(RESERVE_VAULT).flashBorrowEverything();
    }

    function volumeGeneratingTrades( IDeltaToken _delta, IUniswapV2Pair _pair, uint256 ethTradeVolumeNeededToHitTarget) internal returns (uint256 newVolumeETHRemaining) {
        uint256 balanceWETH = WETH.balanceOf(address(this));
        (uint256 unsiwapReserveDelta, uint256 uniswapReserveWETH, ) = _pair.getReserves();

        uint256 amount0In = unsiwapReserveDelta.mul(1e12).div(uniswapReserveWETH).mul(balanceWETH).div(1e12);  // Amount DELTA to send every transfer to get balanceWETH if there was no fee
        uint256 amount0Out = amount0In * 10000/10161; // 0.6% slippage + ineffciencies;

        address addressPair = address(_pair);
        uint256 loops;
        while(loops < 50) {
            WETH.transfer(addressPair, balanceWETH);
            _delta.adjustBalanceOfNoVestingAccount(addressPair, amount0In, true); // Add the amountIn back uniswap treats it like a transfer and we dont have to guarantee that we have that delta

            // DELTA + WETH  for DELTA * 0.994 + WETH
            // Quadruple WETH in volume
            _pair.swap(amount0Out, balanceWETH, address(this), "");

            _delta.adjustBalanceOfNoVestingAccount(addressPair, unsiwapReserveDelta, false); // Adjust back to reserves ( would have higher else and print dragonflies)
            
            _pair.sync(); // Force reserves to show that
            // Note that WETH balance will not change

            if(balanceWETH > ethTradeVolumeNeededToHitTarget) {
                return 0;
            } else {
                ethTradeVolumeNeededToHitTarget -= balanceWETH;
                loops++;
            }
        }

        // This can be non 0 if we are over 50 loops which is straining this algorithm
        newVolumeETHRemaining = ethTradeVolumeNeededToHitTarget;
    }



    function setUpDailyVolumeTarget(uint256 ethWholeUnits, bool hourlyRebaseRightAway) public {
        onlyMultisig();
        _dailyVolumeTargetETH = ethWholeUnits * 1 ether;
        lastTargetUpdate = hourlyRebaseRightAway ? block.timestamp - 1 hours : block.timestamp; // can rebase right away rebase
    }


    function getRemainingETHInVolumeTarget() public view returns (uint256 remainingVolumeInETH, uint256 secondsSinceLastUpdate) {
        secondsSinceLastUpdate = (block.timestamp - lastTargetUpdate);
        uint256 hoursSinceLastUpdate = secondsSinceLastUpdate / 1 hours;
        remainingVolumeInETH = (_dailyVolumeTargetETH / 24).mul(hoursSinceLastUpdate).add(ethVolumeRemaining); // We dont allow partial hours to not have too much volume from calls
    }

    function updateRemainingETH() private returns (uint256) {
        (uint256 remainingVolumeInETH, uint256 secondsSinceLastUpdate) = getRemainingETHInVolumeTarget();
        lastTargetUpdate = block.timestamp - (secondsSinceLastUpdate % 1 hours); // we carry over the rest of 1hour
        return remainingVolumeInETH;
    }


    function reduceLpRatio(uint256 percentReductionE12) private {
        uint256 ratio = rlpPerLP;
        rlpPerLP = ratio.sub( ratio.mul(percentReductionE12).div(1e14) );
    }

    // The delta reserve calls this during execution in order to complete flash borrowing
    function reserveCaller(uint256 borrowedDELTA, uint256 borrowedWETH) public override {
        // Reserve vault calls this contract with the amount of DELTA and WETH it borrowed to us.
        // 1) We find a optimal DELTA to add with all the WETH to get LP tokens
        // 2) We burn half of all LP tokens we have ( the newly minted + ones in this contract)
            // Only half can be traded at a time because of uniswap reserve requirements
        // 3) We do loop of DELTA and WETH trades for DELTA and WETH. With every time removing 0.6% of delta we expect to pay the fee (0.3*2)
        // 4) We sell DELTA to get WETH
        // 5) We keep changing the uniswap balance and adding more and more liquidity in a loop until we have enough to cover what we had before
            // trading loses us lp tokens, because the ones remaining in the pool concentrate fees
        // 6) We adjust the uniswap balance to thee previos state in order to avoid price changing
        // 7) We repay the loan
        // 8) We adjust the uniswap DELTA reciever ratio, in order to make LP tokens more to mint
            // We have to take into account the totalSupply change in LP tokens
        require(msg.sender == RESERVE_VAULT);

        // We update the target timestamp and consume all remaining ETH that was unspent.
        uint256 ethTradeVolumeNeededToHitTarget = updateRemainingETH();
        require(ethTradeVolumeNeededToHitTarget > 0, "Can't generate volume, wait until a full hour still last targetUpdate is up");

        
        uint256 balanceLPBeforeMintingAndRebasing = DELTA_WETH_PAIR.balanceOf(address(this));
        // We got a loan from reserve vault
        // We have to figure out how to utilize it
        (uint256 unsiwapReserveDelta, uint256 uniswapReserveWETH,) = DELTA_WETH_PAIR.getReserves();

        // If we borrowed WETH, we mint
        if(borrowedWETH > 0) {
            uint256 balanceWETHWithLoan = WETH.balanceOf(address(this));
            uint256 optimalDELTAToMatchAllWETH = UniswapV2Library.quote(balanceWETHWithLoan, uniswapReserveWETH, unsiwapReserveDelta);
            // Send everything to add liquidity
            DELTA.adjustBalanceOfNoVestingAccount(address(DELTA_WETH_PAIR), optimalDELTAToMatchAllWETH, true);
            WETH.transfer(address(DELTA_WETH_PAIR), balanceWETHWithLoan);
            DELTA_WETH_PAIR.mint(address(this));
        }
        
        // We remove half of the liquidity
        // Note that half is the max because you cant get out more than reserves
        // Half is when we have all teh lp tokens
        DELTA_WETH_PAIR.transfer(address(DELTA_WETH_PAIR), DELTA_WETH_PAIR.balanceOf(address(this)) / 2);
        DELTA_WETH_PAIR.burn(address(this));

        // Perform volume trades, and reduce LP ratio based on the volume that gets filled successfully
        { // scope for unfilledEthVolumeRemaining, newRatio
            uint256 unfilledEthVolumeRemaining = volumeGeneratingTrades(DELTA, DELTA_WETH_PAIR, ethTradeVolumeNeededToHitTarget);
            uint256 volumeFulfilled = ethTradeVolumeNeededToHitTarget.sub(unfilledEthVolumeRemaining);
            uint256 lpRatioPercentReductionE12 = volumeFulfilled.mul(1e12).div(_dailyVolumeTargetETH).mul(_DAILY_PERCENTAGE_COST_INCREASE_TO_MINT_LP);
            // Adjust the ratio by the remianing eth to trade
            // If its 10% a day this should return 10/24 for every hour of volume = 0.41 * 1e12 = 410000000000;
            reduceLpRatio(lpRatioPercentReductionE12);
            ethVolumeRemaining = unfilledEthVolumeRemaining;
        }

        // At this point we have either too much or too little LP tokens
        // Since we borrowed we might have too much
        // Or we might have too little depending on when borrowed is less adding it than we already have
        // We branch the logic dependent on it
        uint256 balanceLPNow = DELTA_WETH_PAIR.balanceOf(address(this));

        if(balanceLPNow > balanceLPBeforeMintingAndRebasing) { // We have more or exactly the balance we had before
            // We burn the difference
            uint256 difference = balanceLPNow - balanceLPBeforeMintingAndRebasing;
            DELTA_WETH_PAIR.transfer(address(DELTA_WETH_PAIR), difference);
            DELTA_WETH_PAIR.burn(address(this));
            DELTA.adjustBalanceOfNoVestingAccount(address(DELTA_WETH_PAIR), unsiwapReserveDelta, false);
        } else { // Since we dont let accumulation to happen in the tokens vy adjusting balances directly
                // we can safely assume we just need to give back the WETH and DELTA back to previous levels to get LP tokens we need
                // This assumpion is changed in a function wrapping this one
            (, uint256 currentUniswapReserveWETH,) = DELTA_WETH_PAIR.getReserves();
            // Reserve has too little WETH
            // We need to send the difference 
            // Note this is also the case when we have less LP tokens than we should
            // Fees have not accumulated in the remaining supply of tokens as the reserves did not change
            uint256 ethNeeded = uniswapReserveWETH.sub(currentUniswapReserveWETH);
            if(ethNeeded > 0) {
                WETH.transfer(address(DELTA_WETH_PAIR), ethNeeded);
                DELTA.adjustBalanceOfNoVestingAccount(address(DELTA_WETH_PAIR), unsiwapReserveDelta, false);
                DELTA_WETH_PAIR.mint(address(this));
            }
            // Reserves now have as much DELTA and WETH as they should.
        }

        if(borrowedWETH > 0) { 
            // repay weth loan
            // note that reserves match up with weth it coudnt have gone anywhere but to us, but this convinently tests that too
            WETH.transfer(RESERVE_VAULT, WETH.balanceOf(address(this))); // -1 inefficiencies
            DELTA.adjustBalanceOfNoVestingAccount(RESERVE_VAULT, borrowedDELTA, true);
        }

        DELTA_WETH_PAIR.sync();
        // We directly set the balance of this address to 0
        DELTA.adjustBalanceOfNoVestingAccount(address(this), 0, false); 
    }


    /// @notice opens the first rebasing
    function openRebasing() public {
        onlyLSW();
        require(rlpPerLP == 1e18, "Contract not initialized");
        // we check how much LP we have
        // This call only happens once so we can assume a lot here
        uint256 totalETHInLSW = (1500 ether + WETH.balanceOf(RESERVE_VAULT) + IDELTA_LSW(LSW).totalWETHEarmarkedForReferrers()) * 2;
        uint256 totalInPairRatioE12 = uint256(1500 ether).mul(1e12).div(totalETHInLSW);

        rlpPerLP = totalInPairRatioE12.mul(1e6); // 18 - 12
        //One LP equal RLP 86606638913000000 (0.0866066389130000)
    }

    function onlyMultisig() private view {
        require(msg.sender == DELTA.governance(), "!governance");
    }




}

File 2 of 16 : IWETH.sol
pragma solidity >=0.6.0 <0.8.0;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
    function balanceOf(address) external view returns (uint256);
}

File 3 of 16 : IDeltaToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma experimental ABIEncoderV2;
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; 

import "../common/OVLTokenTypes.sol";

interface IDeltaToken is IERC20 {
    function vestingTransactions(address, uint256) external view returns (VestingTransaction memory);
    function getUserInfo(address) external view returns (UserInformationLite memory);
    function getMatureBalance(address, uint256) external view returns (uint256);
    function liquidityRebasingPermitted() external view returns (bool);
    function lpTokensInPair() external view returns (uint256);
    function governance() external view returns (address);
    function performLiquidityRebasing() external;
    function distributor() external view returns (address);
    function totalsForWallet(address ) external view returns (WalletTotals memory totals);
    function adjustBalanceOfNoVestingAccount(address, uint256,bool) external;
    function userInformation(address user) external view returns (UserInformation memory);

}

File 4 of 16 : IRebasingLiquidityToken.sol
pragma experimental ABIEncoderV2;
pragma solidity ^0.7.6;
import "./IERC20Upgradeable.sol";
interface IRebasingLiquidityToken is IERC20Upgradeable {
    function tokenCaller() external;
    function reserveCaller(uint256,uint256) external;
    function wrapWithReturn() external returns (uint256);
    function wrap() external;
    function rlpPerLP() external view returns (uint256);
}

File 5 of 16 : UniswapV2Library.sol
pragma solidity ^0.7.6;

import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';
import "./SafeMath.sol";

library UniswapV2Library {
    using SafeMathUniswap for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(IUniswapV2Factory(factory).getPair(tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}

File 6 of 16 : ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "../../utils/ContextUpgradeable.sol";
import "../../../../interfaces/IERC20Upgradeable.sol";

import "../../math/SafeMathUpgradeable.sol";
import "../../proxy/Initializable.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable {
    using SafeMathUpgradeable for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

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

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

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

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

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

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
    uint256[44] private __gap;
}

File 7 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 8 of 16 : OVLTokenTypes.sol
// SPDX-License-Identifier: UNLICENSED
// DELTA-BUG-BOUNTY

pragma solidity ^0.7.6;

struct VestingTransaction {
    uint256 amount;
    uint256 fullVestingTimestamp;
}

struct WalletTotals {
    uint256 mature;
    uint256 immature;
    uint256 total;
}

struct UserInformation {
    // This is going to be read from only [0]
    uint256 mostMatureTxIndex;
    uint256 lastInTxIndex;
    uint256 maturedBalance;
    uint256 maxBalance;
    bool fullSenderWhitelisted;
    // Note that recieving immature balances doesnt mean they recieve them fully vested just that senders can do it
    bool immatureReceiverWhitelisted;
    bool noVestingWhitelisted;
}

struct UserInformationLite {
    uint256 maturedBalance;
    uint256 maxBalance;
    uint256 mostMatureTxIndex;
    uint256 lastInTxIndex;
}

struct VestingTransactionDetailed {
    uint256 amount;
    uint256 fullVestingTimestamp;
    // uint256 percentVestedE4;
    uint256 mature;
    uint256 immature;
}


uint256 constant QTY_EPOCHS = 7;

uint256 constant SECONDS_PER_EPOCH = 172800; // About 2days

uint256 constant FULL_EPOCH_TIME = SECONDS_PER_EPOCH * QTY_EPOCHS;

// Precision Multiplier -- this many zeros (23) seems to get all the precision needed for all 18 decimals to be only off by a max of 1 unit
uint256 constant PM = 1e23;

File 9 of 16 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 10 of 16 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

File 11 of 16 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

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

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 12 of 16 : SafeMath.sol
pragma solidity ^0.7.6;

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

library SafeMathUniswap {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x, 'ds-math-add-overflow');
    }

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

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

File 13 of 16 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;
import "../proxy/Initializable.sol";

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

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
    uint256[50] private __gap;
}

File 14 of 16 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 15 of 16 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;

import "../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 16 of 16 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"delta","type":"address"},{"internalType":"address","name":"_reserveVault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DELTA","outputs":[{"internalType":"contract IDeltaToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DELTA_WETH_PAIR","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LSW","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_DAILY_PERCENTAGE_COST_INCREASE_TO_MINT_LP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_dailyVolumeTargetETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethVolumeRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingETHInVolumeTarget","outputs":[{"internalType":"uint256","name":"remainingVolumeInETH","type":"uint256"},{"internalType":"uint256","name":"secondsSinceLastUpdate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyLSW","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openRebasing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"borrowedDELTA","type":"uint256"},{"internalType":"uint256","name":"borrowedWETH","type":"uint256"}],"name":"reserveCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rlpPerLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"setBaseLPToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ethWholeUnits","type":"uint256"},{"internalType":"bool","name":"hourlyRebaseRightAway","type":"bool"}],"name":"setUpDailyVolumeTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrapWithReturn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60e060405234801561001057600080fd5b506040516137fd3803806137fd8339818101604052604081101561003357600080fd5b5080516020918201516001600160601b0319606091821b811660c05291811b821660a081905260408051808601929092527fc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006034830152805160288184030181526048830182528051908601207fff0000000000000000000000000000000000000000000000000000000000000060688401527f5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000006069840152607d8301527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528151808403909101815260bd9092019052805193019290922090911b1660805260805160601c60a05160601c60c05160601c6135b161024c60003980610559528061077b52806113c152806114c852806117c052806119e952806120ed52508061052d52806109d15280610dcc5280611085528061129252806115005280611604528061191952806119ba5280611c5f52806121f15280612bef5250806107f452806108ad5280610a005280610a975280610b585280610bd15280610c005280610c235280610d545280610ded5280610e865280610f1b5280610fc3528061104b52806110ec52806111a15280611258528061130d52806115655280611a815280611b3b5280611bd05280611cc45280611d7e5280611e13528061228c5280612d885280612e9752506135b16000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80638e857ed41161010f578063d76a7d11116100a2578063f32c2a5611610071578063f32c2a56146104e9578063f680cf67146104f1578063fc207153146104f9578063fc482dec14610501576101e5565b8063d76a7d11146104a3578063dd62ed3e146104ab578063ecb5fff6146104d9578063eef192dc146104e1576101e5565b8063ad5c4648116100de578063ad5c464814610483578063af14052c1461048b578063b1359f6d14610493578063d46eb1191461049b576101e5565b80638e857ed4146103ff57806395d89b4114610423578063a457c2d71461042b578063a9059cbb14610457576101e5565b806339509351116101875780638129fc1c116101565780638129fc1c146103df5780638332993a146103e7578063868d58a0146103ef5780638a406c78146103f7576101e5565b806339509351146103455780633a2404f3146103715780633e3c2e981461039457806370a08231146103b9576101e5565b806318160ddd116101c357806318160ddd146102b1578063194984a8146102cb57806323b872dd146102f1578063313ce56714610327576101e5565b8063061fcf15146101ea57806306fdde03146101f4578063095ea7b314610271575b600080fd5b6101f2610522565b005b6101fc6105cc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023657818101518382015260200161021e565b50505050905090810190601f1680156102635780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61029d6004803603604081101561028757600080fd5b506001600160a01b038135169060200135610662565b604080519115158252519081900360200190f35b6102b9610680565b60408051918252519081900360200190f35b6101f2600480360360208110156102e157600080fd5b50356001600160a01b0316610686565b61029d6004803603606081101561030757600080fd5b506001600160a01b03813581169160208101359091169060400135610691565b61032f610719565b6040805160ff9092168252519081900360200190f35b61029d6004803603604081101561035b57600080fd5b506001600160a01b038135169060200135610722565b6101f26004803603604081101561038757600080fd5b5080359060200135610770565b6101f2600480360360408110156103aa57600080fd5b5080359060200135151561166a565b6102b9600480360360208110156103cf57600080fd5b50356001600160a01b0316611698565b6101f26116b3565b6102b96117a3565b6102b96117a9565b6102b96117af565b6104076117be565b604080516001600160a01b039092168252519081900360200190f35b6101fc6117e2565b61029d6004803603604081101561044157600080fd5b506001600160a01b038135169060200135611843565b61029d6004803603604081101561046d57600080fd5b506001600160a01b0381351690602001356118ab565b6104076118bf565b6101f26118d7565b6102b9611fef565b6101f2611ff4565b6101f2611ffc565b6102b9600480360360408110156104c157600080fd5b506001600160a01b03813581169160200135166121c4565b6104076121ef565b610407612213565b6101f261222b565b6102b9612284565b61040761228a565b6105096122ae565b6040805192835260208301919091528051918290030190f35b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461055757600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166330b50b6c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156105b257600080fd5b505af11580156105c6573d6000803e3d6000fd5b50505050565b60368054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106585780601f1061062d57610100808354040283529160200191610658565b820191906000526020600020905b81548152906001019060200180831161063b57829003601f168201915b5050505050905090565b600061067661066f6122e8565b84846122ec565b5060015b92915050565b60355490565b61068e61222b565b50565b600061069e8484846123d8565b61070e846106aa6122e8565b610709856040518060600160405280602881526020016134c1602891396001600160a01b038a166000908152603460205260408120906106e86122e8565b6001600160a01b031681526020810191909152604001600020549190612535565b6122ec565b5060015b9392505050565b60385460ff1690565b600061067661072f6122e8565b8461070985603460006107406122e8565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906125cc565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107a557600080fd5b60006107af612626565b9050600081116107f05760405162461bcd60e51b815260040180806020018281038252604b81526020018061342d604b913960600191505060405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561085f57600080fd5b505afa158015610873573d6000803e3d6000fd5b505050506040513d602081101561088957600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691630902f1ac91600480820192606092909190829003018186803b1580156108f457600080fd5b505afa158015610908573d6000803e3d6000fd5b505050506040513d606081101561091e57600080fd5b5080516020909101516001600160701b0391821693501690508415610bcf57604080516370a0823160e01b8152306004820152905160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b15801561099257600080fd5b505afa1580156109a6573d6000803e3d6000fd5b505050506040513d60208110156109bc57600080fd5b5051905060006109cd82848661264e565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c67005537f00000000000000000000000000000000000000000000000000000000000000008360016040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200182151581526020019350505050600060405180830381600087803b158015610a7157600080fd5b505af1158015610a85573d6000803e3d6000fd5b50506040805163a9059cbb60e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316600482015260248101869052905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2935063a9059cbb925060448083019260209291908290030181600087803b158015610b0c57600080fd5b505af1158015610b20573d6000803e3d6000fd5b505050506040513d6020811015610b3657600080fd5b5050604080516335313c2160e11b815230600482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691636a6278429160248083019260209291908290030181600087803b158015610ba057600080fd5b505af1158015610bb4573d6000803e3d6000fd5b505050506040513d6020811015610bca57600080fd5b505050505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb7f000000000000000000000000000000000000000000000000000000000000000060027f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c8e57600080fd5b505afa158015610ca2573d6000803e3d6000fd5b505050506040513d6020811015610cb857600080fd5b505181610cc157fe5b046040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610d0857600080fd5b505af1158015610d1c573d6000803e3d6000fd5b505050506040513d6020811015610d3257600080fd5b50506040805163226bf2d160e21b815230600482015281516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926389afcb4492602480820193918290030181600087803b158015610d9857600080fd5b505af1158015610dac573d6000803e3d6000fd5b505050506040513d6040811015610dc257600080fd5b5060009050610e127f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000876126f4565b90506000610e208683612aaf565b90506000610e53600a610e4d606654610e4764e8d4a5100087612b0c90919063ffffffff16565b90612b65565b90612b0c565b9050610e5e81612bcc565b5050606855604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015610ecd57600080fd5b505afa158015610ee1573d6000803e3d6000fd5b505050506040513d6020811015610ef757600080fd5b50519050838111156110e8576040805163a9059cbb60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660048201819052868403602483018190529251909163a9059cbb9160448083019260209291908290030181600087803b158015610f7757600080fd5b505af1158015610f8b573d6000803e3d6000fd5b505050506040513d6020811015610fa157600080fd5b50506040805163226bf2d160e21b815230600482015281516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926389afcb4492602480820193918290030181600087803b15801561100757600080fd5b505af115801561101b573d6000803e3d6000fd5b505050506040513d604081101561103157600080fd5b50506040805163c670055360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820187905260006044830181905292517f00000000000000000000000000000000000000000000000000000000000000009091169263c6700553926064808201939182900301818387803b1580156110ca57600080fd5b505af11580156110de573d6000803e3d6000fd5b5050505050611387565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561114357600080fd5b505afa158015611157573d6000803e3d6000fd5b505050506040513d606081101561116d57600080fd5b50602001516001600160701b0316905060006111898483612aaf565b90508015611384576040805163a9059cbb60e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316600482015260248101839052905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29163a9059cbb9160448083019260209291908290030181600087803b15801561121457600080fd5b505af1158015611228573d6000803e3d6000fd5b505050506040513d602081101561123e57600080fd5b50506040805163c670055360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820188905260006044830181905292517f00000000000000000000000000000000000000000000000000000000000000009091169263c6700553926064808201939182900301818387803b1580156112d757600080fd5b505af11580156112eb573d6000803e3d6000fd5b5050604080516335313c2160e11b815230600482015290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169350636a627842925060248083019260209291908290030181600087803b15801561135757600080fd5b505af115801561136b573d6000803e3d6000fd5b505050506040513d602081101561138157600080fd5b50505b50505b851561156357604080516370a0823160e01b8152306004820152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29163a9059cbb917f00000000000000000000000000000000000000000000000000000000000000009184916370a0823191602480820192602092909190829003018186803b15801561140957600080fd5b505afa15801561141d573d6000803e3d6000fd5b505050506040513d602081101561143357600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561148457600080fd5b505af1158015611498573d6000803e3d6000fd5b505050506040513d60208110156114ae57600080fd5b50506040805163c670055360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018a90526001604483015291517f00000000000000000000000000000000000000000000000000000000000000009092169163c67005539160648082019260009290919082900301818387803b15801561154a57600080fd5b505af115801561155e573d6000803e3d6000fd5b505050505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156115be57600080fd5b505af11580156115d2573d6000803e3d6000fd5b50506040805163c670055360e01b81523060048201526000602482018190526044820181905291516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016945063c670055393506064808301939282900301818387803b15801561164957600080fd5b505af115801561165d573d6000803e3d6000fd5b5050505050505050505050565b611672612bed565b670de0b6b3a764000082026066558061168b5742611691565b610e1042035b6067555050565b6001600160a01b031660009081526033602052604090205490565b600054610100900460ff16806116cc57506116cc612cbc565b806116da575060005460ff16155b6117155760405162461bcd60e51b815260040180806020018281038252602e8152602001806133ff602e913960400191505060405180910390fd5b600054610100900460ff16158015611740576000805460ff1961ff0019909116610100171660011790555b6117836040518060600160405280602a81526020016133af602a913960405180604001604052806009815260200168044454c544120724c560bc1b815250612ccd565b670de0b6b3a7640000606555801561068e576000805461ff001916905550565b60685481565b60665481565b60006117b9612d83565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b60378054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106585780601f1061062d57610100808354040283529160200191610658565b60006106766118506122e8565b8461070985604051806060016040528060258152602001613557602591396034600061187a6122e8565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612535565b60006106766118b86122e8565b84846123d8565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3332146119155760405162461bcd60e51b81526004018080602001828103825260278152602001806133666027913960400191505060405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561198457600080fd5b505afa158015611998573d6000803e3d6000fd5b505050506040513d60208110156119ae57600080fd5b505190508015611a7c577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb7f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a4f57600080fd5b505af1158015611a63573d6000803e3d6000fd5b505050506040513d6020811015611a7957600080fd5b50505b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611ad857600080fd5b505afa158015611aec573d6000803e3d6000fd5b505050506040513d6060811015611b0257600080fd5b508051602091820151604080516318160ddd60e01b815290516001600160701b0393841696509290911693506000926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926318160ddd926004808201939291829003018186803b158015611b7e57600080fd5b505afa158015611b92573d6000803e3d6000fd5b505050506040513d6020811015611ba857600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b158015611c1657600080fd5b505afa158015611c2a573d6000803e3d6000fd5b505050506040513d6020811015611c4057600080fd5b505160408051631b02878b60e31b815290519192506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163d8143c589160048082019260009290919082900301818387803b158015611ca757600080fd5b505af1158015611cbb573d6000803e3d6000fd5b505050506000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611d1b57600080fd5b505afa158015611d2f573d6000803e3d6000fd5b505050506040513d6060811015611d4557600080fd5b508051602091820151604080516318160ddd60e01b815290516001600160701b0393841696509290911693506000926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926318160ddd926004808201939291829003018186803b158015611dc157600080fd5b505afa158015611dd5573d6000803e3d6000fd5b505050506040513d6020811015611deb57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b158015611e5957600080fd5b505afa158015611e6d573d6000803e3d6000fd5b505050506040513d6020811015611e8357600080fd5b50519050838814611edb576040805162461bcd60e51b815260206004820152601960248201527f44656c7461207265736572766520686173206368616e67656400000000000000604482015290519081900360640190fd5b8287600a01118015611eed5750868310155b611f3e576040805162461bcd60e51b815260206004820152601a60248201527f574554482072657365727665206f7574206f6620626f756e6473000000000000604482015290519081900360640190fd5b80856127100110158015611f5657508481620186a001115b611f915760405162461bcd60e51b81526004018080602001828103825260238152602001806133216023913960400191505060405180910390fd5b81866127100110158015611fa957508582620186a001115b611fe45760405162461bcd60e51b81526004018080602001828103825260228152602001806133446022913960400191505060405180910390fd5b505050505050505050565b600a81565b61068e612d83565b61200461222b565b606554670de0b6b3a764000014612062576040805162461bcd60e51b815260206004820152601860248201527f436f6e7472616374206e6f7420696e697469616c697a65640000000000000000604482015290519081900360640190fd5b600073dafce5670d3f67da9a3a44fe6bc36992e5e2beab6001600160a01b0316638c15bf3c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120b157600080fd5b505afa1580156120c5573d6000803e3d6000fd5b505050506040513d60208110156120db57600080fd5b5051604080516370a0823160e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166004820152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b15801561215757600080fd5b505afa15801561216b573d6000803e3d6000fd5b505050506040513d602081101561218157600080fd5b5051685150ae84a8cdf000009101810160020291506000906121ae908390610e479064e8d4a51000612b0c565b90506121bd81620f4240612b0c565b6065555050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b7f000000000000000000000000000000000000000000000000000000000000000081565b73dafce5670d3f67da9a3a44fe6bc36992e5e2beab81565b3373dafce5670d3f67da9a3a44fe6bc36992e5e2beab14612282576040805162461bcd60e51b815260206004820152600c60248201526b214c535720474f204157415960a01b604482015290519081900360640190fd5b565b60655481565b7f000000000000000000000000000000000000000000000000000000000000000081565b606754600090420381610e10820490506122e16068546122db836018606654816122d457fe5b0490612b0c565b906125cc565b9250509091565b3390565b6001600160a01b0383166123315760405162461bcd60e51b81526004018080602001828103825260248152602001806135336024913960400191505060405180910390fd5b6001600160a01b0382166123765760405162461bcd60e51b815260040180806020018281038252602281526020018061338d6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661241d5760405162461bcd60e51b815260040180806020018281038252602581526020018061350e6025913960400191505060405180910390fd5b6001600160a01b0382166124625760405162461bcd60e51b81526004018080602001828103825260238152602001806132fe6023913960400191505060405180910390fd5b61246d838383612d7e565b6124aa816040518060600160405280602681526020016133d9602691396001600160a01b0386166000908152603360205260409020549190612535565b6001600160a01b0380851660009081526033602052604080822093909355908416815220546124d990826125cc565b6001600160a01b0380841660008181526033602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156125c45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612589578181015183820152602001612571565b50505050905090810190601f1680156125b65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610712576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006126336122ae565b91509150610e10818161264257fe5b06420360675550905090565b600080841161268e5760405162461bcd60e51b81526004018080602001828103825260258152602001806134e96025913960400191505060405180910390fd5b60008311801561269e5750600082115b6126d95760405162461bcd60e51b81526004018080602001828103825260288152602001806134786028913960400191505060405180910390fd5b826126e48584612f88565b816126eb57fe5b04949350505050565b604080516370a0823160e01b81523060048201529051600091829173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b15801561274a57600080fd5b505afa15801561275e573d6000803e3d6000fd5b505050506040513d602081101561277457600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03881691630902f1ac91600480820192606092909190829003018186803b1580156127bf57600080fd5b505afa1580156127d3573d6000803e3d6000fd5b505050506040513d60608110156127e957600080fd5b5080516020909101516001600160701b039182169350169050600061281d64e8d4a51000610e4786610e4d86838986612b0c565b90506127b16127108202048760005b6032811015612aa0576040805163a9059cbb60e01b81526001600160a01b038416600482015260248101899052905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29163a9059cbb9160448083019260209291908290030181600087803b15801561289857600080fd5b505af11580156128ac573d6000803e3d6000fd5b505050506040513d60208110156128c257600080fd5b50506040805163c670055360e01b81526001600160a01b03848116600483015260248201879052600160448301529151918d169163c67005539160648082019260009290919082900301818387803b15801561291d57600080fd5b505af1158015612931573d6000803e3d6000fd5b50506040805163022c0d9f60e01b815260048101879052602481018b90523060448201526080606482015260006084820181905291516001600160a01b038f16945063022c0d9f935060a4808301939282900301818387803b15801561299657600080fd5b505af11580156129aa573d6000803e3d6000fd5b505050508a6001600160a01b031663c6700553838860006040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200182151581526020019350505050600060405180830381600087803b158015612a1057600080fd5b505af1158015612a24573d6000803e3d6000fd5b50505050896001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612a6357600080fd5b505af1158015612a77573d6000803e3d6000fd5b5050505088871115612a93576000975050505050505050610712565b978690039760010161282c565b50969998505050505050505050565b600082821115612b06576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082612b1b5750600061067a565b82820282848281612b2857fe5b04146107125760405162461bcd60e51b81526004018080602001828103825260218152602001806134a06021913960400191505060405180910390fd5b6000808211612bbb576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612bc457fe5b049392505050565b6065546121bd612be6655af3107a4000610e478486612b0c565b8290612aaf565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015612c4657600080fd5b505afa158015612c5a573d6000803e3d6000fd5b505050506040513d6020811015612c7057600080fd5b50516001600160a01b03163314612282576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6000612cc730612feb565b15905090565b600054610100900460ff1680612ce65750612ce6612cbc565b80612cf4575060005460ff16155b612d2f5760405162461bcd60e51b815260040180806020018281038252602e8152602001806133ff602e913960400191505060405180910390fd5b600054610100900460ff16158015612d5a576000805460ff1961ff0019909116610100171660011790555b612d62612ff1565b612d6c8383613092565b8015612d7e576000805461ff00191690555b505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612df357600080fd5b505afa158015612e07573d6000803e3d6000fd5b505050506040513d6020811015612e1d57600080fd5b5051905080612e67576040805162461bcd60e51b815260206004820152601160248201527004e6f20746f6b656e7320746f207772617607c1b604482015290519081900360640190fd5b604080516323b872dd60e01b81523360048201523060248201526044810183905290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648082019260209290919082900301818787803b158015612edf57600080fd5b505af1158015612ef3573d6000803e3d6000fd5b505050506040513d6020811015612f0957600080fd5b5051905080612f52576040805162461bcd60e51b815260206004820152601060248201526f5472616e73666572204661696c75726560801b604482015290519081900360640190fd5b6000612f75670de0b6b3a7640000610e4760655486612b0c90919063ffffffff16565b9050612f81338261316a565b9250505090565b6000811580612fa357505080820282828281612fa057fe5b04145b61067a576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b3b151590565b600054610100900460ff168061300a575061300a612cbc565b80613018575060005460ff16155b6130535760405162461bcd60e51b815260040180806020018281038252602e8152602001806133ff602e913960400191505060405180910390fd5b600054610100900460ff1615801561307e576000805460ff1961ff0019909116610100171660011790555b801561068e576000805461ff001916905550565b600054610100900460ff16806130ab57506130ab612cbc565b806130b9575060005460ff16155b6130f45760405162461bcd60e51b815260040180806020018281038252602e8152602001806133ff602e913960400191505060405180910390fd5b600054610100900460ff1615801561311f576000805460ff1961ff0019909116610100171660011790555b825161313290603690602086019061325c565b50815161314690603790602085019061325c565b506038805460ff191660121790558015612d7e576000805461ff0019169055505050565b6001600160a01b0382166131c5576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6131d160008383612d7e565b6035546131de90826125cc565b6035556001600160a01b03821660009081526033602052604090205461320490826125cc565b6001600160a01b03831660008181526033602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261329257600085556132d8565b82601f106132ab57805160ff19168380011785556132d8565b828001600101855582156132d8579182015b828111156132d85782518255916020019190600101906132bd565b506132e49291506132e8565b5090565b5b808211156132e457600081556001016132e956fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734c502062616c616e6365206368616e6765206e6f742077697468696e20626f756e64734c5020537570706c79206368616e6765206e6f742077697468696e20626f756e6473536d6172742077616c6c6574732063616e6e6f742063616c6c20746869732066756e6374696f6e45524332303a20617070726f766520746f20746865207a65726f20616464726573735265626173696e67204c697175696469747920546f6b656e202d2044454c54412e66696e616e6369616c45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656443616e27742067656e657261746520766f6c756d652c207761697420756e74696c20612066756c6c20686f7572207374696c6c206c61737420746172676574557064617465206973207570556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e5445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201e108f4d84ebc5e368fd6a93a86c23d851e5cb788fcf964f398bd02c45743f4464736f6c634300070600330000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de848

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80638e857ed41161010f578063d76a7d11116100a2578063f32c2a5611610071578063f32c2a56146104e9578063f680cf67146104f1578063fc207153146104f9578063fc482dec14610501576101e5565b8063d76a7d11146104a3578063dd62ed3e146104ab578063ecb5fff6146104d9578063eef192dc146104e1576101e5565b8063ad5c4648116100de578063ad5c464814610483578063af14052c1461048b578063b1359f6d14610493578063d46eb1191461049b576101e5565b80638e857ed4146103ff57806395d89b4114610423578063a457c2d71461042b578063a9059cbb14610457576101e5565b806339509351116101875780638129fc1c116101565780638129fc1c146103df5780638332993a146103e7578063868d58a0146103ef5780638a406c78146103f7576101e5565b806339509351146103455780633a2404f3146103715780633e3c2e981461039457806370a08231146103b9576101e5565b806318160ddd116101c357806318160ddd146102b1578063194984a8146102cb57806323b872dd146102f1578063313ce56714610327576101e5565b8063061fcf15146101ea57806306fdde03146101f4578063095ea7b314610271575b600080fd5b6101f2610522565b005b6101fc6105cc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023657818101518382015260200161021e565b50505050905090810190601f1680156102635780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61029d6004803603604081101561028757600080fd5b506001600160a01b038135169060200135610662565b604080519115158252519081900360200190f35b6102b9610680565b60408051918252519081900360200190f35b6101f2600480360360208110156102e157600080fd5b50356001600160a01b0316610686565b61029d6004803603606081101561030757600080fd5b506001600160a01b03813581169160208101359091169060400135610691565b61032f610719565b6040805160ff9092168252519081900360200190f35b61029d6004803603604081101561035b57600080fd5b506001600160a01b038135169060200135610722565b6101f26004803603604081101561038757600080fd5b5080359060200135610770565b6101f2600480360360408110156103aa57600080fd5b5080359060200135151561166a565b6102b9600480360360208110156103cf57600080fd5b50356001600160a01b0316611698565b6101f26116b3565b6102b96117a3565b6102b96117a9565b6102b96117af565b6104076117be565b604080516001600160a01b039092168252519081900360200190f35b6101fc6117e2565b61029d6004803603604081101561044157600080fd5b506001600160a01b038135169060200135611843565b61029d6004803603604081101561046d57600080fd5b506001600160a01b0381351690602001356118ab565b6104076118bf565b6101f26118d7565b6102b9611fef565b6101f2611ff4565b6101f2611ffc565b6102b9600480360360408110156104c157600080fd5b506001600160a01b03813581169160200135166121c4565b6104076121ef565b610407612213565b6101f261222b565b6102b9612284565b61040761228a565b6105096122ae565b6040805192835260208301919091528051918290030190f35b336001600160a01b037f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef161461055757600080fd5b7f0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de8486001600160a01b03166330b50b6c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156105b257600080fd5b505af11580156105c6573d6000803e3d6000fd5b50505050565b60368054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106585780601f1061062d57610100808354040283529160200191610658565b820191906000526020600020905b81548152906001019060200180831161063b57829003601f168201915b5050505050905090565b600061067661066f6122e8565b84846122ec565b5060015b92915050565b60355490565b61068e61222b565b50565b600061069e8484846123d8565b61070e846106aa6122e8565b610709856040518060600160405280602881526020016134c1602891396001600160a01b038a166000908152603460205260408120906106e86122e8565b6001600160a01b031681526020810191909152604001600020549190612535565b6122ec565b5060015b9392505050565b60385460ff1690565b600061067661072f6122e8565b8461070985603460006107406122e8565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906125cc565b336001600160a01b037f0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de84816146107a557600080fd5b60006107af612626565b9050600081116107f05760405162461bcd60e51b815260040180806020018281038252604b81526020018061342d604b913960600191505060405180910390fd5b60007f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561085f57600080fd5b505afa158015610873573d6000803e3d6000fd5b505050506040513d602081101561088957600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b201691630902f1ac91600480820192606092909190829003018186803b1580156108f457600080fd5b505afa158015610908573d6000803e3d6000fd5b505050506040513d606081101561091e57600080fd5b5080516020909101516001600160701b0391821693501690508415610bcf57604080516370a0823160e01b8152306004820152905160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b15801561099257600080fd5b505afa1580156109a6573d6000803e3d6000fd5b505050506040513d60208110156109bc57600080fd5b5051905060006109cd82848661264e565b90507f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef6001600160a01b031663c67005537f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b208360016040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200182151581526020019350505050600060405180830381600087803b158015610a7157600080fd5b505af1158015610a85573d6000803e3d6000fd5b50506040805163a9059cbb60e01b81527f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b0316600482015260248101869052905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2935063a9059cbb925060448083019260209291908290030181600087803b158015610b0c57600080fd5b505af1158015610b20573d6000803e3d6000fd5b505050506040513d6020811015610b3657600080fd5b5050604080516335313c2160e11b815230600482015290516001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b201691636a6278429160248083019260209291908290030181600087803b158015610ba057600080fd5b505af1158015610bb4573d6000803e3d6000fd5b505050506040513d6020811015610bca57600080fd5b505050505b7f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b031663a9059cbb7f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2060027f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c8e57600080fd5b505afa158015610ca2573d6000803e3d6000fd5b505050506040513d6020811015610cb857600080fd5b505181610cc157fe5b046040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610d0857600080fd5b505af1158015610d1c573d6000803e3d6000fd5b505050506040513d6020811015610d3257600080fd5b50506040805163226bf2d160e21b815230600482015281516001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2016926389afcb4492602480820193918290030181600087803b158015610d9857600080fd5b505af1158015610dac573d6000803e3d6000fd5b505050506040513d6040811015610dc257600080fd5b5060009050610e127f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef7f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b20876126f4565b90506000610e208683612aaf565b90506000610e53600a610e4d606654610e4764e8d4a5100087612b0c90919063ffffffff16565b90612b65565b90612b0c565b9050610e5e81612bcc565b5050606855604080516370a0823160e01b815230600482015290516000916001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2016916370a0823191602480820192602092909190829003018186803b158015610ecd57600080fd5b505afa158015610ee1573d6000803e3d6000fd5b505050506040513d6020811015610ef757600080fd5b50519050838111156110e8576040805163a9059cbb60e01b81526001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b201660048201819052868403602483018190529251909163a9059cbb9160448083019260209291908290030181600087803b158015610f7757600080fd5b505af1158015610f8b573d6000803e3d6000fd5b505050506040513d6020811015610fa157600080fd5b50506040805163226bf2d160e21b815230600482015281516001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2016926389afcb4492602480820193918290030181600087803b15801561100757600080fd5b505af115801561101b573d6000803e3d6000fd5b505050506040513d604081101561103157600080fd5b50506040805163c670055360e01b81526001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b20811660048301526024820187905260006044830181905292517f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef9091169263c6700553926064808201939182900301818387803b1580156110ca57600080fd5b505af11580156110de573d6000803e3d6000fd5b5050505050611387565b60007f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561114357600080fd5b505afa158015611157573d6000803e3d6000fd5b505050506040513d606081101561116d57600080fd5b50602001516001600160701b0316905060006111898483612aaf565b90508015611384576040805163a9059cbb60e01b81527f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b0316600482015260248101839052905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29163a9059cbb9160448083019260209291908290030181600087803b15801561121457600080fd5b505af1158015611228573d6000803e3d6000fd5b505050506040513d602081101561123e57600080fd5b50506040805163c670055360e01b81526001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b20811660048301526024820188905260006044830181905292517f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef9091169263c6700553926064808201939182900301818387803b1580156112d757600080fd5b505af11580156112eb573d6000803e3d6000fd5b5050604080516335313c2160e11b815230600482015290516001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b20169350636a627842925060248083019260209291908290030181600087803b15801561135757600080fd5b505af115801561136b573d6000803e3d6000fd5b505050506040513d602081101561138157600080fd5b50505b50505b851561156357604080516370a0823160e01b8152306004820152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29163a9059cbb917f0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de8489184916370a0823191602480820192602092909190829003018186803b15801561140957600080fd5b505afa15801561141d573d6000803e3d6000fd5b505050506040513d602081101561143357600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561148457600080fd5b505af1158015611498573d6000803e3d6000fd5b505050506040513d60208110156114ae57600080fd5b50506040805163c670055360e01b81526001600160a01b037f0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de84881166004830152602482018a90526001604483015291517f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef9092169163c67005539160648082019260009290919082900301818387803b15801561154a57600080fd5b505af115801561155e573d6000803e3d6000fd5b505050505b7f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156115be57600080fd5b505af11580156115d2573d6000803e3d6000fd5b50506040805163c670055360e01b81523060048201526000602482018190526044820181905291516001600160a01b037f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef16945063c670055393506064808301939282900301818387803b15801561164957600080fd5b505af115801561165d573d6000803e3d6000fd5b5050505050505050505050565b611672612bed565b670de0b6b3a764000082026066558061168b5742611691565b610e1042035b6067555050565b6001600160a01b031660009081526033602052604090205490565b600054610100900460ff16806116cc57506116cc612cbc565b806116da575060005460ff16155b6117155760405162461bcd60e51b815260040180806020018281038252602e8152602001806133ff602e913960400191505060405180910390fd5b600054610100900460ff16158015611740576000805460ff1961ff0019909116610100171660011790555b6117836040518060600160405280602a81526020016133af602a913960405180604001604052806009815260200168044454c544120724c560bc1b815250612ccd565b670de0b6b3a7640000606555801561068e576000805461ff001916905550565b60685481565b60665481565b60006117b9612d83565b905090565b7f0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de84881565b60378054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106585780601f1061062d57610100808354040283529160200191610658565b60006106766118506122e8565b8461070985604051806060016040528060258152602001613557602591396034600061187a6122e8565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612535565b60006106766118b86122e8565b84846123d8565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3332146119155760405162461bcd60e51b81526004018080602001828103825260278152602001806133666027913960400191505060405180910390fd5b60007f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561198457600080fd5b505afa158015611998573d6000803e3d6000fd5b505050506040513d60208110156119ae57600080fd5b505190508015611a7c577f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef6001600160a01b031663a9059cbb7f0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de848836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a4f57600080fd5b505af1158015611a63573d6000803e3d6000fd5b505050506040513d6020811015611a7957600080fd5b50505b6000807f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611ad857600080fd5b505afa158015611aec573d6000803e3d6000fd5b505050506040513d6060811015611b0257600080fd5b508051602091820151604080516318160ddd60e01b815290516001600160701b0393841696509290911693506000926001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2016926318160ddd926004808201939291829003018186803b158015611b7e57600080fd5b505afa158015611b92573d6000803e3d6000fd5b505050506040513d6020811015611ba857600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2016916370a08231916024808301926020929190829003018186803b158015611c1657600080fd5b505afa158015611c2a573d6000803e3d6000fd5b505050506040513d6020811015611c4057600080fd5b505160408051631b02878b60e31b815290519192506001600160a01b037f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef169163d8143c589160048082019260009290919082900301818387803b158015611ca757600080fd5b505af1158015611cbb573d6000803e3d6000fd5b505050506000807f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015611d1b57600080fd5b505afa158015611d2f573d6000803e3d6000fd5b505050506040513d6060811015611d4557600080fd5b508051602091820151604080516318160ddd60e01b815290516001600160701b0393841696509290911693506000926001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2016926318160ddd926004808201939291829003018186803b158015611dc157600080fd5b505afa158015611dd5573d6000803e3d6000fd5b505050506040513d6020811015611deb57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2016916370a08231916024808301926020929190829003018186803b158015611e5957600080fd5b505afa158015611e6d573d6000803e3d6000fd5b505050506040513d6020811015611e8357600080fd5b50519050838814611edb576040805162461bcd60e51b815260206004820152601960248201527f44656c7461207265736572766520686173206368616e67656400000000000000604482015290519081900360640190fd5b8287600a01118015611eed5750868310155b611f3e576040805162461bcd60e51b815260206004820152601a60248201527f574554482072657365727665206f7574206f6620626f756e6473000000000000604482015290519081900360640190fd5b80856127100110158015611f5657508481620186a001115b611f915760405162461bcd60e51b81526004018080602001828103825260238152602001806133216023913960400191505060405180910390fd5b81866127100110158015611fa957508582620186a001115b611fe45760405162461bcd60e51b81526004018080602001828103825260228152602001806133446022913960400191505060405180910390fd5b505050505050505050565b600a81565b61068e612d83565b61200461222b565b606554670de0b6b3a764000014612062576040805162461bcd60e51b815260206004820152601860248201527f436f6e7472616374206e6f7420696e697469616c697a65640000000000000000604482015290519081900360640190fd5b600073dafce5670d3f67da9a3a44fe6bc36992e5e2beab6001600160a01b0316638c15bf3c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120b157600080fd5b505afa1580156120c5573d6000803e3d6000fd5b505050506040513d60208110156120db57600080fd5b5051604080516370a0823160e01b81527f0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de8486001600160a01b03166004820152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b15801561215757600080fd5b505afa15801561216b573d6000803e3d6000fd5b505050506040513d602081101561218157600080fd5b5051685150ae84a8cdf000009101810160020291506000906121ae908390610e479064e8d4a51000612b0c565b90506121bd81620f4240612b0c565b6065555050565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b7f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef81565b73dafce5670d3f67da9a3a44fe6bc36992e5e2beab81565b3373dafce5670d3f67da9a3a44fe6bc36992e5e2beab14612282576040805162461bcd60e51b815260206004820152600c60248201526b214c535720474f204157415960a01b604482015290519081900360640190fd5b565b60655481565b7f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2081565b606754600090420381610e10820490506122e16068546122db836018606654816122d457fe5b0490612b0c565b906125cc565b9250509091565b3390565b6001600160a01b0383166123315760405162461bcd60e51b81526004018080602001828103825260248152602001806135336024913960400191505060405180910390fd5b6001600160a01b0382166123765760405162461bcd60e51b815260040180806020018281038252602281526020018061338d6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260346020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661241d5760405162461bcd60e51b815260040180806020018281038252602581526020018061350e6025913960400191505060405180910390fd5b6001600160a01b0382166124625760405162461bcd60e51b81526004018080602001828103825260238152602001806132fe6023913960400191505060405180910390fd5b61246d838383612d7e565b6124aa816040518060600160405280602681526020016133d9602691396001600160a01b0386166000908152603360205260409020549190612535565b6001600160a01b0380851660009081526033602052604080822093909355908416815220546124d990826125cc565b6001600160a01b0380841660008181526033602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156125c45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612589578181015183820152602001612571565b50505050905090810190601f1680156125b65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610712576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006126336122ae565b91509150610e10818161264257fe5b06420360675550905090565b600080841161268e5760405162461bcd60e51b81526004018080602001828103825260258152602001806134e96025913960400191505060405180910390fd5b60008311801561269e5750600082115b6126d95760405162461bcd60e51b81526004018080602001828103825260288152602001806134786028913960400191505060405180910390fd5b826126e48584612f88565b816126eb57fe5b04949350505050565b604080516370a0823160e01b81523060048201529051600091829173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b15801561274a57600080fd5b505afa15801561275e573d6000803e3d6000fd5b505050506040513d602081101561277457600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03881691630902f1ac91600480820192606092909190829003018186803b1580156127bf57600080fd5b505afa1580156127d3573d6000803e3d6000fd5b505050506040513d60608110156127e957600080fd5b5080516020909101516001600160701b039182169350169050600061281d64e8d4a51000610e4786610e4d86838986612b0c565b90506127b16127108202048760005b6032811015612aa0576040805163a9059cbb60e01b81526001600160a01b038416600482015260248101899052905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29163a9059cbb9160448083019260209291908290030181600087803b15801561289857600080fd5b505af11580156128ac573d6000803e3d6000fd5b505050506040513d60208110156128c257600080fd5b50506040805163c670055360e01b81526001600160a01b03848116600483015260248201879052600160448301529151918d169163c67005539160648082019260009290919082900301818387803b15801561291d57600080fd5b505af1158015612931573d6000803e3d6000fd5b50506040805163022c0d9f60e01b815260048101879052602481018b90523060448201526080606482015260006084820181905291516001600160a01b038f16945063022c0d9f935060a4808301939282900301818387803b15801561299657600080fd5b505af11580156129aa573d6000803e3d6000fd5b505050508a6001600160a01b031663c6700553838860006040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200182151581526020019350505050600060405180830381600087803b158015612a1057600080fd5b505af1158015612a24573d6000803e3d6000fd5b50505050896001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612a6357600080fd5b505af1158015612a77573d6000803e3d6000fd5b5050505088871115612a93576000975050505050505050610712565b978690039760010161282c565b50969998505050505050505050565b600082821115612b06576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082612b1b5750600061067a565b82820282848281612b2857fe5b04146107125760405162461bcd60e51b81526004018080602001828103825260218152602001806134a06021913960400191505060405180910390fd5b6000808211612bbb576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612bc457fe5b049392505050565b6065546121bd612be6655af3107a4000610e478486612b0c565b8290612aaf565b7f0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef6001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015612c4657600080fd5b505afa158015612c5a573d6000803e3d6000fd5b505050506040513d6020811015612c7057600080fd5b50516001600160a01b03163314612282576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6000612cc730612feb565b15905090565b600054610100900460ff1680612ce65750612ce6612cbc565b80612cf4575060005460ff16155b612d2f5760405162461bcd60e51b815260040180806020018281038252602e8152602001806133ff602e913960400191505060405180910390fd5b600054610100900460ff16158015612d5a576000805460ff1961ff0019909116610100171660011790555b612d62612ff1565b612d6c8383613092565b8015612d7e576000805461ff00191690555b505050565b6000807f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612df357600080fd5b505afa158015612e07573d6000803e3d6000fd5b505050506040513d6020811015612e1d57600080fd5b5051905080612e67576040805162461bcd60e51b815260206004820152601160248201527004e6f20746f6b656e7320746f207772617607c1b604482015290519081900360640190fd5b604080516323b872dd60e01b81523360048201523060248201526044810183905290516000916001600160a01b037f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2016916323b872dd9160648082019260209290919082900301818787803b158015612edf57600080fd5b505af1158015612ef3573d6000803e3d6000fd5b505050506040513d6020811015612f0957600080fd5b5051905080612f52576040805162461bcd60e51b815260206004820152601060248201526f5472616e73666572204661696c75726560801b604482015290519081900360640190fd5b6000612f75670de0b6b3a7640000610e4760655486612b0c90919063ffffffff16565b9050612f81338261316a565b9250505090565b6000811580612fa357505080820282828281612fa057fe5b04145b61067a576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b3b151590565b600054610100900460ff168061300a575061300a612cbc565b80613018575060005460ff16155b6130535760405162461bcd60e51b815260040180806020018281038252602e8152602001806133ff602e913960400191505060405180910390fd5b600054610100900460ff1615801561307e576000805460ff1961ff0019909116610100171660011790555b801561068e576000805461ff001916905550565b600054610100900460ff16806130ab57506130ab612cbc565b806130b9575060005460ff16155b6130f45760405162461bcd60e51b815260040180806020018281038252602e8152602001806133ff602e913960400191505060405180910390fd5b600054610100900460ff1615801561311f576000805460ff1961ff0019909116610100171660011790555b825161313290603690602086019061325c565b50815161314690603790602085019061325c565b506038805460ff191660121790558015612d7e576000805461ff0019169055505050565b6001600160a01b0382166131c5576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6131d160008383612d7e565b6035546131de90826125cc565b6035556001600160a01b03821660009081526033602052604090205461320490826125cc565b6001600160a01b03831660008181526033602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261329257600085556132d8565b82601f106132ab57805160ff19168380011785556132d8565b828001600101855582156132d8579182015b828111156132d85782518255916020019190600101906132bd565b506132e49291506132e8565b5090565b5b808211156132e457600081556001016132e956fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734c502062616c616e6365206368616e6765206e6f742077697468696e20626f756e64734c5020537570706c79206368616e6765206e6f742077697468696e20626f756e6473536d6172742077616c6c6574732063616e6e6f742063616c6c20746869732066756e6374696f6e45524332303a20617070726f766520746f20746865207a65726f20616464726573735265626173696e67204c697175696469747920546f6b656e202d2044454c54412e66696e616e6369616c45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a656443616e27742067656e657261746520766f6c756d652c207761697420756e74696c20612066756c6c20686f7572207374696c6c206c61737420746172676574557064617465206973207570556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e5445524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201e108f4d84ebc5e368fd6a93a86c23d851e5cb788fcf964f398bd02c45743f4464736f6c63430007060033

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

0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de848

-----Decoded View---------------
Arg [0] : delta (address): 0x9EA3b5b4EC044b70375236A281986106457b20EF
Arg [1] : _reserveVault (address): 0x6B29A3f9a1E378A57410dC480c1b19F4f89dE848

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef
Arg [1] : 0000000000000000000000006b29a3f9a1e378a57410dc480c1b19f4f89de848


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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