Aura Finance
English
Search
⌃K

Calculate pool boost

function getBoost() {
const adjustedGaugeBalance =
0.4 * gaugeBalance + ((0.6 * vebalBalance) / vebalTotalSupply) * gaugeTotalSupply;
const workingBalance =
gaugeBalance < adjustedGaugeBalance ? gaugeBalance : adjustedGaugeBalance;
const zeroBoostWorkingBalance = 0.4 * gaugeBalance;
const zeroBoostWorkingSupply = gaugeWorkingSupply - workingBalance + zeroBoostWorkingBalance;
const boostedFraction = workingBalance / gaugeWorkingSupply;
const unboostedFraction = zeroBoostWorkingBalance / zeroBoostWorkingSupply;
return boostedFraction / unboostedFraction;
}