First Flight #18: T-Swap

First Flight #18
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Large literal values multiples of 10000 can be replaced with scientific notation

Summary Large literal values multiples of 10000 can be replaced with scientific notation

Tools Used : Foundry ,Aderyn

Use e notation, for example: 1e18, instead of its full numeric value.

3 Found Instances
  • Found in src/TSwapPool.sol Line: 36

    uint256 private constant MINIMUM_WETH_LIQUIDITY = 1_000_000_000;
  • Found in src/TSwapPool.sol Line: 246

    return ((inputReserves * outputAmount) * 10000) / ((outputReserves - outputAmount) * 997);
  • Found in src/TSwapPool.sol Line: 317

    outputToken.safeTransfer(msg.sender, 1_000_000_000_000_000_000);
Updates

Appeal created

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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