Post
Topic
Board Announcements (Altcoins)
Re: [ANN][HUC] Huntercoin - Human Mining - Decentralized MMO and Crypto Game
by
wiggi
on 29/08/2016, 20:00:39 UTC
I started a test: the task is to convert 50 USD worth of HUC into a fiat-pegged form aka chronoDollar, hold it for 2 weeks, then convert it back, avoiding all fees or slippage if possible.

Let's see if a Huntercoin add-on can do this better than the big inspiring example, which in this case would be Bitshares, and where the bugs and shortcomings are.
(also updated readme.md for www.github.com/wiggi/huntercoin and did my best to explain what the advanced mode is and how to get it)

I'll post and comment on every step here.


Part 1

We don't have a slick, stylisch black UI, only plain text files. (I guess it's not too difficult to have some NPCs project the order books over dark water, in-game) On the bright side, no spreads to pay between settlement prices and lowest ask.

For the test I used a new hunter ("Cortez"), and a new name address. The first 2 of the orders (they also show up in www.huntercoin.info/blockExplorer Recent Block Chat) were sent with the auction bot (the auction bot also sent the correct amount of coins), the third manually copied from adv_chrono.txt. It's a 2 step process, first gems, then chronoDollar.
Code:
Cortez CRD:GEM set bid 50 at settlement
1359987
Cortez GEM:HUC set bid 1.60 at 1980.00
1359984
Cortez GEM:HUC set bid 1.00 at 1980.00
1359975

The order to buy 50 chronoDollar "at settlement" was filled at chronon 1360001 at a rate of 0.0505 chronoDollar per gem, with the AI market maker acting as counterparty. (it's an altruistic market maker, giving buyers and sellers exactly the same quote, once per 10000 blocks)

Cortez got a "liquidity reward" because the standing sell order at 1980 was in need of buying ("old" and at settlement). Weird rule...

adventurers.txt
Code:
HMFESBYnkoTHYVtyMyFVDFXQG5R1nkAzZX        Cortez      2.84    -

Adventurers who own something are what would be called "delegates" elsewhere, and can do price feed (once per 10000 blocks)
Code:
Cortez HUC:USD feed price 0.01
1359991

This was also the "median feed", and the rate of 0.0505 was calculated from this and the gem / HUC settlement of 1980.

adv_chrono.txt
Code:
CRD:GEM trader positions (chronon 1360112, mainnet)
 ---------------------------------------------------

                                     hunter               chronoDollar   trade     trade  gems, not       long    bid    bid      ask     ask     short
storage vault key                    name          gems   position       price     P/L    at risk         risk    size   price    price   size    risk    flags

HMFESBYnkoTHYVtyMyFVDFXQG5R1nkAzZX   Cortez         2.94        50.00   0.0505      0.00       0.40       2.54   50.00  0.0505    0.00    0.00    0.00    bid: rollover ok

Reward for feed was paid at block 1360050. Currently, Cortez is long 50 chronoDollar (which is a futures contract) and owns 2.94 gems (an asset).
Sadly, in Huntercoin, hunters cannot own Huntercoins. This would make things so much simpler Tongue