Skip to content
Permalink
Browse files

sample comments update

  • Loading branch information...
ATScriptDev committed Feb 1, 2018
1 parent 84a2f22 commit 30b1a37023af259502bbc8a934c086eb2b005243
Showing with 14 additions and 2 deletions.
  1. +4 −0 samples/crowdfund.ats
  2. +10 −2 samples/lottery.ats
@@ -4,6 +4,10 @@ Sample Crowdfunding AT code written in ATScript for BURST AT (Automated Transact
__NOT FOR USE IN PRODUCTION__

See more at http://ATScript.net

Compare this ATScript to its functional equivalent written in AT assembler
at http://ciyam.org/at/at_crowdfund.html to see why ATScript is needed

**************************************************************************************/

var timestamp;
@@ -1,5 +1,13 @@
//Lottery ATScript - AT/SmartContract that every 24 hours sends back all funds to one "random" transaction sender
//note that this choice is not realy random and miners can somehow manipulate it by changing block hash
/***************************************************************************************************************

Lottery ATScript - AT/SmartContract that every 24 hours sends back all funds to one "random" transaction sender

Please note that this choice is not realy random and miners can somehow manipulate it by changing block hash

Compare this ATScript to its functional equivalent written in AT assembler at
http://ciyam.org/at/at_lottery.html to see why ATScript is needed

****************************************************************************************************************/

var lastReward = AT.getBlockTimestamp();
var bestTxid, bestTicket;

0 comments on commit 30b1a37

Please sign in to comment.
You can’t perform that action at this time.