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: The length of the array must be smaller than
MAX_CONTRIBUTIONS.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 smaller thanMIN_DEPOSIT.Revert when the
totalAmountis not bigger than zero.Revert when the transfer fails.