Function: harvest()
Harvest fees from the pool, charge fees for Beefy, then readjust positions.
Branches and code coverage
Intended branches
Reset the
fees0counter.Reset the
fees1counter.Should forward part of the fees to
tx.origin.Set the
totalLocked0counter.Set the
totalLocked1counter.Set the
lastHarvestto the current block timestamp.Claim fees from the pool and collect them.
Charge fees for Beefy and send them to the appropriate addresses — charge fees to accrued state fee amounts.
Remove the liquidity.
Readjust the ticks.
Add the liquidity.
Reset the state fees to zero.
Negative behavior
Should not be callable unless the period is calm. Currently not implemented.