Submitted by sha256yan, also found by Jeiwan
LBPair contracts consistently collect less fees than their FeeParameters.
https://github.com/sha256yan/incorrect-fee
Note: please see wardens original submission for full details.
LBpair contracts fees fall short by 0.1% on single bin with the deficit growing exponentially with multi-bin swaps.
This report will refer to this difference in fees, that is, the difference between the expected fees and the actual collected fees as the Fee Deficit.

The exponential growth of the Fee Deficit percentage is concerning, considering that the vast majority of the fees collected
by LPs and DEXs are during high volatility periods.
Note that the peak Fee Deficit percentage of 1.6% means that 1.6% of expected fees would not be collected.
With an assumed average total fee of 1% (higher than usual due to variableFee component) and average Fee Deficit percentage of 0.4%;
The total Fee Deficit from a period similar to May 7th 2022 - May 14th 2022, with approximately $1.979B in trading volume, would be $79,160 over one week.
SwapHelper.getAmounts carries most of the blame for this error.
3 main causes have been identified and will be discussed in this report.

Will now use example numbers:
Snippet 1 (SwapHelper.getAmounts)
Consider the following:
Snippet 2 (SwapHelper.getAmountsV2)
To install dependencies, run the following to install dependencies:
To run tests, run the following command:
0x0Louis (Trader Joe) confirmed
Alex the Entreprenerd (judge) decreased severity to Medium and commented:
For this contest, 11 reports were submitted by wardens detailing low risk and non-critical issues. The report highlighted below by zzykxx received the top score from the judge.
The following wardens also submitted reports: brgltd, rbserver, hansfriese, pashov, IllIllI, adriro, 0xSmartContract, KingNFT, 0x1f8b, and Rolezn.
