Variable naming suggestion
The contract zapDest is the cross-chain bridge receiver for Y2K vaults that implements the function lzReceive
. The LayerZero Endpoint will invoke this function to deliver the message on the destination. In this contract, the global variable layerZeroRelayer
is used to store the address of the LayerZero Endpoint that will call this function. We suggest to rename this variable as layerZeroEndpoint
to avoid confusion.
This issue has been acknowledged by Y2K Finance, and a fix was implemented in commit 8b8d6ad7↗.