Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (14 sloc) 1.15 KB

AirSwap works with a combination of web protocols and smart contracts. There are two kinds of liquidity providers in the system, those that run their own HTTP servers to provide liquidity, and those that manage onchain delegates that make trades on their behalf.

Trading with Makers

Makers are HTTPS servers that implement the Maker API.

Web Apps call...

  1. getIntents on the Maker Indexer using protocol 0x0000 and receives locators (URLs).
  2. getOrder on each HTTPS Maker using JSON-RPC over HTTP.
  3. swap on the Swap Contract with the order that it wishes to trade.

Trading with Delegates

Delegates are smart contracts that follow trading rules.

Web Apps call...

  1. getIntents on the Delegate Indexer using protocol 0x0001 and receives contract addresses.
  2. get*Quote on each Delegate Contract.
  3. provideOrder on the selected Delegate Contract that performs the Swap.
You can’t perform that action at this time.