ETH Price: $3,086.65 (-0.53%)
Gas: 2 Gwei

Token

Foundry Logistics Token (FRY)
 

Overview

Max Total Supply

993,276,872.658382330837489281 FRY

Holders

562

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
420.08544780895856662 FRY

Value
$0.00
0xc8aec8ff89189f80d0eec52bdd91bbeed98a0904
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

FRY is a token meant for use in the Foundry DAO. Foundry is similar in intent to 'TheDAO'. Foundry will build profitable projects that traditional entities cannot due to political pressure. FRY allows FRY holders both to vote and to realize the profit that Foundry accumulates.

IEO Information

IEO Address : 0x30076fF7436aE82207b9c03AbdF7CB056310A95A
IEO Start Date : Jun 19. 2020
IEO End Date : Jan 23, 2022
IEO Price : Determined by auction
Public Sale Allocation : 60000000 FRY
IEO Launchpad : https://sale.foundrydao.com/
Country : Georgia
Token Distribution Date : 30,000 FRY is distributed every 7 hours between during the sale

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FRY

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-06-05
*/

// File: ../common/openzeppelin/token/ERC20/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: ../common/openzeppelin/token/ERC20/ERC20Detailed.sol

pragma solidity ^0.5.0;


/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}

// File: ../common/openzeppelin/GSN/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;
    }
}

// File: ../common/openzeppelin/math/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: ../common/openzeppelin/token/ERC20/ERC20.sol

pragma solidity ^0.5.0;




/**
 * @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: ../common/openzeppelin/access/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: ../common/openzeppelin/access/roles/MinterRole.sol

pragma solidity ^0.5.0;



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: ../common/openzeppelin/token/ERC20/ERC20Mintable.sol

pragma solidity ^0.5.0;



/**
 * @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: ../common/openzeppelin/token/ERC20/ERC20Burnable.sol

pragma solidity ^0.5.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev See {ERC20-_burnFrom}.
     */
    function burnFrom(address account, uint256 amount) public {
        _burnFrom(account, amount);
    }
}

// File: ../fry-token/contracts/FRY.sol

pragma solidity ^0.5.17;





contract FRY is Context, ERC20Detailed, ERC20Mintable, ERC20Burnable
{
    using SafeMath for uint;

    constructor()
        public
        ERC20Detailed("Foundry Logistics Token", "FRY", 18)
    { }
}

// File: ../common/openzeppelin/math/Math.sol

pragma solidity ^0.5.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

// File: contracts/BucketSale.sol

pragma solidity ^0.5.17;




contract IDecimals
{
    function decimals()
        public
        view
        returns (uint8);
}

contract BucketSale
{
    using SafeMath for uint256;

    string public termsAndConditions = "By interacting with this contract, I confirm I am not a US citizen. I agree to be bound by the terms found at https://foundrydao.com/sale/terms";

    // When passing around bonuses, we use 3 decimals of precision.
    uint constant HUNDRED_PERC = 100000;
    uint constant MAX_BONUS_PERC = 20000;
    uint constant ONE_PERC = 1000;

    /*
    Every pair of (uint bucketId, address buyer) identifies exactly one 'buy'.
    This buy tracks how much tokenSoldFor the user has entered into the bucket,
    and how much tokenOnSale the user has exited with.
    */

    struct Buy
    {
        uint valueEntered;
        uint buyerTokensExited;
    }

    mapping (uint => mapping (address => Buy)) public buys;

    /*
    Each Bucket tracks how much tokenSoldFor has been entered in total;
    this is used to determine how much tokenOnSale the user can later exit with.
    */

    struct Bucket
    {
        uint totalValueEntered;
    }

    mapping (uint => Bucket) public buckets;

    // For each address, this tallies how much tokenSoldFor the address is responsible for referring.
    mapping (address => uint) public referredTotal;

    address public treasury;
    uint public startOfSale;
    uint public bucketPeriod;
    uint public bucketSupply;
    uint public bucketCount;
    uint public totalExitedTokens;
    ERC20Mintable public tokenOnSale;       // we assume the bucket sale contract has minting rights for this contract
    IERC20 public tokenSoldFor;

    constructor (
            address _treasury,
            uint _startOfSale,
            uint _bucketPeriod,
            uint _bucketSupply,
            uint _bucketCount,
            ERC20Mintable _tokenOnSale,    // FRY in our case
            IERC20 _tokenSoldFor)    // typically DAI
        public
    {
        require(_treasury != address(0), "treasury cannot be 0x0");
        require(_bucketPeriod > 0, "bucket period cannot be 0");
        require(_bucketSupply > 0, "bucket supply cannot be 0");
        require(_bucketCount > 0, "bucket count cannot be 0");
        require(address(_tokenOnSale) != address(0), "token on sale cannot be 0x0");
        require(address(_tokenSoldFor) != address(0), "token sold for cannot be 0x0");

        treasury = _treasury;
        startOfSale = _startOfSale;
        bucketPeriod = _bucketPeriod;
        bucketSupply = _bucketSupply;
        bucketCount = _bucketCount;
        tokenOnSale = _tokenOnSale;
        tokenSoldFor = _tokenSoldFor;
    }

    function currentBucket()
        public
        view
        returns (uint)
    {
        return block.timestamp.sub(startOfSale).div(bucketPeriod);
    }

    event Entered(
        address _sender,
        uint256 _bucketId,
        address indexed _buyer,
        uint _valueEntered,
        uint _buyerReferralReward,
        address indexed _referrer,
        uint _referrerReferralReward);
    function agreeToTermsAndConditionsListedInThisContractAndEnterSale(
            address _buyer,
            uint _bucketId,
            uint _amount,
            address _referrer)
        public
    {
        require(_amount > 0, "no funds provided");

        bool transferSuccess = tokenSoldFor.transferFrom(msg.sender, treasury, _amount);
        require(transferSuccess, "enter transfer failed");

        registerEnter(_bucketId, _buyer, _amount);
        referredTotal[_referrer] = referredTotal[_referrer].add(_amount); // referredTotal[0x0] will track buys with no referral

        if (_referrer != address(0)) // If there is a referrer
        {
            uint buyerReferralReward = _amount.mul(buyerReferralRewardPerc()).div(HUNDRED_PERC);
            uint referrerReferralReward = _amount.mul(referrerReferralRewardPerc(_referrer)).div(HUNDRED_PERC);

            // Both rewards are registered as buys in the next bucket
            registerEnter(_bucketId.add(1), _buyer, buyerReferralReward);
            registerEnter(_bucketId.add(1), _referrer, referrerReferralReward);

            emit Entered(
                msg.sender,
                _bucketId,
                _buyer,
                _amount,
                buyerReferralReward,
                _referrer,
                referrerReferralReward);
        }
        else
        {
            emit Entered(
                msg.sender,
                _bucketId,
                _buyer,
                _amount,
                0,
                address(0),
                0);
        }
    }

    function registerEnter(uint _bucketId, address _buyer, uint _amount)
        internal
    {
        require(_bucketId >= currentBucket(), "cannot enter past buckets");
        require(_bucketId < bucketCount, "invalid bucket id--past end of sale");

        Buy storage buy = buys[_bucketId][_buyer];
        buy.valueEntered = buy.valueEntered.add(_amount);

        Bucket storage bucket = buckets[_bucketId];
        bucket.totalValueEntered = bucket.totalValueEntered.add(_amount);
    }

    event Exited(
        uint256 _bucketId,
        address indexed _buyer,
        uint _tokensExited);
    function exit(uint _bucketId, address _buyer)
        public
    {
        require(
            _bucketId < currentBucket(),
            "can only exit from concluded buckets");

        Buy storage buyToWithdraw = buys[_bucketId][_buyer];
        require(buyToWithdraw.valueEntered > 0, "can't exit if you didn't enter");
        require(buyToWithdraw.buyerTokensExited == 0, "already exited");

        /*
        Note that buyToWithdraw.buyerTokensExited serves a dual purpose:
        First, it is always set to a non-zero value when a buy has been exited from,
        and checked in the line above to guard against repeated exits.
        Second, it's used as simple record-keeping for future analysis;
        hence the use of uint rather than something like bool buyerTokensHaveExited.
        */

        buyToWithdraw.buyerTokensExited = calculateExitableTokens(_bucketId, _buyer);
        totalExitedTokens = totalExitedTokens.add(buyToWithdraw.buyerTokensExited);

        bool mintSuccess = tokenOnSale.mint(_buyer, buyToWithdraw.buyerTokensExited);
        require(mintSuccess, "exit mint/transfer failed");

        emit Exited(
            _bucketId,
            _buyer,
            buyToWithdraw.buyerTokensExited);
    }

    function buyerReferralRewardPerc()
        public
        pure
        returns(uint)
    {
        return ONE_PERC.mul(10);
    }

    function referrerReferralRewardPerc(address _referrerAddress)
        public
        view
        returns(uint)
    {
        if (_referrerAddress == address(0))
        {
            return 0;
        }
        else
        {
            // integer number of dai contributed
            uint daiContributed = referredTotal[_referrerAddress].div(10 ** uint(IDecimals(address(tokenSoldFor)).decimals()));

            /*
            A more explicit way to do the following 'uint multiplier' line would be something like:

            float bonusFromDaiContributed = daiContributed / 100000.0;
            float multiplier = bonusFromDaiContributed + 0.1;

            However, because we are already using 3 digits of precision for bonus values,
            the integer amount of Dai happens to exactly equal the bonusPercent value we want
            (i.e. 10,000 Dai == 10000 == 10*ONE_PERC)

            So below, `multiplier = daiContributed + (10*ONE_PERC)`
            increases the multiplier by 1% for every 1k Dai, which is what we want.
            */
            uint multiplier = daiContributed.add(ONE_PERC.mul(10)); // this guarentees every referrer gets at least 10% of what the buyer is buying

            uint result = Math.min(MAX_BONUS_PERC, multiplier); // Cap it at 20% bonus
            return result;
        }
    }

    function calculateExitableTokens(uint _bucketId, address _buyer)
        public
        view
        returns(uint)
    {
        Bucket storage bucket = buckets[_bucketId];
        Buy storage buyToWithdraw = buys[_bucketId][_buyer];
        return bucketSupply
            .mul(buyToWithdraw.valueEntered)
            .div(bucket.totalValueEntered);
    }
}

// File: contracts/Forwarder.sol

pragma solidity ^0.5.17;

contract Forwarder
{
    address public owner;

    constructor(address _owner)
        public
    {
        owner = _owner;
    }

    modifier onlyOwner()
    {
        require(msg.sender == owner, "only owner");
        _;
    }

    event OwnerChanged(address _newOwner);
    function changeOwner(address _newOwner)
        public
        onlyOwner
    {
        owner = _newOwner;
        emit OwnerChanged(_newOwner);
    }

    event Forwarded(
        address indexed _to,
        bytes _data,
        uint _wei,
        bool _success,
        bytes _resultData);
    function forward(address _to, bytes memory _data, uint _wei)
        public
        onlyOwner
        returns (bool, bytes memory)
    {
        (bool success, bytes memory resultData) = _to.call.value(_wei)(_data);
        emit Forwarded(_to, _data, _wei, success, resultData);
        return (success, resultData);
    }

    function ()
        external
        payable
    { }
}

// File: contracts/Deployer.sol

pragma solidity ^0.5.17;




contract Deployer
{
    using SafeMath for uint256;

    event Deployed(
        Forwarder _governanceTreasury,
        FRY _fryAddress,
        BucketSale _bucketSale);

    constructor(
            address _invoiceAddress,
            address _teamToastMultisig,
            uint _startOfSale,
            uint _bucketPeriod,
            uint _bucketSupply,
            uint _bucketCount,
            IERC20 _tokenSoldFor
            )
        public
    {
        // Create the treasury contract, giving initial ownership to the Team Toast multisig
        Forwarder governanceTreasury = new Forwarder(_teamToastMultisig);

        // Create the FRY token
        FRY fryToken = new FRY();

        // Create the bucket sale
        BucketSale bucketSale = new BucketSale (
            address(governanceTreasury),
            _startOfSale,
            _bucketPeriod,
            _bucketSupply,
            _bucketCount,
            ERC20Mintable(address(fryToken)),
            _tokenSoldFor);

        // 10,000,000 paid for revenue stream of SmokeSignal and ownership of SmokeSignal.eth
        fryToken.mint(_invoiceAddress, uint(10000000).mul(10 ** uint256(fryToken.decimals())));

        // 10,000,000 paid for revenue stream of DAIHard
        fryToken.mint(_invoiceAddress, uint(10000000).mul(10 ** uint256(fryToken.decimals())));

        // 10,000,000 paid for construction of Foundry and ownership of FoundryDAO.eth
        fryToken.mint(_invoiceAddress, uint(10000000).mul(10 ** uint256(fryToken.decimals())));

        // 10% given to the governance treasury
        fryToken.mint(address(governanceTreasury), uint(10000000).mul(10 ** uint256(fryToken.decimals())));

        // Team Toast will have minting rights via a multisig, to be renounced as various Foundry contracts prove stable and self-organizing
        fryToken.addMinter(_teamToastMultisig);

        // Give the bucket sale minting rights
        fryToken.addMinter(address(bucketSale));

        // Have this contract renounce minting rights
        fryToken.renounceMinter();

        emit Deployed(governanceTreasury, fryToken, bucketSale);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"MinterRemoved","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"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252601781527f466f756e647279204c6f6769737469637320546f6b656e00000000000000000060208083019182528351808501909452600384526246525960e81b90840152815191929160129162000076916000919062000214565b5081516200008c90600190602085019062000214565b506002805460ff191660ff9290921691909117905550620000c19050620000b2620000c7565b6001600160e01b03620000cc16565b620002b6565b335b90565b620000e78160066200011e60201b62000e651790919060201c565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b6200013382826001600160e01b03620001ab16565b1562000186576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620001f45760405162461bcd60e51b8152600401808060200182810382526022815260200180620014236022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025757805160ff191683800117855562000287565b8280016001018555821562000287579182015b82811115620002875782518255916020019190600101906200026a565b506200029592915062000299565b5090565b620000c991905b80821115620002955760008155600101620002a0565b61115d80620002c66000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a257806398650275116100715780639865027514610332578063a457c2d71461033a578063a9059cbb14610366578063aa271e1a14610392578063dd62ed3e146103b85761010b565b806370a08231146102b257806379cc6790146102d857806395d89b4114610304578063983b2d561461030c5761010b565b8063313ce567116100de578063313ce5671461021d578063395093511461023b57806340c10f191461026757806342966c68146102935761010b565b806306fdde0314610110578063095ea7b31461018d57806318160ddd146101cd57806323b872dd146101e7575b600080fd5b6101186103e6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015257818101518382015260200161013a565b50505050905090810190601f16801561017f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b9600480360360408110156101a357600080fd5b506001600160a01b03813516906020013561047c565b604080519115158252519081900360200190f35b6101d5610499565b60408051918252519081900360200190f35b6101b9600480360360608110156101fd57600080fd5b506001600160a01b0381358116916020810135909116906040013561049f565b61022561052c565b6040805160ff9092168252519081900360200190f35b6101b96004803603604081101561025157600080fd5b506001600160a01b038135169060200135610535565b6101b96004803603604081101561027d57600080fd5b506001600160a01b038135169060200135610589565b6102b0600480360360208110156102a957600080fd5b50356105e0565b005b6101d5600480360360208110156102c857600080fd5b50356001600160a01b03166105f4565b6102b0600480360360408110156102ee57600080fd5b506001600160a01b03813516906020013561060f565b61011861061d565b6102b06004803603602081101561032257600080fd5b50356001600160a01b031661067d565b6102b06106cc565b6101b96004803603604081101561035057600080fd5b506001600160a01b0381351690602001356106de565b6101b96004803603604081101561037c57600080fd5b506001600160a01b03813516906020013561074c565b6101b9600480360360208110156103a857600080fd5b50356001600160a01b0316610760565b6101d5600480360360408110156103ce57600080fd5b506001600160a01b0381358116916020013516610779565b60008054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104725780601f1061044757610100808354040283529160200191610472565b820191906000526020600020905b81548152906001019060200180831161045557829003601f168201915b5050505050905090565b60006104906104896107a4565b84846107a8565b50600192915050565b60055490565b60006104ac848484610894565b610522846104b86107a4565b61051d8560405180606001604052806028815260200161102c602891396001600160a01b038a166000908152600460205260408120906104f66107a4565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6109f216565b6107a8565b5060019392505050565b60025460ff1690565b60006104906105426107a4565b8461051d85600460006105536107a4565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff610a8916565b600061059b6105966107a4565b610760565b6105d65760405162461bcd60e51b8152600401808060200182810382526030815260200180610fdb6030913960400191505060405180910390fd5b6104908383610aea565b6105f16105eb6107a4565b82610bdc565b50565b6001600160a01b031660009081526003602052604090205490565b6106198282610cd8565b5050565b60018054604080516020601f600260001961010087891615020190951694909404938401819004810282018101909252828152606093909290918301828280156104725780601f1061044757610100808354040283529160200191610472565b6106886105966107a4565b6106c35760405162461bcd60e51b8152600401808060200182810382526030815260200180610fdb6030913960400191505060405180910390fd5b6105f181610d2c565b6106dc6106d76107a4565b610d74565b565b60006104906106eb6107a4565b8461051d8560405180606001604052806025815260200161110460259139600460006107156107a4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6109f216565b60006104906107596107a4565b8484610894565b600061077360068363ffffffff610dbc16565b92915050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166107ed5760405162461bcd60e51b81526004018080602001828103825260248152602001806110e06024913960400191505060405180910390fd5b6001600160a01b0382166108325760405162461bcd60e51b8152600401808060200182810382526022815260200180610f936022913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166108d95760405162461bcd60e51b81526004018080602001828103825260258152602001806110bb6025913960400191505060405180910390fd5b6001600160a01b03821661091e5760405162461bcd60e51b8152600401808060200182810382526023815260200180610f4e6023913960400191505060405180910390fd5b61096181604051806060016040528060268152602001610fb5602691396001600160a01b038616600090815260036020526040902054919063ffffffff6109f216565b6001600160a01b038085166000908152600360205260408082209390935590841681522054610996908263ffffffff610a8916565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610a815760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610a46578181015183820152602001610a2e565b50505050905090810190601f168015610a735780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ae3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610b45576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600554610b58908263ffffffff610a8916565b6005556001600160a01b038216600090815260036020526040902054610b84908263ffffffff610a8916565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610c215760405162461bcd60e51b815260040180806020018281038252602181526020018061109a6021913960400191505060405180910390fd5b610c6481604051806060016040528060228152602001610f71602291396001600160a01b038516600090815260036020526040902054919063ffffffff6109f216565b6001600160a01b038316600090815260036020526040902055600554610c90908263ffffffff610e2316565b6005556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b610ce28282610bdc565b61061982610cee6107a4565b61051d84604051806060016040528060248152602001611076602491396001600160a01b0388166000908152600460205260408120906104f66107a4565b610d3d60068263ffffffff610e6516565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b610d8560068263ffffffff610ee616565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b60006001600160a01b038216610e035760405162461bcd60e51b81526004018080602001828103825260228152602001806110546022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6000610ae383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109f2565b610e6f8282610dbc565b15610ec1576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b610ef08282610dbc565b610f2b5760405162461bcd60e51b815260040180806020018281038252602181526020018061100b6021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff1916905556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526f6c65733a206163636f756e7420697320746865207a65726f206164647265737345524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a723158204990fced98ed3e239d8386192b06135edd7afaeb32e4c1649585c53aaac81c8f64736f6c63430005110032526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a257806398650275116100715780639865027514610332578063a457c2d71461033a578063a9059cbb14610366578063aa271e1a14610392578063dd62ed3e146103b85761010b565b806370a08231146102b257806379cc6790146102d857806395d89b4114610304578063983b2d561461030c5761010b565b8063313ce567116100de578063313ce5671461021d578063395093511461023b57806340c10f191461026757806342966c68146102935761010b565b806306fdde0314610110578063095ea7b31461018d57806318160ddd146101cd57806323b872dd146101e7575b600080fd5b6101186103e6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015257818101518382015260200161013a565b50505050905090810190601f16801561017f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b9600480360360408110156101a357600080fd5b506001600160a01b03813516906020013561047c565b604080519115158252519081900360200190f35b6101d5610499565b60408051918252519081900360200190f35b6101b9600480360360608110156101fd57600080fd5b506001600160a01b0381358116916020810135909116906040013561049f565b61022561052c565b6040805160ff9092168252519081900360200190f35b6101b96004803603604081101561025157600080fd5b506001600160a01b038135169060200135610535565b6101b96004803603604081101561027d57600080fd5b506001600160a01b038135169060200135610589565b6102b0600480360360208110156102a957600080fd5b50356105e0565b005b6101d5600480360360208110156102c857600080fd5b50356001600160a01b03166105f4565b6102b0600480360360408110156102ee57600080fd5b506001600160a01b03813516906020013561060f565b61011861061d565b6102b06004803603602081101561032257600080fd5b50356001600160a01b031661067d565b6102b06106cc565b6101b96004803603604081101561035057600080fd5b506001600160a01b0381351690602001356106de565b6101b96004803603604081101561037c57600080fd5b506001600160a01b03813516906020013561074c565b6101b9600480360360208110156103a857600080fd5b50356001600160a01b0316610760565b6101d5600480360360408110156103ce57600080fd5b506001600160a01b0381358116916020013516610779565b60008054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104725780601f1061044757610100808354040283529160200191610472565b820191906000526020600020905b81548152906001019060200180831161045557829003601f168201915b5050505050905090565b60006104906104896107a4565b84846107a8565b50600192915050565b60055490565b60006104ac848484610894565b610522846104b86107a4565b61051d8560405180606001604052806028815260200161102c602891396001600160a01b038a166000908152600460205260408120906104f66107a4565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6109f216565b6107a8565b5060019392505050565b60025460ff1690565b60006104906105426107a4565b8461051d85600460006105536107a4565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff610a8916565b600061059b6105966107a4565b610760565b6105d65760405162461bcd60e51b8152600401808060200182810382526030815260200180610fdb6030913960400191505060405180910390fd5b6104908383610aea565b6105f16105eb6107a4565b82610bdc565b50565b6001600160a01b031660009081526003602052604090205490565b6106198282610cd8565b5050565b60018054604080516020601f600260001961010087891615020190951694909404938401819004810282018101909252828152606093909290918301828280156104725780601f1061044757610100808354040283529160200191610472565b6106886105966107a4565b6106c35760405162461bcd60e51b8152600401808060200182810382526030815260200180610fdb6030913960400191505060405180910390fd5b6105f181610d2c565b6106dc6106d76107a4565b610d74565b565b60006104906106eb6107a4565b8461051d8560405180606001604052806025815260200161110460259139600460006107156107a4565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6109f216565b60006104906107596107a4565b8484610894565b600061077360068363ffffffff610dbc16565b92915050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166107ed5760405162461bcd60e51b81526004018080602001828103825260248152602001806110e06024913960400191505060405180910390fd5b6001600160a01b0382166108325760405162461bcd60e51b8152600401808060200182810382526022815260200180610f936022913960400191505060405180910390fd5b6001600160a01b03808416600081815260046020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166108d95760405162461bcd60e51b81526004018080602001828103825260258152602001806110bb6025913960400191505060405180910390fd5b6001600160a01b03821661091e5760405162461bcd60e51b8152600401808060200182810382526023815260200180610f4e6023913960400191505060405180910390fd5b61096181604051806060016040528060268152602001610fb5602691396001600160a01b038616600090815260036020526040902054919063ffffffff6109f216565b6001600160a01b038085166000908152600360205260408082209390935590841681522054610996908263ffffffff610a8916565b6001600160a01b0380841660008181526003602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610a815760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610a46578181015183820152602001610a2e565b50505050905090810190601f168015610a735780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ae3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216610b45576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600554610b58908263ffffffff610a8916565b6005556001600160a01b038216600090815260036020526040902054610b84908263ffffffff610a8916565b6001600160a01b03831660008181526003602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216610c215760405162461bcd60e51b815260040180806020018281038252602181526020018061109a6021913960400191505060405180910390fd5b610c6481604051806060016040528060228152602001610f71602291396001600160a01b038516600090815260036020526040902054919063ffffffff6109f216565b6001600160a01b038316600090815260036020526040902055600554610c90908263ffffffff610e2316565b6005556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b610ce28282610bdc565b61061982610cee6107a4565b61051d84604051806060016040528060248152602001611076602491396001600160a01b0388166000908152600460205260408120906104f66107a4565b610d3d60068263ffffffff610e6516565b6040516001600160a01b038216907f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690600090a250565b610d8560068263ffffffff610ee616565b6040516001600160a01b038216907fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669290600090a250565b60006001600160a01b038216610e035760405162461bcd60e51b81526004018080602001828103825260228152602001806110546022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6000610ae383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109f2565b610e6f8282610dbc565b15610ec1576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b610ef08282610dbc565b610f2b5760405162461bcd60e51b815260040180806020018281038252602181526020018061100b6021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff1916905556fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526f6c65733a206163636f756e7420697320746865207a65726f206164647265737345524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a723158204990fced98ed3e239d8386192b06135edd7afaeb32e4c1649585c53aaac81c8f64736f6c63430005110032

Deployed Bytecode Sourcemap

23166:211:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23166:211:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3590:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;3590:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13785:152;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13785:152:0;;-1:-1:-1;;;;;13785:152:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;12806:91;;;:::i;:::-;;;;;;;;;;;;;;;;14409:304;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;14409:304:0;;;;;;;;;;;;;;;;;:::i;4442:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;15122:210;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15122:210:0;;-1:-1:-1;;;;;15122:210:0;;;;;;:::i;22216:143::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22216:143:0;;-1:-1:-1;;;;;22216:143:0;;;;;;:::i;22832:83::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22832:83:0;;:::i;:::-;;12960:110;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12960:110:0;-1:-1:-1;;;;;12960:110:0;;:::i;22977:103::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22977:103:0;;-1:-1:-1;;;;;22977:103:0;;;;;;:::i;3792:87::-;;;:::i;21242:92::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21242:92:0;-1:-1:-1;;;;;21242:92:0;;:::i;21342:79::-;;;:::i;15835:261::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15835:261:0;;-1:-1:-1;;;;;15835:261:0;;;;;;:::i;13283:158::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13283:158:0;;-1:-1:-1;;;;;13283:158:0;;;;;;:::i;21125:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21125:109:0;-1:-1:-1;;;;;21125:109:0;;:::i;13504:134::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;13504:134:0;;;;;;;;;;:::i;3590:83::-;3660:5;3653:12;;;;;;;;;;;;;-1:-1:-1;;3653:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;3627:13;;3653:12;;3660:5;;3653:12;;;3660:5;3653:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3590:83;:::o;13785:152::-;13851:4;13868:39;13877:12;:10;:12::i;:::-;13891:7;13900:6;13868:8;:39::i;:::-;-1:-1:-1;13925:4:0;13785:152;;;;:::o;12806:91::-;12877:12;;12806:91;:::o;14409:304::-;14498:4;14515:36;14525:6;14533:9;14544:6;14515:9;:36::i;:::-;14562:121;14571:6;14579:12;:10;:12::i;:::-;14593:89;14631:6;14593:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14593:19:0;;;;;;:11;:19;;;;;;14613:12;:10;:12::i;:::-;-1:-1:-1;;;;;14593:33:0;;;;;;;;;;;;-1:-1:-1;14593:33:0;;;;:37;:89::i;:::-;14562:8;:121::i;:::-;-1:-1:-1;14701:4:0;14409:304;;;;;:::o;4442:83::-;4508:9;;;;4442:83;:::o;15122:210::-;15202:4;15219:83;15228:12;:10;:12::i;:::-;15242:7;15251:50;15290:10;15251:11;:25;15263:12;:10;:12::i;:::-;-1:-1:-1;;;;;15251:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;15251:25:0;;;:34;;;;;;;;;;;:38;:50::i;22216:143::-;22290:4;21022:22;21031:12;:10;:12::i;:::-;21022:8;:22::i;:::-;21014:83;;;;-1:-1:-1;;;21014:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22307:22;22313:7;22322:6;22307:5;:22::i;22832:83::-;22880:27;22886:12;:10;:12::i;:::-;22900:6;22880:5;:27::i;:::-;22832:83;:::o;12960:110::-;-1:-1:-1;;;;;13044:18:0;13017:7;13044:18;;;:9;:18;;;;;;;12960:110::o;22977:103::-;23046:26;23056:7;23065:6;23046:9;:26::i;:::-;22977:103;;:::o;3792:87::-;3864:7;3857:14;;;;;;;;;;;;;-1:-1:-1;;3857:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;3831:13;;3857:14;;3864:7;;3857:14;;;3864:7;3857:14;;;;;;;;;;;;;;;;;;;;;;;;21242:92;21022:22;21031:12;:10;:12::i;21022:22::-;21014:83;;;;-1:-1:-1;;;21014:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21307:19;21318:7;21307:10;:19::i;21342:79::-;21386:27;21400:12;:10;:12::i;:::-;21386:13;:27::i;:::-;21342:79::o;15835:261::-;15920:4;15937:129;15946:12;:10;:12::i;:::-;15960:7;15969:96;16008:15;15969:96;;;;;;;;;;;;;;;;;:11;:25;15981:12;:10;:12::i;:::-;-1:-1:-1;;;;;15969:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;15969:25:0;;;:34;;;;;;;;;;;;:38;:96::i;13283:158::-;13352:4;13369:42;13379:12;:10;:12::i;:::-;13393:9;13404:6;13369:9;:42::i;21125:109::-;21181:4;21205:21;:8;21218:7;21205:21;:12;:21;:::i;:::-;21198:28;21125:109;-1:-1:-1;;21125:109:0:o;13504:134::-;-1:-1:-1;;;;;13603:18:0;;;13576:7;13603:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;13504:134::o;5389:98::-;5469:10;5389:98;:::o;18766:338::-;-1:-1:-1;;;;;18860:19:0;;18852:68;;;;-1:-1:-1;;;18852:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18939:21:0;;18931:68;;;;-1:-1:-1;;;18931:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19012:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;19064:32;;;;;;;;;;;;;;;;;18766:338;;;:::o;16586:471::-;-1:-1:-1;;;;;16684:20:0;;16676:70;;;;-1:-1:-1;;;16676:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16765:23:0;;16757:71;;;;-1:-1:-1;;;16757:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16861;16883:6;16861:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16861:17:0;;;;;;:9;:17;;;;;;;;:21;:71::i;:::-;-1:-1:-1;;;;;16841:17:0;;;;;;;:9;:17;;;;;;:91;;;;16966:20;;;;;;;:32;;16991:6;16966:24;:32::i;:::-;-1:-1:-1;;;;;16943:20:0;;;;;;;:9;:20;;;;;;;;;:55;;;;17014:35;;;;;;;16943:20;;17014:35;;;;;;;;;;;;;16586:471;;;:::o;7568:192::-;7654:7;7690:12;7682:6;;;;7674:29;;;;-1:-1:-1;;;7674:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;7674:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7726:5:0;;;7568:192::o;6639:181::-;6697:7;6729:5;;;6753:6;;;;6745:46;;;;;-1:-1:-1;;;6745:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6811:1;6639:181;-1:-1:-1;;;6639:181:0:o;17338:308::-;-1:-1:-1;;;;;17414:21:0;;17406:65;;;;;-1:-1:-1;;;17406:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17499:12;;:24;;17516:6;17499:24;:16;:24;:::i;:::-;17484:12;:39;-1:-1:-1;;;;;17555:18:0;;;;;;:9;:18;;;;;;:30;;17578:6;17555:22;:30::i;:::-;-1:-1:-1;;;;;17534:18:0;;;;;;:9;:18;;;;;;;;:51;;;;17601:37;;;;;;;17534:18;;;;17601:37;;;;;;;;;;17338:308;;:::o;17978:348::-;-1:-1:-1;;;;;18054:21:0;;18046:67;;;;-1:-1:-1;;;18046:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18147:68;18170:6;18147:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18147:18:0;;;;;;:9;:18;;;;;;;;:22;:68::i;:::-;-1:-1:-1;;;;;18126:18:0;;;;;;:9;:18;;;;;:89;18241:12;;:24;;18258:6;18241:16;:24::i;:::-;18226:12;:39;18281:37;;;;;;;;18307:1;;-1:-1:-1;;;;;18281:37:0;;;;;;;;;;;;17978:348;;:::o;19290:232::-;19362:22;19368:7;19377:6;19362:5;:22::i;:::-;19395:119;19404:7;19413:12;:10;:12::i;:::-;19427:86;19466:6;19427:86;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19427:20:0;;;;;;:11;:20;;;;;;19448:12;:10;:12::i;21429:122::-;21486:21;:8;21499:7;21486:21;:12;:21;:::i;:::-;21523:20;;-1:-1:-1;;;;;21523:20:0;;;;;;;;21429:122;:::o;21559:130::-;21619:24;:8;21635:7;21619:24;:15;:24;:::i;:::-;21659:22;;-1:-1:-1;;;;;21659:22:0;;;;;;;;21559:130;:::o;20391:203::-;20463:4;-1:-1:-1;;;;;20488:21:0;;20480:68;;;;-1:-1:-1;;;20480:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20566:20:0;:11;:20;;;;;;;;;;;;;;;20391:203::o;7095:136::-;7153:7;7180:43;7184:1;7187;7180:43;;;;;;;;;;;;;;;;;:3;:43::i;19855:178::-;19933:18;19937:4;19943:7;19933:3;:18::i;:::-;19932:19;19924:63;;;;;-1:-1:-1;;;19924:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19998:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;19998:27:0;-1:-1:-1;19998:27:0;;;19855:178::o;20113:183::-;20193:18;20197:4;20203:7;20193:3;:18::i;:::-;20185:64;;;;-1:-1:-1;;;20185:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20260:20:0;20283:5;20260:20;;;;;;;;;;;:28;;-1:-1:-1;;20260:28:0;;;20113:183::o

Swarm Source

bzzr://4990fced98ed3e239d8386192b06135edd7afaeb32e4c1649585c53aaac81c8f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.