ETH Price: $3,110.50 (-0.89%)

Contract

0x433a6a07E3936b52673D7fd1be79b9BF8E4123fF
 

Overview

ETH Balance

0.001258021810588288 ETH

Eth Value

$3.91 (@ $3,110.50/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Fees144202932022-03-20 1:20:29974 days ago1647739229IN
Hydra Finance: HYDRA Token
0 ETH0.0018085223.26314243
Trigger Hydra Bu...144202562022-03-20 1:12:23974 days ago1647738743IN
Hydra Finance: HYDRA Token
0 ETH0.0041778927.70503726
Set Is Tx Limit ...144202522022-03-20 1:11:26974 days ago1647738686IN
Hydra Finance: HYDRA Token
0 ETH0.0013815329.79828489
Set Is Fee Exemp...144202502022-03-20 1:11:11974 days ago1647738671IN
Hydra Finance: HYDRA Token
0 ETH0.0015719133.93590795
Set Fees144202492022-03-20 1:11:01974 days ago1647738661IN
Hydra Finance: HYDRA Token
0 ETH0.0012008932.40059461
Clear Buyback Mu...144202492022-03-20 1:11:01974 days ago1647738661IN
Hydra Finance: HYDRA Token
0 ETH0.0007677332.40059461
Authorize144202472022-03-20 1:09:59974 days ago1647738599IN
Hydra Finance: HYDRA Token
0 ETH0.0014078430.54154924
Approve Max144202472022-03-20 1:09:59974 days ago1647738599IN
Hydra Finance: HYDRA Token
0 ETH0.0014044530.54154924
Transfer144202232022-03-20 1:05:28974 days ago1647738328IN
Hydra Finance: HYDRA Token
0 ETH0.0134493135.87219402
Approve131696782021-09-06 3:01:131169 days ago1630897273IN
Hydra Finance: HYDRA Token
0 ETH0.0043972394.65177257
Set Fees131411782021-09-01 17:46:011173 days ago1630518361IN
Hydra Finance: HYDRA Token
0 ETH0.00537785138.76895321
Approve130071092021-08-12 0:27:391194 days ago1628728059IN
Hydra Finance: HYDRA Token
0 ETH0.001189249.19562434
Set Swap Back Se...129023262021-07-26 14:20:031210 days ago1627309203IN
Hydra Finance: HYDRA Token
0 ETH0.0014972648
Set Fees129023162021-07-26 14:18:221210 days ago1627309102IN
Hydra Finance: HYDRA Token
0 ETH0.0027140956
Set Fees129023142021-07-26 14:17:541210 days ago1627309074IN
Hydra Finance: HYDRA Token
0 ETH0.0027305145
Set Fees129023102021-07-26 14:14:131210 days ago1627308853IN
Hydra Finance: HYDRA Token
0 ETH0.0017857141
Trigger Hydra Bu...129023042021-07-26 14:11:341210 days ago1627308694IN
Hydra Finance: HYDRA Token
0 ETH0.0045079335
Set Fees129023022021-07-26 14:11:181210 days ago1627308678IN
Hydra Finance: HYDRA Token
0 ETH0.0014152731
Set Swap Back Se...129016512021-07-26 11:49:581210 days ago1627300198IN
Hydra Finance: HYDRA Token
0 ETH0.0007486324
Approve128948162021-07-25 10:09:371212 days ago1627207777IN
Hydra Finance: HYDRA Token
0 ETH0.0025551355
Approve128945672021-07-25 9:10:011212 days ago1627204201IN
Hydra Finance: HYDRA Token
0 ETH0.0006039413
Approve128260922021-07-14 16:04:361222 days ago1626278676IN
Hydra Finance: HYDRA Token
0 ETH0.0021834747
Approve128144262021-07-12 19:48:121224 days ago1626119292IN
Hydra Finance: HYDRA Token
0 ETH0.001718937
Approve128141222021-07-12 18:40:221224 days ago1626115222IN
Hydra Finance: HYDRA Token
0 ETH0.0011625339.6
Approve128140942021-07-12 18:32:551224 days ago1626114775IN
Hydra Finance: HYDRA Token
0 ETH0.0017475437.851
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
174234332023-06-06 19:20:23530 days ago1686079223
Hydra Finance: HYDRA Token
0.17755265 ETH
174234332023-06-06 19:20:23530 days ago1686079223
Hydra Finance: HYDRA Token
0.17755265 ETH
174213192023-06-06 12:10:23530 days ago1686053423
Hydra Finance: HYDRA Token
2.34365091 ETH
174213192023-06-06 12:10:23530 days ago1686053423
Hydra Finance: HYDRA Token
2.34365091 ETH
174212772023-06-06 12:01:47530 days ago1686052907
Hydra Finance: HYDRA Token
2.34853726 ETH
174212772023-06-06 12:01:47530 days ago1686052907
Hydra Finance: HYDRA Token
2.34853726 ETH
160860862022-11-30 23:30:35718 days ago1669851035
Hydra Finance: HYDRA Token
0.15153298 ETH
160860862022-11-30 23:30:35718 days ago1669851035
Hydra Finance: HYDRA Token
0.15153298 ETH
144203012022-03-20 1:21:12974 days ago1647739272
Hydra Finance: HYDRA Token
0.15970347 ETH
144203012022-03-20 1:21:12974 days ago1647739272
Hydra Finance: HYDRA Token
0.15970347 ETH
144202562022-03-20 1:12:23974 days ago1647738743
Hydra Finance: HYDRA Token
0.27 ETH
144202362022-03-20 1:07:21974 days ago1647738441
Hydra Finance: HYDRA Token
0.14255838 ETH
144202362022-03-20 1:07:21974 days ago1647738441
Hydra Finance: HYDRA Token
0.14255838 ETH
129024702021-07-26 14:50:561210 days ago1627311056
Hydra Finance: HYDRA Token
0.13908527 ETH
129024702021-07-26 14:50:561210 days ago1627311056
Hydra Finance: HYDRA Token
0.15299379 ETH
129024702021-07-26 14:50:561210 days ago1627311056
Hydra Finance: HYDRA Token
0.14877924 ETH
129024702021-07-26 14:50:561210 days ago1627311056
Hydra Finance: HYDRA Token
0.16365716 ETH
129024432021-07-26 14:44:091210 days ago1627310649
Hydra Finance: HYDRA Token
0.15952386 ETH
129024432021-07-26 14:44:091210 days ago1627310649
Hydra Finance: HYDRA Token
0.17547625 ETH
129024402021-07-26 14:43:361210 days ago1627310616
Hydra Finance: HYDRA Token
0.1714767 ETH
129024402021-07-26 14:43:361210 days ago1627310616
Hydra Finance: HYDRA Token
0.18862437 ETH
129024282021-07-26 14:40:421210 days ago1627310442
Hydra Finance: HYDRA Token
0.18482602 ETH
129024282021-07-26 14:40:421210 days ago1627310442
Hydra Finance: HYDRA Token
0.20330863 ETH
129023972021-07-26 14:34:181210 days ago1627310058
Hydra Finance: HYDRA Token
0.19979824 ETH
129023972021-07-26 14:34:181210 days ago1627310058
Hydra Finance: HYDRA Token
0.21977806 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Hydra

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : Hydra.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.7.4;



/** Website:  https://hydra.finance 
 *  Telegram: https://t.me/hydra_f


/**
 * Standard SafeMath, stripped down to just add/sub/mul/div
 */
library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }
}

/**
 * ERC20 standard interface.
 */
interface IERC20 {
    function totalSupply() external view returns (uint256);

    function decimals() external view returns (uint8);

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

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

    function getOwner() external view returns (address);

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

    function transfer(address recipient, uint256 amount) external returns (bool);

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

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

    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

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

/**
 * Allows for contract ownership along with multi-address authorization
 */
abstract contract Auth {
    address internal owner;
    mapping(address => bool) internal authorizations;

    constructor(address _owner) {
        owner = _owner;
        authorizations[_owner] = true;
    }

    /**
     * Function modifier to require caller to be contract owner
     */
    modifier onlyOwner() {
        require(isOwner(msg.sender), "!OWNER");
        _;
    }

    /**
     * Function modifier to require caller to be authorized
     */
    modifier authorized() {
        require(isAuthorized(msg.sender), "!AUTHORIZED");
        _;
    }

    /**
     * Authorize address. Owner only
     */
    function authorize(address adr) public onlyOwner {
        authorizations[adr] = true;
    }

    /**
     * Remove address' authorization. Owner only
     */
    function unauthorize(address adr) public onlyOwner {
        authorizations[adr] = false;
    }

    /**
     * Check if address is owner
     */
    function isOwner(address account) public view returns (bool) {
        return account == owner;
    }

    /**
     * Return address' authorization status
     */
    function isAuthorized(address adr) public view returns (bool) {
        return authorizations[adr];
    }

    /**
     * Transfer ownership to new address. Caller must be owner. Leaves old owner authorized
     */
    function transferOwnership(address payable adr) public onlyOwner {
        owner = adr;
        authorizations[adr] = true;
        emit OwnershipTransferred(adr);
    }

    event OwnershipTransferred(address owner);
}

interface IDEXFactory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

interface IDEXRouter {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);

    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

interface IDividendDistributor {
    function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external;

    function setShare(address shareholder, uint256 amount) external;

    function deposit() external payable;

    function process(uint256 gas) external;
}

contract DividendDistributor is IDividendDistributor {
    using SafeMath for uint256;

    address _token;

    struct Share {
        uint256 amount;
        uint256 totalExcluded;
        uint256 totalRealised;
    }

    IERC20 USDC = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
    address WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    IDEXRouter router;

    address[] shareholders;
    mapping(address => uint256) shareholderIndexes;
    mapping(address => uint256) shareholderClaims;
    mapping(address => address) shareholderClaimAs;

    mapping(address => Share) public shares;

    uint256 public totalShares;
    uint256 public totalDividends;
    uint256 public totalDistributed;
    uint256 public dividendsPerShare;
    uint256 public dividendsPerShareAccuracyFactor = 10 ** 36;

    uint256 public minPeriod = 1 hours;
    uint256 public minDistribution = 1 * (10 ** 18);

    uint256 currentIndex;

    bool initialized;
    modifier initialization() {
        require(!initialized);
        _;
        initialized = true;
    }

    modifier onlyToken() {
        require(msg.sender == _token);
        _;
    }

    constructor (address _router) {
        router = _router != address(0)
        ? IDEXRouter(_router)
        : IDEXRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        _token = msg.sender;
    }

    function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external override onlyToken {
        minPeriod = _minPeriod;
        minDistribution = _minDistribution;
    }

    function setShare(address shareholder, uint256 amount) external override onlyToken {
        if (shares[shareholder].amount > 0) {
            distributeDividend(shareholder);
        }

        if (amount > 0 && shares[shareholder].amount == 0) {
            addShareholder(shareholder);
        } else if (amount == 0 && shares[shareholder].amount > 0) {
            removeShareholder(shareholder);
        }

        totalShares = totalShares.sub(shares[shareholder].amount).add(amount);
        shares[shareholder].amount = amount;
        shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount);
    }

    function deposit() external payable override onlyToken {
        uint256 balanceBefore = USDC.balanceOf(address(this));

        address[] memory path = new address[](2);
        path[0] = WETH;
        path[1] = address(USDC);

        router.swapExactETHForTokensSupportingFeeOnTransferTokens{value : msg.value}(
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 amount = USDC.balanceOf(address(this)).sub(balanceBefore);

        totalDividends = totalDividends.add(amount);
        dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares));
    }

    function process(uint256 gas) external override onlyToken {
        uint256 shareholderCount = shareholders.length;

        if (shareholderCount == 0) {return;}

        uint256 gasUsed = 0;
        uint256 gasLeft = gasleft();

        uint256 iterations = 0;

        while (gasUsed < gas && iterations < shareholderCount) {
            if (currentIndex >= shareholderCount) {
                currentIndex = 0;
            }

            if (shouldDistribute(shareholders[currentIndex])) {
                distributeDividend(shareholders[currentIndex]);
            }

            gasUsed = gasUsed.add(gasLeft.sub(gasleft()));
            gasLeft = gasleft();
            currentIndex++;
            iterations++;
        }
    }

    function shouldDistribute(address shareholder) internal view returns (bool) {
        return shareholderClaims[shareholder] + minPeriod < block.timestamp
        && getUnpaidEarnings(shareholder) > minDistribution;
    }

    function distributeDividend(address shareholder) internal {
        if (shares[shareholder].amount == 0) {return;}

        uint256 amount = getUnpaidEarnings(shareholder);
        if (amount > 0) {
            totalDistributed = totalDistributed.add(amount);
            swapAndDistributeSpecial(shareholder, amount);
            shareholderClaims[shareholder] = block.timestamp;
            shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount);
            shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount);
        }
    }

    function swapAndDistributeSpecial(address shareholder, uint256 amount) internal{
        address claimToken = shareholderClaimAs[shareholder];
        if (claimToken == address(0)) {
            USDC.transfer(shareholder, amount);
        }
        else {
            address[] memory path = new address[](2);
            path[0] = address(USDC);
            path[1] = claimToken;
            try router.swapExactTokensForTokensSupportingFeeOnTransferTokens(amount, 0, path, shareholder, block.timestamp) {} catch{
                USDC.transfer(shareholder, amount);
            }
        }
    }

    function setClaimAs(address shareholder, address claimtoken) external onlyToken {
        shareholderClaimAs[shareholder] = claimtoken;
    }

    function getClaimAs(address shareholder) public view onlyToken returns (address) {
        return shareholderClaimAs[shareholder];
    }

    function claimDividend() external {
        distributeDividend(msg.sender);
    }

    function getUnpaidEarnings(address shareholder) public view returns (uint256) {
        if (shares[shareholder].amount == 0) {return 0;}

        uint256 shareholderTotalDividends = getCumulativeDividends(shares[shareholder].amount);
        uint256 shareholderTotalExcluded = shares[shareholder].totalExcluded;

        if (shareholderTotalDividends <= shareholderTotalExcluded) {return 0;}

        return shareholderTotalDividends.sub(shareholderTotalExcluded);
    }

    function getCumulativeDividends(uint256 share) internal view returns (uint256) {
        return share.mul(dividendsPerShare).div(dividendsPerShareAccuracyFactor);
    }

    function addShareholder(address shareholder) internal {
        shareholderIndexes[shareholder] = shareholders.length;
        shareholders.push(shareholder);
    }

    function removeShareholder(address shareholder) internal {
        shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1];
        shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder];
        shareholders.pop();
    }
}

contract Hydra is IERC20, Auth {
    using SafeMath for uint256;

    address USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
    address WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address DEAD = 0x000000000000000000000000000000000000dEaD;
    address ZERO = 0x0000000000000000000000000000000000000000;

    string constant _name = "Hydra";
    string constant _symbol = "HYDRA";
    uint8 constant _decimals = 9;

    uint256 _totalSupply = 3000000000000 * (10 ** _decimals);
    uint256 public _maxTxAmount = _totalSupply / 1000; //

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

    mapping(address => bool) isFeeExempt;
    mapping(address => bool) isTxLimitExempt;
    mapping(address => bool) isDividendExempt;

    uint256 liquidityFee = 300;
    uint256 buybackFee = 300;
    uint256 reflectionFee = 300;
    uint256 marketingFee = 300;
    uint256 totalFee = 1200;
    uint256 feeDenominator = 10000;

    address public autoLiquidityReceiver;
    address public marketingFeeReceiver;

    uint256 targetLiquidity = 25;
    uint256 targetLiquidityDenominator = 100;

    IDEXRouter public router;
    address public pair;

    uint256 public launchedAt;

    uint256 buybackMultiplierNumerator = 200;
    uint256 buybackMultiplierDenominator = 100;
    uint256 buybackMultiplierTriggeredAt;
    uint256 buybackMultiplierLength = 30 minutes;

    bool public autoBuybackEnabled = false;
    uint256 autoBuybackCap;
    uint256 autoBuybackAccumulator;
    uint256 autoBuybackAmount;
    uint256 autoBuybackBlockPeriod;
    uint256 autoBuybackBlockLast;

    DividendDistributor distributor;
    uint256 distributorGas = 500000;

    bool public swapEnabled = true;
    uint256 public swapThreshold = _totalSupply / 20000;
    bool inSwap;
    modifier swapping() {
        inSwap = true;
        _;
        inSwap = false;
    }

    constructor () Auth(msg.sender) {
        router = IDEXRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        pair = IDEXFactory(router.factory()).createPair(WETH, address(this));
        _allowances[address(this)][address(router)] = uint256(- 1);

        distributor = new DividendDistributor(address(router));

        //        isFeeExempt[_presaler] = true;
        //        isTxLimitExempt[_presaler] = true;

        //        isFeeExempt[_presaleContract] = true;
        //        isTxLimitExempt[_presaleContract] = true;
        //        isDividendExempt[_presaleContract] = true;

        isDividendExempt[pair] = true;
        isDividendExempt[address(this)] = true;

        autoLiquidityReceiver = msg.sender;
        marketingFeeReceiver = msg.sender;

        _balances[msg.sender] = _totalSupply;
        emit Transfer(address(0), msg.sender, _totalSupply);
    }

    receive() external payable {}

    function totalSupply() external view override returns (uint256) {return _totalSupply;}

    function decimals() external pure override returns (uint8) {return _decimals;}

    function symbol() external pure override returns (string memory) {return _symbol;}

    function name() external pure override returns (string memory) {return _name;}

    function getOwner() external view override returns (address) {return owner;}

    function balanceOf(address account) public view override returns (uint256) {return _balances[account];}

    function allowance(address holder, address spender) external view override returns (uint256) {return _allowances[holder][spender];}

    function approve(address spender, uint256 amount) public override returns (bool) {
        _allowances[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true;
    }

    function approveMax(address spender) external returns (bool) {
        return approve(spender, uint256(- 1));
    }

    function transfer(address recipient, uint256 amount) external override returns (bool) {
        return _transferFrom(msg.sender, recipient, amount);
    }

    function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) {
        if (_allowances[sender][msg.sender] != uint256(- 1)) {
            _allowances[sender][msg.sender] = _allowances[sender][msg.sender].sub(amount, "Insufficient Allowance");
        }

        return _transferFrom(sender, recipient, amount);
    }

    function _transferFrom(address sender, address recipient, uint256 amount) internal returns (bool) {
        if (inSwap) {return _basicTransfer(sender, recipient, amount);}

        checkTxLimit(sender, amount);

        if (shouldSwapBack()) {swapBack();}
        if (shouldAutoBuyback()) {triggerAutoBuyback();}

        if(!launched() && recipient == pair){ require(_balances[sender] > 0); launch(); }

        _balances[sender] = _balances[sender].sub(amount, "Insufficient Balance");

        uint256 amountReceived = shouldTakeFee(sender) ? takeFee(sender, recipient, amount) : amount;
        _balances[recipient] = _balances[recipient].add(amountReceived);

        if (!isDividendExempt[sender]) {try distributor.setShare(sender, _balances[sender]) {} catch {}}
        if (!isDividendExempt[recipient]) {try distributor.setShare(recipient, _balances[recipient]) {} catch {}}

        try distributor.process(distributorGas) {} catch {}

        emit Transfer(sender, recipient, amountReceived);
        return true;
    }

    function _basicTransfer(address sender, address recipient, uint256 amount) internal returns (bool) {
        _balances[sender] = _balances[sender].sub(amount, "Insufficient Balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
        return true;
    }

    function checkTxLimit(address sender, uint256 amount) internal view {
        require(amount <= _maxTxAmount || isTxLimitExempt[sender], "TX Limit Exceeded");
    }

    function shouldTakeFee(address sender) internal view returns (bool) {
        return !isFeeExempt[sender];
    }

    function getTotalFee(bool selling) public view returns (uint256) {
        if (launchedAt + 1 >= block.number) {return feeDenominator.sub(1);}
        if(selling && buybackMultiplierTriggeredAt.add(buybackMultiplierLength) > block.timestamp){ return getMultipliedFee(); }
        return totalFee;
    }

    function getMultipliedFee() public view returns (uint256) {
        uint256 remainingTime = buybackMultiplierTriggeredAt.add(buybackMultiplierLength).sub(block.timestamp);
        uint256 feeIncrease = totalFee.mul(buybackMultiplierNumerator).div(buybackMultiplierDenominator).sub(totalFee);
        return totalFee.add(feeIncrease.mul(remainingTime).div(buybackMultiplierLength));
    }

    function takeFee(address sender, address receiver, uint256 amount) internal returns (uint256) {
        uint256 feeAmount = amount.mul(getTotalFee(receiver == pair)).div(feeDenominator);

        _balances[address(this)] = _balances[address(this)].add(feeAmount);
        emit Transfer(sender, address(this), feeAmount);

        return amount.sub(feeAmount);
    }

    function shouldSwapBack() internal view returns (bool) {
        return msg.sender != pair
        && !inSwap
        && swapEnabled
        && _balances[address(this)] >= swapThreshold;
    }

    function swapBack() internal swapping {
        uint256 dynamicLiquidityFee = isOverLiquified(targetLiquidity, targetLiquidityDenominator) ? 0 : liquidityFee;
        uint256 amountToLiquify = swapThreshold.mul(dynamicLiquidityFee).div(totalFee).div(2);
        uint256 amountToSwap = swapThreshold.sub(amountToLiquify);

        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = WETH;

        uint256 balanceBefore = address(this).balance;

        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            amountToSwap,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 amountETH = address(this).balance.sub(balanceBefore);

        uint256 totalETHFee = totalFee.sub(dynamicLiquidityFee.div(2));

        uint256 amountETHLiquidity = amountETH.mul(dynamicLiquidityFee).div(totalETHFee).div(2);
        uint256 amountETHReflection = amountETH.mul(reflectionFee).div(totalETHFee);
        uint256 amountETHMarketing = amountETH.mul(marketingFee).div(totalETHFee);

        try distributor.deposit{value : amountETHReflection}() {} catch {}
        payable(marketingFeeReceiver).call{value : amountETHMarketing, gas : 30000}("");

        if (amountToLiquify > 0) {
            router.addLiquidityETH{value : amountETHLiquidity}(
                address(this),
                amountToLiquify,
                0,
                0,
                autoLiquidityReceiver,
                block.timestamp
            );
            emit AutoLiquify(amountETHLiquidity, amountToLiquify);
        }
    }

    function shouldAutoBuyback() internal view returns (bool) {
        return msg.sender != pair
        && !inSwap
        && autoBuybackEnabled
        && autoBuybackBlockLast + autoBuybackBlockPeriod <= block.number
        && address(this).balance >= autoBuybackAmount;
    }

    function triggerHydraBuyback(uint256 amount, bool triggerBuybackMultiplier) external authorized {
        buyTokens(amount, DEAD);
        if (triggerBuybackMultiplier) {
            buybackMultiplierTriggeredAt = block.timestamp;
            emit BuybackMultiplierActive(buybackMultiplierLength);
        }
    }

    function clearBuybackMultiplier() external authorized {
        buybackMultiplierTriggeredAt = 0;
    }

    function triggerAutoBuyback() internal {
        buyTokens(autoBuybackAmount, DEAD);
        autoBuybackBlockLast = block.number;
        autoBuybackAccumulator = autoBuybackAccumulator.add(autoBuybackAmount);
        if (autoBuybackAccumulator > autoBuybackCap) {autoBuybackEnabled = false;}
    }

    function buyTokens(uint256 amount, address to) internal swapping {
        address[] memory path = new address[](2);
        path[0] = WETH;
        path[1] = address(this);

        router.swapExactETHForTokensSupportingFeeOnTransferTokens{value : amount}(
            0,
            path,
            to,
            block.timestamp
        );
    }

    function setAutoBuybackSettings(bool _enabled, uint256 _cap, uint256 _amount, uint256 _period) external authorized {
        autoBuybackEnabled = _enabled;
        autoBuybackCap = _cap;
        autoBuybackAccumulator = 0;
        autoBuybackAmount = _amount;
        autoBuybackBlockPeriod = _period;
        autoBuybackBlockLast = block.number;
    }

    function setBuybackMultiplierSettings(uint256 numerator, uint256 denominator, uint256 length) external authorized {
        require(numerator / denominator <= 2 && numerator > denominator);
        buybackMultiplierNumerator = numerator;
        buybackMultiplierDenominator = denominator;
        buybackMultiplierLength = length;
    }

    function launched() internal view returns (bool) {
        return launchedAt != 0;
    }

    function launch() internal {
        launchedAt = block.number;
    }

    function setTxLimit(uint256 amount) external authorized {
        require(amount >= _totalSupply / 1000);
        _maxTxAmount = amount;
    }

    function setIsDividendExempt(address holder, bool exempt) external authorized {
        require(holder != address(this) && holder != pair);
        isDividendExempt[holder] = exempt;
        if (exempt) {
            distributor.setShare(holder, 0);
        } else {
            distributor.setShare(holder, _balances[holder]);
        }
    }

    function setIsFeeExempt(address holder, bool exempt) external authorized {
        isFeeExempt[holder] = exempt;
    }

    function setIsTxLimitExempt(address holder, bool exempt) external authorized {
        isTxLimitExempt[holder] = exempt;
    }

    function setFees(uint256 _liquidityFee, uint256 _buybackFee, uint256 _reflectionFee, uint256 _marketingFee, uint256 _feeDenominator) external authorized {
        liquidityFee = _liquidityFee;
        buybackFee = _buybackFee;
        reflectionFee = _reflectionFee;
        marketingFee = _marketingFee;
        totalFee = _liquidityFee.add(_buybackFee).add(_reflectionFee).add(_marketingFee);
        feeDenominator = _feeDenominator;
        require(totalFee < feeDenominator / 4);
    }

    function setFeeReceivers(address _autoLiquidityReceiver, address _marketingFeeReceiver) external authorized {
        autoLiquidityReceiver = _autoLiquidityReceiver;
        marketingFeeReceiver = _marketingFeeReceiver;
    }

    function setSwapBackSettings(bool _enabled, uint256 _amount) external authorized {
        swapEnabled = _enabled;
        swapThreshold = _amount;
    }

    function setTargetLiquidity(uint256 _target, uint256 _denominator) external authorized {
        targetLiquidity = _target;
        targetLiquidityDenominator = _denominator;
    }

    function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external authorized {
        distributor.setDistributionCriteria(_minPeriod, _minDistribution);
    }

    function setDistributorSettings(uint256 gas) external authorized {
        require(gas < 750000);
        distributorGas = gas;
    }

    function setClaimAs(address claimAs) external {
        distributor.setClaimAs(msg.sender, claimAs);
    }

    function getClaimAs() public view returns (address) {
       return distributor.getClaimAs(msg.sender);
    }

    function getCirculatingSupply() public view returns (uint256) {
        return _totalSupply.sub(balanceOf(DEAD)).sub(balanceOf(ZERO));
    }

    function getLiquidityBacking(uint256 accuracy) public view returns (uint256) {
        return accuracy.mul(balanceOf(pair).mul(2)).div(getCirculatingSupply());
    }

    function isOverLiquified(uint256 target, uint256 accuracy) public view returns (bool) {
        return getLiquidityBacking(accuracy) > target;
    }

    event AutoLiquify(uint256 amountETH, uint256 amountBOG);
    event BuybackMultiplierActive(uint256 duration);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":false,"internalType":"uint256","name":"amountETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountBOG","type":"uint256"}],"name":"AutoLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"BuybackMultiplierActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"OwnershipTransferred","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":"_maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","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":"spender","type":"address"}],"name":"approveMax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoBuybackEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoLiquidityReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearBuybackMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getCirculatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimAs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"getLiquidityBacking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMultipliedFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"selling","type":"bool"}],"name":"getTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"isOverLiquified","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFeeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IDEXRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_period","type":"uint256"}],"name":"setAutoBuybackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"setBuybackMultiplierSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"claimAs","type":"address"}],"name":"setClaimAs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minPeriod","type":"uint256"},{"internalType":"uint256","name":"_minDistribution","type":"uint256"}],"name":"setDistributionCriteria","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"setDistributorSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_autoLiquidityReceiver","type":"address"},{"internalType":"address","name":"_marketingFeeReceiver","type":"address"}],"name":"setFeeReceivers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_buybackFee","type":"uint256"},{"internalType":"uint256","name":"_reflectionFee","type":"uint256"},{"internalType":"uint256","name":"_marketingFee","type":"uint256"},{"internalType":"uint256","name":"_feeDenominator","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"bool","name":"exempt","type":"bool"}],"name":"setIsDividendExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"bool","name":"exempt","type":"bool"}],"name":"setIsFeeExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"bool","name":"exempt","type":"bool"}],"name":"setIsTxLimitExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setSwapBackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_target","type":"uint256"},{"internalType":"uint256","name":"_denominator","type":"uint256"}],"name":"setTargetLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setTxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"adr","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"triggerBuybackMultiplier","type":"bool"}],"name":"triggerHydraBuyback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"unauthorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600280546001600160a01b031990811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb481790915560038054821673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc217905560048054821661dead17905560058054909116905568a2a15d09519be000006006556729a2241af62c000060075561012c600d819055600e819055600f8190556010556104b060115561271060125560196015556064601681905560c8601a55601b55610708601d55601e805460ff199081169091556207a120602555602680549091166001179055670214e8348c4f0000602755348015620000ed57600080fd5b50600080546001600160a01b0319908116339081178355825260016020818152604093849020805460ff191690921790915560178054909216737a250d5630b4cf539739df2c5dacb4c659f2488d1791829055825163c45a015560e01b815292516001600160a01b03929092169263c45a01559260048083019392829003018186803b1580156200017d57600080fd5b505afa15801562000192573d6000803e3d6000fd5b505050506040513d6020811015620001a957600080fd5b5051600354604080516364e329cb60e11b81526001600160a01b0392831660048201523060248201529051919092169163c9c653969160448083019260209291908290030181600087803b1580156200020157600080fd5b505af115801562000216573d6000803e3d6000fd5b505050506040513d60208110156200022d57600080fd5b5051601880546001600160a01b0319166001600160a01b0392831617905530600090815260096020908152604080832060178054861685529252918290206000199055549051911690620002819062000367565b6001600160a01b03909116815260405190819003602001906000f080158015620002af573d6000803e3d6000fd5b50602480546001600160a01b039283166001600160a01b0319918216179091556018549091166000908152600c60209081526040808320805460ff199081166001908117909255308552828520805490911690911790556013805485163390811790915560148054909516811790945560065484845260088352818420819055815190815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a362000375565b6111ff8062002a0083390190565b61267b80620003856000396000f3fe6080604052600436106102815760003560e01c806395d89b411161014f578063d806d12f116100c1578063f2fde38b1161007a578063f2fde38b1461097a578063f406607f146109ad578063f708a64f146109e0578063f84ba65d14610a1b578063f887ea4014610a56578063fe9fbb8014610a6b57610288565b8063d806d12f14610884578063dd62ed3e14610899578063df20fd49146108d4578063e96fada214610906578063f0b37c041461091b578063f1f3bca31461094e57610288565b8063b210b06d11610113578063b210b06d146107d3578063b6a5d7de146107e8578063bf56b3711461081b578063ca33e64c14610830578063d375557e14610845578063d51ed1c81461085a57610288565b806395d89b411461070b5780639d1944f514610720578063a4b45c001461074a578063a8aa1b3114610785578063a9059cbb1461079a57610288565b80632d48e896116101f35780635c85974f116101ac5780635c85974f14610618578063658d4b7f146106425780636ddd17131461067d57806370a08231146106925780637d1db4a5146106c5578063893d20e8146106da57610288565b80632d48e896146105105780632f54bf6e14610540578063313ce567146105735780633bb8a8d41461059e57806342bfb46c146105b3578063571ac8b0146105e557610288565b80631161ae39116102455780631161ae391461040d57806318160ddd1461043d578063201e7991146104525780632375ce401461048257806323b872dd146104b85780632b112e49146104fb57610288565b80630445b6671461028d578063048c7baf146102b457806304a66b48146102f457806306fdde0314610336578063095ea7b3146103c057610288565b3661028857005b600080fd5b34801561029957600080fd5b506102a2610a9e565b60408051918252519081900360200190f35b3480156102c057600080fd5b506102f2600480360360808110156102d757600080fd5b50803515159060208101359060408101359060600135610aa4565b005b34801561030057600080fd5b506102f2600480360360a081101561031757600080fd5b5080359060208101359060408101359060608101359060800135610b15565b34801561034257600080fd5b5061034b610ba7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561038557818101518382015260200161036d565b50505050905090810190601f1680156103b25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103cc57600080fd5b506103f9600480360360408110156103e357600080fd5b506001600160a01b038135169060200135610bc6565b604080519115158252519081900360200190f35b34801561041957600080fd5b506103f96004803603604081101561043057600080fd5b5080359060200135610c2d565b34801561044957600080fd5b506102a2610c41565b34801561045e57600080fd5b506102f26004803603604081101561047557600080fd5b5080359060200135610c47565b34801561048e57600080fd5b506102f2600480360360608110156104a557600080fd5b5080359060208101359060400135610c9a565b3480156104c457600080fd5b506103f9600480360360608110156104db57600080fd5b506001600160a01b03813581169160208101359091169060400135610d12565b34801561050757600080fd5b506102a2610dd4565b34801561051c57600080fd5b506102f26004803603604081101561053357600080fd5b5080359060200135610e1d565b34801561054c57600080fd5b506103f96004803603602081101561056357600080fd5b50356001600160a01b0316610ed3565b34801561057f57600080fd5b50610588610eea565b6040805160ff9092168252519081900360200190f35b3480156105aa57600080fd5b506103f9610eef565b3480156105bf57600080fd5b506102f2600480360360408110156105d657600080fd5b50803590602001351515610ef8565b3480156105f157600080fd5b506103f96004803603602081101561060857600080fd5b50356001600160a01b0316610f9b565b34801561062457600080fd5b506102f26004803603602081101561063b57600080fd5b5035610fa9565b34801561064e57600080fd5b506102f26004803603604081101561066557600080fd5b506001600160a01b0381351690602001351515611010565b34801561068957600080fd5b506103f9611083565b34801561069e57600080fd5b506102a2600480360360208110156106b557600080fd5b50356001600160a01b031661108c565b3480156106d157600080fd5b506102a26110a7565b3480156106e657600080fd5b506106ef6110ad565b604080516001600160a01b039092168252519081900360200190f35b34801561071757600080fd5b5061034b6110bc565b34801561072c57600080fd5b506102f26004803603602081101561074357600080fd5b50356110db565b34801561075657600080fd5b506102f26004803603604081101561076d57600080fd5b506001600160a01b0381358116916020013516611137565b34801561079157600080fd5b506106ef6111ad565b3480156107a657600080fd5b506103f9600480360360408110156107bd57600080fd5b506001600160a01b0381351690602001356111bc565b3480156107df57600080fd5b506102f26111c9565b3480156107f457600080fd5b506102f26004803603602081101561080b57600080fd5b50356001600160a01b0316611218565b34801561082757600080fd5b506102a2611282565b34801561083c57600080fd5b506106ef611288565b34801561085157600080fd5b506106ef611297565b34801561086657600080fd5b506102a26004803603602081101561087d57600080fd5b5035611314565b34801561089057600080fd5b506102a2611354565b3480156108a557600080fd5b506102a2600480360360408110156108bc57600080fd5b506001600160a01b03813581169160200135166113c7565b3480156108e057600080fd5b506102f2600480360360408110156108f757600080fd5b508035151590602001356113f2565b34801561091257600080fd5b506106ef611451565b34801561092757600080fd5b506102f26004803603602081101561093e57600080fd5b50356001600160a01b0316611460565b34801561095a57600080fd5b506102a26004803603602081101561097157600080fd5b503515156114c4565b34801561098657600080fd5b506102f26004803603602081101561099d57600080fd5b50356001600160a01b031661151e565b3480156109b957600080fd5b506102f2600480360360208110156109d057600080fd5b50356001600160a01b03166115cf565b3480156109ec57600080fd5b506102f260048036036040811015610a0357600080fd5b506001600160a01b038135169060200135151561163b565b348015610a2757600080fd5b506102f260048036036040811015610a3e57600080fd5b506001600160a01b03813516906020013515156117b3565b348015610a6257600080fd5b506106ef611826565b348015610a7757600080fd5b506103f960048036036020811015610a8e57600080fd5b50356001600160a01b0316611835565b60275481565b610aad33611835565b610aec576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b601e805460ff191694151594909417909355601f91909155600060205560215560225543602355565b610b1e33611835565b610b5d576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b600d859055600e849055600f8390556010829055610b8782610b8185818989611853565b90611853565b60115560128190556004810460115410610ba057600080fd5b5050505050565b604080518082019091526005815264487964726160d81b602082015290565b3360008181526009602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b600082610c3983611314565b119392505050565b60065490565b610c5033611835565b610c8f576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b601591909155601655565b610ca333611835565b610ce2576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6002828481610ced57fe5b0411158015610cfb57508183115b610d0457600080fd5b601a92909255601b55601d55565b6001600160a01b038316600090815260096020908152604080832033845290915281205460001914610dbf576040805180820182526016815275496e73756666696369656e7420416c6c6f77616e636560501b6020808301919091526001600160a01b0387166000908152600982528381203382529091529190912054610d9a9184906118ad565b6001600160a01b03851660009081526009602090815260408083203384529091529020555b610dca848484611944565b90505b9392505050565b600554600090610e1890610df0906001600160a01b031661108c565b600454610e1290610e09906001600160a01b031661108c565b60065490611c92565b90611c92565b905090565b610e2633611835565b610e65576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b60248054604080516316a4744b60e11b815260048101869052928301849052516001600160a01b0390911691632d48e89691604480830192600092919082900301818387803b158015610eb757600080fd5b505af1158015610ecb573d6000803e3d6000fd5b505050505050565b6000546001600160a01b038281169116145b919050565b600990565b601e5460ff1681565b610f0133611835565b610f40576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b600454610f579083906001600160a01b0316611cd4565b8015610f975742601c55601d5460408051918252517f39d2389ec5c1fa77b2c0d374bc61b6d7bd97ccba280fcdeb4e9c7644898d7c3a9181900360200190a15b5050565b6000610c2782600019610bc6565b610fb233611835565b610ff1576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6103e860065481610ffe57fe5b0481101561100b57600080fd5b600755565b61101933611835565b611058576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b60265460ff1681565b6001600160a01b031660009081526008602052604090205490565b60075481565b6000546001600160a01b031690565b604080518082019091526005815264485944524160d81b602082015290565b6110e433611835565b611123576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b620b71b0811061113257600080fd5b602555565b61114033611835565b61117f576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b601380546001600160a01b039384166001600160a01b03199182161790915560148054929093169116179055565b6018546001600160a01b031681565b6000610dcd338484611944565b6111d233611835565b611211576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6000601c55565b61122133610ed3565b61125b576040805162461bcd60e51b815260206004820152600660248201526510a7aba722a960d11b604482015290519081900360640190fd5b6001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b60195481565b6013546001600160a01b031681565b6024805460408051632335907360e01b815233600482015290516000936001600160a01b0390931692632335907392808201926020929091829003018186803b1580156112e357600080fd5b505afa1580156112f7573d6000803e3d6000fd5b505050506040513d602081101561130d57600080fd5b5051905090565b6000610c27611321610dd4565b60185461134e9061134790600290611341906001600160a01b031661108c565b90611e2b565b8590611e2b565b90611e84565b60008061137242610e12601d54601c5461185390919063ffffffff16565b90506000611399601154610e12601b5461134e601a54601154611e2b90919063ffffffff16565b90506113c06113b7601d5461134e8585611e2b90919063ffffffff16565b60115490611853565b9250505090565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6113fb33611835565b61143a576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6026805460ff191692151592909217909155602755565b6014546001600160a01b031681565b61146933610ed3565b6114a3576040805162461bcd60e51b815260206004820152600660248201526510a7aba722a960d11b604482015290519081900360640190fd5b6001600160a01b03166000908152600160205260409020805460ff19169055565b600043601954600101106114e7576012546114e0906001611c92565b9050610ee5565b818015611509575042611507601d54601c5461185390919063ffffffff16565b115b15611516576114e0611354565b505060115490565b61152733610ed3565b611561576040805162461bcd60e51b815260206004820152600660248201526510a7aba722a960d11b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038316908117825580825260016020818152604093849020805460ff1916909217909155825191825291517f04dba622d284ed0014ee4b9a6a68386be1a4c08a4913ae272de89199cc686163929181900390910190a150565b602480546040805163bb135c4b60e01b81523360048201526001600160a01b03858116948201949094529051929091169163bb135c4b9160448082019260009290919082900301818387803b15801561162757600080fd5b505af1158015610ba0573d6000803e3d6000fd5b61164433611835565b611683576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6001600160a01b03821630148015906116aa57506018546001600160a01b03838116911614155b6116b357600080fd5b6001600160a01b0382166000908152600c60205260409020805460ff19168215801591909117909155611750576024805460408051630a5b654b60e11b81526001600160a01b0386811660048301526000948201859052915191909216926314b6ca96926044808201939182900301818387803b15801561173357600080fd5b505af1158015611747573d6000803e3d6000fd5b50505050610f97565b602480546001600160a01b03848116600081815260086020526040808220548151630a5b654b60e11b8152600481019490945295830195909552935191909216926314b6ca96926044808201939182900301818387803b158015610eb757600080fd5b6117bc33611835565b6117fb576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6017546001600160a01b031681565b6001600160a01b031660009081526001602052604090205460ff1690565b600082820183811015610dcd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818484111561193c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119015781810151838201526020016118e9565b50505050905090810190601f16801561192e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60285460009060ff16156119645761195d848484611ec6565b9050610dcd565b61196e8483611fa7565b611976612015565b1561198357611983612064565b61198b612442565b1561199857611998612494565b6119a06124db565b1580156119ba57506018546001600160a01b038481169116145b156119e9576001600160a01b0384166000908152600860205260409020546119e157600080fd5b6119e96124e3565b6040805180820182526014815273496e73756666696369656e742042616c616e636560601b6020808301919091526001600160a01b038716600090815260089091529190912054611a3b9184906118ad565b6001600160a01b038516600090815260086020526040812091909155611a60856124e9565b611a6a5782611a75565b611a75858585612508565b6001600160a01b038516600090815260086020526040902054909150611a9b9082611853565b6001600160a01b038086166000908152600860209081526040808320949094559188168152600c909152205460ff16611b4457602480546001600160a01b03878116600081815260086020526040808220548151630a5b654b60e11b8152600481019490945295830195909552935191909216926314b6ca96926044808201939182900301818387803b158015611b3157600080fd5b505af1925050508015611b42575060015b505b6001600160a01b0384166000908152600c602052604090205460ff16611bda57602480546001600160a01b03868116600081815260086020526040808220548151630a5b654b60e11b8152600481019490945295830195909552935191909216926314b6ca96926044808201939182900301818387803b158015611bc757600080fd5b505af1925050508015611bd8575060015b505b60248054602554604080516001624d3b8760e01b031981526004810192909252516001600160a01b039092169263ffb2c47992828201926000929082900301818387803b158015611c2a57600080fd5b505af1925050508015611c3b575060015b50836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3506001949350505050565b6000610dcd83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506118ad565b6028805460ff19166001179055604080516002808252606082018352600092602083019080368337505060035482519293506001600160a01b031691839150600090611d1c57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110611d4a57fe5b6001600160a01b0392831660209182029290920181019190915260175460405163b6f9de9560e01b815260006004820181815287861660448401524260648401819052608060248501908152885160848601528851959097169663b6f9de95968b9694958a958c95939260a49092019187810191028083838b5b83811015611ddc578181015183820152602001611dc4565b50505050905001955050505050506000604051808303818588803b158015611e0357600080fd5b505af1158015611e17573d6000803e3d6000fd5b50506028805460ff19169055505050505050565b600082611e3a57506000610c27565b82820282848281611e4757fe5b0414610dcd5760405162461bcd60e51b81526004018080602001828103825260218152602001806126256021913960400191505060405180910390fd5b6000610dcd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506125bf565b6040805180820182526014815273496e73756666696369656e742042616c616e636560601b6020808301919091526001600160a01b0386166000908152600890915291822054611f179184906118ad565b6001600160a01b038086166000908152600860205260408082209390935590851681522054611f469083611853565b6001600160a01b0380851660008181526008602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60075481111580611fd057506001600160a01b0382166000908152600b602052604090205460ff165b610f97576040805162461bcd60e51b8152602060048201526011602482015270151608131a5b5a5d08115e18d959591959607a1b604482015290519081900360640190fd5b6018546000906001600160a01b03163314801590612036575060285460ff16155b8015612044575060265460ff165b8015610e1857505060275430600090815260086020526040902054101590565b6028805460ff1916600117905560155460165460009161208391610c2d565b61208f57600d54612092565b60005b905060006120b6600261134e60115461134e86602754611e2b90919063ffffffff16565b905060006120cf82602754611c9290919063ffffffff16565b6040805160028082526060820183529293506000929091602083019080368337019050509050308160008151811061210357fe5b6001600160a01b03928316602091820292909201015260035482519116908290600190811061212e57fe5b6001600160a01b0392831660209182029290920181019190915260175460405163791ac94760e01b8152600481018681526000602483018190523060648401819052426084850181905260a060448601908152895160a487015289514799979097169763791ac947978c9795968c9690939260c49091019187820191028083838b5b838110156121c85781810151838201526020016121b0565b505050509050019650505050505050600060405180830381600087803b1580156121f157600080fd5b505af1158015612205573d6000803e3d6000fd5b50505050600061221e8247611c9290919063ffffffff16565b90506000612239612230886002611e84565b60115490611c92565b9050600061224e600261134e8481878d611e2b565b9050600061226b8361134e600f5487611e2b90919063ffffffff16565b905060006122888461134e60105488611e2b90919063ffffffff16565b9050602460009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156122da57600080fd5b505af1935050505080156122ec575060015b506014546040516001600160a01b03909116906175309083906000818181858888f193505050503d806000811461233f576040519150601f19603f3d011682016040523d82523d6000602084013e612344565b606091505b50508915905061242c576017546013546040805163f305d71960e01b8152306004820152602481018d905260006044820181905260648201526001600160a01b0392831660848201524260a48201529051919092169163f305d71991869160c48082019260609290919082900301818588803b1580156123c357600080fd5b505af11580156123d7573d6000803e3d6000fd5b50505050506040513d60608110156123ee57600080fd5b505060408051848152602081018b905281517f424db2872186fa7e7afa7a5e902ed3b49a2ef19c2f5431e672462495dd6b4506929181900390910190a15b50506028805460ff191690555050505050505050565b6018546000906001600160a01b03163314801590612463575060285460ff16155b80156124715750601e5460ff165b80156124835750436022546023540111155b8015610e1857505060215447101590565b6021546004546124ad91906001600160a01b0316611cd4565b436023556021546020546124c091611853565b6020819055601f5410156124d957601e805460ff191690555b565b601954151590565b43601955565b6001600160a01b03166000908152600a602052604090205460ff161590565b601254601854600091829161253a919061134e90612533906001600160a01b038981169116146114c4565b8690611e2b565b306000908152600860205260409020549091506125579082611853565b30600081815260086020908152604091829020939093558051848152905191926001600160a01b038916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36125b68382611c92565b95945050505050565b6000818361260e5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156119015781810151838201526020016118e9565b50600083858161261a57fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220edfbe2a5807df3e0ebcbecc7402af5e62440388d6387c1edb7b3b1931a21465864736f6c634300070600336080604052600180546001600160a01b031990811673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48179091556002805490911673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790556ec097ce7bc90715b34b9f1000000000600d55610e10600e55670de0b6b3a7640000600f5534801561007d57600080fd5b506040516111ff3803806111ff833981810160405260208110156100a057600080fd5b50516001600160a01b0381166100ca57737a250d5630b4cf539739df2c5dacb4c659f2488d6100cc565b805b600380546001600160a01b03929092166001600160a01b03199283161790556000805490911633179055506110f9806101066000396000f3fe6080604052600436106100f35760003560e01c8063bb135c4b1161008a578063efca2eed11610059578063efca2eed146102f4578063f0fc6bca14610309578063ffb2c4791461031e578063ffd49c8414610348576100f3565b8063bb135c4b1461024b578063ce7c2ac214610286578063d0e30db0146102d7578063e2d2e219146102df576100f3565b80632d48e896116100c65780632d48e896146101dc5780633a98ef391461020c5780634fab0ae814610221578063997664d714610236576100f3565b806311ce023d146100f857806314b6ca961461011f578063233590731461015a57806328fd3198146101a9575b600080fd5b34801561010457600080fd5b5061010d61035d565b60408051918252519081900360200190f35b34801561012b57600080fd5b506101586004803603604081101561014257600080fd5b506001600160a01b038135169060200135610363565b005b34801561016657600080fd5b5061018d6004803603602081101561017d57600080fd5b50356001600160a01b0316610488565b604080516001600160a01b039092168252519081900360200190f35b3480156101b557600080fd5b5061010d600480360360208110156101cc57600080fd5b50356001600160a01b03166104c2565b3480156101e857600080fd5b50610158600480360360408110156101ff57600080fd5b508035906020013561054c565b34801561021857600080fd5b5061010d61056e565b34801561022d57600080fd5b5061010d610574565b34801561024257600080fd5b5061010d61057a565b34801561025757600080fd5b506101586004803603604081101561026e57600080fd5b506001600160a01b0381358116916020013516610580565b34801561029257600080fd5b506102b9600480360360208110156102a957600080fd5b50356001600160a01b03166105c5565b60408051938452602084019290925282820152519081900360600190f35b6101586105e6565b3480156102eb57600080fd5b5061010d610878565b34801561030057600080fd5b5061010d61087e565b34801561031557600080fd5b50610158610884565b34801561032a57600080fd5b506101586004803603602081101561034157600080fd5b503561088f565b34801561035457600080fd5b5061010d610971565b600d5481565b6000546001600160a01b0316331461037a57600080fd5b6001600160a01b038216600090815260086020526040902054156103a1576103a182610977565b6000811180156103c757506001600160a01b038216600090815260086020526040902054155b156103da576103d582610a27565b61040d565b801580156103ff57506001600160a01b03821660009081526008602052604090205415155b1561040d5761040d82610a88565b6001600160a01b03821660009081526008602052604090205460095461043e91839161043891610b75565b90610bc0565b6009556001600160a01b038216600090815260086020526040902081905561046581610c1a565b6001600160a01b0390921660009081526008602052604090206001019190915550565b600080546001600160a01b031633146104a057600080fd5b506001600160a01b03808216600090815260076020526040902054165b919050565b6001600160a01b0381166000908152600860205260408120546104e7575060006104bd565b6001600160a01b03821660009081526008602052604081205461050990610c1a565b6001600160a01b03841660009081526008602052604090206001015490915080821161053a576000925050506104bd565b6105448282610b75565b949350505050565b6000546001600160a01b0316331461056357600080fd5b600e91909155600f55565b60095481565b600f5481565b600a5481565b6000546001600160a01b0316331461059757600080fd5b6001600160a01b03918216600090815260076020526040902080546001600160a01b03191691909216179055565b60086020526000908152604090208054600182015460029092015490919083565b6000546001600160a01b031633146105fd57600080fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561064857600080fd5b505afa15801561065c573d6000803e3d6000fd5b505050506040513d602081101561067257600080fd5b50516040805160028082526060820183529293506000929091602083019080368337505060025482519293506001600160a01b0316918391506000906106b457fe5b6001600160a01b03928316602091820292909201015260018054835192169183919081106106de57fe5b6001600160a01b0392831660209182029290920181019190915260035460405163b6f9de9560e01b815260006004820181815230604484018190524260648501819052608060248601908152895160848701528951969098169763b6f9de9597349795968b969495939460a49091019187810191028083838b5b83811015610770578181015183820152602001610758565b50505050905001955050505050506000604051808303818588803b15801561079757600080fd5b505af11580156107ab573d6000803e3d6000fd5b5050600154604080516370a0823160e01b815230600482015290516000955061083694508793506001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561080457600080fd5b505afa158015610818573d6000803e3d6000fd5b505050506040513d602081101561082e57600080fd5b505190610b75565b600a549091506108469082610bc0565b600a55600954600d5461087091610867916108619085610c37565b90610c90565b600c5490610bc0565b600c55505050565b600c5481565b600b5481565b61088d33610977565b565b6000546001600160a01b031633146108a657600080fd5b600454806108b4575061096e565b6000805a905060005b84831080156108cb57508381105b156109695783601054106108df5760006010555b61090b6004601054815481106108f157fe5b6000918252602090912001546001600160a01b0316610cd2565b1561093c5761093c60046010548154811061092257fe5b6000918252602090912001546001600160a01b0316610977565b61095161094a5a8490610b75565b8490610bc0565b92505a601080546001908101909155909250016108bd565b505050505b50565b600e5481565b6001600160a01b0381166000908152600860205260409020546109995761096e565b60006109a4826104c2565b90508015610a2357600b546109b99082610bc0565b600b556109c68282610d0e565b6001600160a01b038216600090815260066020908152604080832042905560089091529020600201546109f99082610bc0565b6001600160a01b038316600090815260086020526040902060028101919091555461046590610c1a565b5050565b600480546001600160a01b039092166000818152600560205260408120849055600184018355919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90910180546001600160a01b0319169091179055565b600480546000198101908110610a9a57fe5b60009182526020808320909101546001600160a01b0384811684526005909252604090922054600480549290931692918110610ad257fe5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559183168152600591829052604081205460048054919392916000198101908110610b2057fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020556004805480610b5057fe5b600082815260209020810160001990810180546001600160a01b031916905501905550565b6000610bb783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610fa6565b90505b92915050565b600082820183811015610bb7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000610bba600d54610861600c5485610c3790919063ffffffff16565b600082610c4657506000610bba565b82820282848281610c5357fe5b0414610bb75760405162461bcd60e51b81526004018080602001828103825260218152602001806110a36021913960400191505060405180910390fd5b6000610bb783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061103d565b600e546001600160a01b0382166000908152600660205260408120549091429101108015610bba5750600f54610d07836104c2565b1192915050565b6001600160a01b038083166000908152600760205260409020541680610db6576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015610d8457600080fd5b505af1158015610d98573d6000803e3d6000fd5b505050506040513d6020811015610dae57600080fd5b50610fa19050565b604080516002808252606082018352600092602083019080368337505060015482519293506001600160a01b031691839150600090610df157fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508181600181518110610e1f57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050600360009054906101000a90046001600160a01b03166001600160a01b0316635c11d7958460008488426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015610ed9578181015183820152602001610ec1565b505050509050019650505050505050600060405180830381600087803b158015610f0257600080fd5b505af1925050508015610f13575060015b610f9f576001546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015610f6d57600080fd5b505af1158015610f81573d6000803e3d6000fd5b505050506040513d6020811015610f9757600080fd5b50610f9f9050565b505b505050565b600081848411156110355760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ffa578181015183820152602001610fe2565b50505050905090810190601f1680156110275780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361108c5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610ffa578181015183820152602001610fe2565b50600083858161109857fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122078d216222098abcea2741699f3ce5a88578519c76fc8b6867b75bea21cb0a57864736f6c63430007060033

Deployed Bytecode

0x6080604052600436106102815760003560e01c806395d89b411161014f578063d806d12f116100c1578063f2fde38b1161007a578063f2fde38b1461097a578063f406607f146109ad578063f708a64f146109e0578063f84ba65d14610a1b578063f887ea4014610a56578063fe9fbb8014610a6b57610288565b8063d806d12f14610884578063dd62ed3e14610899578063df20fd49146108d4578063e96fada214610906578063f0b37c041461091b578063f1f3bca31461094e57610288565b8063b210b06d11610113578063b210b06d146107d3578063b6a5d7de146107e8578063bf56b3711461081b578063ca33e64c14610830578063d375557e14610845578063d51ed1c81461085a57610288565b806395d89b411461070b5780639d1944f514610720578063a4b45c001461074a578063a8aa1b3114610785578063a9059cbb1461079a57610288565b80632d48e896116101f35780635c85974f116101ac5780635c85974f14610618578063658d4b7f146106425780636ddd17131461067d57806370a08231146106925780637d1db4a5146106c5578063893d20e8146106da57610288565b80632d48e896146105105780632f54bf6e14610540578063313ce567146105735780633bb8a8d41461059e57806342bfb46c146105b3578063571ac8b0146105e557610288565b80631161ae39116102455780631161ae391461040d57806318160ddd1461043d578063201e7991146104525780632375ce401461048257806323b872dd146104b85780632b112e49146104fb57610288565b80630445b6671461028d578063048c7baf146102b457806304a66b48146102f457806306fdde0314610336578063095ea7b3146103c057610288565b3661028857005b600080fd5b34801561029957600080fd5b506102a2610a9e565b60408051918252519081900360200190f35b3480156102c057600080fd5b506102f2600480360360808110156102d757600080fd5b50803515159060208101359060408101359060600135610aa4565b005b34801561030057600080fd5b506102f2600480360360a081101561031757600080fd5b5080359060208101359060408101359060608101359060800135610b15565b34801561034257600080fd5b5061034b610ba7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561038557818101518382015260200161036d565b50505050905090810190601f1680156103b25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103cc57600080fd5b506103f9600480360360408110156103e357600080fd5b506001600160a01b038135169060200135610bc6565b604080519115158252519081900360200190f35b34801561041957600080fd5b506103f96004803603604081101561043057600080fd5b5080359060200135610c2d565b34801561044957600080fd5b506102a2610c41565b34801561045e57600080fd5b506102f26004803603604081101561047557600080fd5b5080359060200135610c47565b34801561048e57600080fd5b506102f2600480360360608110156104a557600080fd5b5080359060208101359060400135610c9a565b3480156104c457600080fd5b506103f9600480360360608110156104db57600080fd5b506001600160a01b03813581169160208101359091169060400135610d12565b34801561050757600080fd5b506102a2610dd4565b34801561051c57600080fd5b506102f26004803603604081101561053357600080fd5b5080359060200135610e1d565b34801561054c57600080fd5b506103f96004803603602081101561056357600080fd5b50356001600160a01b0316610ed3565b34801561057f57600080fd5b50610588610eea565b6040805160ff9092168252519081900360200190f35b3480156105aa57600080fd5b506103f9610eef565b3480156105bf57600080fd5b506102f2600480360360408110156105d657600080fd5b50803590602001351515610ef8565b3480156105f157600080fd5b506103f96004803603602081101561060857600080fd5b50356001600160a01b0316610f9b565b34801561062457600080fd5b506102f26004803603602081101561063b57600080fd5b5035610fa9565b34801561064e57600080fd5b506102f26004803603604081101561066557600080fd5b506001600160a01b0381351690602001351515611010565b34801561068957600080fd5b506103f9611083565b34801561069e57600080fd5b506102a2600480360360208110156106b557600080fd5b50356001600160a01b031661108c565b3480156106d157600080fd5b506102a26110a7565b3480156106e657600080fd5b506106ef6110ad565b604080516001600160a01b039092168252519081900360200190f35b34801561071757600080fd5b5061034b6110bc565b34801561072c57600080fd5b506102f26004803603602081101561074357600080fd5b50356110db565b34801561075657600080fd5b506102f26004803603604081101561076d57600080fd5b506001600160a01b0381358116916020013516611137565b34801561079157600080fd5b506106ef6111ad565b3480156107a657600080fd5b506103f9600480360360408110156107bd57600080fd5b506001600160a01b0381351690602001356111bc565b3480156107df57600080fd5b506102f26111c9565b3480156107f457600080fd5b506102f26004803603602081101561080b57600080fd5b50356001600160a01b0316611218565b34801561082757600080fd5b506102a2611282565b34801561083c57600080fd5b506106ef611288565b34801561085157600080fd5b506106ef611297565b34801561086657600080fd5b506102a26004803603602081101561087d57600080fd5b5035611314565b34801561089057600080fd5b506102a2611354565b3480156108a557600080fd5b506102a2600480360360408110156108bc57600080fd5b506001600160a01b03813581169160200135166113c7565b3480156108e057600080fd5b506102f2600480360360408110156108f757600080fd5b508035151590602001356113f2565b34801561091257600080fd5b506106ef611451565b34801561092757600080fd5b506102f26004803603602081101561093e57600080fd5b50356001600160a01b0316611460565b34801561095a57600080fd5b506102a26004803603602081101561097157600080fd5b503515156114c4565b34801561098657600080fd5b506102f26004803603602081101561099d57600080fd5b50356001600160a01b031661151e565b3480156109b957600080fd5b506102f2600480360360208110156109d057600080fd5b50356001600160a01b03166115cf565b3480156109ec57600080fd5b506102f260048036036040811015610a0357600080fd5b506001600160a01b038135169060200135151561163b565b348015610a2757600080fd5b506102f260048036036040811015610a3e57600080fd5b506001600160a01b03813516906020013515156117b3565b348015610a6257600080fd5b506106ef611826565b348015610a7757600080fd5b506103f960048036036020811015610a8e57600080fd5b50356001600160a01b0316611835565b60275481565b610aad33611835565b610aec576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b601e805460ff191694151594909417909355601f91909155600060205560215560225543602355565b610b1e33611835565b610b5d576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b600d859055600e849055600f8390556010829055610b8782610b8185818989611853565b90611853565b60115560128190556004810460115410610ba057600080fd5b5050505050565b604080518082019091526005815264487964726160d81b602082015290565b3360008181526009602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b600082610c3983611314565b119392505050565b60065490565b610c5033611835565b610c8f576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b601591909155601655565b610ca333611835565b610ce2576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6002828481610ced57fe5b0411158015610cfb57508183115b610d0457600080fd5b601a92909255601b55601d55565b6001600160a01b038316600090815260096020908152604080832033845290915281205460001914610dbf576040805180820182526016815275496e73756666696369656e7420416c6c6f77616e636560501b6020808301919091526001600160a01b0387166000908152600982528381203382529091529190912054610d9a9184906118ad565b6001600160a01b03851660009081526009602090815260408083203384529091529020555b610dca848484611944565b90505b9392505050565b600554600090610e1890610df0906001600160a01b031661108c565b600454610e1290610e09906001600160a01b031661108c565b60065490611c92565b90611c92565b905090565b610e2633611835565b610e65576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b60248054604080516316a4744b60e11b815260048101869052928301849052516001600160a01b0390911691632d48e89691604480830192600092919082900301818387803b158015610eb757600080fd5b505af1158015610ecb573d6000803e3d6000fd5b505050505050565b6000546001600160a01b038281169116145b919050565b600990565b601e5460ff1681565b610f0133611835565b610f40576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b600454610f579083906001600160a01b0316611cd4565b8015610f975742601c55601d5460408051918252517f39d2389ec5c1fa77b2c0d374bc61b6d7bd97ccba280fcdeb4e9c7644898d7c3a9181900360200190a15b5050565b6000610c2782600019610bc6565b610fb233611835565b610ff1576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6103e860065481610ffe57fe5b0481101561100b57600080fd5b600755565b61101933611835565b611058576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b60265460ff1681565b6001600160a01b031660009081526008602052604090205490565b60075481565b6000546001600160a01b031690565b604080518082019091526005815264485944524160d81b602082015290565b6110e433611835565b611123576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b620b71b0811061113257600080fd5b602555565b61114033611835565b61117f576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b601380546001600160a01b039384166001600160a01b03199182161790915560148054929093169116179055565b6018546001600160a01b031681565b6000610dcd338484611944565b6111d233611835565b611211576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6000601c55565b61122133610ed3565b61125b576040805162461bcd60e51b815260206004820152600660248201526510a7aba722a960d11b604482015290519081900360640190fd5b6001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b60195481565b6013546001600160a01b031681565b6024805460408051632335907360e01b815233600482015290516000936001600160a01b0390931692632335907392808201926020929091829003018186803b1580156112e357600080fd5b505afa1580156112f7573d6000803e3d6000fd5b505050506040513d602081101561130d57600080fd5b5051905090565b6000610c27611321610dd4565b60185461134e9061134790600290611341906001600160a01b031661108c565b90611e2b565b8590611e2b565b90611e84565b60008061137242610e12601d54601c5461185390919063ffffffff16565b90506000611399601154610e12601b5461134e601a54601154611e2b90919063ffffffff16565b90506113c06113b7601d5461134e8585611e2b90919063ffffffff16565b60115490611853565b9250505090565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6113fb33611835565b61143a576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6026805460ff191692151592909217909155602755565b6014546001600160a01b031681565b61146933610ed3565b6114a3576040805162461bcd60e51b815260206004820152600660248201526510a7aba722a960d11b604482015290519081900360640190fd5b6001600160a01b03166000908152600160205260409020805460ff19169055565b600043601954600101106114e7576012546114e0906001611c92565b9050610ee5565b818015611509575042611507601d54601c5461185390919063ffffffff16565b115b15611516576114e0611354565b505060115490565b61152733610ed3565b611561576040805162461bcd60e51b815260206004820152600660248201526510a7aba722a960d11b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038316908117825580825260016020818152604093849020805460ff1916909217909155825191825291517f04dba622d284ed0014ee4b9a6a68386be1a4c08a4913ae272de89199cc686163929181900390910190a150565b602480546040805163bb135c4b60e01b81523360048201526001600160a01b03858116948201949094529051929091169163bb135c4b9160448082019260009290919082900301818387803b15801561162757600080fd5b505af1158015610ba0573d6000803e3d6000fd5b61164433611835565b611683576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6001600160a01b03821630148015906116aa57506018546001600160a01b03838116911614155b6116b357600080fd5b6001600160a01b0382166000908152600c60205260409020805460ff19168215801591909117909155611750576024805460408051630a5b654b60e11b81526001600160a01b0386811660048301526000948201859052915191909216926314b6ca96926044808201939182900301818387803b15801561173357600080fd5b505af1158015611747573d6000803e3d6000fd5b50505050610f97565b602480546001600160a01b03848116600081815260086020526040808220548151630a5b654b60e11b8152600481019490945295830195909552935191909216926314b6ca96926044808201939182900301818387803b158015610eb757600080fd5b6117bc33611835565b6117fb576040805162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6017546001600160a01b031681565b6001600160a01b031660009081526001602052604090205460ff1690565b600082820183811015610dcd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818484111561193c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119015781810151838201526020016118e9565b50505050905090810190601f16801561192e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60285460009060ff16156119645761195d848484611ec6565b9050610dcd565b61196e8483611fa7565b611976612015565b1561198357611983612064565b61198b612442565b1561199857611998612494565b6119a06124db565b1580156119ba57506018546001600160a01b038481169116145b156119e9576001600160a01b0384166000908152600860205260409020546119e157600080fd5b6119e96124e3565b6040805180820182526014815273496e73756666696369656e742042616c616e636560601b6020808301919091526001600160a01b038716600090815260089091529190912054611a3b9184906118ad565b6001600160a01b038516600090815260086020526040812091909155611a60856124e9565b611a6a5782611a75565b611a75858585612508565b6001600160a01b038516600090815260086020526040902054909150611a9b9082611853565b6001600160a01b038086166000908152600860209081526040808320949094559188168152600c909152205460ff16611b4457602480546001600160a01b03878116600081815260086020526040808220548151630a5b654b60e11b8152600481019490945295830195909552935191909216926314b6ca96926044808201939182900301818387803b158015611b3157600080fd5b505af1925050508015611b42575060015b505b6001600160a01b0384166000908152600c602052604090205460ff16611bda57602480546001600160a01b03868116600081815260086020526040808220548151630a5b654b60e11b8152600481019490945295830195909552935191909216926314b6ca96926044808201939182900301818387803b158015611bc757600080fd5b505af1925050508015611bd8575060015b505b60248054602554604080516001624d3b8760e01b031981526004810192909252516001600160a01b039092169263ffb2c47992828201926000929082900301818387803b158015611c2a57600080fd5b505af1925050508015611c3b575060015b50836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3506001949350505050565b6000610dcd83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506118ad565b6028805460ff19166001179055604080516002808252606082018352600092602083019080368337505060035482519293506001600160a01b031691839150600090611d1c57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110611d4a57fe5b6001600160a01b0392831660209182029290920181019190915260175460405163b6f9de9560e01b815260006004820181815287861660448401524260648401819052608060248501908152885160848601528851959097169663b6f9de95968b9694958a958c95939260a49092019187810191028083838b5b83811015611ddc578181015183820152602001611dc4565b50505050905001955050505050506000604051808303818588803b158015611e0357600080fd5b505af1158015611e17573d6000803e3d6000fd5b50506028805460ff19169055505050505050565b600082611e3a57506000610c27565b82820282848281611e4757fe5b0414610dcd5760405162461bcd60e51b81526004018080602001828103825260218152602001806126256021913960400191505060405180910390fd5b6000610dcd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506125bf565b6040805180820182526014815273496e73756666696369656e742042616c616e636560601b6020808301919091526001600160a01b0386166000908152600890915291822054611f179184906118ad565b6001600160a01b038086166000908152600860205260408082209390935590851681522054611f469083611853565b6001600160a01b0380851660008181526008602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60075481111580611fd057506001600160a01b0382166000908152600b602052604090205460ff165b610f97576040805162461bcd60e51b8152602060048201526011602482015270151608131a5b5a5d08115e18d959591959607a1b604482015290519081900360640190fd5b6018546000906001600160a01b03163314801590612036575060285460ff16155b8015612044575060265460ff165b8015610e1857505060275430600090815260086020526040902054101590565b6028805460ff1916600117905560155460165460009161208391610c2d565b61208f57600d54612092565b60005b905060006120b6600261134e60115461134e86602754611e2b90919063ffffffff16565b905060006120cf82602754611c9290919063ffffffff16565b6040805160028082526060820183529293506000929091602083019080368337019050509050308160008151811061210357fe5b6001600160a01b03928316602091820292909201015260035482519116908290600190811061212e57fe5b6001600160a01b0392831660209182029290920181019190915260175460405163791ac94760e01b8152600481018681526000602483018190523060648401819052426084850181905260a060448601908152895160a487015289514799979097169763791ac947978c9795968c9690939260c49091019187820191028083838b5b838110156121c85781810151838201526020016121b0565b505050509050019650505050505050600060405180830381600087803b1580156121f157600080fd5b505af1158015612205573d6000803e3d6000fd5b50505050600061221e8247611c9290919063ffffffff16565b90506000612239612230886002611e84565b60115490611c92565b9050600061224e600261134e8481878d611e2b565b9050600061226b8361134e600f5487611e2b90919063ffffffff16565b905060006122888461134e60105488611e2b90919063ffffffff16565b9050602460009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156122da57600080fd5b505af1935050505080156122ec575060015b506014546040516001600160a01b03909116906175309083906000818181858888f193505050503d806000811461233f576040519150601f19603f3d011682016040523d82523d6000602084013e612344565b606091505b50508915905061242c576017546013546040805163f305d71960e01b8152306004820152602481018d905260006044820181905260648201526001600160a01b0392831660848201524260a48201529051919092169163f305d71991869160c48082019260609290919082900301818588803b1580156123c357600080fd5b505af11580156123d7573d6000803e3d6000fd5b50505050506040513d60608110156123ee57600080fd5b505060408051848152602081018b905281517f424db2872186fa7e7afa7a5e902ed3b49a2ef19c2f5431e672462495dd6b4506929181900390910190a15b50506028805460ff191690555050505050505050565b6018546000906001600160a01b03163314801590612463575060285460ff16155b80156124715750601e5460ff165b80156124835750436022546023540111155b8015610e1857505060215447101590565b6021546004546124ad91906001600160a01b0316611cd4565b436023556021546020546124c091611853565b6020819055601f5410156124d957601e805460ff191690555b565b601954151590565b43601955565b6001600160a01b03166000908152600a602052604090205460ff161590565b601254601854600091829161253a919061134e90612533906001600160a01b038981169116146114c4565b8690611e2b565b306000908152600860205260409020549091506125579082611853565b30600081815260086020908152604091829020939093558051848152905191926001600160a01b038916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36125b68382611c92565b95945050505050565b6000818361260e5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156119015781810151838201526020016118e9565b50600083858161261a57fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220edfbe2a5807df3e0ebcbecc7402af5e62440388d6387c1edb7b3b1931a21465864736f6c63430007060033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Hydra is here to use it’s powers and bring you an immortal smart-contract!

Validator Index Block Amount
View All Withdrawals

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

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