AllowanceCrowdsale
contract AllowanceCrowdsale
is Crowdsale
Extension of Crowdsale where tokens are held by a wallet, which approves an allowance to the crowdsale.
Reference
Functions
AllowanceCrowdsale
function AllowanceCrowdsale(address _tokenWallet) public
Constructor, takes token wallet address.
- Parameters:
_tokenWallet
- Address holding the tokens, which has approved allowance to the crowdsale
_deliverTokens
function _deliverTokens(address _beneficiary, uint256 _tokenAmount) internal
Overrides parent behavior by transferring tokens from wallet.
- Parameters:
_beneficiary
- Token purchaser_tokenAmount
- Amount of tokens purchased
remainingTokens
function remainingTokens() public view returns (uint256)
Checks the amount of tokens left in the allowance.
- Returns:
- Amount of tokens left in the allowance