Crowdsale contract

Ready for Sale

FINANCIAL

Contract purpose

The purpose of the contract is to organize a crowdsale to finance an project. The investors will receive tokens according to the buy moment of the crowdsale and the relative price of the moment. The investor can withdraw the investment if the crowdsale objective is not reached.

Parameters:

fundingGoal: the funding limit that, if not reached, the investors can get money back
softCap: the softcap limit with price increase if limit is reached
maxGoal: maximum amount of tokens on sell (usually very high limit)
rateSoft: the rate before soft cap is reached
rateHard: the rate after the soft cap is reached
rateCoefficient: the rate coeficient, used with rateSoft or rateHard, to get price per token
tokenAddr: the token contract address
msWallet: the multisig wallet address
tokenOwner: the multisig owner address
start: Start date in seconds; epoch value
end: End date in seconds; epoch value
timeAfterSoftCap: Time after soft cap, while the crowdsale will be still available

Exposed methods

tokenSold gets number of tokens sold
tokenRewardAddress gets the token contract address
tokenOwner gets the token contract owner address
timeAfterSoftCap gets the time for the crowdsale to be open after the soft cap has passed
start gets start date of the crowdsale
end gets end date of the crowdsale
rateSoft gets rate before softcap
rateHard gets rate after soft cap
rateCoeficient gets the rate coeficient
maxGoal gets the maximum goal of sold tokens
getNumTokens gets the number of tokens for the address

parameter name

type

details

address

ethereum address

the address to check number of tokens for

fundingGoal gets the funding goal
crowdsaleClosed gets if the crowdsale is closed or not

balanceOf gets the balance for the address

parameter name

type

details

address

ethereum address

the address to check balance for

amountRaised gets the amount raised through crowdsale
checkGoalReached gets if the goald is reached

invest make an investment with the transaction value converted to token and sets the balance of the parameter address

parameter name

type

details

address

ethereum address

the receiver address to check balance for

safeWithdrawal allows the owner to withdraw the invetment if the goal is not reached

Example:

fundingGoal: the funding limit that, if not reached, the investors can get money back
softCap: the softcap limit with price increase if limit is reached
maxGoal: maximum amount of tokens on sell (usually very high limit)
rateSoft: the rate before soft cap is reached
rateHard: the rate after the soft cap is reached
rateCoefficient: the rate coeficient, used with rateSoft or rateHard, to get price per token
msWallet: 0x387bd1bc3a3ebe55929f1a6ab3fe7684e842458b
tokenOwner: 0x387bd1bc3a3ebe55929f1a6ab3fe7684e842458b
start: 1521547559
end: 1553083557
timeAfterSoftCap: 61957

Reviewed by Modex
Buy

Copyright © Modex Marketplace