Oasis Dex

Overview - REST API - Query API

Matching Market

Inherits from Simple Market. Shares the same liquidity pool. Uses` a sorted list to facilitate order matching.

Offer

Alias: make

Simple market offers with sorting and position

function offer(uint wad, ERC20 gemA, uint jam, ERC20 gemB, uint pos) returns (uint) { ... }
Buy

Alias: take

Simple market buys with sorting and position

function buy(uint offer, uint qty) returns (bool) { ... }
Cancel

Alias: kill

Cancel an offer - refunds the maker.

function uint(uint offer) returns (bool success) { ... }
Insert

Insert an offer into the sorted list

function uint(uint id, uint pos) returns (bool) { ... }

TODO

  • sellAllAmount
  • buyAllAmount
  • getBuyAmount
  • getPayAmount