To call from another contract:
- Get the calldata from the LI.FI API (
/v1/quoteendpoint returnstransactionRequest) - Use that calldata to call the Diamond contract from your contract
- Ensure proper token approvals to the
approvalAddressreturned in the quote
For detailed smart contract integration examples and facet documentation, check the LI.FI contracts GitHub repo.