code-423n4 / 2022-04-backd-findings

6 stars 4 forks source link

QA Report #137

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

(Non-Critical) It’s better to use SafeERC20

Impact

It’s better to use the trusted 3rd party library SafeERC20 to check the return value of transfer.

Proof of Concept

https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/actions/topup/handlers/CompoundHandler.sol#L79-L80

Tools Used

vim, ethers.js

Recommended Mitigation Steps

Use SafeERC20 rather than checking manually.