Author

Topic: [ANN][LSK] Lisk | Blockchain Application Platform for JavaScript Developers - page 2159. (Read 3074169 times)

legendary
Activity: 938
Merit: 1000
Cograts guys..also if the crowdasales willl finish today...this is a big success!! Grin Grin

Nope.  The Lisk ICO rolls onward for another two weeks.
hero member
Activity: 588
Merit: 503
Free Julian Assange
Cograts guys..also if the crowdasales willl finish today...this is a big success!! Grin Grin
member
Activity: 266
Merit: 23
So 2311 sats each Lisk now?.
legendary
Activity: 938
Merit: 1000
- snip -

I agree. I think it's only "good" for all the people who asking every 10 posts, what the current price is. Maybe It's possible to add "some math" into the script, so it will show nearly the same as your sheet?

Two changes would go a long way (1) use a constant 13 BTC per 1M XCR as the conversion factor instead of the current market price for Crypti;  (2) applying a 15% escalation factor for the first 1350 BTC collected, and 10% escalation factor on BTC collected thereafter.  This mod could be changed to 5% in the third week and 0% in the last week.

Nuno, Max - you OK with such mods?
hero member
Activity: 808
Merit: 1011
- snip -

I agree. I think it's only "good" for all the people who asking every 10 posts, what the current price is. Maybe It's possible to add "some math" into the script, so it will show nearly the same as your sheet?
legendary
Activity: 938
Merit: 1000


Here is the source code, all commented for easy understanding:



crontab -e
Code:
*/10 * * * * /usr/bin/php /var/www/html/lisk/index.php

Awesome! Added it to the OP. Smiley

This is a great API programming effort and looks awesome.  However, there are some problems in the logic and the algorithm used has some serious flaws.  Plus, I would argue it is not even a good idea to display it in its current form.

Overall, the Lisk price in the graphic is being underestimated by a little over 15% and that error will grow slightly over the next two weeks as more and more "effective" BTC are "handed out" as early participation bonuses.  Currently this amount stands at a little over 252 BTC and climbing.  These must be included in the Lisk price even though they were never actually collected.   These "imaginary" 252 BTC are effectively a legitimate marketing expense that has made this ICO more successful than it otherwise would have been.

Nuno acknowledges he is not counting these early participation bonuses, since there is no place he can go with an API and get real data on how much has been handed out.  Also, his code also shows that he is using the current market price of Crypti instead of the constant 13 BTC per 1M XCR actually being used.  

How big are these discrepancies?  As I write this, he says 1 Lisk = 2625 satoshi = 0.01069 USD; my spreadsheet is showing 1 Lisk = 3024 satoshi = 0.01235 USD.  Compare for yourself:

https://docs.google.com/spreadsheets/d/1Q2MJ25_bK5Yi60FYohYCUEkujUtL5c0P1dOdlDMPMBI/edit#gid=1360974801

I would argue my spreadsheet numbers are a "better" number to use.  However, my spreadsheets aren't perfect either.  I only update them manually a couple of times per day instead of instantly via an API.  Plus, the 1350 total BTC I am showing as being gathered at the 15% bounus is a close but approximate figure that I will update when Max releases the official figure.

If Lisk is going to have ("inflationary") early participation bonuses and constant Crypti exchange factors as official Lisk policy, these MUST be included in the Lisk price.  I think the correct way to look at the difference here is that nuno is showing us where the Lisk price would be if it were based only on tangibles, pure market forces and actual BTC collected.  My spreadsheet number is the number with all the free marketing goodies included that were added in to increase participation in the ICO  - goodies that have worked as intended and beyond!

Ultimately Lisk price is about belief.  I have argued in an earlier post that the early participation bonus and Crypti bonus are fair ways of valuing community enthusiasm and the existing codebase, and that the spreadsheet number is a fair starting exchange price for Lisk after the ICO at an exchange.  If we revert to "no, the value of Lisk is only in the actually collected BTC and nothing more", then expect to take a significant price hit when we go to the exchanges.  If you don't continually hammer home that the Lisk bonuses are a fair part of the Lisk price that have made this a more successful ICO, then those bonuses will not be reflected (ie, "paid for") in the eventual Lisk market price.

Bottom line:  Nuno's graphic - as it is now - is gonna cost Lisk money.  We would be better off without it.  
 

 
hero member
Activity: 808
Merit: 1011
price looking good. still a few weeks to go
Where can I look at the price?

On page 1 or three posts above yours...
hero member
Activity: 530
Merit: 500
price looking good. still a few weeks to go
Where can I look at the price?
full member
Activity: 178
Merit: 100
LiskHQ CTO
Great work on the price grabber script nuno12345, much appreciated Smiley

Btw, we have a JSON feed of the totals available here, which you can use instead of scanning the page itself.

Thanks again, Oliver.
member
Activity: 105
Merit: 10
price looking good. still a few weeks to go
hero member
Activity: 546
Merit: 509
Decentralized Application Platform
sr. member
Activity: 258
Merit: 250
Breizh Atao
If crypti price drops lisk value will drop

I would suggest to do the calc without Crypti, because it's not possible to sell all those XCR - they have nearly no value.

if btc drops lisk value will drop.

Sure. Too early in the morning. Wink

Thanks for the script!

You can't really do the calculations without Crypti since Lisk is offering an stable conversion rate of 0.000013 per Crypti. Those who are trading in Crypti will receive LISK in exchange, even though it means Crypti might not be sold.  

If you do the calculations without Crypti, the value of LISK will decrease and you will end up selling below the ICO price.

Good way to get rid of XCR though. It's been really useful here.
hero member
Activity: 808
Merit: 1011
Ok, thanks for the clarification.
hero member
Activity: 504
Merit: 500
Communications Lead
If crypti price drops lisk value will drop

I would suggest to do the calc without Crypti, because it's not possible to sell all those XCR - they have nearly no value.

if btc drops lisk value will drop.

Sure. Too early in the morning. Wink

Thanks for the script!

You can't really do the calculations without Crypti since Lisk is offering an stable conversion rate of 0.000013 per Crypti. Those who are trading in Crypti will receive LISK in exchange, even though it means Crypti might not be sold.  

If you do the calculations without Crypti, the value of LISK will decrease and you will end up selling below the ICO price.
hero member
Activity: 808
Merit: 1011
If crypti price drops lisk value will drop

I would suggest to do the calc without Crypti, because it's not possible to sell all those XCR - they have nearly no value.

if btc drops lisk value will drop.

Sure. Too early in the morning. Wink

Thanks for the script!
sr. member
Activity: 276
Merit: 284
For all price fanatics I have setup a simple price grabber that get's the ICO amout from ico.lisk.io and does the proper math to calculate the lisk price in satoshi and USD (bonus not included).



Does this image update itself?  Shocked

Okay, it does. Awesome API-magic. Could you please make the stuff public? Would like to change the formatting and design of this image.

P.S.: Why did the price fall from 2608 to 2584? Shouldn't it increase only?

If crypti price drops lisk value will drop, if btc drops lisk value will drop.

Here is the source code, all commented for easy understanding:

Code:
//http://simplehtmldom.sourceforge.net/
include_once('simple_html_dom.php');

//GET HTML FROM ICO.LISK.IO
$html file_get_html('https://ico.lisk.io/');

//GET CRYPTI AND BITCOIN PRICE
$priceXCR json_decode(file_get_contents("http://coinmarketcap-nexuist.rhcloud.com/api/xcr/price"), true)["btc"];
$priceBTC json_decode(file_get_contents("http://coinmarketcap-nexuist.rhcloud.com/api/btc/price"), true)["usd"];

//COUNTER TO KNOW WHICH COIN IS WHICH
$counter 0;

//SETUP PRICE VARS
$bitcoinICO 0;
$cryptiICO 0;

//LOOP THRU ALL SPANS IN ICO.LISK.IO
foreach($html->find('span') as $element
{
//FILTER FLOATS ONLY
$number preg_replace("/[^0-9\.]/"""$element);

if(is_numeric($number))
{
//0=BITCOIN AMOUNT, 1=CRYPTI AMOUNT, 2=SHAPESHIFT AMOUNT
if($counter==0$bitcoinICO += $number;
else if($counter==1$cryptiICO += $number;
else if($counter==2$bitcoinICO += $number;

//INCREASE COUNTER
$counter++;
}
}

//CONVERT CRYPTI AMOUNT TO BTC
$bitcoinICO+=($cryptiICO*$priceXCR);

//CALCULATE LISK PRICE AND CONVERT TO SATOSHI
$liskPriceBTC = ($bitcoinICO/85000000);
$liskPriceBTCRound round($liskPriceBTC*100000000);

//CONVERT LISK PRICE TO USD AND FORMAT TO 5 DECIMAL PLACES
$liskPriceUSD number_format((float)($liskPriceBTC*$priceBTC), 5'.''');

header("Content-Type: image/png");
//OPEN LISK LOGO
$im imageCreateFromPng("/var/www/html/lisk/lisk.png");
//DEAL WITH OPACITY
imageAlphaBlending($imtrue);
imageSaveAlpha($imtrue);

//SETUP TEXT COLOR
$text_color imagecolorallocate($im000);

//ADD TEXT TO LISK LOGO
imagestring($im312095,  "1 Lisk = " $liskPriceBTCRound " Satoshi"$text_color);
imagestring($im3120110,  "1 Lisk = " $liskPriceUSD " USD"$text_color);

//SAVE IMAGE
imagepng($im"/var/www/html/lisk/lisk_price.png");

//CLEAN BUFFER
imagedestroy($im);

?>

crontab -e
Code:
*/10 * * * * /usr/bin/php /var/www/html/lisk/index.php
hero member
Activity: 808
Merit: 1011
For all price fanatics I have setup a simple price grabber that get's the ICO amout from ico.lisk.io and does the proper math to calculate the lisk price in satoshi and USD (bonus not included).



Does this image update itself?  Shocked

Okay, it does. Awesome API-magic. Could you please make the stuff public? Would like to change the formatting and design of this image.

P.S.: Why did the price fall from 2608 to 2584? Shouldn't it increase only?
sr. member
Activity: 276
Merit: 284
For all price fanatics I have setup a simple price grabber that get's the ICO amout from ico.lisk.io and does the proper math to calculate the lisk price in satoshi and USD (bonus not included).

legendary
Activity: 938
Merit: 1000
At their site they stated the following in the FAQ:

"It's not possible to specify that beforehand. We collect as many BTC and XCR as possible by our ICO participants and will equally distribute 85,000,000 LISK with the launch of our network at the end of March. Once the ICO is over we can calculate the exact price for one LISK."

Does it means that I won't receive the amount of LISKs proportial to my ICO investement ? So it will be the same investing 0.1 BTC or 1 BTC or 10 BTC ?


It means that if you donate X bitcoins at any point of the ICO, then at the end of the ICO you will be issued an amount of Lisk that is worth X bitcoins.
Jump to: