Contract 0x88a3acac5c48f93121d4d7771a068a1fcde078bc

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x5e77480da0c6aaa278ca1740b3f10cd966071474d652926f85d38c1e7a786968Transfer204645182021-10-21 21:08:0110 hrs 16 mins ago0x5317893d21d64ca3446098e1b411e30b77e60706 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00155298
0xe92bc1aa875b1d278f5153aa3a3f449570b256852c527ac2dc704652f2d18d56Approve204633342021-10-21 20:20:5111 hrs 3 mins ago0x8639afaba2631c7c09220b161d2b3d0d4764ef85 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00080196
0x8e1cca4abefdc0840e4c481c1eafb3a897fb97dc0ad676b7e48b16e4bb8a2de1Approve204633282021-10-21 20:20:3911 hrs 3 mins ago0x8639afaba2631c7c09220b161d2b3d0d4764ef85 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
0xd862fb8eae099b4d7889e30a187922c5544503bd48e67b06c535c90523ac7249Transfer204600232021-10-21 18:09:5113 hrs 14 mins ago0x701844b8961c17690be52e6668731db614a459e9 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.0020814
0x50aa6b2594befd9738b2c9db252d500ce786dee322fdac449ebd5d641c34f16bApprove204595382021-10-21 17:51:0513 hrs 32 mins ago0xfa92d598bba47dead4ad16df624f0d4660770238 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.000480942
0x7c911ba39f7711ed7b672ed78dc98bf0478be04451a6ac01c6246325318103a7Approve204594492021-10-21 17:47:5913 hrs 36 mins ago0xfa92d598bba47dead4ad16df624f0d4660770238 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.001492224
0xf0b06c337f1d9b1e4eaea82ea9f8fbb9b167a4897640e34841f060fcad91f115Approve204590612021-10-21 17:32:1713 hrs 51 mins ago0x2e909729016eb1013a197e05210e35ce4435abc4 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00098805
0x79c9cf3b8c6e0fc1b931f9ec582f4a4c57dc919719f2edc80778bd12e3f9af3cApprove204590592021-10-21 17:32:1313 hrs 51 mins ago0x2e909729016eb1013a197e05210e35ce4435abc4 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.000546525
0xbfe6fa0cd5cca7aaaf485625e550749c401e42f7fabf95711086f3d5e41406d2Approve204590392021-10-21 17:31:3313 hrs 52 mins ago0x2e909729016eb1013a197e05210e35ce4435abc4 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.000480942
0xa5368450a178c350dd615fbfd7702944c3a51abb79835a84e91922b8cf2e94bcApprove204583042021-10-21 16:59:5514 hrs 24 mins ago0xdb25041c1b52a288031ad2361d6242606e12aee3 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
0x2d6eccd786ac9c0bc8743342ba7a531d1756ff6836a75f0a019963fca9c45991Approve204560802021-10-21 15:36:0715 hrs 47 mins ago0x0f89ee993dec3bed04e19ddc2c74561edbaab002 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00186528
0x32f761b2740b304bebc51c618b51114ff761ad455bf59244769d1684f33383ecApprove204547792021-10-21 14:44:5716 hrs 39 mins ago0xbfbc1a9d959f3140ef3ba0073f1044a02be7b637 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.0080196
0x118a580452404ba380124c223303478f9b024ee2047b186565729ff5c9fecb27Approve204546952021-10-21 14:42:0516 hrs 41 mins ago0xbfbc1a9d959f3140ef3ba0073f1044a02be7b637 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
0x2448bd2c574e91745d5775ff00beb06dba3eaef45d9a2c46bdc231c458777799Approve204544742021-10-21 14:34:2816 hrs 49 mins ago0xb3fe4b2580bbbed78c8332678b0a33d19eb8311a IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
0xb65e603234122b2ca8f6167a783f3b5c533e51fd8f9033fc45fa0d561c5b79cfApprove204526762021-10-21 13:26:1017 hrs 57 mins ago0x846fe6667f135892db7c948ec50b12fa3d494427 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
0x5d45100d132a848c45736399d8f5d8bf0685c0acdf3fb9f5223eac063e4701dcApprove204523762021-10-21 13:13:4218 hrs 10 mins ago0x3c8de8a456d5175e75f9eb42ada116fd201613f0 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
0x71fec0f156b2f16b2ea138115ebea004c6ebe16e259edbd8733c86ecfbbd993eApprove204518062021-10-21 12:49:5018 hrs 34 mins ago0x02b540e905fb3c52675db4b64e2cb99ed77f961e IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
0x5a9d02d4468aa972ada22363b28daf978fef392c30a3751ee83d535bdc818a8cApprove204488042021-10-21 10:57:2920 hrs 26 mins ago0xadd5bff1363309f43568e6bb448977ba0fee6e0a IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.000524664
0xa34f50807e84312ec8e84f77206039ab6790c35b3bbd84850fc2431940899520Approve204486152021-10-21 10:48:5120 hrs 35 mins ago0xc044229c7fadad1b96c5008257012b36fb4316ee IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
0xfc978aa423a3ec3d152b584b2e60f23fad69e7045c3c083ec2206128cf968c49Approve204483862021-10-21 10:38:3920 hrs 45 mins ago0xe187df23171a59e6950a8e2a68259081ae22d756 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00079044
0x7d62817fcae2ba77c405eaf8261bc7c2e9386cd6567846fa7e276c23972fc995Approve204480482021-10-21 10:26:5920 hrs 57 mins ago0xe187df23171a59e6950a8e2a68259081ae22d756 IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.000029148
0xa0d2d21fa99558b22e4e2ca5138ee2420f16bff15732b743eb6a4e8407d2fe09Approve204449402021-10-21 8:22:4923 hrs 1 min ago0x6d9910a971cab6fa3ae8f9375f99313792d3626d IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.000480942
0x057516830c0a6eb9ad61916805c8a6feb6d41bfd2ca93faf018932b6a0aa302bApprove204449362021-10-21 8:22:4123 hrs 1 min ago0x6d9910a971cab6fa3ae8f9375f99313792d3626d IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00051009
0xaac3316caf4370accca2c8adfe6fc315c976877d1558f58571df5f63e3ac711aApprove204449342021-10-21 8:22:3723 hrs 1 min ago0x6d9910a971cab6fa3ae8f9375f99313792d3626d IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00051009
0xf04b513f1bcd629d3fe4fe9d752c4c3e74a8e93fce6dcae64d7ea8883004b759Approve204440922021-10-21 7:49:2123 hrs 34 mins ago0x735dd9dd1fee6454ec033dac876c50870c44768a IN  0x88a3acac5c48f93121d4d7771a068a1fcde078bc0 MATIC0.00139896
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Share

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : Share.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "./ERC20/ERC20Custom.sol";
import "./interfaces/ITreasury.sol";

contract Share is ERC20Custom, Ownable, Initializable {
    /* ========== STATE VARIABLES ========== */

    // ERC20 - Token
    string public symbol;
    string public name;
    uint8 public constant decimals = 18;
    uint256 public constant genesis_supply = 1_150_000 ether; // minted at genesis for liquidity pool seeding and airdrop

    // CONTRACTS
    address public treasury;

    // DISTRIBUTION
    uint256 public constant COMMUNITY_REWARD_ALLOCATION = 700_000_000 ether; // 700M
    uint256 public constant TREASURY_FUND_ALLOCATION = 300_000_000 ether; // 300M
    uint256 public constant TREASURY_FUND_VESTING_DURATION = 1095 days; // 36 months
    uint256 public constant TREASURY_FUND_EMISSION_RATE = TREASURY_FUND_ALLOCATION / TREASURY_FUND_VESTING_DURATION;
    uint256 public vestingStartTime; // Start time of vesting duration
    uint256 public vestingEndTime; // End of vesting duration
    address public treasuryFund;
    uint256 public treasuryFundLastClaimed;
    address public communityRewardController; // Holding SHARE tokens to distribute into Liquiditiy Mining Pools
    uint256 public communityRewardClaimed;

    /* ========== MODIFIERS ========== */

    modifier onlyPools() {
        require(ITreasury(treasury).hasPool(msg.sender), "!pools");
        _;
    }

    modifier onlyTreasuryFund() {
        require(msg.sender == treasuryFund, "Only treasury fund address can trigger");
        _;
    }

    /* ========== CONSTRUCTOR ========== */

    function initialize(
        string memory _name,
        string memory _symbol,
        address _treasury,
        address _treasuryFund,
        address _communityRewardController,
        uint256 _vestingStartTime
    ) external initializer onlyOwner {
        name = _name;
        symbol = _symbol;
        treasury = _treasury;
        treasuryFund = _treasuryFund;
        communityRewardController = _communityRewardController;
        vestingStartTime = _vestingStartTime;
        vestingEndTime = _vestingStartTime + TREASURY_FUND_VESTING_DURATION;
        treasuryFundLastClaimed = _vestingStartTime;
        _mint(msg.sender, genesis_supply);
    }

    function claimCommunityRewards(uint256 amount) external onlyOwner {
        require(amount > 0, "invalidAmount");
        require(communityRewardController != address(0), "!rewardController");
        uint256 _remainingRewards = COMMUNITY_REWARD_ALLOCATION - communityRewardClaimed;
        require(amount <= _remainingRewards, "exceedRewards");
        communityRewardClaimed = communityRewardClaimed + amount;
        _mint(communityRewardController, amount);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function setTreasuryAddress(address _treasury) external onlyOwner {
        require(_treasury != address(0), "Invalid address");
        treasury = _treasury;
        emit TreasuryChanged(_treasury);
    }

    function setTreasuryFund(address _treasuryFund) external onlyTreasuryFund {
        require(_treasuryFund != address(0), "zero");
        treasuryFund = _treasuryFund;
        emit TreasuryFundUpdated(treasuryFund);
    }

    function setCommunityRewardController(address _communityRewardController) external onlyOwner {
        require(_communityRewardController != address(0), "zero");
        communityRewardController = _communityRewardController;
        emit CommunityRewardControllerUpdated(communityRewardController);
    }

    // This function is what other Pools will call to mint new SHARE
    function poolMint(address m_address, uint256 m_amount) external onlyPools {
        super._mint(m_address, m_amount);
        emit ShareMinted(address(this), m_address, m_amount);
    }

    // This function is what other pools will call to burn SHARE
    function poolBurnFrom(address b_address, uint256 b_amount) external onlyPools {
        super._burnFrom(b_address, b_amount);
        emit ShareBurned(b_address, address(this), b_amount);
    }

    function unclaimedTreasuryFund() public view returns (uint256 _pending) {
        uint256 _now = block.timestamp;
        if (_now > vestingEndTime) _now = vestingEndTime;
        if (treasuryFundLastClaimed >= _now) return 0;
        _pending = (_now - treasuryFundLastClaimed) * TREASURY_FUND_EMISSION_RATE;
    }

    function claimTreasuryFundRewards() external onlyTreasuryFund {
        uint256 _pending = unclaimedTreasuryFund();
        if (_pending > 0 && treasuryFund != address(0)) {
            _mint(treasuryFund, _pending);
            treasuryFundLastClaimed = block.timestamp;
        }
    }

    /* ========== EVENTS ========== */

    event TreasuryChanged(address indexed newTreasury);
    event ShareBurned(address indexed from, address indexed to, uint256 amount);
    event ShareMinted(address indexed from, address indexed to, uint256 amount);
    event TreasuryFundUpdated(address indexed newTreasuryFund);
    event CommunityRewardControllerUpdated(address indexed newRewardController);
}

File 2 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT

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 3 of 9 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 4 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 9 : ERC20Custom.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Address.sol";

// Due to compiling issues, _name, _symbol, and _decimals were removed

/**
 * @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 {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Custom is Context, IERC20 {
    using SafeMath for uint256;

    mapping(address => uint256) internal _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal virtual {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")
        );
    }

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

File 6 of 9 : ITreasury.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;

interface ITreasury {
    function hasPool(address _address) external view returns (bool);

    function collateralReserve() external view returns (address);

    function globalCollateralBalance() external view returns (uint256);

    function globalCollateralValue() external view returns (uint256);

    function requestTransfer(
        address token,
        address receiver,
        uint256 amount
    ) external;

    function info()
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        );

    function sharePrice() external view returns (uint256);
}

File 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT

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 8 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT

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 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":"newRewardController","type":"address"}],"name":"CommunityRewardControllerUpdated","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":"amount","type":"uint256"}],"name":"ShareBurned","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":"amount","type":"uint256"}],"name":"ShareMinted","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newTreasury","type":"address"}],"name":"TreasuryChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newTreasuryFund","type":"address"}],"name":"TreasuryFundUpdated","type":"event"},{"inputs":[],"name":"COMMUNITY_REWARD_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_FUND_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_FUND_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_FUND_VESTING_DURATION","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimCommunityRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTreasuryFundRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityRewardClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityRewardController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genesis_supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_treasuryFund","type":"address"},{"internalType":"address","name":"_communityRewardController","type":"address"},{"internalType":"uint256","name":"_vestingStartTime","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"b_address","type":"address"},{"internalType":"uint256","name":"b_amount","type":"uint256"}],"name":"poolBurnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"m_address","type":"address"},{"internalType":"uint256","name":"m_amount","type":"uint256"}],"name":"poolMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_communityRewardController","type":"address"}],"name":"setCommunityRewardController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryFund","type":"address"}],"name":"setTreasuryFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFundLastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimedTreasuryFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b610071565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611a65806100806000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c806370a0823111610130578063a8660a78116100b8578063e6bbbaee1161007c578063e6bbbaee14610497578063edf3e29e146104aa578063f25f8cb3146104bd578063f2fde38b146104d0578063f746b718146104e357600080fd5b8063a8660a7814610427578063a9059cbb14610430578063d5b8cbc214610443578063dd62ed3e1461044b578063e0c4f12d1461048457600080fd5b80638da5cb5b116100ff5780638da5cb5b146103df57806395d89b41146103f0578063a349e246146103f8578063a457c2d71461040b578063a790b5ca1461041e57600080fd5b806370a0823114610392578063715018a6146103bb57806379cc6790146103c357806386fab45e146103d657600080fd5b80632d52504e116101b35780634744aa7f116101825780634744aa7f1461032557806351e238e3146103385780635d218c7c1461034957806361d027b3146103545780636605bfda1461037f57600080fd5b80632d52504e146102dd578063313ce567146102e557806339509351146102ff57806342966c681461031257600080fd5b80630c407d56116101fa5780630c407d561461029557806313ca8115146102a857806317764782146102ba57806318160ddd146102c257806323b872dd146102ca57600080fd5b806305e1b1101461022c57806306fdde0314610248578063095ea7b31461025d5780630a0c165a14610280575b600080fd5b610235600a5481565b6040519081526020015b60405180910390f35b6102506104f6565b60405161023f91906117d3565b61027061026b3660046116d7565b610584565b604051901515815260200161023f565b61029361028e3660046116d7565b61059a565b005b6102936102a33660046116d7565b61069e565b6102356af8277896582678ac00000081565b610235610795565b600254610235565b6102706102d836600461169c565b6107f0565b61023561086a565b6102ed601281565b60405160ff909116815260200161023f565b61027061030d3660046116d7565b610886565b6102936103203660046117bb565b6108bc565b6102936103333660046117bb565b6108c9565b61023569f3859ffa9ede12c0000081565b6102356305a39a8081565b600654610367906001600160a01b031681565b6040516001600160a01b03909116815260200161023f565b61029361038d366004611650565b610a08565b6102356103a0366004611650565b6001600160a01b031660009081526020819052604090205490565b610293610ac4565b6102936103d13660046116d7565b610afa565b61023560085481565b6003546001600160a01b0316610367565b610250610b46565b600b54610367906001600160a01b031681565b6102706104193660046116d7565b610b53565b610235600c5481565b61023560075481565b61027061043e3660046116d7565b610ba2565b610293610baf565b61023561045936600461166a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600954610367906001600160a01b031681565b6102936104a5366004611650565b610c21565b6102936104b8366004611720565b610cd4565b6102356b024306c4097859c43c00000081565b6102936104de366004611650565b610e5e565b6102936104f1366004611650565b610ef6565b600580546105039061190f565b80601f016020809104026020016040519081016040528092919081815260200182805461052f9061190f565b801561057c5780601f106105515761010080835404028352916020019161057c565b820191906000526020600020905b81548152906001019060200180831161055f57829003601f168201915b505050505081565b6000610591338484610fa9565b50600192915050565b600654604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b1580156105dd57600080fd5b505afa1580156105f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106159190611700565b61064f5760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b60448201526064015b60405180910390fd5b61065982826110ce565b60405181815230906001600160a01b038416907fdf05d6cb804e48c3130d5f7811e55947769ccdecf499faea489170f17df227cf906020015b60405180910390a35050565b600654604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b1580156106e157600080fd5b505afa1580156106f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107199190611700565b61074e5760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b6044820152606401610646565b6107588282611119565b6040518181526001600160a01b0383169030907ff4d2b66b63836b39ffec28f88533e0f50c9136ab7d8d9b9976f93d3880e8020590602001610692565b60085460009042908111156107a957506008545b80600a54106107ba57600091505090565b6107d36305a39a806af8277896582678ac0000006118b9565b600a546107e090836118f8565b6107ea91906118d9565b91505090565b60006107fd8484846111f0565b610860843361085b856040518060600160405280602881526020016119bf602891396001600160a01b038a16600090815260016020526040812090335b6001600160a01b031681526020810191909152604001600020549190611373565b610fa9565b5060019392505050565b6108836305a39a806af8277896582678ac0000006118b9565b81565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161059191859061085b908661139f565b6108c633826113b2565b50565b6003546001600160a01b031633146108f35760405162461bcd60e51b815260040161064690611826565b600081116109335760405162461bcd60e51b815260206004820152600d60248201526c1a5b9d985b1a59105b5bdd5b9d609a1b6044820152606401610646565b600b546001600160a01b031661097f5760405162461bcd60e51b815260206004820152601160248201527010b932bbb0b93221b7b73a3937b63632b960791b6044820152606401610646565b6000600c546b024306c4097859c43c00000061099b91906118f8565b9050808211156109dd5760405162461bcd60e51b815260206004820152600d60248201526c6578636565645265776172647360981b6044820152606401610646565b81600c546109eb91906118a1565b600c55600b54610a04906001600160a01b031683611119565b5050565b6003546001600160a01b03163314610a325760405162461bcd60e51b815260040161064690611826565b6001600160a01b038116610a7a5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610646565b600680546001600160a01b0319166001600160a01b0383169081179091556040517fc714d22a2f08b695f81e7c707058db484aa5b4d6b4c9fd64beb10fe85832f60890600090a250565b6003546001600160a01b03163314610aee5760405162461bcd60e51b815260040161064690611826565b610af860006114b6565b565b6000610b2a826040518060600160405280602481526020016119e760249139610b238633610459565b9190611373565b9050610b37833383610fa9565b610b4183836113b2565b505050565b600480546105039061190f565b6000610591338461085b85604051806060016040528060258152602001611a0b602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611373565b60006105913384846111f0565b6009546001600160a01b03163314610bd95760405162461bcd60e51b81526004016106469061185b565b6000610be3610795565b9050600081118015610bff57506009546001600160a01b031615155b156108c657600954610c1a906001600160a01b031682611119565b42600a5550565b6003546001600160a01b03163314610c4b5760405162461bcd60e51b815260040161064690611826565b6001600160a01b038116610c8a5760405162461bcd60e51b8152600401610646906020808252600490820152637a65726f60e01b604082015260600190565b600b80546001600160a01b0319166001600160a01b0383169081179091556040517f9f43633794b5ba3d1845b82132900d300d24b92fcb6605de9ef0f5e8fde1fa9d90600090a250565b600354600160a81b900460ff1680610cf65750600354600160a01b900460ff16155b610d595760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610646565b600354600160a81b900460ff16158015610d83576003805461ffff60a01b191661010160a01b1790555b6003546001600160a01b03163314610dad5760405162461bcd60e51b815260040161064690611826565b8651610dc09060059060208a0190611514565b508551610dd4906004906020890190611514565b50600680546001600160a01b038088166001600160a01b03199283161790925560098054878416908316179055600b8054928616929091169190911790556007829055610e256305a39a80836118a1565b600855600a829055610e413369f3859ffa9ede12c00000611119565b8015610e55576003805460ff60a81b191690555b50505050505050565b6003546001600160a01b03163314610e885760405162461bcd60e51b815260040161064690611826565b6001600160a01b038116610eed5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610646565b6108c6816114b6565b6009546001600160a01b03163314610f205760405162461bcd60e51b81526004016106469061185b565b6001600160a01b038116610f5f5760405162461bcd60e51b8152600401610646906020808252600490820152637a65726f60e01b604082015260600190565b600980546001600160a01b0319166001600160a01b0383169081179091556040517f455179cf5c44d7c33b82c6844137cb2520e0cd930df26165c2c10b4bf66506a790600090a250565b6001600160a01b03831661100b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610646565b6001600160a01b03821661106c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610646565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6110d882826113b2565b610a04823361085b846040518060600160405280602481526020016119e7602491396001600160a01b0388166000908152600160205260408120903361083a565b6001600160a01b03821661116f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610646565b60025461117c908261139f565b6002556001600160a01b0382166000908152602081905260409020546111a2908261139f565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610692565b6001600160a01b0383166112545760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610646565b6001600160a01b0382166112b65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610646565b6112f381604051806060016040528060268152602001611999602691396001600160a01b0386166000908152602081905260409020549190611373565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611322908261139f565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016110c1565b600081848411156113975760405162461bcd60e51b815260040161064691906117d3565b505050900390565b60006113ab82846118a1565b9392505050565b6001600160a01b0382166114125760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610646565b61144f81604051806060016040528060228152602001611977602291396001600160a01b0385166000908152602081905260409020549190611373565b6001600160a01b0383166000908152602081905260409020556002546114759082611508565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610692565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006113ab82846118f8565b8280546115209061190f565b90600052602060002090601f0160209004810192826115425760008555611588565b82601f1061155b57805160ff1916838001178555611588565b82800160010185558215611588579182015b8281111561158857825182559160200191906001019061156d565b50611594929150611598565b5090565b5b808211156115945760008155600101611599565b80356001600160a01b03811681146115c457600080fd5b919050565b600082601f8301126115d9578081fd5b813567ffffffffffffffff808211156115f4576115f4611960565b604051601f8301601f19908116603f0116810190828211818310171561161c5761161c611960565b81604052838152866020858801011115611634578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215611661578081fd5b6113ab826115ad565b6000806040838503121561167c578081fd5b611685836115ad565b9150611693602084016115ad565b90509250929050565b6000806000606084860312156116b0578081fd5b6116b9846115ad565b92506116c7602085016115ad565b9150604084013590509250925092565b600080604083850312156116e9578182fd5b6116f2836115ad565b946020939093013593505050565b600060208284031215611711578081fd5b815180151581146113ab578182fd5b60008060008060008060c08789031215611738578182fd5b863567ffffffffffffffff8082111561174f578384fd5b61175b8a838b016115c9565b97506020890135915080821115611770578384fd5b5061177d89828a016115c9565b95505061178c604088016115ad565b935061179a606088016115ad565b92506117a8608088016115ad565b915060a087013590509295509295509295565b6000602082840312156117cc578081fd5b5035919050565b6000602080835283518082850152825b818110156117ff578581018301518582016040015282016117e3565b818111156118105783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f4f6e6c792074726561737572792066756e6420616464726573732063616e20746040820152653934b3b3b2b960d11b606082015260800190565b600082198211156118b4576118b461194a565b500190565b6000826118d457634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156118f3576118f361194a565b500290565b60008282101561190a5761190a61194a565b500390565b600181811c9082168061192357607f821691505b6020821081141561194457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220bfb8e7c0de3b2d75f4c393fa5b52e4746f287e61e43e93e0a1fc737b1d745bf664736f6c63430008040033

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