smart contract list
-
@msgAnton i have a couple of questions about your code since i can't understand the code: xD
1 - What is supposed to be the fee for the creator of the AT?
2 - What is the ticket price in your code? (i think its 5 burst but just to be sure...)
3 - How long is suposed to take a until a draw happen?
4 - How many players are the minimum for the draw to happen?Sorry for all the questions but i want to launch a lottery for a long time now and i simply can't understand the code... ;D
-
If someone gets them running they will get listed here https://wallet.nixxda.ninja:8125/atlotteries.html
Nop, dont get all exited the listed ones are all expired or did not work!-/ at least I think so!
and why do most of the tickets cost 7.0002016 Burst? because those Lotteries started in 2017?? ;-)
this is just an html I found somewhere in the depths of the forums....But it seems to work!
-
@Lexicon Code doesn't work. I tested it on the AT_Debugger. Need alot more stuffs to get it working. I still need to figure out how to get the burst address of the buyer. Thats my main blocking point. seems like AT debugger is working fine. i needa cross check this with the ciyam.cpp thing.
@gpedro I think the standard fee is 1k BURST, by default.. not 100% sure.
Ticket price was supposed to be 500 burst, but the version i sent is totally wrong. 500 burst should be #0000000ba43b7400 :D. Might be easier to advertise the ticket at 550 burst due to code steps..
Draws are 3 days after 16 tickets have been bought. There is no way to auto win tho. someone needs to trigger the AT to complete after 3 days.Every code step takes 1 burst.. on average, it eats up about 20 burst per run.. Might be cheaper to run a php host. lol
-
@msgAnton hmm i guess i will wait a little longer to test it then ;D
Glad you are on this... We really need some ATs deployed! ;D
-
just launched an automated transaction lottery test.
send 550 burst to
BURST-P3MU-THW3-E6M3-HQM7Tto enter the lottery.
edit dont send any more burst to the above address. the at will no longer send out the moneyz it has sent to itlottery should start after 16 players.
lets see how this works XD
-
@Lexicon Send 550 for a ticket or it won't work..
-
@Lexicon as soon as my wallet starts to function and connect to peers agin im in :)
-
@Lexicon ummm...is it 500 or 550? ;-) sent 500...
-
I don't know if Lex made changes to my code or not. If he didn't then you gotta send 550... or it will just eat your money D':
-
its 550 i didnt make the changes to lower it
-
okay you guys can stop, something went wrong.. "frozen":true,"finished":true,
Edit.. maybe don't stop, so i can gather more information on what went wrong.. currently we have 7 tickets.
-
oh well, I sent 500 and 550 ;-) of course its stuck ...
-
Hi Guys,
The AT worked somewhat of the way. there was an error with the timestamp so it hasnt waited 3 days instead just waiting till it had 10 tickets and then picked a "winner" then paid it all out.
it picked the winner as myself and returned the 20% funds to the account so the test was successful and proved that "most" of the logic worked except for an issue with the timestamp.
well done @msgAnton

