CollateralEscrowV1.sol : _withdrawCollateral , funds would be lost the some collateral that fails with false return,
Summary
During withdraw process, _withdrawCollateral is called and funds are trnasferred using the either transfer or transferFrom or safeTransferFrom functions.
The contract is using the regular transfer call for ERC20 tokens.
ak1
medium
CollateralEscrowV1.sol :
_withdrawCollateral
, funds would be lost the some collateral that fails with false return,Summary
During withdraw process, _withdrawCollateral is called and funds are trnasferred using the either
transfer
ortransferFrom
orsafeTransferFrom
functions.The contract is using the regular transfer call for ERC20 tokens.
Vulnerability Detail
Note : safeERC20 operation is not invoked, through the contract safeERC20 is inherited.
Impact
Fund would be lost incase the collateral returns false in case of failure.
Code Snippet
https://github.com/sherlock-audit/2023-03-teller/blob/main/teller-protocol-v2/packages/contracts/contracts/escrow/CollateralEscrowV1.sol#L158-L179
Tool used
Manual Review
Recommendation
Duplicate of #220