HolderCrowdfund
contract HolderCrowdfund
is Crowdfund
Extension of Crowdfund with where only donators with pre determined token holding can donate.
Reference
Functions
_preValidateFund
function _preValidateFund(address beneficiary, uint256 weiAmount) internal
- Parameters:
beneficiary
- addressweiAmount
- uint256
fallback
function (IERC20 token, uint256 holding) public
- Parameters:
token
- Address of the token which is need holdsholding
- uint256
holder
function holder() public view returns (bool)
- Returns:
- the number of token holding that needs to donate funds to the cause
holding
function holding() public view returns (uint256)
- Returns:
- the number of token holding that needs to donate funds to the cause
token
function token() public view returns (IERC20)
- Returns:
- the token being holding.