The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

LiquidationPoolManager::distributeFees's does not handle return value for transfer call

Summary

The transfer call on Eurotoken to protocol address can fail. The distributeFees() function does not handle the failure case.

Vulnerability Details

The below call to transfer could fail and that scenario is not handled.

eurosToken.transfer(protocol, eurosToken.balanceOf(address(this)));

Impact

It will result in incorrect amount of fee per pool and also the amount approved and distributed by LiquidationPool.

Tools Used

Manual review

Recommendations

Using safe transfer wrapper functions from Openzepplien

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

informational/invalid

Support

FAQs

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