Assessment reports>Suilend>Threat Model>Function deposit_liquidity_and_mint_ctokens

Function deposit_liquidity_and_mint_ctokens

This function accepts coins of the same type as the reserve and mints cTokens proportional to the deposit, such that the newly minted cTokens represent a share of the pool exactly equal to the deposited coins.

There is a check that the maximum amount of coins in the pool is not exceeded. This check only applies for deposits and therefore does not impact withdrawals or repayments.

Zellic © 2025Back to top ↑