Whitepaper Discussions
Short notes, links and reference for internal team discussions @MerkleLab related to Whitepapers.
Discusion Details
Provide an overview of how to use this document
Projects
- AirSwap
Name | AirSwap |
---|---|
Token: | AST |
WhitePaper | CoinMarketCap |
Date: | 17th January 2018 |
Company | ConsenSys |
Founder | Michael Oved, Don Mosites |
Table of Contents:
- [Summary](#1. Summary)
- Introduction
- Orderbook
- Peer to Peer
- Swap Protocol
- Peer Protocol
- Indexer Protocol
- Oracle Protocol
- Smart Contract
1. Summary
2. Introduction
Overview: Alternative to Blockchain Orderbook by specifying a set of protocols
Orderbook
- Do not scale well
- Miner manipulation is possible
- Lots of other problems as well!
So, now come as saviour!
Peer to Peer
- Scale, because they’re always done
- No cancel, lightweight, private negotiation, fair.
- They’re awesome overall!
- Need to beat AI man! Come together, world peace.
[Background Music] Hero Entry!
Swap!
Foundation Peer Protocol for Asset Exchange, Go Team Ethereum!
3. Peer Protocol
Order API is high level right now. Further details would be discussed in future papers.
getOrder
& provideOrder
Quotes API is also similar, but for price exchange and not executable order. Can be executed if conditions are met later.
getQuote
& provideQuote
4. Indexer Protocol: FindEther
Indexer API manages intent to trade using the following commands between the peers and an indexer.
addIntent(makerToken, takerTokens)
removeIntent(makerToken, takerTokens)
getIntent(makerAddress)
findIntent(makerToken, takerToken)
foundIntent(makerAddress, intentList)
5. Oracle Protocol: coinbase_prices
Use external sources for determining fair prices of trade.
Similar for Taker Oracle.
Oracle API is getPrice
, providePrice
. Broadly just a source, like coinbase_prices.
6. Smart Contract
fillOrder(makerAddress, makerAmount, makerToken, takerAddress, takerAmount, takerToken, expiration, nonce, signature)
cancelOrder
: Before being filled, it fills the order, so later it’s already filled.
Event broadcast: ‘filled’
and ‘cancelled’
.
Transfer Ether: if null takerToken address (0x0) then it will transfer ether in the function call on behalf of the taker to the maker
[Summary](# 1. Summary)