veJOE for Developers
With the introduction of
Boosted MasterChef Joe(BMCJ), users now see different Boosted APRs depending on their veJOE balance.
A users total farm APR now consist of 2 components:
Share of emissions that is not adjusted by veJOE:
total farm APR * (1 - veJoeShare)
Determined by the user factor
pool.totalFactoris the sum of all user factor in the farm.
To help with the calculation of Boost APR, developers can try our FarmLensV2:
const farmLensContract = useFarmLensV2Contract()
// poolIds is an array e.g. [0,1,3,6]
const response = await farmLensContract?.getBMCJFarmInfos(
// APRs returned in 18 decimal
const baseAPR = response.baseAPR
const boostedAPR = response.boostedAPR