Contract 0x8201532917e55bA29674Ef4E88FFe0b775f1BaE8 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb9d7947867e4161cc0e94a0097fc10c2dd7cd01dac59a98a4747712ec23e31b3Approve364576512022-12-05 14:11:041 day 12 hrs ago0x28909ea5e491c0db2812c02b2b801b50f0892be8 IN  Tower Finance: TOWER Token0 MATIC0.000870346523 35.779918757
0xb2f6a753f08809c09ce5d65e589e72ca8b61ca87c6e6b1dd74a81003f5a1da47Approve364576332022-12-05 14:10:281 day 12 hrs ago0x28909ea5e491c0db2812c02b2b801b50f0892be8 IN  Tower Finance: TOWER Token0 MATIC0.000923866503 37.980123459
0xc99bea1820abe2c70a51622f95d3167f75c99f850c7ffe12504dac4343060494Approve362557052022-11-30 14:04:276 days 12 hrs ago0x1b20813c0d22f0d366aa93b5567a048035487af7 IN  Tower Finance: TOWER Token0 MATIC0.003181638528 130.797061824
0x0c21166c3e5781c9c7d301fcfb7c35138c58eb67b09c9f4b89a8fef6a6a83efaApprove362557012022-11-30 14:04:196 days 12 hrs ago0x1b20813c0d22f0d366aa93b5567a048035487af7 IN  Tower Finance: TOWER Token0 MATIC0.003314064539 136.241091045
0xbde9a441bfb93e24acfe1777d72a0782d6175bfdc17ea508b2ad7909f1ff38feApprove355666352022-11-13 19:31:2123 days 7 hrs ago0x9bdbdb4a8f7f816c87a67f5281484ed902c6b942 IN  Tower Finance: TOWER Token0 MATIC0.001398271014 30.000021773
0xdd9dac2cdf9d1933b55581e9d1a94d56a20dab1c02659fabd49487c5d63c2752Approve355478462022-11-13 8:37:3323 days 18 hrs ago0x9bdbdb4a8f7f816c87a67f5281484ed902c6b942 IN  Tower Finance: TOWER Token0 MATIC0.00174715077 37.494919637
0x2cbc4f827e5c479c5a959dadb6a4aabcef0fbc38227dda17cb5cac86a0ebd102Approve354462942022-11-10 17:48:1226 days 8 hrs ago0x59a0815f8219b96c5af932a2458c58ab91f5e1fc IN  Tower Finance: TOWER Token0 MATIC0.007991971323 271.937504642
0xb755b8e6f77f5c0f1fa953ace4e4ad5b29e3acec27b52338356d08f152f39ad2Approve354462062022-11-10 17:45:0826 days 8 hrs ago0x59a0815f8219b96c5af932a2458c58ab91f5e1fc IN  Tower Finance: TOWER Token0 MATIC0.009290694618 199.332631425
0x5e275cb2451e3785feb4cac58e2c0f7a5f92cc242d7dff9e3ccc53cf1b21c696Approve354461352022-11-10 17:42:4226 days 8 hrs ago0x59a0815f8219b96c5af932a2458c58ab91f5e1fc IN  Tower Finance: TOWER Token0 MATIC0.016631002622 357.648279026
0x28384b2ccd59b870b9d417de507dcaaa7f6c5bc843a744bdc86f97fd48d45f6eTransfer354460842022-11-10 17:41:0026 days 8 hrs ago0x80fbf1ad5353e0bc3924f8313847767674e6323f IN  Tower Finance: TOWER Token0 MATIC0.027256653837 579.793108784
0xb72dcbf552a8b321081a1b4c4ff60b4372861c337ebe6be11ec9f9437e9041c9Approve354095442022-11-09 20:38:1627 days 6 hrs ago0x80fbf1ad5353e0bc3924f8313847767674e6323f IN  Tower Finance: TOWER Token0 MATIC0.006574531532 141.057124863
0x81cc486ebfa022b67c365f2d1ea48f176d975b98b3d786ea57e4a4142721a468Approve354076412022-11-09 19:32:5027 days 7 hrs ago0x80fbf1ad5353e0bc3924f8313847767674e6323f IN  Tower Finance: TOWER Token0 MATIC0.010452682039 224.263168907
0xf7106d93ef8aab474b048010fb4aadd61ce5012c7f5af388385a216347526e20Approve353306732022-11-07 22:32:3029 days 4 hrs ago0x80fbf1ad5353e0bc3924f8313847767674e6323f IN  Tower Finance: TOWER Token0 MATIC0.072020785827 1,550.801787804
0xa88e132a956486c1e1c8c86219b7d2860b86c655352751c6c5c264b4f113238eApprove352283352022-11-05 10:49:2931 days 15 hrs ago0x3df2a3e6e3328dac7873851e9b907e8dbe7f22ce IN  Tower Finance: TOWER Token0 MATIC0.002341268613 96.249480527
0x9779586b9f7edb54bff4fef95b6fea327ab814dd6187de6c6d58024a647817c0Approve351743862022-11-04 3:18:4432 days 23 hrs ago0xf7401728edd23290d8099ed73f155101dcf8cc0c IN  Tower Finance: TOWER Token0 MATIC0.06937492,852
0xee347d6e096a3574ff12574bd2db6a087db98631653a911fd23a7c0220116ca3Approve349460592022-10-29 12:53:5338 days 13 hrs ago0x8534a1cb741d8a3ae3e1269758f9378766aba99d IN  Tower Finance: TOWER Token0 MATIC0.000731442308 30.06957076
0xbed798bb05af8aa81b112a83560524bdbdfe885e57f4a4970d6d22048351a7e4Approve348045742022-10-26 1:49:2942 days 50 mins ago0x76be52fd69e626201ddae454a727114e684a884e IN  Tower Finance: TOWER Token0 MATIC0.002415549656 99.303171884
0x55d055ad67f405d142aa07ac8d90d8ab9b81ef6250c176c3e65d92fe46f115c4Approve348045712022-10-26 1:49:2342 days 50 mins ago0x76be52fd69e626201ddae454a727114e684a884e IN  Tower Finance: TOWER Token0 MATIC0.00237613291 97.682750696
0xc5ad7f4c315d696cd451fc14816d3b96e4beb92c5827df348f0f784d09f3c9baApprove343513742022-10-14 22:46:1253 days 3 hrs ago0x81eb4a92d31be8223e04c0d2c6428f15686ebeac IN  Tower Finance: TOWER Token0 MATIC0.00523850321 215.354705487
0x51271b2d5506c9b5bde6eacff5ef297a05b22e944b3faa0d896312f0dbdc1d89Approve343513702022-10-14 22:46:0453 days 3 hrs ago0x81eb4a92d31be8223e04c0d2c6428f15686ebeac IN  Tower Finance: TOWER Token0 MATIC0.004198205572 172.588101659
0x62991767f555a02fda67e1d2d584c85aebb0c2121c084fe51feaa69e6eef9875Approve333785462022-09-21 9:32:4376 days 17 hrs ago0xba373232dae4a6a1d4a7bbb250ae3bbc9eb34aa6 IN  Tower Finance: TOWER Token0 MATIC0.00072975 30.000000016
0x80e25e442fc41b9039484aaa737ae08f3716559c8dcb13a93b82de9d1204b8ffPool Mint331900172022-09-16 19:30:4281 days 7 hrs ago0xbe257fc43bafc6af01d8c4001a73bf3f0853d0a4 IN  Tower Finance: TOWER Token0 MATIC0.001199069398 40.053091448
0xf52bf94a5a7ee7f0b17bf9784016606bb3697a468912eb06e307459287584efbApprove314935782022-08-04 2:01:57125 days 38 mins ago0x0692ee6b5c88870da8105afeaa834a20091a29ff IN  Tower Finance: TOWER Token0 MATIC0.001783113604 38.256851781
0x35dc7249af91c06f42a37890feeca7c5e666d0a9f35ca6d385cd16e09c6f7500Approve312640422022-07-29 5:27:50130 days 21 hrs ago0xd31bc504a90ba533c54b03664a70c43126478fba IN  Tower Finance: TOWER Token0 MATIC0.00072975 30.000000031
0xd8a1288020684b47c1e450a3a9bfc918d1af1970799981a31900f1e297eaedadApprove312639522022-07-29 5:24:46130 days 21 hrs ago0xd31bc504a90ba533c54b03664a70c43126478fba IN  Tower Finance: TOWER Token0 MATIC0.000729750002 30.000000092
[ Download CSV Export 

OVERVIEW

A fractional-algorithmic stablecoin protocol.

Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Dollar

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 11 : Dollar.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./ERC20/ERC20Custom.sol";
import "./Share.sol";
import "./interfaces/ITreasury.sol";
import "./interfaces/IDollar.sol";

contract Dollar is ERC20Custom, IDollar, Ownable, Initializable {
    // ERC20
    string public symbol;
    string public name;
    uint8 public constant decimals = 18;
    uint256 public constant genesis_supply = 10 ether; // minted at genesis for liquidity pool seeding

    // CONTRACTS
    address public treasury;

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

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

    function initialize(
        string memory _name,
        string memory _symbol,
        address _treasury
    ) external initializer onlyOwner {
        name = _name;
        symbol = _symbol;
        treasury = _treasury;
        _mint(msg.sender, genesis_supply);
    }

    function poolBurnFrom(address _address, uint256 _amount) external override onlyPools {
        super._burnFrom(_address, _amount);
        emit DollarBurned(_address, msg.sender, _amount);
    }

    function poolMint(address _address, uint256 _amount) external override onlyPools {
        super._mint(_address, _amount);
        emit DollarMinted(msg.sender, _address, _amount);
    }

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

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

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

    event TreasuryChanged(address indexed newTreasury);
    event DollarBurned(address indexed from, address indexed to, uint256 amount);
    event DollarMinted(address indexed from, address indexed to, uint256 amount);
}

File 2 of 11 : 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 3 of 11 : 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 4 of 11 : 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 5 of 11 : 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 6 of 11 : 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 11 : IDollar.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.4;
pragma experimental ABIEncoderV2;

interface IDollar {
    function poolBurnFrom(address _address, uint256 _amount) external;

    function poolMint(address _address, uint256 m_amount) external;
}

File 8 of 11 : 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 9 of 11 : 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 10 of 11 : 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 11 of 11 : 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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DollarBurned","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":"DollarMinted","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newTreasury","type":"address"}],"name":"TreasuryChanged","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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"}],"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":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"poolBurnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"poolMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasuryAddress","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"}]

608060405234801561001057600080fd5b5061001a3361001f565b610071565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611438806100806000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806361d027b3116100b85780638da5cb5b1161007c5780638da5cb5b146102b957806395d89b41146102ca578063a457c2d7146102d2578063a9059cbb146102e5578063dd62ed3e146102f8578063f2fde38b1461033157600080fd5b806361d027b3146102375780636605bfda1461026257806370a0823114610275578063715018a61461029e57806379cc6790146102a657600080fd5b806318160ddd1161010a57806318160ddd146101c357806323b872dd146101d5578063313ce567146101e8578063395093511461020257806342966c681461021557806351e238e31461022857600080fd5b806306fdde0314610147578063077f224a14610165578063095ea7b31461017a5780630a0c165a1461019d5780630c407d56146101b0575b600080fd5b61014f610344565b60405161015c919061122b565b60405180910390f35b6101786101733660046111a2565b6103d2565b005b61018d610188366004611159565b61051f565b604051901515815260200161015c565b6101786101ab366004611159565b610535565b6101786101be366004611159565b610634565b6002545b60405190815260200161015c565b61018d6101e336600461111e565b61072b565b6101f0601281565b60405160ff909116815260200161015c565b61018d610210366004611159565b6107a5565b610178610223366004611213565b6107db565b6101c7678ac7230489e8000081565b60065461024a906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b6101786102703660046110d2565b6107e8565b6101c76102833660046110d2565b6001600160a01b031660009081526020819052604090205490565b6101786108a4565b6101786102b4366004611159565b6108da565b6003546001600160a01b031661024a565b61014f610926565b61018d6102e0366004611159565b610933565b61018d6102f3366004611159565b610982565b6101c76103063660046110ec565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61017861033f3660046110d2565b61098f565b60058054610351906112e2565b80601f016020809104026020016040519081016040528092919081815260200182805461037d906112e2565b80156103ca5780601f1061039f576101008083540402835291602001916103ca565b820191906000526020600020905b8154815290600101906020018083116103ad57829003601f168201915b505050505081565b600354600160a81b900460ff16806103f45750600354600160a01b900460ff16155b61045c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b600354600160a81b900460ff16158015610486576003805461ffff60a01b191661010160a01b1790555b6003546001600160a01b031633146104b05760405162461bcd60e51b81526004016104539061127e565b83516104c3906005906020870190610f96565b5082516104d7906004906020860190610f96565b50600680546001600160a01b0319166001600160a01b03841617905561050533678ac7230489e80000610a27565b8015610519576003805460ff60a81b191690555b50505050565b600061052c338484610afe565b50600192915050565b600654604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b15801561057857600080fd5b505afa15801561058c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b09190611182565b6105e55760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b6044820152606401610453565b6105ef8282610c23565b60405181815233906001600160a01b038416907fb53a8a5aa66e96b4627a60632ff728cd6991e142988ea8f28215fae565fe8ad0906020015b60405180910390a35050565b600654604051631246dbf560e01b81523360048201526001600160a01b0390911690631246dbf59060240160206040518083038186803b15801561067757600080fd5b505afa15801561068b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106af9190611182565b6106e45760405162461bcd60e51b815260206004820152600660248201526521706f6f6c7360d01b6044820152606401610453565b6106ee8282610a27565b6040518181526001600160a01b0383169033907f0c0f5df55f02a0601bce877b4f87152a1e95aa77aa55a08f16a8852fcf1f2bf990602001610628565b6000610738848484610c72565b61079b843361079685604051806060016040528060288152602001611392602891396001600160a01b038a16600090815260016020526040812090335b6001600160a01b031681526020810191909152604001600020549190610df5565b610afe565b5060019392505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161052c9185906107969086610e21565b6107e53382610e34565b50565b6003546001600160a01b031633146108125760405162461bcd60e51b81526004016104539061127e565b6001600160a01b03811661085a5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610453565b600680546001600160a01b0319166001600160a01b0383169081179091556040517fc714d22a2f08b695f81e7c707058db484aa5b4d6b4c9fd64beb10fe85832f60890600090a250565b6003546001600160a01b031633146108ce5760405162461bcd60e51b81526004016104539061127e565b6108d86000610f38565b565b600061090a826040518060600160405280602481526020016113ba602491396109038633610306565b9190610df5565b9050610917833383610afe565b6109218383610e34565b505050565b60048054610351906112e2565b600061052c3384610796856040518060600160405280602581526020016113de602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190610df5565b600061052c338484610c72565b6003546001600160a01b031633146109b95760405162461bcd60e51b81526004016104539061127e565b6001600160a01b038116610a1e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610453565b6107e581610f38565b6001600160a01b038216610a7d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610453565b600254610a8a9082610e21565b6002556001600160a01b038216600090815260208190526040902054610ab09082610e21565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610628565b6001600160a01b038316610b605760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610453565b6001600160a01b038216610bc15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610453565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b610c2d8282610e34565b610c6e8233610796846040518060600160405280602481526020016113ba602491396001600160a01b03881660009081526001602052604081209033610775565b5050565b6001600160a01b038316610cd65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610453565b6001600160a01b038216610d385760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610453565b610d758160405180606001604052806026815260200161136c602691396001600160a01b0386166000908152602081905260409020549190610df5565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610da49082610e21565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610c16565b60008184841115610e195760405162461bcd60e51b8152600401610453919061122b565b505050900390565b6000610e2d82846112b3565b9392505050565b6001600160a01b038216610e945760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610453565b610ed18160405180606001604052806022815260200161134a602291396001600160a01b0385166000908152602081905260409020549190610df5565b6001600160a01b038316600090815260208190526040902055600254610ef79082610f8a565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610628565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610e2d82846112cb565b828054610fa2906112e2565b90600052602060002090601f016020900481019282610fc4576000855561100a565b82601f10610fdd57805160ff191683800117855561100a565b8280016001018555821561100a579182015b8281111561100a578251825591602001919060010190610fef565b5061101692915061101a565b5090565b5b80821115611016576000815560010161101b565b80356001600160a01b038116811461104657600080fd5b919050565b600082601f83011261105b578081fd5b813567ffffffffffffffff8082111561107657611076611333565b604051601f8301601f19908116603f0116810190828211818310171561109e5761109e611333565b816040528381528660208588010111156110b6578485fd5b8360208701602083013792830160200193909352509392505050565b6000602082840312156110e3578081fd5b610e2d8261102f565b600080604083850312156110fe578081fd5b6111078361102f565b91506111156020840161102f565b90509250929050565b600080600060608486031215611132578081fd5b61113b8461102f565b92506111496020850161102f565b9150604084013590509250925092565b6000806040838503121561116b578182fd5b6111748361102f565b946020939093013593505050565b600060208284031215611193578081fd5b81518015158114610e2d578182fd5b6000806000606084860312156111b6578283fd5b833567ffffffffffffffff808211156111cd578485fd5b6111d98783880161104b565b945060208601359150808211156111ee578384fd5b506111fb8682870161104b565b92505061120a6040850161102f565b90509250925092565b600060208284031215611224578081fd5b5035919050565b6000602080835283518082850152825b818110156112575785810183015185820160400152820161123b565b818111156112685783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156112c6576112c661131d565b500190565b6000828210156112dd576112dd61131d565b500390565b600181811c908216806112f657607f821691505b6020821081141561131757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220377482f55c7b5f7b659a36e1a6b3cf7e61ae30e65addc786f0271b266a5c657564736f6c63430008040033

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.