Open
Description
The Stability Board (SB) should be able to offer tokens or ethers from the reserves for sale with an ETH or token amount and an A-EUR/EUR price.
There can be potentially both sales and buy offers at the same time open (with different price and amount).
We don't need multiple offers from the same type open at the same time (i.e. only 0 or 1 sell token and 0 or 1 buy token can be open at the same time)
SB should be able to cancel any of its sales offers.
Anyone should be able to take a sell or buy token offer. Deal price is calculated from ETH/EUR actual market price from Rates contract at the moment of tx and the A-EUR/EUR provided by SB when placed the offer.
TBD:
- should it be a MonetarySupervisor (MS) interface which calls Reserve or SB would call directly on Reserves?
- Should the amounts on sale stay in Reserve contract or move to/from a separate ReserveSales contract? If the former then we need keep accounting offers on sale vs. reserve available