ETH Price: $3,183.02 (+4.10%)

Contract

0x5bCF2767F86f14eDd82053bfBfd5069F68C2C5F8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw112719652020-11-16 23:42:581519 days ago1605570178IN
Dap.ps: Discover
0 ETH0.0052116427
Withdraw105437882020-07-27 20:58:211631 days ago1595883501IN
Dap.ps: Discover
0 ETH0.0094474149.0001
Withdraw105437772020-07-27 20:55:361631 days ago1595883336IN
Dap.ps: Discover
0 ETH0.0086003150.0001
Set Metadata94818102020-02-14 14:58:131795 days ago1581692293IN
Dap.ps: Discover
0 ETH0.000156325
Set Metadata93268942020-01-21 19:58:581819 days ago1579636738IN
Dap.ps: Discover
0 ETH0.000062532
Set Metadata83552152019-08-15 12:55:131979 days ago1565873713IN
Dap.ps: Discover
0 ETH0.0000331
Withdraw83551982019-08-15 12:52:291979 days ago1565873549IN
Dap.ps: Discover
0 ETH0.000238831.5
Change Controlle...83544012019-08-15 9:44:161979 days ago1565862256IN
Dap.ps: Discover
0 ETH0.00002861

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Discover

Compiler Version
v0.5.2+commit.1df8f40c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MPL-2.0 license

Contract Source Code (Solidity Multiple files format)

File 1 of 11: Discover.sol
pragma solidity ^0.5.2;

import "./MiniMeTokenInterface.sol";
import "./ApproveAndCallFallBack.sol";
import "./SafeMath.sol";
import "./BancorFormula.sol";
import "./Controlled.sol";


contract Discover is Controlled, ApproveAndCallFallBack, BancorFormula {
    using SafeMath for uint;

    // Could be any MiniMe token
    MiniMeTokenInterface SNT;

    // Total SNT in circulation
    uint public total;

    // Parameter to calculate Max SNT any one DApp can stake
    uint public ceiling;

    // The max amount of tokens it is possible to stake, as a percentage of the total in circulation
    uint public max;

    // Decimal precision for this contract
    uint public decimals;

    // Prevents overflows in votesMinted
    uint public safeMax;

    // Whether we need more than an id param to identify arbitrary data must still be discussed.
    struct Data {
        address developer;
        bytes32 id;
        bytes32 metadata;
        uint balance;
        uint rate;
        uint available;
        uint votesMinted;
        uint votesCast;
        uint effectiveBalance;
    }

    Data[] public dapps;
    mapping(bytes32 => uint) public id2index;
    mapping(bytes32 => bool) public existingIDs;

    event DAppCreated(bytes32 indexed id, uint newEffectiveBalance);
    event Upvote(bytes32 indexed id, uint newEffectiveBalance);
    event Downvote(bytes32 indexed id, uint newEffectiveBalance);
    event Withdraw(bytes32 indexed id, uint newEffectiveBalance);
    event MetadataUpdated(bytes32 indexed id);
    event CeilingUpdated(uint oldCeiling, uint newCeiling);


    constructor(MiniMeTokenInterface _SNT) public {
        SNT = _SNT;

        total = 6804870174;

        ceiling = 292;   // See here for more: https://observablehq.com/@andytudhope/dapp-store-snt-curation-mechanism

        decimals = 1000000; // 4 decimal points for %, 2 because we only use 1/100th of total in circulation

        max = total.mul(ceiling).div(decimals);

        safeMax = uint(77).mul(max).div(100); // Limited by accuracy of BancorFormula
    }

    /**
     * @dev Update ceiling
     * @param _newCeiling New ceiling value
     */
    function setCeiling(uint _newCeiling) external onlyController {
        emit CeilingUpdated(ceiling, _newCeiling);

        ceiling = _newCeiling;
        max = total.mul(ceiling).div(decimals);
        safeMax = uint(77).mul(max).div(100);
    }

    /**
     * @dev Anyone can create a DApp (i.e an arb piece of data this contract happens to care about).
     * @param _id bytes32 unique identifier.
     * @param _amount of tokens to stake on initial ranking.
     * @param _metadata metadata hex string
     */
    function createDApp(bytes32 _id, uint _amount, bytes32 _metadata) external {
        _createDApp(
            msg.sender,
            _id,
            _amount,
            _metadata);
    }

    /**
     * @dev Sends SNT directly to the contract, not the developer. This gets added to the DApp's balance, no curve required.
     * @param _id bytes32 unique identifier.
     * @param _amount of tokens to stake on DApp's ranking. Used for upvoting + staking more.
     */
    function upvote(bytes32 _id, uint _amount) external {
        _upvote(msg.sender, _id, _amount);
    }

    /**
     * @dev Sends SNT to the developer and lowers the DApp's effective balance by 1%
     * @param _id bytes32 unique identifier.
     * @param _amount uint, included for approveAndCallFallBack
     */
    function downvote(bytes32 _id, uint _amount) external {
        _downvote(msg.sender, _id, _amount);
    }

    /**
     * @dev Developers can withdraw an amount not more than what was available of the
        SNT they originally staked minus what they have already received back in downvotes.
     * @param _id bytes32 unique identifier.
     * @return max SNT that can be withdrawn == available SNT for DApp.
     */
    function withdrawMax(bytes32 _id) external view returns(uint) {
        Data storage d = _getDAppById(_id);
        return d.available;
    }

    /**
     * @dev Developers can withdraw an amount not more than what was available of the
        SNT they originally staked minus what they have already received back in downvotes.
     * @param _id bytes32 unique identifier.
     * @param _amount of tokens to withdraw from DApp's overall balance.
     */
    function withdraw(bytes32 _id, uint _amount) external {

        Data storage d = _getDAppById(_id);

        uint256 tokensQuantity = _amount.div(1 ether);

        require(msg.sender == d.developer, "Only the developer can withdraw SNT staked on this data");
        require(tokensQuantity <= d.available, "You can only withdraw a percentage of the SNT staked, less what you have already received");

        uint precision;
        uint result;

        d.balance = d.balance.sub(tokensQuantity);
        d.rate = decimals.sub(d.balance.mul(decimals).div(max));
        d.available = d.balance.mul(d.rate);

        (result, precision) = BancorFormula.power(
            d.available,
            decimals,
            uint32(decimals),
            uint32(d.rate));

        d.votesMinted = result >> precision;
        if (d.votesCast > d.votesMinted) {
            d.votesCast = d.votesMinted;
        }

        uint temp1 = d.votesCast.mul(d.rate).mul(d.available);
        uint temp2 = d.votesMinted.mul(decimals).mul(decimals);
        uint effect = temp1.div(temp2);

        d.effectiveBalance = d.balance.sub(effect);

        require(SNT.transfer(d.developer, _amount), "Transfer failed");

        emit Withdraw(_id, d.effectiveBalance);
    }

    /**
     * dev Set the content for the dapp
     * @param _id bytes32 unique identifier.
     * @param _metadata metadata info
     */
    function setMetadata(bytes32 _id, bytes32 _metadata) external {
        uint dappIdx = id2index[_id];
        Data storage d = dapps[dappIdx];
        require(d.developer == msg.sender, "Only the developer can update the metadata");
        d.metadata = _metadata;
        emit MetadataUpdated(_id);
    }

    /**
     * @dev Used in UI in order to fetch all dapps
     * @return dapps count
     */
    function getDAppsCount() external view returns(uint) {
        return dapps.length;
    }

    /**
     * @notice Support for "approveAndCall".
     * @param _from Who approved.
     * @param _amount Amount being approved, needs to be equal `_amount` or `cost`.
     * @param _token Token being approved, needs to be `SNT`.
     * @param _data Abi encoded data with selector of `register(bytes32,address,bytes32,bytes32)`.
     */
    function receiveApproval(
        address _from,
        uint256 _amount,
        address _token,
        bytes calldata _data
    )
        external
    {
        require(_token == address(SNT), "Wrong token");
        require(_token == address(msg.sender), "Wrong account");
        require(_data.length <= 196, "Incorrect data");

        bytes4 sig;
        bytes32 id;
        uint256 amount;
        bytes32 metadata;

        (sig, id, amount, metadata) = abiDecodeRegister(_data);
        require(_amount == amount, "Wrong amount");

        if (sig == bytes4(0x7e38d973)) {
            _createDApp(
                _from,
                id,
                amount,
                metadata);
        } else if (sig == bytes4(0xac769090)) {
            _downvote(_from, id, amount);
        } else if (sig == bytes4(0x2b3df690)) {
            _upvote(_from, id, amount);
        } else {
            revert("Wrong method selector");
        }
    }

    /**
     * @dev Used in UI to display effect on ranking of user's donation
     * @param _id bytes32 unique identifier.
     * @param _amount of tokens to stake/"donate" to this DApp's ranking.
     * @return effect of donation on DApp's effectiveBalance
     */
    function upvoteEffect(bytes32 _id, uint _amount) external view returns(uint effect) {
        Data memory d = _getDAppById(_id);
        require(d.balance.add(_amount) <= safeMax, "You cannot upvote by this much, try with a lower amount");

        // Special case - no downvotes yet cast
        if (d.votesCast == 0) {
            return _amount;
        }

        uint precision;
        uint result;

        uint mBalance = d.balance.add(_amount);
        uint mRate = decimals.sub(mBalance.mul(decimals).div(max));
        uint mAvailable = mBalance.mul(mRate);

        (result, precision) = BancorFormula.power(
            mAvailable,
            decimals,
            uint32(decimals),
            uint32(mRate));

        uint mVMinted = result >> precision;

        uint temp1 = d.votesCast.mul(mRate).mul(mAvailable);
        uint temp2 = mVMinted.mul(decimals).mul(decimals);
        uint mEffect = temp1.div(temp2);

        uint mEBalance = mBalance.sub(mEffect);

        return (mEBalance.sub(d.effectiveBalance));
    }

     /**
     * @dev Downvotes always remove 1% of the current ranking.
     * @param _id bytes32 unique identifier.
     * @return balance_down_by, votes_required, cost
     */
    function downvoteCost(bytes32 _id) external view returns(uint b, uint vR, uint c) {
        Data memory d = _getDAppById(_id);
        return _downvoteCost(d);
    }

    function _createDApp(
        address _from,
        bytes32 _id,
        uint _amount,
        bytes32 _metadata
        )
      internal
      {
        require(!existingIDs[_id], "You must submit a unique ID");

        uint256 tokensQuantity = _amount.div(1 ether);

        require(tokensQuantity > 0, "You must spend some SNT to submit a ranking in order to avoid spam");
        require (tokensQuantity <= safeMax, "You cannot stake more SNT than the ceiling dictates");

        uint dappIdx = dapps.length;

        dapps.length++;

        Data storage d = dapps[dappIdx];
        d.developer = _from;
        d.id = _id;
        d.metadata = _metadata;

        uint precision;
        uint result;

        d.balance = tokensQuantity;
        d.rate = decimals.sub((d.balance).mul(decimals).div(max));
        d.available = d.balance.mul(d.rate);

        (result, precision) = BancorFormula.power(
            d.available,
            decimals,
            uint32(decimals),
            uint32(d.rate));

        d.votesMinted = result >> precision;
        d.votesCast = 0;
        d.effectiveBalance = tokensQuantity;

        id2index[_id] = dappIdx;
        existingIDs[_id] = true;

        require(SNT.transferFrom(_from, address(this), _amount), "Transfer failed");

        emit DAppCreated(_id, d.effectiveBalance);
    }

    function _upvote(address _from, bytes32 _id, uint _amount) internal {
        uint256 tokensQuantity = _amount.div(1 ether);
        require(tokensQuantity > 0, "You must send some SNT in order to upvote");

        Data storage d = _getDAppById(_id);

        require(d.balance.add(tokensQuantity) <= safeMax, "You cannot upvote by this much, try with a lower amount");

        uint precision;
        uint result;

        d.balance = d.balance.add(tokensQuantity);
        d.rate = decimals.sub((d.balance).mul(decimals).div(max));
        d.available = d.balance.mul(d.rate);

        (result, precision) = BancorFormula.power(
            d.available,
            decimals,
            uint32(decimals),
            uint32(d.rate));

        d.votesMinted = result >> precision;

        uint temp1 = d.votesCast.mul(d.rate).mul(d.available);
        uint temp2 = d.votesMinted.mul(decimals).mul(decimals);
        uint effect = temp1.div(temp2);

        d.effectiveBalance = d.balance.sub(effect);

        require(SNT.transferFrom(_from, address(this), _amount), "Transfer failed");

        emit Upvote(_id, d.effectiveBalance);
    }

    function _downvote(address _from, bytes32 _id, uint _amount) internal {
        uint256 tokensQuantity = _amount.div(1 ether);
        Data storage d = _getDAppById(_id);
        (uint b, uint vR, uint c) = _downvoteCost(d);

        require(tokensQuantity == c, "Incorrect amount: valid iff effect on ranking is 1%");

        d.available = d.available.sub(tokensQuantity);
        d.votesCast = d.votesCast.add(vR);
        d.effectiveBalance = d.effectiveBalance.sub(b);

        require(SNT.transferFrom(_from, d.developer, _amount), "Transfer failed");

        emit Downvote(_id, d.effectiveBalance);
    }

    function _downvoteCost(Data memory d) internal view returns(uint b, uint vR, uint c) {
        uint balanceDownBy = (d.effectiveBalance.div(100));
        uint votesRequired = (balanceDownBy.mul(d.votesMinted).mul(d.rate)).div(d.available);
        uint votesAvailable = d.votesMinted.sub(d.votesCast).sub(votesRequired);
        uint temp = (d.available.div(votesAvailable)).mul(votesRequired);
        uint cost = temp.div(decimals);
        return (balanceDownBy, votesRequired, cost);
    }

    /**
     * @dev Used internally in order to get a dapp while checking if it exists
     * @return existing dapp
     */
    function _getDAppById(bytes32 _id) internal view returns(Data storage d) {
        uint dappIdx = id2index[_id];
        d = dapps[dappIdx];
        require(d.id == _id, "Error fetching correct data");
    }

     /**
     * @dev Decodes abi encoded data with selector for "functionName(bytes32,uint256)".
     * @param _data Abi encoded data.
     * @return Decoded registry call.
     */
    function abiDecodeRegister(
        bytes memory _data
    )
        private
        pure
        returns(
            bytes4 sig,
            bytes32 id,
            uint256 amount,
            bytes32 metadata
        )
    {
        assembly {
            sig := mload(add(_data, add(0x20, 0)))
            id := mload(add(_data, 36))
            amount := mload(add(_data, 68))
            metadata := mload(add(_data, 100))
        }
    }
}

File 2 of 11: ApproveAndCallFallBack.sol
pragma solidity ^0.5.2;


contract ApproveAndCallFallBack {
    function receiveApproval(
        address from, 
        uint256 _amount, 
        address _token, 
        bytes calldata _data) external;
}

File 3 of 11: BancorFormula.sol
pragma solidity ^0.5.2;
import "./SafeMath.sol";


contract BancorFormula {
    using SafeMath for uint256;

    uint256 private constant ONE = 1;
    uint8 private constant MIN_PRECISION = 32;
    uint8 private constant MAX_PRECISION = 127;

    /**
        Auto-generated via 'PrintIntScalingFactors.py'
    */
    uint256 private constant FIXED_1 = 0x080000000000000000000000000000000;
    uint256 private constant FIXED_2 = 0x100000000000000000000000000000000;
    uint256 private constant MAX_NUM = 0x200000000000000000000000000000000;

    /**
        Auto-generated via 'PrintLn2ScalingFactors.py'
    */
    uint256 private constant LN2_NUMERATOR   = 0x3f80fe03f80fe03f80fe03f80fe03f8;
    uint256 private constant LN2_DENOMINATOR = 0x5b9de1d10bf4103d647b0955897ba80;

    /**
        Auto-generated via 'PrintFunctionOptimalLog.py' and 'PrintFunctionOptimalExp.py'
    */
    uint256 private constant OPT_LOG_MAX_VAL = 0x15bf0a8b1457695355fb8ac404e7a79e3;
    uint256 private constant OPT_EXP_MAX_VAL = 0x800000000000000000000000000000000;

    /**
        Auto-generated via 'PrintFunctionConstructor.py'
    */
    uint256[128] private maxExpArray;
    constructor() public {
    //  maxExpArray[0] = 0x6bffffffffffffffffffffffffffffffff;
    //  maxExpArray[1] = 0x67ffffffffffffffffffffffffffffffff;
    //  maxExpArray[2] = 0x637fffffffffffffffffffffffffffffff;
    //  maxExpArray[3] = 0x5f6fffffffffffffffffffffffffffffff;
    //  maxExpArray[4] = 0x5b77ffffffffffffffffffffffffffffff;
    //  maxExpArray[5] = 0x57b3ffffffffffffffffffffffffffffff;
    //  maxExpArray[6] = 0x5419ffffffffffffffffffffffffffffff;
    //  maxExpArray[7] = 0x50a2ffffffffffffffffffffffffffffff;
    //  maxExpArray[8] = 0x4d517fffffffffffffffffffffffffffff;
    //  maxExpArray[9] = 0x4a233fffffffffffffffffffffffffffff;
    //  maxExpArray[10] = 0x47165fffffffffffffffffffffffffffff;
    //  maxExpArray[11] = 0x4429afffffffffffffffffffffffffffff;
    //  maxExpArray[12] = 0x415bc7ffffffffffffffffffffffffffff;
    //  maxExpArray[13] = 0x3eab73ffffffffffffffffffffffffffff;
    //  maxExpArray[14] = 0x3c1771ffffffffffffffffffffffffffff;
    //  maxExpArray[15] = 0x399e96ffffffffffffffffffffffffffff;
    //  maxExpArray[16] = 0x373fc47fffffffffffffffffffffffffff;
    //  maxExpArray[17] = 0x34f9e8ffffffffffffffffffffffffffff;
    //  maxExpArray[18] = 0x32cbfd5fffffffffffffffffffffffffff;
    //  maxExpArray[19] = 0x30b5057fffffffffffffffffffffffffff;
    //  maxExpArray[20] = 0x2eb40f9fffffffffffffffffffffffffff;
    //  maxExpArray[21] = 0x2cc8340fffffffffffffffffffffffffff;
    //  maxExpArray[22] = 0x2af09481ffffffffffffffffffffffffff;
    //  maxExpArray[23] = 0x292c5bddffffffffffffffffffffffffff;
    //  maxExpArray[24] = 0x277abdcdffffffffffffffffffffffffff;
    //  maxExpArray[25] = 0x25daf6657fffffffffffffffffffffffff;
    //  maxExpArray[26] = 0x244c49c65fffffffffffffffffffffffff;
    //  maxExpArray[27] = 0x22ce03cd5fffffffffffffffffffffffff;
    //  maxExpArray[28] = 0x215f77c047ffffffffffffffffffffffff;
    //  maxExpArray[29] = 0x1fffffffffffffffffffffffffffffffff;
    //  maxExpArray[30] = 0x1eaefdbdabffffffffffffffffffffffff;
    //  maxExpArray[31] = 0x1d6bd8b2ebffffffffffffffffffffffff;
        maxExpArray[32] = 0x1c35fedd14ffffffffffffffffffffffff;
        maxExpArray[33] = 0x1b0ce43b323fffffffffffffffffffffff;
        maxExpArray[34] = 0x19f0028ec1ffffffffffffffffffffffff;
        maxExpArray[35] = 0x18ded91f0e7fffffffffffffffffffffff;
        maxExpArray[36] = 0x17d8ec7f0417ffffffffffffffffffffff;
        maxExpArray[37] = 0x16ddc6556cdbffffffffffffffffffffff;
        maxExpArray[38] = 0x15ecf52776a1ffffffffffffffffffffff;
        maxExpArray[39] = 0x15060c256cb2ffffffffffffffffffffff;
        maxExpArray[40] = 0x1428a2f98d72ffffffffffffffffffffff;
        maxExpArray[41] = 0x13545598e5c23fffffffffffffffffffff;
        maxExpArray[42] = 0x1288c4161ce1dfffffffffffffffffffff;
        maxExpArray[43] = 0x11c592761c666fffffffffffffffffffff;
        maxExpArray[44] = 0x110a688680a757ffffffffffffffffffff;
        maxExpArray[45] = 0x1056f1b5bedf77ffffffffffffffffffff;
        maxExpArray[46] = 0x0faadceceeff8bffffffffffffffffffff;
        maxExpArray[47] = 0x0f05dc6b27edadffffffffffffffffffff;
        maxExpArray[48] = 0x0e67a5a25da4107fffffffffffffffffff;
        maxExpArray[49] = 0x0dcff115b14eedffffffffffffffffffff;
        maxExpArray[50] = 0x0d3e7a392431239fffffffffffffffffff;
        maxExpArray[51] = 0x0cb2ff529eb71e4fffffffffffffffffff;
        maxExpArray[52] = 0x0c2d415c3db974afffffffffffffffffff;
        maxExpArray[53] = 0x0bad03e7d883f69bffffffffffffffffff;
        maxExpArray[54] = 0x0b320d03b2c343d5ffffffffffffffffff;
        maxExpArray[55] = 0x0abc25204e02828dffffffffffffffffff;
        maxExpArray[56] = 0x0a4b16f74ee4bb207fffffffffffffffff;
        maxExpArray[57] = 0x09deaf736ac1f569ffffffffffffffffff;
        maxExpArray[58] = 0x0976bd9952c7aa957fffffffffffffffff;
        maxExpArray[59] = 0x09131271922eaa606fffffffffffffffff;
        maxExpArray[60] = 0x08b380f3558668c46fffffffffffffffff;
        maxExpArray[61] = 0x0857ddf0117efa215bffffffffffffffff;
        maxExpArray[62] = 0x07ffffffffffffffffffffffffffffffff;
        maxExpArray[63] = 0x07abbf6f6abb9d087fffffffffffffffff;
        maxExpArray[64] = 0x075af62cbac95f7dfa7fffffffffffffff;
        maxExpArray[65] = 0x070d7fb7452e187ac13fffffffffffffff;
        maxExpArray[66] = 0x06c3390ecc8af379295fffffffffffffff;
        maxExpArray[67] = 0x067c00a3b07ffc01fd6fffffffffffffff;
        maxExpArray[68] = 0x0637b647c39cbb9d3d27ffffffffffffff;
        maxExpArray[69] = 0x05f63b1fc104dbd39587ffffffffffffff;
        maxExpArray[70] = 0x05b771955b36e12f7235ffffffffffffff;
        maxExpArray[71] = 0x057b3d49dda84556d6f6ffffffffffffff;
        maxExpArray[72] = 0x054183095b2c8ececf30ffffffffffffff;
        maxExpArray[73] = 0x050a28be635ca2b888f77fffffffffffff;
        maxExpArray[74] = 0x04d5156639708c9db33c3fffffffffffff;
        maxExpArray[75] = 0x04a23105873875bd52dfdfffffffffffff;
        maxExpArray[76] = 0x0471649d87199aa990756fffffffffffff;
        maxExpArray[77] = 0x04429a21a029d4c1457cfbffffffffffff;
        maxExpArray[78] = 0x0415bc6d6fb7dd71af2cb3ffffffffffff;
        maxExpArray[79] = 0x03eab73b3bbfe282243ce1ffffffffffff;
        maxExpArray[80] = 0x03c1771ac9fb6b4c18e229ffffffffffff;
        maxExpArray[81] = 0x0399e96897690418f785257fffffffffff;
        maxExpArray[82] = 0x0373fc456c53bb779bf0ea9fffffffffff;
        maxExpArray[83] = 0x034f9e8e490c48e67e6ab8bfffffffffff;
        maxExpArray[84] = 0x032cbfd4a7adc790560b3337ffffffffff;
        maxExpArray[85] = 0x030b50570f6e5d2acca94613ffffffffff;
        maxExpArray[86] = 0x02eb40f9f620fda6b56c2861ffffffffff;
        maxExpArray[87] = 0x02cc8340ecb0d0f520a6af58ffffffffff;
        maxExpArray[88] = 0x02af09481380a0a35cf1ba02ffffffffff;
        maxExpArray[89] = 0x0292c5bdd3b92ec810287b1b3fffffffff;
        maxExpArray[90] = 0x0277abdcdab07d5a77ac6d6b9fffffffff;
        maxExpArray[91] = 0x025daf6654b1eaa55fd64df5efffffffff;
        maxExpArray[92] = 0x0244c49c648baa98192dce88b7ffffffff;
        maxExpArray[93] = 0x022ce03cd5619a311b2471268bffffffff;
        maxExpArray[94] = 0x0215f77c045fbe885654a44a0fffffffff;
        maxExpArray[95] = 0x01ffffffffffffffffffffffffffffffff;
        maxExpArray[96] = 0x01eaefdbdaaee7421fc4d3ede5ffffffff;
        maxExpArray[97] = 0x01d6bd8b2eb257df7e8ca57b09bfffffff;
        maxExpArray[98] = 0x01c35fedd14b861eb0443f7f133fffffff;
        maxExpArray[99] = 0x01b0ce43b322bcde4a56e8ada5afffffff;
        maxExpArray[100] = 0x019f0028ec1fff007f5a195a39dfffffff;
        maxExpArray[101] = 0x018ded91f0e72ee74f49b15ba527ffffff;
        maxExpArray[102] = 0x017d8ec7f04136f4e5615fd41a63ffffff;
        maxExpArray[103] = 0x016ddc6556cdb84bdc8d12d22e6fffffff;
        maxExpArray[104] = 0x015ecf52776a1155b5bd8395814f7fffff;
        maxExpArray[105] = 0x015060c256cb23b3b3cc3754cf40ffffff;
        maxExpArray[106] = 0x01428a2f98d728ae223ddab715be3fffff;
        maxExpArray[107] = 0x013545598e5c23276ccf0ede68034fffff;
        maxExpArray[108] = 0x01288c4161ce1d6f54b7f61081194fffff;
        maxExpArray[109] = 0x011c592761c666aa641d5a01a40f17ffff;
        maxExpArray[110] = 0x0110a688680a7530515f3e6e6cfdcdffff;
        maxExpArray[111] = 0x01056f1b5bedf75c6bcb2ce8aed428ffff;
        maxExpArray[112] = 0x00faadceceeff8a0890f3875f008277fff;
        maxExpArray[113] = 0x00f05dc6b27edad306388a600f6ba0bfff;
        maxExpArray[114] = 0x00e67a5a25da41063de1495d5b18cdbfff;
        maxExpArray[115] = 0x00dcff115b14eedde6fc3aa5353f2e4fff;
        maxExpArray[116] = 0x00d3e7a3924312399f9aae2e0f868f8fff;
        maxExpArray[117] = 0x00cb2ff529eb71e41582cccd5a1ee26fff;
        maxExpArray[118] = 0x00c2d415c3db974ab32a51840c0b67edff;
        maxExpArray[119] = 0x00bad03e7d883f69ad5b0a186184e06bff;
        maxExpArray[120] = 0x00b320d03b2c343d4829abd6075f0cc5ff;
        maxExpArray[121] = 0x00abc25204e02828d73c6e80bcdb1a95bf;
        maxExpArray[122] = 0x00a4b16f74ee4bb2040a1ec6c15fbbf2df;
        maxExpArray[123] = 0x009deaf736ac1f569deb1b5ae3f36c130f;
        maxExpArray[124] = 0x00976bd9952c7aa957f5937d790ef65037;
        maxExpArray[125] = 0x009131271922eaa6064b73a22d0bd4f2bf;
        maxExpArray[126] = 0x008b380f3558668c46c91c49a2f8e967b9;
        maxExpArray[127] = 0x00857ddf0117efa215952912839f6473e6;
    }

    /**
        General Description:
            Determine a value of precision.
            Calculate an integer approximation of (_baseN / _baseD) ^ (_expN / _expD) * 2 ^ precision.
            Return the result along with the precision used.
        Detailed Description:
            Instead of calculating "base ^ exp", we calculate "e ^ (log(base) * exp)".
            The value of "log(base)" is represented with an integer slightly smaller than "log(base) * 2 ^ precision".
            The larger "precision" is, the more accurately this value represents the real value.
            However, the larger "precision" is, the more bits are required in order to store this value.
            And the exponentiation function, which takes "x" and calculates "e ^ x", is limited to a maximum exponent (maximum value of "x").
            This maximum exponent depends on the "precision" used, and it is given by "maxExpArray[precision] >> (MAX_PRECISION - precision)".
            Hence we need to determine the highest precision which can be used for the given input, before calling the exponentiation function.
            This allows us to compute "base ^ exp" with maximum accuracy and without exceeding 256 bits in any of the intermediate computations.
            This functions assumes that "_expN < 2 ^ 256 / log(MAX_NUM - 1)", otherwise the multiplication should be replaced with a "safeMul".
    */
    function power(
        uint256 _baseN, 
        uint256 _baseD, 
        uint32 _expN, 
        uint32 _expD) internal view returns (uint256, uint8) 
        {
        require(_baseN < MAX_NUM, "SNT available is invalid");

        uint256 baseLog;
        uint256 base = _baseN * FIXED_1 / _baseD;
        if (base < OPT_LOG_MAX_VAL) {
            baseLog = optimalLog(base);
        } else {
            baseLog = generalLog(base);
        }

        uint256 baseLogTimesExp = baseLog * _expN / _expD;
        if (baseLogTimesExp < OPT_EXP_MAX_VAL) {
            return (optimalExp(baseLogTimesExp), MAX_PRECISION);
        } else {
            uint8 precision = findPositionInMaxExpArray(baseLogTimesExp);
            return (generalExp(baseLogTimesExp >> (MAX_PRECISION - precision), precision), precision);
        }
    }

    /**
        Compute log(x / FIXED_1) * FIXED_1.
        This functions assumes that "x >= FIXED_1", because the output would be negative otherwise.
    */
    function generalLog(uint256 x) internal pure returns (uint256) {
        uint256 res = 0;

        // If x >= 2, then we compute the integer part of log2(x), which is larger than 0.
        if (x >= FIXED_2) {
            uint8 count = floorLog2(x / FIXED_1);
            x >>= count; // now x < 2
            res = count * FIXED_1;
        }

        // If x > 1, then we compute the fraction part of log2(x), which is larger than 0.
        if (x > FIXED_1) {
            for (uint8 i = MAX_PRECISION; i > 0; --i) {
                x = (x * x) / FIXED_1; // now 1 < x < 4
                if (x >= FIXED_2) {
                    x >>= 1; // now 1 < x < 2
                    res += ONE << (i - 1);
                }
            }
        }

        return res * LN2_NUMERATOR / LN2_DENOMINATOR;
    }

    /**
        Compute the largest integer smaller than or equal to the binary logarithm of the input.
    */
    function floorLog2(uint256 _n) internal pure returns (uint8) {
        uint8 res = 0;

        if (_n < 256) {
            // At most 8 iterations
            while (_n > 1) {
                _n >>= 1;
                res += 1;
            }
        } else {
            // Exactly 8 iterations
            for (uint8 s = 128; s > 0; s >>= 1) {
                if (_n >= (ONE << s)) {
                    _n >>= s;
                    res |= s;
                }
            }
        }

        return res;
    }

    /**
        The global "maxExpArray" is sorted in descending order, and therefore the following statements are equivalent:
        - This function finds the position of [the smallest value in "maxExpArray" larger than or equal to "x"]
        - This function finds the highest position of [a value in "maxExpArray" larger than or equal to "x"]
    */
    function findPositionInMaxExpArray(uint256 _x) internal view returns (uint8) {
        uint8 lo = MIN_PRECISION;
        uint8 hi = MAX_PRECISION;

        while (lo + 1 < hi) {
            uint8 mid = (lo + hi) / 2;
            if (maxExpArray[mid] >= _x) {
                lo = mid;
            } else {
                hi = mid;
            }
        }

        if (maxExpArray[hi] >= _x)
            return hi;
        if (maxExpArray[lo] >= _x)
            return lo;

        require(false, "Could not find a suitable position");
        return 0;
    }

    /**
        This function can be auto-generated by the script 'PrintFunctionGeneralExp.py'.
        It approximates "e ^ x" via maclaurin summation: "(x^0)/0! + (x^1)/1! + ... + (x^n)/n!".
        It returns "e ^ (x / 2 ^ precision) * 2 ^ precision", that is, the result is upshifted for accuracy.
        The global "maxExpArray" maps each "precision" to "((maximumExponent + 1) << (MAX_PRECISION - precision)) - 1".
        The maximum permitted value for "x" is therefore given by "maxExpArray[precision] >> (MAX_PRECISION - precision)".
    */
    function generalExp(uint256 _x, uint8 _precision) internal pure returns (uint256) {
        uint256 xi = _x;
        uint256 res = 0;

        xi = (xi * _x) >> _precision; 
        res += xi * 0x3442c4e6074a82f1797f72ac0000000; // add x^02 * (33! / 02!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x116b96f757c380fb287fd0e40000000; // add x^03 * (33! / 03!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x045ae5bdd5f0e03eca1ff4390000000; // add x^04 * (33! / 04!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00defabf91302cd95b9ffda50000000; // add x^05 * (33! / 05!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x002529ca9832b22439efff9b8000000; // add x^06 * (33! / 06!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00054f1cf12bd04e516b6da88000000; // add x^07 * (33! / 07!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000a9e39e257a09ca2d6db51000000; // add x^08 * (33! / 08!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x000012e066e7b839fa050c309000000; // add x^09 * (33! / 09!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x000001e33d7d926c329a1ad1a800000; // add x^10 * (33! / 10!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000002bee513bdb4a6b19b5f800000; // add x^11 * (33! / 11!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00000003a9316fa79b88eccf2a00000; // add x^12 * (33! / 12!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000048177ebe1fa812375200000; // add x^13 * (33! / 13!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000005263fe90242dcbacf00000; // add x^14 * (33! / 14!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x000000000057e22099c030d94100000; // add x^15 * (33! / 15!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000000057e22099c030d9410000; // add x^16 * (33! / 16!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00000000000052b6b54569976310000; // add x^17 * (33! / 17!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00000000000004985f67696bf748000; // add x^18 * (33! / 18!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x000000000000003dea12ea99e498000; // add x^19 * (33! / 19!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00000000000000031880f2214b6e000; // add x^20 * (33! / 20!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x000000000000000025bcff56eb36000; // add x^21 * (33! / 21!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x000000000000000001b722e10ab1000; // add x^22 * (33! / 22!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000000000000001317c70077000; // add x^23 * (33! / 23!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00000000000000000000cba84aafa00; // add x^24 * (33! / 24!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00000000000000000000082573a0a00; // add x^25 * (33! / 25!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00000000000000000000005035ad900; // add x^26 * (33! / 26!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x000000000000000000000002f881b00; // add x^27 * (33! / 27!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000000000000000000001b29340; // add x^28 * (33! / 28!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x00000000000000000000000000efc40; // add x^29 * (33! / 29!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000000000000000000000007fe0; // add x^30 * (33! / 30!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000000000000000000000000420; // add x^31 * (33! / 31!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000000000000000000000000021; // add x^32 * (33! / 32!)
        xi = (xi * _x) >> _precision; 
        res += xi * 0x0000000000000000000000000000001; // add x^33 * (33! / 33!)

        return res / 0x688589cc0e9505e2f2fee5580000000 + _x + (ONE << _precision); // divide by 33! and then add x^1 / 1! + x^0 / 0!
    }

    /**
        Return log(x / FIXED_1) * FIXED_1
        Input range: FIXED_1 <= x <= LOG_EXP_MAX_VAL - 1
        Auto-generated via 'PrintFunctionOptimalLog.py'
        Detailed description:
        - Rewrite the input as a product of natural exponents and a single residual r, such that 1 < r < 2
        - The natural logarithm of each (pre-calculated) exponent is the degree of the exponent
        - The natural logarithm of r is calculated via Taylor series for log(1 + x), where x = r - 1
        - The natural logarithm of the input is calculated by summing up the intermediate results above
        - For example: log(250) = log(e^4 * e^1 * e^0.5 * 1.021692859) = 4 + 1 + 0.5 + log(1 + 0.021692859)
    */
    function optimalLog(uint256 x) internal pure returns (uint256) {
        uint256 res = 0;

        uint256 y = 0;
        uint256 z;
        uint256 w;

        if (x >= 0xd3094c70f034de4b96ff7d5b6f99fcd8) {
            res += 0x40000000000000000000000000000000; 
            x = x * FIXED_1 / 0xd3094c70f034de4b96ff7d5b6f99fcd8;} // add 1 / 2^1
        if (x >= 0xa45af1e1f40c333b3de1db4dd55f29a7) {
            res += 0x20000000000000000000000000000000; 
            x = x * FIXED_1 / 0xa45af1e1f40c333b3de1db4dd55f29a7;} // add 1 / 2^2
        if (x >= 0x910b022db7ae67ce76b441c27035c6a1) {
            res += 0x10000000000000000000000000000000; 
            x = x * FIXED_1 / 0x910b022db7ae67ce76b441c27035c6a1;} // add 1 / 2^3
        if (x >= 0x88415abbe9a76bead8d00cf112e4d4a8) {
            res += 0x08000000000000000000000000000000; 
            x = x * FIXED_1 / 0x88415abbe9a76bead8d00cf112e4d4a8;} // add 1 / 2^4
        if (x >= 0x84102b00893f64c705e841d5d4064bd3) {
            res += 0x04000000000000000000000000000000; 
            x = x * FIXED_1 / 0x84102b00893f64c705e841d5d4064bd3;} // add 1 / 2^5
        if (x >= 0x8204055aaef1c8bd5c3259f4822735a2) {
            res += 0x02000000000000000000000000000000; 
            x = x * FIXED_1 / 0x8204055aaef1c8bd5c3259f4822735a2;} // add 1 / 2^6
        if (x >= 0x810100ab00222d861931c15e39b44e99) {
            res += 0x01000000000000000000000000000000; 
            x = x * FIXED_1 / 0x810100ab00222d861931c15e39b44e99;} // add 1 / 2^7
        if (x >= 0x808040155aabbbe9451521693554f733) {
            res += 0x00800000000000000000000000000000; 
            x = x * FIXED_1 / 0x808040155aabbbe9451521693554f733;} // add 1 / 2^8

        z = y = x - FIXED_1;
        w = y * y / FIXED_1;
        res += z * (0x100000000000000000000000000000000 - y) / 0x100000000000000000000000000000000; 
        z = z * w / FIXED_1; // add y^01 / 01 - y^02 / 02
        res += z * (0x0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - y) / 0x200000000000000000000000000000000; 
        z = z * w / FIXED_1; // add y^03 / 03 - y^04 / 04
        res += z * (0x099999999999999999999999999999999 - y) / 0x300000000000000000000000000000000; 
        z = z * w / FIXED_1; // add y^05 / 05 - y^06 / 06
        res += z * (0x092492492492492492492492492492492 - y) / 0x400000000000000000000000000000000; 
        z = z * w / FIXED_1; // add y^07 / 07 - y^08 / 08
        res += z * (0x08e38e38e38e38e38e38e38e38e38e38e - y) / 0x500000000000000000000000000000000; 
        z = z * w / FIXED_1; // add y^09 / 09 - y^10 / 10
        res += z * (0x08ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b - y) / 0x600000000000000000000000000000000; 
        z = z * w / FIXED_1; // add y^11 / 11 - y^12 / 12
        res += z * (0x089d89d89d89d89d89d89d89d89d89d89 - y) / 0x700000000000000000000000000000000; 
        z = z * w / FIXED_1; // add y^13 / 13 - y^14 / 14
        res += z * (0x088888888888888888888888888888888 - y) / 0x800000000000000000000000000000000;                      
        // add y^15 / 15 - y^16 / 16

        return res;
    }

    /**
        Return e ^ (x / FIXED_1) * FIXED_1
        Input range: 0 <= x <= OPT_EXP_MAX_VAL - 1
        Auto-generated via 'PrintFunctionOptimalExp.py'
        Detailed description:
        - Rewrite the input as a sum of binary exponents and a single residual r, as small as possible
        - The exponentiation of each binary exponent is given (pre-calculated)
        - The exponentiation of r is calculated via Taylor series for e^x, where x = r
        - The exponentiation of the input is calculated by multiplying the intermediate results above
        - For example: e^5.521692859 = e^(4 + 1 + 0.5 + 0.021692859) = e^4 * e^1 * e^0.5 * e^0.021692859
    */
    function optimalExp(uint256 x) internal pure returns (uint256) {
        uint256 res = 0;

        uint256 y = 0;
        uint256 z;

        z = y = x % 0x10000000000000000000000000000000; // get the input modulo 2^(-3)
        z = z * y / FIXED_1; 
        res += z * 0x10e1b3be415a0000; // add y^02 * (20! / 02!)
        z = z * y / FIXED_1; 
        res += z * 0x05a0913f6b1e0000; // add y^03 * (20! / 03!)
        z = z * y / FIXED_1; 
        res += z * 0x0168244fdac78000; // add y^04 * (20! / 04!)
        z = z * y / FIXED_1; 
        res += z * 0x004807432bc18000; // add y^05 * (20! / 05!)
        z = z * y / FIXED_1; 
        res += z * 0x000c0135dca04000; // add y^06 * (20! / 06!)
        z = z * y / FIXED_1; 
        res += z * 0x0001b707b1cdc000; // add y^07 * (20! / 07!)
        z = z * y / FIXED_1; 
        res += z * 0x000036e0f639b800; // add y^08 * (20! / 08!)
        z = z * y / FIXED_1; 
        res += z * 0x00000618fee9f800; // add y^09 * (20! / 09!)
        z = z * y / FIXED_1; 
        res += z * 0x0000009c197dcc00; // add y^10 * (20! / 10!)
        z = z * y / FIXED_1; 
        res += z * 0x0000000e30dce400; // add y^11 * (20! / 11!)
        z = z * y / FIXED_1; 
        res += z * 0x000000012ebd1300; // add y^12 * (20! / 12!)
        z = z * y / FIXED_1; 
        res += z * 0x0000000017499f00; // add y^13 * (20! / 13!)
        z = z * y / FIXED_1; 
        res += z * 0x0000000001a9d480; // add y^14 * (20! / 14!)
        z = z * y / FIXED_1; 
        res += z * 0x00000000001c6380; // add y^15 * (20! / 15!)
        z = z * y / FIXED_1; 
        res += z * 0x000000000001c638; // add y^16 * (20! / 16!)
        z = z * y / FIXED_1; 
        res += z * 0x0000000000001ab8; // add y^17 * (20! / 17!)
        z = z * y / FIXED_1; 
        res += z * 0x000000000000017c; // add y^18 * (20! / 18!)
        z = z * y / FIXED_1; 
        res += z * 0x0000000000000014; // add y^19 * (20! / 19!)
        z = z * y / FIXED_1; 
        res += z * 0x0000000000000001; // add y^20 * (20! / 20!)
        res = res / 0x21c3677c82b40000 + y + FIXED_1; // divide by 20! and then add y^1 / 1! + y^0 / 0!

        if ((x & 0x010000000000000000000000000000000) != 0) 
        res = res * 0x1c3d6a24ed82218787d624d3e5eba95f9 / 0x18ebef9eac820ae8682b9793ac6d1e776; // multiply by e^2^(-3)
        if ((x & 0x020000000000000000000000000000000) != 0) 
        res = res * 0x18ebef9eac820ae8682b9793ac6d1e778 / 0x1368b2fc6f9609fe7aceb46aa619baed4; // multiply by e^2^(-2)
        if ((x & 0x040000000000000000000000000000000) != 0) 
        res = res * 0x1368b2fc6f9609fe7aceb46aa619baed5 / 0x0bc5ab1b16779be3575bd8f0520a9f21f; // multiply by e^2^(-1)
        if ((x & 0x080000000000000000000000000000000) != 0) 
        res = res * 0x0bc5ab1b16779be3575bd8f0520a9f21e / 0x0454aaa8efe072e7f6ddbab84b40a55c9; // multiply by e^2^(+0)
        if ((x & 0x100000000000000000000000000000000) != 0) 
        res = res * 0x0454aaa8efe072e7f6ddbab84b40a55c5 / 0x00960aadc109e7a3bf4578099615711ea; // multiply by e^2^(+1)
        if ((x & 0x200000000000000000000000000000000) != 0) 
        res = res * 0x00960aadc109e7a3bf4578099615711d7 / 0x0002bf84208204f5977f9a8cf01fdce3d; // multiply by e^2^(+2)
        if ((x & 0x400000000000000000000000000000000) != 0) 
        res = res * 0x0002bf84208204f5977f9a8cf01fdc307 / 0x0000003c6ab775dd0b95b4cbee7e65d11; // multiply by e^2^(+3)

        return res;
    }
}

File 4 of 11: Controlled.sol
pragma solidity ^0.5.2;


contract Controlled {
    /// @notice The address of the controller is the only address that can call
    ///  a function with this modifier
    modifier onlyController { 
        require(msg.sender == controller, "Unauthorized"); 
        _; 
    }

    address payable public controller;

    constructor() internal { 
        controller = msg.sender; 
    }

    /// @notice Changes the controller of the contract
    /// @param _newController The new controller of the contract
    function changeController(address payable _newController) external onlyController {
        controller = _newController;
    }
}

File 5 of 11: ERC20Token.sol
pragma solidity ^0.5.2;

// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20

interface ERC20Token {

    /**
     * @notice send `_value` token to `_to` from `msg.sender`
     * @param _to The address of the recipient
     * @param _value The amount of token to be transferred
     * @return Whether the transfer was successful or not
     */
    function transfer(address _to, uint256 _value) external returns (bool success);

    /**
     * @notice `msg.sender` approves `_spender` to spend `_value` tokens
     * @param _spender The address of the account able to transfer the tokens
     * @param _value The amount of tokens to be approved for transfer
     * @return Whether the approval was successful or not
     */
    function approve(address _spender, uint256 _value) external returns (bool success);

    /**
     * @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
     * @param _from The address of the sender
     * @param _to The address of the recipient
     * @param _value The amount of token to be transferred
     * @return Whether the transfer was successful or not
     */
    function transferFrom(address _from, address _to, uint256 _value) external returns (bool success);

    /**
     * @param _owner The address from which the balance will be retrieved
     * @return The balance
     */
    function balanceOf(address _owner) external view returns (uint256 balance);

    /**
     * @param _owner The address of the account owning tokens
     * @param _spender The address of the account able to transfer the tokens
     * @return Amount of remaining tokens allowed to spent
     */
    function allowance(address _owner, address _spender) external view returns (uint256 remaining);

    /**
     * @notice return total supply of tokens
     */
    function totalSupply() external view returns (uint256 supply);

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

File 6 of 11: MiniMeToken.sol
pragma solidity ^0.5.2;

/*
    Copyright 2016, Jordi Baylina
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * @title MiniMeToken Contract
 * @author Jordi Baylina
 * @dev This token contract's goal is to make it easy for anyone to clone this
 *  token using the token distribution at a given block, this will allow DAO's
 *  and DApps to upgrade their features in a decentralized manner without
 *  affecting the original token
 * @dev It is ERC20 compliant, but still needs to under go further testing.
 */

import "./Controlled.sol";
import "./TokenController.sol";
import "./ApproveAndCallFallBack.sol";
import "./MiniMeTokenInterface.sol";
import "./TokenFactory.sol";

/**
 * @dev The actual token contract, the default controller is the msg.sender
 *  that deploys the contract, so usually this token will be deployed by a
 *  token controller contract, which Giveth will call a "Campaign"
 */


contract MiniMeToken is MiniMeTokenInterface, Controlled {

    string public name;                //The Token's name: e.g. DigixDAO Tokens
    uint8 public decimals;             //Number of decimals of the smallest unit
    string public symbol;              //An identifier: e.g. REP
    string public constant VERSION = "MMT_0.1"; //An arbitrary versioning scheme

    /**
     * @dev `Checkpoint` is the structure that attaches a block number to a
     *  given value, the block number attached is the one that last changed the
     *  value
     */
    struct Checkpoint {

        // `fromBlock` is the block number that the value was generated from
        uint128 fromBlock;

        // `value` is the amount of tokens at a specific block number
        uint128 value;
    }

    // `parentToken` is the Token address that was cloned to produce this token;
    //  it will be 0x0 for a token that was not cloned
    MiniMeToken public parentToken;

    // `parentSnapShotBlock` is the block number from the Parent Token that was
    //  used to determine the initial distribution of the Clone Token
    uint public parentSnapShotBlock;

    // `creationBlock` is the block number that the Clone Token was created
    uint public creationBlock;

    // `balances` is the map that tracks the balance of each address, in this
    //  contract when the balance changes the block number that the change
    //  occurred is also included in the map
    mapping (address => Checkpoint[]) balances;

    // `allowed` tracks any extra transfer rights as in all ERC20 tokens
    mapping (address => mapping (address => uint256)) allowed;

    // Tracks the history of the `totalSupply` of the token
    Checkpoint[] totalSupplyHistory;

    // Flag that determines if the token is transferable or not.
    bool public transfersEnabled;

    // The factory used to create new clone tokens
    TokenFactory public tokenFactory;

////////////////
// Constructor
////////////////

    /** 
     * @notice Constructor to create a MiniMeToken
     * @param _tokenFactory The address of the MiniMeTokenFactory contract that
     *  will create the Clone token contracts, the token factory needs to be
     *  deployed first
     * @param _parentToken Address of the parent token, set to 0x0 if it is a
     *  new token
     * @param _parentSnapShotBlock Block of the parent token that will
     *  determine the initial distribution of the clone token, set to 0 if it
     *  is a new token
     * @param _tokenName Name of the new token
     * @param _decimalUnits Number of decimals of the new token
     * @param _tokenSymbol Token Symbol for the new token
     * @param _transfersEnabled If true, tokens will be able to be transferred
     */
    constructor(
        address _tokenFactory,
        address _parentToken,
        uint _parentSnapShotBlock,
        string memory _tokenName,
        uint8 _decimalUnits,
        string memory _tokenSymbol,
        bool _transfersEnabled
    ) 
        public
    {
        tokenFactory = TokenFactory(_tokenFactory);
        name = _tokenName;                                 // Set the name
        decimals = _decimalUnits;                          // Set the decimals
        symbol = _tokenSymbol;                             // Set the symbol
        parentToken = MiniMeToken(address(uint160(_parentToken)));
        parentSnapShotBlock = _parentSnapShotBlock;
        transfersEnabled = _transfersEnabled;
        creationBlock = block.number;
    }


///////////////////
// ERC20 Methods
///////////////////

    /**
     * @notice Send `_amount` tokens to `_to` from `msg.sender`
     * @param _to The address of the recipient
     * @param _amount The amount of tokens to be transferred
     * @return Whether the transfer was successful or not
     */
    function transfer(address _to, uint256 _amount) external returns (bool success) {
        require(transfersEnabled);
        return doTransfer(msg.sender, _to, _amount);
    }

    /**
     * @notice Send `_amount` tokens to `_to` from `_from` on the condition it
     *  is approved by `_from`
     * @param _from The address holding the tokens being transferred
     * @param _to The address of the recipient
     * @param _amount The amount of tokens to be transferred
     * @return True if the transfer was successful
     */
    function transferFrom(
        address _from,
        address _to,
        uint256 _amount
    ) 
        external 
        returns (bool success)
    {

        // The controller of this contract can move tokens around at will,
        //  this is important to recognize! Confirm that you trust the
        //  controller of this contract, which in most situations should be
        //  another open source smart contract or 0x0
        if (msg.sender != controller) {
            require(transfersEnabled);

            // The standard ERC 20 transferFrom functionality
            if (allowed[_from][msg.sender] < _amount) { 
                return false;
            }
            allowed[_from][msg.sender] -= _amount;
        }
        return doTransfer(_from, _to, _amount);
    }

    /**
     * @dev This is the actual transfer function in the token contract, it can
     *  only be called by other functions in this contract.
     * @param _from The address holding the tokens being transferred
     * @param _to The address of the recipient
     * @param _amount The amount of tokens to be transferred
     * @return True if the transfer was successful
     */
    function doTransfer(
        address _from,
        address _to,
        uint _amount
    ) 
        internal
        returns(bool)
    {

        if (_amount == 0) {
            return true;
        }

        require(parentSnapShotBlock < block.number);

        // Do not allow transfer to 0x0 or the token contract itself
        require((_to != address(0)) && (_to != address(this)));

        // If the amount being transfered is more than the balance of the
        //  account the transfer returns false
        uint256 previousBalanceFrom = balanceOfAt(_from, block.number);
        if (previousBalanceFrom < _amount) {
            return false;
        }

        // Alerts the token controller of the transfer
        if (isContract(controller)) {
            require(TokenController(controller).onTransfer(_from, _to, _amount));
        }

        // First update the balance array with the new value for the address
        //  sending the tokens
        updateValueAtNow(balances[_from], previousBalanceFrom - _amount);

        // Then update the balance array with the new value for the address
        //  receiving the tokens
        uint256 previousBalanceTo = balanceOfAt(_to, block.number);
        require(previousBalanceTo + _amount >= previousBalanceTo); // Check for overflow
        updateValueAtNow(balances[_to], previousBalanceTo + _amount);

        // An event to make the transfer easy to find on the blockchain
        emit Transfer(_from, _to, _amount);

        return true;
    }

    function doApprove(
        address _from,
        address _spender,
        uint256 _amount
    )
        internal 
        returns (bool)
    {
        require(transfersEnabled);

        // To change the approve amount you first have to reduce the addresses`
        //  allowance to zero by calling `approve(_spender,0)` if it is not
        //  already 0 to mitigate the race condition described here:
        //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
        require((_amount == 0) || (allowed[_from][_spender] == 0));

        // Alerts the token controller of the approve function call
        if (isContract(controller)) {
            require(TokenController(controller).onApprove(_from, _spender, _amount));
        }

        allowed[_from][_spender] = _amount;
        emit Approval(_from, _spender, _amount);
        return true;
    }

    /**
     * @param _owner The address that's balance is being requested
     * @return The balance of `_owner` at the current block
     */
    function balanceOf(address _owner) external view returns (uint256 balance) {
        return balanceOfAt(_owner, block.number);
    }

    /**
     * @notice `msg.sender` approves `_spender` to spend `_amount` tokens on
     *  its behalf. This is a modified version of the ERC20 approve function
     *  to be a little bit safer
     * @param _spender The address of the account able to transfer the tokens
     * @param _amount The amount of tokens to be approved for transfer
     * @return True if the approval was successful
     */
    function approve(address _spender, uint256 _amount) external returns (bool success) {
        doApprove(msg.sender, _spender, _amount);
    }

    /**
     * @dev This function makes it easy to read the `allowed[]` map
     * @param _owner The address of the account that owns the token
     * @param _spender The address of the account able to transfer the tokens
     * @return Amount of remaining tokens of _owner that _spender is allowed
     *  to spend
     */
    function allowance(
        address _owner,
        address _spender
    ) 
        external
        view
        returns (uint256 remaining)
    {
        return allowed[_owner][_spender];
    }
    /**
     * @notice `msg.sender` approves `_spender` to send `_amount` tokens on
     *  its behalf, and then a function is triggered in the contract that is
     *  being approved, `_spender`. This allows users to use their tokens to
     *  interact with contracts in one function call instead of two
     * @param _spender The address of the contract able to transfer the tokens
     * @param _amount The amount of tokens to be approved for transfer
     * @return True if the function call was successful
     */
    function approveAndCall(
        address _spender,
        uint256 _amount,
        bytes calldata _extraData
    ) 
        external
        returns (bool success)
    {
        require(doApprove(msg.sender, _spender, _amount));

        ApproveAndCallFallBack(_spender).receiveApproval(
            msg.sender,
            _amount,
            address(this),
            _extraData
        );

        return true;
    }

    /**
     * @dev This function makes it easy to get the total number of tokens
     * @return The total number of tokens
     */
    function totalSupply() external view returns (uint) {
        return totalSupplyAt(block.number);
    }


////////////////
// Query balance and totalSupply in History
////////////////

    /**
     * @dev Queries the balance of `_owner` at a specific `_blockNumber`
     * @param _owner The address from which the balance will be retrieved
     * @param _blockNumber The block number when the balance is queried
     * @return The balance at `_blockNumber`
     */
    function balanceOfAt(
        address _owner,
        uint _blockNumber
    ) 
        public
        view
        returns (uint) 
    {

        // These next few lines are used when the balance of the token is
        //  requested before a check point was ever created for this token, it
        //  requires that the `parentToken.balanceOfAt` be queried at the
        //  genesis block for that token as this contains initial balance of
        //  this token
        if ((balances[_owner].length == 0) || (balances[_owner][0].fromBlock > _blockNumber)) {
            if (address(parentToken) != address(0)) {
                return parentToken.balanceOfAt(_owner, min(_blockNumber, parentSnapShotBlock));
            } else {
                // Has no parent
                return 0;
            }

        // This will return the expected balance during normal situations
        } else {
            return getValueAt(balances[_owner], _blockNumber);
        }
    }

    /**
     * @notice Total amount of tokens at a specific `_blockNumber`.
     * @param _blockNumber The block number when the totalSupply is queried
     * @return The total amount of tokens at `_blockNumber`
     */
    function totalSupplyAt(uint _blockNumber) public view returns(uint) {

        // These next few lines are used when the totalSupply of the token is
        //  requested before a check point was ever created for this token, it
        //  requires that the `parentToken.totalSupplyAt` be queried at the
        //  genesis block for this token as that contains totalSupply of this
        //  token at this block number.
        if ((totalSupplyHistory.length == 0) || (totalSupplyHistory[0].fromBlock > _blockNumber)) {
            if (address(parentToken) != address(0)) {
                return parentToken.totalSupplyAt(min(_blockNumber, parentSnapShotBlock));
            } else {
                return 0;
            }

        // This will return the expected totalSupply during normal situations
        } else {
            return getValueAt(totalSupplyHistory, _blockNumber);
        }
    }

////////////////
// Clone Token Method
////////////////

    /**
     * @notice Creates a new clone token with the initial distribution being
     *  this token at `snapshotBlock`
     * @param _cloneTokenName Name of the clone token
     * @param _cloneDecimalUnits Number of decimals of the smallest unit
     * @param _cloneTokenSymbol Symbol of the clone token
     * @param _snapshotBlock Block when the distribution of the parent token is
     *  copied to set the initial distribution of the new clone token;
     *  if the block is zero than the actual block, the current block is used
     * @param _transfersEnabled True if transfers are allowed in the clone
     * @return The address of the new MiniMeToken Contract
     */
    function createCloneToken(
        string calldata _cloneTokenName,
        uint8 _cloneDecimalUnits,
        string calldata _cloneTokenSymbol,
        uint _snapshotBlock,
        bool _transfersEnabled
        ) 
            external
            returns(address)
        {
        uint snapshotBlock = _snapshotBlock;
        if (snapshotBlock == 0) {
            snapshotBlock = block.number;
        }
        MiniMeToken cloneToken = MiniMeToken(
            tokenFactory.createCloneToken(
            address(this),
            snapshotBlock,
            _cloneTokenName,
            _cloneDecimalUnits,
            _cloneTokenSymbol,
            _transfersEnabled
            ));

        cloneToken.changeController(msg.sender);

        // An event to make the token easy to find on the blockchain
        emit NewCloneToken(address(cloneToken), snapshotBlock);
        return address(cloneToken);
    }

////////////////
// Generate and destroy tokens
////////////////
    
    /**
     * @notice Generates `_amount` tokens that are assigned to `_owner`
     * @param _owner The address that will be assigned the new tokens
     * @param _amount The quantity of tokens generated
     * @return True if the tokens are generated correctly
     */
    function generateTokens(
        address _owner,
        uint _amount
    )
        external
        onlyController
        returns (bool)
    {
        uint curTotalSupply = totalSupplyAt(block.number);
        require(curTotalSupply + _amount >= curTotalSupply); // Check for overflow
        uint previousBalanceTo = balanceOfAt(_owner, block.number);
        require(previousBalanceTo + _amount >= previousBalanceTo); // Check for overflow
        updateValueAtNow(totalSupplyHistory, curTotalSupply + _amount);
        updateValueAtNow(balances[_owner], previousBalanceTo + _amount);
        emit Transfer(address(0), _owner, _amount);
        return true;
    }

    /**
     * @notice Burns `_amount` tokens from `_owner`
     * @param _owner The address that will lose the tokens
     * @param _amount The quantity of tokens to burn
     * @return True if the tokens are burned correctly
     */
    function destroyTokens(
        address _owner,
        uint _amount
    ) 
        external
        onlyController
        returns (bool)
    {
        uint curTotalSupply = totalSupplyAt(block.number);
        require(curTotalSupply >= _amount);
        uint previousBalanceFrom = balanceOfAt(_owner, block.number);
        require(previousBalanceFrom >= _amount);
        updateValueAtNow(totalSupplyHistory, curTotalSupply - _amount);
        updateValueAtNow(balances[_owner], previousBalanceFrom - _amount);
        emit Transfer(_owner, address(0), _amount);
        return true;
    }

////////////////
// Enable tokens transfers
////////////////

    /**
     * @notice Enables token holders to transfer their tokens freely if true
     * @param _transfersEnabled True if transfers are allowed in the clone
     */
    function enableTransfers(bool _transfersEnabled) external onlyController {
        transfersEnabled = _transfersEnabled;
    }

////////////////
// Internal helper functions to query and set a value in a snapshot array
////////////////

    /**
     * @dev `getValueAt` retrieves the number of tokens at a given block number
     * @param checkpoints The history of values being queried
     * @param _block The block number to retrieve the value at
     * @return The number of tokens being queried
     */
    function getValueAt(
        Checkpoint[] storage checkpoints,
        uint _block
    ) 
        internal
        view
        returns (uint)
    {
        if (checkpoints.length == 0) {
            return 0;
        }

        // Shortcut for the actual value
        if (_block >= checkpoints[checkpoints.length-1].fromBlock) {
            return checkpoints[checkpoints.length-1].value;
        }
        if (_block < checkpoints[0].fromBlock) {
            return 0;
        }

        // Binary search of the value in the array
        uint min = 0;
        uint max = checkpoints.length-1;
        while (max > min) {
            uint mid = (max + min + 1) / 2;
            if (checkpoints[mid].fromBlock<=_block) {
                min = mid;
            } else {
                max = mid-1;
            }
        }
        return checkpoints[min].value;
    }

    /**
     * @dev `updateValueAtNow` used to update the `balances` map and the
     *  `totalSupplyHistory`
     * @param checkpoints The history of data being updated
     * @param _value The new number of tokens
     */
    function updateValueAtNow(Checkpoint[] storage checkpoints, uint _value) internal {
        if ((checkpoints.length == 0) || (checkpoints[checkpoints.length - 1].fromBlock < block.number)) {
            Checkpoint storage newCheckPoint = checkpoints[checkpoints.length++];
            newCheckPoint.fromBlock = uint128(block.number);
            newCheckPoint.value = uint128(_value);
        } else {
            Checkpoint storage oldCheckPoint = checkpoints[checkpoints.length-1];
            oldCheckPoint.value = uint128(_value);
        }
    }

    /**
     * @dev Internal function to determine if an address is a contract
     * @param _addr The address being queried
     * @return True if `_addr` is a contract
     */
    function isContract(address _addr) internal returns(bool) {
        uint size;
        if (_addr == address(0)) {
            return false;
        }    
        assembly {
            size := extcodesize(_addr)
        }
        return size>0;
    }

    /**
     * @dev Helper function to return a min betwen the two uints
     */
    function min(uint a, uint b) internal pure returns (uint) {
        return a < b ? a : b;
    }

    /**
     * @notice The fallback function: If the contract's controller has not been
     *  set to 0, then the `proxyPayment` method is called which relays the
     *  ether and creates tokens as described in the token controller contract
     */
    function () external payable {
        require(isContract(controller));
        require(TokenController(controller).proxyPayment.value(msg.value)(msg.sender));
    }

//////////
// Safety Methods
//////////

    /**
     * @notice This method can be used by the controller to extract mistakenly
     *  sent tokens to this contract.
     * @param _token The address of the token contract that you want to recover
     *  set to 0 in case you want to extract ether.
     */
    function claimTokens(address _token) external onlyController {
        if (_token == address(0)) {
            controller.transfer(address(this).balance);
            return;
        }

        MiniMeToken token = MiniMeToken(address(uint160(_token)));
        uint balance = token.balanceOf(address(this));
        token.transfer(controller, balance);
        emit ClaimedTokens(_token, controller, balance);
    }

////////////////
// Events
////////////////
    event ClaimedTokens(address indexed _token, address indexed _controller, uint _amount);
    event Transfer(address indexed _from, address indexed _to, uint256 _amount);
    event NewCloneToken(address indexed _cloneToken, uint snapshotBlock);
    event Approval(
        address indexed _owner,
        address indexed _spender,
        uint256 _amount
    );

}

File 7 of 11: MiniMeTokenFactory.sol
pragma solidity ^0.5.2;

import "./TokenFactory.sol";
import "./MiniMeToken.sol";


/**
 * @dev This contract is used to generate clone contracts from a contract.
 *  In solidity this is the way to create a contract from a contract of the
 *  same class
 */
contract MiniMeTokenFactory is TokenFactory {

    /**
     * @notice Update the DApp by creating a new token with new functionalities
     *  the msg.sender becomes the controller of this clone token
     * @param _parentToken Address of the token being cloned
     * @param _snapshotBlock Block of the parent token that will
     *  determine the initial distribution of the clone token
     * @param _tokenName Name of the new token
     * @param _decimalUnits Number of decimals of the new token
     * @param _tokenSymbol Token Symbol for the new token
     * @param _transfersEnabled If true, tokens will be able to be transferred
     * @return The address of the new token contract
     */
    function createCloneToken(
        address _parentToken,
        uint _snapshotBlock,
        string calldata _tokenName,
        uint8 _decimalUnits,
        string calldata _tokenSymbol,
        bool _transfersEnabled
    ) external returns (address payable) 
    {
        MiniMeToken newToken = new MiniMeToken(
            address(this),
            _parentToken,
            _snapshotBlock,
            _tokenName,
            _decimalUnits,
            _tokenSymbol,
            _transfersEnabled
            );

        newToken.changeController(msg.sender);
        return address(newToken);
    }
}

File 8 of 11: MiniMeTokenInterface.sol
pragma solidity ^0.5.2;

import "./ERC20Token.sol";


contract MiniMeTokenInterface is ERC20Token {

    /**
     * @notice `msg.sender` approves `_spender` to send `_amount` tokens on
     *  its behalf, and then a function is triggered in the contract that is
     *  being approved, `_spender`. This allows users to use their tokens to
     *  interact with contracts in one function call instead of two
     * @param _spender The address of the contract able to transfer the tokens
     * @param _amount The amount of tokens to be approved for transfer
     * @return True if the function call was successful
     */
    function approveAndCall(
        address _spender,
        uint256 _amount,
        bytes calldata _extraData
    ) 
        external 
        returns (bool success);

    /**    
     * @notice Creates a new clone token with the initial distribution being
     *  this token at `_snapshotBlock`
     * @param _cloneTokenName Name of the clone token
     * @param _cloneDecimalUnits Number of decimals of the smallest unit
     * @param _cloneTokenSymbol Symbol of the clone token
     * @param _snapshotBlock Block when the distribution of the parent token is
     *  copied to set the initial distribution of the new clone token;
     *  if the block is zero than the actual block, the current block is used
     * @param _transfersEnabled True if transfers are allowed in the clone
     * @return The address of the new MiniMeToken Contract
     */
    function createCloneToken(
        string calldata _cloneTokenName,
        uint8 _cloneDecimalUnits,
        string calldata _cloneTokenSymbol,
        uint _snapshotBlock,
        bool _transfersEnabled
    ) 
        external
        returns(address);

    /**    
     * @notice Generates `_amount` tokens that are assigned to `_owner`
     * @param _owner The address that will be assigned the new tokens
     * @param _amount The quantity of tokens generated
     * @return True if the tokens are generated correctly
     */
    function generateTokens(
        address _owner,
        uint _amount
    )
        external
        returns (bool);

    /**
     * @notice Burns `_amount` tokens from `_owner`
     * @param _owner The address that will lose the tokens
     * @param _amount The quantity of tokens to burn
     * @return True if the tokens are burned correctly
     */
    function destroyTokens(
        address _owner,
        uint _amount
    ) 
        external
        returns (bool);

    /**        
     * @notice Enables token holders to transfer their tokens freely if true
     * @param _transfersEnabled True if transfers are allowed in the clone
     */
    function enableTransfers(bool _transfersEnabled) external;

    /**    
     * @notice This method can be used by the controller to extract mistakenly
     *  sent tokens to this contract.
     * @param _token The address of the token contract that you want to recover
     *  set to 0 in case you want to extract ether.
     */
    function claimTokens(address _token) external;

    /**
     * @dev Queries the balance of `_owner` at a specific `_blockNumber`
     * @param _owner The address from which the balance will be retrieved
     * @param _blockNumber The block number when the balance is queried
     * @return The balance at `_blockNumber`
     */
    function balanceOfAt(
        address _owner,
        uint _blockNumber
    ) 
        public
        view
        returns (uint);

    /**
     * @notice Total amount of tokens at a specific `_blockNumber`.
     * @param _blockNumber The block number when the totalSupply is queried
     * @return The total amount of tokens at `_blockNumber`
     */
    function totalSupplyAt(uint _blockNumber) public view returns(uint);

}

File 9 of 11: SafeMath.sol
pragma solidity ^0.5.2;


library SafeMath {
    /**
        @dev returns the sum of _x and _y, reverts if the calculation overflows
        @param _x   value 1
        @param _y   value 2
        @return sum
    */
    function add(uint256 _x, uint256 _y) internal pure returns (uint256) {
        uint256 z = _x + _y;
        require(z >= _x, "SafeMath failed");
        return z;
    }

    /**
        @dev returns the difference of _x minus _y, reverts if the calculation underflows
        @param _x   minuend
        @param _y   subtrahend
        @return difference
    */
    function sub(uint256 _x, uint256 _y) internal pure returns (uint256) {
        require(_x >= _y, "SafeMath failed");
        return _x - _y;
    }

    /**
        @dev returns the product of multiplying _x by _y, reverts if the calculation overflows
        @param _x   factor 1
        @param _y   factor 2
        @return product
    */
    function mul(uint256 _x, uint256 _y) internal pure returns (uint256) {
        // gas optimization
        if (_x == 0)
            return 0;

        uint256 z = _x * _y;
        require(z / _x == _y, "SafeMath failed");
        return z;
    }

      /**
        @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
        @param _x   dividend
        @param _y   divisor
        @return quotient
    */
    function div(uint256 _x, uint256 _y) internal pure returns (uint256) {
        require(_y > 0, "SafeMath failed");
        uint256 c = _x / _y;

        return c;
    }
}

File 10 of 11: TokenController.sol
pragma solidity ^0.5.2;


/**
 * @dev The token controller contract must implement these functions
 */
interface TokenController {
    /**
     * @notice Called when `_owner` sends ether to the MiniMe Token contract
     * @param _owner The address that sent the ether to create tokens
     * @return True if the ether is accepted, false if it throws
     */
    function proxyPayment(address _owner) external payable returns(bool);

    /**
     * @notice Notifies the controller about a token transfer allowing the
     *  controller to react if desired
     * @param _from The origin of the transfer
     * @param _to The destination of the transfer
     * @param _amount The amount of the transfer
     * @return False if the controller does not authorize the transfer
     */
    function onTransfer(address _from, address _to, uint _amount) external returns(bool);

    /**
     * @notice Notifies the controller about an approval allowing the
     *  controller to react if desired
     * @param _owner The address that calls `approve()`
     * @param _spender The spender in the `approve()` call
     * @param _amount The amount in the `approve()` call
     * @return False if the controller does not authorize the approval
     */
    function onApprove(address _owner, address _spender, uint _amount) external
        returns(bool);
}

File 11 of 11: TokenFactory.sol
pragma solidity ^0.5.2;


contract TokenFactory {
    function createCloneToken(
        address _parentToken,
        uint _snapshotBlock,
        string calldata _tokenName,
        uint8 _decimalUnits,
        string calldata _tokenSymbol,
        bool _transfersEnabled
        ) external returns (address payable);
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_id","type":"bytes32"},{"name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"bytes32"},{"name":"_amount","type":"uint256"}],"name":"upvoteEffect","outputs":[{"name":"effect","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"safeMax","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"bytes32"},{"name":"_amount","type":"uint256"}],"name":"upvote","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"total","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newController","type":"address"}],"name":"changeController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"existingIDs","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getDAppsCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"max","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"bytes32"}],"name":"downvoteCost","outputs":[{"name":"b","type":"uint256"},{"name":"vR","type":"uint256"},{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ceiling","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"bytes32"},{"name":"_amount","type":"uint256"},{"name":"_metadata","type":"bytes32"}],"name":"createDApp","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCeiling","type":"uint256"}],"name":"setCeiling","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_token","type":"address"},{"name":"_data","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"dapps","outputs":[{"name":"developer","type":"address"},{"name":"id","type":"bytes32"},{"name":"metadata","type":"bytes32"},{"name":"balance","type":"uint256"},{"name":"rate","type":"uint256"},{"name":"available","type":"uint256"},{"name":"votesMinted","type":"uint256"},{"name":"votesCast","type":"uint256"},{"name":"effectiveBalance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"id2index","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"bytes32"},{"name":"_amount","type":"uint256"}],"name":"downvote","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"bytes32"}],"name":"withdrawMax","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"bytes32"},{"name":"_metadata","type":"bytes32"}],"name":"setMetadata","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_SNT","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"bytes32"},{"indexed":false,"name":"newEffectiveBalance","type":"uint256"}],"name":"DAppCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"bytes32"},{"indexed":false,"name":"newEffectiveBalance","type":"uint256"}],"name":"Upvote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"bytes32"},{"indexed":false,"name":"newEffectiveBalance","type":"uint256"}],"name":"Downvote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"bytes32"},{"indexed":false,"name":"newEffectiveBalance","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"bytes32"}],"name":"MetadataUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldCeiling","type":"uint256"},{"indexed":false,"name":"newCeiling","type":"uint256"}],"name":"CeilingUpdated","type":"event"}]

60806040523480156200001157600080fd5b5060405160208062003956833981018060405260208110156200003357600080fd5b505160008054600160a060020a031990811633179091556001606060020a641c35fedd1502036021556001605e60020a646c3390ecc902036022556001606160020a640cf801476102036023556001605f60020a6431bdb23e1d02036024556001605b60020a6502fb1d8fe08302036025556001605a60020a6505b771955b3702036026556001605960020a650af67a93bb5102036027556001605860020a6515060c256cb302036028556001605860020a651428a2f98d7302036029556001605660020a654d51566397090203602a556001605560020a65944620b0e70f0203602b557011c592761c666fffffffffffffffffffff602c5570110a688680a757ffffffffffffffffffff602d55701056f1b5bedf77ffffffffffffffffffff602e55700faadceceeff8bffffffffffffffffffff602f55700f05dc6b27edadffffffffffffffffffff603055700e67a5a25da4107fffffffffffffffffff603155700dcff115b14eedffffffffffffffffffff603255700d3e7a392431239fffffffffffffffffff603355700cb2ff529eb71e4fffffffffffffffffff603455700c2d415c3db974afffffffffffffffffff603555700bad03e7d883f69bffffffffffffffffff603655700b320d03b2c343d5ffffffffffffffffff603755700abc25204e02828dffffffffffffffffff603855700a4b16f74ee4bb207fffffffffffffffff6039557009deaf736ac1f569ffffffffffffffffff603a55700976bd9952c7aa957fffffffffffffffff603b557009131271922eaa606fffffffffffffffff603c557008b380f3558668c46fffffffffffffffff603d55700857ddf0117efa215bffffffffffffffff603e556001608360020a03603f557007abbf6f6abb9d087fffffffffffffffff60405570075af62cbac95f7dfa7fffffffffffffff60415570070d7fb7452e187ac13fffffffffffffff6042557006c3390ecc8af379295fffffffffffffff60435570067c00a3b07ffc01fd6fffffffffffffff604455700637b647c39cbb9d3d27ffffffffffffff6045557005f63b1fc104dbd39587ffffffffffffff6046557005b771955b36e12f7235ffffffffffffff60475570057b3d49dda84556d6f6ffffffffffffff60485570054183095b2c8ececf30ffffffffffffff60495570050a28be635ca2b888f77fffffffffffff604a557004d5156639708c9db33c3fffffffffffff604b557004a23105873875bd52dfdfffffffffffff604c55700471649d87199aa990756fffffffffffff604d557004429a21a029d4c1457cfbffffffffffff604e55700415bc6d6fb7dd71af2cb3ffffffffffff604f557003eab73b3bbfe282243ce1ffffffffffff6050557003c1771ac9fb6b4c18e229ffffffffffff605155700399e96897690418f785257fffffffffff605255700373fc456c53bb779bf0ea9fffffffffff60535570034f9e8e490c48e67e6ab8bfffffffffff60545570032cbfd4a7adc790560b3337ffffffffff60555570030b50570f6e5d2acca94613ffffffffff6056557002eb40f9f620fda6b56c2861ffffffffff6057557002cc8340ecb0d0f520a6af58ffffffffff6058557002af09481380a0a35cf1ba02ffffffffff605955700292c5bdd3b92ec810287b1b3fffffffff605a55700277abdcdab07d5a77ac6d6b9fffffffff605b5570025daf6654b1eaa55fd64df5efffffffff605c55700244c49c648baa98192dce88b7ffffffff605d5570022ce03cd5619a311b2471268bffffffff605e55700215f77c045fbe885654a44a0fffffffff605f556001608160020a036060557001eaefdbdaaee7421fc4d3ede5ffffffff6061557001d6bd8b2eb257df7e8ca57b09bfffffff6062557001c35fedd14b861eb0443f7f133fffffff6063557001b0ce43b322bcde4a56e8ada5afffffff60645570019f0028ec1fff007f5a195a39dfffffff60655570018ded91f0e72ee74f49b15ba527ffffff60665570017d8ec7f04136f4e5615fd41a63ffffff60675570016ddc6556cdb84bdc8d12d22e6fffffff60685570015ecf52776a1155b5bd8395814f7fffff60695570015060c256cb23b3b3cc3754cf40ffffff606a557001428a2f98d728ae223ddab715be3fffff606b5570013545598e5c23276ccf0ede68034fffff606c557001288c4161ce1d6f54b7f61081194fffff606d5570011c592761c666aa641d5a01a40f17ffff606e55700110a688680a7530515f3e6e6cfdcdffff606f557001056f1b5bedf75c6bcb2ce8aed428ffff6070556ffaadceceeff8a0890f3875f008277fff6071556ff05dc6b27edad306388a600f6ba0bfff6072556fe67a5a25da41063de1495d5b18cdbfff6073556fdcff115b14eedde6fc3aa5353f2e4fff6074556fd3e7a3924312399f9aae2e0f868f8fff6075556fcb2ff529eb71e41582cccd5a1ee26fff6076556fc2d415c3db974ab32a51840c0b67edff6077556fbad03e7d883f69ad5b0a186184e06bff6078556fb320d03b2c343d4829abd6075f0cc5ff6079556fabc25204e02828d73c6e80bcdb1a95bf607a556fa4b16f74ee4bb2040a1ec6c15fbbf2df607b556f9deaf736ac1f569deb1b5ae3f36c130f607c556f976bd9952c7aa957f5937d790ef65037607d556f9131271922eaa6064b73a22d0bd4f2bf607e556f8b380f3558668c46c91c49a2f8e967b9607f556f857ddf0117efa215952912839f6473e660805560818054909116600160a060020a0383161790556401959a141e60828190556101246083819055620f42406085819055620008529290916200083d9190640100000000620008858102620011b41704565b90640100000000620011096200091f82021704565b60848190556200087b906064906200083d90604d90640100000000620011b46200088582021704565b60865550620009a7565b6000821515620008985750600062000919565b828202828482811515620008a857fe5b04146200091657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f536166654d617468206661696c65640000000000000000000000000000000000604482015290519081900360640190fd5b90505b92915050565b60008082116200099057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f536166654d617468206661696c65640000000000000000000000000000000000604482015290519081900360640190fd5b600082848115156200099e57fe5b04949350505050565b612f9f80620009b76000396000f3fe608060405234801561001057600080fd5b5060043610610154576000357c0100000000000000000000000000000000000000000000000000000000900480636fe39f64116100d55780639640fe35116100995780639640fe351461036d578063ac56f70f146103db578063ac769090146103f8578063cb2b6d261461041b578063d3525adf14610438578063f77c47911461045b57610154565b80636fe39f6414610255578063753ed1bd146102905780637e38d973146102985780638f02cf97146102c15780638f4ffcb1146102de57610154565b8063313ce5671161011c578063313ce567146101e65780633cebb823146101ee57806357073d4b146102145780635ecaa4ff146102455780636ac5db191461024d57610154565b8063040cf020146101595780631248edd11461017e578063199e1698146101b35780632b3df690146101bb5780632ddbd13a146101de575b600080fd5b61017c6004803603604081101561016f57600080fd5b508035906020013561047f565b005b6101a16004803603604081101561019457600080fd5b50803590602001356107a4565b60408051918252519081900360200190f35b6101a1610997565b61017c600480360360408110156101d157600080fd5b508035906020013561099d565b6101a16109ac565b6101a16109b2565b61017c6004803603602081101561020457600080fd5b5035600160a060020a03166109b8565b6102316004803603602081101561022a57600080fd5b5035610a49565b604080519115158252519081900360200190f35b6101a1610a5e565b6101a1610a65565b6102726004803603602081101561026b57600080fd5b5035610a6b565b60408051938452602084019290925282820152519081900360600190f35b6101a1610b06565b61017c600480360360608110156102ae57600080fd5b5080359060208101359060400135610b0c565b61017c600480360360208110156102d757600080fd5b5035610b1d565b61017c600480360360808110156102f457600080fd5b600160a060020a03823581169260208101359260408201359092169181019060808101606082013564010000000081111561032e57600080fd5b82018360208201111561034057600080fd5b8035906020019184600183028401116401000000008311171561036257600080fd5b509092509050610c00565b61038a6004803603602081101561038357600080fd5b5035610f1b565b60408051600160a060020a03909a168a5260208a0198909852888801969096526060880194909452608087019290925260a086015260c085015260e084015261010083015251908190036101200190f35b6101a1600480360360208110156103f157600080fd5b5035610f7e565b61017c6004803603604081101561040e57600080fd5b5080359060200135610f90565b6101a16004803603602081101561043157600080fd5b5035610f9b565b61017c6004803603604081101561044e57600080fd5b5080359060200135610fb4565b61046361106a565b60408051600160a060020a039092168252519081900360200190f35b600061048a83611079565b905060006104a683670de0b6b3a764000063ffffffff61110916565b8254909150600160a060020a031633146104f45760405160e560020a62461bcd028152600401808060200182810382526037815260200180612e476037913960400191505060405180910390fd5b600582015481111561053a5760405160e560020a62461bcd028152600401808060200182810382526059815260200180612dbb6059913960600191505060405180910390fd5b60008061055483856003015461116690919063ffffffff16565b6003850181905560845460855461059592610586929161057a919063ffffffff6111b416565b9063ffffffff61110916565b6085549063ffffffff61116616565b6004850181905560038501546105b09163ffffffff6111b416565b6005850181905560855460048601546105cc929190819061121f565b60ff16600281900a820460068701819055600787015491945091925011156105f957600684015460078501555b600061062a856005015461061e876004015488600701546111b490919063ffffffff16565b9063ffffffff6111b416565b9050600061064d60855461061e60855489600601546111b490919063ffffffff16565b90506000610661838363ffffffff61110916565b6003880154909150610679908263ffffffff61116616565b60088801556081548754604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018c90529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156106ef57600080fd5b505af1158015610703573d6000803e3d6000fd5b505050506040513d602081101561071957600080fd5b5051151561075f576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f34833981519152604482015290519081900360640190fd5b600887015460408051918252518a917f4591ca0897d0d8e83f7153dfe0b2912125672084ab8d84be59ee13240a1778bc919081900360200190a2505050505050505050565b60006107ae612c62565b6107b784611079565b60408051610120810182528254600160a060020a031681526001830154602082015260028301549181019190915260038201546060820181905260048301546080830152600583015460a0830152600683015460c0830152600783015460e08301526008909201546101008201526086549092509061083c908563ffffffff61135d16565b111561087c5760405160e560020a62461bcd028152600401808060200182810382526037815260200180612eca6037913960400191505060405180910390fd5b60e081015115156108905782915050610991565b60008060006108ac86856060015161135d90919063ffffffff16565b905060006108ce61058660845461057a608554866111b490919063ffffffff16565b905060006108e2838363ffffffff6111b416565b90506108f4816085546085548561121f565b60e088015160ff9091169650909450600286900a85049060009061092490849061061e908763ffffffff6111b416565b6085549091506000906109419061061e858263ffffffff6111b416565b90506000610955838363ffffffff61110916565b90506000610969888363ffffffff61116616565b90506109838b61010001518261116690919063ffffffff16565b9b5050505050505050505050505b92915050565b60865481565b6109a83383836113a8565b5050565b60825481565b60855481565b600054600160a060020a03163314610a1a576040805160e560020a62461bcd02815260206004820152600c60248201527f556e617574686f72697a65640000000000000000000000000000000000000000604482015290519081900360640190fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60896020526000908152604090205460ff1681565b6087545b90565b60845481565b6000806000610a78612c62565b610a8185611079565b60408051610120810182528254600160a060020a03168152600183015460208201526002830154918101919091526003820154606082015260048201546080820152600582015460a0820152600682015460c0820152600782015460e08201526008909101546101008201529050610af88161169d565b935093509350509193909250565b60835481565b610b183384848461175f565b505050565b600054600160a060020a03163314610b7f576040805160e560020a62461bcd02815260206004820152600c60248201527f556e617574686f72697a65640000000000000000000000000000000000000000604482015290519081900360640190fd5b608354604080519182526020820183905280517f90aac84a509ee3cec594d7cc6a04f31c498c4d91783e5cdbcf454ab8aaaae3219281900390910190a16083819055608554608254610bdc919061057a908463ffffffff6111b416565b6084819055610bfa9060649061057a90604d9063ffffffff6111b416565b60865550565b608154600160a060020a03848116911614610c65576040805160e560020a62461bcd02815260206004820152600b60248201527f57726f6e6720746f6b656e000000000000000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0383163314610cc5576040805160e560020a62461bcd02815260206004820152600d60248201527f57726f6e67206163636f756e7400000000000000000000000000000000000000604482015290519081900360640190fd5b60c4811115610d1e576040805160e560020a62461bcd02815260206004820152600e60248201527f496e636f72726563742064617461000000000000000000000000000000000000604482015290519081900360640190fd5b600080600080610d6386868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b0792505050565b92965090945092509050878214610dc4576040805160e560020a62461bcd02815260206004820152600c60248201527f57726f6e6720616d6f756e740000000000000000000000000000000000000000604482015290519081900360640190fd5b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1984167f7e38d973000000000000000000000000000000000000000000000000000000001415610e1c57610e178984848461175f565b610f10565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1984167fac769090000000000000000000000000000000000000000000000000000000001415610e6e57610e17898484611b24565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1984167f2b3df690000000000000000000000000000000000000000000000000000000001415610ec057610e178984846113a8565b6040805160e560020a62461bcd02815260206004820152601560248201527f57726f6e67206d6574686f642073656c6563746f720000000000000000000000604482015290519081900360640190fd5b505050505050505050565b6087805482908110610f2957fe5b6000918252602090912060099091020180546001820154600283015460038401546004850154600586015460068701546007880154600890980154600160a060020a0390971698509496939592949193909289565b60886020526000908152604090205481565b6109a8338383611b24565b600080610fa783611079565b600501549150505b919050565b6000828152608860205260408120546087805491929183908110610fd457fe5b600091825260209091206009909102018054909150600160a060020a031633146110325760405160e560020a62461bcd02815260040180806020018281038252602a815260200180612ea0602a913960400191505060405180910390fd5b6002810183905560405184907f6e27af24ead46b4b469e383b46b4b75487fcf1ffce54d216add332f9de2120c590600090a250505050565b600054600160a060020a031681565b600081815260886020526040812054608780548290811061109657fe5b90600052602060002090600902019150828260010154141515611103576040805160e560020a62461bcd02815260206004820152601b60248201527f4572726f72206665746368696e6720636f727265637420646174610000000000604482015290519081900360640190fd5b50919050565b6000808211611150576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f54833981519152604482015290519081900360640190fd5b6000828481151561115d57fe5b04949350505050565b6000818310156111ae576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f54833981519152604482015290519081900360640190fd5b50900390565b60008215156111c557506000610991565b8282028284828115156111d457fe5b0414611218576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f54833981519152604482015290519081900360640190fd5b9392505050565b600080700200000000000000000000000000000000861061128a576040805160e560020a62461bcd02815260206004820152601860248201527f534e5420617661696c61626c6520697320696e76616c69640000000000000000604482015290519081900360640190fd5b60008086607f60020a890281151561129e57fe5b04905070015bf0a8b1457695355fb8ac404e7a79e38110156112ca576112c381611d8c565b91506112d6565b6112d3816121b1565b91505b60008563ffffffff168763ffffffff1684028115156112f157fe5b049050700800000000000000000000000000000000811015611324576113168161227f565b607f94509450505050611354565b600061132f8261268c565b905061134760ff607f8390031660020a830482612756565b9550935061135492505050565b94509492505050565b600082820183811015611218576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f54833981519152604482015290519081900360640190fd5b60006113c282670de0b6b3a764000063ffffffff61110916565b9050600081116114065760405160e560020a62461bcd028152600401808060200182810382526029815260200180612d926029913960400191505060405180910390fd5b600061141184611079565b905060865461142d83836003015461135d90919063ffffffff16565b111561146d5760405160e560020a62461bcd028152600401808060200182810382526037815260200180612eca6037913960400191505060405180910390fd5b60008061148784846003015461135d90919063ffffffff16565b600384018190556084546085546114ad92610586929161057a919063ffffffff6111b416565b6004840181905560038401546114c89163ffffffff6111b416565b6005840181905560855460048501546114e4929190819061121f565b60ff16600281900a8204600686015560058501546004860154600787015492955092935060009261151e9261061e9163ffffffff6111b416565b9050600061154160855461061e60855488600601546111b490919063ffffffff16565b90506000611555838363ffffffff61110916565b600387015490915061156d908263ffffffff61116616565b6008870155608154604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038d81166004830152306024830152604482018c9052915191909216916323b872dd9160648083019260209291908290030181600087803b1580156115e757600080fd5b505af11580156115fb573d6000803e3d6000fd5b505050506040513d602081101561161157600080fd5b50511515611657576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f34833981519152604482015290519081900360640190fd5b600886015460408051918252518a917f967f7d6ea4a44117f4cb822f761b5c76cbeac4c6ab5cfbaa59447574fa126bc2919081900360200190a250505050505050505050565b6000806000806116bc606486610100015161110990919063ffffffff16565b905060006116e78660a0015161057a886080015161061e8a60c00151876111b490919063ffffffff16565b905060006117168261170a8960e001518a60c0015161116690919063ffffffff16565b9063ffffffff61116616565b905060006117358361061e848b60a0015161110990919063ffffffff16565b9050600061174e6085548361110990919063ffffffff16565b949993985093965091945050505050565b60008381526089602052604090205460ff16156117c6576040805160e560020a62461bcd02815260206004820152601b60248201527f596f75206d757374207375626d6974206120756e697175652049440000000000604482015290519081900360640190fd5b60006117e083670de0b6b3a764000063ffffffff61110916565b9050600081116118245760405160e560020a62461bcd028152600401808060200182810382526042815260200180612d506042913960600191505060405180910390fd5b6086548111156118685760405160e560020a62461bcd028152600401808060200182810382526033815260200180612f016033913960400191505060405180910390fd5b6087805490819061187c9060018301612cbe565b50600060878281548110151561188e57fe5b60009182526020822060099190910201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038a1617815560018101889055600281018690556003810185905560845460855491935082916118f7916105869161057a9089906111b4565b6004840181905560038401546119129163ffffffff6111b416565b60058401819055608554600485015461192e929190819061121f565b8060ff16905080935081925050508181908060020a820491505083600601819055506000836007018190555084836008018190555083608860008a8152602001908152602001600020819055506001608960008a815260200190815260200160002060006101000a81548160ff021916908315150217905550608160009054906101000a9004600160a060020a0316600160a060020a03166323b872dd8a308a6040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084600160a060020a0316600160a060020a0316815260200183600160a060020a0316600160a060020a031681526020018281526020019350505050602060405180830381600087803b158015611a5257600080fd5b505af1158015611a66573d6000803e3d6000fd5b505050506040513d6020811015611a7c57600080fd5b50511515611ac2576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f34833981519152604482015290519081900360640190fd5b6008830154604080519182525189917f868bbbb32f410f6626146ffc2d5c58cfdb3f08798ea4965f55c2b7d30a6f9c6c919081900360200190a2505050505050505050565b602081015160248201516044830151606490930151919390929190565b6000611b3e82670de0b6b3a764000063ffffffff61110916565b90506000611b4b84611079565b60408051610120810182528254600160a060020a03168152600183015460208201526002830154918101919091526003820154606082015260048201546080820152600582015460a0820152600682015460c0820152600782015460e0820152600882015461010082015290915060009081908190611bc99061169d565b91945092509050848114611c115760405160e560020a62461bcd028152600401808060200182810382526033815260200180612e146033913960400191505060405180910390fd5b6005840154611c26908663ffffffff61116616565b60058501556007840154611c40908363ffffffff61135d16565b60078501556008840154611c5a908463ffffffff61116616565b60088501556081548454604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301529283166024820152604481018a9052905191909216916323b872dd9160648083019260209291908290030181600087803b158015611cd857600080fd5b505af1158015611cec573d6000803e3d6000fd5b505050506040513d6020811015611d0257600080fd5b50511515611d48576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f34833981519152604482015290519081900360640190fd5b6008840154604080519182525188917fa84d42fd75bca8f5ea3b11dc2aee00753b6ced6a669d6ad32396e1fef5b13528919081900360200190a25050505050505050565b6000808080806fd3094c70f034de4b96ff7d5b6f99fcd88610611ddb576f4000000000000000000000000000000093909301926fd3094c70f034de4b96ff7d5b6f99fcd8607f60020a87020495505b6fa45af1e1f40c333b3de1db4dd55f29a78610611e24576f2000000000000000000000000000000093909301926fa45af1e1f40c333b3de1db4dd55f29a7607f60020a87020495505b6f910b022db7ae67ce76b441c27035c6a18610611e6d576f1000000000000000000000000000000093909301926f910b022db7ae67ce76b441c27035c6a1607f60020a87020495505b6f88415abbe9a76bead8d00cf112e4d4a88610611eb6576f0800000000000000000000000000000093909301926f88415abbe9a76bead8d00cf112e4d4a8607f60020a87020495505b6f84102b00893f64c705e841d5d4064bd38610611eff576f0400000000000000000000000000000093909301926f84102b00893f64c705e841d5d4064bd3607f60020a87020495505b6f8204055aaef1c8bd5c3259f4822735a28610611f48576f0200000000000000000000000000000093909301926f8204055aaef1c8bd5c3259f4822735a2607f60020a87020495505b6f810100ab00222d861931c15e39b44e998610611f91576f0100000000000000000000000000000093909301926f810100ab00222d861931c15e39b44e99607f60020a87020495505b6f808040155aabbbe9451521693554f7338610611fd9576e80000000000000000000000000000093909301926f808040155aabbbe9451521693554f733607f60020a87020495505b6f7fffffffffffffffffffffffffffffff1986019250829150607f60020a8280020490507001000000000000000000000000000000008381038302049390930192607f60020a8282020491507002000000000000000000000000000000006faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8490038302049390930192607f60020a8282020491507003000000000000000000000000000000006f999999999999999999999999999999998490038302049390930192607f60020a8282020491507004000000000000000000000000000000006f924924924924924924924924924924928490038302049390930192607f60020a8282020491507005000000000000000000000000000000006f8e38e38e38e38e38e38e38e38e38e38e8490038302049390930192607f60020a8282020491507006000000000000000000000000000000006f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b8490038302049390930192607f60020a8282020491507007000000000000000000000000000000006f89d89d89d89d89d89d89d89d89d89d898490038302049390930192607f60020a8282020491507008000000000000000000000000000000006f888888888888888888888888888888888490038302049390930195945050505050565b60008070010000000000000000000000000000000083106121f35760006121dd607f60020a8504612bf8565b60ff16600281900a90940493607f60020a029150505b607f60020a83111561225357607f5b60008160ff16111561225157607f60020a8480020493507001000000000000000000000000000000008410612248576002938490049360ff600019830116900a91909101905b60001901612202565b505b6f05b9de1d10bf4103d647b0955897ba806f03f80fe03f80fe03f80fe03f80fe03f88202049392505050565b6000670168244fdac78000607f60020a6f0fffffffffffffffffffffffffffffff84168080028290048082028390048083028490049485026710e1b3be415a00009092026705a0913f6b1e000091909102010192909181830204905080664807432bc180000283019250607f60020a8282028115156122fa57fe5b04905080660c0135dca040000283019250607f60020a82820281151561231c57fe5b049050806601b707b1cdc0000283019250607f60020a82820281151561233e57fe5b049050806536e0f639b8000283019250607f60020a82820281151561235f57fe5b04905080650618fee9f8000283019250607f60020a82820281151561238057fe5b04905080649c197dcc000283019250607f60020a8282028115156123a057fe5b04905080640e30dce4000283019250607f60020a8282028115156123c057fe5b0490508064012ebd13000283019250607f60020a8282028115156123e057fe5b049050806317499f000283019250607f60020a8282028115156123ff57fe5b049050806301a9d4800283019250607f60020a82820281151561241e57fe5b04905080621c63800283019250607f60020a82820281151561243c57fe5b049050806201c6380283019250607f60020a82820281151561245a57fe5b04905080611ab80283019250607f60020a82820281151561247757fe5b0490508061017c0283019250607f60020a82820281151561249457fe5b0490508060140283019250607f60020a8282028115156124b057fe5b6721c3677c82b40000919004938401048201607f60020a019290506f1000000000000000000000000000000085161561250d5770018ebef9eac820ae8682b9793ac6d1e7767001c3d6a24ed82218787d624d3e5eba95f984020492505b6f2000000000000000000000000000000085161561254f577001368b2fc6f9609fe7aceb46aa619baed470018ebef9eac820ae8682b9793ac6d1e77884020492505b6f40000000000000000000000000000000851615612590576fbc5ab1b16779be3575bd8f0520a9f21f7001368b2fc6f9609fe7aceb46aa619baed584020492505b607f60020a8516156125c4576f454aaa8efe072e7f6ddbab84b40a55c96fbc5ab1b16779be3575bd8f0520a9f21e84020492505b700100000000000000000000000000000000851615612605576f0960aadc109e7a3bf4578099615711ea6f454aaa8efe072e7f6ddbab84b40a55c584020492505b700200000000000000000000000000000000851615612645576e2bf84208204f5977f9a8cf01fdce3d6f0960aadc109e7a3bf4578099615711d784020492505b700400000000000000000000000000000000851615612683576d03c6ab775dd0b95b4cbee7e65d116e2bf84208204f5977f9a8cf01fdc30784020492505b50909392505050565b60006020607f5b8060ff168260010160ff1610156126db576000600260ff8484011604905084600160ff8316608081106126c257fe5b0154106126d1578092506126d5565b8091505b50612693565b83600160ff8316608081106126ec57fe5b0154106126fc579150610faf9050565b83600160ff84166080811061270d57fe5b01541061271c57509050610faf565b60405160e560020a62461bcd028152600401808060200182810382526022815260200180612e7e6022913960400191505060405180910390fd5b60008083905060008090508360ff16858302908060020a82049150509150816f03442c4e6074a82f1797f72ac000000002810190508360ff16858302908060020a82049150509150816f0116b96f757c380fb287fd0e4000000002810190508360ff16858302908060020a82049150509150816e45ae5bdd5f0e03eca1ff439000000002810190508360ff16858302908060020a82049150509150816e0defabf91302cd95b9ffda5000000002810190508360ff16858302908060020a82049150509150816e02529ca9832b22439efff9b800000002810190508360ff16858302908060020a82049150509150816d54f1cf12bd04e516b6da8800000002810190508360ff16858302908060020a82049150509150816d0a9e39e257a09ca2d6db5100000002810190508360ff16858302908060020a82049150509150816d012e066e7b839fa050c30900000002810190508360ff16858302908060020a82049150509150816c1e33d7d926c329a1ad1a80000002810190508360ff16858302908060020a82049150509150816c02bee513bdb4a6b19b5f80000002810190508360ff16858302908060020a82049150509150816b3a9316fa79b88eccf2a0000002810190508360ff16858302908060020a82049150509150816b048177ebe1fa81237520000002810190508360ff16858302908060020a82049150509150816a5263fe90242dcbacf0000002810190508360ff16858302908060020a82049150509150816a057e22099c030d9410000002810190508360ff16858302908060020a82049150509150816957e22099c030d941000002810190508360ff16858302908060020a820491505091508169052b6b5456997631000002810190508360ff16858302908060020a8204915050915081684985f67696bf74800002810190508360ff16858302908060020a82049150509150816803dea12ea99e49800002810190508360ff16858302908060020a82049150509150816731880f2214b6e00002810190508360ff16858302908060020a820491505091508167025bcff56eb3600002810190508360ff16858302908060020a8204915050915081661b722e10ab100002810190508360ff16858302908060020a82049150509150816601317c7007700002810190508360ff16858302908060020a8204915050915081650cba84aafa0002810190508360ff16858302908060020a82049150509150816482573a0a0002810190508360ff16858302908060020a82049150509150816405035ad90002810190508360ff16858302908060020a8204915050915081632f881b0002810190508360ff16858302908060020a82049150509150816301b2934002810190508360ff16858302908060020a8204915050915081620efc4002810190508360ff16858302908060020a8204915050915081617fe002810190508360ff16858302908060020a820491505091508161042002810190508360ff16858302908060020a8204915050915081602102810190508360ff16858302908060020a8204915050915081600102810190508360ff1660019060020a02856f0688589cc0e9505e2f2fee558000000083811515612bec57fe5b04010195945050505050565b600080610100831015612c22575b6001831115612c1d57600290920491600101612c06565b610991565b60805b60008160ff161115612c5b5760ff811660020a8410612c4e5760ff811660020a90930492908117905b600260ff90911604612c25565b5092915050565b610120604051908101604052806000600160a060020a0316815260200160008019168152602001600080191681526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b815481835581811115610b1857600083815260209020610b1891610a629160099182028101918502015b80821115612d4b57805473ffffffffffffffffffffffffffffffffffffffff191681556000600182018190556002820181905560038201819055600482018190556005820181905560068201819055600782018190556008820155600901612ce8565b509056fe596f75206d757374207370656e6420736f6d6520534e5420746f207375626d697420612072616e6b696e6720696e206f7264657220746f2061766f6964207370616d596f75206d7573742073656e6420736f6d6520534e5420696e206f7264657220746f207570766f7465596f752063616e206f6e6c7920776974686472617720612070657263656e74616765206f662074686520534e54207374616b65642c206c657373207768617420796f75206861766520616c7265616479207265636569766564496e636f727265637420616d6f756e743a2076616c69642069666620656666656374206f6e2072616e6b696e672069732031254f6e6c792074686520646576656c6f7065722063616e20776974686472617720534e54207374616b6564206f6e20746869732064617461436f756c64206e6f742066696e642061207375697461626c6520706f736974696f6e4f6e6c792074686520646576656c6f7065722063616e2075706461746520746865206d65746164617461596f752063616e6e6f74207570766f74652062792074686973206d7563682c2074727920776974682061206c6f77657220616d6f756e74596f752063616e6e6f74207374616b65206d6f726520534e54207468616e20746865206365696c696e672064696374617465735472616e73666572206661696c65640000000000000000000000000000000000536166654d617468206661696c65640000000000000000000000000000000000a165627a7a72305820126d878105190bf9584e43a836a34b0148cab1bef3b8afe0129e9d00585ee6970029000000000000000000000000744d70fdbe2ba4cf95131626614a1763df805b9e

Deployed Bytecode

0x608060405234801561001057600080fd5b5060043610610154576000357c0100000000000000000000000000000000000000000000000000000000900480636fe39f64116100d55780639640fe35116100995780639640fe351461036d578063ac56f70f146103db578063ac769090146103f8578063cb2b6d261461041b578063d3525adf14610438578063f77c47911461045b57610154565b80636fe39f6414610255578063753ed1bd146102905780637e38d973146102985780638f02cf97146102c15780638f4ffcb1146102de57610154565b8063313ce5671161011c578063313ce567146101e65780633cebb823146101ee57806357073d4b146102145780635ecaa4ff146102455780636ac5db191461024d57610154565b8063040cf020146101595780631248edd11461017e578063199e1698146101b35780632b3df690146101bb5780632ddbd13a146101de575b600080fd5b61017c6004803603604081101561016f57600080fd5b508035906020013561047f565b005b6101a16004803603604081101561019457600080fd5b50803590602001356107a4565b60408051918252519081900360200190f35b6101a1610997565b61017c600480360360408110156101d157600080fd5b508035906020013561099d565b6101a16109ac565b6101a16109b2565b61017c6004803603602081101561020457600080fd5b5035600160a060020a03166109b8565b6102316004803603602081101561022a57600080fd5b5035610a49565b604080519115158252519081900360200190f35b6101a1610a5e565b6101a1610a65565b6102726004803603602081101561026b57600080fd5b5035610a6b565b60408051938452602084019290925282820152519081900360600190f35b6101a1610b06565b61017c600480360360608110156102ae57600080fd5b5080359060208101359060400135610b0c565b61017c600480360360208110156102d757600080fd5b5035610b1d565b61017c600480360360808110156102f457600080fd5b600160a060020a03823581169260208101359260408201359092169181019060808101606082013564010000000081111561032e57600080fd5b82018360208201111561034057600080fd5b8035906020019184600183028401116401000000008311171561036257600080fd5b509092509050610c00565b61038a6004803603602081101561038357600080fd5b5035610f1b565b60408051600160a060020a03909a168a5260208a0198909852888801969096526060880194909452608087019290925260a086015260c085015260e084015261010083015251908190036101200190f35b6101a1600480360360208110156103f157600080fd5b5035610f7e565b61017c6004803603604081101561040e57600080fd5b5080359060200135610f90565b6101a16004803603602081101561043157600080fd5b5035610f9b565b61017c6004803603604081101561044e57600080fd5b5080359060200135610fb4565b61046361106a565b60408051600160a060020a039092168252519081900360200190f35b600061048a83611079565b905060006104a683670de0b6b3a764000063ffffffff61110916565b8254909150600160a060020a031633146104f45760405160e560020a62461bcd028152600401808060200182810382526037815260200180612e476037913960400191505060405180910390fd5b600582015481111561053a5760405160e560020a62461bcd028152600401808060200182810382526059815260200180612dbb6059913960600191505060405180910390fd5b60008061055483856003015461116690919063ffffffff16565b6003850181905560845460855461059592610586929161057a919063ffffffff6111b416565b9063ffffffff61110916565b6085549063ffffffff61116616565b6004850181905560038501546105b09163ffffffff6111b416565b6005850181905560855460048601546105cc929190819061121f565b60ff16600281900a820460068701819055600787015491945091925011156105f957600684015460078501555b600061062a856005015461061e876004015488600701546111b490919063ffffffff16565b9063ffffffff6111b416565b9050600061064d60855461061e60855489600601546111b490919063ffffffff16565b90506000610661838363ffffffff61110916565b6003880154909150610679908263ffffffff61116616565b60088801556081548754604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a039283166004820152602481018c90529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156106ef57600080fd5b505af1158015610703573d6000803e3d6000fd5b505050506040513d602081101561071957600080fd5b5051151561075f576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f34833981519152604482015290519081900360640190fd5b600887015460408051918252518a917f4591ca0897d0d8e83f7153dfe0b2912125672084ab8d84be59ee13240a1778bc919081900360200190a2505050505050505050565b60006107ae612c62565b6107b784611079565b60408051610120810182528254600160a060020a031681526001830154602082015260028301549181019190915260038201546060820181905260048301546080830152600583015460a0830152600683015460c0830152600783015460e08301526008909201546101008201526086549092509061083c908563ffffffff61135d16565b111561087c5760405160e560020a62461bcd028152600401808060200182810382526037815260200180612eca6037913960400191505060405180910390fd5b60e081015115156108905782915050610991565b60008060006108ac86856060015161135d90919063ffffffff16565b905060006108ce61058660845461057a608554866111b490919063ffffffff16565b905060006108e2838363ffffffff6111b416565b90506108f4816085546085548561121f565b60e088015160ff9091169650909450600286900a85049060009061092490849061061e908763ffffffff6111b416565b6085549091506000906109419061061e858263ffffffff6111b416565b90506000610955838363ffffffff61110916565b90506000610969888363ffffffff61116616565b90506109838b61010001518261116690919063ffffffff16565b9b5050505050505050505050505b92915050565b60865481565b6109a83383836113a8565b5050565b60825481565b60855481565b600054600160a060020a03163314610a1a576040805160e560020a62461bcd02815260206004820152600c60248201527f556e617574686f72697a65640000000000000000000000000000000000000000604482015290519081900360640190fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60896020526000908152604090205460ff1681565b6087545b90565b60845481565b6000806000610a78612c62565b610a8185611079565b60408051610120810182528254600160a060020a03168152600183015460208201526002830154918101919091526003820154606082015260048201546080820152600582015460a0820152600682015460c0820152600782015460e08201526008909101546101008201529050610af88161169d565b935093509350509193909250565b60835481565b610b183384848461175f565b505050565b600054600160a060020a03163314610b7f576040805160e560020a62461bcd02815260206004820152600c60248201527f556e617574686f72697a65640000000000000000000000000000000000000000604482015290519081900360640190fd5b608354604080519182526020820183905280517f90aac84a509ee3cec594d7cc6a04f31c498c4d91783e5cdbcf454ab8aaaae3219281900390910190a16083819055608554608254610bdc919061057a908463ffffffff6111b416565b6084819055610bfa9060649061057a90604d9063ffffffff6111b416565b60865550565b608154600160a060020a03848116911614610c65576040805160e560020a62461bcd02815260206004820152600b60248201527f57726f6e6720746f6b656e000000000000000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0383163314610cc5576040805160e560020a62461bcd02815260206004820152600d60248201527f57726f6e67206163636f756e7400000000000000000000000000000000000000604482015290519081900360640190fd5b60c4811115610d1e576040805160e560020a62461bcd02815260206004820152600e60248201527f496e636f72726563742064617461000000000000000000000000000000000000604482015290519081900360640190fd5b600080600080610d6386868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b0792505050565b92965090945092509050878214610dc4576040805160e560020a62461bcd02815260206004820152600c60248201527f57726f6e6720616d6f756e740000000000000000000000000000000000000000604482015290519081900360640190fd5b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1984167f7e38d973000000000000000000000000000000000000000000000000000000001415610e1c57610e178984848461175f565b610f10565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1984167fac769090000000000000000000000000000000000000000000000000000000001415610e6e57610e17898484611b24565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1984167f2b3df690000000000000000000000000000000000000000000000000000000001415610ec057610e178984846113a8565b6040805160e560020a62461bcd02815260206004820152601560248201527f57726f6e67206d6574686f642073656c6563746f720000000000000000000000604482015290519081900360640190fd5b505050505050505050565b6087805482908110610f2957fe5b6000918252602090912060099091020180546001820154600283015460038401546004850154600586015460068701546007880154600890980154600160a060020a0390971698509496939592949193909289565b60886020526000908152604090205481565b6109a8338383611b24565b600080610fa783611079565b600501549150505b919050565b6000828152608860205260408120546087805491929183908110610fd457fe5b600091825260209091206009909102018054909150600160a060020a031633146110325760405160e560020a62461bcd02815260040180806020018281038252602a815260200180612ea0602a913960400191505060405180910390fd5b6002810183905560405184907f6e27af24ead46b4b469e383b46b4b75487fcf1ffce54d216add332f9de2120c590600090a250505050565b600054600160a060020a031681565b600081815260886020526040812054608780548290811061109657fe5b90600052602060002090600902019150828260010154141515611103576040805160e560020a62461bcd02815260206004820152601b60248201527f4572726f72206665746368696e6720636f727265637420646174610000000000604482015290519081900360640190fd5b50919050565b6000808211611150576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f54833981519152604482015290519081900360640190fd5b6000828481151561115d57fe5b04949350505050565b6000818310156111ae576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f54833981519152604482015290519081900360640190fd5b50900390565b60008215156111c557506000610991565b8282028284828115156111d457fe5b0414611218576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f54833981519152604482015290519081900360640190fd5b9392505050565b600080700200000000000000000000000000000000861061128a576040805160e560020a62461bcd02815260206004820152601860248201527f534e5420617661696c61626c6520697320696e76616c69640000000000000000604482015290519081900360640190fd5b60008086607f60020a890281151561129e57fe5b04905070015bf0a8b1457695355fb8ac404e7a79e38110156112ca576112c381611d8c565b91506112d6565b6112d3816121b1565b91505b60008563ffffffff168763ffffffff1684028115156112f157fe5b049050700800000000000000000000000000000000811015611324576113168161227f565b607f94509450505050611354565b600061132f8261268c565b905061134760ff607f8390031660020a830482612756565b9550935061135492505050565b94509492505050565b600082820183811015611218576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f54833981519152604482015290519081900360640190fd5b60006113c282670de0b6b3a764000063ffffffff61110916565b9050600081116114065760405160e560020a62461bcd028152600401808060200182810382526029815260200180612d926029913960400191505060405180910390fd5b600061141184611079565b905060865461142d83836003015461135d90919063ffffffff16565b111561146d5760405160e560020a62461bcd028152600401808060200182810382526037815260200180612eca6037913960400191505060405180910390fd5b60008061148784846003015461135d90919063ffffffff16565b600384018190556084546085546114ad92610586929161057a919063ffffffff6111b416565b6004840181905560038401546114c89163ffffffff6111b416565b6005840181905560855460048501546114e4929190819061121f565b60ff16600281900a8204600686015560058501546004860154600787015492955092935060009261151e9261061e9163ffffffff6111b416565b9050600061154160855461061e60855488600601546111b490919063ffffffff16565b90506000611555838363ffffffff61110916565b600387015490915061156d908263ffffffff61116616565b6008870155608154604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038d81166004830152306024830152604482018c9052915191909216916323b872dd9160648083019260209291908290030181600087803b1580156115e757600080fd5b505af11580156115fb573d6000803e3d6000fd5b505050506040513d602081101561161157600080fd5b50511515611657576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f34833981519152604482015290519081900360640190fd5b600886015460408051918252518a917f967f7d6ea4a44117f4cb822f761b5c76cbeac4c6ab5cfbaa59447574fa126bc2919081900360200190a250505050505050505050565b6000806000806116bc606486610100015161110990919063ffffffff16565b905060006116e78660a0015161057a886080015161061e8a60c00151876111b490919063ffffffff16565b905060006117168261170a8960e001518a60c0015161116690919063ffffffff16565b9063ffffffff61116616565b905060006117358361061e848b60a0015161110990919063ffffffff16565b9050600061174e6085548361110990919063ffffffff16565b949993985093965091945050505050565b60008381526089602052604090205460ff16156117c6576040805160e560020a62461bcd02815260206004820152601b60248201527f596f75206d757374207375626d6974206120756e697175652049440000000000604482015290519081900360640190fd5b60006117e083670de0b6b3a764000063ffffffff61110916565b9050600081116118245760405160e560020a62461bcd028152600401808060200182810382526042815260200180612d506042913960600191505060405180910390fd5b6086548111156118685760405160e560020a62461bcd028152600401808060200182810382526033815260200180612f016033913960400191505060405180910390fd5b6087805490819061187c9060018301612cbe565b50600060878281548110151561188e57fe5b60009182526020822060099190910201805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038a1617815560018101889055600281018690556003810185905560845460855491935082916118f7916105869161057a9089906111b4565b6004840181905560038401546119129163ffffffff6111b416565b60058401819055608554600485015461192e929190819061121f565b8060ff16905080935081925050508181908060020a820491505083600601819055506000836007018190555084836008018190555083608860008a8152602001908152602001600020819055506001608960008a815260200190815260200160002060006101000a81548160ff021916908315150217905550608160009054906101000a9004600160a060020a0316600160a060020a03166323b872dd8a308a6040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084600160a060020a0316600160a060020a0316815260200183600160a060020a0316600160a060020a031681526020018281526020019350505050602060405180830381600087803b158015611a5257600080fd5b505af1158015611a66573d6000803e3d6000fd5b505050506040513d6020811015611a7c57600080fd5b50511515611ac2576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f34833981519152604482015290519081900360640190fd5b6008830154604080519182525189917f868bbbb32f410f6626146ffc2d5c58cfdb3f08798ea4965f55c2b7d30a6f9c6c919081900360200190a2505050505050505050565b602081015160248201516044830151606490930151919390929190565b6000611b3e82670de0b6b3a764000063ffffffff61110916565b90506000611b4b84611079565b60408051610120810182528254600160a060020a03168152600183015460208201526002830154918101919091526003820154606082015260048201546080820152600582015460a0820152600682015460c0820152600782015460e0820152600882015461010082015290915060009081908190611bc99061169d565b91945092509050848114611c115760405160e560020a62461bcd028152600401808060200182810382526033815260200180612e146033913960400191505060405180910390fd5b6005840154611c26908663ffffffff61116616565b60058501556007840154611c40908363ffffffff61135d16565b60078501556008840154611c5a908463ffffffff61116616565b60088501556081548454604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301529283166024820152604481018a9052905191909216916323b872dd9160648083019260209291908290030181600087803b158015611cd857600080fd5b505af1158015611cec573d6000803e3d6000fd5b505050506040513d6020811015611d0257600080fd5b50511515611d48576040805160e560020a62461bcd02815260206004820152600f6024820152600080516020612f34833981519152604482015290519081900360640190fd5b6008840154604080519182525188917fa84d42fd75bca8f5ea3b11dc2aee00753b6ced6a669d6ad32396e1fef5b13528919081900360200190a25050505050505050565b6000808080806fd3094c70f034de4b96ff7d5b6f99fcd88610611ddb576f4000000000000000000000000000000093909301926fd3094c70f034de4b96ff7d5b6f99fcd8607f60020a87020495505b6fa45af1e1f40c333b3de1db4dd55f29a78610611e24576f2000000000000000000000000000000093909301926fa45af1e1f40c333b3de1db4dd55f29a7607f60020a87020495505b6f910b022db7ae67ce76b441c27035c6a18610611e6d576f1000000000000000000000000000000093909301926f910b022db7ae67ce76b441c27035c6a1607f60020a87020495505b6f88415abbe9a76bead8d00cf112e4d4a88610611eb6576f0800000000000000000000000000000093909301926f88415abbe9a76bead8d00cf112e4d4a8607f60020a87020495505b6f84102b00893f64c705e841d5d4064bd38610611eff576f0400000000000000000000000000000093909301926f84102b00893f64c705e841d5d4064bd3607f60020a87020495505b6f8204055aaef1c8bd5c3259f4822735a28610611f48576f0200000000000000000000000000000093909301926f8204055aaef1c8bd5c3259f4822735a2607f60020a87020495505b6f810100ab00222d861931c15e39b44e998610611f91576f0100000000000000000000000000000093909301926f810100ab00222d861931c15e39b44e99607f60020a87020495505b6f808040155aabbbe9451521693554f7338610611fd9576e80000000000000000000000000000093909301926f808040155aabbbe9451521693554f733607f60020a87020495505b6f7fffffffffffffffffffffffffffffff1986019250829150607f60020a8280020490507001000000000000000000000000000000008381038302049390930192607f60020a8282020491507002000000000000000000000000000000006faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8490038302049390930192607f60020a8282020491507003000000000000000000000000000000006f999999999999999999999999999999998490038302049390930192607f60020a8282020491507004000000000000000000000000000000006f924924924924924924924924924924928490038302049390930192607f60020a8282020491507005000000000000000000000000000000006f8e38e38e38e38e38e38e38e38e38e38e8490038302049390930192607f60020a8282020491507006000000000000000000000000000000006f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b8490038302049390930192607f60020a8282020491507007000000000000000000000000000000006f89d89d89d89d89d89d89d89d89d89d898490038302049390930192607f60020a8282020491507008000000000000000000000000000000006f888888888888888888888888888888888490038302049390930195945050505050565b60008070010000000000000000000000000000000083106121f35760006121dd607f60020a8504612bf8565b60ff16600281900a90940493607f60020a029150505b607f60020a83111561225357607f5b60008160ff16111561225157607f60020a8480020493507001000000000000000000000000000000008410612248576002938490049360ff600019830116900a91909101905b60001901612202565b505b6f05b9de1d10bf4103d647b0955897ba806f03f80fe03f80fe03f80fe03f80fe03f88202049392505050565b6000670168244fdac78000607f60020a6f0fffffffffffffffffffffffffffffff84168080028290048082028390048083028490049485026710e1b3be415a00009092026705a0913f6b1e000091909102010192909181830204905080664807432bc180000283019250607f60020a8282028115156122fa57fe5b04905080660c0135dca040000283019250607f60020a82820281151561231c57fe5b049050806601b707b1cdc0000283019250607f60020a82820281151561233e57fe5b049050806536e0f639b8000283019250607f60020a82820281151561235f57fe5b04905080650618fee9f8000283019250607f60020a82820281151561238057fe5b04905080649c197dcc000283019250607f60020a8282028115156123a057fe5b04905080640e30dce4000283019250607f60020a8282028115156123c057fe5b0490508064012ebd13000283019250607f60020a8282028115156123e057fe5b049050806317499f000283019250607f60020a8282028115156123ff57fe5b049050806301a9d4800283019250607f60020a82820281151561241e57fe5b04905080621c63800283019250607f60020a82820281151561243c57fe5b049050806201c6380283019250607f60020a82820281151561245a57fe5b04905080611ab80283019250607f60020a82820281151561247757fe5b0490508061017c0283019250607f60020a82820281151561249457fe5b0490508060140283019250607f60020a8282028115156124b057fe5b6721c3677c82b40000919004938401048201607f60020a019290506f1000000000000000000000000000000085161561250d5770018ebef9eac820ae8682b9793ac6d1e7767001c3d6a24ed82218787d624d3e5eba95f984020492505b6f2000000000000000000000000000000085161561254f577001368b2fc6f9609fe7aceb46aa619baed470018ebef9eac820ae8682b9793ac6d1e77884020492505b6f40000000000000000000000000000000851615612590576fbc5ab1b16779be3575bd8f0520a9f21f7001368b2fc6f9609fe7aceb46aa619baed584020492505b607f60020a8516156125c4576f454aaa8efe072e7f6ddbab84b40a55c96fbc5ab1b16779be3575bd8f0520a9f21e84020492505b700100000000000000000000000000000000851615612605576f0960aadc109e7a3bf4578099615711ea6f454aaa8efe072e7f6ddbab84b40a55c584020492505b700200000000000000000000000000000000851615612645576e2bf84208204f5977f9a8cf01fdce3d6f0960aadc109e7a3bf4578099615711d784020492505b700400000000000000000000000000000000851615612683576d03c6ab775dd0b95b4cbee7e65d116e2bf84208204f5977f9a8cf01fdc30784020492505b50909392505050565b60006020607f5b8060ff168260010160ff1610156126db576000600260ff8484011604905084600160ff8316608081106126c257fe5b0154106126d1578092506126d5565b8091505b50612693565b83600160ff8316608081106126ec57fe5b0154106126fc579150610faf9050565b83600160ff84166080811061270d57fe5b01541061271c57509050610faf565b60405160e560020a62461bcd028152600401808060200182810382526022815260200180612e7e6022913960400191505060405180910390fd5b60008083905060008090508360ff16858302908060020a82049150509150816f03442c4e6074a82f1797f72ac000000002810190508360ff16858302908060020a82049150509150816f0116b96f757c380fb287fd0e4000000002810190508360ff16858302908060020a82049150509150816e45ae5bdd5f0e03eca1ff439000000002810190508360ff16858302908060020a82049150509150816e0defabf91302cd95b9ffda5000000002810190508360ff16858302908060020a82049150509150816e02529ca9832b22439efff9b800000002810190508360ff16858302908060020a82049150509150816d54f1cf12bd04e516b6da8800000002810190508360ff16858302908060020a82049150509150816d0a9e39e257a09ca2d6db5100000002810190508360ff16858302908060020a82049150509150816d012e066e7b839fa050c30900000002810190508360ff16858302908060020a82049150509150816c1e33d7d926c329a1ad1a80000002810190508360ff16858302908060020a82049150509150816c02bee513bdb4a6b19b5f80000002810190508360ff16858302908060020a82049150509150816b3a9316fa79b88eccf2a0000002810190508360ff16858302908060020a82049150509150816b048177ebe1fa81237520000002810190508360ff16858302908060020a82049150509150816a5263fe90242dcbacf0000002810190508360ff16858302908060020a82049150509150816a057e22099c030d9410000002810190508360ff16858302908060020a82049150509150816957e22099c030d941000002810190508360ff16858302908060020a820491505091508169052b6b5456997631000002810190508360ff16858302908060020a8204915050915081684985f67696bf74800002810190508360ff16858302908060020a82049150509150816803dea12ea99e49800002810190508360ff16858302908060020a82049150509150816731880f2214b6e00002810190508360ff16858302908060020a820491505091508167025bcff56eb3600002810190508360ff16858302908060020a8204915050915081661b722e10ab100002810190508360ff16858302908060020a82049150509150816601317c7007700002810190508360ff16858302908060020a8204915050915081650cba84aafa0002810190508360ff16858302908060020a82049150509150816482573a0a0002810190508360ff16858302908060020a82049150509150816405035ad90002810190508360ff16858302908060020a8204915050915081632f881b0002810190508360ff16858302908060020a82049150509150816301b2934002810190508360ff16858302908060020a8204915050915081620efc4002810190508360ff16858302908060020a8204915050915081617fe002810190508360ff16858302908060020a820491505091508161042002810190508360ff16858302908060020a8204915050915081602102810190508360ff16858302908060020a8204915050915081600102810190508360ff1660019060020a02856f0688589cc0e9505e2f2fee558000000083811515612bec57fe5b04010195945050505050565b600080610100831015612c22575b6001831115612c1d57600290920491600101612c06565b610991565b60805b60008160ff161115612c5b5760ff811660020a8410612c4e5760ff811660020a90930492908117905b600260ff90911604612c25565b5092915050565b610120604051908101604052806000600160a060020a0316815260200160008019168152602001600080191681526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b815481835581811115610b1857600083815260209020610b1891610a629160099182028101918502015b80821115612d4b57805473ffffffffffffffffffffffffffffffffffffffff191681556000600182018190556002820181905560038201819055600482018190556005820181905560068201819055600782018190556008820155600901612ce8565b509056fe596f75206d757374207370656e6420736f6d6520534e5420746f207375626d697420612072616e6b696e6720696e206f7264657220746f2061766f6964207370616d596f75206d7573742073656e6420736f6d6520534e5420696e206f7264657220746f207570766f7465596f752063616e206f6e6c7920776974686472617720612070657263656e74616765206f662074686520534e54207374616b65642c206c657373207768617420796f75206861766520616c7265616479207265636569766564496e636f727265637420616d6f756e743a2076616c69642069666620656666656374206f6e2072616e6b696e672069732031254f6e6c792074686520646576656c6f7065722063616e20776974686472617720534e54207374616b6564206f6e20746869732064617461436f756c64206e6f742066696e642061207375697461626c6520706f736974696f6e4f6e6c792074686520646576656c6f7065722063616e2075706461746520746865206d65746164617461596f752063616e6e6f74207570766f74652062792074686973206d7563682c2074727920776974682061206c6f77657220616d6f756e74596f752063616e6e6f74207374616b65206d6f726520534e54207468616e20746865206365696c696e672064696374617465735472616e73666572206661696c65640000000000000000000000000000000000536166654d617468206661696c65640000000000000000000000000000000000a165627a7a72305820126d878105190bf9584e43a836a34b0148cab1bef3b8afe0129e9d00585ee6970029

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

000000000000000000000000744d70fdbe2ba4cf95131626614a1763df805b9e

-----Decoded View---------------
Arg [0] : _SNT (address): 0x744d70FDBE2Ba4CF95131626614a1763DF805B9E

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000744d70fdbe2ba4cf95131626614a1763df805b9e


Deployed Bytecode Sourcemap

185:13612:3:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;185:13612:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4350:1256;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4350:1256:3;;;;;;;:::i;:::-;;7821:1040;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7821:1040:3;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;733:19;;;:::i;3150:102::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3150:102:3;;;;;;;:::i;388:17::-;;;:::i;665:20::-;;;:::i;512:126:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;512:126:2;-1:-1:-1;;;;;512:126:2;;:::i;1171:43:3:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1171:43:3;;:::i;:::-;;;;;;;;;;;;;;;;;;6156:89;;;:::i;600:15::-;;;:::i;9045:165::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9045:165:3;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;473:19;;;:::i;2675:189::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2675:189:3;;;;;;;;;;;;:::i;2156:246::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2156:246:3;;:::i;6591:957::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;6591:957:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;6591:957:3;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;6591:957:3;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;6591:957:3;;-1:-1:-1;6591:957:3;-1:-1:-1;6591:957:3;:::i;1100:19::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1100:19:3;;:::i;:::-;;;;-1:-1:-1;;;;;1100:19:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1125:40;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1125:40:3;;:::i;3468:106::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3468:106:3;;;;;;;:::i;3891:141::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3891:141:3;;:::i;5751:305::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5751:305:3;;;;;;;:::i;281:33:2:-;;;:::i;:::-;;;;-1:-1:-1;;;;;281:33:2;;;;;;;;;;;;;;4350:1256:3;4415:14;4432:17;4445:3;4432:12;:17::i;:::-;4415:34;-1:-1:-1;4460:22:3;4485:20;:7;4497;4485:20;:11;:20;:::i;:::-;4538:11;;4460:45;;-1:-1:-1;;;;;;4538:11:3;4524:10;:25;4516:93;;;;-1:-1:-1;;;;;4516:93:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4645:11;;;;4627:29;;;4619:131;;;;-1:-1:-1;;;;;4619:131:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4761:14;4785:11;4819:29;4833:14;4819:1;:9;;;:13;;:29;;;;:::i;:::-;4807:9;;;:41;;;4908:3;;4894:8;;4867:46;;4880:32;;4908:3;4880:23;;4807:41;4880:23;:13;:23;:::i;:::-;:27;:32;:27;:32;:::i;:::-;4867:8;;;:46;:12;:46;:::i;:::-;4858:6;;;:55;;;4937:9;;;;:21;;;:13;:21;:::i;:::-;4923:11;;;:35;;;5049:8;;5108:6;;;;4991:125;;4923:35;5049:8;;;4991:19;:125::i;:::-;4969:147;;49:1:-1;45:20;;;25:41;;5127:13:3;;;:35;;;5176:11;;;;4969:147;;-1:-1:-1;4969:147:3;;-1:-1:-1;5176:27:3;5172:85;;;5233:13;;;;5219:11;;;:27;5172:85;5267:10;5280:40;5308:1;:11;;;5280:23;5296:1;:6;;;5280:1;:11;;;:15;;:23;;;;:::i;:::-;:27;:40;:27;:40;:::i;:::-;5267:53;;5330:10;5343:41;5375:8;;5343:27;5361:8;;5343:1;:13;;;:17;;:27;;;;:::i;:41::-;5330:54;-1:-1:-1;5394:11:3;5408:16;:5;5330:54;5408:16;:9;:16;:::i;:::-;5456:9;;;;5394:30;;-1:-1:-1;5456:21:3;;5394:30;5456:21;:13;:21;:::i;:::-;5435:18;;;:42;5496:3;;5509:11;;5496:34;;;;;;-1:-1:-1;;;;;5509:11:3;;;5496:34;;;;;;;;;;;;:3;;;;;:12;;:34;;;;;;;;;;;;;;:3;;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;5496:34:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5496:34:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5496:34:3;5488:62;;;;;;;-1:-1:-1;;;;;5488:62:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5488:62:3;;;;;;;;;;;;;;;5580:18;;;;5566:33;;;;;;;5575:3;;5566:33;;;;;;;;;;4350:1256;;;;;;;;;:::o;7821:1040::-;7892:11;7915:13;;:::i;:::-;7931:17;7944:3;7931:12;:17::i;:::-;7915:33;;;;;;;;;;-1:-1:-1;;;;;7915:33:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7992:7;;7915:33;;-1:-1:-1;7992:7:3;7966:22;;7980:7;7966:22;:13;:22;:::i;:::-;:33;;7958:101;;;;-1:-1:-1;;;;;7958:101:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8122:11;;;;:16;8118:61;;;8161:7;8154:14;;;;;8118:61;8189:14;8213:11;8235:13;8251:22;8265:7;8251:1;:9;;;:13;;:22;;;;:::i;:::-;8235:38;;8283:10;8296:45;8309:31;8336:3;;8309:22;8322:8;;8309;:12;;:22;;;;:::i;8296:45::-;8283:58;-1:-1:-1;8351:15:3;8369:19;:8;8283:58;8369:19;:12;:19;:::i;:::-;8351:37;;8421:123;8454:10;8478:8;;8507;;8537:5;8421:19;:123::i;:::-;8614:11;;;;8399:145;;;;;-1:-1:-1;8399:145:3;;-1:-1:-1;49:1;45:20;;;25:41;;;8555:13:3;;8614:38;;8641:10;;8614:22;;8630:5;8614:22;:15;:22;:::i;:38::-;8702:8;;8601:51;;-1:-1:-1;8662:10:3;;8675:36;;:22;:8;8702;8675:22;:12;:22;:::i;:36::-;8662:49;-1:-1:-1;8721:12:3;8736:16;:5;8662:49;8736:16;:9;:16;:::i;:::-;8721:31;-1:-1:-1;8763:14:3;8780:21;:8;8721:31;8780:21;:12;:21;:::i;:::-;8763:38;;8820:33;8834:1;:18;;;8820:9;:13;;:33;;;;:::i;:::-;8812:42;;;;;;;;;;;;;7821:1040;;;;;:::o;733:19::-;;;;:::o;3150:102::-;3212:33;3220:10;3232:3;3237:7;3212;:33::i;:::-;3150:102;;:::o;388:17::-;;;;:::o;665:20::-;;;;:::o;512:126:2:-;228:10;;-1:-1:-1;;;;;228:10:2;214;:24;206:49;;;;;-1:-1:-1;;;;;206:49:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;604:10;:27;;-1:-1:-1;;604:27:2;-1:-1:-1;;;;;604:27:2;;;;;;;;;;512:126::o;1171:43:3:-;;;;;;;;;;;;;;;:::o;6156:89::-;6226:5;:12;6156:89;;:::o;600:15::-;;;;:::o;9045:165::-;9102:6;9110:7;9119:6;9137:13;;:::i;:::-;9153:17;9166:3;9153:12;:17::i;:::-;9137:33;;;;;;;;;;-1:-1:-1;;;;;9137:33:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9187:16:3;9137:33;9187:13;:16::i;:::-;9180:23;;;;;;;9045:165;;;;;:::o;473:19::-;;;;:::o;2675:189::-;2760:97;2785:10;2809:3;2826:7;2847:9;2760:11;:97::i;:::-;2675:189;;;:::o;2156:246::-;228:10:2;;-1:-1:-1;;;;;228:10:2;214;:24;206:49;;;;;-1:-1:-1;;;;;206:49:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;2248:7:3;;2233:36;;;;;;;;;;;;;;;;;;;;;;;;2280:7;:21;;;2340:8;;2317:5;;:32;;2340:8;2317:18;;2290:11;2317:18;:9;:18;:::i;:32::-;2311:3;:38;;;2369:26;;2391:3;;2369:17;;2374:2;;2369:17;:12;:17;:::i;:26::-;2359:7;:36;-1:-1:-1;2156:246:3:o;6591:957::-;6781:3;;-1:-1:-1;;;;;6763:22:3;;;6781:3;;6763:22;6755:46;;;;;-1:-1:-1;;;;;6755:46:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6819:29:3;;6837:10;6819:29;6811:55;;;;;-1:-1:-1;;;;;6811:55:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;6900:3;6884:19;;;6876:46;;;;;-1:-1:-1;;;;;6876:46:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;6933:10;6953;6973:14;6997:16;7054:24;7072:5;;7054:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;7054:17:3;;-1:-1:-1;;;7054:24:3:i;:::-;7024:54;;-1:-1:-1;7024:54:3;;-1:-1:-1;7024:54:3;-1:-1:-1;7024:54:3;-1:-1:-1;7096:17:3;;;7088:42;;;;;-1:-1:-1;;;;;7088:42:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7145:25:3;;7152:18;7145:25;7141:401;;;7186:105;7215:5;7238:2;7258:6;7282:8;7186:11;:105::i;:::-;7141:401;;;-1:-1:-1;;7312:25:3;;7319:18;7312:25;7308:234;;;7353:28;7363:5;7370:2;7374:6;7353:9;:28::i;7308:234::-;-1:-1:-1;;7402:25:3;;7409:18;7402:25;7398:144;;;7443:26;7451:5;7458:2;7462:6;7443:7;:26::i;7398:144::-;7500:31;;;-1:-1:-1;;;;;7500:31:3;;;;;;;;;;;;;;;;;;;;;;;;;;;7398:144;6591:957;;;;;;;;;:::o;1100:19::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1100:19:3;;;;-1:-1:-1;1100:19:3;;;;;;;;;;;:::o;1125:40::-;;;;;;;;;;;;;:::o;3468:106::-;3532:35;3542:10;3554:3;3559:7;3532:9;:35::i;3891:141::-;3947:4;3963:14;3980:17;3993:3;3980:12;:17::i;:::-;4014:11;;;;-1:-1:-1;;3891:141:3;;;;:::o;5751:305::-;5823:12;5838:13;;;:8;:13;;;;;;5878:5;:14;;5838:13;;5823:12;5838:13;;5878:14;;;;;;;;;;;;;;;;;;;5910:11;;5878:14;;-1:-1:-1;;;;;;5910:11:3;5925:10;5910:25;5902:80;;;;-1:-1:-1;;;;;5902:80:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5992:10;;;:22;;;6029:20;;6045:3;;6029:20;;;;;5751:305;;;;:::o;281:33:2:-;;;-1:-1:-1;;;;;281:33:2;;:::o;12957:207:3:-;13014:14;13055:13;;;:8;:13;;;;;;13082:5;:14;;13055:13;;13082:14;;;;;;;;;;;;;;;;13078:18;;13122:3;13114:1;:4;;;:11;13106:51;;;;;;;-1:-1:-1;;;;;13106:51:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;12957:207;;;;:::o;1378:168:8:-;1438:7;1465:6;;;1457:34;;;;;-1:-1:-1;;;;;1457:34:8;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1457:34:8;;;;;;;;;;;;;;;1501:9;1518:2;1513;:7;;;;;;;;;1378:168;-1:-1:-1;;;;1378:168:8:o;585:146::-;645:7;672:8;;;;664:36;;;;;-1:-1:-1;;;;;664:36:8;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;664:36:8;;;;;;;;;;;;;;;-1:-1:-1;717:7:8;;;585:146::o;929:245::-;989:7;1040;;1036:33;;;-1:-1:-1;1068:1:8;1061:8;;1036:33;1092:7;;;1097:2;1092;:7;1117:6;;;;;;;;:12;1109:40;;;;;-1:-1:-1;;;;;1109:40:8;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1109:40:8;;;;;;;;;;;;;;;1166:1;929:245;-1:-1:-1;;;929:245:8:o;10816:828:1:-;10950:7;;504:35;10993:16;;10985:53;;;;;-1:-1:-1;;;;;10985:53:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;11049:15;11074:12;11108:6;-1:-1:-1;;;11089:6:1;:16;:25;;;;;;;;11074:40;;928:35;11128:4;:22;11124:136;;;11176:16;11187:4;11176:10;:16::i;:::-;11166:26;;11124:136;;;11233:16;11244:4;11233:10;:16::i;:::-;11223:26;;11124:136;11270:23;11314:5;11296:23;;11306:5;11296:15;;:7;:15;:23;;;;;;;;11270:49;;1012:35;11333:15;:33;11329:309;;;11390:27;11401:15;11390:10;:27::i;:::-;237:3;11382:51;;;;;;;;;11329:309;11464:15;11482:42;11508:15;11482:25;:42::i;:::-;11464:60;-1:-1:-1;11546:69:1;11557:46;237:3;11577:25;;;11557:46;49:1:-1;45:20;25:41;;11464:60:1;11546:10;:69::i;:::-;11538:89;-1:-1:-1;11617:9:1;-1:-1:-1;11538:89:1;;-1:-1:-1;;;11538:89:1;10816:828;;;;;;;;:::o;220:168:8:-;280:7;311;;;336;;;;328:35;;;;;-1:-1:-1;;;;;328:35:8;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;328:35:8;;;;;;;;;;;;;;10565:1144:3;10643:22;10668:20;:7;10680;10668:20;:11;:20;:::i;:::-;10643:45;-1:-1:-1;10723:1:3;10706:18;;10698:72;;;;-1:-1:-1;;;;;10698:72:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10781:14;10798:17;10811:3;10798:12;:17::i;:::-;10781:34;;10867:7;;10834:29;10848:14;10834:1;:9;;;:13;;:29;;;;:::i;:::-;:40;;10826:108;;;;-1:-1:-1;;;;;10826:108:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10945:14;10969:11;11003:29;11017:14;11003:1;:9;;;:13;;:29;;;;:::i;:::-;10991:9;;;:41;;;11094:3;;11080:8;;11051:48;;11064:34;;11094:3;11064:25;;10991:41;11064:25;:15;:25;:::i;11051:48::-;11042:6;;;:57;;;11123:9;;;;:21;;;:13;:21;:::i;:::-;11109:11;;;:35;;;11235:8;;11294:6;;;;11177:125;;11109:35;11235:8;;;11177:19;:125::i;:::-;11155:147;;49:1:-1;45:20;;;25:41;;11313:13:3;;;:35;11400:11;;;;11388:6;;;;11372:11;;;;11155:147;;-1:-1:-1;11155:147:3;;-1:-1:-1;11359:10:3;;11372:40;;:23;;;:15;:23;:::i;:40::-;11359:53;;11422:10;11435:41;11467:8;;11435:27;11453:8;;11435:1;:13;;;:17;;:27;;;;:::i;:41::-;11422:54;-1:-1:-1;11486:11:3;11500:16;:5;11422:54;11500:16;:9;:16;:::i;:::-;11548:9;;;;11486:30;;-1:-1:-1;11548:21:3;;11486:30;11548:21;:13;:21;:::i;:::-;11527:18;;;:42;11588:3;;:47;;;;;;-1:-1:-1;;;;;11588:47:3;;;;;;;11620:4;11588:47;;;;;;;;;;;;:3;;;;;:16;;:47;;;;;;;;;;;;;;:3;;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;11588:47:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11588:47:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11588:47:3;11580:75;;;;;;;-1:-1:-1;;;;;11580:75:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11580:75:3;;;;;;;;;;;;;;;11683:18;;;;11671:31;;;;;;;11678:3;;11671:31;;;;;;;;;;10565:1144;;;;;;;;;;:::o;12333:494::-;12393:6;12401:7;12410:6;12428:18;12450:27;12473:3;12450:1;:18;;;:22;;:27;;;;:::i;:::-;12428:50;;12488:18;12509:63;12560:1;:11;;;12510:44;12547:1;:6;;;12510:32;12528:1;:13;;;12510;:17;;:32;;;;:::i;12509:63::-;12488:84;;12582:19;12604:49;12639:13;12604:30;12622:1;:11;;;12604:1;:13;;;:17;;:30;;;;:::i;:::-;:34;:49;:34;:49;:::i;:::-;12582:71;;12663:9;12675:52;12713:13;12676:31;12692:14;12676:1;:11;;;:15;;:31;;;;:::i;12675:52::-;12663:64;;12737:9;12749:18;12758:8;;12749:4;:8;;:18;;;;:::i;:::-;12785:13;;12800;;-1:-1:-1;12785:13:3;;-1:-1:-1;12333:494:3;;-1:-1:-1;;;;;12333:494:3:o;9216:1343::-;9380:16;;;;:11;:16;;;;;;;;9379:17;9371:57;;;;;-1:-1:-1;;;;;9371:57:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;9439:22;9464:20;:7;9476;9464:20;:11;:20;:::i;:::-;9439:45;-1:-1:-1;9520:1:3;9503:18;;9495:97;;;;-1:-1:-1;;;;;9495:97:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9629:7;;9611:25;;;9602:90;;;;-1:-1:-1;;;;;9602:90:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9718:5;:12;;;;;9741:14;;;;;;:::i;:::-;;9766;9783:5;9789:7;9783:14;;;;;;;;;;;;;;;;;;;;;;;9807:19;;-1:-1:-1;;9807:19:3;-1:-1:-1;;;;;9807:19:3;;;;;-1:-1:-1;9836:4:3;;:10;;;9856;;;:22;;;9935:9;;;:26;;;10023:3;;10009:8;;9783:14;;-1:-1:-1;9783:14:3;;9980:48;;9993:34;;:25;;9935:26;;9993:15;:25::i;9980:48::-;9971:6;;;:57;;;10052:9;;;;:21;;;:13;:21;:::i;:::-;10038:11;;;:35;;;10164:8;;10223:6;;;;10106:125;;10038:35;10164:8;;;10106:19;:125::i;:::-;10084:147;;;;;;;;;;;;;10268:9;10258:6;:19;52:12:-1;49:1;45:20;29:14;25:41;7:59;;10258:19:3;10242:1;:13;;:35;;;;10301:1;10287;:11;;:15;;;;10333:14;10312:1;:18;;:35;;;;10374:7;10358:8;:13;10367:3;10358:13;;;;;;;;;;;:23;;;;10410:4;10391:11;:16;10403:3;10391:16;;;;;;;;;;;;:23;;;;;;;;;;;;;;;;;;10433:3;;;;;;;;;-1:-1:-1;;;;;10433:3:3;-1:-1:-1;;;;;10433:16:3;;10450:5;10465:4;10472:7;10433:47;;;;;;;;;;;;;-1:-1:-1;;;;;10433:47:3;-1:-1:-1;;;;;10433:47:3;;;;;;-1:-1:-1;;;;;10433:47:3;-1:-1:-1;;;;;10433:47:3;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10433:47:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10433:47:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10433:47:3;10425:75;;;;;;;-1:-1:-1;;;;;10425:75:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10425:75:3;;;;;;;;;;;;;;;10533:18;;;;10516:36;;;;;;;10528:3;;10516:36;;;;;;;;;;9216:1343;;;;;;;;;:::o;13351:444::-;13638:4;13623:24;;13617:31;13684:2;13673:14;;13667:21;13728:2;13717:14;;13711:21;13774:3;13763:15;;;13757:22;13617:31;;13667:21;;13711;13757:22;13596:193::o;11715:612::-;11795:22;11820:20;:7;11832;11820:20;:11;:20;:::i;:::-;11795:45;;11850:14;11867:17;11880:3;11867:12;:17::i;:::-;11922:16;;;;;;;;;;-1:-1:-1;;;;;11922:16:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11850:34;;-1:-1:-1;11895:6:3;;;;;;11922:16;;:13;:16::i;:::-;11894:44;;-1:-1:-1;11894:44:3;-1:-1:-1;11894:44:3;-1:-1:-1;11957:19:3;;;11949:83;;;;-1:-1:-1;;;;;11949:83:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12057:11;;;;:31;;12073:14;12057:31;:15;:31;:::i;:::-;12043:11;;;:45;12112:11;;;;:19;;12128:2;12112:19;:15;:19;:::i;:::-;12098:11;;;:33;12162:18;;;;:25;;12185:1;12162:25;:22;:25;:::i;:::-;12141:18;;;:46;12206:3;;12230:11;;12206:45;;;;;;-1:-1:-1;;;;;12206:45:3;;;;;;;12230:11;;;12206:45;;;;;;;;;;;;:3;;;;;:16;;:45;;;;;;;;;;;;;;:3;;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;12206:45:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12206:45:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12206:45:3;12198:73;;;;;;;-1:-1:-1;;;;;12198:73:3;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;12198:73:3;;;;;;;;;;;;;;;12301:18;;;;12287:33;;;;;;;12296:3;;12287:33;;;;;;;;;;11715:612;;;;;;;;:::o;19554:3054:1:-;19608:7;;;;;19724:34;19719:39;;19715:169;;19781:34;19774:41;;;;;19848:34;-1:-1:-1;;;19834:11:1;;:48;19830:52;;19715:169;19917:34;19912:39;;19908:169;;19974:34;19967:41;;;;;20041:34;-1:-1:-1;;;20027:11:1;;:48;20023:52;;19908:169;20110:34;20105:39;;20101:169;;20167:34;20160:41;;;;;20234:34;-1:-1:-1;;;20220:11:1;;:48;20216:52;;20101:169;20303:34;20298:39;;20294:169;;20360:34;20353:41;;;;;20427:34;-1:-1:-1;;;20413:11:1;;:48;20409:52;;20294:169;20496:34;20491:39;;20487:169;;20553:34;20546:41;;;;;20620:34;-1:-1:-1;;;20606:11:1;;:48;20602:52;;20487:169;20689:34;20684:39;;20680:169;;20746:34;20739:41;;;;;20813:34;-1:-1:-1;;;20799:11:1;;:48;20795:52;;20680:169;20882:34;20877:39;;20873:169;;20939:34;20932:41;;;;;21006:34;-1:-1:-1;;;20992:11:1;;:48;20988:52;;20873:169;21075:34;21070:39;;21066:169;;21132:34;21125:41;;;;;21199:34;-1:-1:-1;;;21185:11:1;;:48;21181:52;;21066:169;-1:-1:-1;;21268:11:1;;;-1:-1:-1;21268:11:1;;-1:-1:-1;;;;21293:5:1;;;:15;;-1:-1:-1;21373:35:1;21330:39;;;21325:45;;:83;21318:90;;;;;-1:-1:-1;;;21423:5:1;;;:15;;-1:-1:-1;21532:35:1;21489;:39;;;21484:45;;:83;21477:90;;;;;-1:-1:-1;;;21582:5:1;;;:15;;-1:-1:-1;21691:35:1;21648;:39;;;21643:45;;:83;21636:90;;;;;-1:-1:-1;;;21741:5:1;;;:15;;-1:-1:-1;21850:35:1;21807;:39;;;21802:45;;:83;21795:90;;;;;-1:-1:-1;;;21900:5:1;;;:15;;-1:-1:-1;22009:35:1;21966;:39;;;21961:45;;:83;21954:90;;;;;-1:-1:-1;;;22059:5:1;;;:15;;-1:-1:-1;22168:35:1;22125;:39;;;22120:45;;:83;22113:90;;;;;-1:-1:-1;;;22218:5:1;;;:15;;-1:-1:-1;22327:35:1;22284;:39;;;22279:45;;:83;22272:90;;;;;-1:-1:-1;;;22377:5:1;;;:15;;-1:-1:-1;22486:35:1;22443;:39;;;22438:45;;:83;22431:90;;;;;19554:3054;-1:-1:-1;;;;;19554:3054:1:o;11809:801::-;11863:7;;428:35;12003:12;;11999:152;;12031:11;12045:22;-1:-1:-1;;;12055:1:1;:11;12045:9;:22::i;:::-;12081:11;;49:1:-1;45:20;;;25:41;;;;-1:-1;;;12125:15:1;;-1:-1:-1;;11999:152:1;-1:-1:-1;;;12256:1:1;:11;12252:297;;;237:3;12283:256;12317:1;12313;:5;;;12283:256;;;-1:-1:-1;;;12348:5:1;;;12347:17;;-1:-1:-1;428:35:1;12403:12;;12399:126;;49:1:-1;25:41;;;;;12492:14:1;-1:-1:-1;;12500:5:1;;12492:14;;;12485:21;;;;;12399:126;-1:-1:-1;;12320:3:1;12283:256;;;;12252:297;741:33;659;12566:19;;:37;;11809:801;-1:-1:-1;;;11809:801:1:o;23285:3417::-;23339:7;23745:18;-1:-1:-1;;;23435:38:1;;;23518:5;;;:15;;;23613:5;;;:15;;;23708:5;;;:15;;;23741:22;;;23555:18;23551:22;;;23650:18;23646:22;;;;23639:29;23734;;23435:38;;23803:5;;;:15;23799:19;;23836:1;23840:18;23836:22;23829:29;;;;-1:-1:-1;;;23902:1:1;23898;:5;:15;;;;;;;;23894:19;;23931:1;23935:18;23931:22;23924:29;;;;-1:-1:-1;;;23997:1:1;23993;:5;:15;;;;;;;;23989:19;;24026:1;24030:18;24026:22;24019:29;;;;-1:-1:-1;;;24092:1:1;24088;:5;:15;;;;;;;;24084:19;;24121:1;24125:18;24121:22;24114:29;;;;-1:-1:-1;;;24187:1:1;24183;:5;:15;;;;;;;;24179:19;;24216:1;24220:18;24216:22;24209:29;;;;-1:-1:-1;;;24282:1:1;24278;:5;:15;;;;;;;;24274:19;;24311:1;24315:18;24311:22;24304:29;;;;-1:-1:-1;;;24377:1:1;24373;:5;:15;;;;;;;;24369:19;;24406:1;24410:18;24406:22;24399:29;;;;-1:-1:-1;;;24472:1:1;24468;:5;:15;;;;;;;;24464:19;;24501:1;24505:18;24501:22;24494:29;;;;-1:-1:-1;;;24567:1:1;24563;:5;:15;;;;;;;;24559:19;;24596:1;24600:18;24596:22;24589:29;;;;-1:-1:-1;;;24662:1:1;24658;:5;:15;;;;;;;;24654:19;;24691:1;24695:18;24691:22;24684:29;;;;-1:-1:-1;;;24757:1:1;24753;:5;:15;;;;;;;;24749:19;;24786:1;24790:18;24786:22;24779:29;;;;-1:-1:-1;;;24852:1:1;24848;:5;:15;;;;;;;;24844:19;;24881:1;24885:18;24881:22;24874:29;;;;-1:-1:-1;;;24947:1:1;24943;:5;:15;;;;;;;;24939:19;;24976:1;24980:18;24976:22;24969:29;;;;-1:-1:-1;;;25042:1:1;25038;:5;:15;;;;;;;;25034:19;;25071:1;25075:18;25071:22;25064:29;;;;-1:-1:-1;;;25137:1:1;25133;:5;:15;;;;;;;;25129:19;;25166:1;25170:18;25166:22;25159:29;;;;-1:-1:-1;;;25232:1:1;25228;:5;:15;;;;;;;25331:18;25228:15;;;25254:29;;;25325:24;:28;;-1:-1:-1;;;25325:38:1;;25228:15;-1:-1:-1;25433:35:1;25429:39;;25428:46;25424:146;;25535:35;25497;25491:41;;:79;25485:85;;25424:146;25613:35;25609:39;;25608:46;25604:146;;25715:35;25677;25671:41;;:79;25665:85;;25604:146;25793:35;25789:39;;25788:46;25784:146;;25895:35;25857;25851:41;;:79;25845:85;;25784:146;-1:-1:-1;;;25969:39:1;;25968:46;25964:146;;26075:35;26037;26031:41;;:79;26025:85;;25964:146;26153:35;26149:39;;26148:46;26144:146;;26255:35;26217;26211:41;;:79;26205:85;;26144:146;26333:35;26329:39;;26328:46;26324:146;;26435:35;26397;26391:41;;:79;26385:85;;26324:146;26513:35;26509:39;;26508:46;26504:146;;26615:35;26577;26571:41;;:79;26565:85;;26504:146;-1:-1:-1;26692:3:1;;23285:3417;-1:-1:-1;;;23285:3417:1:o;13601:559::-;13671:5;190:2;237:3;13757:199;13773:2;13764:11;;:2;13769:1;13764:6;:11;;;13757:199;;;13791:9;13815:1;13803:13;13804:7;;;13803:13;;;-1:-1:-1;13854:2:1;13834:11;:16;;;;;;;;;;;;:22;13830:116;;13881:3;13876:8;;13830:116;;;13928:3;13923:8;;13830:116;13757:199;;;;13989:2;13970:11;:15;;;;;;;;;;;;:21;13966:48;;14012:2;-1:-1:-1;14005:9:1;;-1:-1:-1;14005:9:1;13966:48;14047:2;14028:11;:15;;;;;;;;;;;;:21;14024:48;;-1:-1:-1;14070:2:1;-1:-1:-1;14063:9:1;;14024:48;14083:52;;-1:-1:-1;;;;;14083:52:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14718:4114;14791:7;14810:10;14823:2;14810:15;;14835:11;14849:1;14835:15;;14879:10;14866:23;;14872:2;14867;:7;14866:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;14866:23:1;14861:28;;14907:2;14912:33;14907:38;14900:45;;;;14999:10;14986:23;;14992:2;14987;:7;14986:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;14986:23:1;14981:28;;15027:2;15032:33;15027:38;15020:45;;;;15119:10;15106:23;;15112:2;15107;:7;15106:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;15106:23:1;15101:28;;15147:2;15152:33;15147:38;15140:45;;;;15239:10;15226:23;;15232:2;15227;:7;15226:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;15226:23:1;15221:28;;15267:2;15272:33;15267:38;15260:45;;;;15359:10;15346:23;;15352:2;15347;:7;15346:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;15346:23:1;15341:28;;15387:2;15392:33;15387:38;15380:45;;;;15479:10;15466:23;;15472:2;15467;:7;15466:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;15466:23:1;15461:28;;15507:2;15512:33;15507:38;15500:45;;;;15599:10;15586:23;;15592:2;15587;:7;15586:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;15586:23:1;15581:28;;15627:2;15632:33;15627:38;15620:45;;;;15719:10;15706:23;;15712:2;15707;:7;15706:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;15706:23:1;15701:28;;15747:2;15752:33;15747:38;15740:45;;;;15839:10;15826:23;;15832:2;15827;:7;15826:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;15826:23:1;15821:28;;15867:2;15872:33;15867:38;15860:45;;;;15959:10;15946:23;;15952:2;15947;:7;15946:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;15946:23:1;15941:28;;15987:2;15992:33;15987:38;15980:45;;;;16079:10;16066:23;;16072:2;16067;:7;16066:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;16066:23:1;16061:28;;16107:2;16112:33;16107:38;16100:45;;;;16199:10;16186:23;;16192:2;16187;:7;16186:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;16186:23:1;16181:28;;16227:2;16232:33;16227:38;16220:45;;;;16319:10;16306:23;;16312:2;16307;:7;16306:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;16306:23:1;16301:28;;16347:2;16352:33;16347:38;16340:45;;;;16439:10;16426:23;;16432:2;16427;:7;16426:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;16426:23:1;16421:28;;16467:2;16472:33;16467:38;16460:45;;;;16559:10;16546:23;;16552:2;16547;:7;16546:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;16546:23:1;16541:28;;16587:2;16592:33;16587:38;16580:45;;;;16679:10;16666:23;;16672:2;16667;:7;16666:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;16666:23:1;16661:28;;16707:2;16712:33;16707:38;16700:45;;;;16799:10;16786:23;;16792:2;16787;:7;16786:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;16786:23:1;16781:28;;16827:2;16832:33;16827:38;16820:45;;;;16919:10;16906:23;;16912:2;16907;:7;16906:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;16906:23:1;16901:28;;16947:2;16952:33;16947:38;16940:45;;;;17039:10;17026:23;;17032:2;17027;:7;17026:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17026:23:1;17021:28;;17067:2;17072:33;17067:38;17060:45;;;;17159:10;17146:23;;17152:2;17147;:7;17146:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17146:23:1;17141:28;;17187:2;17192:33;17187:38;17180:45;;;;17279:10;17266:23;;17272:2;17267;:7;17266:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17266:23:1;17261:28;;17307:2;17312:33;17307:38;17300:45;;;;17399:10;17386:23;;17392:2;17387;:7;17386:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17386:23:1;17381:28;;17427:2;17432:33;17427:38;17420:45;;;;17519:10;17506:23;;17512:2;17507;:7;17506:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17506:23:1;17501:28;;17547:2;17552:33;17547:38;17540:45;;;;17639:10;17626:23;;17632:2;17627;:7;17626:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17626:23:1;17621:28;;17667:2;17672:33;17667:38;17660:45;;;;17759:10;17746:23;;17752:2;17747;:7;17746:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17746:23:1;17741:28;;17787:2;17792:33;17787:38;17780:45;;;;17879:10;17866:23;;17872:2;17867;:7;17866:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17866:23:1;17861:28;;17907:2;17912:33;17907:38;17900:45;;;;17999:10;17986:23;;17992:2;17987;:7;17986:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;17986:23:1;17981:28;;18027:2;18032:33;18027:38;18020:45;;;;18119:10;18106:23;;18112:2;18107;:7;18106:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;18106:23:1;18101:28;;18147:2;18152:33;18147:38;18140:45;;;;18239:10;18226:23;;18232:2;18227;:7;18226:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;18226:23:1;18221:28;;18267:2;18272:33;18267:38;18260:45;;;;18359:10;18346:23;;18352:2;18347;:7;18346:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;18346:23:1;18341:28;;18387:2;18392:33;18387:38;18380:45;;;;18479:10;18466:23;;18472:2;18467;:7;18466:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;18466:23:1;18461:28;;18507:2;18512:33;18507:38;18500:45;;;;18599:10;18586:23;;18592:2;18587;:7;18586:23;52:12:-1;49:1;45:20;29:14;25:41;7:59;;18586:23:1;18581:28;;18627:2;18632:33;18627:38;18620:45;;;;18764:10;18757:17;;144:1;18757:17;;;;18751:2;18715:33;18709:3;:39;;;;;;;;:44;:66;;14718:4114;-1:-1:-1;;;;;14718:4114:1:o;12727:513::-;12781:5;;12831:3;12826:8;;12822:391;;;12886:82;12898:1;12893:2;:6;12886:82;;;49:1:-1;25:41;;;;12926:1:1;12945:8;12886:82;;;12822:391;;;13049:3;13034:169;13058:1;13054;:5;;;13034:169;;;13099:8;;;;;13092:16;;13088:101;;13132:8;;;49:1:-1;45:20;25:41;;;;13162:8:1;;;;13088:101;49:1:-1;13061:7:1;;;;25:41:-1;13034:169:1;;;;13230:3;12727:513;-1:-1:-1;;12727:513:1:o;185:13612:3:-;;;;;;;;;;;-1:-1:-1;;;;;185:13612:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;185:13612:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://126d878105190bf9584e43a836a34b0148cab1bef3b8afe0129e9d00585ee697

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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