ETH Price: $3,422.53 (+3.26%)

Token

DELTA.financial - deep DeFi derivatives (DELTA)
 

Overview

Max Total Supply

43,965,018.561489783331365114 DELTA

Holders

4,516 ( -0.022%)

Market

Price

$0.97 @ 0.000284 ETH (+3.85%)

Onchain Market Cap

$42,712,543.11

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
61.7 DELTA

Value
$59.94 ( ~0.0175133835590589 Eth) [0.0001%]
0x2781b553cae0f0502ee4a6c38cb6459badef17e8
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Delta is an on-chain options layer which utilizes a combination of liquidity standards to reduce premiums and offer competitive options prices. It uses novel systems such as a unique vesting schedule to generate a new form of liquidity.

Market

Volume (24H):$2,570.37
Market Capitalization:$0.00
Circulating Supply:0.00 DELTA
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DELTAToken

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : DELTAToken.sol
// DELTA-BUG-BOUNTY
pragma experimental ABIEncoderV2;
pragma solidity ^0.7.6;

import "../libs/Context.sol";

import "../../interfaces/IOVLBalanceHandler.sol";
import "../../interfaces/IOVLTransferHandler.sol";
import "../../interfaces/IOVLVestingCalculator.sol";
import "../../interfaces/IRebasingLiquidityToken.sol";
import "../../interfaces/IWETH.sol";

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

import "./Handlers/post_first_rebasing/OVLTransferHandler.sol";
import "./Handlers/post_first_rebasing/OVLBalanceHandler.sol";
import "./Handlers/pre_first_rebasing/OVLLPRebasingHandler.sol";
import "./Handlers/pre_first_rebasing/OVLLPRebasingBalanceHandler.sol";

// Implementation of the DELTA token responsible
// for the CORE ecosystem options layer
// guarding unlocked liquidity inside of the ecosystem
// This token is time lock guarded by 90% FoT which disappears after 2 weeks to 0%
// balanceOf will return the spendable amount outside of the fee on transfer.

contract DELTAToken is OVLBase, Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    address public governance;
    address public tokenTransferHandler;
    address public rebasingLPAddress;
    address public tokenBalanceHandler;
    address public pendingGovernance;

    // ERC-20 Variables
    string private constant NAME = "DELTA.financial - deep DeFi derivatives";
    string private constant SYMBOL = "DELTA";
    uint8 private constant DECIMALS = 18;
    uint256 private constant TOTAL_SUPPLY = 45_000_000e18;

    // Configuration
    address private constant WETH_ADDRESS = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address private constant BURNER = 0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF;
    address private constant LSW_ADDRESS = 0xdaFCE5670d3F67da9A3A44FE6bc36992e5E2beaB;
    address private constant UNISWAP_V2_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;

    // Handler for activation after first rebasing
    address private immutable tokenBalanceHandlerMain;
    address private immutable tokenTransferHandlerMain;

    // Lookup for pair
    address immutable public _PAIR_ADDRESS;

    constructor (address rebasingLP,  address multisig, address dfv) {
        require(address(this) < WETH_ADDRESS, "DELTAToken: Invalid Token Address");
        require(multisig != address(0));
        require(dfv != address(0));
        require(rebasingLP != address(0));

        // We get the pair address
        // token0 is the smaller address
        address uniswapPair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f, // Mainnet uniswap factory
                keccak256(abi.encodePacked(address(this), WETH_ADDRESS)),
                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
            ))));
        // We whitelist the pair to have no vesting on reception
        governance = msg.sender; // bypass !gov checks
        _PAIR_ADDRESS = uniswapPair;
        setNoVestingWhitelist(uniswapPair, true);
        setNoVestingWhitelist(BURNER, true);
        setNoVestingWhitelist(rebasingLP, true);
        setNoVestingWhitelist(UNISWAP_V2_ROUTER, true); // We set the router to no vesting so we dont need to check it in the balance handler to return maxbalance.
                                                        // Since we return maxbalance of everyone who has no vesting.

        setWhitelists(multisig, true, true, true);
        // We are not setting dfv here intentionally because we have a check inside the dfv that it has them
        // Since DFV needs to be able to set whitelists itself, so it needs to be a part of the modules

        setFullSenderWhitelist(LSW_ADDRESS, true); // Nessesary for lsw because it doesnt just send to the pair

        governance = multisig;

        rebasingLPAddress = rebasingLP;
        _provideInitialSupply(LSW_ADDRESS, TOTAL_SUPPLY); 

        // Set post first rebasing ones now into private variables
        address transferHandler = address(new OVLTransferHandler(uniswapPair, dfv));
        tokenTransferHandlerMain = transferHandler;
        tokenBalanceHandlerMain = address(new OVLBalanceHandler(IOVLTransferHandler(transferHandler), IERC20(uniswapPair))); 
        
        //Set pre rebasing ones as main ones
        tokenTransferHandler = address(new OVLLPRebasingHandler(uniswapPair));
        tokenBalanceHandler = address(new OVLLPRebasingBalanceHandler()); 

    }

    function activatePostFirstRebasingState() public isGovernance() {
        require(distributor != address(0), "Set the distributor first!");
        tokenTransferHandler = tokenTransferHandlerMain;
        tokenBalanceHandler = tokenBalanceHandlerMain;
    }

    function name() public pure returns (string memory) {
        return NAME;
    }

    function symbol() public pure returns (string memory) {
        return SYMBOL;
    }

    function decimals() public pure returns (uint8) {
        return DECIMALS;
    }

    function totalSupply() public view override returns (uint256) {
        return TOTAL_SUPPLY - balanceOf(BURNER);
    }

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    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;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    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;
    }

    function matureAllTokensOf(UserInformation storage ui, address account) internal {
        delete vestingTransactions[account]; // remove all vesting buckets
        ui.maturedBalance = ui.maxBalance;
    }

    function setFullSenderWhitelist(address account, bool canSendToMatureBalances) public isGovernance() {
        UserInformation storage ui = _userInformation[account];
        matureAllTokensOf(ui,account);
        ui.fullSenderWhitelisted = canSendToMatureBalances;
    }

   function setImmatureRecipentWhitelist(address account, bool canRecieveImmatureBalances) public isGovernance() {
        UserInformation storage ui = _userInformation[account];
        matureAllTokensOf(ui,account);
        ui.immatureReceiverWhitelisted = canRecieveImmatureBalances;
    }

    function setNoVestingWhitelist(address account, bool recievesBalancesWithoutVestingProcess) public isGovernance() {
        UserInformation storage ui = _userInformation[account];
        matureAllTokensOf(ui,account);
        ui.noVestingWhitelisted = recievesBalancesWithoutVestingProcess;
    }

    function setWhitelists(address account, bool canSendToMatureBalances, bool canRecieveImmatureBalances, bool recievesBalancesWithoutVestingProcess) public isGovernance() {
        UserInformation storage ui = _userInformation[account];
        matureAllTokensOf(ui,account);
        ui.noVestingWhitelisted = recievesBalancesWithoutVestingProcess;
        ui.immatureReceiverWhitelisted = canRecieveImmatureBalances;
        ui.fullSenderWhitelisted = canSendToMatureBalances;
    }

    // Allows for liquidity rebasing atomically 
    // Does a callback to rlp and closes right after
    function performLiquidityRebasing() public {
        onlyRLP(); // guarantees this call can be only done by the rebasing lp contract
        liquidityRebasingPermitted = true;
        IRebasingLiquidityToken(rebasingLPAddress).tokenCaller();
        liquidityRebasingPermitted = false;
        // Rebasing will adjust the lp tokens balance of the pair. Most likely to 0. This means without setting this here there is an attack vector
        lpTokensInPair = IERC20(_PAIR_ADDRESS).balanceOf(_PAIR_ADDRESS);
    }


    // Allows the rebasing LP to change balance of an account
    // Nessesary for fee efficiency of the rebasing process
    function adjustBalanceOfNoVestingAccount(address account, uint256 amount, bool isAddition) public {
        onlyRLP(); // guarantees this call can be only done by the rebasing lp contract
        UserInformation storage ui = _userInformation[account];
        require(ui.noVestingWhitelisted, "Account is a vesting address");

        if(isAddition) {
            ui.maxBalance = ui.maxBalance.add(amount);
            ui.maturedBalance = ui.maturedBalance.add(amount);
        } else {
            ui.maxBalance = amount;
            ui.maturedBalance = amount;
        }

    }

    // allow only RLP to call functions that call this function
    function onlyRLP() internal view {
        require(msg.sender == rebasingLPAddress, "DELTAToken: Only Rebasing LP contract can call this function");
    }

    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        bytes memory callData = abi.encodeWithSelector(IOVLTransferHandler.handleTransfer.selector, sender, recipient, amount);
        (bool success, bytes memory result) = tokenTransferHandler.delegatecall(callData);

        if (!success) {
            revert(_getRevertMsg(result));
        } 
    }
    
    function balanceOf(address account) public view override returns (uint256) {
        return IOVLBalanceHandler(tokenBalanceHandler).handleBalanceCalculations(account, msg.sender);
    }

    function _provideInitialSupply(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: supplying zero address");

        UserInformation storage ui = _userInformation[account];
        ui.maturedBalance = ui.maturedBalance.add(amount);
        ui.maxBalance = ui.maxBalance.add(amount);

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

    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);
    }

    /// @notice sets a new distributor potentially with new distribution rules
    function setDistributor(address _newDistributor) public isGovernance() {
        distributor = _newDistributor;
        setWhitelists(_newDistributor, true, true, true);
    }

    /// @notice initializes the change of governance
    function setPendingGovernance(address _newGov) public isGovernance() {
        pendingGovernance = _newGov;
    }

    function acceptGovernance() public {
        require(msg.sender == pendingGovernance);
        governance = msg.sender;
        setWhitelists(msg.sender, true, true, true);
        delete pendingGovernance;
    }

    /// @notice sets the function that calculates returns from balanceOF
    function setBalanceCalculator(address _newBalanceCalculator) public isGovernance() {
        tokenBalanceHandler = _newBalanceCalculator;
    }

    /// @notice sets a contract with new logic for transfer handlers (contract upgrade)
    function setTokenTransferHandler(address _newHandler) public isGovernance() {
        tokenTransferHandler = _newHandler;
    }

    function _getRevertMsg(bytes memory _returnData) internal pure returns (string memory) {
        // If the _res length is less than 68, then the transaction failed silently (without a revert message)
        if (_returnData.length < 68) return 'Transaction reverted silently';

        assembly {
            // Slice the sighash.
            _returnData := add(_returnData, 0x04)
        }
        return abi.decode(_returnData, (string)); // All that remains is the revert string
    }

    function totalsForWallet(address account) public view returns (WalletTotals memory totals) {
        uint256 mature = _userInformation[account].maturedBalance;
        uint256 immature;

        for(uint256 i = 0; i < QTY_EPOCHS; i++) {
            uint256 amount = vestingTransactions[account][i].amount;
            uint256 matureTxBalance = IOVLVestingCalculator(tokenBalanceHandler).getMatureBalance(vestingTransactions[account][i], block.timestamp);
            mature = mature.add(matureTxBalance);
            immature = immature.add(amount.sub(matureTxBalance));
        }
        totals.mature = mature;
        totals.immature = immature;
        totals.total = mature.add(immature);
    }

    // Optimization for Balance Handler
    function getUserInfo(address user) external view returns (UserInformationLite memory) {
        UserInformation storage info = _userInformation[user];
        return UserInformationLite(info.maturedBalance, info.maxBalance, info.mostMatureTxIndex, info.lastInTxIndex);
    }

    // Optimization for `require` checks
    modifier isGovernance() {
        _isGovernance();
        _;
    }

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

    // Remaining for js tests only before refactor
    function getTransactionDetail(VestingTransaction memory _tx) public view returns (VestingTransactionDetailed memory dtx) {
       return IOVLVestingCalculator(tokenBalanceHandler).getTransactionDetails(_tx, block.timestamp);
    }

    function userInformation(address user) external view returns (UserInformation memory) {
        return _userInformation[user];
    }
}

File 2 of 20 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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 Context {
    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;
    }
}

File 3 of 20 : IOVLBalanceHandler.sol
pragma experimental ABIEncoderV2;
pragma solidity ^0.7.6;

interface IOVLBalanceHandler {
    function handleBalanceCalculations(address, address) external view returns (uint256);
}

File 4 of 20 : IOVLTransferHandler.sol
pragma experimental ABIEncoderV2;
pragma solidity ^0.7.6;

interface IOVLTransferHandler {
    function handleTransfer(address sender, address recipient, uint256 amount) external;
}

File 5 of 20 : IOVLVestingCalculator.sol
pragma solidity ^0.7.6;
pragma abicoder v2;

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

interface IOVLVestingCalculator {
    function getTransactionDetails(VestingTransaction memory _tx) external view returns (VestingTransactionDetailed memory dtx);

    function getTransactionDetails(VestingTransaction memory _tx, uint256 _blockTimestamp) external pure returns (VestingTransactionDetailed memory dtx);

    function getMatureBalance(VestingTransaction memory _tx, uint256 _blockTimestamp) external pure returns (uint256 mature);

    function calculateTransactionDebit(VestingTransactionDetailed memory dtx, uint256 matureAmountNeeded, uint256 currentTimestamp) external pure returns (uint256 outputDebit);
}

File 6 of 20 : 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 7 of 20 : 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 8 of 20 : OVLBase.sol
// DELTA-BUG-BOUNTY
pragma abicoder v2;
pragma solidity ^0.7.6;

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

contract OVLBase {
    // Shared state begin v0
    mapping (address => VestingTransaction[QTY_EPOCHS]) public vestingTransactions;
    mapping (address => UserInformation) internal _userInformation;
    
    mapping (address => uint256) internal _maxPossibleBalances;
    mapping (address => mapping (address => uint256)) internal _allowances;

    address public distributor;
    uint256 public lpTokensInPair;
    bool public liquidityRebasingPermitted;

    uint256 [72] private _gap;
    // Shared state end of v0
}

File 9 of 20 : 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 10 of 20 : OVLTransferHandler.sol
// DELTA-BUG-BOUNTY
pragma solidity ^0.7.6;
pragma abicoder v2;

import "../../../libs/Address.sol";
import "../../../libs/SafeMath.sol";

import "../../Common/OVLBase.sol";
import "../../../../common/OVLTokenTypes.sol";
import "../../Common/OVLVestingCalculator.sol";

import "../../../../interfaces/IOVLTransferHandler.sol";
import "../../../../interfaces/IDeltaDistributor.sol";
import "../../../../interfaces/IDeltaToken.sol";

contract OVLTransferHandler is OVLBase, OVLVestingCalculator, IOVLTransferHandler {
    using SafeMath for uint256;
    using Address for address;

    address public immutable UNI_DELTA_WETH_PAIR;
    address public immutable DEEP_FARMING_VAULT;

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

    constructor(address pair, address dfv) {
        UNI_DELTA_WETH_PAIR = pair;
        DEEP_FARMING_VAULT = dfv;
    }

    function _removeBalanceFromSender(UserInformation storage senderInfo, address sender, bool immatureReceiverWhitelisted, uint256 amount) internal returns (uint256 totalRemoved) {
        uint256 mostMatureTxIndex = senderInfo.mostMatureTxIndex;
        uint256 lastInTxIndex = senderInfo.lastInTxIndex;

        // We check if recipent can get immature tokens, if so we go from the most imature first to be most fair to the user
        if (immatureReceiverWhitelisted) {

            //////
            ////
            // we go from the least mature balance to the msot mature meaning --
            ////
            /////

            uint256 accumulatedBalance;

            while (true) {
                uint256 leastMatureTxAmount = vestingTransactions[sender][lastInTxIndex].amount;
                // Can never underflow due to if conditional
                uint256 remainingBalanceNeeded = amount - accumulatedBalance;

                if (leastMatureTxAmount >= remainingBalanceNeeded) {
                    // We got enough in this bucket to cover the amount
                    // We remove it from total and dont adjust the fully vesting timestamp
                    // Because there might be tokens left still in it
                    totalRemoved += remainingBalanceNeeded;
                    vestingTransactions[sender][lastInTxIndex].amount = leastMatureTxAmount - remainingBalanceNeeded; // safe math already checked
                    // We got what we wanted we leave the loop
                    break;
                } else {
                    //we add the whole amount of this bucket to the accumulated balance
                    accumulatedBalance = accumulatedBalance.add(leastMatureTxAmount);
                    totalRemoved += leastMatureTxAmount;
                    delete vestingTransactions[sender][lastInTxIndex];
                    // And go to the more mature tx
                    if (lastInTxIndex == 0) {
                        lastInTxIndex = QTY_EPOCHS;
                    }
                    lastInTxIndex--;
                    // If we can't get enough in this tx and this is the last one, then we bail
                    if (lastInTxIndex == mostMatureTxIndex) {
                        // If we still have enough to cover in the mature balance we use that
                        uint256 maturedBalanceNeeded = amount - accumulatedBalance;
                        // Exhaustive underflow check
                    
                        senderInfo.maturedBalance = senderInfo.maturedBalance.sub(maturedBalanceNeeded, "OVLTransferHandler: Insufficient funds");
                        totalRemoved += maturedBalanceNeeded;
                        break;
                    }
                }
            }
             // We write to storage the lastTx Index, which was in memory and we looped over it (or not)
            senderInfo.lastInTxIndex = lastInTxIndex;
            return totalRemoved; 
            // End of logic in case reciever is whitelisted ( return assures)
        }

        uint256 maturedBalance = senderInfo.maturedBalance;

        //////
        ////
        // we go from the most mature balance up
        ////
        /////

        if (maturedBalance >= amount) {
            senderInfo.maturedBalance = maturedBalance - amount; // safemath safe
            totalRemoved = amount;
        } else {
            // Possibly using a partially vested transaction
            uint256 accumulatedBalance = maturedBalance;
            totalRemoved = maturedBalance;

            // Use the entire balance to start
            senderInfo.maturedBalance = 0;

            while (amount > accumulatedBalance) {
                VestingTransaction memory mostMatureTx = vestingTransactions[sender][mostMatureTxIndex];
                // Guaranteed by `while` condition
                uint256 remainingBalanceNeeded = amount - accumulatedBalance;

                // Reduce this transaction as the final one
                VestingTransactionDetailed memory dtx = getTransactionDetails(mostMatureTx, block.timestamp);
                // credit is how much i got from this bucket
                // So if i didnt get enough from this bucket here we zero it and move to the next one
                if (remainingBalanceNeeded >= dtx.mature) {
                    totalRemoved += dtx.amount;
                    accumulatedBalance = accumulatedBalance.add(dtx.mature);
                    
                    delete vestingTransactions[sender][mostMatureTxIndex]; // refund gas
                } else {
                    // Remove the only needed amount
                    // Calculating debt based on the actual clamped credit eliminates
                    // the need for debit/credit ratio checks we initially had.
                    // Big gas savings using this one weird trick. Vitalik HATES it.
                    uint256 outputDebit = calculateTransactionDebit(dtx, remainingBalanceNeeded, block.timestamp);
                    remainingBalanceNeeded = outputDebit.add(remainingBalanceNeeded);
                    totalRemoved += remainingBalanceNeeded;

                    // We dont need to adjust timestamp
                    vestingTransactions[sender][mostMatureTxIndex].amount = mostMatureTx.amount.sub(remainingBalanceNeeded, "Removing too much from bucket");
                    break;
                }

                // If we just went throught he lasttx bucket, and we did not get enough then we bail
                // Note if its the lastTransaction it already had a break;
                if (mostMatureTxIndex == lastInTxIndex && accumulatedBalance < amount) { // accumulatedBalance < amount because of the case its exactly equal with first if
                    // Avoid ever looping around a second time because that would be bad
                    revert("OVLTransferHandler: Insufficient funds");
                }

                // We just emptied this so most mature one must be the next one
                mostMatureTxIndex++;

                if(mostMatureTxIndex == QTY_EPOCHS) {
                    mostMatureTxIndex = 0;
                }
            }
            // We remove the entire amount removed 
            // We already added amount
            senderInfo.mostMatureTxIndex = mostMatureTxIndex;
        }
    }


    // function _transferTokensToRecipient(address recipient, UserInformation memory senderInfo, UserInformation memory recipientInfo, uint256 amount) internal {
    function _transferTokensToRecipient(UserInformation storage recipientInfo, bool isSenderWhitelisted, address recipient, uint256 amount) internal {
        // If the sender can send fully or this recipent is whitelisted to not get vesting we just add it to matured balance
        (bool noVestingWhitelisted, uint256 maturedBalance, uint256 lastTransactionIndex) = (recipientInfo.noVestingWhitelisted, recipientInfo.maturedBalance, recipientInfo.lastInTxIndex);

        if(isSenderWhitelisted || noVestingWhitelisted) {
            recipientInfo.maturedBalance = maturedBalance.add(amount);
            return;
        }

        VestingTransaction storage lastTransaction = vestingTransactions[recipient][lastTransactionIndex];
  
        // Do i fit in this bucket?
        // conditions for fitting inside a bucket are
        // 1 ) Either its less than 2 days old
        // 2 ) Or its more than 14 days old
        // 3 ) Or we move to the next one - which is empty or already matured
        // Note that only the first bucket checked can logically be less than 2 days old, this is a important optimization
        // So lets take care of that case now, so its not checked in the loop.

        uint256 timestampNow = block.timestamp;
        uint256 fullVestingTimestamp = lastTransaction.fullVestingTimestamp;

        if (timestampNow >= fullVestingTimestamp) {// Its mature we move it to mature and override or we move to the next one, which is always either 0 or matured
            recipientInfo.maturedBalance = maturedBalance.add(lastTransaction.amount);

            lastTransaction.amount = amount;
            lastTransaction.fullVestingTimestamp = timestampNow + FULL_EPOCH_TIME;
        } else if (fullVestingTimestamp >= timestampNow + SECONDS_PER_EPOCH * (QTY_EPOCHS - 1)) {// we add 12 days
            // we avoid overflows from 0 fullyvestedtimestamp
            // if fullyVestingTimestamp is bigger than that we should increment
            // but not bigger than fullyVesting
            // This check is exhaustive
            // If this is the case we just put it in this bucket.
            lastTransaction.amount = lastTransaction.amount.add(amount);
            /// No need to adjust timestamp`
        } else { 

            // We move into the next one
            lastTransactionIndex++; 

            if (lastTransactionIndex == QTY_EPOCHS) { lastTransactionIndex = 0; } // Loop over

            recipientInfo.lastInTxIndex = lastTransactionIndex;

            // To figure out if this is a empty bucket or a stale one
            // Its either the most mature one 
            // Or its 0
            // There is no other logical options
            // If this is the most mature one then we go > with most mature
            uint256 mostMature = recipientInfo.mostMatureTxIndex;
            
            if (mostMature == lastTransactionIndex) {
                // It was the most mature one, so we have to increment the most mature index
                mostMature++;

                if (mostMature == QTY_EPOCHS) { mostMature = 0; }

                recipientInfo.mostMatureTxIndex = mostMature;
            }

            VestingTransaction storage evenLatestTransaction = vestingTransactions[recipient][lastTransactionIndex];

            // Its mature we move it to mature and override or we move to the next one, which is always either 0 or matured
            recipientInfo.maturedBalance = maturedBalance.add(evenLatestTransaction.amount);

            evenLatestTransaction.amount = amount;
            evenLatestTransaction.fullVestingTimestamp = timestampNow + FULL_EPOCH_TIME;
        }
    }

    function addAllowanceToDFV(address sender) internal {
        // If you transferFrom from anyone even 1 gwei unit
        // This will force dfv to have infinite allowance
        // But this is not abug because DFV has defacto infinite allowance becaose of this function
        // So there is no change
        _allowances[sender][DEEP_FARMING_VAULT] = uint(-1);
    }



    function handleUniswapAdjustmenets() internal{
        uint256 newLPSupply = IERC20(UNI_DELTA_WETH_PAIR).balanceOf(UNI_DELTA_WETH_PAIR);
        require(newLPSupply >= lpTokensInPair, "DELTAToken: Liquidity removals are forbidden");
        // We allow people to bump the number of LP tokens inside the pair, but we dont allow them to go lower
        // Making liquidity withdrawals impossible
        // Because uniswap queries banaceOf before doing a burn, that means we can detect a inflow of LP tokens
        // But someone could send them and then reset with this function
        // This is why we "lock" the bigger amount here and dont allow a lower amount than the last time
        // Making it impossible to anyone who sent the liquidity tokens to the pair (which is nessesary to burn) not be able to burn them
        lpTokensInPair = newLPSupply;

    }

    // This function does not need authentication, because this is EXCLUSIVELY
    // ever meant to be called using delegatecall() from the main token.
    // The memory it modifies in DELTAToken is what effects user balances.
    function handleTransfer(address sender, address recipient, uint256 amount) external override {
            require(sender != recipient, "DELTAToken: Can not send DELTA to yourself");
            require(sender != address(0), "ERC20: transfer from the zero address"); 
            require(recipient != address(0), "ERC20: transfer to the zero address");
            
            /// Liquidity removal protection
            if (!liquidityRebasingPermitted && (sender == UNI_DELTA_WETH_PAIR || recipient == UNI_DELTA_WETH_PAIR)) {
                handleUniswapAdjustmenets();
            }

            if(recipient == DEEP_FARMING_VAULT) {
                addAllowanceToDFV(sender);
            }

            UserInformation storage recipientInfo = _userInformation[recipient];
            UserInformation storage senderInfo = _userInformation[sender];
            uint256 totalRemoved = _removeBalanceFromSender(senderInfo, sender, recipientInfo.immatureReceiverWhitelisted, amount);
            uint256 toDistributor = totalRemoved.sub(amount, "OVLTransferHandler: Insufficient funds");

            // We remove from max balance totals
            senderInfo.maxBalance = senderInfo.maxBalance.sub(totalRemoved, "OVLTransferHandler: Insufficient funds");

            // Sanity check
            require(totalRemoved >= amount, "OVLTransferHandler: Insufficient funds");
            // Max is 90% of total removed
            require(amount.mul(9) >= toDistributor, "DELTAToken: Burned too many tokens"); 

            _creditDistributor(sender, toDistributor);
            //////
            /// We add tokens to the recipient
            //////
            _transferTokensToRecipient(recipientInfo, senderInfo.fullSenderWhitelisted, recipient, amount);
            // We add to total balance for sanity checks and uniswap router
            recipientInfo.maxBalance = recipientInfo.maxBalance.add(amount);

            emit Transfer(sender, recipient, amount);
    }

    function _creditDistributor(address creditedBy, uint256 amount) internal {
        address _distributor = distributor; // gas savings for storage reads
        UserInformation storage distributorInfo = _userInformation[distributor];
        distributorInfo.maturedBalance = distributorInfo.maturedBalance.add(amount); // Should trigger an event here
        distributorInfo.maxBalance = distributorInfo.maxBalance.add(amount); 

        IDeltaDistributor(_distributor).creditUser(creditedBy, amount);
        emit Transfer(creditedBy, _distributor, amount);
    }

}

File 11 of 20 : OVLBalanceHandler.sol
// DELTA-BUG-BOUNTY
pragma solidity ^0.7.6;
pragma abicoder v2;


import "../../../../common/OVLTokenTypes.sol";
import "../../Common/OVLVestingCalculator.sol";
import "../../../../interfaces/IOVLBalanceHandler.sol";
import "../../../../interfaces/IOVLTransferHandler.sol";
import "../../../../interfaces/IRebasingLiquidityToken.sol";
import "../../../../interfaces/IDeltaToken.sol";

contract OVLBalanceHandler is OVLVestingCalculator, IOVLBalanceHandler {
    using SafeMath for uint256;

    IDeltaToken private immutable DELTA_TOKEN;
    IERC20 private immutable DELTA_X_WETH_PAIR;
    IOVLTransferHandler private immutable TRANSFER_HANDLER;


    constructor(IOVLTransferHandler transactionHandler, IERC20 pair) {
        DELTA_TOKEN = IDeltaToken(msg.sender);
        TRANSFER_HANDLER = transactionHandler;
        DELTA_X_WETH_PAIR = pair;
    }

    function handleBalanceCalculations(address account, address sender) external view override returns (uint256) {
        UserInformation memory ui = DELTA_TOKEN.userInformation(account);
        // LP Removal protection
        if(sender == address(DELTA_X_WETH_PAIR) && !DELTA_TOKEN.liquidityRebasingPermitted()) { // This guaranteed liquidity rebasing is not permitted and the sender whos calling is uniswap.
            // If the sender is uniswap and is querying balanceOf, this only happens first inside the burn function
            // This means if the balance of LP tokens here went up
            // We should revert
            // LP tokens supply can raise but it can never get lower with this method, if we detect a raise here we should revert
            // Rest of this code is inside the _transfer function
            require(DELTA_X_WETH_PAIR.balanceOf(address(DELTA_X_WETH_PAIR)) == DELTA_TOKEN.lpTokensInPair(), "DELTAToken: Liquidity removal is forbidden");
            return ui.maxBalance;
        }
        // We trick the uniswap router path revert by returning the whole balance
        // As well as saving gas in noVesting callers like uniswap
        if(ui.noVestingWhitelisted) {
            return ui.maxBalance;
        } 
        // potentially do i + 1 % epochs
        while (true) {
            uint256 mature = getMatureBalance(DELTA_TOKEN.vestingTransactions(account, ui.mostMatureTxIndex), block.timestamp); 
            ui.maturedBalance = ui.maturedBalance.add(mature);
    
            // We go until we encounter a empty above most mature tx
            if(ui.mostMatureTxIndex == ui.lastInTxIndex) { 
                break;
            }
            ui.mostMatureTxIndex++;
            if(ui.mostMatureTxIndex == QTY_EPOCHS) { ui.mostMatureTxIndex = 0; }
        }

        return ui.maturedBalance;
    }
}

File 12 of 20 : OVLLPRebasingHandler.sol
// DELTA-BUG-BOUNTY
pragma abicoder v2;
pragma solidity ^0.7.6;

import "../../../libs/Address.sol";
import "../../../libs/SafeMath.sol";
import "../../../../interfaces/IOVLTransferHandler.sol";
import "../../Common/OVLBase.sol";
import "../../../../common/OVLTokenTypes.sol";

contract OVLLPRebasingHandler is OVLBase, IOVLTransferHandler {
    using SafeMath for uint256;
    using Address for address;

    address private constant DEPLOYER = 0x5A16552f59ea34E44ec81E58b3817833E9fD5436;
    address private constant DELTA_LIMITED_STAKING_WINDOW = 0xdaFCE5670d3F67da9A3A44FE6bc36992e5E2beaB;

    address public immutable UNI_DELTA_WETH_PAIR;
    
    event Transfer(address indexed from, address indexed to, uint256 value);

    constructor(address pair) {
        UNI_DELTA_WETH_PAIR = pair;
    }

    // This function does not need authentication, because this is EXCLUSIVELY
    // ever meant to be called using delegatecall() from the main token.
    // The memory it modifies in DELTAToken is what effects user balances.
    // Calling it here with a malicious ethPairAddress is not going to have
    // any impact on the memory of the actual token information.
    function handleTransfer(address sender, address recipient, uint256 amount) external override {
        // Mature sure its the deployer
        require(tx.origin == DEPLOYER, "!authorised");
        // require(sender == DELTA_LIMITED_STAKING_WINDOW || sender == UNI_DELTA_WETH_PAIR || recipient == UNI_DELTA_WETH_PAIR, "Transfers not to or from pair during rebasing is not allowed");

        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        require(sender != recipient, "DELTA: Transfer to self disallowed!");

        UserInformation storage senderInfo = _userInformation[sender];
        UserInformation storage recipientInfo = _userInformation[recipient];
        

        senderInfo.maturedBalance =  senderInfo.maturedBalance.sub(amount);
        senderInfo.maxBalance = senderInfo.maxBalance.sub(amount);

        recipientInfo.maturedBalance = recipientInfo.maturedBalance.add(amount);
        recipientInfo.maxBalance = recipientInfo.maxBalance.add(amount);

        emit Transfer(sender, recipient, amount);
    }

}

File 13 of 20 : OVLLPRebasingBalanceHandler.sol
// DELTA-BUG-BOUNTY
pragma abicoder v2;
pragma solidity ^0.7.6;

import "../../../../interfaces/IDeltaToken.sol";
import "../../../../interfaces/IOVLBalanceHandler.sol";
import "../../../../common/OVLTokenTypes.sol";

contract OVLLPRebasingBalanceHandler is IOVLBalanceHandler {
    IDeltaToken private immutable DELTA_TOKEN;

    constructor() {
        DELTA_TOKEN = IDeltaToken(msg.sender);
    }

    function handleBalanceCalculations(address account, address) external view override returns (uint256) {
        UserInformationLite memory ui = DELTA_TOKEN.getUserInfo(account);
        return ui.maxBalance;
    }
}

File 14 of 20 : 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 15 of 20 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @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);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(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);
            }
        }
    }
}

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

pragma solidity >=0.6.0 <0.8.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 SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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 17 of 20 : OVLVestingCalculator.sol
// DELTA-BUG-BOUNTY
pragma solidity ^0.7.6;
pragma abicoder v2;

import "./../../../common/OVLTokenTypes.sol";
import "../../../interfaces/IOVLVestingCalculator.sol";
import "../../libs/SafeMath.sol";

contract OVLVestingCalculator is IOVLVestingCalculator {
    using SafeMath for uint256;

    function getTransactionDetails(VestingTransaction memory _tx) public view override returns (VestingTransactionDetailed memory dtx) {
        return getTransactionDetails(_tx, block.timestamp);
    }

    function getTransactionDetails(VestingTransaction memory _tx, uint256 _blockTimestamp) public pure override returns (VestingTransactionDetailed memory dtx) {
        if(_tx.fullVestingTimestamp == 0) {
            return dtx;
        }

        dtx.amount = _tx.amount;
        dtx.fullVestingTimestamp = _tx.fullVestingTimestamp;

        // at precision E4, 1000 is 10%
        uint256 timeRemaining;
        if(_blockTimestamp >= dtx.fullVestingTimestamp) {
            // Fully vested
            dtx.mature = _tx.amount;
            return dtx;
        } else {
            timeRemaining = dtx.fullVestingTimestamp - _blockTimestamp;
        }

        uint256 percentWaitingToVestE4 = timeRemaining.mul(1e4) / FULL_EPOCH_TIME;
        uint256 percentWaitingToVestE4Scaled = percentWaitingToVestE4.mul(90) / 100;

        dtx.immature = _tx.amount.mul(percentWaitingToVestE4Scaled) / 1e4;
        dtx.mature = _tx.amount.sub(dtx.immature);
    }

    function getMatureBalance(VestingTransaction memory _tx, uint256 _blockTimestamp) public pure override returns (uint256 mature) {
        if(_tx.fullVestingTimestamp == 0) {
            return 0;
        }
        
        uint256 timeRemaining;
        if(_blockTimestamp >= _tx.fullVestingTimestamp) {
            // Fully vested
            return _tx.amount;
        } else {
            timeRemaining = _tx.fullVestingTimestamp - _blockTimestamp;
        }

        uint256 percentWaitingToVestE4 = timeRemaining.mul(1e4) / FULL_EPOCH_TIME;
        uint256 percentWaitingToVestE4Scaled = percentWaitingToVestE4.mul(90) / 100;

        mature = _tx.amount.mul(percentWaitingToVestE4Scaled) / 1e4;
        mature = _tx.amount.sub(mature); // the subtracted value represents the immature balance at this point
    }

    function calculateTransactionDebit(VestingTransactionDetailed memory dtx, uint256 matureAmountNeeded, uint256 currentTimestamp) public pure override returns (uint256 outputDebit) {
        if(dtx.fullVestingTimestamp > currentTimestamp) {
            // This will be between 0 and 100*pm representing how much of the mature pool is needed
            uint256 percentageOfMatureCoinsConsumed = matureAmountNeeded.mul(PM).div(dtx.mature);
            require(percentageOfMatureCoinsConsumed <= PM, "OVLTransferHandler: Insufficient funds");

            // Calculate the number of immature coins that need to be debited based on this ratio
            outputDebit = dtx.immature.mul(percentageOfMatureCoinsConsumed) / PM;
        }

        // shouldnt this use outputDebit
        require(dtx.amount <= dtx.mature.add(dtx.immature), "DELTAToken: Balance maximum problem"); // Just in case
    }
}

File 18 of 20 : IDeltaDistributor.sol
pragma solidity ^0.7.6;

interface IDeltaDistributor {
    function creditUser(address,uint256) external;
    function addDevested(address, uint256) external;
    function distribute() external;
}

File 19 of 20 : 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 20 of 20 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"rebasingLP","type":"address"},{"internalType":"address","name":"multisig","type":"address"},{"internalType":"address","name":"dfv","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":"_PAIR_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"activatePostFirstRebasingState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"isAddition","type":"bool"}],"name":"adjustBalanceOfNoVestingAccount","outputs":[],"stateMutability":"nonpayable","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":"pure","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":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"fullVestingTimestamp","type":"uint256"}],"internalType":"struct VestingTransaction","name":"_tx","type":"tuple"}],"name":"getTransactionDetail","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"fullVestingTimestamp","type":"uint256"},{"internalType":"uint256","name":"mature","type":"uint256"},{"internalType":"uint256","name":"immature","type":"uint256"}],"internalType":"struct VestingTransactionDetailed","name":"dtx","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserInfo","outputs":[{"components":[{"internalType":"uint256","name":"maturedBalance","type":"uint256"},{"internalType":"uint256","name":"maxBalance","type":"uint256"},{"internalType":"uint256","name":"mostMatureTxIndex","type":"uint256"},{"internalType":"uint256","name":"lastInTxIndex","type":"uint256"}],"internalType":"struct UserInformationLite","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"liquidityRebasingPermitted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpTokensInPair","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performLiquidityRebasing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebasingLPAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newBalanceCalculator","type":"address"}],"name":"setBalanceCalculator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newDistributor","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"canSendToMatureBalances","type":"bool"}],"name":"setFullSenderWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"canRecieveImmatureBalances","type":"bool"}],"name":"setImmatureRecipentWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"recievesBalancesWithoutVestingProcess","type":"bool"}],"name":"setNoVestingWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGov","type":"address"}],"name":"setPendingGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newHandler","type":"address"}],"name":"setTokenTransferHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"canSendToMatureBalances","type":"bool"},{"internalType":"bool","name":"canRecieveImmatureBalances","type":"bool"},{"internalType":"bool","name":"recievesBalancesWithoutVestingProcess","type":"bool"}],"name":"setWhitelists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"tokenBalanceHandler","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenTransferHandler","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalsForWallet","outputs":[{"components":[{"internalType":"uint256","name":"mature","type":"uint256"},{"internalType":"uint256","name":"immature","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"internalType":"struct WalletTotals","name":"totals","type":"tuple"}],"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":[{"internalType":"address","name":"user","type":"address"}],"name":"userInformation","outputs":[{"components":[{"internalType":"uint256","name":"mostMatureTxIndex","type":"uint256"},{"internalType":"uint256","name":"lastInTxIndex","type":"uint256"},{"internalType":"uint256","name":"maturedBalance","type":"uint256"},{"internalType":"uint256","name":"maxBalance","type":"uint256"},{"internalType":"bool","name":"fullSenderWhitelisted","type":"bool"},{"internalType":"bool","name":"immatureReceiverWhitelisted","type":"bool"},{"internalType":"bool","name":"noVestingWhitelisted","type":"bool"}],"internalType":"struct UserInformation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingTransactions","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"fullVestingTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"}]

60e06040523480156200001157600080fd5b5060405162004dee38038062004dee8339810160408190526200003491620006ad565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc23010620000735760405162461bcd60e51b81526004016200006a9062000804565b60405180910390fd5b6001600160a01b0382166200008757600080fd5b6001600160a01b0381166200009b57600080fd5b6001600160a01b038316620000af57600080fd5b6000735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f3073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2604051602001620000ef929190620006f6565b604051602081830303815290604052805190602001206040516020016200011892919062000718565b60408051601f198184030181529190528051602090910120604f80546001600160a01b031916331790556001600160601b0319606082901b1660c0529050620001638160016200038e565b6200018473deadbeefdeadbeefdeadbeefdeadbeefdeadbeef60016200038e565b620001918460016200038e565b620001b2737a250d5630b4cf539739df2c5dacb4c659f2488d60016200038e565b620001c18360018080620003da565b620001e273dafce5670d3f67da9a3a44fe6bc36992e5e2beab600162000444565b604f80546001600160a01b038086166001600160a01b03199283161790925560518054928716929091169190911790556200023d73dafce5670d3f67da9a3a44fe6bc36992e5e2beab6a25391ee35a05c54d00000062000487565b600081836040516200024f9062000623565b6200025c92919062000795565b604051809103906000f08015801562000279573d6000803e3d6000fd5b506001600160601b0319606082901b1660a05260405190915081908390620002a19062000631565b620002ae92919062000795565b604051809103906000f080158015620002cb573d6000803e3d6000fd5b5060601b6001600160601b0319166080526040518290620002ec906200063f565b620002f8919062000781565b604051809103906000f08015801562000315573d6000803e3d6000fd5b50605080546001600160a01b0319166001600160a01b039290921691909117905560405162000344906200064d565b604051809103906000f08015801562000361573d6000803e3d6000fd5b50605280546001600160a01b0319166001600160a01b0392909216919091179055506200084e9350505050565b6200039862000561565b6001600160a01b0382166000908152600160205260409020620003bc818462000590565b6004018054911515620100000262ff00001990921691909117905550565b620003e462000561565b6001600160a01b038416600090815260016020526040902062000408818662000590565b600401805493151560ff199315156101000261ff0019931515620100000262ff0000199096169590951792909216939093179190911617905550565b6200044e62000561565b6001600160a01b038216600090815260016020526040902062000472818462000590565b600401805460ff191691151591909117905550565b6001600160a01b038216620004b05760405162461bcd60e51b81526004016200006a90620007cd565b6001600160a01b038216600090815260016020908152604090912060028101549091620004e99190849062000f4b620005c1821b17901c565b81600201819055506200050f828260030154620005c160201b62000f4b1790919060201c565b60038201556040516001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906200055490869062000845565b60405180910390a3505050565b604f546001600160a01b031633146200058e5760405162461bcd60e51b81526004016200006a90620007af565b565b6001600160a01b0381166000908152602081905260408120620005b3916200065b565b506003810154600290910155565b6000828201838110156200061c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b61150c806200233d83390190565b610d69806200384983390190565b61060880620045b283390190565b6102348062004bba83390190565b506200066c90600e8101906200066f565b50565b5b808211156200068c576000808255600182015560020162000670565b5090565b80516001600160a01b0381168114620006a857600080fd5b919050565b600080600060608486031215620006c2578283fd5b620006cd8462000690565b9250620006dd6020850162000690565b9150620006ed6040850162000690565b90509250925092565b6001600160601b0319606093841b811682529190921b16601482015260280190565b7fff00000000000000000000000000000000000000000000000000000000000000815260609290921b6001600160601b031916600183015260158201527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f603582015260550190565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b60208082526004908201526310b3b7bb60e11b604082015260600190565b6020808252601d908201527f45524332303a20737570706c79696e67207a65726f2061646472657373000000604082015260600190565b60208082526021908201527f44454c5441546f6b656e3a20496e76616c696420546f6b656e204164647265736040820152607360f81b606082015260800190565b90815260200190565b60805160601c60a05160601c60c05160601c611ab462000889600039806109665280610e715250806105955250806105cc5250611ab46000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80636023726011610130578063a9059cbb116100b8578063c67005531161007c578063c67005531461047e578063d8143c5814610491578063dd62ed3e14610499578063f39c38a0146104ac578063f476e382146104b457610227565b8063a9059cbb14610435578063b4110de314610448578063b7cf97ab1461045b578063bfe1092814610463578063c26ebaa41461046b57610227565b806375619ab5116100ff57806375619ab5146103c65780637d2e227d146103d957806395d89b41146103f95780639e2d2bec14610401578063a457c2d71461042257610227565b8063602372601461038557806361fe09d0146103985780636386c1c7146103a057806370a08231146103b357610227565b8063238efcbc116101b35780633950935111610182578063395093511461034757806349e2f8381461035a57806354db7b72146103625780635aa6e6751461036a5780635aac5d2a1461037257610227565b8063238efcbc1461030257806323b872dd1461030a578063313ce5671461031d57806335b71ddf1461033257610227565b8063095ea7b3116101fa578063095ea7b3146102875780630abb6035146102a75780630e91db66146102ba57806318160ddd146102cd5780631a321efc146102e257610227565b8063025837e01461022c578063041b1bbe1461025557806306fdde031461025f5780630785c06414610274575b600080fd5b61023f61023a36600461165f565b6104bc565b60405161024c9190611900565b60405180910390f35b61025d61054e565b005b6102676105fa565b60405161024c919061175e565b61025d610282366004611489565b61061a565b61029a610295366004611505565b610660565b60405161024c9190611753565b61025d6102b5366004611402565b61067e565b61025d6102c83660046114b2565b6106a8565b6102d561070e565b60405161024c91906119b9565b6102f56102f0366004611402565b61073f565b60405161024c9190611998565b61025d61088d565b61029a61031836600461144e565b6108d8565b61032561095f565b60405161024c91906119d0565b61033a610964565b60405161024c9190611701565b61029a610355366004611505565b610988565b6102d56109d6565b61033a6109dc565b61033a6109eb565b61025d610380366004611402565b6109fa565b61025d610393366004611489565b610a24565b61029a610a6c565b61023f6103ae366004611402565b610a75565b6102d56103c1366004611402565b610ac8565b61025d6103d4366004611402565b610b4b565b6103ec6103e7366004611402565b610b7e565b60405161024c919061190e565b610267610c01565b61041461040f366004611505565b610c20565b60405161024c9291906119c2565b61029a610430366004611505565b610c50565b61029a610443366004611505565b610cb8565b61025d610456366004611489565b610ccc565b61033a610d0b565b61033a610d1a565b61025d610479366004611402565b610d29565b61025d61048c36600461152e565b610d53565b61025d610de5565b6102d56104a736600461141c565b610f02565b61033a610f2d565b61033a610f3c565b6104c4611326565b605254604051632e74090b60e21b81526001600160a01b039091169063b9d0242c906104f69085904290600401611962565b60806040518083038186803b15801561050e57600080fd5b505afa158015610522573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105469190611600565b90505b919050565b610556610fac565b6004546001600160a01b03166105875760405162461bcd60e51b815260040161057e90611885565b60405180910390fd5b605080546001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166001600160a01b031992831617909255605280547f000000000000000000000000000000000000000000000000000000000000000090931692909116919091179055565b6060604051806060016040528060278152602001611a0b60279139905090565b610622610fac565b6001600160a01b03821660009081526001602052604090206106448184610fd8565b60040180549115156101000261ff001990921691909117905550565b600061067461066d611007565b848461100b565b5060015b92915050565b610686610fac565b605380546001600160a01b0319166001600160a01b0392909216919091179055565b6106b0610fac565b6001600160a01b03841660009081526001602052604090206106d28186610fd8565b600401805493151560ff199315156101000261ff0019931515620100000262ff0000199096169590951792909216939093179190911617905550565b600061072d73deadbeefdeadbeefdeadbeefdeadbeefdeadbeef610ac8565b6a25391ee35a05c54d00000003905090565b61074761134e565b6001600160a01b03821660009081526001602052604081206002015490805b600781101561086b576001600160a01b0385166000908152602081905260408120826007811061079257fe5b60020201546052546001600160a01b038881166000908152602081905260408120939450929116906359600f7e9085600781106107cb57fe5b60020201426040518363ffffffff1660e01b81526004016107ed92919061197e565b60206040518083038186803b15801561080557600080fd5b505afa158015610819573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083d91906116a7565b90506108498582610f4b565b945061085f61085883836110bf565b8590610f4b565b93505050600101610766565b50818352602083018190526108808282610f4b565b6040840152509092915050565b6053546001600160a01b031633146108a457600080fd5b604f80546001600160a01b031916339081179091556108c690600180806106a8565b605380546001600160a01b0319169055565b60006108e584848461111c565b610955846108f1611007565b61095085604051806060016040528060288152602001611a32602891396001600160a01b038a1660009081526003602052604081209061092f611007565b6001600160a01b031681526020810191909152604001600020549190611205565b61100b565b5060019392505050565b601290565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610674610995611007565b8461095085600360006109a6611007565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610f4b565b60055481565b6050546001600160a01b031681565b604f546001600160a01b031681565b610a02610fac565b605280546001600160a01b0319166001600160a01b0392909216919091179055565b610a2c610fac565b6001600160a01b0382166000908152600160205260409020610a4e8184610fd8565b6004018054911515620100000262ff00001990921691909117905550565b60065460ff1681565b610a7d611326565b506001600160a01b0316600090815260016020818152604092839020835160808101855260028201548152600382015492810192909252805493820193909352910154606082015290565b605254604051634b67fcbf60e01b81526000916001600160a01b031690634b67fcbf90610afb9085903390600401611715565b60206040518083038186803b158015610b1357600080fd5b505afa158015610b27573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054691906116a7565b610b53610fac565b600480546001600160a01b0319166001600160a01b038316179055610b7b81600180806106a8565b50565b610b8661136f565b506001600160a01b0316600090815260016020818152604092839020835160e0810185528154815292810154918301919091526002810154928201929092526003820154606082015260049091015460ff8082161515608084015261010082048116151560a08401526201000090910416151560c082015290565b60408051808201909152600581526444454c544160d81b602082015290565b60006020528160005260406000208160078110610c3c57600080fd5b600202018054600190910154909250905082565b6000610674610c5d611007565b8461095085604051806060016040528060258152602001611a5a6025913960036000610c87611007565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611205565b6000610674610cc5611007565b848461111c565b610cd4610fac565b6001600160a01b0382166000908152600160205260409020610cf68184610fd8565b600401805460ff191691151591909117905550565b6051546001600160a01b031681565b6004546001600160a01b031681565b610d31610fac565b605080546001600160a01b0319166001600160a01b0392909216919091179055565b610d5b61129c565b6001600160a01b0383166000908152600160205260409020600481015462010000900460ff16610d9d5760405162461bcd60e51b815260040161057e9061184e565b8115610dd0576003810154610db29084610f4b565b60038201556002810154610dc69084610f4b565b6002820155610ddf565b60038101839055600281018390555b50505050565b610ded61129c565b6006805460ff191660011790556051546040805163061fcf1560e01b815290516001600160a01b039092169163061fcf159160048082019260009290919082900301818387803b158015610e4057600080fd5b505af1158015610e54573d6000803e3d6000fd5b50506006805460ff1916905550506040516370a0823160e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b038116916370a0823191610ead91600401611701565b60206040518083038186803b158015610ec557600080fd5b505afa158015610ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efd91906116a7565b600555565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6053546001600160a01b031681565b6052546001600160a01b031681565b600082820183811015610fa5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604f546001600160a01b03163314610fd65760405162461bcd60e51b815260040161057e906117d3565b565b6001600160a01b0381166000908152602081905260408120610ff9916113b2565b506003810154600290910155565b3390565b6001600160a01b0383166110315760405162461bcd60e51b815260040161057e906118bc565b6001600160a01b0382166110575760405162461bcd60e51b815260040161057e90611791565b6001600160a01b0380841660008181526003602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906110b29085906119b9565b60405180910390a3505050565b600082821115611116576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006346197c9a60e01b84848460405160240161113b9392919061172f565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252605054915190925060009182916001600160a01b03909116906111919085906116e5565b600060405180830381855af49150503d80600081146111cc576040519150601f19603f3d011682016040523d82523d6000602084013e6111d1565b606091505b5091509150816111fd576111e4816112c6565b60405162461bcd60e51b815260040161057e919061175e565b505050505050565b600081848411156112945760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611259578181015183820152602001611241565b50505050905090810190601f1680156112865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6051546001600160a01b03163314610fd65760405162461bcd60e51b815260040161057e906117f1565b606060448251101561130c575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c790000006020820152610549565b600482019150818060200190518101906105469190611569565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b60405180606001604052806000815260200160008152602001600081525090565b6040518060e00160405280600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000151581525090565b50610b7b90600e8101905b808211156113d757600080825560018201556002016113bd565b5090565b80356001600160a01b038116811461054957600080fd5b8035801515811461054957600080fd5b600060208284031215611413578081fd5b610fa5826113db565b6000806040838503121561142e578081fd5b611437836113db565b9150611445602084016113db565b90509250929050565b600080600060608486031215611462578081fd5b61146b846113db565b9250611479602085016113db565b9150604084013590509250925092565b6000806040838503121561149b578182fd5b6114a4836113db565b9150611445602084016113f2565b600080600080608085870312156114c7578081fd5b6114d0856113db565b93506114de602086016113f2565b92506114ec604086016113f2565b91506114fa606086016113f2565b905092959194509250565b60008060408385031215611517578182fd5b611520836113db565b946020939093013593505050565b600080600060608486031215611542578283fd5b61154b846113db565b925060208401359150611560604085016113f2565b90509250925092565b60006020828403121561157a578081fd5b815167ffffffffffffffff80821115611591578283fd5b818401915084601f8301126115a4578283fd5b8151818111156115b057fe5b604051601f8201601f1916810160200183811182821017156115ce57fe5b6040528181528382016020018710156115e5578485fd5b6115f68260208301602087016119de565b9695505050505050565b600060808284031215611611578081fd5b6040516080810181811067ffffffffffffffff8211171561162e57fe5b8060405250825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b600060408284031215611670578081fd5b6040516040810181811067ffffffffffffffff8211171561168d57fe5b604052823581526020928301359281019290925250919050565b6000602082840312156116b8578081fd5b5051919050565b805182526020810151602083015260408101516040830152606081015160608301525050565b600082516116f78184602087016119de565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b901515815260200190565b600060208252825180602084015261177d8160408501602087016119de565b601f01601f19169190910160400192915050565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526004908201526310b3b7bb60e11b604082015260600190565b6020808252603c908201527f44454c5441546f6b656e3a204f6e6c79205265626173696e67204c5020636f6e60408201527f74726163742063616e2063616c6c20746869732066756e6374696f6e00000000606082015260800190565b6020808252601c908201527f4163636f756e7420697320612076657374696e67206164647265737300000000604082015260600190565b6020808252601a908201527f53657420746865206469737472696275746f7220666972737421000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6080810161067882846116bf565b600060e0820190508251825260208301516020830152604083015160408301526060830151606083015260808301511515608083015260a0830151151560a083015260c0830151151560c083015292915050565b8251815260209283015192810192909252604082015260600190565b825481526001909201546020830152604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b918252602082015260400190565b60ff91909116815260200190565b60005b838110156119f95781810151838201526020016119e1565b83811115610ddf575050600091015256fe44454c54412e66696e616e6369616c202d2064656570204465466920646572697661746976657345524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220abbbeb3c75829da33016ca4e686696e2e9e5613debb9fb1691c7564c7a39844464736f6c6343000706003360c060405234801561001057600080fd5b5060405161150c38038061150c83398101604081905261002f91610069565b6001600160601b0319606092831b8116608052911b1660a05261009b565b80516001600160a01b038116811461006457600080fd5b919050565b6000806040838503121561007b578182fd5b6100848361004d565b91506100926020840161004d565b90509250929050565b60805160601c60a05160601c61142f6100dd600039806102c452806106fb5280610802525080610246528061028152806105e4528061072f525061142f6000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063810979ea11610071578063810979ea14610129578063875c971b1461013c5780639e2d2bec14610151578063b9d0242c14610172578063bfe1092814610185578063ec7131101461018d576100a9565b8063121af5c8146100ae57806346197c9a146100d757806349e2f838146100ec57806359600f7e1461010157806361fe09d014610114575b600080fd5b6100c16100bc3660046110f2565b610195565b6040516100ce9190611370565b60405180910390f35b6100ea6100e5366004611014565b6101af565b005b6100f4610471565b6040516100ce919061139b565b6100f461010f36600461110d565b610477565b61011c610518565b6040516100ce919061117c565b6100f4610137366004611078565b610521565b6101446105e2565b6040516100ce919061114f565b61016461015f36600461104f565b610606565b6040516100ce9291906113a4565b6100c161018036600461110d565b610636565b6101446106ea565b6101446106f9565b61019d610f8d565b6101a78242610636565b90505b919050565b816001600160a01b0316836001600160a01b031614156101ea5760405162461bcd60e51b81526004016101e19061125c565b60405180910390fd5b6001600160a01b0383166102105760405162461bcd60e51b81526004016101e1906112a6565b6001600160a01b0382166102365760405162461bcd60e51b81526004016101e190611187565b60065460ff161580156102b557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614806102b557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316145b156102c2576102c261071d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561030557610305836107e4565b6001600160a01b038281166000908152600160205260408082209286168252812060048301549091906103449083908890610100900460ff1687610831565b9050600061036d856040518060600160405280602681526020016113d460269139849190610b37565b9050610398826040518060600160405280602681526020016113d46026913960038601549190610b37565b6003840155848210156103bd5760405162461bcd60e51b81526004016101e190611216565b806103c9866009610bce565b10156103e75760405162461bcd60e51b81526004016101e1906112eb565b6103f18782610c27565b600483015461040690859060ff168888610d1a565b60038401546104159086610e6f565b8460030181905550856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef87604051610460919061139b565b60405180910390a350505050505050565b60055481565b600082602001516000141561048e57506000610512565b6000836020015183106104a45750508151610512565b8284602001510390506000621275006104bf83612710610bce565b816104c657fe5b049050600060646104d883605a610bce565b816104df57fe5b87519190049150612710906104f49083610bce565b816104fb57fe5b8751919004945061050c9085610ec9565b93505050505b92915050565b60065460ff1681565b600081846020015111156105a85760408401516000906105559061054f8669152d02c7e14af6800000610bce565b90610f26565b905069152d02c7e14af68000008111156105815760405162461bcd60e51b81526004016101e190611216565b606085015169152d02c7e14af68000009061059c9083610bce565b816105a357fe5b049150505b606084015160408501516105bb91610e6f565b845111156105db5760405162461bcd60e51b81526004016101e19061132d565b9392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000602052816000526040600020816007811061062257600080fd5b600202018054600190910154909250905082565b61063e610f8d565b602083015161064c57610512565b825181526020808401519082018190526000908310610672575082516040820152610512565b82826020015103905060006212750061068d83612710610bce565b8161069457fe5b049050600060646106a683605a610bce565b816106ad57fe5b87519190049150612710906106c29083610bce565b816106c957fe5b046060850181905286516106dc91610ec9565b604085015250505092915050565b6004546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516370a0823160e01b81526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b038116916370a082319161076b9160040161114f565b60206040518083038186803b15801561078357600080fd5b505afa158015610797573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bb9190611137565b90506005548110156107df5760405162461bcd60e51b81526004016101e1906111ca565b600555565b6001600160a01b0390811660009081526003602090815260408083207f00000000000000000000000000000000000000000000000000000000000000009094168352929052206000199055565b835460018501546000919084156109665760005b6001600160a01b0387166000908152602081905260408120836007811061086857fe5b600202015490508186038082106108b1576001600160a01b0389166000908152602081905260409020958101958183039085600781106108a457fe5b60020201555061095a9050565b6108bb8383610e6f565b6001600160a01b038a1660009081526020819052604090209683019690935084600781106108e557fe5b600060029190910291909101818155600101558361090257600793505b60001990930192848414156109535760008388039050610941816040518060600160405280602681526020016113d46026913960028e01549190610b37565b60028c015595909501945061095a9050565b5050610845565b50600187015550610b2f565b6002870154848110610982578481036002890155849350610b2b565b60006002890155925082805b80861115610b26576001600160a01b038816600090815260208190526040812085600781106109b957fe5b604080518082019091526002919091029190910180548252600101546020820152905081870360006109eb8342610636565b905080604001518210610a4b5780516040820151980197610a0d908590610e6f565b6001600160a01b038c1660009081526020819052604090209094508760078110610a3357fe5b60006002919091029190910181815560010155610adf565b6000610a58828442610521565b9050610a648184610e6f565b60408051808201909152601d81527f52656d6f76696e6720746f6f206d7563682066726f6d206275636b6574000000602082015285519a82019a919450610aad91908590610b37565b6001600160a01b038d1660009081526020819052604090208960078110610ad057fe5b600202015550610b2692505050565b8587148015610aed57508884105b15610b0a5760405162461bcd60e51b81526004016101e190611216565b6001909601956007871415610b1e57600096505b50505061098e565b508288555b5050505b949350505050565b60008184841115610bc65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b8b578181015183820152602001610b73565b50505050905090810190601f168015610bb85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082610bdd57506000610512565b82820282848281610bea57fe5b04146105db5760405162461bcd60e51b81526004018080602001828103825260218152602001806113b36021913960400191505060405180910390fd5b6004546001600160a01b031660008181526001602052604090206002810154610c509084610e6f565b60028201556003810154610c649084610e6f565b6003820155604051632113b13960e01b81526001600160a01b03831690632113b13990610c979087908790600401611163565b600060405180830381600087803b158015610cb157600080fd5b505af1158015610cc5573d6000803e3d6000fd5b50505050816001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051610d0c919061139b565b60405180910390a350505050565b6004840154600285015460018601546201000090920460ff16918580610d3d5750825b15610d5a57610d4c8285610e6f565b600288015550610e69915050565b6001600160a01b03851660009081526020819052604081208260078110610d7d57fe5b6002020190506000429050600082600101549050808210610dbd578254610da5908690610e6f565b60028b01558683556212750082016001840155610e62565b620fd20082018110610ddc578254610dd59088610e6f565b8355610e62565b6001909301926007841415610df057600093505b60018a01849055895480851415610e15576001016007811415610e11575060005b808b555b6001600160a01b03891660009081526020819052604081208660078110610e3857fe5b600202018054909150610e4c908890610e6f565b60028d0155888155621275008401600190910155505b5050505050505b50505050565b6000828201838110156105db576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115610f20576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000808211610f7c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610f8557fe5b049392505050565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b80356001600160a01b03811681146101aa57600080fd5b600060408284031215610fdd578081fd5b6040516040810181811067ffffffffffffffff82111715610ffa57fe5b604052823581526020928301359281019290925250919050565b600080600060608486031215611028578283fd5b61103184610fb5565b925061103f60208501610fb5565b9150604084013590509250925092565b60008060408385031215611061578182fd5b61106a83610fb5565b946020939093013593505050565b600080600083850360c081121561108d578384fd5b608081121561109a578384fd5b506040516080810181811067ffffffffffffffff821117156110b857fe5b60409081528535825260208087013590830152858101359082015260608086013590820152956080850135955060a0909401359392505050565b600060408284031215611103578081fd5b6105db8383610fcc565b6000806060838503121561111f578182fd5b6111298484610fcc565b946040939093013593505050565b600060208284031215611148578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602c908201527f44454c5441546f6b656e3a204c69717569646974792072656d6f76616c73206160408201526b3932903337b93134b23232b760a11b606082015260800190565b60208082526026908201527f4f564c5472616e7366657248616e646c65723a20496e73756666696369656e746040820152652066756e647360d01b606082015260800190565b6020808252602a908201527f44454c5441546f6b656e3a2043616e206e6f742073656e642044454c5441207460408201526937903cb7bab939b2b63360b11b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526022908201527f44454c5441546f6b656e3a204275726e656420746f6f206d616e7920746f6b656040820152616e7360f01b606082015260800190565b60208082526023908201527f44454c5441546f6b656e3a2042616c616e6365206d6178696d756d2070726f626040820152626c656d60e81b606082015260800190565b8151815260208083015190820152604080830151908201526060918201519181019190915260800190565b90815260200190565b91825260208201526040019056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f564c5472616e7366657248616e646c65723a20496e73756666696369656e742066756e6473a2646970667358221220d50c5746352a254381221db8ac67581a5d10a4a78e27b81ea79ce8367f59775664736f6c6343000706003360e060405234801561001057600080fd5b50604051610d69380380610d6983398101604081905261002f91610053565b33606090811b6080526001600160601b031992811b831660c0521b1660a0526100a4565b60008060408385031215610065578182fd5b82516100708161008c565b60208401519092506100818161008c565b809150509250929050565b6001600160a01b03811681146100a157600080fd5b50565b60805160601c60a05160601c60c05160601c610c826100e7600039508061019b528061030d52508060fd52806101d7528061026f52806103ff5250610c826000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063121af5c81461005c5780634b67fcbf1461008557806359600f7e146100a5578063810979ea146100b8578063b9d0242c146100cb575b600080fd5b61006f61006a366004610a52565b6100de565b60405161007c9190610bf7565b60405180910390f35b6100986100933660046108fd565b6100f8565b60405161007c9190610c22565b6100986100b3366004610ab5565b6104db565b6100986100c63660046109d8565b61057a565b61006f6100d9366004610ab5565b61063b565b6100e6610866565b6100f0824261063b565b90505b919050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d2e227d856040518263ffffffff1660e01b81526004016101479190610af7565b60e06040518083038186803b15801561015f57600080fd5b505afa158015610173573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101979190610949565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614801561026857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361fe09d06040518163ffffffff1660e01b815260040160206040518083038186803b15801561022e57600080fd5b505afa158015610242573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610266919061092f565b155b156103ca577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166349e2f8386040518163ffffffff1660e01b815260040160206040518083038186803b1580156102c657600080fd5b505afa1580156102da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102fe9190610adf565b6040516370a0823160e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b038116916370a082319161034991600401610af7565b60206040518083038186803b15801561036157600080fd5b505afa158015610375573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103999190610adf565b146103bf5760405162461bcd60e51b81526004016103b690610b24565b60405180910390fd5b6060015190506104d5565b8060c00151156103df576060015190506104d5565b805160405163278b4afb60e21b8152600091610489916001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691639e2d2bec91610434918a91600401610b0b565b604080518083038186803b15801561044b57600080fd5b505afa15801561045f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104839190610a6d565b426104db565b604083015190915061049b90826106ef565b60408301526020820151825114156104b357506104ce565b8151600101808352600714156104c857600082525b506103df565b6040015190505b92915050565b60008260200151600014156104f2575060006104d5565b60008360200151831061050857505081516104d5565b82846020015103905060006212750061052383612710610749565b8161052a57fe5b0490506000606461053c83605a610749565b8161054357fe5b87519190049150612710906105589083610749565b8161055f57fe5b8751919004945061057090856107a2565b9695505050505050565b600081846020015111156106015760408401516000906105ae906105a88669152d02c7e14af6800000610749565b906107ff565b905069152d02c7e14af68000008111156105da5760405162461bcd60e51b81526004016103b690610b6e565b606085015169152d02c7e14af6800000906105f59083610749565b816105fc57fe5b049150505b60608401516040850151610614916106ef565b845111156106345760405162461bcd60e51b81526004016103b690610bb4565b9392505050565b610643610866565b6020830151610651576104d5565b8251815260208084015190820181905260009083106106775750825160408201526104d5565b82826020015103905060006212750061069283612710610749565b8161069957fe5b049050600060646106ab83605a610749565b816106b257fe5b87519190049150612710906106c79083610749565b816106ce57fe5b046060850181905286516106e1916107a2565b604085015250505092915050565b600082820183811015610634576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082610758575060006104d5565b8282028284828161076557fe5b04146106345760405162461bcd60e51b8152600401808060200182810382526021815260200180610c2c6021913960400191505060405180910390fd5b6000828211156107f9576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000808211610855576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161085e57fe5b049392505050565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b80356001600160a01b03811681146100f357600080fd5b805180151581146100f357600080fd5b6000604082840312156108c6578081fd5b6040516040810181811067ffffffffffffffff821117156108e357fe5b604052823581526020928301359281019290925250919050565b6000806040838503121561090f578182fd5b6109188361088e565b91506109266020840161088e565b90509250929050565b600060208284031215610940578081fd5b610634826108a5565b600060e0828403121561095a578081fd5b60405160e0810181811067ffffffffffffffff8211171561097757fe5b8060405250825181526020830151602082015260408301516040820152606083015160608201526109aa608084016108a5565b60808201526109bb60a084016108a5565b60a08201526109cc60c084016108a5565b60c08201529392505050565b600080600083850360c08112156109ed578182fd5b60808112156109fa578182fd5b506040516080810181811067ffffffffffffffff82111715610a1857fe5b60409081528535825260208087013590830152858101359082015260608086013590820152956080850135955060a0909401359392505050565b600060408284031215610a63578081fd5b61063483836108b5565b600060408284031215610a7e578081fd5b6040516040810181811067ffffffffffffffff82111715610a9b57fe5b604052825181526020928301519281019290925250919050565b60008060608385031215610ac7578182fd5b610ad184846108b5565b946040939093013593505050565b600060208284031215610af0578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6020808252602a908201527f44454c5441546f6b656e3a204c69717569646974792072656d6f76616c206973604082015269103337b93134b23232b760b11b606082015260800190565b60208082526026908201527f4f564c5472616e7366657248616e646c65723a20496e73756666696369656e746040820152652066756e647360d01b606082015260800190565b60208082526023908201527f44454c5441546f6b656e3a2042616c616e6365206d6178696d756d2070726f626040820152626c656d60e81b606082015260800190565b8151815260208083015190820152604080830151908201526060918201519181019190915260800190565b9081526020019056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122061bee94489ae66fda92436644010580737fe45da8f155ff25d4be1d17599e98b64736f6c6343000706003360a060405234801561001057600080fd5b5060405161060838038061060883398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c61057961008f6000398061027e52506105796000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806346197c9a1461006757806349e2f8381461007c57806361fe09d01461009a578063875c971b146100af5780639e2d2bec146100c4578063bfe10928146100e5575b600080fd5b61007a6100753660046103b9565b6100ed565b005b61008461026d565b604051610091919061052c565b60405180910390f35b6100a2610273565b6040516100919190610431565b6100b761027c565b604051610091919061041d565b6100d76100d23660046103f4565b6102a0565b604051610091929190610535565b6100b76102d0565b32735a16552f59ea34e44ec81e58b3817833e9fd5436146101295760405162461bcd60e51b81526004016101209061047f565b60405180910390fd5b6001600160a01b03831661014f5760405162461bcd60e51b8152600401610120906104a4565b6001600160a01b0382166101755760405162461bcd60e51b81526004016101209061043c565b816001600160a01b0316836001600160a01b031614156101a75760405162461bcd60e51b8152600401610120906104e9565b6001600160a01b038084166000908152600160205260408082209285168252902060028201546101d790846102df565b600283015560038201546101eb90846102df565b600383015560028101546101ff908461033c565b60028201556003810154610213908461033c565b8160030181905550836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161025e919061052c565b60405180910390a35050505050565b60055481565b60065460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b600060205281600052604060002081600781106102bc57600080fd5b600202018054600190910154909250905082565b6004546001600160a01b031681565b600082821115610336576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015610396576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b80356001600160a01b03811681146103b457600080fd5b919050565b6000806000606084860312156103cd578283fd5b6103d68461039d565b92506103e46020850161039d565b9150604084013590509250925092565b60008060408385031215610406578081fd5b61040f8361039d565b946020939093013593505050565b6001600160a01b0391909116815260200190565b901515815260200190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252600b908201526a08585d5d1a1bdc9a5cd95960aa1b604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f44454c54413a205472616e7366657220746f2073656c6620646973616c6c6f7760408201526265642160e81b606082015260800190565b90815260200190565b91825260208201526040019056fea2646970667358221220d4302c20c29262058b8c0e35936955c4fe3e6f41370d5d0047718849262f683c64736f6c6343000706003360a060405234801561001057600080fd5b5033606081901b60805261020461003060003980605e52506102046000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80634b67fcbf14610030575b600080fd5b61004361003e366004610120565b610059565b60405161005091906101c5565b60405180910390f35b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636386c1c7856040518263ffffffff1660e01b81526004016100a891906101b1565b60806040518083038186803b1580156100c057600080fd5b505afa1580156100d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100f89190610152565b60200151949350505050565b80356001600160a01b038116811461011b57600080fd5b919050565b60008060408385031215610132578182fd5b61013b83610104565b915061014960208401610104565b90509250929050565b600060808284031215610163578081fd5b6040516080810181811067ffffffffffffffff8211171561018057fe5b8060405250825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b6001600160a01b0391909116815260200190565b9081526020019056fea26469706673582212204497d000482607296d90b929af62ba09fe10d42d75e8d3e22568f4b10d638d6e64736f6c63430007060033000000000000000000000000fcfc434ee5bff924222e084a8876eee74ea7cfba000000000000000000000000b2d834dd31816993ef53507eb1325430e67beefa0000000000000000000000009fe9bb6b66958f2271c4b0ad23f6e8dda8c221be

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102275760003560e01c80636023726011610130578063a9059cbb116100b8578063c67005531161007c578063c67005531461047e578063d8143c5814610491578063dd62ed3e14610499578063f39c38a0146104ac578063f476e382146104b457610227565b8063a9059cbb14610435578063b4110de314610448578063b7cf97ab1461045b578063bfe1092814610463578063c26ebaa41461046b57610227565b806375619ab5116100ff57806375619ab5146103c65780637d2e227d146103d957806395d89b41146103f95780639e2d2bec14610401578063a457c2d71461042257610227565b8063602372601461038557806361fe09d0146103985780636386c1c7146103a057806370a08231146103b357610227565b8063238efcbc116101b35780633950935111610182578063395093511461034757806349e2f8381461035a57806354db7b72146103625780635aa6e6751461036a5780635aac5d2a1461037257610227565b8063238efcbc1461030257806323b872dd1461030a578063313ce5671461031d57806335b71ddf1461033257610227565b8063095ea7b3116101fa578063095ea7b3146102875780630abb6035146102a75780630e91db66146102ba57806318160ddd146102cd5780631a321efc146102e257610227565b8063025837e01461022c578063041b1bbe1461025557806306fdde031461025f5780630785c06414610274575b600080fd5b61023f61023a36600461165f565b6104bc565b60405161024c9190611900565b60405180910390f35b61025d61054e565b005b6102676105fa565b60405161024c919061175e565b61025d610282366004611489565b61061a565b61029a610295366004611505565b610660565b60405161024c9190611753565b61025d6102b5366004611402565b61067e565b61025d6102c83660046114b2565b6106a8565b6102d561070e565b60405161024c91906119b9565b6102f56102f0366004611402565b61073f565b60405161024c9190611998565b61025d61088d565b61029a61031836600461144e565b6108d8565b61032561095f565b60405161024c91906119d0565b61033a610964565b60405161024c9190611701565b61029a610355366004611505565b610988565b6102d56109d6565b61033a6109dc565b61033a6109eb565b61025d610380366004611402565b6109fa565b61025d610393366004611489565b610a24565b61029a610a6c565b61023f6103ae366004611402565b610a75565b6102d56103c1366004611402565b610ac8565b61025d6103d4366004611402565b610b4b565b6103ec6103e7366004611402565b610b7e565b60405161024c919061190e565b610267610c01565b61041461040f366004611505565b610c20565b60405161024c9291906119c2565b61029a610430366004611505565b610c50565b61029a610443366004611505565b610cb8565b61025d610456366004611489565b610ccc565b61033a610d0b565b61033a610d1a565b61025d610479366004611402565b610d29565b61025d61048c36600461152e565b610d53565b61025d610de5565b6102d56104a736600461141c565b610f02565b61033a610f2d565b61033a610f3c565b6104c4611326565b605254604051632e74090b60e21b81526001600160a01b039091169063b9d0242c906104f69085904290600401611962565b60806040518083038186803b15801561050e57600080fd5b505afa158015610522573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105469190611600565b90505b919050565b610556610fac565b6004546001600160a01b03166105875760405162461bcd60e51b815260040161057e90611885565b60405180910390fd5b605080546001600160a01b037f0000000000000000000000004a2e6b0722c403af6cf7df7b7615b48be50fc75281166001600160a01b031992831617909255605280547f0000000000000000000000007be061be6010a2616df43f4dc87d84dc3a3314fe90931692909116919091179055565b6060604051806060016040528060278152602001611a0b60279139905090565b610622610fac565b6001600160a01b03821660009081526001602052604090206106448184610fd8565b60040180549115156101000261ff001990921691909117905550565b600061067461066d611007565b848461100b565b5060015b92915050565b610686610fac565b605380546001600160a01b0319166001600160a01b0392909216919091179055565b6106b0610fac565b6001600160a01b03841660009081526001602052604090206106d28186610fd8565b600401805493151560ff199315156101000261ff0019931515620100000262ff0000199096169590951792909216939093179190911617905550565b600061072d73deadbeefdeadbeefdeadbeefdeadbeefdeadbeef610ac8565b6a25391ee35a05c54d00000003905090565b61074761134e565b6001600160a01b03821660009081526001602052604081206002015490805b600781101561086b576001600160a01b0385166000908152602081905260408120826007811061079257fe5b60020201546052546001600160a01b038881166000908152602081905260408120939450929116906359600f7e9085600781106107cb57fe5b60020201426040518363ffffffff1660e01b81526004016107ed92919061197e565b60206040518083038186803b15801561080557600080fd5b505afa158015610819573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083d91906116a7565b90506108498582610f4b565b945061085f61085883836110bf565b8590610f4b565b93505050600101610766565b50818352602083018190526108808282610f4b565b6040840152509092915050565b6053546001600160a01b031633146108a457600080fd5b604f80546001600160a01b031916339081179091556108c690600180806106a8565b605380546001600160a01b0319169055565b60006108e584848461111c565b610955846108f1611007565b61095085604051806060016040528060288152602001611a32602891396001600160a01b038a1660009081526003602052604081209061092f611007565b6001600160a01b031681526020810191909152604001600020549190611205565b61100b565b5060019392505050565b601290565b7f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b2081565b6000610674610995611007565b8461095085600360006109a6611007565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610f4b565b60055481565b6050546001600160a01b031681565b604f546001600160a01b031681565b610a02610fac565b605280546001600160a01b0319166001600160a01b0392909216919091179055565b610a2c610fac565b6001600160a01b0382166000908152600160205260409020610a4e8184610fd8565b6004018054911515620100000262ff00001990921691909117905550565b60065460ff1681565b610a7d611326565b506001600160a01b0316600090815260016020818152604092839020835160808101855260028201548152600382015492810192909252805493820193909352910154606082015290565b605254604051634b67fcbf60e01b81526000916001600160a01b031690634b67fcbf90610afb9085903390600401611715565b60206040518083038186803b158015610b1357600080fd5b505afa158015610b27573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054691906116a7565b610b53610fac565b600480546001600160a01b0319166001600160a01b038316179055610b7b81600180806106a8565b50565b610b8661136f565b506001600160a01b0316600090815260016020818152604092839020835160e0810185528154815292810154918301919091526002810154928201929092526003820154606082015260049091015460ff8082161515608084015261010082048116151560a08401526201000090910416151560c082015290565b60408051808201909152600581526444454c544160d81b602082015290565b60006020528160005260406000208160078110610c3c57600080fd5b600202018054600190910154909250905082565b6000610674610c5d611007565b8461095085604051806060016040528060258152602001611a5a6025913960036000610c87611007565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611205565b6000610674610cc5611007565b848461111c565b610cd4610fac565b6001600160a01b0382166000908152600160205260409020610cf68184610fd8565b600401805460ff191691151591909117905550565b6051546001600160a01b031681565b6004546001600160a01b031681565b610d31610fac565b605080546001600160a01b0319166001600160a01b0392909216919091179055565b610d5b61129c565b6001600160a01b0383166000908152600160205260409020600481015462010000900460ff16610d9d5760405162461bcd60e51b815260040161057e9061184e565b8115610dd0576003810154610db29084610f4b565b60038201556002810154610dc69084610f4b565b6002820155610ddf565b60038101839055600281018390555b50505050565b610ded61129c565b6006805460ff191660011790556051546040805163061fcf1560e01b815290516001600160a01b039092169163061fcf159160048082019260009290919082900301818387803b158015610e4057600080fd5b505af1158015610e54573d6000803e3d6000fd5b50506006805460ff1916905550506040516370a0823160e01b81527f0000000000000000000000007d7e813082ef6c143277c71786e5be626ec77b206001600160a01b038116916370a0823191610ead91600401611701565b60206040518083038186803b158015610ec557600080fd5b505afa158015610ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efd91906116a7565b600555565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6053546001600160a01b031681565b6052546001600160a01b031681565b600082820183811015610fa5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604f546001600160a01b03163314610fd65760405162461bcd60e51b815260040161057e906117d3565b565b6001600160a01b0381166000908152602081905260408120610ff9916113b2565b506003810154600290910155565b3390565b6001600160a01b0383166110315760405162461bcd60e51b815260040161057e906118bc565b6001600160a01b0382166110575760405162461bcd60e51b815260040161057e90611791565b6001600160a01b0380841660008181526003602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906110b29085906119b9565b60405180910390a3505050565b600082821115611116576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006346197c9a60e01b84848460405160240161113b9392919061172f565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252605054915190925060009182916001600160a01b03909116906111919085906116e5565b600060405180830381855af49150503d80600081146111cc576040519150601f19603f3d011682016040523d82523d6000602084013e6111d1565b606091505b5091509150816111fd576111e4816112c6565b60405162461bcd60e51b815260040161057e919061175e565b505050505050565b600081848411156112945760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611259578181015183820152602001611241565b50505050905090810190601f1680156112865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6051546001600160a01b03163314610fd65760405162461bcd60e51b815260040161057e906117f1565b606060448251101561130c575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c790000006020820152610549565b600482019150818060200190518101906105469190611569565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b60405180606001604052806000815260200160008152602001600081525090565b6040518060e00160405280600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000151581525090565b50610b7b90600e8101905b808211156113d757600080825560018201556002016113bd565b5090565b80356001600160a01b038116811461054957600080fd5b8035801515811461054957600080fd5b600060208284031215611413578081fd5b610fa5826113db565b6000806040838503121561142e578081fd5b611437836113db565b9150611445602084016113db565b90509250929050565b600080600060608486031215611462578081fd5b61146b846113db565b9250611479602085016113db565b9150604084013590509250925092565b6000806040838503121561149b578182fd5b6114a4836113db565b9150611445602084016113f2565b600080600080608085870312156114c7578081fd5b6114d0856113db565b93506114de602086016113f2565b92506114ec604086016113f2565b91506114fa606086016113f2565b905092959194509250565b60008060408385031215611517578182fd5b611520836113db565b946020939093013593505050565b600080600060608486031215611542578283fd5b61154b846113db565b925060208401359150611560604085016113f2565b90509250925092565b60006020828403121561157a578081fd5b815167ffffffffffffffff80821115611591578283fd5b818401915084601f8301126115a4578283fd5b8151818111156115b057fe5b604051601f8201601f1916810160200183811182821017156115ce57fe5b6040528181528382016020018710156115e5578485fd5b6115f68260208301602087016119de565b9695505050505050565b600060808284031215611611578081fd5b6040516080810181811067ffffffffffffffff8211171561162e57fe5b8060405250825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b600060408284031215611670578081fd5b6040516040810181811067ffffffffffffffff8211171561168d57fe5b604052823581526020928301359281019290925250919050565b6000602082840312156116b8578081fd5b5051919050565b805182526020810151602083015260408101516040830152606081015160608301525050565b600082516116f78184602087016119de565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b901515815260200190565b600060208252825180602084015261177d8160408501602087016119de565b601f01601f19169190910160400192915050565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526004908201526310b3b7bb60e11b604082015260600190565b6020808252603c908201527f44454c5441546f6b656e3a204f6e6c79205265626173696e67204c5020636f6e60408201527f74726163742063616e2063616c6c20746869732066756e6374696f6e00000000606082015260800190565b6020808252601c908201527f4163636f756e7420697320612076657374696e67206164647265737300000000604082015260600190565b6020808252601a908201527f53657420746865206469737472696275746f7220666972737421000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6080810161067882846116bf565b600060e0820190508251825260208301516020830152604083015160408301526060830151606083015260808301511515608083015260a0830151151560a083015260c0830151151560c083015292915050565b8251815260209283015192810192909252604082015260600190565b825481526001909201546020830152604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b918252602082015260400190565b60ff91909116815260200190565b60005b838110156119f95781810151838201526020016119e1565b83811115610ddf575050600091015256fe44454c54412e66696e616e6369616c202d2064656570204465466920646572697661746976657345524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220abbbeb3c75829da33016ca4e686696e2e9e5613debb9fb1691c7564c7a39844464736f6c63430007060033

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

000000000000000000000000fcfc434ee5bff924222e084a8876eee74ea7cfba000000000000000000000000b2d834dd31816993ef53507eb1325430e67beefa0000000000000000000000009fe9bb6b66958f2271c4b0ad23f6e8dda8c221be

-----Decoded View---------------
Arg [0] : rebasingLP (address): 0xfcfC434ee5BfF924222e084a8876Eee74Ea7cfbA
Arg [1] : multisig (address): 0xB2d834dd31816993EF53507Eb1325430e67beefa
Arg [2] : dfv (address): 0x9fE9Bb6B66958f2271C4B0aD23F6E8DDA8C221BE

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000fcfc434ee5bff924222e084a8876eee74ea7cfba
Arg [1] : 000000000000000000000000b2d834dd31816993ef53507eb1325430e67beefa
Arg [2] : 0000000000000000000000009fe9bb6b66958f2271c4b0ad23f6e8dda8c221be


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.