Total MarketCap:$00
API
EN
Dark

SearchSSI/Mag7/Meme/ETF/Coin/Index/Charts/Research
00:00 / 00:00
View
    Markets
    Indexes
    NewsFeed
    TokenBar®
    Analysis
    Macro
    Watchlist
Share
spearbit


The vulnerability lies in a potential underflow when calculating the fee in `NO_FEE_AFTER_LIMIT` mode. If the user's current trading volume *after* the deposit exceeds the volume limit, and the fee calculation subtracts the limit from the volume, an integer underflow can occur if the volume limit is larger than the user's volume. This underflow would result in a very large number being used in the fee calculation, potentially leading to unexpected behavior, including a denial-of-service (DoS) due to excessive gas consumption or incorrect state updates. The function doesn't properly handle the case where the user's volume surpasses the limit, leading to the underflow.

All You Need to Know in 10s
TermsPrivacy PolicyWhitePaperOfficial VerificationCookieBlog
sha512-gmb+mMXJiXiv+eWvJ2SAkPYdcx2jn05V/UFSemmQN07Xzi5pn0QhnS09TkRj2IZm/UnUmYV4tRTVwvHiHwY2BQ==
sha512-kYWj302xPe4RCV/dCeCy7bQu1jhBWhkeFeDJid4V8+5qSzhayXq80dsq8c+0s7YFQKiUUIWvHNzduvFJAPANWA==