STO module for private presales (PreSaleSTO.sol)
View Source: contracts/modules/STO/PreSale/PreSaleSTO.sol
↗ Extends: PreSaleSTOStorage, STO
PreSaleSTO
Events
event TokensAllocated(address _investor, uint256 _amount);Functions
Constructor
function (address _securityToken, address _polyToken) public nonpayable ModuleArguments
Name
Type
Description
_securityToken
address
Address of the security token
_polyToken
address
configure
Function used to initialize the different variables
Arguments
Name
Type
Description
_endTime
uint256
Unix timestamp at which offering ends
getInitFunction
⤾ overrides IModule.getInitFunction
This function returns the signature of the configure function
Arguments
Name
Type
Description
getNumberInvestors
Returns the total no. of investors
Arguments
Name
Type
Description
getTokensSold
⤾ overrides STO.getTokensSold
Returns the total no. of tokens sold
Arguments
Name
Type
Description
getPermissions
⤾ overrides IModule.getPermissions
Returns the permissions flag that are associated with STO
Arguments
Name
Type
Description
allocateTokens
Function used to allocate tokens to the investor
Arguments
Name
Type
Description
_investor
address
Address of the investor
_amount
uint256
No. of tokens to be transferred to the investor
_etherContributed
uint256
How much ETH was contributed
_polyContributed
uint256
How much POLY was contributed
allocateTokensMulti
Function used to allocate tokens to multiple investors
Arguments
Name
Type
Description
_investors
address[]
Array of address of the investors
_amounts
uint256[]
Array of no. of tokens to be transferred to the investors
_etherContributed
uint256[]
Array of amount of ETH contributed by each investor
_polyContributed
uint256[]
Array of amount of POLY contributed by each investor
Last updated
Was this helpful?