false
true
0

Contract Address Details

0x2ba592F78dB6436527729929AAf6c908497cB200

Token
Cream (CREAM)
Creator
0x197939–471074 at 0x11d93d–331175
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
86,099 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
26039451
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
Comp




Optimization enabled
true
Compiler version
v0.5.17+commit.d19bba13




Optimization runs
200
EVM Version
default




Verified at
2024-05-12T21:47:25.914775Z

Constructor Arguments

0x000000000000000000000000197939c1ca20c2b506d6811d8b6cdb3394471074

Arg [0] (address) : 0x197939c1ca20c2b506d6811d8b6cdb3394471074

              

Contract source code

//Brought to you by Larry the Cabal Guy $LTCG 

pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;

contract Comp {
    /// @notice EIP-20 token name for this token
    string public constant name = "Cream";

    /// @notice EIP-20 token symbol for this token
    string public constant symbol = "CREAM";

    /// @notice EIP-20 token decimals for this token
    uint8 public constant decimals = 18;

    /// @notice Total number of tokens in circulation
    uint public constant totalSupply = 9000000e18; // 9 million Cream

    /// @notice Allowance amounts on behalf of others
    mapping (address => mapping (address => uint96)) internal allowances;

    /// @notice Official record of token balances for each account
    mapping (address => uint96) internal balances;

    /// @notice A record of each accounts delegate
    mapping (address => address) public delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint96 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /// @notice The standard EIP-20 transfer event
    event Transfer(address indexed from, address indexed to, uint256 amount);

    /// @notice The standard EIP-20 approval event
    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /**
     * @notice Construct a new Comp token
     * @param account The initial account to grant all the tokens
     */
    constructor(address account) public {
        balances[account] = uint96(totalSupply);
        emit Transfer(address(0), account, totalSupply);
    }

    /**
     * @notice Get the number of tokens `spender` is approved to spend on behalf of `account`
     * @param account The address of the account holding the funds
     * @param spender The address of the account spending the funds
     * @return The number of tokens approved
     */
    function allowance(address account, address spender) external view returns (uint) {
        return allowances[account][spender];
    }

    /**
     * @notice Approve `spender` to transfer up to `amount` from `src`
     * @dev This will overwrite the approval amount for `spender`
     *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
     * @param spender The address of the account which may transfer tokens
     * @param rawAmount The number of tokens that are approved (2^256-1 means infinite)
     * @return Whether or not the approval succeeded
     */
    function approve(address spender, uint rawAmount) external returns (bool) {
        uint96 amount;
        if (rawAmount == uint(-1)) {
            amount = uint96(-1);
        } else {
            amount = safe96(rawAmount, "Comp::approve: amount exceeds 96 bits");
        }

        allowances[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);
        return true;
    }

    /**
     * @notice Get the number of tokens held by the `account`
     * @param account The address of the account to get the balance of
     * @return The number of tokens held
     */
    function balanceOf(address account) external view returns (uint) {
        return balances[account];
    }

    /**
     * @notice Transfer `amount` tokens from `msg.sender` to `dst`
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transfer(address dst, uint rawAmount) external returns (bool) {
        uint96 amount = safe96(rawAmount, "Comp::transfer: amount exceeds 96 bits");
        _transferTokens(msg.sender, dst, amount);
        return true;
    }

    /**
     * @notice Transfer `amount` tokens from `src` to `dst`
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferFrom(address src, address dst, uint rawAmount) external returns (bool) {
        address spender = msg.sender;
        uint96 spenderAllowance = allowances[src][spender];
        uint96 amount = safe96(rawAmount, "Comp::approve: amount exceeds 96 bits");

        if (spender != src && spenderAllowance != uint96(-1)) {
            uint96 newAllowance = sub96(spenderAllowance, amount, "Comp::transferFrom: transfer amount exceeds spender allowance");
            allowances[src][spender] = newAllowance;

            emit Approval(src, spender, newAllowance);
        }

        _transferTokens(src, dst, amount);
        return true;
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) public {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) public {
        bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this)));
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "Comp::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "Comp::delegateBySig: invalid nonce");
        require(now <= expiry, "Comp::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account) external view returns (uint96) {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber) public view returns (uint96) {
        require(blockNumber < block.number, "Comp::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee) internal {
        address currentDelegate = delegates[delegator];
        uint96 delegatorBalance = balances[delegator];
        delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _transferTokens(address src, address dst, uint96 amount) internal {
        require(src != address(0), "Comp::_transferTokens: cannot transfer from the zero address");
        require(dst != address(0), "Comp::_transferTokens: cannot transfer to the zero address");

        balances[src] = sub96(balances[src], amount, "Comp::_transferTokens: transfer amount exceeds balance");
        balances[dst] = add96(balances[dst], amount, "Comp::_transferTokens: transfer amount overflows");
        emit Transfer(src, dst, amount);

        _moveDelegates(delegates[src], delegates[dst], amount);
    }

    function _moveDelegates(address srcRep, address dstRep, uint96 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew = sub96(srcRepOld, amount, "Comp::_moveVotes: vote amount underflows");
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew = add96(dstRepOld, amount, "Comp::_moveVotes: vote amount overflows");
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(address delegatee, uint32 nCheckpoints, uint96 oldVotes, uint96 newVotes) internal {
      uint32 blockNumber = safe32(block.number, "Comp::_writeCheckpoint: block number exceeds 32 bits");

      if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
          checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
      } else {
          checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
          numCheckpoints[delegatee] = nCheckpoints + 1;
      }

      emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function safe96(uint n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    function add96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","payable":false,"inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DelegateChanged","inputs":[{"type":"address","name":"delegator","internalType":"address","indexed":true},{"type":"address","name":"fromDelegate","internalType":"address","indexed":true},{"type":"address","name":"toDelegate","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"DelegateVotesChanged","inputs":[{"type":"address","name":"delegate","internalType":"address","indexed":true},{"type":"uint256","name":"previousBalance","internalType":"uint256","indexed":false},{"type":"uint256","name":"newBalance","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DELEGATION_TYPEHASH","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_TYPEHASH","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"rawAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint32","name":"fromBlock","internalType":"uint32"},{"type":"uint96","name":"votes","internalType":"uint96"}],"name":"checkpoints","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint32","name":"","internalType":"uint32"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"delegate","inputs":[{"type":"address","name":"delegatee","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"delegateBySig","inputs":[{"type":"address","name":"delegatee","internalType":"address"},{"type":"uint256","name":"nonce","internalType":"uint256"},{"type":"uint256","name":"expiry","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address"}],"name":"delegates","inputs":[{"type":"address","name":"","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"getCurrentVotes","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"getPriorVotes","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"blockNumber","internalType":"uint256"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"numCheckpoints","inputs":[{"type":"address","name":"","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"dst","internalType":"address"},{"type":"uint256","name":"rawAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"src","internalType":"address"},{"type":"address","name":"dst","internalType":"address"},{"type":"uint256","name":"rawAmount","internalType":"uint256"}],"constant":false}]
              

Contract Creation Code

Verify & Publish
0x60806040523480156200001157600080fd5b5060405162001bcb38038062001bcb8339810160408190526200003491620000bc565b6001600160a01b03811660008181526001602052604080822080546001600160601b0319166a0771d2fa45345aa900000090811790915590517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916200009a91620000f6565b60405180910390a35062000135565b8051620000b6816200011b565b92915050565b600060208284031215620000cf57600080fd5b6000620000dd8484620000a9565b949350505050565b620000f08162000118565b82525050565b60208101620000b68284620000e5565b60006001600160a01b038216620000b6565b90565b620001268162000106565b81146200013257600080fd5b50565b611a8680620001456000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063b4b5ea5711610071578063b4b5ea571461025f578063c3cda52014610272578063dd62ed3e14610285578063e7a324dc14610298578063f1127ed8146102a057610121565b806370a08231146101fe578063782d6fe1146102115780637ecebe001461023157806395d89b4114610244578063a9059cbb1461024c57610121565b806323b872dd116100f457806323b872dd14610181578063313ce56714610194578063587cde1e146101a95780635c19a95c146101c95780636fcfff45146101de57610121565b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016457806320606b7014610179575b600080fd5b61012e6102c1565b60405161013b9190611737565b60405180910390f35b610157610152366004611200565b6102e2565b60405161013b919061168d565b61016c61039f565b60405161013b919061169b565b61016c6103ae565b61015761018f3660046111b3565b6103c5565b61019c61050a565b60405161013b91906117d1565b6101bc6101b7366004611153565b61050f565b60405161013b919061167f565b6101dc6101d7366004611153565b61052a565b005b6101f16101ec366004611153565b610537565b60405161013b91906117a8565b61016c61020c366004611153565b61054f565b61022461021f366004611200565b610573565b60405161013b91906117ed565b61016c61023f366004611153565b61078a565b61012e61079c565b61015761025a366004611200565b6107bd565b61022461026d366004611153565b6107f9565b6101dc610280366004611230565b610869565b61016c610293366004611179565b610a50565b61016c610a82565b6102b36102ae3660046112b7565b610a8e565b60405161013b9291906117b6565b60405180604001604052806005815260200164437265616d60d81b81525081565b6000806000198314156102f8575060001961031d565b61031a8360405180606001604052806025815260200161190960259139610ac3565b90505b336000818152602081815260408083206001600160a01b03891680855292529182902080546001600160601b0319166001600160601b03861617905590519091907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061038b9085906117df565b60405180910390a360019150505b92915050565b6a0771d2fa45345aa900000081565b6040516103ba90611669565b604051809103902081565b6001600160a01b0383166000908152602081815260408083203380855290835281842054825160608101909352602580845291936001600160601b0390911692859261041b928892919061190990830139610ac3565b9050866001600160a01b0316836001600160a01b03161415801561044857506001600160601b0382811614155b156104f057600061047283836040518060600160405280603d81526020016119e0603d9139610af2565b6001600160a01b03898116600081815260208181526040808320948a16808452949091529081902080546001600160601b0319166001600160601b0386161790555192935090917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906104e69085906117df565b60405180910390a3505b6104fb878783610b31565b600193505050505b9392505050565b601281565b6002602052600090815260409020546001600160a01b031681565b6105343382610cdc565b50565b60046020526000908152604090205463ffffffff1681565b6001600160a01b03166000908152600160205260409020546001600160601b031690565b600043821061059d5760405162461bcd60e51b815260040161059490611768565b60405180910390fd5b6001600160a01b03831660009081526004602052604090205463ffffffff16806105cb576000915050610399565b6001600160a01b038416600090815260036020908152604080832063ffffffff600019860181168552925290912054168310610647576001600160a01b03841660009081526003602090815260408083206000199490940163ffffffff1683529290522054600160201b90046001600160601b03169050610399565b6001600160a01b038416600090815260036020908152604080832083805290915290205463ffffffff16831015610682576000915050610399565b600060001982015b8163ffffffff168163ffffffff16111561074557600282820363ffffffff160481036106b4611110565b506001600160a01b038716600090815260036020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b03169181019190915290871415610720576020015194506103999350505050565b805163ffffffff168711156107375781935061073e565b6001820392505b505061068a565b506001600160a01b038516600090815260036020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b60056020526000908152604090205481565b60405180604001604052806005815260200164435245414d60d81b81525081565b6000806107e28360405180606001604052806026815260200161192e60269139610ac3565b90506107ef338583610b31565b5060019392505050565b6001600160a01b03811660009081526004602052604081205463ffffffff1680610824576000610503565b6001600160a01b0383166000908152600360209081526040808320600019850163ffffffff168452909152902054600160201b90046001600160601b03169392505050565b600060405161087790611669565b604080519182900382208282019091526005825264437265616d60d81b6020909201919091527f40e45d329815e79a55e43916f11f7a0112a31146f63a4fcaea413df0567a0bb26108c6610d66565b306040516020016108da94939291906116e7565b604051602081830303815290604052805190602001209050600060405161090090611674565b60405190819003812061091b918a908a908a906020016116a9565b60405160208183030381529060405280519060200120905060008282604051602001610948929190611638565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051610985949392919061171c565b6020604051602081039080840390855afa1580156109a7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166109da5760405162461bcd60e51b815260040161059490611748565b6001600160a01b03811660009081526005602052604090208054600181019091558914610a195760405162461bcd60e51b815260040161059490611778565b87421115610a395760405162461bcd60e51b815260040161059490611758565b610a43818b610cdc565b505050505b505050505050565b6001600160a01b039182166000908152602081815260408083209390941682529190915220546001600160601b031690565b6040516103ba90611674565b600360209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b600081600160601b8410610aea5760405162461bcd60e51b81526004016105949190611737565b509192915050565b6000836001600160601b0316836001600160601b031611158290610b295760405162461bcd60e51b81526004016105949190611737565b505050900390565b6001600160a01b038316610b575760405162461bcd60e51b815260040161059490611798565b6001600160a01b038216610b7d5760405162461bcd60e51b815260040161059490611788565b6001600160a01b038316600090815260016020908152604091829020548251606081019093526036808452610bc8936001600160601b0390921692859291906118d390830139610af2565b6001600160a01b03848116600090815260016020908152604080832080546001600160601b0319166001600160601b03968716179055928616825290829020548251606081019093526030808452610c3094919091169285929091906119b090830139610d6a565b6001600160a01b038381166000818152600160205260409081902080546001600160601b0319166001600160601b0395909516949094179093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610c9d9085906117df565b60405180910390a36001600160a01b03808416600090815260026020526040808220548584168352912054610cd792918216911683610da6565b505050565b6001600160a01b03808316600081815260026020818152604080842080546001845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610d60828483610da6565b50505050565b4690565b6000838301826001600160601b038087169083161015610d9d5760405162461bcd60e51b81526004016105949190611737565b50949350505050565b816001600160a01b0316836001600160a01b031614158015610dd157506000816001600160601b0316115b15610cd7576001600160a01b03831615610e89576001600160a01b03831660009081526004602052604081205463ffffffff169081610e11576000610e50565b6001600160a01b0385166000908152600360209081526040808320600019860163ffffffff168452909152902054600160201b90046001600160601b03165b90506000610e77828560405180606001604052806028815260200161198860289139610af2565b9050610e8586848484610f34565b5050505b6001600160a01b03821615610cd7576001600160a01b03821660009081526004602052604081205463ffffffff169081610ec4576000610f03565b6001600160a01b0384166000908152600360209081526040808320600019860163ffffffff168452909152902054600160201b90046001600160601b03165b90506000610f2a8285604051806060016040528060278152602001611a1d60279139610d6a565b9050610a48858484845b6000610f5843604051806060016040528060348152602001611954603491396110e9565b905060008463ffffffff16118015610fa157506001600160a01b038516600090815260036020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611000576001600160a01b0385166000908152600360209081526040808320600019880163ffffffff168452909152902080546fffffffffffffffffffffffff000000001916600160201b6001600160601b0385160217905561109f565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000818152600383528781208c871682528352878120965187549451909516600160201b026fffffffffffffffffffffffff000000001995871663ffffffff19958616179590951694909417909555938252600490935292909220805460018801909316929091169190911790555b846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72484846040516110da9291906117fb565b60405180910390a25050505050565b600081600160201b8410610aea5760405162461bcd60e51b81526004016105949190611737565b604080518082019091526000808252602082015290565b8035610399816118a3565b8035610399816118b7565b8035610399816118c0565b8035610399816118c9565b60006020828403121561116557600080fd5b60006111718484611127565b949350505050565b6000806040838503121561118c57600080fd5b60006111988585611127565b92505060206111a985828601611127565b9150509250929050565b6000806000606084860312156111c857600080fd5b60006111d48686611127565b93505060206111e586828701611127565b92505060406111f686828701611132565b9150509250925092565b6000806040838503121561121357600080fd5b600061121f8585611127565b92505060206111a985828601611132565b60008060008060008060c0878903121561124957600080fd5b60006112558989611127565b965050602061126689828a01611132565b955050604061127789828a01611132565b945050606061128889828a01611148565b935050608061129989828a01611132565b92505060a06112aa89828a01611132565b9150509295509295509295565b600080604083850312156112ca57600080fd5b60006112d68585611127565b92505060206111a98582860161113d565b6112f081611828565b82525050565b6112f081611833565b6112f081611838565b6112f061131482611838565b611838565b600061132482611816565b61132e818561181a565b935061133e81856020860161186d565b61134781611899565b9093019392505050565b600061135e60268361181a565b7f436f6d703a3a64656c656761746542795369673a20696e76616c6964207369678152656e617475726560d01b602082015260400192915050565b60006113a660268361181a565b7f436f6d703a3a64656c656761746542795369673a207369676e617475726520658152651e1c1a5c995960d21b602082015260400192915050565b60006113ee600283611823565b61190160f01b815260020192915050565b600061140c60278361181a565b7f436f6d703a3a6765745072696f72566f7465733a206e6f742079657420646574815266195c9b5a5b995960ca1b602082015260400192915050565b600061145560228361181a565b7f436f6d703a3a64656c656761746542795369673a20696e76616c6964206e6f6e815261636560f01b602082015260400192915050565b6000611499603a8361181a565b7f436f6d703a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747281527f616e7366657220746f20746865207a65726f2061646472657373000000000000602082015260400192915050565b60006114f8604383611823565b7f454950373132446f6d61696e28737472696e67206e616d652c75696e7432353681527f20636861696e49642c6164647265737320766572696679696e67436f6e74726160208201526263742960e81b604082015260430192915050565b6000611563603c8361181a565b7f436f6d703a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747281527f616e736665722066726f6d20746865207a65726f206164647265737300000000602082015260400192915050565b60006115c2603a83611823565b7f44656c65676174696f6e28616464726573732064656c6567617465652c75696e81527f74323536206e6f6e63652c75696e7432353620657870697279290000000000006020820152603a0192915050565b6112f081611847565b6112f081611850565b6112f081611862565b6112f081611856565b6000611643826113e1565b915061164f8285611308565b60208201915061165f8284611308565b5060200192915050565b6000610399826114eb565b6000610399826115b5565b6020810161039982846112e7565b6020810161039982846112f6565b6020810161039982846112ff565b608081016116b782876112ff565b6116c460208301866112e7565b6116d160408301856112ff565b6116de60608301846112ff565b95945050505050565b608081016116f582876112ff565b61170260208301866112ff565b61170f60408301856112ff565b6116de60608301846112e7565b6080810161172a82876112ff565b6116c4602083018661161d565b602080825281016105038184611319565b6020808252810161039981611351565b6020808252810161039981611399565b60208082528101610399816113ff565b6020808252810161039981611448565b602080825281016103998161148c565b6020808252810161039981611556565b602081016103998284611614565b604081016117c48285611614565b610503602083018461162f565b60208101610399828461161d565b602081016103998284611626565b60208101610399828461162f565b604081016118098285611626565b6105036020830184611626565b5190565b90815260200190565b919050565b60006103998261183b565b151590565b90565b6001600160a01b031690565b63ffffffff1690565b60ff1690565b6001600160601b031690565b600061039982611856565b60005b83811015611888578181015183820152602001611870565b83811115610d605750506000910152565b601f01601f191690565b6118ac81611828565b811461053457600080fd5b6118ac81611838565b6118ac81611847565b6118ac8161185056fe436f6d703a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e6365436f6d703a3a617070726f76653a20616d6f756e7420657863656564732039362062697473436f6d703a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473436f6d703a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473436f6d703a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773436f6d703a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f7773436f6d703a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e6365436f6d703a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773a365627a7a7231582055de07ce6369f007713cdb724fd0b4c7bb5af3ec46f8eb61b5f4e4a0dd7f01d76c6578706572696d656e74616cf564736f6c63430005110040000000000000000000000000197939c1ca20c2b506d6811d8b6cdb3394471074

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063b4b5ea5711610071578063b4b5ea571461025f578063c3cda52014610272578063dd62ed3e14610285578063e7a324dc14610298578063f1127ed8146102a057610121565b806370a08231146101fe578063782d6fe1146102115780637ecebe001461023157806395d89b4114610244578063a9059cbb1461024c57610121565b806323b872dd116100f457806323b872dd14610181578063313ce56714610194578063587cde1e146101a95780635c19a95c146101c95780636fcfff45146101de57610121565b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016457806320606b7014610179575b600080fd5b61012e6102c1565b60405161013b9190611737565b60405180910390f35b610157610152366004611200565b6102e2565b60405161013b919061168d565b61016c61039f565b60405161013b919061169b565b61016c6103ae565b61015761018f3660046111b3565b6103c5565b61019c61050a565b60405161013b91906117d1565b6101bc6101b7366004611153565b61050f565b60405161013b919061167f565b6101dc6101d7366004611153565b61052a565b005b6101f16101ec366004611153565b610537565b60405161013b91906117a8565b61016c61020c366004611153565b61054f565b61022461021f366004611200565b610573565b60405161013b91906117ed565b61016c61023f366004611153565b61078a565b61012e61079c565b61015761025a366004611200565b6107bd565b61022461026d366004611153565b6107f9565b6101dc610280366004611230565b610869565b61016c610293366004611179565b610a50565b61016c610a82565b6102b36102ae3660046112b7565b610a8e565b60405161013b9291906117b6565b60405180604001604052806005815260200164437265616d60d81b81525081565b6000806000198314156102f8575060001961031d565b61031a8360405180606001604052806025815260200161190960259139610ac3565b90505b336000818152602081815260408083206001600160a01b03891680855292529182902080546001600160601b0319166001600160601b03861617905590519091907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061038b9085906117df565b60405180910390a360019150505b92915050565b6a0771d2fa45345aa900000081565b6040516103ba90611669565b604051809103902081565b6001600160a01b0383166000908152602081815260408083203380855290835281842054825160608101909352602580845291936001600160601b0390911692859261041b928892919061190990830139610ac3565b9050866001600160a01b0316836001600160a01b03161415801561044857506001600160601b0382811614155b156104f057600061047283836040518060600160405280603d81526020016119e0603d9139610af2565b6001600160a01b03898116600081815260208181526040808320948a16808452949091529081902080546001600160601b0319166001600160601b0386161790555192935090917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906104e69085906117df565b60405180910390a3505b6104fb878783610b31565b600193505050505b9392505050565b601281565b6002602052600090815260409020546001600160a01b031681565b6105343382610cdc565b50565b60046020526000908152604090205463ffffffff1681565b6001600160a01b03166000908152600160205260409020546001600160601b031690565b600043821061059d5760405162461bcd60e51b815260040161059490611768565b60405180910390fd5b6001600160a01b03831660009081526004602052604090205463ffffffff16806105cb576000915050610399565b6001600160a01b038416600090815260036020908152604080832063ffffffff600019860181168552925290912054168310610647576001600160a01b03841660009081526003602090815260408083206000199490940163ffffffff1683529290522054600160201b90046001600160601b03169050610399565b6001600160a01b038416600090815260036020908152604080832083805290915290205463ffffffff16831015610682576000915050610399565b600060001982015b8163ffffffff168163ffffffff16111561074557600282820363ffffffff160481036106b4611110565b506001600160a01b038716600090815260036020908152604080832063ffffffff858116855290835292819020815180830190925254928316808252600160201b9093046001600160601b03169181019190915290871415610720576020015194506103999350505050565b805163ffffffff168711156107375781935061073e565b6001820392505b505061068a565b506001600160a01b038516600090815260036020908152604080832063ffffffff909416835292905220546001600160601b03600160201b9091041691505092915050565b60056020526000908152604090205481565b60405180604001604052806005815260200164435245414d60d81b81525081565b6000806107e28360405180606001604052806026815260200161192e60269139610ac3565b90506107ef338583610b31565b5060019392505050565b6001600160a01b03811660009081526004602052604081205463ffffffff1680610824576000610503565b6001600160a01b0383166000908152600360209081526040808320600019850163ffffffff168452909152902054600160201b90046001600160601b03169392505050565b600060405161087790611669565b604080519182900382208282019091526005825264437265616d60d81b6020909201919091527f40e45d329815e79a55e43916f11f7a0112a31146f63a4fcaea413df0567a0bb26108c6610d66565b306040516020016108da94939291906116e7565b604051602081830303815290604052805190602001209050600060405161090090611674565b60405190819003812061091b918a908a908a906020016116a9565b60405160208183030381529060405280519060200120905060008282604051602001610948929190611638565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051610985949392919061171c565b6020604051602081039080840390855afa1580156109a7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166109da5760405162461bcd60e51b815260040161059490611748565b6001600160a01b03811660009081526005602052604090208054600181019091558914610a195760405162461bcd60e51b815260040161059490611778565b87421115610a395760405162461bcd60e51b815260040161059490611758565b610a43818b610cdc565b505050505b505050505050565b6001600160a01b039182166000908152602081815260408083209390941682529190915220546001600160601b031690565b6040516103ba90611674565b600360209081526000928352604080842090915290825290205463ffffffff811690600160201b90046001600160601b031682565b600081600160601b8410610aea5760405162461bcd60e51b81526004016105949190611737565b509192915050565b6000836001600160601b0316836001600160601b031611158290610b295760405162461bcd60e51b81526004016105949190611737565b505050900390565b6001600160a01b038316610b575760405162461bcd60e51b815260040161059490611798565b6001600160a01b038216610b7d5760405162461bcd60e51b815260040161059490611788565b6001600160a01b038316600090815260016020908152604091829020548251606081019093526036808452610bc8936001600160601b0390921692859291906118d390830139610af2565b6001600160a01b03848116600090815260016020908152604080832080546001600160601b0319166001600160601b03968716179055928616825290829020548251606081019093526030808452610c3094919091169285929091906119b090830139610d6a565b6001600160a01b038381166000818152600160205260409081902080546001600160601b0319166001600160601b0395909516949094179093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610c9d9085906117df565b60405180910390a36001600160a01b03808416600090815260026020526040808220548584168352912054610cd792918216911683610da6565b505050565b6001600160a01b03808316600081815260026020818152604080842080546001845282862054949093528787166001600160a01b031984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610d60828483610da6565b50505050565b4690565b6000838301826001600160601b038087169083161015610d9d5760405162461bcd60e51b81526004016105949190611737565b50949350505050565b816001600160a01b0316836001600160a01b031614158015610dd157506000816001600160601b0316115b15610cd7576001600160a01b03831615610e89576001600160a01b03831660009081526004602052604081205463ffffffff169081610e11576000610e50565b6001600160a01b0385166000908152600360209081526040808320600019860163ffffffff168452909152902054600160201b90046001600160601b03165b90506000610e77828560405180606001604052806028815260200161198860289139610af2565b9050610e8586848484610f34565b5050505b6001600160a01b03821615610cd7576001600160a01b03821660009081526004602052604081205463ffffffff169081610ec4576000610f03565b6001600160a01b0384166000908152600360209081526040808320600019860163ffffffff168452909152902054600160201b90046001600160601b03165b90506000610f2a8285604051806060016040528060278152602001611a1d60279139610d6a565b9050610a48858484845b6000610f5843604051806060016040528060348152602001611954603491396110e9565b905060008463ffffffff16118015610fa157506001600160a01b038516600090815260036020908152604080832063ffffffff6000198901811685529252909120548282169116145b15611000576001600160a01b0385166000908152600360209081526040808320600019880163ffffffff168452909152902080546fffffffffffffffffffffffff000000001916600160201b6001600160601b0385160217905561109f565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000818152600383528781208c871682528352878120965187549451909516600160201b026fffffffffffffffffffffffff000000001995871663ffffffff19958616179590951694909417909555938252600490935292909220805460018801909316929091169190911790555b846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a72484846040516110da9291906117fb565b60405180910390a25050505050565b600081600160201b8410610aea5760405162461bcd60e51b81526004016105949190611737565b604080518082019091526000808252602082015290565b8035610399816118a3565b8035610399816118b7565b8035610399816118c0565b8035610399816118c9565b60006020828403121561116557600080fd5b60006111718484611127565b949350505050565b6000806040838503121561118c57600080fd5b60006111988585611127565b92505060206111a985828601611127565b9150509250929050565b6000806000606084860312156111c857600080fd5b60006111d48686611127565b93505060206111e586828701611127565b92505060406111f686828701611132565b9150509250925092565b6000806040838503121561121357600080fd5b600061121f8585611127565b92505060206111a985828601611132565b60008060008060008060c0878903121561124957600080fd5b60006112558989611127565b965050602061126689828a01611132565b955050604061127789828a01611132565b945050606061128889828a01611148565b935050608061129989828a01611132565b92505060a06112aa89828a01611132565b9150509295509295509295565b600080604083850312156112ca57600080fd5b60006112d68585611127565b92505060206111a98582860161113d565b6112f081611828565b82525050565b6112f081611833565b6112f081611838565b6112f061131482611838565b611838565b600061132482611816565b61132e818561181a565b935061133e81856020860161186d565b61134781611899565b9093019392505050565b600061135e60268361181a565b7f436f6d703a3a64656c656761746542795369673a20696e76616c6964207369678152656e617475726560d01b602082015260400192915050565b60006113a660268361181a565b7f436f6d703a3a64656c656761746542795369673a207369676e617475726520658152651e1c1a5c995960d21b602082015260400192915050565b60006113ee600283611823565b61190160f01b815260020192915050565b600061140c60278361181a565b7f436f6d703a3a6765745072696f72566f7465733a206e6f742079657420646574815266195c9b5a5b995960ca1b602082015260400192915050565b600061145560228361181a565b7f436f6d703a3a64656c656761746542795369673a20696e76616c6964206e6f6e815261636560f01b602082015260400192915050565b6000611499603a8361181a565b7f436f6d703a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747281527f616e7366657220746f20746865207a65726f2061646472657373000000000000602082015260400192915050565b60006114f8604383611823565b7f454950373132446f6d61696e28737472696e67206e616d652c75696e7432353681527f20636861696e49642c6164647265737320766572696679696e67436f6e74726160208201526263742960e81b604082015260430192915050565b6000611563603c8361181a565b7f436f6d703a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747281527f616e736665722066726f6d20746865207a65726f206164647265737300000000602082015260400192915050565b60006115c2603a83611823565b7f44656c65676174696f6e28616464726573732064656c6567617465652c75696e81527f74323536206e6f6e63652c75696e7432353620657870697279290000000000006020820152603a0192915050565b6112f081611847565b6112f081611850565b6112f081611862565b6112f081611856565b6000611643826113e1565b915061164f8285611308565b60208201915061165f8284611308565b5060200192915050565b6000610399826114eb565b6000610399826115b5565b6020810161039982846112e7565b6020810161039982846112f6565b6020810161039982846112ff565b608081016116b782876112ff565b6116c460208301866112e7565b6116d160408301856112ff565b6116de60608301846112ff565b95945050505050565b608081016116f582876112ff565b61170260208301866112ff565b61170f60408301856112ff565b6116de60608301846112e7565b6080810161172a82876112ff565b6116c4602083018661161d565b602080825281016105038184611319565b6020808252810161039981611351565b6020808252810161039981611399565b60208082528101610399816113ff565b6020808252810161039981611448565b602080825281016103998161148c565b6020808252810161039981611556565b602081016103998284611614565b604081016117c48285611614565b610503602083018461162f565b60208101610399828461161d565b602081016103998284611626565b60208101610399828461162f565b604081016118098285611626565b6105036020830184611626565b5190565b90815260200190565b919050565b60006103998261183b565b151590565b90565b6001600160a01b031690565b63ffffffff1690565b60ff1690565b6001600160601b031690565b600061039982611856565b60005b83811015611888578181015183820152602001611870565b83811115610d605750506000910152565b601f01601f191690565b6118ac81611828565b811461053457600080fd5b6118ac81611838565b6118ac81611847565b6118ac8161185056fe436f6d703a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e7420657863656564732062616c616e6365436f6d703a3a617070726f76653a20616d6f756e7420657863656564732039362062697473436f6d703a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473436f6d703a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473436f6d703a3a5f6d6f7665566f7465733a20766f746520616d6f756e7420756e646572666c6f7773436f6d703a3a5f7472616e73666572546f6b656e733a207472616e7366657220616d6f756e74206f766572666c6f7773436f6d703a3a7472616e7366657246726f6d3a207472616e7366657220616d6f756e742065786365656473207370656e64657220616c6c6f77616e6365436f6d703a3a5f6d6f7665566f7465733a20766f746520616d6f756e74206f766572666c6f7773a365627a7a7231582055de07ce6369f007713cdb724fd0b4c7bb5af3ec46f8eb61b5f4e4a0dd7f01d76c6578706572696d656e74616cf564736f6c63430005110040