moneyversed
medium
In the CollateralEscrowV1.sol contract, there is a risk of locked collateral when interacting with ERC20 tokens that have the transfer functionality paused or disabled.
The CollateralEscrowV1.sol contract does not account for the possibility of ERC20 tokens having their transfer functionality paused or disabled. This could result in collateral being locked within the contract, preventing users from withdrawing or liquidating their collateral.
Locked collateral could result in financial loss for users and decreased confidence in the platform's security.
Manual Review
Add checks to ensure that ERC20 tokens used as collateral have their transfer functionality enabled before interacting with them in the CollateralEscrowV1.sol contract. This will help prevent the risk of locked collateral and protect users' funds.