Assessment reports>RabbitX>Threat Model>pooledDeposit

Function: pooledDeposit(Contribution[] contributions)

This function is for depositing the paymentToken to the rabbit with multiple contributors.

Inputs

  • contributions

    • Control: 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 paymentToken from msg.sender to the rabbit.

  • Increase the nextDepositId for each contribution.

Negative behavior

  • Revert when the contribution.amount is smaller than MIN_DEPOSIT.

  • Revert when the totalAmount is not bigger than zero.

  • Revert when the transfer fails.

Zellic © 2025Back to top ↑