* @dev handles the deposit logic. Supposed to only let deposits of whitelisted tokens happen.
* Supposed to not accept deposits after deadline. Allows multiple deposits of a user as generous extra contribution.
@> * Allows a user to sign-up other users.
*
*/
function deposit(address _token, uint256 _amount) external beforeDeadline {
.
.
.
}
* @dev handles the deposit logic. Supposed to only let deposits of whitelisted tokens happen.
* Supposed to not accept deposits after deadline. Allows multiple deposits of a user as generous extra contribution.
- * Allows a user to sign-up other users.
* Assumes that no weird ERC20s or any ERC20s outside the whitelisted tokens need to be handled.
* Assumes general trust relationship between the users of this contract.
* Does not allow signing up with Ether, for Ether signups use receive()
* @param _token the token the user wishes to deposit
* @param _amount the amount the user wishes to contribute
*/
function deposit(address _token, uint256 _amount) external beforeDeadline {
.
.
.
}