MultiChainLayerZeroTellerWithMultiAssetSupport

Git Source

Inherits: MultiChainTellerBase, OAppAuth

LayerZero implementation of MultiChainTeller

Functions

constructor

constructor(
    address _owner,
    address _vault,
    address _accountant,
    address _endpoint
)
    MultiChainTellerBase(_owner, _vault, _accountant)
    OAppAuth(_endpoint, _owner);

_quote

function override to return the fee quote

function _quote(uint256 shareAmount, BridgeData calldata data) internal view override returns (uint256);

Parameters

Name
Type
Description

shareAmount

uint256

to be sent as a message

data

BridgeData

Bridge data

_lzReceive

Called when data is received from the protocol. It overrides the equivalent function in the parent contract. Protocol messages are defined as packets, comprised of the following parameters.

Parameters

Name
Type
Description

_origin

Origin

A struct containing information about where the packet came from.

_guid

bytes32

A global unique identifier for tracking the packet.

payload

bytes

Encoded message.

<none>

address

<none>

bytes

_bridge

bridge override to allow bridge logic to be done for bridge() and depositAndBridge()

Parameters

Name
Type
Description

shareAmount

uint256

to be moved across chain

data

BridgeData

BridgeData

Errors

MultiChainLayerZeroTellerWithMultiAssetSupport_InvalidToken

Was this helpful?