Skip to content

Latest commit

 

History

History
193 lines (163 loc) · 5.97 KB

AllowanceCrowdsale.md

File metadata and controls

193 lines (163 loc) · 5.97 KB

AllowanceCrowdsale (AllowanceCrowdsale.sol)

View Source: contracts/crowdsale/emission/AllowanceCrowdsale.sol

↗ Extends: Crowdsale ↘ Derived Contracts: AllowanceCrowdsaleImpl

AllowanceCrowdsale

Extension of Crowdsale where tokens are held by a wallet, which approves an allowance to the crowdsale.

Contract Members

Constants & Variables

address private _tokenWallet;

Functions

tokenWallet

function tokenWallet() public
returns(address)

Returns

the address of the wallet that will hold the tokens.

Arguments

Name Type Description

remainingTokens

Checks the amount of tokens left in the allowance.

function remainingTokens() public
returns(uint256)

Returns

Amount of tokens left in the allowance

Arguments

Name Type Description

_deliverTokens

⤾ overrides Crowdsale._deliverTokens

Overrides parent behavior by transferring tokens from wallet.

function _deliverTokens(address beneficiary, uint256 tokenAmount) internal undefined

Arguments

Name Type Description
beneficiary address Token purchaser
tokenAmount uint256 Amount of tokens purchased

Contracts