daifoundation / maker-otc

The OasisDEX protocol - Simple on-chain market for ERC20 tokens
GNU Affero General Public License v3.0
101 stars 39 forks source link

whitelist market #139

Closed rainbreak closed 6 years ago

rainbreak commented 8 years ago

The SimpleMarket will accept offers involving arbitrary token pairs. An additional security precaution would be to limit the market to only accept whitelisted tokens.

Implement by extending ExpiringMarket to check that offered tokens are members of the whitelist.