`exchangeFee` can be escaped
The contract calculates the swapped amount by comparing balances before and after a swap, which can be manipulated by reentering the swap function to perform a fake swap that wraps the real swap, causing the exchange fee to be included in the returned amount. An attacker could thus avoid paying most of the exchange fee.
Mover
Medium