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

    Update LiquidationCall() & Repay() event to include useAToken

    AGAVE: Deployment Security Audit

    Severity
    Informational
    Status
    Fixed
    Location(s)

    LiquidationCall()

    event:

    https://github.com/Agave-DAO/protocol-v2/blob/69cbb24fd849f3d0a93274bcda67fd5e2eda93f6/contracts/protocol/lendingpool/LendingPoolCollateralManager.sol#L247

    Repay()

    event:

    https://github.com/Agave-DAO/protocol-v2/blob/69cbb24fd849f3d0a93274bcda67fd5e2eda93f6/contracts/protocol/lendingpool/LendingPool.sol#L300

    Description

    With the implementation of the usage of aTokens when liquidating or repaying debt, there is no variable in the event emitted that registers the use of a aToken, instead of the normal debt token.

    Recommendation

    Include the variable "useAToken" inside the emit LiquidationCall() & Repay() events

    Comments
    No comments yet

    Update LiquidationCall() & Repay() event to include useAToken

    AGAVE: Deployment Security Audit

    Severity
    Informational
    Status
    Fixed