I'm delighted to see so many ideas about decentralised exchanges pop up. And I believe that your idea of holding BitShares collateral for virtual USD (or EUR or whatever) coins makes sense. However, I do not yet really understand how such a crypto-USD creation would work in detail. In particular, who holds the collateral and creates the crypto-USD in exchange?
The Network / Blockchain holds the collateral by converting a Dividend-Paying BitShare into Dividend-Paying crypto-Fiat at the current exchange rate. After the 'conversion' step your wallet would contain:
1 BitShare (held as collateral for $125 crypto-USD that no longer pays dividends)
125 Crypto-USD - which is paying the cyrpto-USD dividend rate (in BitShares).
If you were the one and only conversion from BitShare to CryptoUSD then the total dividend rate you receive on your 125 Crypto-USD would equal the dividends paid on 1 BitShare. However, this is a big market with lots of competion so there are other people who converted 1 BitShare to 120 Crypto-USD, 121 USD and 130 USD. Thus the dividend rate (paid in BitShares) for people who hold crypto-USD would be
(120+121+130+125) USD pays dividends Equal to 4 BitShares. Thus the effective dividend ratio is $124 pays equal to 1 BitShare. As you can see the exchange rate between BitShares and issuing of Crypto-USD causes many small conversions at different prices over time to accumulate into an average Crypto-USD vs BitShare 'interest rate'... when you normalize 'value for value' there will be slight variations on the %Return yield for USD and the % Return yield for BitShares, but these variations cause profit opportunities for people to buy Crypto-USD and pay-off their colateral any time BitShare has a higher Dividend rate as % of value. Any time Crypto-USD has a higher Dividend rate as % of Bitshare then people will be issuing new Crypto-USD at the current exchange rate and then sell it bring the Dividend rate on all currencies back to "Equal" as a percent of value.
So, when the market adjusts you (and everyone else with BitShares locked up as collateral) have incentive to buy-back crypto-USD so you can free your collateral and capitalize on the higher interest rate paid on BitShares relative to crypto-USD.
It must be the network, because if that would already be a kind of "currency exchange" between users, there would be no way to initially get crypto-USD created. But if that is done by the network, how exactly do you decide on the exchange rate?
The block chain has support to make bids that other people can accept provided the transaction sends outputs to the proper addresses with the proper exchange rate. The blockchain rules would require that the highest bid be used for all conversions AND that collateral could only be issued in response to a bid. Therefore, you can only create crypto-USD in the process of actively responding to the highest bid for crypto-USD on the block-chain exchange. Thus the creation of crypto-USD is competing against those who are simply selling existing crypto-USD and it is immediately affecting the price.
Consider for instance this scenario and please tell me where I did misunderstand your idea:
1) Assume current exchange rate (however that is determined) would be 1 $/BitShare. So I could get 1 crypto-USD by sending 2 BitShares of mine to the network to hold as collateral.
If the highest bid is 1 BitShare for 1 crypto-USD then you could issue 1 crypto-USD for 1 bitshare. No need to have any additional collateral... (that would be price fixing) and the system is based upon using your collateral to back the crypto-USD but instead using the Dividends that your collateral pays to back the crypto-USD and therefore it is impossible to have insufficient backing regardless of exchange rate fluctuation.
2) Now the exchange rate changes to be, say, 2 $/BitShare. Another user also creates 1 crypto-USD by sending now only 1 BitShare as collateral.
They couldn't do this, they have to create new crypto-USD in response the current highest bid, so they would use 1 BitShare to issue 2 crypto-USD... (upon closer examination your ratios are correct, but you still have 2x the collateral when it should be 1 :1 at the current exchange rate)
3) Again the exchange rate changes, now we have 4 $/BitShare. We both want to redeem our crypto-USDs. Would I now get back "my" 2 BitShares just for one crypto-USD while the other user would have to pay 1 crypto-USD for one BitShare, and the official exchange rate is even 4 $/BitShare? Or would the network return as many BitShares in return for redeeming the crypto-USDs as the exchange rate is?
If you have 1 crypto-USD issued that is locking up 1 of your BitShares then it would take 1 crypto-USD to free your BitShare. If someone else has 4 crypto-USD locking up their 1 BitShare then they would need 4 bit shares to unlock it. This is critical because it is what drives market forces to redeem Shares issued at over-priced rates. In your example the dividends paid on 1 USD fell over time from being equal to 1 Bit Share to being almost 1/4 what is paid on 1 BitShare. Thus you make money by buying 1 crypto-USD for .25 BitShares and redeeming your 1 crypto-USD and thus quadruple your dividend payout. When you do this you would simultaneously be causing the yield on crypto-USD to fall causing the divided ratio paid to crytpo-USD to more accurately reflect the change in market price.
In the first case, you would have to mark each crypto-USD according to the collateral, so that each crypto-USD would be able to buy back a different amount of BitShares -- which does not make any sense, because they should all be alike. In the second case, you would end up with a totally unpredicatable actual supply of BitShares not equal to the original 21 million.
So ... how exactly is that loaning and redeeming of BitShares and crypto-USDs meant to work?
I would mark each collateral output in the block chain with the rate at which it was issued. This is done because I need market forces to 'redeem' the crypto-USD that is issued at higher than current market price and to re-issue crypto-USD at the new market price.
That said I need to validate the potential of allowing ANYONE to reverse a crypto-USD issuance at the current exchange rate.... assuming the economic incentives work out (and I think they do) this would create a more fluid market and allow more actors to participate in correcting price variations.
So (thinking out loud here)... if ANYONE could to a reverse conversion at the current exchange rate then it would 'destroy' an equal amount of crypto-USD AND free up a matching amount of BitShare at the same ratio... therefore the network would still know TOTAL USD ISSUED and TOTAL BitShares backing it and thus could calculate the dividend payout rate to USD holders and come to the same number. Therefore I believe that just like anyone can issue crypto-USD at the current exchange rate, anyone can also redeem crypto-USD for BitShares at the current 'ask' price and thus there is no need to tie a specific colateralization to a specific redemption. THis is a beautiful and powerful insight that will greatly enhance the efficiency of the market.
Thanks for you interest and feedback, keep the questions coming!