ETH Price: $3,199.77 (-0.52%)

Contract

0x3BA5cB0C136D2bb99C3FcFe49A5aDF2970BE127d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve208402812024-09-27 6:51:23110 days ago1727419883IN
0x3BA5cB0C...970BE127d
0 ETH0.0003233913.28278456
Approve203946682024-07-27 1:41:47172 days ago1722044507IN
0x3BA5cB0C...970BE127d
0 ETH0.000031181.28091986
Approve203946682024-07-27 1:41:47172 days ago1722044507IN
0x3BA5cB0C...970BE127d
0 ETH0.000031181.28091986
Approve203946632024-07-27 1:40:47172 days ago1722044447IN
0x3BA5cB0C...970BE127d
0 ETH0.000028731.18003598
Approve203946632024-07-27 1:40:47172 days ago1722044447IN
0x3BA5cB0C...970BE127d
0 ETH0.000028731.18003598
Approve203546662024-07-21 11:38:47178 days ago1721561927IN
0x3BA5cB0C...970BE127d
0 ETH0.000067552.77483982
Approve199629112024-05-27 18:11:23232 days ago1716833483IN
0x3BA5cB0C...970BE127d
0 ETH0.0004812419.76619302
Approve199629082024-05-27 18:10:47232 days ago1716833447IN
0x3BA5cB0C...970BE127d
0 ETH0.000413616.98772087
Approve197272672024-04-24 19:18:59265 days ago1713986339IN
0x3BA5cB0C...970BE127d
0 ETH0.0003236313.29265553
Approve197272672024-04-24 19:18:59265 days ago1713986339IN
0x3BA5cB0C...970BE127d
0 ETH0.0003236313.29265553
Approve194972752024-03-23 12:23:35297 days ago1711196615IN
0x3BA5cB0C...970BE127d
0 ETH0.0005588322.95285998
Approve194972742024-03-23 12:23:23297 days ago1711196603IN
0x3BA5cB0C...970BE127d
0 ETH0.0005064820.80270748
Approve194876042024-03-22 3:51:23299 days ago1711079483IN
0x3BA5cB0C...970BE127d
0 ETH0.0005311421.81579238
Approve190487662024-01-20 14:46:47360 days ago1705762007IN
0x3BA5cB0C...970BE127d
0 ETH0.0004946920.31842558
Approve189395152024-01-05 7:11:47376 days ago1704438707IN
0x3BA5cB0C...970BE127d
0 ETH0.0003663715.04790048
Approve189395152024-01-05 7:11:47376 days ago1704438707IN
0x3BA5cB0C...970BE127d
0 ETH0.0003663715.04790048
Approve189395132024-01-05 7:11:23376 days ago1704438683IN
0x3BA5cB0C...970BE127d
0 ETH0.0003661115.03730936
Approve189165052024-01-02 1:42:23379 days ago1704159743IN
0x3BA5cB0C...970BE127d
0 ETH0.0003827315.71995284
Approve188279902023-12-20 15:23:23391 days ago1703085803IN
0x3BA5cB0C...970BE127d
0 ETH0.0015305562.86429099
Approve188032322023-12-17 3:59:47395 days ago1702785587IN
0x3BA5cB0C...970BE127d
0 ETH0.0006680127.43733994
Approve188016092023-12-16 22:32:11395 days ago1702765931IN
0x3BA5cB0C...970BE127d
0 ETH0.0010417842.78924785
Approve187999652023-12-16 16:59:35395 days ago1702745975IN
0x3BA5cB0C...970BE127d
0 ETH0.0013154354.02868781
Approve187208942023-12-05 14:59:59406 days ago1701788399IN
0x3BA5cB0C...970BE127d
0 ETH0.0015840565.0617748
Approve187208922023-12-05 14:59:35406 days ago1701788375IN
0x3BA5cB0C...970BE127d
0 ETH0.0016300466.95072197
Approve186480192023-11-25 10:09:11417 days ago1700906951IN
0x3BA5cB0C...970BE127d
0 ETH0.0004980720.45721529
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CosmicToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-11-06
*/

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



pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            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) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

    /**
     * @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 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) {
        return a * b;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.3.2 (utils/Context.sol)

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.3.2 (token/ERC20/IERC20.sol)

pragma solidity ^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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.3.2 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts v4.3.2 (token/ERC20/ERC20.sol)

pragma solidity ^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 Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        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] + 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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(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:
     *
     * - `account` 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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 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 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: Artifacts/cosmicToken.sol

pragma solidity 0.8.7;



/// SPDX-License-Identifier: UNLICENSED

interface IDuck {
	function balanceOG(address _user) external view returns(uint256);
}

contract CosmicToken is ERC20("CosmicUtilityToken", "CUT") 
{
   
    using SafeMath for uint256;
   
    uint256 public totalTokensBurned = 0;
    address[] internal stakeholders;
    address  payable private owner;
    

    //token Genesis per day
    uint256 constant public GENESIS_RATE = 20 ether; 
    
    //token duck per day
    uint256 constant public DUCK_RATE = 5 ether; 
    
    //token for  genesis minting
	uint256 constant public GENESIS_ISSUANCE = 280 ether;
	
	//token for duck minting
	uint256 constant public DUCK_ISSUANCE = 70 ether;
	
	
	
	// Tue Mar 18 2031 17:46:47 GMT+0000
	uint256 constant public END = 1931622407;

	mapping(address => uint256) public rewards;
	mapping(address => uint256) public lastUpdate;
	
	
    IDuck public ducksContract;
   
    constructor(address initDuckContract) 
    {
        owner = payable(msg.sender);
        ducksContract = IDuck(initDuckContract);
    }
   

    function WhoOwns() public view returns (address) {
        return owner;
    }
   
    modifier Owned {
         require(msg.sender == owner);
         _;
 }
   
    function getContractAddress() public view returns (address) {
        return address(this);
    }

	function min(uint256 a, uint256 b) internal pure returns (uint256) {
		return a < b ? a : b;
	}    
	
	modifier contractAddressOnly
    {
         require(msg.sender == address(ducksContract));
         _;
    }
    
   	// called when minting many NFTs
	function updateRewardOnMint(address _user, uint256 _tokenId) external contractAddressOnly
	{
	    if(_tokenId <= 1000)
		{
            _mint(_user,GENESIS_ISSUANCE);	  	        
		}
		else if(_tokenId >= 1001)
		{
            _mint(_user,DUCK_ISSUANCE);	  	        	        
		}
	}
	

	function getReward(address _to, uint256 totalPayout) external contractAddressOnly
	{
		_mint(_to, (totalPayout * 10 ** 18));
		
	}
	
	function burn(address _from, uint256 _amount) external 
	{
	    require(msg.sender == _from, "You do not own these tokens");
		_burn(_from, _amount);
		totalTokensBurned += _amount;
	}


  
   
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"initDuckContract","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DUCK_ISSUANCE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DUCK_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GENESIS_ISSUANCE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GENESIS_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WhoOwns","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":[],"name":"ducksContract","outputs":[{"internalType":"contract IDuck","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"totalPayout","type":"uint256"}],"name":"getReward","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":"","type":"address"}],"name":"lastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"totalTokensBurned","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":"_user","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"updateRewardOnMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006005553480156200001657600080fd5b506040516200100f3803806200100f83398101604081905262000039916200018c565b6040518060400160405280601281526020017121b7b9b6b4b1aaba34b634ba3caa37b5b2b760711b8152506040518060400160405280600381526020016210d55560ea1b815250816003908051906020019062000098929190620000e6565b508051620000ae906004906020840190620000e6565b505060078054336001600160a01b031991821617909155600a80549091166001600160a01b03939093169290921790915550620001fb565b828054620000f490620001be565b90600052602060002090601f01602090048101928262000118576000855562000163565b82601f106200013357805160ff191683800117855562000163565b8280016001018555821562000163579182015b828111156200016357825182559160200191906001019062000146565b506200017192915062000175565b5090565b5b8082111562000171576000815560010162000176565b6000602082840312156200019f57600080fd5b81516001600160a01b0381168114620001b757600080fd5b9392505050565b600181811c90821680620001d357607f821691505b60208210811415620001f557634e487b7160e01b600052602260045260246000fd5b50919050565b610e04806200020b6000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806395d89b41116100de578063cb03fb1e11610097578063d4f8b73311610071578063d4f8b73314610339578063dd62ed3e14610349578063efe7a50414610382578063f474c8ce1461038d57600080fd5b8063cb03fb1e146102fd578063cc240c011461031d578063d157e3011461033057600080fd5b806395d89b411461029a5780639b10ac76146102a25780639dc29fac146102b2578063a457c2d7146102c7578063a9059cbb146102da578063ae9c36ab146102ed57600080fd5b806323b872dd1161013057806323b872dd14610225578063313ce5671461023857806332a2c5d01461024757806335de7cb01461024d578063395093511461025e57806370a082311461027157600080fd5b80630245fcef1461017857806306fdde031461019a5780630700037d146101af578063095ea7b3146101cf57806318160ddd146101f2578063224e78ac146101fa575b600080fd5b610187674563918244f4000081565b6040519081526020015b60405180910390f35b6101a26103a0565b6040516101919190610cda565b6101876101bd366004610c1f565b60086020526000908152604090205481565b6101e26101dd366004610cb0565b610432565b6040519015158152602001610191565b600254610187565b600a5461020d906001600160a01b031681565b6040516001600160a01b039091168152602001610191565b6101e2610233366004610c74565b610448565b60405160128152602001610191565b3061020d565b6007546001600160a01b031661020d565b6101e261026c366004610cb0565b6104f7565b61018761027f366004610c1f565b6001600160a01b031660009081526020819052604090205490565b6101a2610533565b6101876803cb71f51fc558000081565b6102c56102c0366004610cb0565b610542565b005b6101e26102d5366004610cb0565b6105bf565b6101e26102e8366004610cb0565b610658565b6101876801158e460913d0000081565b61018761030b366004610c1f565b60096020526000908152604090205481565b6102c561032b366004610cb0565b610665565b61018760055481565b610187680f2dc7d47f1560000081565b610187610357366004610c41565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610187637322380781565b6102c561039b366004610cb0565b6106b8565b6060600380546103af90610d7d565b80601f01602080910402602001604051908101604052809291908181526020018280546103db90610d7d565b80156104285780601f106103fd57610100808354040283529160200191610428565b820191906000526020600020905b81548152906001019060200180831161040b57829003601f168201915b5050505050905090565b600061043f3384846106ea565b50600192915050565b600061045584848461080f565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104df5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104ec85338584036106ea565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161043f91859061052e908690610d2f565b6106ea565b6060600480546103af90610d7d565b336001600160a01b0383161461059a5760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f206e6f74206f776e20746865736520746f6b656e73000000000060448201526064016104d6565b6105a482826109de565b80600560008282546105b69190610d2f565b90915550505050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156106415760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104d6565b61064e33858584036106ea565b5060019392505050565b600061043f33848461080f565b600a546001600160a01b0316331461067c57600080fd5b6103e8811161069c5761069882680f2dc7d47f15600000610b24565b5050565b6103e9811061069857610698826803cb71f51fc5580000610b24565b600a546001600160a01b031633146106cf57600080fd5b610698826106e583670de0b6b3a7640000610d47565b610b24565b6001600160a01b03831661074c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104d6565b6001600160a01b0382166107ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104d6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166108735760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104d6565b6001600160a01b0382166108d55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104d6565b6001600160a01b0383166000908152602081905260409020548181101561094d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104d6565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610984908490610d2f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516109d091815260200190565b60405180910390a350505050565b6001600160a01b038216610a3e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104d6565b6001600160a01b03821660009081526020819052604090205481811015610ab25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104d6565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610ae1908490610d66565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610802565b6001600160a01b038216610b7a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104d6565b8060026000828254610b8c9190610d2f565b90915550506001600160a01b03821660009081526020819052604081208054839290610bb9908490610d2f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b80356001600160a01b0381168114610c1a57600080fd5b919050565b600060208284031215610c3157600080fd5b610c3a82610c03565b9392505050565b60008060408385031215610c5457600080fd5b610c5d83610c03565b9150610c6b60208401610c03565b90509250929050565b600080600060608486031215610c8957600080fd5b610c9284610c03565b9250610ca060208501610c03565b9150604084013590509250925092565b60008060408385031215610cc357600080fd5b610ccc83610c03565b946020939093013593505050565b600060208083528351808285015260005b81811015610d0757858101830151858201604001528201610ceb565b81811115610d19576000604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610d4257610d42610db8565b500190565b6000816000190483118215151615610d6157610d61610db8565b500290565b600082821015610d7857610d78610db8565b500390565b600181811c90821680610d9157607f821691505b60208210811415610db257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212202f0eb00b97a05974dfd4d79e84f8b36edc5af216cc78607ad945624a3803159e64736f6c6343000807003300000000000000000000000096316355c44be69414756d6706c61e61aecbd5f3

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c806395d89b41116100de578063cb03fb1e11610097578063d4f8b73311610071578063d4f8b73314610339578063dd62ed3e14610349578063efe7a50414610382578063f474c8ce1461038d57600080fd5b8063cb03fb1e146102fd578063cc240c011461031d578063d157e3011461033057600080fd5b806395d89b411461029a5780639b10ac76146102a25780639dc29fac146102b2578063a457c2d7146102c7578063a9059cbb146102da578063ae9c36ab146102ed57600080fd5b806323b872dd1161013057806323b872dd14610225578063313ce5671461023857806332a2c5d01461024757806335de7cb01461024d578063395093511461025e57806370a082311461027157600080fd5b80630245fcef1461017857806306fdde031461019a5780630700037d146101af578063095ea7b3146101cf57806318160ddd146101f2578063224e78ac146101fa575b600080fd5b610187674563918244f4000081565b6040519081526020015b60405180910390f35b6101a26103a0565b6040516101919190610cda565b6101876101bd366004610c1f565b60086020526000908152604090205481565b6101e26101dd366004610cb0565b610432565b6040519015158152602001610191565b600254610187565b600a5461020d906001600160a01b031681565b6040516001600160a01b039091168152602001610191565b6101e2610233366004610c74565b610448565b60405160128152602001610191565b3061020d565b6007546001600160a01b031661020d565b6101e261026c366004610cb0565b6104f7565b61018761027f366004610c1f565b6001600160a01b031660009081526020819052604090205490565b6101a2610533565b6101876803cb71f51fc558000081565b6102c56102c0366004610cb0565b610542565b005b6101e26102d5366004610cb0565b6105bf565b6101e26102e8366004610cb0565b610658565b6101876801158e460913d0000081565b61018761030b366004610c1f565b60096020526000908152604090205481565b6102c561032b366004610cb0565b610665565b61018760055481565b610187680f2dc7d47f1560000081565b610187610357366004610c41565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610187637322380781565b6102c561039b366004610cb0565b6106b8565b6060600380546103af90610d7d565b80601f01602080910402602001604051908101604052809291908181526020018280546103db90610d7d565b80156104285780601f106103fd57610100808354040283529160200191610428565b820191906000526020600020905b81548152906001019060200180831161040b57829003601f168201915b5050505050905090565b600061043f3384846106ea565b50600192915050565b600061045584848461080f565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104df5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104ec85338584036106ea565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161043f91859061052e908690610d2f565b6106ea565b6060600480546103af90610d7d565b336001600160a01b0383161461059a5760405162461bcd60e51b815260206004820152601b60248201527f596f7520646f206e6f74206f776e20746865736520746f6b656e73000000000060448201526064016104d6565b6105a482826109de565b80600560008282546105b69190610d2f565b90915550505050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156106415760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104d6565b61064e33858584036106ea565b5060019392505050565b600061043f33848461080f565b600a546001600160a01b0316331461067c57600080fd5b6103e8811161069c5761069882680f2dc7d47f15600000610b24565b5050565b6103e9811061069857610698826803cb71f51fc5580000610b24565b600a546001600160a01b031633146106cf57600080fd5b610698826106e583670de0b6b3a7640000610d47565b610b24565b6001600160a01b03831661074c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104d6565b6001600160a01b0382166107ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104d6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166108735760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104d6565b6001600160a01b0382166108d55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104d6565b6001600160a01b0383166000908152602081905260409020548181101561094d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104d6565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610984908490610d2f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516109d091815260200190565b60405180910390a350505050565b6001600160a01b038216610a3e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104d6565b6001600160a01b03821660009081526020819052604090205481811015610ab25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104d6565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610ae1908490610d66565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610802565b6001600160a01b038216610b7a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104d6565b8060026000828254610b8c9190610d2f565b90915550506001600160a01b03821660009081526020819052604081208054839290610bb9908490610d2f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b80356001600160a01b0381168114610c1a57600080fd5b919050565b600060208284031215610c3157600080fd5b610c3a82610c03565b9392505050565b60008060408385031215610c5457600080fd5b610c5d83610c03565b9150610c6b60208401610c03565b90509250929050565b600080600060608486031215610c8957600080fd5b610c9284610c03565b9250610ca060208501610c03565b9150604084013590509250925092565b60008060408385031215610cc357600080fd5b610ccc83610c03565b946020939093013593505050565b600060208083528351808285015260005b81811015610d0757858101830151858201604001528201610ceb565b81811115610d19576000604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610d4257610d42610db8565b500190565b6000816000190483118215151615610d6157610d61610db8565b500290565b600082821015610d7857610d78610db8565b500390565b600181811c90821680610d9157607f821691505b60208210811415610db257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212202f0eb00b97a05974dfd4d79e84f8b36edc5af216cc78607ad945624a3803159e64736f6c63430008070033

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

00000000000000000000000096316355c44be69414756d6706c61e61aecbd5f3

-----Decoded View---------------
Arg [0] : initDuckContract (address): 0x96316355c44Be69414756D6706c61E61aECbD5f3

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000096316355c44be69414756d6706c61e61aecbd5f3


Deployed Bytecode Sourcemap

23996:2157:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24349:43;;24385:7;24349:43;;;;;6970:25:1;;;6958:2;6943:18;24349:43:0;;;;;;;;13832:100;;;:::i;:::-;;;;;;;:::i;24669:42::-;;;;;;:::i;:::-;;;;;;;;;;;;;;15999:169;;;;;;:::i;:::-;;:::i;:::-;;;1613:14:1;;1606:22;1588:41;;1576:2;1561:18;15999:169:0;1448:187:1;14952:108:0;15040:12;;14952:108;;24773:26;;;;;-1:-1:-1;;;;;24773:26:0;;;;;;-1:-1:-1;;;;;1404:32:1;;;1386:51;;1374:2;1359:18;24773:26:0;1240:203:1;16650:492:0;;;;;;:::i;:::-;;:::i;14794:93::-;;;14877:2;7148:36:1;;7136:2;7121:18;14794:93:0;7006:184:1;25139:99:0;25225:4;25139:99;;24964:80;25031:5;;-1:-1:-1;;;;;25031:5:0;24964:80;;17551:215;;;;;;:::i;:::-;;:::i;15123:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;15224:18:0;15197:7;15224:18;;;;;;;;;;;;15123:127;14051:104;;;:::i;24523:48::-;;24563:8;24523:48;;25948:189;;;;;;:::i;:::-;;:::i;:::-;;18269:413;;;;;;:::i;:::-;;:::i;15463:175::-;;;;;;:::i;:::-;;:::i;24262:47::-;;24301:8;24262:47;;24715:45;;;;;;:::i;:::-;;;;;;;;;;;;;;25509:291;;;;;;:::i;:::-;;:::i;24107:36::-;;;;;;24437:52;;24480:9;24437:52;;15701:151;;;;;;:::i;:::-;-1:-1:-1;;;;;15817:18:0;;;15790:7;15817:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;15701:151;24623:40;;24653:10;24623:40;;25808:134;;;;;;:::i;:::-;;:::i;13832:100::-;13886:13;13919:5;13912:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13832:100;:::o;15999:169::-;16082:4;16099:39;7777:10;16122:7;16131:6;16099:8;:39::i;:::-;-1:-1:-1;16156:4:0;15999:169;;;;:::o;16650:492::-;16790:4;16807:36;16817:6;16825:9;16836:6;16807:9;:36::i;:::-;-1:-1:-1;;;;;16883:19:0;;16856:24;16883:19;;;:11;:19;;;;;;;;7777:10;16883:33;;;;;;;;16935:26;;;;16927:79;;;;-1:-1:-1;;;16927:79:0;;4638:2:1;16927:79:0;;;4620:21:1;4677:2;4657:18;;;4650:30;4716:34;4696:18;;;4689:62;-1:-1:-1;;;4767:18:1;;;4760:38;4815:19;;16927:79:0;;;;;;;;;17042:57;17051:6;7777:10;17092:6;17073:16;:25;17042:8;:57::i;:::-;-1:-1:-1;17130:4:0;;16650:492;-1:-1:-1;;;;16650:492:0:o;17551:215::-;7777:10;17639:4;17688:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;17688:34:0;;;;;;;;;;17639:4;;17656:80;;17679:7;;17688:47;;17725:10;;17688:47;:::i;:::-;17656:8;:80::i;14051:104::-;14107:13;14140:7;14133:14;;;;;:::i;25948:189::-;26022:10;-1:-1:-1;;;;;26022:19:0;;;26014:59;;;;-1:-1:-1;;;26014:59:0;;4282:2:1;26014:59:0;;;4264:21:1;4321:2;4301:18;;;4294:30;4360:29;4340:18;;;4333:57;4407:18;;26014:59:0;4080:351:1;26014:59:0;26078:21;26084:5;26091:7;26078:5;:21::i;:::-;26125:7;26104:17;;:28;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;25948:189:0:o;18269:413::-;7777:10;18362:4;18406:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;18406:34:0;;;;;;;;;;18459:35;;;;18451:85;;;;-1:-1:-1;;;18451:85:0;;6260:2:1;18451:85:0;;;6242:21:1;6299:2;6279:18;;;6272:30;6338:34;6318:18;;;6311:62;-1:-1:-1;;;6389:18:1;;;6382:35;6434:19;;18451:85:0;6058:401:1;18451:85:0;18572:67;7777:10;18595:7;18623:15;18604:16;:34;18572:8;:67::i;:::-;-1:-1:-1;18670:4:0;;18269:413;-1:-1:-1;;;18269:413:0:o;15463:175::-;15549:4;15566:42;7777:10;15590:9;15601:6;15566:9;:42::i;25509:291::-;25426:13;;-1:-1:-1;;;;;25426:13:0;25404:10;:36;25396:45;;;;;;25624:4:::1;25612:8;:16;25609:187;;25648:29;25654:5;24480:9;25648:5;:29::i;:::-;25509:291:::0;;:::o;25609:187::-:1;25719:4;25707:8;:16;25704:92;;25743:26;25749:5;24563:8;25743:5;:26::i;25808:134::-:0;25426:13;;-1:-1:-1;;;;;25426:13:0;25404:10;:36;25396:45;;;;;;25897:36:::1;25903:3:::0;25909:22:::1;:11:::0;25923:8:::1;25909:22;:::i;:::-;25897:5;:36::i;21953:380::-:0;-1:-1:-1;;;;;22089:19:0;;22081:68;;;;-1:-1:-1;;;22081:68:0;;5855:2:1;22081:68:0;;;5837:21:1;5894:2;5874:18;;;5867:30;5933:34;5913:18;;;5906:62;-1:-1:-1;;;5984:18:1;;;5977:34;6028:19;;22081:68:0;5653:400:1;22081:68:0;-1:-1:-1;;;;;22168:21:0;;22160:68;;;;-1:-1:-1;;;22160:68:0;;3472:2:1;22160:68:0;;;3454:21:1;3511:2;3491:18;;;3484:30;3550:34;3530:18;;;3523:62;-1:-1:-1;;;3601:18:1;;;3594:32;3643:19;;22160:68:0;3270:398:1;22160:68:0;-1:-1:-1;;;;;22241:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;22293:32;;6970:25:1;;;22293:32:0;;6943:18:1;22293:32:0;;;;;;;;21953:380;;;:::o;19172:733::-;-1:-1:-1;;;;;19312:20:0;;19304:70;;;;-1:-1:-1;;;19304:70:0;;5449:2:1;19304:70:0;;;5431:21:1;5488:2;5468:18;;;5461:30;5527:34;5507:18;;;5500:62;-1:-1:-1;;;5578:18:1;;;5571:35;5623:19;;19304:70:0;5247:401:1;19304:70:0;-1:-1:-1;;;;;19393:23:0;;19385:71;;;;-1:-1:-1;;;19385:71:0;;2665:2:1;19385:71:0;;;2647:21:1;2704:2;2684:18;;;2677:30;2743:34;2723:18;;;2716:62;-1:-1:-1;;;2794:18:1;;;2787:33;2837:19;;19385:71:0;2463:399:1;19385:71:0;-1:-1:-1;;;;;19553:17:0;;19529:21;19553:17;;;;;;;;;;;19589:23;;;;19581:74;;;;-1:-1:-1;;;19581:74:0;;3875:2:1;19581:74:0;;;3857:21:1;3914:2;3894:18;;;3887:30;3953:34;3933:18;;;3926:62;-1:-1:-1;;;4004:18:1;;;3997:36;4050:19;;19581:74:0;3673:402:1;19581:74:0;-1:-1:-1;;;;;19691:17:0;;;:9;:17;;;;;;;;;;;19711:22;;;19691:42;;19755:20;;;;;;;;:30;;19727:6;;19691:9;19755:30;;19727:6;;19755:30;:::i;:::-;;;;;;;;19820:9;-1:-1:-1;;;;;19803:35:0;19812:6;-1:-1:-1;;;;;19803:35:0;;19831:6;19803:35;;;;6970:25:1;;6958:2;6943:18;;6824:177;19803:35:0;;;;;;;;19293:612;19172:733;;;:::o;20924:591::-;-1:-1:-1;;;;;21008:21:0;;21000:67;;;;-1:-1:-1;;;21000:67:0;;5047:2:1;21000:67:0;;;5029:21:1;5086:2;5066:18;;;5059:30;5125:34;5105:18;;;5098:62;-1:-1:-1;;;5176:18:1;;;5169:31;5217:19;;21000:67:0;4845:397:1;21000:67:0;-1:-1:-1;;;;;21167:18:0;;21142:22;21167:18;;;;;;;;;;;21204:24;;;;21196:71;;;;-1:-1:-1;;;21196:71:0;;3069:2:1;21196:71:0;;;3051:21:1;3108:2;3088:18;;;3081:30;3147:34;3127:18;;;3120:62;-1:-1:-1;;;3198:18:1;;;3191:32;3240:19;;21196:71:0;2867:398:1;21196:71:0;-1:-1:-1;;;;;21303:18:0;;:9;:18;;;;;;;;;;21324:23;;;21303:44;;21369:12;:22;;21341:6;;21303:9;21369:22;;21341:6;;21369:22;:::i;:::-;;;;-1:-1:-1;;21409:37:0;;6970:25:1;;;21435:1:0;;-1:-1:-1;;;;;21409:37:0;;;;;6958:2:1;6943:18;21409:37:0;6824:177:1;20192:399:0;-1:-1:-1;;;;;20276:21:0;;20268:65;;;;-1:-1:-1;;;20268:65:0;;6666:2:1;20268:65:0;;;6648:21:1;6705:2;6685:18;;;6678:30;6744:33;6724:18;;;6717:61;6795:18;;20268:65:0;6464:355:1;20268:65:0;20424:6;20408:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;20441:18:0;;:9;:18;;;;;;;;;;:28;;20463:6;;20441:9;:28;;20463:6;;20441:28;:::i;:::-;;;;-1:-1:-1;;20485:37:0;;6970:25:1;;;-1:-1:-1;;;;;20485:37:0;;;20502:1;;20485:37;;6958:2:1;6943:18;20485:37:0;;;;;;;25509:291;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;:::-;333:39;192:186;-1:-1:-1;;;192:186:1:o;383:260::-;451:6;459;512:2;500:9;491:7;487:23;483:32;480:52;;;528:1;525;518:12;480:52;551:29;570:9;551:29;:::i;:::-;541:39;;599:38;633:2;622:9;618:18;599:38;:::i;:::-;589:48;;383:260;;;;;:::o;648:328::-;725:6;733;741;794:2;782:9;773:7;769:23;765:32;762:52;;;810:1;807;800:12;762:52;833:29;852:9;833:29;:::i;:::-;823:39;;881:38;915:2;904:9;900:18;881:38;:::i;:::-;871:48;;966:2;955:9;951:18;938:32;928:42;;648:328;;;;;:::o;981:254::-;1049:6;1057;1110:2;1098:9;1089:7;1085:23;1081:32;1078:52;;;1126:1;1123;1116:12;1078:52;1149:29;1168:9;1149:29;:::i;:::-;1139:39;1225:2;1210:18;;;;1197:32;;-1:-1:-1;;;981:254:1:o;1861:597::-;1973:4;2002:2;2031;2020:9;2013:21;2063:6;2057:13;2106:6;2101:2;2090:9;2086:18;2079:34;2131:1;2141:140;2155:6;2152:1;2149:13;2141:140;;;2250:14;;;2246:23;;2240:30;2216:17;;;2235:2;2212:26;2205:66;2170:10;;2141:140;;;2299:6;2296:1;2293:13;2290:91;;;2369:1;2364:2;2355:6;2344:9;2340:22;2336:31;2329:42;2290:91;-1:-1:-1;2442:2:1;2421:15;-1:-1:-1;;2417:29:1;2402:45;;;;2449:2;2398:54;;1861:597;-1:-1:-1;;;1861:597:1:o;7195:128::-;7235:3;7266:1;7262:6;7259:1;7256:13;7253:39;;;7272:18;;:::i;:::-;-1:-1:-1;7308:9:1;;7195:128::o;7328:168::-;7368:7;7434:1;7430;7426:6;7422:14;7419:1;7416:21;7411:1;7404:9;7397:17;7393:45;7390:71;;;7441:18;;:::i;:::-;-1:-1:-1;7481:9:1;;7328:168::o;7501:125::-;7541:4;7569:1;7566;7563:8;7560:34;;;7574:18;;:::i;:::-;-1:-1:-1;7611:9:1;;7501:125::o;7631:380::-;7710:1;7706:12;;;;7753;;;7774:61;;7828:4;7820:6;7816:17;7806:27;;7774:61;7881:2;7873:6;7870:14;7850:18;7847:38;7844:161;;;7927:10;7922:3;7918:20;7915:1;7908:31;7962:4;7959:1;7952:15;7990:4;7987:1;7980:15;7844:161;;7631:380;;;:::o;8016:127::-;8077:10;8072:3;8068:20;8065:1;8058:31;8108:4;8105:1;8098:15;8132:4;8129:1;8122:15

Swarm Source

ipfs://2f0eb00b97a05974dfd4d79e84f8b36edc5af216cc78607ad945624a3803159e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.