Algo Ssstablecoinsss

First Flight #30
Beginner FriendlyDeFi
100 EXP
View results
Submission Details
Severity: medium
Invalid

In function _redeem_collateral there is using transfer fucntion

Summary

The _redeem_collateral function allows users to redeem their collateral by transferring tokens from the protocol's contract to the user's specified address.

There is using transferfunction.

Vulnerability Details

In the code is using transferfunction.

success: bool = extcall IERC20(token_collateral_address).transfer(
_to, amount_collateral
)

This function has a few potential vulnerability,

The gas fee limit for a standard ETH transfer is 21,000 units of gas. This is the typical amount required to execute a simple ETH transfer1. However, more complex transactions, such as those involving smart contracts, can require significantly more gas.

Impact

The functionality of _redeem_collateralcan be broken. And colaterall can not be reedeem.

Tools Used

manual review

Recommendations

Please use call inseted of transfer.

Updates

Lead Judging Commences

bube Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.