Assessment reports>Plaza>Threat Model>_deposit

Function: _deposit(address[] tokens, uint256[] amounts, address recipient)

The main function of the _deposit function is to transfer the tokens deposited by the user to the contract and update the user's deposit balance.

Inputs

  • tokens

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Array of tokens to deposit.

  • amounts

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Array of amounts to deposit.

  • recipient

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Beneficiary's address.

Branches and code coverage

Intended branches

Negative behavior

Zellic © 2025Back to top ↑