asdRouter
Last updated
Last updated
asdRouter
enables asD tokens to be minted from other chains with USDC deposits. Its only public method, lzCompose
, is called by the LayerZero executor when minting is initiated by a user on another network.
To mint asD tokens from another network, a user should first obtain a whitelisted USDC OFT on the origin network (by wrapping or swapping). Then call the LayerZero send
method on the OFT passing the following struct (encoded as bytes) in the composeMsg
parameter:
lzCompose
The lzCompose(...)
method is called by the LayerZero executor when minting is initiated on another network. The calldata for this method is determined by the composeMsg
parameter sent on the origin chain when USDC is sent, as described above.
This method:
Wraps bridged USDC as asdUSDC
Swaps asdUSDC for NOTE on Ambient
Mints the specified asD token on Canto
Sends the asD token to the destination chain and address