GlobalVariables
LayerZero(Cross Chain) transactions like data transfers and token transfers are performed in this contract.
Write Functions
send
functionToDo
enum FunctionToDo
What function needs to be done in destination chain.
fee
struct MessagingFee
Native fee needs to pay for LZ transaction.
options
bytes
Gas limit.
refundAddress
address
Address where the remaining native fee should be sent.
msg.value
uint256
Native fee.
Send the LZ transaction to do the specified function in the destination chain.
sendForLiquidation
functionToDo
FunctionToDo
What function needs to be done in destination chain.
liqIndex
uint128
Liquidation index to map to the data.
liquidtionInfo
LiquidationInfo
Liquidation Info to store.
assetName
AssetName
Liquidated asset.
fee
MessagingFee
Native fee for lz send.
options
bytes
Gas limit.
refundAddress
address
Address where the remaining native fee should be sent.
msg.value
uint256
Native fee.
Send the LZ transaction to do the specified function in the destination chain.
oftOrCollateralReceiveFromOtherChains
functionToDo
FunctionToDo
What function needs to be done in destination chain.
oftTransferData
USDaOftTransferData
Details contains receiver address and amount of USDa to get.
collateralTokenTransferData
CollateralTokenTransferData
Details contains receiver address and amount of Collateral to get.
callingFunction
CallingFunction
Which function is calling this function.
refundAddress
address
Address where the remaining native fee should be sent.
Gets the required USDa or Collateral from destination chain.
_lzReceive
payload
bytes calldata
payload data received from source chain
Performs the function mentioned in payload.
Setter Functions
setDstEid
Sets the destination endpoint id for the contract.
setTreasury
Sets the treasury contract interface.
setOmniChainData
Updates the omnichain data to be stored in other chain.
setBorrowing
Sets the borrowing contract instance.
setBorrowLiq
Sets the borrow liquidation contract address.
setDstGlobalVariablesAddress
Sets the destination chain global variables contract address.
Read Functions
quote
functionToDo
FunctionToDo
What function needs to be done in destination chain.
assetName
AssetName
Collateral type to update the amount of collaterals.
options
bytes
Gas value
payInLzToken
bool
Whether the fee is paying in lzToken
Returns the native fee needs to be pay for the lz send transaction.
Last updated