Assessment reports>Prisma Finance>Threat Models>mintWithGasCompensation

Function: mintWithGasCompensation(address _account, uint256 _amount)

This is the function called from borrower operations to mint debt tokens along with gas compensation to the gas pool.

Inputs

  • _account

    • Control: Fully controlled.

    • Constraints: No constraints.

    • Impact: The account to which the amount should be minted.

  • _amount

    • Control: Fully controlled.

    • Constraints: No constraints.

    • Impact: The amount of debt tokens to be minted.

Branches and code coverage (including function calls)

Intended branches

  • Should be called only from borrower operations address.

Negative behavior

  • Revert if caller is not borrower operations.

Zellic © 2025Back to top ↑