Contract 0xc65bc1e906771e105fbacbd8dfe3862ee7be378e 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x216997eb5e736ed19dfe6377bf99388be6833621007a0e0a1d0f6e00d1435b0cTransfer187936772022-08-18 7:29:449 secs ago0x1508b2672fe55b6f5d216f4b9312e42540b6ee68 IN  Champion Finance: CHAM Token0 AVAX0.‍001377311 26.‍5
0xbc155528e4bba98e7afe50e13258a6e28b29527a15f5272de3005c306e8ba2c4Transfer187936322022-08-18 7:28:141 min ago0xf3e9a42a0f0c566dd32d74e06466d4b08098e640 IN  Champion Finance: CHAM Token0 AVAX0.‍000924797 26.‍5
0x1694d56c8387ce0d00f5081414f63d48615af221043a5b456316fad04e6dd4faApprove187935522022-08-18 7:25:314 mins ago0xe23e68b2c5672ef043714ef7bb86a7122f5d130b IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x059ed5b51bb716546e3425f66ee9c87a0868a64d05f7ecfd712a439a5d8dcaa8Approve187897392022-08-18 5:14:252 hrs 15 mins ago0xfce36c7ee179d224faf832c87d449eb4baaa9f54 IN  Champion Finance: CHAM Token0 AVAX0.‍001445954385 30.‍880625
0x34359a243b241401e44d33051c22d675009271b056c9d62eec470e514176c2eeApprove187864992022-08-18 3:23:054 hrs 6 mins ago0x8eb1b6eb4064e02f2c01495f9af326d8ce333bd5 IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0xffa05b00bb7b76fe4b6987eaad874b3c9af29e06000af8bbd6048aa05dab1b7fApprove187853822022-08-18 2:44:364 hrs 45 mins ago0x937938dfe149886836b323b3a4d214bcaaed2843 IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x407069a7c0c9747debd273426aa36570d0e51fc3e358e4f78adfadabcedfdd10Approve187845862022-08-18 2:17:225 hrs 12 mins ago0x567a5875f095e51853ec44d725b97da5687cbd59 IN  Champion Finance: CHAM Token0 AVAX0.‍0012841482 27.‍425
0x82755e522e0315f7229f4878a7f09fdcc5bb9db5897197eed10506719438ae22Approve187822642022-08-18 0:57:316 hrs 32 mins ago0x454aeaf0b51f37c3b5edbbf3b7ce30f52798a97e IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x761c79f2c16692fb3e03cc423b269ea882c219e95ccb285e13d1bd753a3d4163Approve187783192022-08-17 22:41:478 hrs 48 mins ago0xb0cd81388cd9fc9df90305a1be81498254c93f85 IN  Champion Finance: CHAM Token0 AVAX0.‍001280741754 27.‍35225
0x6775c0918ed9e3715049562a7b0bb77d6d3e1d130c17c5005cb76787eb5e0513Approve187738682022-08-17 20:09:2611 hrs 20 mins ago0xba19e3d480143267ecbcb83b3ec33022a6935e24 IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x63ba7b14638147c77818c13e74b99f3d159ee539af6b497f198b69d373204a7cApprove187736682022-08-17 20:02:2911 hrs 27 mins ago0xd8d9e6b6ed5c0d3cad7a3ba3caf639f36a5601e2 IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0xd389f90d1f6f3ac7d556668a654ed68a2ff1132c55fc8863cb3912ee274b5168Approve187727512022-08-17 19:31:0211 hrs 58 mins ago0x4e6c69c053b9e51b3c9df98450ca304aeb7b2b78 IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x39a0cbd45ebcb116224ccf688db75dd47a4f9069aa3ca9f82e5e1957327f49f6Approve187697632022-08-17 17:48:5013 hrs 41 mins ago0xe2321a99d054eeebe31ded3451a294136b0d1ffe IN  Champion Finance: CHAM Token0 AVAX0.‍001264248 27
0xb6578601c17dc43eb8cb5f79c707cbfd6f4d36917d54d03a35be169d081ad3a7Approve187692062022-08-17 17:29:4814 hrs ago0x52a02cc4f7947c1c538c7f0069ac3f38b663e27d IN  Champion Finance: CHAM Token0 AVAX0.‍0012876627.‍5
0xe069fc4af54de24c8301a3ba5226a25ca6786515206daa6d59ab68a3223e8271Approve187691962022-08-17 17:29:2814 hrs ago0x7861c923dcaf05fb8f903d16e7667498003bc2ed IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x87c8a86917d98a9825c0e8eed58da3ff72bb77351c1a46225b8c6c474b1fa758Approve187689802022-08-17 17:22:0914 hrs 7 mins ago0xee96792115e8dfd724117024102ad7fafd21a016 IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x0d7337c096178a56c4411986fbc779ceea4a4cabde4d3dcec050e9484369ff70Approve187669012022-08-17 16:11:2115 hrs 18 mins ago0x1fd40fdd4cd4e1785778550b05e82ad5d256d266 IN  Champion Finance: CHAM Token0 AVAX0.‍0011706 25
0xd400ab5df0c18341932300fb6ffbf21cef2fe7dd37cbef536eeac268d5646279Approve187667262022-08-17 16:05:2215 hrs 24 mins ago0xb6e5e1e2e07a6fbf54e35c9879eb32376033042d IN  Champion Finance: CHAM Token0 AVAX0.‍001251219222 26.‍72175
0x5d92c3cc519fd6a3a6c2176a01472472f07336c504d63c59791872892dadf8a0Approve187657962022-08-17 15:33:3315 hrs 56 mins ago0x002deb6d395e56d1555d789b24f5f506f11b7f5a IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x84145947f57c8857c48eb6dd04fec2878e18d90a3fcbf97cd565aaeaa12bbeb0Approve187655812022-08-17 15:26:1316 hrs 3 mins ago0xee96792115e8dfd724117024102ad7fafd21a016 IN  Champion Finance: CHAM Token0 AVAX0.‍001217424 26
0x7f092f8d44bb61d332f6624095614a2911bc87af24c3589c3d46c0a89ecce8dfApprove187654382022-08-17 15:21:2116 hrs 8 mins ago0xb0a812e34fc6837c84d394646f559ccd31c7ddfe IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0x5fb02a96a48287ed57646eef31b5ef0859ed2c144638a9d93db475e54105e870Approve187651522022-08-17 15:11:2816 hrs 18 mins ago0x826d8bf70da731ea94e4f92c17bec5bda2faf557 IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0xc96610b169710bdb8693924cc249df0b2505200bd18b1c0efbc07fbe2f651b14Transfer187642322022-08-17 14:40:0416 hrs 49 mins ago0x5633391c84a3468758f6fa030da5a137c39efad1 IN  Champion Finance: CHAM Token0 AVAX0.‍000924161 26.‍5
0x460b9c4fd1ea9b14cca3e18813fbe614cfb1fd3531572309964321dcb9872690Approve187581302022-08-17 11:12:0720 hrs 17 mins ago0xe2321a99d054eeebe31ded3451a294136b0d1ffe IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
0xa82a40b253bf3ca36e60bee534cc8a3392fd9664ff0642a2b5d10f3a37093439Approve187576892022-08-17 10:57:0120 hrs 32 mins ago0xe2321a99d054eeebe31ded3451a294136b0d1ffe IN  Champion Finance: CHAM Token0 AVAX0.‍001240836 26.‍5
[ Download CSV Export 

OVERVIEW

The first cross-chain elastic algorithmic token pegged to USDC.

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ShareToken

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : ShareToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.13;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

import "./owner/Operator.sol";

contract ShareToken is ERC20, Operator {
    uint256 public constant FARMING_POOL_REWARD_ALLOCATION = 650000 ether;
    uint256 public constant NODE_POOL_REWARD_ALLOCATION = 50000 ether;

	uint256 private constant INITIAL_SUPPLY = 1 ether;

    bool public rewardPoolDistributed = false;

    constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {
        // mint 1 token for initial pools deployment
        _mint(msg.sender, INITIAL_SUPPLY);
    }

    /**
     * @notice distribute to reward pool (only once)
     */
    function distributeReward(
        address _farmingPoolAddress,
        address _nodePoolAddress
    ) external onlyOperator {
        require(!rewardPoolDistributed, "only can distribute once");
        require(_farmingPoolAddress != address(0), "!_farmingPoolAddress");
        require(_nodePoolAddress != address(0), "!_nodePoolAddress");
        rewardPoolDistributed = true;
        _mint(_farmingPoolAddress, FARMING_POOL_REWARD_ALLOCATION);
        _mint(_nodePoolAddress, NODE_POOL_REWARD_ALLOCATION);
    }
}

File 2 of 7 : Operator.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.13;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Operator is Context, Ownable {
    address private _operator;

    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);

    constructor() {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);
    }

    function operator() public view returns (address) {
        return _operator;
    }

    modifier onlyOperator() {
        require(_operator == msg.sender, "operator: caller is not the operator");
        _;
    }

    function isOperator() public view returns (bool) {
        return _msgSender() == _operator;
    }

    function transferOperator(address newOperator_) public onlyOwner {
        _transferOperator(newOperator_);
    }

    function _transferOperator(address newOperator_) internal {
        require(newOperator_ != address(0), "operator: zero address given for new operator");
        emit OperatorTransferred(address(0), newOperator_);
        _operator = newOperator_;
    }
}

File 3 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 4 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @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 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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 6 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][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) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 7 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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.
 */
abstract 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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"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":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FARMING_POOL_REWARD_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NODE_POOL_REWARD_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_farmingPoolAddress","type":"address"},{"internalType":"address","name":"_nodePoolAddress","type":"address"}],"name":"distributeReward","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":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"rewardPoolDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526006805460a060020a60ff02191690553480156200002157600080fd5b50604051620015f9380380620015f983398101604081905262000044916200043b565b8151829082906200005d906003906020850190620002af565b50805162000073906004906020840190620002af565b505050620000a26200009362000124640100000000026401000000009004565b64010000000062000128810204565b620000b564010000000062000124810204565b60068054600160a060020a031916600160a060020a039290921691821790556040516000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36200011c33670de0b6b3a76400006401000000006200017a810204565b50506200053a565b3390565b60058054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600160a060020a038216620001ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b6200020660008383640100000000620002aa810204565b80600260008282546200021a9190620004a5565b9091555050600160a060020a0382166000908152602081905260408120805483929062000249908490620004a5565b9091555050604051818152600160a060020a038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3620002a660008383640100000000620002aa810204565b5050565b505050565b828054620002bd90620004e5565b90600052602060002090601f016020900481019282620002e157600085556200032c565b82601f10620002fc57805160ff19168380011785556200032c565b828001600101855582156200032c579182015b828111156200032c5782518255916020019190600101906200030f565b506200033a9291506200033e565b5090565b5b808211156200033a57600081556001016200033f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126200039657600080fd5b81516001604060020a0380821115620003b357620003b362000355565b604051601f8301601f19908116603f01168101908282118183101715620003de57620003de62000355565b81604052838152602092508683858801011115620003fb57600080fd5b600091505b838210156200041f578582018301518183018401529082019062000400565b83821115620004315760008385830101525b9695505050505050565b600080604083850312156200044f57600080fd5b82516001604060020a03808211156200046757600080fd5b620004758683870162000384565b935060208501519150808211156200048c57600080fd5b506200049b8582860162000384565b9150509250929050565b60008219821115620004e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500190565b600281046001821680620004fa57607f821691505b60208210810362000534577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6110af806200054a6000396000f3fe608060405234801561001057600080fd5b5060043610610154576000357c010000000000000000000000000000000000000000000000000000000090048063715018a6116100d5578063a457c2d711610099578063a457c2d7146102ae578063a9059cbb146102c1578063cae6f81a146102d4578063dd62ed3e146102e5578063f2fde38b1461031e578063f4fd47cf1461033157600080fd5b8063715018a6146102575780638da5cb5b1461025f57806395d89b41146102705780639662676c14610278578063a06160fd1461029d57600080fd5b8063313ce5671161011c578063313ce567146101d457806339509351146101e35780634456eda2146101f6578063570ca7351461020957806370a082311461022e57600080fd5b806306fdde0314610159578063095ea7b31461017757806318160ddd1461019a57806323b872dd146101ac57806329605e77146101bf575b600080fd5b610161610344565b60405161016e9190610e86565b60405180910390f35b61018a610185366004610ef7565b6103d6565b604051901515815260200161016e565b6002545b60405190815260200161016e565b61018a6101ba366004610f21565b6103ee565b6101d26101cd366004610f5d565b610412565b005b6040516012815260200161016e565b61018a6101f1366004610ef7565b610454565b600654600160a060020a0316331461018a565b600654600160a060020a03165b604051600160a060020a03909116815260200161016e565b61019e61023c366004610f5d565b600160a060020a031660009081526020819052604090205490565b6101d2610493565b600554600160a060020a0316610216565b6101616104cc565b60065461018a9074010000000000000000000000000000000000000000900460ff1681565b61019e6989a4921338674240000081565b61018a6102bc366004610ef7565b6104db565b61018a6102cf366004610ef7565b610588565b61019e690a968163f0a57b40000081565b61019e6102f3366004610f7f565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b6101d261032c366004610f5d565b610596565b6101d261033f366004610f7f565b61064b565b60606003805461035390610fb2565b80601f016020809104026020016040519081016040528092919081815260200182805461037f90610fb2565b80156103cc5780601f106103a1576101008083540402835291602001916103cc565b820191906000526020600020905b8154815290600101906020018083116103af57829003601f168201915b5050505050905090565b6000336103e481858561084e565b5060019392505050565b6000336103fc8582856109ac565b610407858585610a41565b506001949350505050565b600554600160a060020a031633146104485760405160e560020a62461bcd02815260040161043f90611005565b60405180910390fd5b61045181610c61565b50565b336000818152600160209081526040808320600160a060020a03871684529091528120549091906103e4908290869061048e90879061103a565b61084e565b600554600160a060020a031633146104c05760405160e560020a62461bcd02815260040161043f90611005565b6104ca6000610d45565b565b60606004805461035390610fb2565b336000818152600160209081526040808320600160a060020a03871684529091528120549091908381101561057b5760405160e560020a62461bcd02815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161043f565b610407828686840361084e565b6000336103e4818585610a41565b600554600160a060020a031633146105c35760405160e560020a62461bcd02815260040161043f90611005565b600160a060020a0381166106425760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161043f565b61045181610d45565b600654600160a060020a031633146106cd5760405160e560020a62461bcd028152602060048201526024808201527f6f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260448201527f61746f7200000000000000000000000000000000000000000000000000000000606482015260840161043f565b60065474010000000000000000000000000000000000000000900460ff161561073b5760405160e560020a62461bcd02815260206004820152601860248201527f6f6e6c792063616e2064697374726962757465206f6e63650000000000000000604482015260640161043f565b600160a060020a0382166107945760405160e560020a62461bcd02815260206004820152601460248201527f215f6661726d696e67506f6f6c41646472657373000000000000000000000000604482015260640161043f565b600160a060020a0381166107ed5760405160e560020a62461bcd02815260206004820152601160248201527f215f6e6f6465506f6f6c41646472657373000000000000000000000000000000604482015260640161043f565b6006805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055610836826989a49213386742400000610da4565b61084a81690a968163f0a57b400000610da4565b5050565b600160a060020a0383166108cc5760405160e560020a62461bcd028152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161043f565b600160a060020a03821661094b5760405160e560020a62461bcd02815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161043f565b600160a060020a0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600160a060020a038381166000908152600160209081526040808320938616835292905220546000198114610a3b5781811015610a2e5760405160e560020a62461bcd02815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161043f565b610a3b848484840361084e565b50505050565b600160a060020a038316610ac05760405160e560020a62461bcd02815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161043f565b600160a060020a038216610b3f5760405160e560020a62461bcd02815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161043f565b600160a060020a03831660009081526020819052604090205481811015610bd15760405160e560020a62461bcd02815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161043f565b600160a060020a03808516600090815260208190526040808220858503905591851681529081208054849290610c0890849061103a565b9250508190555082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c5491815260200190565b60405180910390a3610a3b565b600160a060020a038116610ce05760405160e560020a62461bcd02815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201527f206e6577206f70657261746f7200000000000000000000000000000000000000606482015260840161043f565b604051600160a060020a038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60058054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600160a060020a038216610dfd5760405160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161043f565b8060026000828254610e0f919061103a565b9091555050600160a060020a03821660009081526020819052604081208054839290610e3c90849061103a565b9091555050604051818152600160a060020a038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060208083528351808285015260005b81811015610eb357858101830151858201604001528201610e97565b81811115610ec5576000604083870101525b50601f01601f1916929092016040019392505050565b8035600160a060020a0381168114610ef257600080fd5b919050565b60008060408385031215610f0a57600080fd5b610f1383610edb565b946020939093013593505050565b600080600060608486031215610f3657600080fd5b610f3f84610edb565b9250610f4d60208501610edb565b9150604084013590509250925092565b600060208284031215610f6f57600080fd5b610f7882610edb565b9392505050565b60008060408385031215610f9257600080fd5b610f9b83610edb565b9150610fa960208401610edb565b90509250929050565b600281046001821680610fc657607f821691505b602082108103610fff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611074577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea2646970667358221220fe223265c450b8977713fcd4f953d8284a9b26f13c64a6d5c2eaa4a11867c73964736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084368616d70696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044348414d00000000000000000000000000000000000000000000000000000000

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084368616d70696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044348414d00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Champion
Arg [1] : symbol_ (string): CHAM

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [3] : 4368616d70696f6e000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 4348414d00000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.