A Layer Zero Rate Provider that allows the LST conversion rate to be bridged across networks. This rate provider will support the launch of Balancer on Polygon zkEVM. This review covers the compatibility of the RateProvider
, the cross-chain price update mechanism, as well as the deployed contract code for RateProvider
(Mainnet) and RateReceiver
(Polygon zkEVM).
https://github.com/witherblock/gyarados
RateReceiver
contract on a different chain than the origin blockchain using a LayerZeroEndpoint
.updateRate
RateProvider
on a different chain than the corresponding RateProvider
.LayerZeroReceiver
.getRate
.RateProvider
chainIds
mapping(uint256 →address)
(chainId →rateReceiver)updateRate()
, iterate through all chainIds
, and send to LZEndpointupdateRate
is payable.
LayerZero
contracts, it is clear that this function is payable in order to pay protocol fees, and payments to the oracle and relayer.updateRate
function.