sechub
HomeServicesAssetsJobsFindingsTicketsGovCheck
Guest Mode. Click here to sign in and access all features

    Use of redundant libraries

    Holoride: DeFi Token

    Severity
    Informational
    Status
    Fixed
    Location(s)

    https://github.com/sub7security/holoride-defi/blob/main/contracts/Farming.sol#L11

    Description

    The contract uses ^0.8.18 version which has inbuilt arithmetic overflow and underflow protection at compiler level. Thus, usage of SafeMath library is not required since any arithmetic underflow or overflow due to addition, substraction or multiplication will lead to error.

    Recommendation

    Remove the redundant SafeMath library.

    Comments
    No comments yet

    Use of redundant libraries

    Holoride: DeFi Token

    Severity
    Informational
    Status
    Fixed