POL Price: $0.552261 (-5.66%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer117937442021-03-09 8:31:561380 days ago1615278716IN
0xF3c17aF4...03b2Bd3dF
4,500 POL0.000022791.08243216

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
118151142021-03-09 21:21:151379 days ago1615324875
0xF3c17aF4...03b2Bd3dF
0.14886863 POL
118151132021-03-09 21:21:131379 days ago1615324873
0xF3c17aF4...03b2Bd3dF
0.04446725 POL
118151132021-03-09 21:21:131379 days ago1615324873
0xF3c17aF4...03b2Bd3dF
0.08285824 POL
118151132021-03-09 21:21:131379 days ago1615324873
0xF3c17aF4...03b2Bd3dF
0.16220925 POL
118151122021-03-09 21:21:111379 days ago1615324871
0xF3c17aF4...03b2Bd3dF
0.3444598 POL
118151122021-03-09 21:21:111379 days ago1615324871
0xF3c17aF4...03b2Bd3dF
0.8148168 POL
118151112021-03-09 21:21:091379 days ago1615324869
0xF3c17aF4...03b2Bd3dF
2.20632 POL
118151112021-03-09 21:21:091379 days ago1615324869
0xF3c17aF4...03b2Bd3dF
4.68 POL
118151102021-03-09 21:21:071379 days ago1615324867
0xF3c17aF4...03b2Bd3dF
6.048 POL
118151092021-03-09 21:21:051379 days ago1615324865
0xF3c17aF4...03b2Bd3dF
6.636 POL
118151092021-03-09 21:21:051379 days ago1615324865
0xF3c17aF4...03b2Bd3dF
6.192 POL
118151042021-03-09 21:20:551379 days ago1615324855
0xF3c17aF4...03b2Bd3dF
6.696 POL
118151042021-03-09 21:20:551379 days ago1615324855
0xF3c17aF4...03b2Bd3dF
8.4 POL
118151012021-03-09 21:20:451379 days ago1615324845
0xF3c17aF4...03b2Bd3dF
10.602 POL
118151012021-03-09 21:20:451379 days ago1615324845
0xF3c17aF4...03b2Bd3dF
8.4 POL
118151012021-03-09 21:20:451379 days ago1615324845
0xF3c17aF4...03b2Bd3dF
7.2 POL
118150952021-03-09 21:20:331379 days ago1615324833
0xF3c17aF4...03b2Bd3dF
6.6 POL
118150892021-03-09 21:20:211379 days ago1615324821
0xF3c17aF4...03b2Bd3dF
7.2 POL
118150842021-03-09 21:20:111379 days ago1615324811
0xF3c17aF4...03b2Bd3dF
7.812 POL
118150842021-03-09 21:20:111379 days ago1615324811
0xF3c17aF4...03b2Bd3dF
6 POL
118150812021-03-09 21:20:051379 days ago1615324805
0xF3c17aF4...03b2Bd3dF
8.4 POL
118150782021-03-09 21:19:591379 days ago1615324799
0xF3c17aF4...03b2Bd3dF
8.4 POL
118150782021-03-09 21:19:591379 days ago1615324799
0xF3c17aF4...03b2Bd3dF
5.676 POL
118150772021-03-09 21:19:571379 days ago1615324797
0xF3c17aF4...03b2Bd3dF
6.696 POL
118150772021-03-09 21:19:571379 days ago1615324797
0xF3c17aF4...03b2Bd3dF
8.4 POL
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x798F81a3...7Ca7A79B4
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
NativeTokenComet

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at polygonscan.com on 2021-06-30
*/

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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/GSN/Context.sol



pragma solidity ^0.6.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/access/Ownable.sol



pragma solidity ^0.6.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

// File: contracts/interface/IComet.sol



pragma solidity ^0.6.0;

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


interface IComet {
    function claim(address to, uint amount) external;
    function unit() external view returns (uint256);
    function token() external view returns (address);
    function balance() external view returns (uint256);
}

// File: contracts/comets/NativeTokenComet.sol



pragma solidity ^0.6.0;

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




contract NativeTokenComet is IComet, Ownable {
    uint256 _unit;
    address _game;

    constructor(
        address game,
        uint256 unit
    ) public {
        _game = game;
        _unit = unit;
    }

    function claim(address to, uint256 amount) public override {
        require(msg.sender == _game, "only game can claim");
        payable(to).transfer(amount);
    }

    function unit() public view override returns (uint256) {
        return _unit;
    }

    function token() public view override returns (address) {
        return address(0);
    }

    function balance() public view override returns (uint256) {
        return address(this).balance;
    }

    function withdraw() onlyOwner external {
        payable(owner()).transfer(address(this).balance);
    }

    receive() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"game","type":"address"},{"internalType":"uint256","name":"unit","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x60806040526004361061007f5760003560e01c8063aad3ec961161004e578063aad3ec9614610125578063b69ef8a814610180578063f2fde38b146101ab578063fc0c546a146101fc57610086565b80633ccfd60b1461008b578063715018a6146100a25780638da5cb5b146100b9578063907af6c0146100fa57610086565b3661008657005b600080fd5b34801561009757600080fd5b506100a061023d565b005b3480156100ae57600080fd5b506100b7610355565b005b3480156100c557600080fd5b506100ce6104db565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561010657600080fd5b5061010f610504565b6040518082815260200191505060405180910390f35b34801561013157600080fd5b5061017e6004803603604081101561014857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061050e565b005b34801561018c57600080fd5b5061019561061c565b6040518082815260200191505060405180910390f35b3480156101b757600080fd5b506101fa600480360360208110156101ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610624565b005b34801561020857600080fd5b5061021161082f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610245610834565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610305576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61030d6104db565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610352573d6000803e3d6000fd5b50565b61035d610834565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461041d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600154905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f6f6e6c792067616d652063616e20636c61696d0000000000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610617573d6000803e3d6000fd5b505050565b600047905090565b61062c610834565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610772576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061083d6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600090565b60003390509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220ab22f674a534865e65b59fb46ed1e737f3c6bece343c8dd2279bcf6b326ea6ff64736f6c634300060c0033

Block Transaction 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
[ Download: CSV Export  ]
[ 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.