Showing posts with label MtGox. Show all posts
Showing posts with label MtGox. Show all posts

Monday, August 15, 2016

Secondary and debt markets for exchanges

Secondary and debt markets for exchanges

As discussed last week, Bitfinex has followed through with their bail-in and gave all of their users a 36% "haircut". While not ideal, with the right approach and conviction, this might be a way for the exchange to eventually right their customers. The idea is not new - I recall discussing something similar a few years ago when another big exchange was not measuring up...

MtGox's secondary market


MtGox, the poster child of why one shouldn't trust exchanges with one's BTC, has officially shut down in 2014. However, months before that you could already see some red flags popping up that something was going wrong. MtGox started having some fiat withdrawal problems, and as a result, its market was off by 10+% and ripe for arbitrage. Some people could make a tidy profit churning money around, provided they could get their fiat out of the exchange.

A few months later, the situation got worse - MtGox has officially halted both its bitcoin and fiat withdrawals altogether. However, probably due to some interesting code optimisation, someone figured out that if you withdraw bitcoins straight into a deposit address of another MtGox account, the funds would be transferred without creating a transaction on the blockchain. It looked like that functionality was governed by the "MOVE" API call, rather than "SEND". This tiny functionality was enough for someone to build an entire secondary market for MtGox before the whole exchange went under.

While I can't find any reference to what the site was (EDIT: the website was Bitcoin Builder, as pointed out by /u/samurai321), as the news of MtGox collapse has probably buried it in the sands of time, I remember it being a simple BTC-MtGoxBTC exchange. One could deposit actual bitcoins and trade them for bitcoins owed by MtGox that were moved to the secondary market's address. It allowed some people to get rid of their coins frozen at the exchange and cash out to the safety of the wallets their own, while letting others speculate on whether or not MtGox would be going under. I remember seeing the price reaching a level of 30+% discount on the market, which is fairly comparable to the current Bitfinex scenario...

Decentralised secondary markets


After MtGox collapsed, I haven't seen a similar secondary market pop up anywhere. The closest thing that comes to mind is being able to trade Bitstamp's IOUs on Ripple, which might be an ideal approach for trading exchanges' debt (at least provided the exchange doesn't run into new hacks). If Bitstamp was to go under, you could still trade about 1.5M USD and 2k BTC of its issue on the decentralised exchange nearly indefinitely. Figuring out its USD-USD and BTC-BTC exchange rate against an operating pool could be a clear gaige of confidence in the platform - if there were talks of the exchange recovering, the price might get closer to parity, or go away from it in the opposite case.

At the same time, such a secondary market might be used for something more morally muddy...

Buying one's own debt


Say Bitfinex's tokens were tradable during the hack. Before everyone knew how much was lost percentage-wise, the market would be wild with speculation - you probably could buy bitcoins at 50+% discount, perhaps even at 90% discount if the fear would set in. Now, if Bitfinex was aware of such a situation and knew how much deposits they could actually cover, they could try buying up their own debt for pennies on the dollar before the haircut was to take place. This could allow them to buy off some of their debt at a discount, reducing their obligations to their customers and therefore creating a theoretical profit.

Such a scenario would be highly unethical and I would guess highly illegal, but I wouldn't be surprised to see something like this happen sooner or later in the Bitcoin world. Instead, let's imagine some more ethical approach Bitfinex could act on their current situation...

Slow debt repayment


I'm not sure how Bitfinex structured their token program as I don't use the exchange. However, a good approach to eventually righting everyone would be for them to convert everyone's BTC balance into those tokens. At any time, the users would be able to cash the tokens in and get actual coins, minus the haircut. With each token converted, their obligations would decrease.

The tokens would also be tradable on the exchange itself for actual coins, creating a market for the debt. Anyone wishing to speculate would be able to trade the coins for a value between the haircut discount and 1BTC. The price would have upper and lower bounds, but could fluctuate in between.

If Bitfinex was diligent and set on repaying the debt by eventually buying up all of the tokens, they could publicly declare their strategy of doing so - perhaps a portion of their monthly income would go directly into purchasing the tokens from the market at the spot rate. With every purchase, the amount of tokens in circulation would decrease, thus the ratio of their bitcoins earmarked for buying back the tokens to the actual amount of tokens would increase, making the haircut smaller and smaller. Gradually, the gap between the value of the tokens and the real coins would shrink so much they could convert the tokens themselves straight into coins at a 1:1 ratio and remove them entirely.

In the end, the amount of coins you would get back would rely only on how quickly you need them - you could get them today for 36% off, perhaps get them for 30% off in a year, or get a full amount in a decade. The market would decide what the future value of the tokens would be, and with each month (and perhaps with each trade if some fees were to be maintained for this market), the debt would be slowly repaid.

In the end, this is an optimistic scenario assuming the exchange could earn back millions of dollars worth of coins before the company would go under. Similarly, if you believe the value of bitcoins will go up, the debt may never be repaid - the value of the coins left to be repaid could be going up as the number of the coins would be going down thanks to the increasing price.

One way or the other, it would be a really interesting case study if Bitfinex was to implement something like this...

Related links:


Monday, June 13, 2016

Bitcoin historical rallies, halvenings and bubbles

As of the time of writing, we are less than 4'000 blocks / one month away from Bitcoin's second halvening (the 4-year block reward halving period). We are also in the middle of a price rally, rising from about 400 USD/BTC and currently going through the 650 USD/BTC price. This seems like a good a time as any to talk about some of my past experiences with Bitcoin rallies, bubbles, and the last halvening.



The First Bitcoin Bubble - mid-2011


I joined the Bitcoin community during the rally for the First Bitcoin Bubble (or at least the first one everyone heard about). It is the little, insignificant blip on the chart above, but at the time it was the wild, uncharted territory. The price reached a staggering 30 USD/BTC (and as far as I remember, 40 USD/BTC equivalent on Bitomat). A lot of people, myself included, were getting into the Bitcoin mining fever, projecting to make astonishing amounts of money with their computers and GPUs. However, the bubble burst, MtGox got hacked and the future of Bitcoin was uncertain. Nothing like this has ever happened before, so we didn't know if the currency could recover from such a bubble, or was it all over. By November, bitcoins were trading for about 2.25 USD/BTC.

The 2012 Halvening


As it turns out, Bitcoin didn't die. The next year started a bit anaemic, at around 5 USD/BTC. The mining difficulty has died down after the mining fever and it looked like the price of $5 was a solid bottom where the miners would be earning about as much as they put in. The first halvening was a looming event, but we wouldn't see it until the end of that year. Early in the year I thought to myself that since $5 is a rather solid price for the miners to make a bit of money, after the halvening we should see the price be at least $10. Turns out I was right - after the event, which was rather uneventful, we did see the price in the teens. Good enough reason to go out and have a small Bitcoin party everyone seemed to have been organising for the occasion.

The Cyprus Bubble - early 2013


The early 2013 started strong - Bitcoin was growing rapidly from 25 USD/BTC to the high of over 250 USD/BTC. Some of it was driven by the starting ASIC hardware race, but I think the biggest event that contributed to the price was the Cyprus financial crisis and the bank deposit seizures / bail-ins. The bubble burst when MtGox halted its trading due to not being able to handle the market volumes. The price went down to under 60 USD/BTC as people were desperate to get rid of their BTC by any means necessary.

The China Bubble - late 2013


2013 saw not one, but two big bubbles. After Bitcoin was declared dead once more in October after Silk Road was shut down (after all, allegedly only drug traffickers use bitcoin!), Bitcoin started to show it can stand on its own and shed all of the bad press.

Around the same time Bitcoin was also heavily featured in the Money 2020 event with companies like Coinbase, BitPay and Blockchain representing (funny enough, this is what I saw at my hotel :) ).

However, despite those events being a definite boost to Bitcoin's price, it seems that the majority of the rally was done by people in China. Everyone seemed ecstatic about the price rally, posting pictures of moon landing after we reached 1000 USD/BTC, putting forward motions to switch from BTC to mBTC as a default denomination, etc. It was fun all around.



The rally ended similarly after Bitcoin was allegedly banned from Chinese banks. The price declined with some fluctuations, reaching a bottom of about 220 USD/BTC in February of 2014.

The fall of MtGox


MtGox was a mixed bag in Bitcoin's history. early on, it was the biggest exchange, they were even generous enough to bail out Bitomat after it lost its private keys. Heck, they even published an ad for Bitcoin in G8 Conference Magazine:

MtGox Bitcoin ad

However, after a few hacks and general incompetency, MtGox became a joke. Due to problems withdrawing fiat for awhile, the price on MtGox was consistently 10-15% higher than other exchanges (as everyone needed BTC to cash out). When Bitcoin withdrawals were shut down, someone set up a market for trading real BTC for MtGox BTC, since the site still allowed internal coin transfers. The price was going down below the market as the withdrawals stopped but the trading continued. Eventually, the exchange was shut down in early 2014 when Bitcoin was at its lowest since the last year's bubble.

The current situation


Currently, we seem to be in a middle of a next rally in preparation for the halvening. We started the year above 400 USD/BTC, and if the last halvening is to be believed, we should end it at at least 800 USD/BTC. However, it feels like a lot of people are rooting for a new all-time high. Well, only time will tell - Bitcoin is a honey badger, it does whatever it wants.

Useful links