The contract currently has a setParamenter
function that allows the owner to update the buffer ration as shown below
The issue is that this is closely related to the liquidity
The desiredBuffer will the changed if the liquidity bufferRatio is updated. However, the _rebalanceLiquidity
function is not triggered immediately after this change. This means that until _rebalanceLiquidity is called again, the liquidity buffer will remain misaligned with the new ratio.
Rebalance not updated
manual Review
Add a call to rebalance liquidity after updating the buffer ratio.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.