Skip to content

Latest commit

 

History

History
238 lines (167 loc) · 6.04 KB

FulcrumToken.md

File metadata and controls

238 lines (167 loc) · 6.04 KB

Fulcrum Token (FulcrumToken.sol)

View Source: contracts/FulcrumToken.sol

↗ Extends: TokenBase

FulcrumToken

The FULC is our native settlements token used across our marketplace, and will enable many important functions within the Accept global marketplace including: A medium of exchange (settlements) for Accept.io buyers and sellers A consumptive use (utility) token for marketplace users to access premium features in the Accept.io DApp An incentive for users to help improve the Accept Marketplace and contribute to the long-term development of Accept.io

Contract Members

Constants & Variables

//public members
uint256 public icoEndDate;
uint256 public constant ALLOCATION_FOR_COMMUNITY_REWARDS;
uint256 public constant ALLOCATION_FOR_RESERVE;
uint256 public constant ALLOCATION_FOR_TEAM;
uint256 public constant ALLOCATION_FOR_ADVISORS;
uint256 public constant ALLOCATION_FOR_INITIAL_STRATEGIC_PARTNERSHIPS;
uint256 public constant ALLOCATION_FOR_STRATEGIC_PARTNERSHIPS;
bool public targetReached;

//private members
mapping(bytes32 => bool) private mintingList;

Events

event ICOEndDateSet(uint256  _date);
event TargetReached();

Modifiers

whenNotMinted

Checks if the minting for the supplied key was already performed.

modifier whenNotMinted(string _key) internal

Arguments

Name Type Description
_key string The key or category name of minting.

Functions

setSuccess

This function signifies that the minimum fundraising target was met. Please note that this can only be called once.

function setSuccess() external nonpayable onlyAdmin 
returns(bool)

Arguments

Name Type Description

setICOEndDate

This function enables the whitelisted application (internal application) to set the ICO end date and can only be used once.

function setICOEndDate(uint256 _date) external nonpayable onlyAdmin 
returns(bool)

Arguments

Name Type Description
_date uint256 The date to set as the ICO end date.

mintCommunityRewardTokens

Mints the below-mentioned amount of tokens allocated to rewarding the community.

function mintCommunityRewardTokens() external nonpayable onlyAdmin 
returns(bool)

Arguments

Name Type Description

mintReserveTokens

Mints the below-mentioned amount of tokens allocated to the operational reserves.

function mintReserveTokens() external nonpayable onlyAdmin 
returns(bool)

Arguments

Name Type Description

mintTokensForTeam

Mints the below-mentioned amount of tokens allocated to the Accept.io founders.

function mintTokensForTeam() external nonpayable onlyAdmin 
returns(bool)

Arguments

Name Type Description

mintTokensForAdvisors

Mints the below-mentioned amount of tokens allocated to the Accept.io advisors.

function mintTokensForAdvisors() external nonpayable onlyAdmin 
returns(bool)

Arguments

Name Type Description

mintTokensForInitialStrategicPartnerships

Mints the below-mentioned amount of tokens allocated to the first Strategic Partnership category.

function mintTokensForInitialStrategicPartnerships() external nonpayable onlyAdmin 
returns(bool)

Arguments

Name Type Description

mintTokensForStrategicPartnerships

Mints the below-mentioned amount of tokens allocated to the second Strategic Partnership category.

function mintTokensForStrategicPartnerships() external nonpayable onlyAdmin 
returns(bool)

Arguments

Name Type Description

computeHash

Computes keccak256 hash of the supplied value.

function computeHash(string _key) private pure
returns(bytes32)

Arguments

Name Type Description
_key string The string value to compute hash from.

mintOnce

Mints the tokens only once against the supplied key (category).

function mintOnce(string _key, address _to, uint256 _amount) private nonpayable whenNotPaused whenNotMinted 
returns(bool)

Arguments

Name Type Description
_key string The key or the category of the allocation to mint the tokens for.
_to address The address receiving the minted tokens.
_amount uint256 The amount of tokens to mint.

Contracts