DeFiHardhat
35,000 USDC
View results
Submission Details
Severity: low
Invalid

`switchUnderlyingToken` function will revert when using usdt tokens

Summary

usdt must be set to a zero before a non-zero

Vulnerability Details

if a user swaps any token for usdt , usdt requires to be set to a zero before a non-zero this revert

Impact

function will revert and cause a DOS ,and funds can be locked in a specific token

Tools Used

manual

Recommendations

check if token is usdt , if it is then set approve to zero then to the value you want it to be

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational/Invalid

Support

FAQs

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