ETH Price: $2,550.51 (+3.43%)

Token

ZilCoin (ZRO)
 

Overview

Max Total Supply

1,000,000,000 ZRO

Holders

17

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1 ZRO

Value
$0.00
0x3141b64408b8ebf83b28274f3f9318f94c0d036e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ZilCoin

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-02-05
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.7.4;


contract Ownable {
    address private _owner;

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

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor () {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

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

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

    /**
     * @return true if `msg.sender` is the owner of the contract.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner || tx.origin == _owner;
    }

    /**
     * @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;
    }
}



/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: 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
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}


contract ZilCoin is ERC20, Ownable {
    using SafeMath for uint256;

    uint256 public icoPrice;
    bool public icoOn = false;
    address public loansWallet;
    
    mapping(address => bool) public buyers;
    
    event Purchase(address indexed from, uint256 payment, uint256 totalTokens);
    
    constructor (address _loansWallet, address _exchangesWallet) ERC20('ZilCoin', 'ZRO')
    {
        loansWallet = _loansWallet;
        
        _mint(_exchangesWallet, 100000000 * 10 ** uint(decimals()));
        _mint(address(this), 900000000 * 10 ** uint(decimals()));
    }
    
    function enableBuyer(address _buyer, bool _enabled) public onlyOwner {
        buyers[_buyer] = _enabled;
    }
    
    function startIco(uint256 _icoPrice) public onlyOwner {
        require(icoPrice == 0, "Cannot be started again");
        require(_icoPrice > 0, "Invalid price");
        icoPrice = _icoPrice;
        icoOn = true;
    }

    function finishIco() public onlyOwner {
        require(icoOn, 'ICO is not started');
        icoOn = false;
    }
    
    function buy() public payable {
        require(icoOn, "ICO unavailable");
        require(buyers[msg.sender], "Buyer not enabled");
        
        uint256 totalTokens = msg.value.div(icoPrice).mul(1e18);
        payable(owner()).transfer(msg.value);
        require(IERC20(this).transfer(msg.sender, totalTokens));
        require(IERC20(this).transfer(loansWallet, totalTokens));
        
        emit Purchase(msg.sender, msg.value, msg.value.div(icoPrice));
    }
    
    function recoverIcoTokens() public onlyOwner {
        require(icoPrice > 0 && !icoOn, "ICO needs to have finished");
        uint256 balance = balanceOf(address(this));
        require(IERC20(this).transfer(msg.sender, balance));
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_loansWallet","type":"address"},{"internalType":"address","name":"_exchangesWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"payment","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalTokens","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"buyers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_buyer","type":"address"},{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"enableBuyer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finishIco","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"icoOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"icoPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"loansWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverIcoTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_icoPrice","type":"uint256"}],"name":"startIco","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526007805460ff191690553480156200001b57600080fd5b506040516200176a3803806200176a833981810160405260408110156200004157600080fd5b50805160209182015160408051808201825260078152662d34b621b7b4b760c91b81860190815282518084019093526003808452625a524f60e81b968401969096528151949593949193620000999290919062000306565b508051620000af90600490602084019062000306565b505060058054601260ff1990911617610100600160a81b03191661010033810291909117918290556040516001600160a01b03919092041691506000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360078054610100600160a81b0319166101006001600160a01b0385160217905562000158816200014062000187565b60ff16600a0a6305f5e100026200019060201b60201c565b6200017f306200016762000187565b60ff16600a0a6335a4e900026200019060201b60201c565b5050620003b2565b60055460ff1690565b6001600160a01b038216620001ec576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620001fa600083836200029f565b6200021681600254620002a460201b62000d8e1790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200024991839062000d8e620002a4821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b600082820183811015620002ff576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200033e576000855562000389565b82601f106200035957805160ff191683800117855562000389565b8280016001018555821562000389579182015b82811115620003895782518255916020019190600101906200036c565b50620003979291506200039b565b5090565b5b808211156200039757600081556001016200039c565b6113a880620003c26000396000f3fe6080604052600436106101405760003560e01c80638bf45f39116100b6578063a6f2ae3a1161006f578063a6f2ae3a1461048a578063a9059cbb14610492578063dd62ed3e146104cb578063e1f6646914610506578063ec42f82f1461051b578063f2fde38b1461053057610140565b80638bf45f39146103ae5780638da5cb5b146103c35780638f32d59b146103f457806395d89b411461040957806397a993aa1461041e578063a457c2d71461045157610140565b8063313ce56711610108578063313ce5671461029b57806334b0e5ed146102c657806339509351146102db5780633ded9b78146103145780633ef2f3151461034057806370a082311461037b57610140565b806306fdde031461014557806307839a0c146101cf578063095ea7b3146101f857806318160ddd1461023157806323b872dd14610258575b600080fd5b34801561015157600080fd5b5061015a610563565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019457818101518382015260200161017c565b50505050905090810190601f1680156101c15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101db57600080fd5b506101e46105f9565b604080519115158252519081900360200190f35b34801561020457600080fd5b506101e46004803603604081101561021b57600080fd5b506001600160a01b038135169060200135610602565b34801561023d57600080fd5b50610246610620565b60408051918252519081900360200190f35b34801561026457600080fd5b506101e46004803603606081101561027b57600080fd5b506001600160a01b03813581169160208101359091169060400135610626565b3480156102a757600080fd5b506102b06106ad565b6040805160ff9092168252519081900360200190f35b3480156102d257600080fd5b506102466106b6565b3480156102e757600080fd5b506101e4600480360360408110156102fe57600080fd5b506001600160a01b0381351690602001356106bc565b34801561032057600080fd5b5061033e6004803603602081101561033757600080fd5b503561070a565b005b34801561034c57600080fd5b5061033e6004803603604081101561036357600080fd5b506001600160a01b03813516906020013515156107c7565b34801561038757600080fd5b506102466004803603602081101561039e57600080fd5b50356001600160a01b0316610803565b3480156103ba57600080fd5b5061033e61081e565b3480156103cf57600080fd5b506103d8610922565b604080516001600160a01b039092168252519081900360200190f35b34801561040057600080fd5b506101e4610936565b34801561041557600080fd5b5061015a61096b565b34801561042a57600080fd5b506101e46004803603602081101561044157600080fd5b50356001600160a01b03166109cc565b34801561045d57600080fd5b506101e46004803603604081101561047457600080fd5b506001600160a01b0381351690602001356109e1565b61033e610a49565b34801561049e57600080fd5b506101e4600480360360408110156104b557600080fd5b506001600160a01b038135169060200135610cb8565b3480156104d757600080fd5b50610246600480360360408110156104ee57600080fd5b506001600160a01b0381358116916020013516610ccc565b34801561051257600080fd5b506103d8610cf7565b34801561052757600080fd5b5061033e610d0b565b34801561053c57600080fd5b5061033e6004803603602081101561055357600080fd5b50356001600160a01b0316610d74565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ef5780601f106105c4576101008083540402835291602001916105ef565b820191906000526020600020905b8154815290600101906020018083116105d257829003601f168201915b5050505050905090565b60075460ff1681565b600061061661060f610def565b8484610df3565b5060015b92915050565b60025490565b6000610633848484610edf565b6106a38461063f610def565b61069e856040518060600160405280602881526020016112dd602891396001600160a01b038a1660009081526001602052604081209061067d610def565b6001600160a01b03168152602081019190915260400160002054919061103a565b610df3565b5060019392505050565b60055460ff1690565b60065481565b60006106166106c9610def565b8461069e85600160006106da610def565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610d8e565b610712610936565b61071b57600080fd5b60065415610770576040805162461bcd60e51b815260206004820152601760248201527f43616e6e6f74206265207374617274656420616761696e000000000000000000604482015290519081900360640190fd5b600081116107b5576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b604482015290519081900360640190fd5b6006556007805460ff19166001179055565b6107cf610936565b6107d857600080fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6001600160a01b031660009081526020819052604090205490565b610826610936565b61082f57600080fd5b6000600654118015610844575060075460ff16155b610895576040805162461bcd60e51b815260206004820152601a60248201527f49434f206e6565647320746f20686176652066696e6973686564000000000000604482015290519081900360640190fd5b60006108a030610803565b6040805163a9059cbb60e01b8152336004820152602481018390529051919250309163a9059cbb916044808201926020929091908290030181600087803b1580156108ea57600080fd5b505af11580156108fe573d6000803e3d6000fd5b505050506040513d602081101561091457600080fd5b505161091f57600080fd5b50565b60055461010090046001600160a01b031690565b60055460009061010090046001600160a01b0316331480610966575060055461010090046001600160a01b031632145b905090565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ef5780601f106105c4576101008083540402835291602001916105ef565b60086020526000908152604090205460ff1681565b60006106166109ee610def565b8461069e8560405180606001604052806025815260200161134e6025913960016000610a18610def565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061103a565b60075460ff16610a92576040805162461bcd60e51b815260206004820152600f60248201526e49434f20756e617661696c61626c6560881b604482015290519081900360640190fd5b3360009081526008602052604090205460ff16610aea576040805162461bcd60e51b8152602060048201526011602482015270109d5e595c881b9bdd08195b98589b1959607a1b604482015290519081900360640190fd5b6000610b13670de0b6b3a7640000610b0d600654346110d190919063ffffffff16565b90611113565b9050610b1d610922565b6001600160a01b03166108fc349081150290604051600060405180830381858888f19350505050158015610b55573d6000803e3d6000fd5b506040805163a9059cbb60e01b8152336004820152602481018390529051309163a9059cbb9160448083019260209291908290030181600087803b158015610b9c57600080fd5b505af1158015610bb0573d6000803e3d6000fd5b505050506040513d6020811015610bc657600080fd5b5051610bd157600080fd5b6007546040805163a9059cbb60e01b81526101009092046001600160a01b031660048301526024820183905251309163a9059cbb9160448083019260209291908290030181600087803b158015610c2757600080fd5b505af1158015610c3b573d6000803e3d6000fd5b505050506040513d6020811015610c5157600080fd5b5051610c5c57600080fd5b336001600160a01b03167f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c34610c9d600654346110d190919063ffffffff16565b6040805192835260208301919091528051918290030190a250565b6000610616610cc5610def565b8484610edf565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60075461010090046001600160a01b031681565b610d13610936565b610d1c57600080fd5b60075460ff16610d68576040805162461bcd60e51b81526020600482015260126024820152711250d3c81a5cc81b9bdd081cdd185c9d195960721b604482015290519081900360640190fd5b6007805460ff19169055565b610d7c610936565b610d8557600080fd5b61091f8161116c565b600082820183811015610de8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b038316610e385760405162461bcd60e51b815260040180806020018281038252602481526020018061132a6024913960400191505060405180910390fd5b6001600160a01b038216610e7d5760405162461bcd60e51b81526004018080602001828103825260228152602001806112746022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610f245760405162461bcd60e51b81526004018080602001828103825260258152602001806113056025913960400191505060405180910390fd5b6001600160a01b038216610f695760405162461bcd60e51b81526004018080602001828103825260238152602001806112516023913960400191505060405180910390fd5b610f748383836111e6565b610fb181604051806060016040528060268152602001611296602691396001600160a01b038616600090815260208190526040902054919061103a565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610fe09082610d8e565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156110c95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561108e578181015183820152602001611076565b50505050905090810190601f1680156110bb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610de883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506111eb565b6000826111225750600061061a565b8282028284828161112f57fe5b0414610de85760405162461bcd60e51b81526004018080602001828103825260218152602001806112bc6021913960400191505060405180910390fd5b6001600160a01b03811661117f57600080fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b505050565b6000818361123a5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561108e578181015183820152602001611076565b50600083858161124657fe5b049594505050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cca329b6bebb6b417b904540b2eeceb64a563d12780498b5f69aea44b918a04b64736f6c6343000704003300000000000000000000000046047286b72c384f27c125828f34c323da52354d0000000000000000000000006434b2c4058e983bc79c43e84ab39c55f89ce768

Deployed Bytecode

0x6080604052600436106101405760003560e01c80638bf45f39116100b6578063a6f2ae3a1161006f578063a6f2ae3a1461048a578063a9059cbb14610492578063dd62ed3e146104cb578063e1f6646914610506578063ec42f82f1461051b578063f2fde38b1461053057610140565b80638bf45f39146103ae5780638da5cb5b146103c35780638f32d59b146103f457806395d89b411461040957806397a993aa1461041e578063a457c2d71461045157610140565b8063313ce56711610108578063313ce5671461029b57806334b0e5ed146102c657806339509351146102db5780633ded9b78146103145780633ef2f3151461034057806370a082311461037b57610140565b806306fdde031461014557806307839a0c146101cf578063095ea7b3146101f857806318160ddd1461023157806323b872dd14610258575b600080fd5b34801561015157600080fd5b5061015a610563565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019457818101518382015260200161017c565b50505050905090810190601f1680156101c15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101db57600080fd5b506101e46105f9565b604080519115158252519081900360200190f35b34801561020457600080fd5b506101e46004803603604081101561021b57600080fd5b506001600160a01b038135169060200135610602565b34801561023d57600080fd5b50610246610620565b60408051918252519081900360200190f35b34801561026457600080fd5b506101e46004803603606081101561027b57600080fd5b506001600160a01b03813581169160208101359091169060400135610626565b3480156102a757600080fd5b506102b06106ad565b6040805160ff9092168252519081900360200190f35b3480156102d257600080fd5b506102466106b6565b3480156102e757600080fd5b506101e4600480360360408110156102fe57600080fd5b506001600160a01b0381351690602001356106bc565b34801561032057600080fd5b5061033e6004803603602081101561033757600080fd5b503561070a565b005b34801561034c57600080fd5b5061033e6004803603604081101561036357600080fd5b506001600160a01b03813516906020013515156107c7565b34801561038757600080fd5b506102466004803603602081101561039e57600080fd5b50356001600160a01b0316610803565b3480156103ba57600080fd5b5061033e61081e565b3480156103cf57600080fd5b506103d8610922565b604080516001600160a01b039092168252519081900360200190f35b34801561040057600080fd5b506101e4610936565b34801561041557600080fd5b5061015a61096b565b34801561042a57600080fd5b506101e46004803603602081101561044157600080fd5b50356001600160a01b03166109cc565b34801561045d57600080fd5b506101e46004803603604081101561047457600080fd5b506001600160a01b0381351690602001356109e1565b61033e610a49565b34801561049e57600080fd5b506101e4600480360360408110156104b557600080fd5b506001600160a01b038135169060200135610cb8565b3480156104d757600080fd5b50610246600480360360408110156104ee57600080fd5b506001600160a01b0381358116916020013516610ccc565b34801561051257600080fd5b506103d8610cf7565b34801561052757600080fd5b5061033e610d0b565b34801561053c57600080fd5b5061033e6004803603602081101561055357600080fd5b50356001600160a01b0316610d74565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ef5780601f106105c4576101008083540402835291602001916105ef565b820191906000526020600020905b8154815290600101906020018083116105d257829003601f168201915b5050505050905090565b60075460ff1681565b600061061661060f610def565b8484610df3565b5060015b92915050565b60025490565b6000610633848484610edf565b6106a38461063f610def565b61069e856040518060600160405280602881526020016112dd602891396001600160a01b038a1660009081526001602052604081209061067d610def565b6001600160a01b03168152602081019190915260400160002054919061103a565b610df3565b5060019392505050565b60055460ff1690565b60065481565b60006106166106c9610def565b8461069e85600160006106da610def565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610d8e565b610712610936565b61071b57600080fd5b60065415610770576040805162461bcd60e51b815260206004820152601760248201527f43616e6e6f74206265207374617274656420616761696e000000000000000000604482015290519081900360640190fd5b600081116107b5576040805162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b604482015290519081900360640190fd5b6006556007805460ff19166001179055565b6107cf610936565b6107d857600080fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6001600160a01b031660009081526020819052604090205490565b610826610936565b61082f57600080fd5b6000600654118015610844575060075460ff16155b610895576040805162461bcd60e51b815260206004820152601a60248201527f49434f206e6565647320746f20686176652066696e6973686564000000000000604482015290519081900360640190fd5b60006108a030610803565b6040805163a9059cbb60e01b8152336004820152602481018390529051919250309163a9059cbb916044808201926020929091908290030181600087803b1580156108ea57600080fd5b505af11580156108fe573d6000803e3d6000fd5b505050506040513d602081101561091457600080fd5b505161091f57600080fd5b50565b60055461010090046001600160a01b031690565b60055460009061010090046001600160a01b0316331480610966575060055461010090046001600160a01b031632145b905090565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105ef5780601f106105c4576101008083540402835291602001916105ef565b60086020526000908152604090205460ff1681565b60006106166109ee610def565b8461069e8560405180606001604052806025815260200161134e6025913960016000610a18610def565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061103a565b60075460ff16610a92576040805162461bcd60e51b815260206004820152600f60248201526e49434f20756e617661696c61626c6560881b604482015290519081900360640190fd5b3360009081526008602052604090205460ff16610aea576040805162461bcd60e51b8152602060048201526011602482015270109d5e595c881b9bdd08195b98589b1959607a1b604482015290519081900360640190fd5b6000610b13670de0b6b3a7640000610b0d600654346110d190919063ffffffff16565b90611113565b9050610b1d610922565b6001600160a01b03166108fc349081150290604051600060405180830381858888f19350505050158015610b55573d6000803e3d6000fd5b506040805163a9059cbb60e01b8152336004820152602481018390529051309163a9059cbb9160448083019260209291908290030181600087803b158015610b9c57600080fd5b505af1158015610bb0573d6000803e3d6000fd5b505050506040513d6020811015610bc657600080fd5b5051610bd157600080fd5b6007546040805163a9059cbb60e01b81526101009092046001600160a01b031660048301526024820183905251309163a9059cbb9160448083019260209291908290030181600087803b158015610c2757600080fd5b505af1158015610c3b573d6000803e3d6000fd5b505050506040513d6020811015610c5157600080fd5b5051610c5c57600080fd5b336001600160a01b03167f12cb4648cf3058b17ceeb33e579f8b0bc269fe0843f3900b8e24b6c54871703c34610c9d600654346110d190919063ffffffff16565b6040805192835260208301919091528051918290030190a250565b6000610616610cc5610def565b8484610edf565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60075461010090046001600160a01b031681565b610d13610936565b610d1c57600080fd5b60075460ff16610d68576040805162461bcd60e51b81526020600482015260126024820152711250d3c81a5cc81b9bdd081cdd185c9d195960721b604482015290519081900360640190fd5b6007805460ff19169055565b610d7c610936565b610d8557600080fd5b61091f8161116c565b600082820183811015610de8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b038316610e385760405162461bcd60e51b815260040180806020018281038252602481526020018061132a6024913960400191505060405180910390fd5b6001600160a01b038216610e7d5760405162461bcd60e51b81526004018080602001828103825260228152602001806112746022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610f245760405162461bcd60e51b81526004018080602001828103825260258152602001806113056025913960400191505060405180910390fd5b6001600160a01b038216610f695760405162461bcd60e51b81526004018080602001828103825260238152602001806112516023913960400191505060405180910390fd5b610f748383836111e6565b610fb181604051806060016040528060268152602001611296602691396001600160a01b038616600090815260208190526040902054919061103a565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610fe09082610d8e565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156110c95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561108e578181015183820152602001611076565b50505050905090810190601f1680156110bb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610de883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506111eb565b6000826111225750600061061a565b8282028284828161112f57fe5b0414610de85760405162461bcd60e51b81526004018080602001828103825260218152602001806112bc6021913960400191505060405180910390fd5b6001600160a01b03811661117f57600080fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b505050565b6000818361123a5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561108e578181015183820152602001611076565b50600083858161124657fe5b049594505050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cca329b6bebb6b417b904540b2eeceb64a563d12780498b5f69aea44b918a04b64736f6c63430007040033

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

00000000000000000000000046047286b72c384f27c125828f34c323da52354d0000000000000000000000006434b2c4058e983bc79c43e84ab39c55f89ce768

-----Decoded View---------------
Arg [0] : _loansWallet (address): 0x46047286b72c384f27C125828f34c323da52354D
Arg [1] : _exchangesWallet (address): 0x6434B2c4058E983bc79C43e84AB39C55f89ce768

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000046047286b72c384f27c125828f34c323da52354d
Arg [1] : 0000000000000000000000006434b2c4058e983bc79c43e84ab39c55f89ce768


Deployed Bytecode Sourcemap

27580:1832:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18761:83;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27687:25;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;20867:169;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20867:169:0;;;;;;;;:::i;19836:100::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;21510:321;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21510:321:0;;;;;;;;;;;;;;;;;:::i;19688:83::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;27657:23;;;;;;;;;;;;;:::i;22240:218::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22240:218:0;;;;;;;;:::i;28315:226::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28315:226:0;;:::i;:::-;;28190:113;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28190:113:0;;;;;;;;;;:::i;19999:119::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19999:119:0;-1:-1:-1;;;;;19999:119:0;;:::i;29169:240::-;;;;;;;;;;;;;:::i;516:79::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;516:79:0;;;;;;;;;;;;;;851:115;;;;;;;;;;;;;:::i;18963:87::-;;;;;;;;;;;;;:::i;27758:38::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27758:38:0;-1:-1:-1;;;;;27758:38:0;;:::i;22961:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22961:269:0;;;;;;;;:::i;28678:479::-;;;:::i;20331:175::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20331:175:0;;;;;;;;:::i;20569:151::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20569:151:0;;;;;;;;;;:::i;27719:26::-;;;;;;;;;;;;;:::i;28549:117::-;;;;;;;;;;;;;:::i;1143:109::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1143:109:0;-1:-1:-1;;;;;1143:109:0;;:::i;18761:83::-;18831:5;18824:12;;;;;;;;-1:-1:-1;;18824:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18798:13;;18824:12;;18831:5;;18824:12;;18831:5;18824:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18761:83;:::o;27687:25::-;;;;;;:::o;20867:169::-;20950:4;20967:39;20976:12;:10;:12::i;:::-;20990:7;20999:6;20967:8;:39::i;:::-;-1:-1:-1;21024:4:0;20867:169;;;;;:::o;19836:100::-;19916:12;;19836:100;:::o;21510:321::-;21616:4;21633:36;21643:6;21651:9;21662:6;21633:9;:36::i;:::-;21680:121;21689:6;21697:12;:10;:12::i;:::-;21711:89;21749:6;21711:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21711:19:0;;;;;;:11;:19;;;;;;21731:12;:10;:12::i;:::-;-1:-1:-1;;;;;21711:33:0;;;;;;;;;;;;-1:-1:-1;21711:33:0;;;:89;:37;:89::i;:::-;21680:8;:121::i;:::-;-1:-1:-1;21819:4:0;21510:321;;;;;:::o;19688:83::-;19754:9;;;;19688:83;:::o;27657:23::-;;;;:::o;22240:218::-;22328:4;22345:83;22354:12;:10;:12::i;:::-;22368:7;22377:50;22416:10;22377:11;:25;22389:12;:10;:12::i;:::-;-1:-1:-1;;;;;22377:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;22377:25:0;;;:34;;;;;;;;;;;:38;:50::i;28315:226::-;728:9;:7;:9::i;:::-;720:18;;;;;;28388:8:::1;::::0;:13;28380:49:::1;;;::::0;;-1:-1:-1;;;28380:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;28460:1;28448:9;:13;28440:39;;;::::0;;-1:-1:-1;;;28440:39:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28440:39:0;;;;;;;;;;;;;::::1;;28490:8;:20:::0;28521:5:::1;:12:::0;;-1:-1:-1;;28521:12:0::1;28529:4;28521:12;::::0;;28315:226::o;28190:113::-;728:9;:7;:9::i;:::-;720:18;;;;;;-1:-1:-1;;;;;28270:14:0;;;::::1;;::::0;;;:6:::1;:14;::::0;;;;:25;;-1:-1:-1;;28270:25:0::1;::::0;::::1;;::::0;;;::::1;::::0;;28190:113::o;19999:119::-;-1:-1:-1;;;;;20092:18:0;20065:7;20092:18;;;;;;;;;;;;19999:119::o;29169:240::-;728:9;:7;:9::i;:::-;720:18;;;;;;29244:1:::1;29233:8;;:12;:22;;;;-1:-1:-1::0;29250:5:0::1;::::0;::::1;;29249:6;29233:22;29225:61;;;::::0;;-1:-1:-1;;;29225:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;29297:15;29315:24;29333:4;29315:9;:24::i;:::-;29358:42;::::0;;-1:-1:-1;;;29358:42:0;;29380:10:::1;29358:42;::::0;::::1;::::0;;;;;;;;;29297;;-1:-1:-1;29365:4:0::1;::::0;29358:21:::1;::::0;:42;;;;;::::1;::::0;;;;;;;;;-1:-1:-1;29365:4:0;29358:42;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;29358:42:0;29350:51:::1;;;::::0;::::1;;749:1;29169:240::o:0;516:79::-;581:6;;;;;-1:-1:-1;;;;;581:6:0;;516:79::o;851:115::-;929:6;;891:4;;929:6;;;-1:-1:-1;;;;;929:6:0;915:10;:20;;:43;;-1:-1:-1;952:6:0;;;;;-1:-1:-1;;;;;952:6:0;939:9;:19;915:43;908:50;;851:115;:::o;18963:87::-;19035:7;19028:14;;;;;;;;-1:-1:-1;;19028:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19002:13;;19028:14;;19035:7;;19028:14;;19035:7;19028:14;;;;;;;;;;;;;;;;;;;;;;;;27758:38;;;;;;;;;;;;;;;:::o;22961:269::-;23054:4;23071:129;23080:12;:10;:12::i;:::-;23094:7;23103:96;23142:15;23103:96;;;;;;;;;;;;;;;;;:11;:25;23115:12;:10;:12::i;:::-;-1:-1:-1;;;;;23103:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;23103:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;28678:479::-;28727:5;;;;28719:33;;;;;-1:-1:-1;;;28719:33:0;;;;;;;;;;;;-1:-1:-1;;;28719:33:0;;;;;;;;;;;;;;;28778:10;28771:18;;;;:6;:18;;;;;;;;28763:48;;;;;-1:-1:-1;;;28763:48:0;;;;;;;;;;;;-1:-1:-1;;;28763:48:0;;;;;;;;;;;;;;;28832:19;28854:33;28882:4;28854:23;28868:8;;28854:9;:13;;:23;;;;:::i;:::-;:27;;:33::i;:::-;28832:55;;28906:7;:5;:7::i;:::-;-1:-1:-1;;;;;28898:25:0;:36;28924:9;28898:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28953:46:0;;;-1:-1:-1;;;28953:46:0;;28975:10;28953:46;;;;;;;;;;;;28960:4;;28953:21;;:46;;;;;;;;;;;;;;-1:-1:-1;28960:4:0;28953:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28953:46:0;28945:55;;;;;;29041:11;;29019:47;;;-1:-1:-1;;;29019:47:0;;29041:11;;;;-1:-1:-1;;;;;29041:11:0;29019:47;;;;;;;;;;;29026:4;;29019:21;;:47;;;;;;;;;;;;;;-1:-1:-1;29026:4:0;29019:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29019:47:0;29011:56;;;;;;29102:10;-1:-1:-1;;;;;29093:56:0;;29114:9;29125:23;29139:8;;29125:9;:13;;:23;;;;:::i;:::-;29093:56;;;;;;;;;;;;;;;;;;;;;;28678:479;:::o;20331:175::-;20417:4;20434:42;20444:12;:10;:12::i;:::-;20458:9;20469:6;20434:9;:42::i;20569:151::-;-1:-1:-1;;;;;20685:18:0;;;20658:7;20685:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;20569:151::o;27719:26::-;;;;;;-1:-1:-1;;;;;27719:26:0;;:::o;28549:117::-;728:9;:7;:9::i;:::-;720:18;;;;;;28606:5:::1;::::0;::::1;;28598:36;;;::::0;;-1:-1:-1;;;28598:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28598:36:0;;;;;;;;;;;;;::::1;;28645:5;:13:::0;;-1:-1:-1;;28645:13:0::1;::::0;;28549:117::o;1143:109::-;728:9;:7;:9::i;:::-;720:18;;;;;;1216:28:::1;1235:8;1216:18;:28::i;6054:181::-:0;6112:7;6144:5;;;6168:6;;;;6160:46;;;;;-1:-1:-1;;;6160:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6226:1;6054:181;-1:-1:-1;;;6054:181:0:o;2143:106::-;2231:10;2143:106;:::o;26108:346::-;-1:-1:-1;;;;;26210:19:0;;26202:68;;;;-1:-1:-1;;;26202:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26289:21:0;;26281:68;;;;-1:-1:-1;;;26281:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26362:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;26414:32;;;;;;;;;;;;;;;;;26108:346;;;:::o;23720:539::-;-1:-1:-1;;;;;23826:20:0;;23818:70;;;;-1:-1:-1;;;23818:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23907:23:0;;23899:71;;;;-1:-1:-1;;;23899:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23983:47;24004:6;24012:9;24023:6;23983:20;:47::i;:::-;24063:71;24085:6;24063:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24063:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;24043:17:0;;;:9;:17;;;;;;;;;;;:91;;;;24168:20;;;;;;;:32;;24193:6;24168:24;:32::i;:::-;-1:-1:-1;;;;;24145:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;24216:35;;;;;;;24145:20;;24216:35;;;;;;;;;;;;;23720:539;;;:::o;6957:192::-;7043:7;7079:12;7071:6;;;;7063:29;;;;-1:-1:-1;;;7063:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7115:5:0;;;6957:192::o;8355:132::-;8413:7;8440:39;8444:1;8447;8440:39;;;;;;;;;;;;;;;;;:3;:39::i;7408:471::-;7466:7;7711:6;7707:47;;-1:-1:-1;7741:1:0;7734:8;;7707:47;7778:5;;;7782:1;7778;:5;:1;7802:5;;;;;:10;7794:56;;;;-1:-1:-1;;;7794:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1402:187;-1:-1:-1;;;;;1476:22:0;;1468:31;;;;;;1536:6;;1515:38;;-1:-1:-1;;;;;1515:38:0;;;;1536:6;;;;;1515:38;;;;;1564:6;:17;;-1:-1:-1;;;;;1564:17:0;;;;;-1:-1:-1;;;;;;1564:17:0;;;;;;;;;1402:187::o;27479:92::-;;;;:::o;8983:278::-;9069:7;9104:12;9097:5;9089:28;;;;-1:-1:-1;;;9089:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9128:9;9144:1;9140;:5;;;;;;;8983:278;-1:-1:-1;;;;;8983:278:0:o

Swarm Source

ipfs://cca329b6bebb6b417b904540b2eeceb64a563d12780498b5f69aea44b918a04b
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.