Limit in USD ( 10*18) for non-accredited investors
_minimumInvestmentUSD
uint256
Minimun investment in USD ( 10*18)
_fundRaiseTypes
enum ISTO.FundRaiseType[]
Types of currency used to collect the funds
_wallet
address payable
Ethereum account address to hold the funds
_treasuryWallet
address
Ethereum account address to receive unsold tokens
_usdTokens
IERC20[]
Contract address of the stable coins
modifyFunding
Modifies fund raise types
Arguments
Name
Type
Description
_fundRaiseTypes
enum ISTO.FundRaiseType[]
Array of fund raise types to allow
modifyLimits
modifies max non accredited invets limit and overall minimum investment limit
Arguments
Name
Type
Description
_nonAccreditedLimitUSD
uint256
max non accredited invets limit
_minimumInvestmentUSD
uint256
overall minimum investment limit
modifyTiers
modifiers STO tiers. All tiers must be passed, can not edit specific tiers.
Arguments
Name
Type
Description
_ratePerTier
uint256[]
Array of rates per tier
_ratePerTierDiscountPoly
uint256[]
Array of discounted poly rates per tier
_tokensPerTierTotal
uint256[]
Array of total tokens per tier
_tokensPerTierDiscountPoly
uint256[]
Array of discounted tokens per tier
modifyTimes
Modifies STO start and end times
Arguments
Name
Type
Description
_startTime
uint256
start time of sto
_endTime
uint256
end time of sto
_isSTOStarted
Arguments
Name
Type
Description
modifyAddresses
Modifies addresses used as wallet, reserve wallet and usd token
Arguments
Name
Type
Description
_wallet
address payable
Address of wallet where funds are sent
_treasuryWallet
address
Address of wallet where unsold tokens are sent
_usdTokens
IERC20[]
Address of usd tokens
modifyOracle
Modifies Oracle address. By default, Polymath oracles are used but issuer can overide them using this function Set _oracleAddress to 0x0 to fallback to using Polymath oracles
Arguments
Name
Type
Description
_fundRaiseType
enum ISTO.FundRaiseType
Actual currency
_oracleAddress
address
address of the oracle
_modifyLimits
Arguments
Name
Type
Description
_nonAccreditedLimitUSD
uint256
_minimumInvestmentUSD
uint256
_modifyTiers
Arguments
Name
Type
Description
_ratePerTier
uint256[]
_ratePerTierDiscountPoly
uint256[]
_tokensPerTierTotal
uint256[]
_tokensPerTierDiscountPoly
uint256[]
_modifyTimes
Arguments
Name
Type
Description
_startTime
uint256
_endTime
uint256
_modifyAddresses
Arguments
Name
Type
Description
_wallet
address payable
_treasuryWallet
address
_usdTokens
IERC20[]
_modifyUSDTokens
Arguments
Name
Type
Description
_usdTokens
IERC20[]
finalize
Finalizes the STO and mint remaining tokens to treasury address
Arguments
Name
Type
Description
changeNonAccreditedLimit
Modifies the list of overrides for non-accredited limits in USD
Return the total no. of tokens sold for the given fund raise type param _fundRaiseType The fund raising currency (e.g. ETH, POLY, SC) to calculate sold tokens for
Returns
uint256 Total number of tokens sold for ETH
Arguments
Name
Type
Description
_fundRaiseType
enum ISTO.FundRaiseType
getTokensMintedByTier
Return array of minted tokens in each fund raise type for given tier param _tier The tier to return minted tokens for
Returns
uint256[] array of minted tokens in each fund raise type
Arguments
Name
Type
Description
_tier
uint256
getTokensSoldByTier
Return the total no. of tokens sold in a given tier param _tier The tier to calculate sold tokens for