Late Hotpink Dinosaur
Medium
Incorrect ERC20 handling of native POL token will cause complete failure of fee collection for POL-based fees as the contract attempts to use ERC20 methods on the native token address, preventing successful fee processing.
In StablecoinHandler.sol:_stablecoinSwap() at https://github.com/sherlock-audit/2024-11-telcoin/blob/main/telcoin-audit/contracts/stablecoin/StablecoinHandler.sol#L152, the function attempts to handle POL (native token) using ERC20 interface methods, which is fundamentally incompatible with native token transfers in case stablecoinFeeCurrency is POL.
ERC20PermitUpgradeable(ss.stablecoinFeeCurrency).safeTransferFrom(
wallet,
ss.stablecoinFeeSafe,
ss.feeAmount
);
No response
No response
No response
The protocol cannot process any swaps that use POL as the fee currency, effectively breaking a core feature of the system.
No response
No response