Token Crosschain IOTX

 

Overview ERC-20

Price
$0.00 @ 0.000000 MATIC
Fully Diluted Market Cap
Total Supply:
19,569,790.866762 CIOTX

Holders:
588 addresses

Transfers:
-

Contract:
0x300211def2a644b036a9bdd3e58159bb2074d3880x300211Def2a644b036A9bdd3e58159bb2074d388

Decimals:
18

Social Profiles:
Not Available, Update ?

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CrosschainERC20

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-08-15
*/

// File: @openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        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);
            }
        }
    }
}

// File: @openzeppelin/contracts/utils/Context.sol

pragma solidity >=0.6.0 <0.8.0;

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity >=0.6.0 <0.8.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity >=0.6.0 <0.8.0;

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

pragma solidity >=0.6.0 <0.8.0;




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

    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_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 virtual returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 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 virtual {
        _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 { }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20Burnable.sol

pragma solidity >=0.6.0 <0.8.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    using SafeMath for uint256;

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

// File: contracts/CrosschainERC20.sol

pragma solidity 0.7.6;



contract CrosschainERC20 is ERC20Burnable {
    using SafeERC20 for ERC20;

    event MinterSet(address indexed minter);

    modifier onlyMinter() {
        require(minter == msg.sender, "not the minter");
        _;
    }

    ERC20 public coToken;
    address public minter;

    constructor(
        ERC20 _coToken,
        address _minter,
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) public ERC20(_name, _symbol) {
        coToken = _coToken;
        minter = _minter;
        _setupDecimals(_decimals);
        emit MinterSet(_minter);
    }

    function transferMintership(address _newMinter) public onlyMinter {
        minter = _newMinter;
        emit MinterSet(_newMinter);
    }

    function deposit(uint256 _amount) public {
        depositTo(msg.sender, _amount);
    }

    function depositTo(address _to, uint256 _amount) public {
        require(address(coToken) != address(0), "no co-token");
        coToken.safeTransferFrom(msg.sender, address(this), _amount);
        _mint(_to, _amount);
    }

    function withdraw(uint256 _amount) public {
        withdrawTo(msg.sender, _amount);
    }

    function withdrawTo(address _to, uint256 _amount) public {
        require(address(coToken) != address(0), "no co-token");
        require(_amount != 0, "amount is 0");
        _burn(msg.sender, _amount);
        coToken.safeTransfer(_to, _amount);
    }

    function mint(address _to, uint256 _amount) public onlyMinter returns (bool) {
        require(_amount != 0, "amount is 0");
        _mint(_to, _amount);
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ERC20","name":"_coToken","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"}],"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":"minter","type":"address"}],"name":"MinterSet","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"coToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"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":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositTo","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","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":"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":"_newMinter","type":"address"}],"name":"transferMintership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200186338038062001863833981810160405260a08110156200003757600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006357600080fd5b9083019060208201858111156200007957600080fd5b82516401000000008111828201881017156200009457600080fd5b82525081516020918201929091019080838360005b83811015620000c3578181015183820152602001620000a9565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b9083019060208201858111156200012b57600080fd5b82516401000000008111828201881017156200014657600080fd5b82525081516020918201929091019080838360005b83811015620001755781810151838201526020016200015b565b50505050905090810190601f168015620001a35780820380516001836020036101000a031916815260200191505b5060405260209081015185519093508592508491620001c89160039185019062000289565b508051620001de90600490602084019062000289565b505060058054601260ff1990911617610100600160a81b0319166101006001600160a01b038981169190910291909117909155600680546001600160a01b03191691871691909117905550620002348162000273565b6040516001600160a01b038516907f726b590ef91a8c76ad05bbe91a57ef84605276528f49cd47d787f558a4e755b690600090a2505050505062000335565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620002c157600085556200030c565b82601f10620002dc57805160ff19168380011785556200030c565b828001600101855582156200030c579182015b828111156200030c578251825591602001919060010190620002ef565b506200031a9291506200031e565b5090565b5b808211156200031a57600081556001016200031f565b61151e80620003456000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806342966c68116100b8578063a457c2d71161007c578063a457c2d7146103ad578063a9059cbb146103d9578063b6b55f2514610405578063cf86a95a14610422578063dd62ed3e14610448578063ffaad6a51461047657610137565b806342966c681461032e57806370a082311461034b57806379cc6790146103715780637f9864f71461039d57806395d89b41146103a557610137565b806323b872dd116100ff57806323b872dd146102655780632e1a7d4d1461029b578063313ce567146102b857806339509351146102d657806340c10f191461030257610137565b806306fdde031461013c57806307546172146101b9578063095ea7b3146101dd57806318160ddd1461021d578063205c287814610237575b600080fd5b6101446104a2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017e578181015183820152602001610166565b50505050905090810190601f1680156101ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c1610538565b604080516001600160a01b039092168252519081900360200190f35b610209600480360360408110156101f357600080fd5b506001600160a01b038135169060200135610547565b604080519115158252519081900360200190f35b610225610564565b60408051918252519081900360200190f35b6102636004803603604081101561024d57600080fd5b506001600160a01b03813516906020013561056a565b005b6102096004803603606081101561027b57600080fd5b506001600160a01b03813581169160208101359091169060400135610624565b610263600480360360208110156102b157600080fd5b50356106ac565b6102c06106b9565b6040805160ff9092168252519081900360200190f35b610209600480360360408110156102ec57600080fd5b506001600160a01b0381351690602001356106c2565b6102096004803603604081101561031857600080fd5b506001600160a01b038135169060200135610710565b6102636004803603602081101561034457600080fd5b50356107ad565b6102256004803603602081101561036157600080fd5b50356001600160a01b03166107be565b6102636004803603604081101561038757600080fd5b506001600160a01b0381351690602001356107d9565b6101c1610833565b610144610847565b610209600480360360408110156103c357600080fd5b506001600160a01b0381351690602001356108a8565b610209600480360360408110156103ef57600080fd5b506001600160a01b038135169060200135610910565b6102636004803603602081101561041b57600080fd5b5035610924565b6102636004803603602081101561043857600080fd5b50356001600160a01b031661092e565b6102256004803603604081101561045e57600080fd5b506001600160a01b03813581169160200135166109c8565b6102636004803603604081101561048c57600080fd5b506001600160a01b0381351690602001356109f3565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561052e5780601f106105035761010080835404028352916020019161052e565b820191906000526020600020905b81548152906001019060200180831161051157829003601f168201915b5050505050905090565b6006546001600160a01b031681565b600061055b610554610a6a565b8484610a6e565b50600192915050565b60025490565b60055461010090046001600160a01b03166105ba576040805162461bcd60e51b815260206004820152600b60248201526a37379031b796ba37b5b2b760a91b604482015290519081900360640190fd5b806105fa576040805162461bcd60e51b815260206004820152600b60248201526a0616d6f756e7420697320360ac1b604482015290519081900360640190fd5b6106043382610b5a565b6005546106209061010090046001600160a01b03168383610c56565b5050565b6000610631848484610ca8565b6106a18461063d610a6a565b61069c856040518060600160405280602881526020016113e4602891396001600160a01b038a1660009081526001602052604081209061067b610a6a565b6001600160a01b031681526020810191909152604001600020549190610e03565b610a6e565b5060015b9392505050565b6106b6338261056a565b50565b60055460ff1690565b600061055b6106cf610a6a565b8461069c85600160006106e0610a6a565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610e9a565b6006546000906001600160a01b03163314610763576040805162461bcd60e51b815260206004820152600e60248201526d3737ba103a34329036b4b73a32b960911b604482015290519081900360640190fd5b816107a3576040805162461bcd60e51b815260206004820152600b60248201526a0616d6f756e7420697320360ac1b604482015290519081900360640190fd5b61055b8383610ef4565b6106b66107b8610a6a565b82610b5a565b6001600160a01b031660009081526020819052604090205490565b60006108108260405180606001604052806024815260200161140c6024913961080986610804610a6a565b6109c8565b9190610e03565b90506108248361081e610a6a565b83610a6e565b61082e8383610b5a565b505050565b60055461010090046001600160a01b031681565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561052e5780601f106105035761010080835404028352916020019161052e565b600061055b6108b5610a6a565b8461069c856040518060600160405280602581526020016114c460259139600160006108df610a6a565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e03565b600061055b61091d610a6a565b8484610ca8565b6106b633826109f3565b6006546001600160a01b0316331461097e576040805162461bcd60e51b815260206004820152600e60248201526d3737ba103a34329036b4b73a32b960911b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0383169081179091556040517f726b590ef91a8c76ad05bbe91a57ef84605276528f49cd47d787f558a4e755b690600090a250565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60055461010090046001600160a01b0316610a43576040805162461bcd60e51b815260206004820152600b60248201526a37379031b796ba37b5b2b760a91b604482015290519081900360640190fd5b600554610a609061010090046001600160a01b0316333084610fe4565b6106208282610ef4565b3390565b6001600160a01b038316610ab35760405162461bcd60e51b81526004018080602001828103825260248152602001806114766024913960400191505060405180910390fd5b6001600160a01b038216610af85760405162461bcd60e51b81526004018080602001828103825260228152602001806113766022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038216610b9f5760405162461bcd60e51b81526004018080602001828103825260218152602001806114306021913960400191505060405180910390fd5b610bab8260008361082e565b610be881604051806060016040528060228152602001611354602291396001600160a01b0385166000908152602081905260409020549190610e03565b6001600160a01b038316600090815260208190526040902055600254610c0e9082611044565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261082e9084906110a1565b6001600160a01b038316610ced5760405162461bcd60e51b81526004018080602001828103825260258152602001806114516025913960400191505060405180910390fd5b6001600160a01b038216610d325760405162461bcd60e51b81526004018080602001828103825260238152602001806113316023913960400191505060405180910390fd5b610d3d83838361082e565b610d7a81604051806060016040528060268152602001611398602691396001600160a01b0386166000908152602081905260409020549190610e03565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610da99082610e9a565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610e925760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e57578181015183820152602001610e3f565b50505050905090810190601f168015610e845780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156106a5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216610f4f576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b610f5b6000838361082e565b600254610f689082610e9a565b6002556001600160a01b038216600090815260208190526040902054610f8e9082610e9a565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261103e9085906110a1565b50505050565b60008282111561109b576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006110f6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111529092919063ffffffff16565b80519091501561082e5780806020019051602081101561111557600080fd5b505161082e5760405162461bcd60e51b815260040180806020018281038252602a81526020018061149a602a913960400191505060405180910390fd5b60606111618484600085611169565b949350505050565b6060824710156111aa5760405162461bcd60e51b81526004018080602001828103825260268152602001806113be6026913960400191505060405180910390fd5b6111b3856112c4565b611204576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106112425780518252601f199092019160209182019101611223565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146112a4576040519150601f19603f3d011682016040523d82523d6000602084013e6112a9565b606091505b50915091506112b98282866112ca565b979650505050505050565b3b151590565b606083156112d95750816106a5565b8251156112e95782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610e57578181015183820152602001610e3f56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220030a0d4dd5e87963342d6347fbfe2bf2a6d3a4e4805770e77c6dba2c8cdf696c64736f6c63430007060033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012af43ef94b05a0a3447a05eee629c7d88a30a5f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000f43726f7373636861696e20494f54580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000543494f5458000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012af43ef94b05a0a3447a05eee629c7d88a30a5f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000f43726f7373636861696e20494f54580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000543494f5458000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _coToken (address): 0x0000000000000000000000000000000000000000
Arg [1] : _minter (address): 0x12af43ef94b05a0a3447a05eee629c7d88a30a5f
Arg [2] : _name (string): Crosschain IOTX
Arg [3] : _symbol (string): CIOTX
Arg [4] : _decimals (uint8): 18

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 00000000000000000000000012af43ef94b05a0a3447a05eee629c7d88a30a5f
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [6] : 43726f7373636861696e20494f54580000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 43494f5458000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

35392:1664:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25216:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35658:21;;;:::i;:::-;;;;-1:-1:-1;;;;;35658:21:0;;;;;;;;;;;;;;27362:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27362:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;26315:108;;;:::i;:::-;;;;;;;;;;;;;;;;36602:259;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;36602:259:0;;;;;;;;:::i;:::-;;28013:321;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28013:321:0;;;;;;;;;;;;;;;;;:::i;36502:92::-;;;;;;;;;;;;;;;;-1:-1:-1;36502:92:0;;:::i;26159:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28743:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28743:218:0;;;;;;;;:::i;36869:184::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;36869:184:0;;;;;;;;:::i;34608:91::-;;;;;;;;;;;;;;;;-1:-1:-1;34608:91:0;;:::i;26486:127::-;;;;;;;;;;;;;;;;-1:-1:-1;26486:127:0;-1:-1:-1;;;;;26486:127:0;;:::i;35018:295::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;35018:295:0;;;;;;;;:::i;35631:20::-;;;:::i;25426:95::-;;;:::i;29464:269::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29464:269:0;;;;;;;;:::i;26826:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26826:175:0;;;;;;;;:::i;36166:90::-;;;;;;;;;;;;;;;;-1:-1:-1;36166:90:0;;:::i;36017:141::-;;;;;;;;;;;;;;;;-1:-1:-1;36017:141:0;-1:-1:-1;;;;;36017:141:0;;:::i;27064:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27064:151:0;;;;;;;;;;:::i;36264:230::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;36264:230:0;;;;;;;;:::i;25216:91::-;25294:5;25287:12;;;;;;;;-1:-1:-1;;25287:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25261:13;;25287:12;;25294:5;;25287:12;;25294:5;25287:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25216:91;:::o;35658:21::-;;;-1:-1:-1;;;;;35658:21:0;;:::o;27362:169::-;27445:4;27462:39;27471:12;:10;:12::i;:::-;27485:7;27494:6;27462:8;:39::i;:::-;-1:-1:-1;27519:4:0;27362:169;;;;:::o;26315:108::-;26403:12;;26315:108;:::o;36602:259::-;36686:7;;;;;-1:-1:-1;;;;;36686:7:0;36670:54;;;;;-1:-1:-1;;;36670:54:0;;;;;;;;;;;;-1:-1:-1;;;36670:54:0;;;;;;;;;;;;;;;36743:12;36735:36;;;;;-1:-1:-1;;;36735:36:0;;;;;;;;;;;;-1:-1:-1;;;36735:36:0;;;;;;;;;;;;;;;36782:26;36788:10;36800:7;36782:5;:26::i;:::-;36819:7;;:34;;:7;;;-1:-1:-1;;;;;36819:7:0;36840:3;36845:7;36819:20;:34::i;:::-;36602:259;;:::o;28013:321::-;28119:4;28136:36;28146:6;28154:9;28165:6;28136:9;:36::i;:::-;28183:121;28192:6;28200:12;:10;:12::i;:::-;28214:89;28252:6;28214:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28214:19:0;;;;;;:11;:19;;;;;;28234:12;:10;:12::i;:::-;-1:-1:-1;;;;;28214:33:0;;;;;;;;;;;;-1:-1:-1;28214:33:0;;;:89;:37;:89::i;:::-;28183:8;:121::i;:::-;-1:-1:-1;28322:4:0;28013:321;;;;;;:::o;36502:92::-;36555:31;36566:10;36578:7;36555:10;:31::i;:::-;36502:92;:::o;26159:91::-;26233:9;;;;26159:91;:::o;28743:218::-;28831:4;28848:83;28857:12;:10;:12::i;:::-;28871:7;28880:50;28919:10;28880:11;:25;28892:12;:10;:12::i;:::-;-1:-1:-1;;;;;28880:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;28880:25:0;;;:34;;;;;;;;;;;:38;:50::i;36869:184::-;35564:6;;36940:4;;-1:-1:-1;;;;;35564:6:0;35574:10;35564:20;35556:47;;;;;-1:-1:-1;;;35556:47:0;;;;;;;;;;;;-1:-1:-1;;;35556:47:0;;;;;;;;;;;;;;;36965:12;36957:36:::1;;;::::0;;-1:-1:-1;;;36957:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;36957:36:0;;;;;;;;;;;;;::::1;;37004:19;37010:3;37015:7;37004:5;:19::i;34608:91::-:0;34664:27;34670:12;:10;:12::i;:::-;34684:6;34664:5;:27::i;26486:127::-;-1:-1:-1;;;;;26587:18:0;26560:7;26587:18;;;;;;;;;;;;26486:127::o;35018:295::-;35095:26;35124:84;35161:6;35124:84;;;;;;;;;;;;;;;;;:32;35134:7;35143:12;:10;:12::i;:::-;35124:9;:32::i;:::-;:36;:84;:36;:84::i;:::-;35095:113;;35221:51;35230:7;35239:12;:10;:12::i;:::-;35253:18;35221:8;:51::i;:::-;35283:22;35289:7;35298:6;35283:5;:22::i;:::-;35018:295;;;:::o;35631:20::-;;;;;;-1:-1:-1;;;;;35631:20:0;;:::o;25426:95::-;25506:7;25499:14;;;;;;;;-1:-1:-1;;25499:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25473:13;;25499:14;;25506:7;;25499:14;;25506:7;25499:14;;;;;;;;;;;;;;;;;;;;;;;;29464:269;29557:4;29574:129;29583:12;:10;:12::i;:::-;29597:7;29606:96;29645:15;29606:96;;;;;;;;;;;;;;;;;:11;:25;29618:12;:10;:12::i;:::-;-1:-1:-1;;;;;29606:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;29606:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;26826:175::-;26912:4;26929:42;26939:12;:10;:12::i;:::-;26953:9;26964:6;26929:9;:42::i;36166:90::-;36218:30;36228:10;36240:7;36218:9;:30::i;36017:141::-;35564:6;;-1:-1:-1;;;;;35564:6:0;35574:10;35564:20;35556:47;;;;;-1:-1:-1;;;35556:47:0;;;;;;;;;;;;-1:-1:-1;;;35556:47:0;;;;;;;;;;;;;;;36094:6:::1;:19:::0;;-1:-1:-1;;;;;;36094:19:0::1;-1:-1:-1::0;;;;;36094:19:0;::::1;::::0;;::::1;::::0;;;36129:21:::1;::::0;::::1;::::0;-1:-1:-1;;36129:21:0::1;36017:141:::0;:::o;27064:151::-;-1:-1:-1;;;;;27180:18:0;;;27153:7;27180:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;27064:151::o;36264:230::-;36347:7;;;;;-1:-1:-1;;;;;36347:7:0;36331:54;;;;;-1:-1:-1;;;36331:54:0;;;;;;;;;;;;-1:-1:-1;;;36331:54:0;;;;;;;;;;;;;;;36396:7;;:60;;:7;;;-1:-1:-1;;;;;36396:7:0;36421:10;36441:4;36448:7;36396:24;:60::i;:::-;36467:19;36473:3;36478:7;36467:5;:19::i;8696:106::-;8784:10;8696:106;:::o;32611:346::-;-1:-1:-1;;;;;32713:19:0;;32705:68;;;;-1:-1:-1;;;32705:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32792:21:0;;32784:68;;;;-1:-1:-1;;;32784:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32865:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;32917:32;;;;;;;;;;;;;;;;;32611:346;;;:::o;31755:418::-;-1:-1:-1;;;;;31839:21:0;;31831:67;;;;-1:-1:-1;;;31831:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31911:49;31932:7;31949:1;31953:6;31911:20;:49::i;:::-;31994:68;32017:6;31994:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31994:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;31973:18:0;;:9;:18;;;;;;;;;;:89;32088:12;;:24;;32105:6;32088:16;:24::i;:::-;32073:12;:39;32128:37;;;;;;;;32154:1;;-1:-1:-1;;;;;32128:37:0;;;;;;;;;;;;31755:418;;:::o;9712:177::-;9822:58;;;-1:-1:-1;;;;;9822:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9822:58:0;-1:-1:-1;;;9822:58:0;;;9795:86;;9815:5;;9795:19;:86::i;30223:539::-;-1:-1:-1;;;;;30329:20:0;;30321:70;;;;-1:-1:-1;;;30321:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30410:23:0;;30402:71;;;;-1:-1:-1;;;30402:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30486:47;30507:6;30515:9;30526:6;30486:20;:47::i;:::-;30566:71;30588:6;30566:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30566:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;30546:17:0;;;:9;:17;;;;;;;;;;;:91;;;;30671:20;;;;;;;:32;;30696:6;30671:24;:32::i;:::-;-1:-1:-1;;;;;30648:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;30719:35;;;;;;;30648:20;;30719:35;;;;;;;;;;;;;30223:539;;;:::o;18405:166::-;18491:7;18527:12;18519:6;;;;18511:29;;;;-1:-1:-1;;;18511:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;18558:5:0;;;18405:166::o;15578:179::-;15636:7;15668:5;;;15692:6;;;;15684:46;;;;;-1:-1:-1;;;15684:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;31044:378;-1:-1:-1;;;;;31128:21:0;;31120:65;;;;;-1:-1:-1;;;31120:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31198:49;31227:1;31231:7;31240:6;31198:20;:49::i;:::-;31275:12;;:24;;31292:6;31275:16;:24::i;:::-;31260:12;:39;-1:-1:-1;;;;;31331:18:0;;:9;:18;;;;;;;;;;;:30;;31354:6;31331:22;:30::i;:::-;-1:-1:-1;;;;;31310:18:0;;:9;:18;;;;;;;;;;;:51;;;;31377:37;;;;;;;31310:18;;:9;;31377:37;;;;;;;;;;31044:378;;:::o;9897:205::-;10025:68;;;-1:-1:-1;;;;;10025:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;10025:68:0;-1:-1:-1;;;10025:68:0;;;9998:96;;10018:5;;9998:19;:96::i;:::-;9897:205;;;;:::o;16040:158::-;16098:7;16131:1;16126;:6;;16118:49;;;;;-1:-1:-1;;;16118:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16185:5:0;;;16040:158::o;12017:761::-;12441:23;12467:69;12495:4;12467:69;;;;;;;;;;;;;;;;;12475:5;-1:-1:-1;;;;;12467:27:0;;;:69;;;;;:::i;:::-;12551:17;;12441:95;;-1:-1:-1;12551:21:0;12547:224;;12693:10;12682:30;;;;;;;;;;;;;;;-1:-1:-1;12682:30:0;12674:85;;;;-1:-1:-1;;;12674:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3723:195;3826:12;3858:52;3880:6;3888:4;3894:1;3897:12;3858:21;:52::i;:::-;3851:59;3723:195;-1:-1:-1;;;;3723:195:0:o;4775:530::-;4902:12;4960:5;4935:21;:30;;4927:81;;;;-1:-1:-1;;;4927:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5027:18;5038:6;5027:10;:18::i;:::-;5019:60;;;;;-1:-1:-1;;;5019:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5153:12;5167:23;5194:6;-1:-1:-1;;;;;5194:11:0;5214:5;5222:4;5194:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5194:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5152:75;;;;5245:52;5263:7;5272:10;5284:12;5245:17;:52::i;:::-;5238:59;4775:530;-1:-1:-1;;;;;;;4775:530:0:o;805:422::-;1172:20;1211:8;;;805:422::o;7315:742::-;7430:12;7459:7;7455:595;;;-1:-1:-1;7490:10:0;7483:17;;7455:595;7604:17;;:21;7600:439;;7867:10;7861:17;7928:15;7915:10;7911:2;7907:19;7900:44;7815:148;8003:20;;-1:-1:-1;;;8003:20:0;;;;;;;;;;;;;;;;;8010:12;;8003:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://030a0d4dd5e87963342d6347fbfe2bf2a6d3a4e4805770e77c6dba2c8cdf696c
Loading