[M] Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom
Summary
Use safeTransfer/safetransferFrom consistently instead of transfer/transferFrom
Vulnerability Detail
Some tokens do not revert on failure, but instead return false (e.g. ZRX). https://github.com/d-xo/weird-erc20/#no-revert-on-failure tranfser/transferFrom is directly used to send tokens in many places in the contract and the return value is not checked.
Impact
If the token send fails, it will cause a lot of serious problems.
Nadin
medium
[M] Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom
Summary
Use safeTransfer/safetransferFrom consistently instead of transfer/transferFrom
Vulnerability Detail
Some tokens do not revert on failure, but instead return false (e.g. ZRX). https://github.com/d-xo/weird-erc20/#no-revert-on-failure tranfser/transferFrom is directly used to send tokens in many places in the contract and the return value is not checked.
Impact
If the token send fails, it will cause a lot of serious problems.
Code Snippet
https://github.com/sherlock-audit/2023-02-kairos/blob/main/kairos-contracts/src/BorrowFacet.sol#L40
Tool used
Manual Review
Recommendation
Consider using safeTransfer/safetransferFrom consistently
Duplicate of #1