Base abstract contract to be extended by all STO modules (STO.sol)

View Source: contracts/modules/STO/STO.sol

↗ Extends: ISTO, STOStorage, Module ↘ Derived Contracts: CappedSTO, DummySTO, PreSaleSTO, USDTieredSTO

STO

Functions

getRaised

⤾ overrides ISTO.getRaised

Returns funds raised by the STO

function getRaised(enum ISTO.FundRaiseType _fundRaiseType) public view
returns(uint256)

Arguments

Name

Type

Description

_fundRaiseType

enum ISTO.FundRaiseType

getTokensSold

⤾ overrides ISTO.getTokensSold

⤿ Overridden Implementation(s): CappedSTO.getTokensSold,DummySTO.getTokensSold,PreSaleSTO.getTokensSold,USDTieredSTO.getTokensSold

Returns the total no. of tokens sold

function getTokensSold() external view
returns(uint256)

Arguments

Name

Type

Description

pause

⤾ overrides Module.pause

Pause (overridden function)

function pause() public nonpayable

Arguments

Name

Type

Description

_setFundRaiseType

function _setFundRaiseType(enum ISTO.FundRaiseType[] _fundRaiseTypes) internal nonpayable

Arguments

Name

Type

Description

_fundRaiseTypes

enum ISTO.FundRaiseType[]

_canBuy

function _canBuy(address _investor) internal view
returns(bool)

Arguments

Name

Type

Description

_investor

address

_getKey

function _getKey(bytes32 _key1, address _key2) internal pure
returns(bytes32)

Arguments

Name

Type

Description

_key1

bytes32

_key2

address

Last updated