There is a _twapUpdate function to calculate cumulative price.
https://github.com/code-423n4/2024-03-abracadabra-money/blob/1f4693fdbf33e9ad28132643e2d6f7635834c6c6/src/mimswap/MagicLP.sol#L545-L558
Ensure this function is invoked prior to modifying any reserves.
Its crucial to first update the cumulative price using the previous reserves, then proceed with reserve adjustments.
However, the current process involves calling the _twapUpdate function after modifying reserves.
Consequently, the updated reserves are multiplied by the elapsed time, leading to inaccuracies in the cumulative price.
https://github.com/code-423n4/2024-03-abracadabra-money/blob/1f4693fdbf33e9ad28132643e2d6f7635834c6c6/src/mimswap/MagicLP.sol#L564
The same for the _sync function.
https://github.com/code-423n4/2024-03-abracadabra-money/blob/1f4693fdbf33e9ad28132643e2d6f7635834c6c6/src/mimswap/MagicLP.sol#L578
The same for the _resetTargetAndReserve function.
https://github.com/code-423n4/2024-03-abracadabra-money/blob/1f4693fdbf33e9ad28132643e2d6f7635834c6c6/src/mimswap/MagicLP.sol#L542
Should call _twapUpdate function before making changes to the reserves.
