_transferTokens does not check the return value of token approving.
Impact
This may result in silent failing of approval of amount especially in like if amount is the maximum uint256or other cases where function may just fail but result is not being checked therefore no amount will be approved leading to faulty working of transfers and protocol
MatricksDeCoder
medium
Unchecked return value of approve
Summary
Unchecked return value of approve in ChilizWrapperFactory.sol transfer tokens function
Vulnerability Detail
https://github.com/sherlock-audit/2024-02-jala-swap/blob/main/jalaswap-dex-contract/contracts/utils/ChilizWrapperFactory.sol#L72
_transferTokens does not check the return value of token approving.
Impact
This may result in silent failing of approval of amount especially in like if
amount
is the maximumuint256
or other cases where function may just fail but result is not being checked therefore no amount will be approved leading to faulty working of transfers and protocolCode Snippet
Tool used
Manual Review
Recommendation
Check the return value e.g
Duplicate of #117