Setting APYs on farms
From Ethereum Mainnet to layer 2 contracts...
Last updated
From Ethereum Mainnet to layer 2 contracts...
Last updated
At the point when the vote is executed on Ethereum mainnet, information about APYs to be set on the farms are passed through the mainnet farms as well as polygon farms
A vote such as below dictates how much APY to set for our IbAlluoXXX farm. Then on chain, we immediately set the interest rate to the approved APY.
Today we have farms on Polygon and Optimism. Setting APYs on these through a decentralised process requires two steps
Execute the vote on Ethereum mainnet and then use a cross-chain messaging protocol such as AnyCall (Multichain).
On receipt of the cross chain data on layer 2 (ex. Polygon), set the APY.