Assessment reports>RabbitX>Threat Model>deposit

Function: deposit(uint256 amount)

This function is for depositing the paymentToken.

Inputs

  • amount

    • Control: Completely controlled by the caller.

    • Constraints: The caller must have enough paymentToken to transfer.

    • Impact: The amount to transfer.

Branches and code coverage

Intended branches

  • Transfer the paymentToken from msg.sender to this contract.

  • Increase nextDepositId when the transfer succeeds.

Negative behavior

  • Revert when the transfer fails.

Zellic © 2025Back to top ↑