Seller Pays Buyer's Trade Fee in Token Swaps, Leading to Systematic Theft of Funds
The token swap settlement logic deducted the buyer's trade fee from the payment sent to the seller, so sellers received less than the agreed price while buyers paid only the base amount. An attacker with a high custom fee rate could make sellers subsidise their fees, and even standard fees caused systematic losses for sellers.
Index Fun Order Book
High