Yeah, I think we should use the timestamp of the most recent bitcoin block, rather than the node's local clock.
I guess the full formula is actually (1-(0.5^y)) * 10% * total number of mastercoins bought at 1Exodus before the deadline
Could somebody confirm my vesting calculation is correct?
Let's set the time to 2013-10-31 10:45:45 +0100 the output I get for the Exodus vesting is MSC 6103.51504811.
Just a quick note on this one - I'm getting slightly different amounts, can you let me know what you're using for your fixed values?
I'm using:
* Seconds in a year: 31557600
* End of funding: 1377993600
* Total Reward Mastercoins: 56316.23576222
Using your example time (1383212745) I'm seeing 6099.57209817.
Thanks for checking. This is what I'm using now.
time_difference = (tx_date - Mastercoin::END_TIME) / 60 / 60 / 24 / 365.25
exodus_vesting = (1-(0.5**time_difference)) * 0.1 * 563_162.23576222
tx_date = 1383212745
Mastercoin::END_TIME = 1377993600
time_difference = 5219145
Giving me a total of 6060.791436028762 (I initially used a rounded down value for the total amount of MSC, doh.)
Could I just get you to double check your numbers one more time mate? I've double checked mine and we're using the same formula but getting different results it seems.
I've expanded out the numbers for clarity:
Console.WriteLine((1 - (0.5 ^ ((1383212745 - 1377993600) / 31557600))) * 56316.23576222)
6099.57209816932
For my implementation of the distributed exchange it'll be a few more days before I open up the wallet for testing and push the new engine up to Masterchest as I still have some areas to fix up from the changes (had to change the way I handled transactions) but I'll start putting some of my tests in the blockchain soon and see how my stuff interops with the stuff you guys have already done
"waiting for payment" means it hasn't seen a payment made by the buyer to the seller for the purchase transaction.
The way I understand it is the buyer has to send a btc payment direct to the sellers address and .00006 btc to the exodus address (one transaction 2 sends) before the test msc is transferred.
That's correct, a payment to Exodus is required when sending the BTC payment (though it doesn't necessarily have to be 0.00006, anything >dust is fine). There have been some trades already done (see for example 18xEZx3po1iJWP5H2aM3Do11dCGQyaebnT) that appear to be valid