Assessment reportsPublic findings
Back to Zellic site
↗
Assessment reports>Suilend>Threat Model>Function withdraw_ctokens
GeneralOverview
Findings
Medium (2)
DiscussionUse of APR in configurationLiquidate maximum percentage is weightedDesync between reserve and obligation interest
Threat ModelWhat are threat models?1-lending_market
3-reserveBasic functionFunction update_reserve_configFunction update_priceFunction compound_interestFunction claim_feesFunction deposit_liquidity_and_mint_ctokensFunction redeem_ctokensFunction borrow_liquidityFunction repay_liquidityFunction deposit_ctokensFunction withdraw_ctokens
4-obligation
Audit ResultsSummary

Function withdraw_ctokens

The function withdraws tokens that are previously used for collateral. In order to ensure the user does not withdraw collateral for an active loan, checks are performed in lending_market.

Zellic © 2025Back to top ↑