false
false
0

Contract Address Details

0x951654AF349C3F3cD31E02d857cab12548Bc731D

Contract Name
STO
Creator
0x67c20e–f52b67 at 0x79c064–6abfc4
Balance
0 CLO
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
16288493
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
STO




Optimization enabled
true
Compiler version
v0.8.0+commit.c7dfd78e




Optimization runs
200
EVM Version
default




Verified at
2024-09-26T15:34:45.182935Z

Constructor Arguments

0x00000000000000000000000083736d58f496afab4cf7d8453575ab59279810ec

Arg [0] (address) : 0x83736d58f496afab4cf7d8453575ab59279810ec

              

Contract source code

// SPDX-License-Identifier: No License (None)
pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        _owner = msg.sender; // FOR TEST ONLY!!! In the release version will be assigned owner address
        //_owner = 0x82C806a6cB2A9B055C69c1860D968A9F932477df;
        emit OwnershipTransferred(address(0), msg.sender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    /*
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }
    */

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

interface IERC223 {
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function increaseAllowance(address spender, uint256 addedValue) external returns (bool);
}


interface IERC223Recipient { 
/**
 * @dev Standard ERC223 function that will handle incoming token transfers.
 *
 * @param _from  Token sender address.
 * @param _value Amount of tokens.
 * @param _data  Transaction metadata.
 */
    function tokenReceived(address _from, uint _value, bytes memory _data) external;
}

contract STO is IERC223Recipient, Ownable, ReentrancyGuard {

    uint256 public ST_USD;      // price of 1 Security Token in USD (18 decimals)
    uint256 public CLO_USD;     // price of 1 CLO in USD (18 decimals)
    uint256 public CLOE_USD;    // price of 1 CLOE in USD (18 decimals)
    uint256 public CLOE_CLO;    // price of 1 CLOE in CLO (18 decimals). May be used in UI.

    address public system;   // system wallet can change CLO and CLOE price
    address payable public bank;    // receiver of CLO and CLOE
    IERC223 public tokenST; // Security token contract address
    IERC223 public tokenCLOE = IERC223(0x1eAa43544dAa399b87EEcFcC6Fa579D5ea4A6187); // CLOE token contract address
    
    event SetSystem(address _system);
    event SetBank(address _bank);
    event SetPrice(uint256 priceCLO, uint256 priceCLOE);
    event SetPriceST(uint256 priceST);


    modifier onlyOwnerOrSystem() {
        require(system == msg.sender || owner() == msg.sender, "Ownable: caller is not the owner or system");
        _;
    }

    constructor (address _tokenST) {
        tokenST = IERC223(_tokenST);
        bank = payable(0xaf38E7104cAF6624F2A3F40A55F0156b2E56B43E);
        emit SetSystem(system);
        emit SetBank(bank);
    }
    
    function tokenReceived(address _from, uint _value, bytes memory _data) external override {
        require(msg.sender == address(tokenST), "Do not allow any token deposits other than STO token");
        require(_from == owner(), "Only owner can deposit STO tokens");
        
        IERC223(msg.sender).increaseAllowance(address(this), _value);
    }

    function setSystem(address _system) onlyOwner external
    {
        system = _system;
        emit SetSystem(_system);
    }

    function setBank(address payable _bank) onlyOwner external
    {
        require(_bank != address(0), "Zero address not allowed");
        bank = _bank;
        emit SetBank(_bank);
    }

    // If someone accidentally transfer tokens to this contract, the owner will be able to rescue it and refund sender.
    function rescueTokens(address _token) external onlyOwner {
        if (address(0) == _token) {
            payable(msg.sender).transfer(address(this).balance);
        } else {
            uint256 available = IERC223(_token).balanceOf(address(this));
            IERC223(_token).transfer(msg.sender, available);
        }
    }

    function setPrice(uint256 priceCLO, uint256 priceCLOE) onlyOwnerOrSystem external {
        require(priceCLO != 0 && priceCLOE != 0, "Price can't be 0");
        CLO_USD = priceCLO;
        CLOE_USD = priceCLOE;
        CLOE_CLO = priceCLOE * 1 ether / priceCLO;
        emit SetPrice(priceCLO, priceCLOE);
    }

    function setPriceST(uint256 priceST) onlyOwnerOrSystem external {
        require(priceST != 0, "Price can't be 0");
        ST_USD = priceST;
        emit SetPriceST(priceST);
    }

    function buyToken(uint256 amountCLOE) nonReentrant payable external {
        require(msg.value != 0, "No CLO sent");
        uint256 cloValue = msg.value * CLO_USD;
        uint256 cloeValue = amountCLOE * CLOE_USD;
        uint256 totalValue = cloValue + cloeValue;
        require(cloValue * 100 / totalValue >= 95, "Only 5% can be paid by CLOE");
        if (amountCLOE != 0) {
            tokenCLOE.transferFrom(msg.sender, bank, amountCLOE);
        }
        bank.transfer(msg.value);
        uint256 stAmount = totalValue / ST_USD;
        tokenST.transferFrom(address(this), msg.sender, stAmount);
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_tokenST","internalType":"address"}]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetBank","inputs":[{"type":"address","name":"_bank","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"SetPrice","inputs":[{"type":"uint256","name":"priceCLO","internalType":"uint256","indexed":false},{"type":"uint256","name":"priceCLOE","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetPriceST","inputs":[{"type":"uint256","name":"priceST","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetSystem","inputs":[{"type":"address","name":"_system","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"CLOE_CLO","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"CLOE_USD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"CLO_USD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"ST_USD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address payable"}],"name":"bank","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"buyToken","inputs":[{"type":"uint256","name":"amountCLOE","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueTokens","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBank","inputs":[{"type":"address","name":"_bank","internalType":"address payable"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPrice","inputs":[{"type":"uint256","name":"priceCLO","internalType":"uint256"},{"type":"uint256","name":"priceCLOE","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPriceST","inputs":[{"type":"uint256","name":"priceST","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSystem","inputs":[{"type":"address","name":"_system","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"system","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC223"}],"name":"tokenCLOE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"tokenReceived","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"uint256","name":"_value","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC223"}],"name":"tokenST","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

Verify & Publish
0x6080604052600980546001600160a01b031916731eaa43544daa399b87eecfcc6fa579d5ea4a618717905534801561003657600080fd5b5060405161117b38038061117b8339810160408190526100559161015c565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360018055600880546001600160a01b038084166001600160a01b0319928316179092556007805490911673af38e7104caf6624f2a3f40a55f0156b2e56b43e1790556006546040517f49cd4dad53143519125de2da7395d254bd24b8f3c049554685fadeafc1fd96c89261010992169061018a565b60405180910390a16007546040517f10f5824683d64a0712038f2244e046b174a1cc57fbb8556bfda5ffb2612440679161014e916001600160a01b039091169061018a565b60405180910390a15061019e565b60006020828403121561016d578081fd5b81516001600160a01b0381168114610183578182fd5b9392505050565b6001600160a01b0391909116815260200190565b610fce806101ad6000396000f3fe6080604052600436106100fd5760003560e01c80638943ec0211610095578063a76a5c0d11610064578063a76a5c0d14610258578063c8b736bd1461026d578063d442b27014610282578063f2fde38b14610297578063f7d97577146102b7576100fd565b80638943ec02146101f95780638da5cb5b1461021957806395bf75fd1461022e578063a100d4ce14610243576100fd565b80632d296bf1116100d15780632d296bf11461019157806350d12298146101a457806355837757146101c457806376cdb03b146101e4576100fd565b8062ae3bf81461010257806308d52cc314610124578063090d23b91461014f5780630f7376a51461016f575b600080fd5b34801561010e57600080fd5b5061012261011d366004610af7565b6102d7565b005b34801561013057600080fd5b50610139610457565b6040516101469190610c4a565b60405180910390f35b34801561015b57600080fd5b5061012261016a366004610af7565b610466565b34801561017b57600080fd5b50610184610511565b6040516101469190610ee9565b61012261019f366004610bf9565b610517565b3480156101b057600080fd5b506101226101bf366004610bf9565b610734565b3480156101d057600080fd5b506101226101df366004610af7565b6107ca565b3480156101f057600080fd5b50610139610844565b34801561020557600080fd5b50610122610214366004610b1a565b610853565b34801561022557600080fd5b50610139610932565b34801561023a57600080fd5b50610139610941565b34801561024f57600080fd5b50610184610950565b34801561026457600080fd5b50610184610956565b34801561027957600080fd5b5061013961095c565b34801561028e57600080fd5b5061018461096b565b3480156102a357600080fd5b506101226102b2366004610af7565b610971565b3480156102c357600080fd5b506101226102d2366004610c29565b610a21565b336102e0610932565b6001600160a01b03161461030f5760405162461bcd60e51b815260040161030690610dce565b60405180910390fd5b6001600160a01b03811661034f5760405133904780156108fc02916000818181858888f19350505050158015610349573d6000803e3d6000fd5b50610454565b6040516370a0823160e01b81526000906001600160a01b038316906370a082319061037e903090600401610c4a565b60206040518083038186803b15801561039657600080fd5b505afa1580156103aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ce9190610c11565b60405163a9059cbb60e01b81529091506001600160a01b0383169063a9059cbb906103ff9033908590600401610c82565b602060405180830381600087803b15801561041957600080fd5b505af115801561042d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104519190610bd9565b50505b50565b6009546001600160a01b031681565b3361046f610932565b6001600160a01b0316146104955760405162461bcd60e51b815260040161030690610dce565b6001600160a01b0381166104bb5760405162461bcd60e51b815260040161030690610e44565b600780546001600160a01b0319166001600160a01b0383161790556040517f10f5824683d64a0712038f2244e046b174a1cc57fbb8556bfda5ffb26124406790610506908390610c4a565b60405180910390a150565b60055481565b6002600154141561053a5760405162461bcd60e51b815260040161030690610eb2565b60026001553461055c5760405162461bcd60e51b815260040161030690610d5f565b60006003543461056c9190610f38565b905060006004548361057e9190610f38565b9050600061058c8284610f00565b9050605f8161059c856064610f38565b6105a69190610f18565b10156105c45760405162461bcd60e51b815260040161030690610e7b565b8315610657576009546007546040516323b872dd60e01b81526001600160a01b03928316926323b872dd92610603923392909116908990600401610c5e565b602060405180830381600087803b15801561061d57600080fd5b505af1158015610631573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106559190610bd9565b505b6007546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610690573d6000803e3d6000fd5b506000600254826106a19190610f18565b6008546040516323b872dd60e01b81529192506001600160a01b0316906323b872dd906106d690309033908690600401610c5e565b602060405180830381600087803b1580156106f057600080fd5b505af1158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190610bd9565b50506001805550505050565b6006546001600160a01b031633148061075c575033610751610932565b6001600160a01b0316145b6107785760405162461bcd60e51b815260040161030690610d84565b806107955760405162461bcd60e51b815260040161030690610d35565b60028190556040517fc1715b960a9d3af7d865983ba84082275877f286f3a2d11a250ff75b3f6e85f090610506908390610ee9565b336107d3610932565b6001600160a01b0316146107f95760405162461bcd60e51b815260040161030690610dce565b600680546001600160a01b0319166001600160a01b0383161790556040517f49cd4dad53143519125de2da7395d254bd24b8f3c049554685fadeafc1fd96c890610506908390610c4a565b6007546001600160a01b031681565b6008546001600160a01b0316331461087d5760405162461bcd60e51b815260040161030690610c9b565b610885610932565b6001600160a01b0316836001600160a01b0316146108b55760405162461bcd60e51b815260040161030690610e03565b604051633950935160e01b815233906339509351906108da9030908690600401610c82565b602060405180830381600087803b1580156108f457600080fd5b505af1158015610908573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092c9190610bd9565b50505050565b6000546001600160a01b031690565b6006546001600160a01b031681565b60035481565b60045481565b6008546001600160a01b031681565b60025481565b3361097a610932565b6001600160a01b0316146109a05760405162461bcd60e51b815260040161030690610dce565b6001600160a01b0381166109c65760405162461bcd60e51b815260040161030690610cef565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331480610a49575033610a3e610932565b6001600160a01b0316145b610a655760405162461bcd60e51b815260040161030690610d84565b8115801590610a7357508015155b610a8f5760405162461bcd60e51b815260040161030690610d35565b6003829055600481905581610aac82670de0b6b3a7640000610f38565b610ab69190610f18565b6005556040517ff9317dc3bc6dda0e00e43855c2c30847aeafb8dcea9d2ce86e9ce7a83d549f0190610aeb9084908490610ef2565b60405180910390a15050565b600060208284031215610b08578081fd5b8135610b1381610f83565b9392505050565b600080600060608486031215610b2e578182fd5b8335610b3981610f83565b92506020848101359250604085013567ffffffffffffffff80821115610b5d578384fd5b818701915087601f830112610b70578384fd5b813581811115610b8257610b82610f6d565b604051601f8201601f1916810185018381118282101715610ba557610ba5610f6d565b60405281815283820185018a1015610bbb578586fd5b81858501868301378585838301015280955050505050509250925092565b600060208284031215610bea578081fd5b81518015158114610b13578182fd5b600060208284031215610c0a578081fd5b5035919050565b600060208284031215610c22578081fd5b5051919050565b60008060408385031215610c3b578182fd5b50508035926020909101359150565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b60208082526034908201527f446f206e6f7420616c6c6f7720616e7920746f6b656e206465706f736974732060408201527337ba3432b9103a3430b71029aa27903a37b5b2b760611b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526010908201526f050726963652063616e277420626520360841b604082015260600190565b6020808252600b908201526a139bc810d313c81cd95b9d60aa1b604082015260600190565b6020808252602a908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015269206f722073797374656d60b01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f4f6e6c79206f776e65722063616e206465706f7369742053544f20746f6b656e6040820152607360f81b606082015260800190565b60208082526018908201527f5a65726f2061646472657373206e6f7420616c6c6f7765640000000000000000604082015260600190565b6020808252601b908201527f4f6e6c792035252063616e206265207061696420627920434c4f450000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b918252602082015260400190565b60008219821115610f1357610f13610f57565b500190565b600082610f3357634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610f5257610f52610f57565b500290565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461045457600080fdfea264697066735822122052e7f45670d68ebdccf16336dba722bd77e0dc7151db3d4ad27efcb3dd1c5f7364736f6c6343000800003300000000000000000000000083736d58f496afab4cf7d8453575ab59279810ec

Deployed ByteCode

0x6080604052600436106100fd5760003560e01c80638943ec0211610095578063a76a5c0d11610064578063a76a5c0d14610258578063c8b736bd1461026d578063d442b27014610282578063f2fde38b14610297578063f7d97577146102b7576100fd565b80638943ec02146101f95780638da5cb5b1461021957806395bf75fd1461022e578063a100d4ce14610243576100fd565b80632d296bf1116100d15780632d296bf11461019157806350d12298146101a457806355837757146101c457806376cdb03b146101e4576100fd565b8062ae3bf81461010257806308d52cc314610124578063090d23b91461014f5780630f7376a51461016f575b600080fd5b34801561010e57600080fd5b5061012261011d366004610af7565b6102d7565b005b34801561013057600080fd5b50610139610457565b6040516101469190610c4a565b60405180910390f35b34801561015b57600080fd5b5061012261016a366004610af7565b610466565b34801561017b57600080fd5b50610184610511565b6040516101469190610ee9565b61012261019f366004610bf9565b610517565b3480156101b057600080fd5b506101226101bf366004610bf9565b610734565b3480156101d057600080fd5b506101226101df366004610af7565b6107ca565b3480156101f057600080fd5b50610139610844565b34801561020557600080fd5b50610122610214366004610b1a565b610853565b34801561022557600080fd5b50610139610932565b34801561023a57600080fd5b50610139610941565b34801561024f57600080fd5b50610184610950565b34801561026457600080fd5b50610184610956565b34801561027957600080fd5b5061013961095c565b34801561028e57600080fd5b5061018461096b565b3480156102a357600080fd5b506101226102b2366004610af7565b610971565b3480156102c357600080fd5b506101226102d2366004610c29565b610a21565b336102e0610932565b6001600160a01b03161461030f5760405162461bcd60e51b815260040161030690610dce565b60405180910390fd5b6001600160a01b03811661034f5760405133904780156108fc02916000818181858888f19350505050158015610349573d6000803e3d6000fd5b50610454565b6040516370a0823160e01b81526000906001600160a01b038316906370a082319061037e903090600401610c4a565b60206040518083038186803b15801561039657600080fd5b505afa1580156103aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ce9190610c11565b60405163a9059cbb60e01b81529091506001600160a01b0383169063a9059cbb906103ff9033908590600401610c82565b602060405180830381600087803b15801561041957600080fd5b505af115801561042d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104519190610bd9565b50505b50565b6009546001600160a01b031681565b3361046f610932565b6001600160a01b0316146104955760405162461bcd60e51b815260040161030690610dce565b6001600160a01b0381166104bb5760405162461bcd60e51b815260040161030690610e44565b600780546001600160a01b0319166001600160a01b0383161790556040517f10f5824683d64a0712038f2244e046b174a1cc57fbb8556bfda5ffb26124406790610506908390610c4a565b60405180910390a150565b60055481565b6002600154141561053a5760405162461bcd60e51b815260040161030690610eb2565b60026001553461055c5760405162461bcd60e51b815260040161030690610d5f565b60006003543461056c9190610f38565b905060006004548361057e9190610f38565b9050600061058c8284610f00565b9050605f8161059c856064610f38565b6105a69190610f18565b10156105c45760405162461bcd60e51b815260040161030690610e7b565b8315610657576009546007546040516323b872dd60e01b81526001600160a01b03928316926323b872dd92610603923392909116908990600401610c5e565b602060405180830381600087803b15801561061d57600080fd5b505af1158015610631573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106559190610bd9565b505b6007546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610690573d6000803e3d6000fd5b506000600254826106a19190610f18565b6008546040516323b872dd60e01b81529192506001600160a01b0316906323b872dd906106d690309033908690600401610c5e565b602060405180830381600087803b1580156106f057600080fd5b505af1158015610704573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107289190610bd9565b50506001805550505050565b6006546001600160a01b031633148061075c575033610751610932565b6001600160a01b0316145b6107785760405162461bcd60e51b815260040161030690610d84565b806107955760405162461bcd60e51b815260040161030690610d35565b60028190556040517fc1715b960a9d3af7d865983ba84082275877f286f3a2d11a250ff75b3f6e85f090610506908390610ee9565b336107d3610932565b6001600160a01b0316146107f95760405162461bcd60e51b815260040161030690610dce565b600680546001600160a01b0319166001600160a01b0383161790556040517f49cd4dad53143519125de2da7395d254bd24b8f3c049554685fadeafc1fd96c890610506908390610c4a565b6007546001600160a01b031681565b6008546001600160a01b0316331461087d5760405162461bcd60e51b815260040161030690610c9b565b610885610932565b6001600160a01b0316836001600160a01b0316146108b55760405162461bcd60e51b815260040161030690610e03565b604051633950935160e01b815233906339509351906108da9030908690600401610c82565b602060405180830381600087803b1580156108f457600080fd5b505af1158015610908573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092c9190610bd9565b50505050565b6000546001600160a01b031690565b6006546001600160a01b031681565b60035481565b60045481565b6008546001600160a01b031681565b60025481565b3361097a610932565b6001600160a01b0316146109a05760405162461bcd60e51b815260040161030690610dce565b6001600160a01b0381166109c65760405162461bcd60e51b815260040161030690610cef565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331480610a49575033610a3e610932565b6001600160a01b0316145b610a655760405162461bcd60e51b815260040161030690610d84565b8115801590610a7357508015155b610a8f5760405162461bcd60e51b815260040161030690610d35565b6003829055600481905581610aac82670de0b6b3a7640000610f38565b610ab69190610f18565b6005556040517ff9317dc3bc6dda0e00e43855c2c30847aeafb8dcea9d2ce86e9ce7a83d549f0190610aeb9084908490610ef2565b60405180910390a15050565b600060208284031215610b08578081fd5b8135610b1381610f83565b9392505050565b600080600060608486031215610b2e578182fd5b8335610b3981610f83565b92506020848101359250604085013567ffffffffffffffff80821115610b5d578384fd5b818701915087601f830112610b70578384fd5b813581811115610b8257610b82610f6d565b604051601f8201601f1916810185018381118282101715610ba557610ba5610f6d565b60405281815283820185018a1015610bbb578586fd5b81858501868301378585838301015280955050505050509250925092565b600060208284031215610bea578081fd5b81518015158114610b13578182fd5b600060208284031215610c0a578081fd5b5035919050565b600060208284031215610c22578081fd5b5051919050565b60008060408385031215610c3b578182fd5b50508035926020909101359150565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b60208082526034908201527f446f206e6f7420616c6c6f7720616e7920746f6b656e206465706f736974732060408201527337ba3432b9103a3430b71029aa27903a37b5b2b760611b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526010908201526f050726963652063616e277420626520360841b604082015260600190565b6020808252600b908201526a139bc810d313c81cd95b9d60aa1b604082015260600190565b6020808252602a908201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015269206f722073797374656d60b01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f4f6e6c79206f776e65722063616e206465706f7369742053544f20746f6b656e6040820152607360f81b606082015260800190565b60208082526018908201527f5a65726f2061646472657373206e6f7420616c6c6f7765640000000000000000604082015260600190565b6020808252601b908201527f4f6e6c792035252063616e206265207061696420627920434c4f450000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b918252602082015260400190565b60008219821115610f1357610f13610f57565b500190565b600082610f3357634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610f5257610f52610f57565b500290565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461045457600080fdfea264697066735822122052e7f45670d68ebdccf16336dba722bd77e0dc7151db3d4ad27efcb3dd1c5f7364736f6c63430008000033