The information provided by Aloe Labs, Inc. (“we,” “us” or “our”) on docs.aloe.capital (the “Site”) is for general informational purposes only. All information on the Site is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the Site.Under no circumstance shall we have any liability to you for any loss or damage of any kind incurred as a result of the use of the site or reliance on any information provided on the site. Your use of the site and your reliance on any information on the site is solely at your own risk.
gasPrice
. Blend estimates this value by assuming that keepers break-even when they call rebalance
-- i.e. reward
is approximately equal to transaction cost. Therefore, tickSpacing
ticks wide) will be placed to get back to 50/50.
What this means is that the rebalance incentive may remain high even after multiple rebalance
calls. It only goes to 0 after re-centering. You can see which case is playing out by checking rebalance
event logs or getRebalanceUrgency()
.maintenanceBudget0
and maintenanceBudget1
. With sufficient TVL, the contract will reach equilibrium and each maintenance budget will be clipped to maxBudget
.K
is set to 20. This creates a buffer so that the pool can incentivize rebalances despite fluctuating earnings and gas prices.maxRebalanceGas
is the maximum amount of gas that has ever been used during a rebalance
call.maxBudget
is reached, the maintenance budgets can be replenished at-cost. So instead of paying 10% of earnings to the maintenance budgets, the pool only has to pay around $100/day (or however much rebalance transactions cost).maintenanceIsSustainable
. This flag is true if either maintenanceBudget0
or maintenanceBudget1
is greater than maxBudget
, and false if either of them drops below maxBudget / L
(L=4).token0
and token1
, payouts to keepers are constrained to be less than the maintenance budgets. If the contract happens to hold other tokens, keepers can request those and no constraint will be applied (just the usual reward computation described here).currentAverage - currentAverage / D
where D=10. This helps protect against a certain form of attack, described and simulated here.deposit
and withdraw
to give you slightly (very slightly) less than what you're owed. So if you're depositing or withdrawing a significant fraction of the pool, it's best to do so immediately after a rebalance. You can trigger one yourself or wait for keepers to do it.