Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xf5cB350b40726B5BcF170d12e162B6193b291B41
Balance 0.000000000 ETH
Nonce 1
Code Size 6266 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

6266 bytes
0x6080604052600436106101325763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610137578063095ea7b3146101c1578063116d33ad146101f957806318160ddd146102655780631e458bee1461028c57806323b872dd146102b3578063313ce567146102dd5780633f4ba83a14610308578063515fbf891461031f5780635c975abb146103a757806366188463146103bc5780636df526c8146103e057806370a0823114610407578063715018a6146104285780638456cb591461043d5780638da5cb5b1461045257806395d89b4114610467578063a9059cbb1461047c578063d73dd623146104a0578063dd62ed3e146104c4578063e18f965e146104eb578063f2fde38b14610500578063fe9d930314610521575b600080fd5b34801561014357600080fd5b5061014c61057f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018657818101518382015260200161016e565b50505050905090810190601f1680156101b35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101cd57600080fd5b506101e5600160a060020a036004351660243561060d565b604080519115158252519081900360200190f35b34801561020557600080fd5b50604080516020601f6064356004818101359283018490048402850184019095528184526101e594600160a060020a0381351694602480359560443595369560849493019181908401838280828437509497506106319650505050505050565b34801561027157600080fd5b5061027a61078d565b60408051918252519081900360200190f35b34801561029857600080fd5b506101e5600160a060020a0360043516602435604435610793565b3480156102bf57600080fd5b506101e5600160a060020a03600435811690602435166044356107c9565b3480156102e957600080fd5b506102f26107e7565b6040805160ff9092168252519081900360200190f35b34801561031457600080fd5b5061031d6107f0565b005b34801561032b57600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261038b94600160a060020a0381351694602480359560443595369560849493019181908401838280828437509497506108569650505050505050565b60408051600160a060020a039092168252519081900360200190f35b3480156103b357600080fd5b506101e5610930565b3480156103c857600080fd5b506101e5600160a060020a0360043516602435610939565b3480156103ec57600080fd5b5061027a600160a060020a0360043516602435604435610956565b34801561041357600080fd5b5061027a600160a060020a0360043516610a0f565b34801561043457600080fd5b5061031d610a2a565b34801561044957600080fd5b5061031d610ab1565b34801561045e57600080fd5b5061038b610b19565b34801561047357600080fd5b5061014c610b2d565b34801561048857600080fd5b506101e5600160a060020a0360043516602435610b88565b3480156104ac57600080fd5b506101e5600160a060020a0360043516602435610ba5565b3480156104d057600080fd5b5061027a600160a060020a0360043581169060243516610bc2565b3480156104f757600080fd5b5061027a610bed565b34801561050c57600080fd5b5061031d600160a060020a0360043516610bf3565b34801561052d57600080fd5b5060408051602060046024803582810135601f810185900485028601850190965285855261031d958335953695604494919390910191908190840183828082843750949750610c1f9650505050505050565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106055780601f106105da57610100808354040283529160200191610605565b820191906000526020600020905b8154815290600101906020018083116105e857829003601f168201915b505050505081565b60085460009060ff161561062057600080fd5b61062a8383610c2d565b9392505050565b604080516c01000000000000000000000000600160a060020a0387160260208083019190915260348201869052605480830186905283518084039091018152607490920192839052815160009384926106f39287926106e792879282918401908083835b602083106106b45780518252601f199092019160209182019101610695565b5181516020939093036101000a600019018019909116921691909117905260405192018290039091209250610c97915050565b9063ffffffff610d4116565b600554909150600160a060020a03808316610100909204161461077757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f57726f6e67207369676e65720000000000000000000000000000000000000000604482015290519081900360640190fd5b61078287878761101b565b979650505050505050565b60015490565b60055460009033600160a060020a0390811661010090920416146107b657600080fd5b6107c184848461101b565b949350505050565b60085460009060ff16156107dc57600080fd5b6107c1848484611205565b60055460ff1681565b60055433600160a060020a03908116610100909204161461081057600080fd5b60085460ff16151561082157600080fd5b6008805460ff191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b604080516c01000000000000000000000000600160a060020a038716026020808301919091526034820186905260548083018690528351808403909101815260749092019283905281516000938492839283928692909182918401908083835b602083106108d55780518252601f1990920191602091820191016108b6565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902092506109118360001916610c97565b9150610923828763ffffffff610d4116565b9998505050505050505050565b60085460ff1681565b60085460009060ff161561094c57600080fd5b61062a8383611360565b604080516c01000000000000000000000000600160a060020a03861602602080830191909152603482018590526054808301859052835180840390910181526074909201928390528151600093849283928592918291908401908083835b602083106109d35780518252601f1990920191602091820191016109b4565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902091506107828260001916610c97565b600160a060020a031660009081526020819052604090205490565b60055433600160a060020a039081166101009092041614610a4a57600080fd5b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f52656e6f756e63696e67206f776e65727368697020697320626c6f636b656400604482015290519081900360640190fd5b60055433600160a060020a039081166101009092041614610ad157600080fd5b60085460ff1615610ae157600080fd5b6008805460ff191660011790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b6005546101009004600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106055780601f106105da57610100808354040283529160200191610605565b60085460009060ff1615610b9b57600080fd5b61062a8383611458565b60085460009060ff1615610bb857600080fd5b61062a838361152c565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60065481565b60055433600160a060020a039081166101009092041614610c1357600080fd5b610c1c816115ce565b50565b610c298282611661565b5050565b600160a060020a03338116600081815260026020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c80830185905283518084039091018152605c909201928390528151600093918291908401908083835b60208310610d0f5780518252601f199092019160209182019101610cf0565b5181516020939093036101000a6000190180199091169216919091179052604051920182900390912095945050505050565b600080600080600085516041141515610dbb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b602086015160408701516060880151919550935060001a91507f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610e8957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b8160ff16601b14158015610ea157508160ff16601c14155b15610f3357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60408051600080825260208083018085528b905260ff8616838501526060830188905260808301879052925160019360a0808501949193601f19840193928390039091019190865af1158015610f8d573d6000803e3d6000fd5b5050604051601f190151915050600160a060020a038116151561101157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f45434453413a20696e76616c6964207369670000000000000000000000000000604482015290519081900360640190fd5b9695505050505050565b600081151561108b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f456d707479207478000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60008281526007602052604090205460ff161561110957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4578697374696e67207478000000000000000000000000000000000000000000604482015290519081900360640190fd5b6000828152600760205260409020805460ff1916600190811790915554611136908463ffffffff61166c16565b600155600160a060020a038416600090815260208190526040902054611162908463ffffffff61166c16565b600160a060020a03851660008181526020818152604091829020939093558051868152928301859052805191927f3dec94b8abc8f801eaade1616d3aadd3114b556a284267905e0a053b2df39892929081900390910190a2604080518481529051600160a060020a038616916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35060019392505050565b600160a060020a0380841660009081526002602090815260408083203390941683529290529081205482111561123a57600080fd5b600160a060020a038316151561124f57600080fd5b600160a060020a038416600090815260208190526040902054611278908363ffffffff61167f16565b600160a060020a0380861660009081526020819052604080822093909355908516815220546112ad908363ffffffff61166c16565b600160a060020a03808516600090815260208181526040808320949094558783168252600281528382203390931682529190915220546112f3908363ffffffff61167f16565b600160a060020a038086166000818152600260209081526040808320338616845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b600160a060020a0333811660009081526002602090815260408083209386168352929052908120548083106113bc57600160a060020a0333811660009081526002602090815260408083209388168352929052908120556113f3565b6113cc818463ffffffff61167f16565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529482529182902054825190815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060019392505050565b6000600160a060020a038316151561146f57600080fd5b600160a060020a033316600090815260208190526040902054611498908363ffffffff61167f16565b600160a060020a0333811660009081526020819052604080822093909355908516815220546114cd908363ffffffff61166c16565b600160a060020a03808516600081815260208181526040918290209490945580518681529051919333909316927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350600192915050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054611564908363ffffffff61166c16565b600160a060020a0333811660008181526002602090815260408083209489168084529482529182902085905581519485529051929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a350600192915050565b600160a060020a03811615156115e357600080fd5b600554604051600160a060020a0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360058054600160a060020a03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b610c29338383611691565b8181018281101561167957fe5b92915050565b60008282111561168b57fe5b50900390565b80516070101561170257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f426164206164647265737320666f726d61740000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03831660009081526020819052604090205461172b908363ffffffff61167f16565b600160a060020a038416600090815260208190526040902055600154611757908363ffffffff61167f16565b60018190555082600160a060020a03167f8d38f5a0c1764ff1cca876ce8fe136163fddfce925659e6ad05437cfff6fd39283836040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117cd5781810151838201526020016117b5565b50505050905090810190601f1680156117fa5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a2604080518381529051600091600160a060020a038616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050505600a165627a7a723058206a025fc3591d961fb3d82c1f5edd1a071525f4cb8a6e7b6a2fda7d01790fe6ca0029

Verified Source Code Partial Match

Compiler: v0.4.23+commit.124ca40d EVM: byzantium Optimization: Yes (1000 runs)
WBIS.sol 689 lines
pragma solidity ^0.4.23;
// Version 0.6


// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * See https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
    function totalSupply() public view returns (uint256);

    function balanceOf(address _who) public view returns (uint256);

    function transfer(address _to, uint256 _value) public returns (bool);

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

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
    /**
     * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
     */
    function sub(uint256 _a, uint256 _b) internal pure returns (uint256) {
        assert(_b <= _a);
        return _a - _b;
    }

    /**
     * @dev Adds two numbers, throws on overflow.
     */
    function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
        c = _a + _b;
        assert(c >= _a);
        return c;
    }
}

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature)
    internal
    pure
    returns (address)
    {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (
            uint256(s) >
            0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0
        ) {
            revert("ECDSA: invalid signature 's' value");
        }

        if (v != 27 && v != 28) {
            revert("ECDSA: invalid signature 'v' value");
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid sig");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash)
    internal
    pure
    returns (bytes32)
    {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return
        keccak256(
            abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)
        );
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/BasicToken.sol

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
    using SafeMath for uint256;

    mapping(address => uint256) internal balances;

    uint256 internal totalSupply_;

    /**
     * @dev Total number of tokens in existence
     */
    function totalSupply() public view returns (uint256) {
        return totalSupply_;
    }

    /**
     * @dev Transfer token for a specified address
     * @param _to The address to transfer to.
     * @param _value The amount to be transferred.
     */
    function transfer(address _to, uint256 _value) public returns (bool) {
        // require(_value <= balances[msg.sender]); // Asserted by .sub
        require(_to != address(0));

        balances[msg.sender] = balances[msg.sender].sub(_value);
        balances[_to] = balances[_to].add(_value);
        emit Transfer(msg.sender, _to, _value);
        return true;
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param _owner The address to query the the balance of.
     * @return An uint256 representing the amount owned by the passed address.
     */
    function balanceOf(address _owner) public view returns (uint256) {
        return balances[_owner];
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
    function allowance(address _owner, address _spender)
    public
    view
    returns (uint256);

    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    ) public returns (bool);

    function approve(address _spender, uint256 _value) public returns (bool);

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

// File: openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://github.com/ethereum/EIPs/issues/20
 * Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {
    mapping(address => mapping(address => uint256)) internal allowed;

    /**
     * @dev Transfer tokens from one address to another
     * @param _from address The address which you want to send tokens from
     * @param _to address The address which you want to transfer to
     * @param _value uint256 the amount of tokens to be transferred
     */
    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    ) public returns (bool) {
        // require(_value <= balances[_from]); // Asserted by .sub()
        require(_value <= allowed[_from][msg.sender]); // Required or we could decrease balance but not allowed
        require(_to != address(0));

        balances[_from] = balances[_from].sub(_value);
        balances[_to] = balances[_to].add(_value);
        allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
        emit Transfer(_from, _to, _value);
        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
     * Beware that changing an allowance with this method brings the risk that someone may use both the old
     * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
     * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     * @param _spender The address which will spend the funds.
     * @param _value The amount of tokens to be spent.
     */
    function approve(address _spender, uint256 _value) public returns (bool) {
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    /**
     * @dev Function to check the amount of tokens that an owner allowed to a spender.
     * @param _owner address The address which owns the funds.
     * @param _spender address The address which will spend the funds.
     * @return A uint256 specifying the amount of tokens still available for the spender.
     */
    function allowance(address _owner, address _spender)
    public
    view
    returns (uint256)
    {
        return allowed[_owner][_spender];
    }

    /**
     * @dev Increase the amount of tokens that an owner allowed to a spender.
     * approve should be called when allowed[_spender] == 0. To increment
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * @param _spender The address which will spend the funds.
     * @param _addedValue The amount of tokens to increase the allowance by.
     */
    function increaseApproval(address _spender, uint256 _addedValue)
    public
    returns (bool)
    {
        allowed[msg.sender][_spender] = (
        allowed[msg.sender][_spender].add(_addedValue)
        );
        emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
        return true;
    }

    /**
     * @dev Decrease the amount of tokens that an owner allowed to a spender.
     * approve should be called when allowed[_spender] == 0. To decrement
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * @param _spender The address which will spend the funds.
     * @param _subtractedValue The amount of tokens to decrease the allowance by.
     */
    function decreaseApproval(address _spender, uint256 _subtractedValue)
    public
    returns (bool)
    {
        uint256 oldValue = allowed[msg.sender][_spender];
        if (_subtractedValue >= oldValue) {
            allowed[msg.sender][_spender] = 0;
        } else {
            allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
        }
        emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
        return true;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol

/**
 * @title DetailedERC20 token
 * @dev The decimals are only for visualization purposes.
 * All the operations are done using the smallest and indivisible token unit,
 * just as on Ethereum all the operations are done in wei.
 */
contract DetailedERC20 is ERC20 {
    string public name;
    string public symbol;
    uint8 public decimals;

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) public {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
    }
}

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
    address public owner;

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

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor() public {
        owner = msg.sender;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    /**
     * @dev Allows the current owner to relinquish control of the contract.
     * @notice Renouncing to ownership will leave the contract without an owner.
     * It will not be possible to call the functions with the `onlyOwner`
     * modifier anymore.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipRenounced(owner);
        owner = address(0);
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param _newOwner The address to transfer ownership to.
     */
    function transferOwnership(address _newOwner) public onlyOwner {
        _transferOwnership(_newOwner);
    }

    /**
     * @dev Transfers control of the contract to a newOwner.
     * @param _newOwner The address to transfer ownership to.
     */
    function _transferOwnership(address _newOwner) internal {
        require(_newOwner != address(0));
        emit OwnershipTransferred(owner, _newOwner);
        owner = _newOwner;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol

/**
 * @title Mintable token
 * @dev Simple ERC20 Token example, with mintable token creation
 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
 */
contract MintableToken is StandardToken, Ownable {
    event Mint(address indexed to, uint256 amount, bytes32 trans);

    using ECDSA for bytes32;
    bytes32 public lastTrans;
    //bytes public lastBlob;

    mapping(bytes32 => bool) internal transactions;

    modifier hasMintPermission() {
        require(msg.sender == owner);
        _;
    }

    /**
     * @dev Function to mint tokens
     * @param _to The address that will receive the minted tokens.
     * @param _amount The amount of tokens to mint.
     * @param _trans The transaction id of the bis transfer.
     * @return A boolean that indicates if the operation was successful.
     */
    function mint(
        address _to,
        uint256 _amount,
        bytes32 _trans
    ) public hasMintPermission returns (bool) {
        return _mint(_to, _amount, _trans);
    }

    /**
     * @dev Function to mint tokens
     * @param _to The address that will receive the minted tokens.
     * @param _amount The amount of tokens to mint.
     * @param _trans The transaction id of the bis transfer.
     * @param approvalData The sign data by owner.
     * @return A boolean that indicates if the operation was successful.
     */
    function relayMint(
        address _to,
        uint256 _amount,
        bytes32 _trans,
        bytes memory approvalData
    ) public returns (bool) {
        bytes memory blob = abi.encodePacked(_to, _amount, _trans);
        address who = keccak256(blob).toEthSignedMessageHash().recover(approvalData);
        require(who == owner, "Wrong signer");
        return _mint(_to, _amount, _trans);
    }

    function whoMint(
        address _to,
        uint256 _amount,
        bytes32 _trans,
        bytes memory approvalData
    ) pure public returns (address) {
        bytes memory blob = abi.encodePacked(_to, _amount, _trans);
        //address who = keccak256(blob).toEthSignedMessageHash().recover(approvalData);
        bytes32 kec = keccak256(blob);
        bytes32 mesg = kec.toEthSignedMessageHash();
        address who = mesg.recover(approvalData);
        return who;
    }

    function msgMint(
        address _to,
        uint256 _amount,
        bytes32 _trans
    ) pure public returns (bytes32) {
        bytes memory blob = abi.encodePacked(_to, _amount, _trans);
        bytes32 kec = keccak256(blob);
        bytes32 mesg = kec.toEthSignedMessageHash();
        return mesg;
    }

    function _mint(
        address _to,
        uint256 _amount,
        bytes32 _trans
    ) internal returns (bool) {
        require(_trans != bytes32(0), "Empty tx");
        require(!transactions[_trans], "Existing tx");
        transactions[_trans] = true;
        totalSupply_ = totalSupply_.add(_amount);
        balances[_to] = balances[_to].add(_amount);
        emit Mint(_to, _amount, _trans);
        emit Transfer(address(0), _to, _amount);
        return true;
    }

}

// File: openzeppelin-solidity/contracts/token/ERC20/BurnableToken.sol

/**
 * @title Burnable Token
 * @dev Token that can be irreversibly burned (destroyed).
 */
contract BurnableToken is BasicToken {
    event Burn(address indexed burner, uint256 value, bytes addr);

    /**
     * @dev Burns a specific amount of tokens.
     * @param _value The amount of token to be burned.
     * @param _addr bis address.
     */
    function burn(uint256 _value, bytes memory _addr) public {
        _burn(msg.sender, _value, _addr);
    }

    function _burn(
        address _who,
        uint256 _value,
        bytes memory _addr
    ) internal {
        // require(_value <= balances[_who], "Low balance"); // Asserted by .sub
        require(_addr.length <= 112, "Bad address format");
        // no need to require value <= totalSupply, since that would imply the
        // sender's balance is greater than the totalSupply, which *should* be an assertion failure

        balances[_who] = balances[_who].sub(_value);
        totalSupply_ = totalSupply_.sub(_value);
        emit Burn(_who, _value, _addr);
        emit Transfer(_who, address(0), _value);
    }
}

// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol

/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
    event Pause();
    event Unpause();

    bool public paused = false;

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!paused);
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(paused);
        _;
    }

    /**
     * @dev called by the owner to pause, triggers stopped state
     */
    function pause() public onlyOwner whenNotPaused {
        paused = true;
        emit Pause();
    }

    /**
     * @dev called by the owner to unpause, returns to normal state
     */
    function unpause() public onlyOwner whenPaused {
        paused = false;
        emit Unpause();
    }
}

// File: openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol

/**
 * @title Pausable token
 * @dev StandardToken modified with pausable transfers.
 **/
contract PausableToken is StandardToken, Pausable {
    function transfer(address _to, uint256 _value)
    public
    whenNotPaused
    returns (bool)
    {
        return super.transfer(_to, _value);
    }

    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    ) public whenNotPaused returns (bool) {
        return super.transferFrom(_from, _to, _value);
    }

    function approve(address _spender, uint256 _value)
    public
    whenNotPaused
    returns (bool)
    {
        return super.approve(_spender, _value);
    }

    function increaseApproval(address _spender, uint256 _addedValue)
    public
    whenNotPaused
    returns (bool success)
    {
        return super.increaseApproval(_spender, _addedValue);
    }

    function decreaseApproval(address _spender, uint256 _subtractedValue)
    public
    whenNotPaused
    returns (bool success)
    {
        return super.decreaseApproval(_spender, _subtractedValue);
    }
}

// File: openzeppelin-solidity/contracts/ownership/Claimable.sol

/**
 * @title Claimable
 * @dev Extension for the Ownable contract, where the ownership needs to be claimed.
 * This allows the new owner to accept the transfer.
 */
contract Claimable is Ownable {
    address public pendingOwner;

    /**
     * @dev Modifier throws if called by any account other than the pendingOwner.
     */
    modifier onlyPendingOwner() {
        require(msg.sender == pendingOwner);
        _;
    }

    /**
     * @dev Allows the current owner to set the pendingOwner address.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        pendingOwner = newOwner;
    }

    /**
     * @dev Allows the pendingOwner address to finalize the transfer.
     */
    function claimOwnership() public onlyPendingOwner {
        emit OwnershipTransferred(owner, pendingOwner);
        owner = pendingOwner;
        pendingOwner = address(0);
    }
}

// File: contracts/token/bismuth.sol

contract WBIS is
StandardToken,
DetailedERC20("Wrapped BIS", "wBIS", 8),
MintableToken,
BurnableToken,
PausableToken
{
    /**
     * @dev Burns a specific amount of tokens.
     * @param value The amount of token to be burned.
     * @param addr bis address.
     */
    function burn(uint256 value, bytes memory addr) public {
        super.burn(value, addr);
    }

    function renounceOwnership() public onlyOwner {
        revert("Renouncing ownership is blocked");
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
lastTrans 0xe18f965e → bytes32
msgMint 0x6df526c8 → bytes32
name 0x06fdde03 → string
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
whoMint 0x515fbf89 → address

Write Contract 12 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
burn 0xfe9d9303
uint256 value
bytes addr
decreaseApproval 0x66188463
address _spender
uint256 _subtractedValue
returns: bool
increaseApproval 0xd73dd623
address _spender
uint256 _addedValue
returns: bool
mint 0x1e458bee
address _to
uint256 _amount
bytes32 _trans
returns: bool
pause 0x8456cb59
No parameters
relayMint 0x116d33ad
address _to
uint256 _amount
bytes32 _trans
bytes approvalData
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address _newOwner
unpause 0x3f4ba83a
No parameters

Recent Transactions

No transactions found for this address