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

โ€‹