A simple open orderbook market. Enables orders to be added to the pool and allows anyone to take a specified quantity of an order. Cancelled orders are refunded to the maker.
Alias: make
Put an order onto the books. Transfers funds from the caller to Oasis.
function offer(uint wad, ERC20 gemA, uint jam, ERC20 gemB) returns (bool) { ... }
Alias: take
Take an order off the books. Transfers funds from the caller to the offer maker, and from Oasis to the caller.
function buy(uint offer, uint qty) returns (bool) { ... }
Alias: kill
Cancel an offer - refunds the maker.
function uint(uint offer) returns (bool success) { ... }