Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 685 Bytes

StandardizedCallFacet.md

File metadata and controls

18 lines (12 loc) · 685 Bytes

Standardized Call Facet

How it works

The StandardizedCallFacet Facet works by parsing the calldata sent to standardizedCall and then forwarding to the correct facet using the LiFiDiamond internal storage for facet address lookup.

The additional functions standardizedSwapCall, standardizedBridgeCall and standardizedSwapAndBridgeCall execute the same logic, but allow easier parsing.

graph LR;
    D{LiFiDiamond}-- DELEGATECALL -->StandardizedCallFacetFacet;
    StandardizedCallFacetFacet -- CALL --> C(StandardizedCallFacet)
Loading

Public Methods

  • function standardizedCall(bytes calldata callData)
    • Calls the correct facet based on the calldata.