GalloDaSballo / Apollon-Review

Notes for the Apollon Solo Security Review
0 stars 0 forks source link

`SwapOperations` Swap Fees may add up to more than 100% #58

Open GalloDaSballo opened 3 months ago

GalloDaSballo commented 3 months ago

Impact

swapBaseFee is capped to 1e18, but it is added to Pair.getSwapFee meaning that it may result in a value higher than 100%

Mitigation

Cap fees at a smaller value, such as at most 10%

sambP commented 3 months ago
Screenshot 2024-08-28 at 9 53 52 PM