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:
Base APR
Share of emissions that is not adjusted by veJOE:
total farm APR * (1 - veJoeShare)
Boost APR
Determined by the user factor
where
pool.totalFactor
is the sum of all user factor in the farm.
To help with the calculation of Boost APR, developers can try our FarmLensV2:
// ethers.Contract
const farmLensContract = useFarmLensV2Contract()
// poolIds is an array e.g. [0,1,3,6]
const response = await farmLensContract?.getBMCJFarmInfos(
masterchefAddress,
account,
poolIds
)
// APRs returned in 18 decimal
const baseAPR = response.baseAPR
const boostedAPR = response.boostedAPR
Last modified 11mo ago