Function: individualDeposit(address contributor, uint256 amount)
This function is for depositing the paymentToken to the rabbit.
Inputs
contributorControl: Completely controlled by the caller.
Constraints: None.
Impact: The address of the contributor to emit the
Depositevent as.
amountControl: Completely controlled by the caller.
Constraints: The value must be bigger than zero, and the caller must have enough
paymentTokento transfer.Impact: The amount to transfer.
Branches and code coverage
Intended branches
Transfer the
paymentTokenfrommsg.senderto therabbit.Increase
nextDepositIdwhen the transfer succeeds.
Negative behavior
Revert when the amount is not bigger than zero.
Revert when the transfer fails.