Contract 0xD5943259123b2ED1c1EbC9Bb1Bff307580fefF93

Contract Overview

Balance:
0 FTM

FTM Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x495f70af5ca851afdf2b1b4d441853602f32206e3d7423dd520ee32fa33a95c3Buy Tokens232325282021-11-27 0:16:4610 days 12 hrs ago0xc2843e2504a42781e55638f56747ad15bf5a2369 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.039117774213
0x012b0c2f54487026599a581c1e9efc9c7c144768e2df3933671a4c4ab4c233b1Buy Tokens232289642021-11-26 23:20:4610 days 13 hrs ago0x42a6b34557948b95bdf0325a1d48c5652fa2233a IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.028195153491
0x5328d61c69776bda0fa45f98e50f804fa603a3cad1f54dc35d8432cf2648b4eaBuy Tokens232153872021-11-26 20:08:4510 days 16 hrs ago0x01c0bd4dbc178c9f2e84c545603e0f0392d1a553 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.029559274872
0xdf468e498bcdda728012085f1e4784a146d043ba7c5969552ed8f2fccbe63173Buy Tokens232025862021-11-26 17:05:5710 days 19 hrs ago0xb81617e298025a09c36347a32e3a0478cc8e6d1e IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.099524329094
0xc79101c8b9fb68151b24c2bd2474f9461626576a5c4b4f4f9817b0e3eb43220fBuy Tokens231990682021-11-26 16:11:1410 days 20 hrs ago0xf9468a80e896cece6384da136715b02aa60fd287 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.066632435683
0x707ad1c6a7be2fbd2ac2199030f9ed971601f7c827696fdadfe3c2355c532c90Buy Tokens231977272021-11-26 15:50:0310 days 20 hrs ago0xf84c7b497e6f4f8beba75c776d6c1fde7f431bef IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.050123862247
0xe0501d6897a36e45cfe06a7a7e115f787a86850993dec3517b853e7158bba71bBuy Tokens231975012021-11-26 15:46:2410 days 20 hrs ago0xcfe8ce9eece778b1f71555b56f7fcd68b17226a4 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.049329749229
0xaed280769d03bfaf266e799758fc42fe8cda43250f9b93a4d8a2479e8d88ae94Buy Tokens231887332021-11-26 13:28:5510 days 22 hrs ago0x531484fce2a054d2ec94e79d6a405d89878587ac IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.049486722384
0x957a5416500b7b8f8ffedf8091511e0c63b3176dc927d83bf9a274946a14a131Buy Tokens231625302021-11-26 6:42:3011 days 5 hrs ago0x021c9b663eb31ef5b44a1119ff3518ab902d277e IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.020273094632
0xe81e35b9a2ece8ce334551abc4c63d39617cf38f4e04a25971df87200219175eBuy Tokens231617402021-11-26 6:31:0411 days 5 hrs ago0x263c2f09052cf41187936543fff22fa4a5c809f3 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.021603119305
0x399bafea1a3b554ddc3fc802dc7230cb8835eea034b22619b3ce8460661aed1fBuy Tokens231614772021-11-26 6:27:1711 days 5 hrs ago0xad0cd6affa42d98d01e675ae3e2a12f625043592 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.021911759408
0x3d3377b0b2b1466d11ef10c493e088efc85b04bf8c1f643454993d7ea0012498Buy Tokens231560692021-11-26 5:10:0811 days 7 hrs ago0x9b56baba396f8831ffcf22644dd946d25c3ead24 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.032187333041
0xd88b5b009808f03631562ebdf6499ce659d51e752bc6fb865f4a97cb1a4fb277Buy Tokens231558762021-11-26 5:07:2511 days 7 hrs ago0xed24226381f5144562f0f50c69b7abbaf5a2f093 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.032953842339
0x6f71eccfcc62be85e6c9a6f20cfa2e271ede3eab6f88606978becfc00e961577Buy Tokens231556882021-11-26 5:04:4511 days 7 hrs ago0x5ea6838036e80f29f8e06c07e2bd225aa324e956 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.036272683601
0xc9bed743c484399ea090cb956f32cb63edfde3705299633c2ee02e9ab6dbe87dBuy Tokens231491682021-11-26 3:25:1011 days 8 hrs ago0xf4e1914331793d1747dca72268efbfc6eb76d417 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.041317217425
0x6cf27ac70076cd6f37ea284b4b93054c1fb11670a42412060f51cdf7d7864f7dBuy Tokens231465902021-11-26 2:42:5911 days 9 hrs ago0x902ee0392ce9c3e1cf05797e140a31be9cec68a9 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.031722662914
0x1e4338f64b48076b31736c60bfe88ac1acbb4dc181a0155982aa48e669db6deeBuy Tokens231452222021-11-26 2:23:3711 days 9 hrs ago0xf220404cdecd90e78a280b2f13f0f9cd3336b1e0 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.037180017877
0x0754d764d3b99a9cb7ee0b900c194c84b1e40054de7df92cca06a3cb9d6d7e31Buy Tokens231448902021-11-26 2:18:5911 days 10 hrs ago0xe4203423aa354a78d7b1e1ecf36f5fcf4d0c4a06 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.041021202981
0xdcc0fd711b8bea55f795c249f57dc16a8085f3786d2dc2e9003c4fb4c1940fadBuy Tokens231443342021-11-26 2:11:0811 days 10 hrs ago0x93ca9be109defbfe5f6ef66f4eccd7f838c8c3dd IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.037932530015
0x7aa1a6bc0b26b6626ca22375f2aa1246c1141eb50a43c51e78e45828dd12df02Buy Tokens231441992021-11-26 2:08:5311 days 10 hrs ago0x4688aed7f1fcd3a94e056edf43b9875cc0f2de5b IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.038433042741
0xc800899ab21ee2039888beb38ec608c9269c317b6be1855dd1c5289f3bac872bBuy Tokens231434072021-11-26 1:57:1111 days 10 hrs ago0xa096990e28d8633296ad1fba2bcab69df7f3c40d IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.041038051803
0xf4f9264b92a0f00ee9e676a9cdb404d94117320a2072a0aea4a740b5d5b61458Buy Tokens231406402021-11-26 1:15:5911 days 11 hrs ago0x6b73f2b5ddf22a3e190893bbd83e2f0a882a7dac IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.031639905267
0x8b7173932cdc12f864818f3ae95385dc4eade425f15fd8e891d03682962a6892Buy Tokens231383722021-11-26 0:44:0311 days 11 hrs ago0xbaf554b98339fb0bd10e1a5f825c38ad3eea4912 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.038912657376
0xf9c22a40d60f8fa448a5be14198f684bcc12f65f3b6698eb3b99ba56efb71596Buy Tokens231378062021-11-26 0:35:1211 days 11 hrs ago0x25b1556668033a13d4f4a6b7b4a40fbd475c3788 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.032695747557
0xdae75af83c44166a7167e846b0a6f8d2a2f159ab26a2cbb209f4bcaf123a0e5eBuy Tokens231375862021-11-26 0:31:5111 days 11 hrs ago0x1df05767e71f5ae735cbbb74fe4ed75825937872 IN  0xd5943259123b2ed1c1ebc9bb1bff307580feff930 FTM0.035240010798
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xa70b1ca3fddd2463096a54f65877606dbd4fc6eb35c2c2964a3c67668ed26db5231319952021-11-25 23:09:0611 days 13 hrs ago 0x772231966cd8752dd90fcb12e19fc7af33ce51a8  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BGhostCrowdSale

Compiler Version
v0.5.5+commit.47a71e8f

Optimization Enabled:
Yes with 200 runs

Other Settings:
petersburg EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 16 : BGhostCrowdSale.sol
pragma solidity ^0.5.5;

import "./GhostCrowdSale.sol";

interface IGhostCrowdSale {
    function getInvestor(address investor) external view returns (bool, uint256);
}

contract BGhostCrowdSale is GhostCrowdSale {

    address private _devLinearVestingContract;
    IERC20 private _ghostToken;
    uint256 private _devVesting;

    constructor(
        uint256 _price,
        address payable _wallet,
        IERC20 _token,
        IERC20 _buyingToken,
        uint256 _openingTime,
        uint256 _closingTime,
        uint256 _minCap,
        uint256 _maxCap,
        uint256 devVesting,
        address devLinearVestingContract,
        IERC20 ghostToken) 
        GhostCrowdSale(_price, _wallet, _token, _buyingToken, _openingTime, _closingTime, _minCap, _maxCap)
    public {
        require(devLinearVestingContract != address(0), "BGhostCrowdSale: devLinearVestingContract is the zero address");
        require(address(ghostToken) != address(0), "BGhostCrowdSale: ghostToken is the zero address");
        require(address(devVesting) != address(0), "BGhostCrowdSale: devVesting is the zero address");
        _devLinearVestingContract = devLinearVestingContract;
        _ghostToken = ghostToken;
        _devVesting = devVesting;
    }

    /**
     * @dev Finishes the Crowdsale
     */
    function _finalization() internal {
        _ghostToken.transfer(_devLinearVestingContract, _devVesting);
    }
}

File 2 of 16 : GhostCrowdSale.sol
pragma solidity ^0.5.5;

import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";

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

contract GhostCrowdSale is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // General
    IERC20 private _token;
    IERC20 private _buyingToken;
    uint256 private _price;
    uint256 private _weiRaised;
    address payable private _wallet;
    uint256 private _minCap;
    uint256 private _maxCap;
    bool private _finalized;
    mapping(address => InvestorData) investors;

    uint256 constant private INVESTOR_CAP = 30e18; // 30 GHST

    // Time declaration
    uint256 private _openingTime;
    uint256 private _closingTime;

    struct InvestorData {
        bool hasInvested;
        uint256 balance;
    }

    event TokensPurchased(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount);
    event CrowdsaleFinalized();
    event TimedCrowdsaleExtended(uint256 prevClosingTime, uint256 newClosingTime);

    /**
     * @dev Reverts if not in crowdsale time range.
     */
    modifier onlyWhileOpen {
        require(isOpen(), "GhostCrowdSale: not open");
        _;
    }

    constructor(
        uint256 price,
        address payable wallet,
        IERC20 token,
        IERC20 buyingToken,
        uint256 openingTime,
        uint256 closingTime,
        uint256 minCap,
        uint256 maxCap)
    public {
        require(price > 0, "GhostCrowdSale: price is 0");
        require(wallet != address(0), "GhostCrowdSale: wallet is the zero address");
        require(address(token) != address(0), "GhostCrowdSale: token is the zero address");
        require(address(buyingToken) != address(0), "GhostCrowdSale: buyingToken is the zero address");
        require(openingTime >= block.timestamp, "GhostCrowdSale: opening time is before current time");
        require(closingTime > openingTime, "GhostCrowdSale: opening time is not before closing time");
        require(minCap > 0, "GhostCrowdSale: minCap is 0");
        require(minCap <= maxCap, "GhostCrowdSale: minCap is bigger than max cap");

        _price = price;
        _wallet = wallet;
        _token = token;
        _buyingToken = buyingToken;
        _finalized = false;
        _openingTime = openingTime;
        _closingTime = closingTime;
        _minCap = minCap;
        _maxCap = maxCap;
    }

    /**
     * @return the token being sold.
     */
    function token() public view returns (IERC20) {
        return _token;
    }

    /**
     * @return the buyingToken of wei raised.
     */
    function buyingToken() public view returns (IERC20) {
        return _buyingToken;
    }

    /**
     * @return the address where funds are collected.
     */
    function wallet() public view returns (address payable) {
        return _wallet;
    }

    /**
     * @return the number of token units a buyer gets per wei.
     */
    function price() public view returns (uint256) {
        return _price;
    }

    /**
     * @return the amount of wei raised.
     */
    function weiRaised() public view returns (uint256) {
        return _weiRaised;
    }

    /**
     * @return true if the crowdsale is finalized, false otherwise.
     */
    function finalized() public view returns (bool) {
        return _finalized;
    }

    /**
     * @return the crowdsale opening time.
     */
    function openingTime() public view returns (uint256) {
        return _openingTime;
    }

    /**
     * @return the crowdsale closing time.
     */
    function closingTime() public view returns (uint256) {
        return _closingTime;
    }

    /**
     * @return the crowdsale minCap.
     */
    function minCap() public view returns (uint256) {
        return _minCap;
    }

    /**
     * @return the crowdsale maxCap.
     */
    function maxCap() public view returns (uint256) {
        return _maxCap;
    }

    /**
     * @return the investor status.
     */
    function getInvestor(address investor) public view returns (bool, uint256) {
        InvestorData memory investorRequested = investors[investor];
        return (investorRequested.hasInvested, investorRequested.balance);
    }

    /**
     * @dev Checks whether the period in which the crowdsale is open has already elapsed.
     * @return Whether crowdsale period has elapsed
     */
    function hasClosed() public view returns (bool) {
        // solhint-disable-next-line not-rely-on-time
        return block.timestamp > _closingTime;
    }
    /**
     * @return true if the crowdsale is open, false otherwise.
     */
    function isOpen() public view returns (bool) {
        // solhint-disable-next-line not-rely-on-time
        return block.timestamp >= _openingTime && block.timestamp <= _closingTime;
    }

    /**
     * @return the crowdsale opening time.
     */
    function setOpeningTime(uint256 time) public {
        require(!hasClosed(), "GhostCrowdSale: already closed");

        emit TimedCrowdsaleExtended(_openingTime, time);
        _openingTime = time;
    }

    /**
     * @return the crowdsale closing time.
     */
    function setClosingTime(uint256 time) public {
        require(!hasClosed(), "GhostCrowdSale: already closed");

        emit TimedCrowdsaleExtended(_closingTime, time);
        _closingTime = time;
    }

    /**
     * @dev Extend parent behavior requiring purchase to respect investor min funding cap.
     * @param beneficiary Token purchaser
     * @param allowance Amount of wei contributed
     * @param allowance Amount of token to buy
     */
    function _preValidatePurchase(address beneficiary, uint256 allowance, uint256 daiAmount) internal onlyWhileOpen view {
        require(_token.balanceOf(address(this)) != 0, "GhostCrowdSale: Presale soldout");
        require(beneficiary != address(0), "GhostCrowdSale: beneficiary is the zero address");
        require(!investors[beneficiary].hasInvested, "GhostCrowdSale: one participation max.");
        require(allowance != 0, "GhostCrowdSale: allowance is 0");
        require(allowance >= daiAmount, "GhostCrowdSale: not enough DAI allowed");
        require(daiAmount >= _minCap, "GhostCrowdSale: daiAmount minCap breached");
        require(daiAmount <= _maxCap, "GhostCrowdSale: daiAmount maxCap breached");
        require(daiAmount % price() == 0, "GhostCrowdSale: amount input not dividable by price");
    }

    /**
     * @param beneficiary Token purchaser
     */
    function buyTokens(address beneficiary, uint256 daiAmount) public nonReentrant {
        uint256 allowance = _buyingToken.allowance(msg.sender, address(this));
        _preValidatePurchase(beneficiary, allowance, daiAmount);
        _buyingToken.transferFrom(msg.sender, address(this), daiAmount);

        // calculate token amount to be created
        uint256 tokens = _getTokenAmount(daiAmount);

        // update state
        _weiRaised = _weiRaised.add(daiAmount);
        investors[msg.sender].hasInvested = true;
        investors[msg.sender].balance += tokens;

        _processPurchase(beneficiary, tokens);
        emit TokensPurchased(_msgSender(), beneficiary, daiAmount, tokens);

        _forwardFunds(daiAmount);
    }

    /**
     * @dev Executed when a purchase has been validated and is ready to be executed. Doesn't necessarily emit/send
     * tokens.
     * @param beneficiary Address receiving the tokens
     * @param tokenAmount Number of tokens to be purchased
     */
    function _processPurchase(address beneficiary, uint256 tokenAmount) internal {
        _token.safeTransfer(beneficiary, tokenAmount);
    }

    /**
     * @dev Determines how ETH is stored/forwarded on purchases.
     */
    function _forwardFunds(uint256 amount) internal {
        _buyingToken.safeTransfer(_wallet, amount);
    }

    /**
     * @dev Override to extend the way in which ether is converted to tokens.
     * @param weiAmount Value in wei to be converted into tokens
     * @return Number of tokens that can be purchased with the specified _weiAmount
     */
    function _getTokenAmount(uint256 weiAmount) internal view returns (uint256) {
        return weiAmount.div(_price);
    }

    /**
     * @dev Must be called after crowdsale ends, to do some extra finalization
     * work. Calls the contract's finalization function.
     */
    function finalize() public {
        require(!_finalized, "GhostCrowdSale: already finalized");
        require(hasClosed(), "GhostCrowdSale: not closed");

        _finalized = true;

        _finalization();
        emit CrowdsaleFinalized();
    }

    /**
     * @dev Extend crowdsale.
     * @param newClosingTime Crowdsale closing time
     */
    function _extendTime(uint256 newClosingTime) internal {
        require(!hasClosed(), "GhostCrowdSale: already closed");
        require(newClosingTime > _closingTime, "GhostCrowdSale: new closing time is before current closing time");

        emit TimedCrowdsaleExtended(_closingTime, newClosingTime);
        _closingTime = newClosingTime;
    }

    /**
     * @dev Finishes the Crowdsale
     */
    function _finalization() internal {
    }
}

File 3 of 16 : ReentrancyGuard.sol
pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * _Since v2.5.0:_ this module is now much more gas efficient, given net gas
 * metering changes introduced in the Istanbul hardfork.
 */
contract ReentrancyGuard {
    bool private _notEntered;

    constructor () internal {
        // Storing an initial non-zero value makes deployment a bit more
        // expensive, but in exchange the refund on every call to nonReentrant
        // will be lower in amount. Since refunds are capped to a percetange of
        // the total transaction's gas, it is best to keep them low in cases
        // like this one, to increase the likelihood of the full refund coming
        // into effect.
        _notEntered = true;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_notEntered, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _notEntered = false;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _notEntered = true;
    }
}

File 4 of 16 : Address.sol
pragma solidity ^0.5.5;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

File 5 of 16 : SafeERC20.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 16 : IERC20.sol
pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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 7 of 16 : ERC20Pausable.sol
pragma solidity ^0.5.0;

import "./ERC20.sol";
import "../../lifecycle/Pausable.sol";

/**
 * @title Pausable token
 * @dev ERC20 with pausable transfers and allowances.
 *
 * Useful if you want to stop trades until the end of a crowdsale, or have
 * an emergency switch for freezing all token transfers in the event of a large
 * bug.
 */
contract ERC20Pausable is ERC20, Pausable {
    function transfer(address to, uint256 value) public whenNotPaused returns (bool) {
        return super.transfer(to, value);
    }

    function transferFrom(address from, address to, uint256 value) public whenNotPaused returns (bool) {
        return super.transferFrom(from, to, value);
    }

    function approve(address spender, uint256 value) public whenNotPaused returns (bool) {
        return super.approve(spender, value);
    }

    function increaseAllowance(address spender, uint256 addedValue) public whenNotPaused returns (bool) {
        return super.increaseAllowance(spender, addedValue);
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public whenNotPaused returns (bool) {
        return super.decreaseAllowance(spender, subtractedValue);
    }
}

File 8 of 16 : ERC20Mintable.sol
pragma solidity ^0.5.0;

import "./ERC20.sol";
import "../../access/roles/MinterRole.sol";

/**
 * @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole},
 * which have permission to mint (create) new tokens as they see fit.
 *
 * At construction, the deployer of the contract is the only minter.
 */
contract ERC20Mintable is ERC20, MinterRole {
    /**
     * @dev See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the {MinterRole}.
     */
    function mint(address account, uint256 amount) public onlyMinter returns (bool) {
        _mint(account, amount);
        return true;
    }
}

File 9 of 16 : ERC20.sol
pragma solidity ^0.5.0;

import "../../GSN/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {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 ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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 returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public 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 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 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 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 {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _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 {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

        _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 {
        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 {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }
}

File 10 of 16 : Ownable.sol
pragma solidity ^0.5.0;

import "../GSN/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.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

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

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 11 of 16 : SafeMath.sol
pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 12 of 16 : Pausable.sol
pragma solidity ^0.5.0;

import "../GSN/Context.sol";
import "../access/roles/PauserRole.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context, PauserRole {
    /**
     * @dev Emitted when the pause is triggered by a pauser (`account`).
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by a pauser (`account`).
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state. Assigns the Pauser role
     * to the deployer.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Called by a pauser to pause, triggers stopped state.
     */
    function pause() public onlyPauser whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Called by a pauser to unpause, returns to normal state.
     */
    function unpause() public onlyPauser whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 13 of 16 : PauserRole.sol
pragma solidity ^0.5.0;

import "../../GSN/Context.sol";
import "../Roles.sol";

contract PauserRole is Context {
    using Roles for Roles.Role;

    event PauserAdded(address indexed account);
    event PauserRemoved(address indexed account);

    Roles.Role private _pausers;

    constructor () internal {
        _addPauser(_msgSender());
    }

    modifier onlyPauser() {
        require(isPauser(_msgSender()), "PauserRole: caller does not have the Pauser role");
        _;
    }

    function isPauser(address account) public view returns (bool) {
        return _pausers.has(account);
    }

    function addPauser(address account) public onlyPauser {
        _addPauser(account);
    }

    function renouncePauser() public {
        _removePauser(_msgSender());
    }

    function _addPauser(address account) internal {
        _pausers.add(account);
        emit PauserAdded(account);
    }

    function _removePauser(address account) internal {
        _pausers.remove(account);
        emit PauserRemoved(account);
    }
}

File 14 of 16 : MinterRole.sol
pragma solidity ^0.5.0;

import "../../GSN/Context.sol";
import "../Roles.sol";

contract MinterRole is Context {
    using Roles for Roles.Role;

    event MinterAdded(address indexed account);
    event MinterRemoved(address indexed account);

    Roles.Role private _minters;

    constructor () internal {
        _addMinter(_msgSender());
    }

    modifier onlyMinter() {
        require(isMinter(_msgSender()), "MinterRole: caller does not have the Minter role");
        _;
    }

    function isMinter(address account) public view returns (bool) {
        return _minters.has(account);
    }

    function addMinter(address account) public onlyMinter {
        _addMinter(account);
    }

    function renounceMinter() public {
        _removeMinter(_msgSender());
    }

    function _addMinter(address account) internal {
        _minters.add(account);
        emit MinterAdded(account);
    }

    function _removeMinter(address account) internal {
        _minters.remove(account);
        emit MinterRemoved(account);
    }
}

File 15 of 16 : Roles.sol
pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

File 16 of 16 : Context.sol
pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"beneficiary","type":"address"},{"name":"daiAmount","type":"uint256"}],"name":"buyTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"hasClosed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxCap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minCap","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOpen","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"closingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"time","type":"uint256"}],"name":"setClosingTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"finalize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyingToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"investor","type":"address"}],"name":"getInvestor","outputs":[{"name":"","type":"bool"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"time","type":"uint256"}],"name":"setOpeningTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"finalized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"openingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_price","type":"uint256"},{"name":"_wallet","type":"address"},{"name":"_token","type":"address"},{"name":"_buyingToken","type":"address"},{"name":"_openingTime","type":"uint256"},{"name":"_closingTime","type":"uint256"},{"name":"_minCap","type":"uint256"},{"name":"_maxCap","type":"uint256"},{"name":"devVesting","type":"uint256"},{"name":"devLinearVestingContract","type":"address"},{"name":"ghostToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"purchaser","type":"address"},{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"TokensPurchased","type":"event"},{"anonymous":false,"inputs":[],"name":"CrowdsaleFinalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"prevClosingTime","type":"uint256"},{"indexed":false,"name":"newClosingTime","type":"uint256"}],"name":"TimedCrowdsaleExtended","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

60806040523480156200001157600080fd5b506040516101608062001b4883398101806040526101608110156200003557600080fd5b50805160208083015160408401516060850151608086015160a087015160c088015160e08901516101008a01516101208b0151610140909b0151999a979996989597949693959294919390928b908b908b908b908b908b908b908b90600090620000a390620005ec811b901c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060008054600160a01b60ff021916740100000000000000000000000000000000000000001790558715156200018357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f47686f737443726f776453616c653a2070726963652069732030000000000000604482015290519081900360640190fd5b6001600160a01b0387161515620001e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018062001aeb602a913960400191505060405180910390fd5b6001600160a01b038616151562000249576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180620019cb6029913960400191505060405180910390fd5b6001600160a01b0385161515620002ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018062001a52602f913960400191505060405180910390fd5b4284101562000307576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603381526020018062001b156033913960400191505060405180910390fd5b83831162000361576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180620019946037913960400191505060405180910390fd5b811515620003d057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f47686f737443726f776453616c653a206d696e43617020697320300000000000604482015290519081900360640190fd5b808211156200042b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d81526020018062001a81602d913960400191505060405180910390fd5b600397909755600580546001600160a01b03199081166001600160a01b03988916179091556001805482169688169690961790955560028054909516938616939093179093556008805460ff19169055600a55600b9190915560065560079190915582161515620004e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d81526020018062001aae603d913960400191505060405180910390fd5b6001600160a01b03811615156200054b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018062001a23602f913960400191505060405180910390fd5b6001600160a01b0383161515620005ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180620019f4602f913960400191505060405180910390fd5b600c80546001600160a01b039384166001600160a01b031991821617909155600d8054929093169116179055600e5550620005f09650505050505050565b3390565b61139480620006006000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806368b7693b116100b8578063a035b1fe1161007c578063a035b1fe1461026a578063abdd11a814610272578063b3f05b971461028f578063b7a8807c14610297578063f2fde38b1461029f578063fc0c546a146102c557610137565b806368b7693b14610209578063715018a6146102115780638da5cb5b146102195780638f32d59b146102215780638f35a75e1461022957610137565b806347535d7b116100ff57806347535d7b146101b05780634b6753bc146101b85780634b89c41d146101c05780634bb278f3146101dd578063521eb273146101e557610137565b80630752881a1461013c5780631515bc2b1461016a57806323548b8b146101865780633fa615b0146101a05780634042b66f146101a8575b600080fd5b6101686004803603604081101561015257600080fd5b506001600160a01b0381351690602001356102cd565b005b610172610527565b604080519115158252519081900360200190f35b61018e61052f565b60408051918252519081900360200190f35b61018e610535565b61018e61053b565b610172610541565b61018e61055c565b610168600480360360208110156101d657600080fd5b5035610562565b610168610601565b6101ed6106e4565b604080516001600160a01b039092168252519081900360200190f35b6101ed6106f3565b610168610702565b6101ed6107aa565b6101726107b9565b61024f6004803603602081101561023f57600080fd5b50356001600160a01b03166107dd565b60408051921515835260208301919091528051918290030190f35b61018e610828565b6101686004803603602081101561028857600080fd5b503561082e565b6101726108cd565b61018e6108d6565b610168600480360360208110156102b557600080fd5b50356001600160a01b03166108dc565b6101ed610946565b600054600160a01b900460ff1615156103305760408051600160e51b62461bcd02815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60008054600160a01b60ff021916815560025460408051600160e11b636eb1769f02815233600482015230602482015290516001600160a01b039092169163dd62ed3e91604480820192602092909190829003018186803b15801561039457600080fd5b505afa1580156103a8573d6000803e3d6000fd5b505050506040513d60208110156103be57600080fd5b505190506103cd838284610955565b60025460408051600160e01b6323b872dd0281523360048201523060248201526044810185905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b15801561042a57600080fd5b505af115801561043e573d6000803e3d6000fd5b505050506040513d602081101561045457600080fd5b506000905061046283610ca0565b600454909150610478908463ffffffff610cbd16565b600455336000908152600960205260409020805460ff191660019081178255018054820190556104a88482610d21565b836001600160a01b03166104ba610d42565b6001600160a01b03167f6faf93231a456e552dbc9961f58d9713ee4f2e69d15f1975b050ef0911053a7b8584604051808381526020018281526020019250505060405180910390a361050b83610d46565b505060008054600160a01b60ff021916600160a01b1790555050565b600b54421190565b60075490565b60065490565b60045490565b6000600a5442101580156105575750600b544211155b905090565b600b5490565b61056a610527565b156105bf5760408051600160e51b62461bcd02815260206004820152601e60248201527f47686f737443726f776453616c653a20616c726561647920636c6f7365640000604482015290519081900360640190fd5b600b54604080519182526020820183905280517f46711e222f558a07afd26e5e71b48ecb0a8b2cdcd40faeb1323e05e2c76a2f329281900390910190a1600b55565b60085460ff161561064657604051600160e51b62461bcd0281526004018080602001828103825260218152602001806111f86021913960400191505060405180910390fd5b61064e610527565b15156106a45760408051600160e51b62461bcd02815260206004820152601a60248201527f47686f737443726f776453616c653a206e6f7420636c6f736564000000000000604482015290519081900360640190fd5b6008805460ff191660011790556106b9610d69565b6040517f9270cc390c096600a1c17c44345a1ba689fafd99d97487b10cfccf86cf73183690600090a1565b6005546001600160a01b031690565b6002546001600160a01b031690565b61070a6107b9565b15156107605760408051600160e51b62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600080546001600160a01b03166107ce610d42565b6001600160a01b031614905090565b6000806107e86111e0565b5050506001600160a01b03166000908152600960209081526040918290208251808401909352805460ff1615158084526001909101549290910182905291565b60035490565b610836610527565b1561088b5760408051600160e51b62461bcd02815260206004820152601e60248201527f47686f737443726f776453616c653a20616c726561647920636c6f7365640000604482015290519081900360640190fd5b600a54604080519182526020820183905280517f46711e222f558a07afd26e5e71b48ecb0a8b2cdcd40faeb1323e05e2c76a2f329281900390910190a1600a55565b60085460ff1690565b600a5490565b6108e46107b9565b151561093a5760408051600160e51b62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61094381610df2565b50565b6001546001600160a01b031690565b61095d610541565b15156109b35760408051600160e51b62461bcd02815260206004820152601860248201527f47686f737443726f776453616c653a206e6f74206f70656e0000000000000000604482015290519081900360640190fd5b60015460408051600160e01b6370a0823102815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610a0157600080fd5b505afa158015610a15573d6000803e3d6000fd5b505050506040513d6020811015610a2b57600080fd5b50511515610a835760408051600160e51b62461bcd02815260206004820152601f60248201527f47686f737443726f776453616c653a2050726573616c6520736f6c646f757400604482015290519081900360640190fd5b6001600160a01b0383161515610acd57604051600160e51b62461bcd02815260040180806020018281038252602f8152602001806112c1602f913960400191505060405180910390fd5b6001600160a01b03831660009081526009602052604090205460ff1615610b2857604051600160e51b62461bcd0281526004018080602001828103825260268152602001806112686026913960400191505060405180910390fd5b811515610b7f5760408051600160e51b62461bcd02815260206004820152601e60248201527f47686f737443726f776453616c653a20616c6c6f77616e636520697320300000604482015290519081900360640190fd5b80821015610bc157604051600160e51b62461bcd0281526004018080602001828103825260268152602001806113436026913960400191505060405180910390fd5b600654811015610c0557604051600160e51b62461bcd02815260040180806020018281038252602981526020018061123f6029913960400191505060405180910390fd5b600754811115610c4957604051600160e51b62461bcd0281526004018080602001828103825260298152602001806112f06029913960400191505060405180910390fd5b610c51610828565b81811515610c5b57fe5b0615610c9b57604051600160e51b62461bcd02815260040180806020018281038252603381526020018061128e6033913960400191505060405180910390fd5b505050565b6000610cb760035483610e9790919063ffffffff16565b92915050565b600082820183811015610d1a5760408051600160e51b62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600154610d3e906001600160a01b0316838363ffffffff610ed916565b5050565b3390565b600554600254610943916001600160a01b0391821691168363ffffffff610ed916565b600d54600c54600e5460408051600160e01b63a9059cbb0281526001600160a01b039384166004820152602481019290925251919092169163a9059cbb9160448083019260209291908290030181600087803b158015610dc857600080fd5b505af1158015610ddc573d6000803e3d6000fd5b505050506040513d6020811015610d3e57600080fd5b6001600160a01b0381161515610e3c57604051600160e51b62461bcd0281526004018080602001828103825260268152602001806112196026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610d1a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610f2e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0316600160e01b63a9059cbb02179052610c9b908490610fd7565b600081831515610fbf57604051600160e51b62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610f84578181015183820152602001610f6c565b50505050905090810190601f168015610fb15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385811515610fcd57fe5b0495945050505050565b610fe9826001600160a01b03166111a4565b151561103f5760408051600160e51b62461bcd02815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061107d5780518252601f19909201916020918201910161105e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146110df576040519150601f19603f3d011682016040523d82523d6000602084013e6110e4565b606091505b50915091508115156111405760408051600160e51b62461bcd02815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561119e5780806020019051602081101561115c57600080fd5b5051151561119e57604051600160e51b62461bcd02815260040180806020018281038252602a815260200180611319602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906111d857508115155b949350505050565b60408051808201909152600080825260208201529056fe47686f737443726f776453616c653a20616c72656164792066696e616c697a65644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737347686f737443726f776453616c653a20646169416d6f756e74206d696e43617020627265616368656447686f737443726f776453616c653a206f6e652070617274696369706174696f6e206d61782e47686f737443726f776453616c653a20616d6f756e7420696e707574206e6f7420646976696461626c6520627920707269636547686f737443726f776453616c653a2062656e656669636961727920697320746865207a65726f206164647265737347686f737443726f776453616c653a20646169416d6f756e74206d61784361702062726561636865645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656447686f737443726f776453616c653a206e6f7420656e6f7567682044414920616c6c6f776564a165627a7a72305820e1f8975f6b11e40f6f800d054c1cba3a86a2b73bb0073abc32799eabd5c90524002947686f737443726f776453616c653a206f70656e696e672074696d65206973206e6f74206265666f726520636c6f73696e672074696d6547686f737443726f776453616c653a20746f6b656e20697320746865207a65726f20616464726573734247686f737443726f776453616c653a2064657656657374696e6720697320746865207a65726f20616464726573734247686f737443726f776453616c653a2067686f7374546f6b656e20697320746865207a65726f206164647265737347686f737443726f776453616c653a20627579696e67546f6b656e20697320746865207a65726f206164647265737347686f737443726f776453616c653a206d696e43617020697320626967676572207468616e206d6178206361704247686f737443726f776453616c653a206465764c696e65617256657374696e67436f6e747261637420697320746865207a65726f206164647265737347686f737443726f776453616c653a2077616c6c657420697320746865207a65726f206164647265737347686f737443726f776453616c653a206f70656e696e672074696d65206973206265666f72652063757272656e742074696d65000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000afbd356e232029b7f457339c48b2a450b4f994fb0000000000000000000000006797369ef9a7f2ec469e46972decfea107178a5d0000000000000000000000008d11ec38a3eb5e956b052f67da8bdc9bef8abf3e0000000000000000000000000000000000000000000000000000000061a01c780000000000000000000000000000000000000000000000000000000061a410f800000000000000000000000000000000000000000000001043561a8829300000000000000000000000000000000000000000000000000030ca024f987b90000000000000000000000000000000000000000000000000000ad78ebc5ac6200000000000000000000000000000c93d8c43ec92fdb223e922bc8ac7a81311aab412000000000000000000000000cac664de38b28c5a57402d9c6904b6f6587bf81d

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

000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000afbd356e232029b7f457339c48b2a450b4f994fb0000000000000000000000006797369ef9a7f2ec469e46972decfea107178a5d0000000000000000000000008d11ec38a3eb5e956b052f67da8bdc9bef8abf3e0000000000000000000000000000000000000000000000000000000061a01c780000000000000000000000000000000000000000000000000000000061a410f800000000000000000000000000000000000000000000001043561a8829300000000000000000000000000000000000000000000000000030ca024f987b90000000000000000000000000000000000000000000000000000ad78ebc5ac6200000000000000000000000000000c93d8c43ec92fdb223e922bc8ac7a81311aab412000000000000000000000000cac664de38b28c5a57402d9c6904b6f6587bf81d

-----Decoded View---------------
Arg [0] : _price (uint256): 30
Arg [1] : _wallet (address): 0xafbd356e232029b7f457339c48b2a450b4f994fb
Arg [2] : _token (address): 0x6797369ef9a7f2ec469e46972decfea107178a5d
Arg [3] : _buyingToken (address): 0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e
Arg [4] : _openingTime (uint256): 1637883000
Arg [5] : _closingTime (uint256): 1638142200
Arg [6] : _minCap (uint256): 300000000000000000000
Arg [7] : _maxCap (uint256): 900000000000000000000
Arg [8] : devVesting (uint256): 200000000000000000000
Arg [9] : devLinearVestingContract (address): 0xc93d8c43ec92fdb223e922bc8ac7a81311aab412
Arg [10] : ghostToken (address): 0xcac664de38b28c5a57402d9c6904b6f6587bf81d

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [1] : 000000000000000000000000afbd356e232029b7f457339c48b2a450b4f994fb
Arg [2] : 0000000000000000000000006797369ef9a7f2ec469e46972decfea107178a5d
Arg [3] : 0000000000000000000000008d11ec38a3eb5e956b052f67da8bdc9bef8abf3e
Arg [4] : 0000000000000000000000000000000000000000000000000000000061a01c78
Arg [5] : 0000000000000000000000000000000000000000000000000000000061a410f8
Arg [6] : 00000000000000000000000000000000000000000000001043561a8829300000
Arg [7] : 000000000000000000000000000000000000000000000030ca024f987b900000
Arg [8] : 00000000000000000000000000000000000000000000000ad78ebc5ac6200000
Arg [9] : 000000000000000000000000c93d8c43ec92fdb223e922bc8ac7a81311aab412
Arg [10] : 000000000000000000000000cac664de38b28c5a57402d9c6904b6f6587bf81d


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.