Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 469 Bytes

File metadata and controls

11 lines (7 loc) · 469 Bytes

ZeroExOperator

This is the main Operator. Interacting with 0x (AMM aggregator).

0x creates off-chain orders, and settles on chain. This way, the ZeroExOperator expects to receive calldata to forwarded to 0x contracts :

/// @param swapCallData 0x calldata from the API

The route used to get such information follows this pattern: https://api.0x.org/swap/v1/quote?buyToken=SNX&sellToken=LINK&buyAmount=7160000000000000000000