Setting APYs on farms
From Ethereum Mainnet to layer 2 contracts...
Setting APYs on Ethereum Mainnet farms
if (commandIndex == 0) {
(
string memory ibAlluoSymbol,
uint256 newAnnualInterest,
uint256 newInterestPerSecond
) = abi.decode(
messages[j].commandData,
(string, uint256, uint256)
);
IIbAlluo ibAlluo = IIbAlluo(
ibAlluoSymbolToAddress[ibAlluoSymbol]
);
if (ibAlluo.annualInterest() != newAnnualInterest) {
ibAlluo.setInterest(
newAnnualInterest,
newInterestPerSecond
);
}
} Setting APYs on Layer 2 farms
Last updated