Function: pooledDeposit(Contribution[] contributions)
This function is for depositing the paymentToken to the rabbit with multiple contributors.
Inputs
contributionsControl: Completely controlled by the caller.
Constraints: None.
Impact: A set of contributions to treat as the deposited contributions.
Branches and code coverage
Intended branches
Transfer the
paymentTokenfrommsg.senderto therabbit.Increase the
nextDepositIdfor each contribution.
Negative behavior
Revert when the
contribution.amountis not bigger than zero.Revert when the
totalAmountis not bigger than zero.Revert when the transfer fails.