tx · 6q8rzNCd5znAKxmAP6uwyWzoX5KFzfQuUjdd4eTJm61j

3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9:  -0.01400000 Waves

2019.11.25 18:31 [780984] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves

{ "type": 13, "id": "6q8rzNCd5znAKxmAP6uwyWzoX5KFzfQuUjdd4eTJm61j", "fee": 1400000, "feeAssetId": null, "timestamp": 1574695890498, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "2di7UKf1CAw7gx8H9SoXMERKTkbogFHDXHPVAQU6WaQP9YfmMYKfCBEcfWwTyCrYAqUgzSCxpHXv1mJHBFjtqmid" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAFAQAAAAZwYXlyZWYAAAAEAAAAAmxkAAAABHVzZXIAAAAFcmVmZXIAAAAGcmVmc3VtBAAAAANsZGUIBQAAAAJsZAAAAARkYXRhBAAAAAdpc3JlZmVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAEdXNlcgIAAAAEX3JlZgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAADCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAQAAAAHbGFzdGJhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAIFAAAABXJlZmVyAgAAAAdfd2FsbGV0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACmxhc3RyZWZiYWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAVyZWZlcg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XQAAAADBQAAAARkc2wyBQAAABBjdXJyZW50a2V5dGlja2V0BQAAAAZ0aWNrZXQEAAAABGRzbDQJAQAAAA5jaGVja25leHRyb3VuZAAAAAMFAAAABGRzbDMFAAAADm5ld1RpY2tldGNvdW50BQAAAAtudW1iZXJyb3VuZAQAAAAKcmVmcGF5bWVudAkAAGgAAAACCQAAaAAAAAIFAAAACXBheXRpY2tldAAAAAAAAAAACgUAAAABeAQAAAAEZHNsNQkBAAAABnBheXJlZgAAAAQFAAAABGRzbDQFAAAABHVzZXIFAAAABXJlZmVyBQAAAApyZWZwYXltZW50BQAAAARkc2w1AAAAAFWLb6I=", "chainId": 84, "height": 780984, "spentComplexity": 0 } View: original | compacted Prev: 2sY3FLvxuNiWDd8Zjsc7z8sin4Z7hJ27XaSH95BitTXh Next: AGArpRAYWjvpgtCpEyy9hYvupnhUQUvBrKx6PF4zD9iX Diff:
OldNewDifferences
102102 let payval = value(pmt.amount)
103103 let x = parseIntValue(betx)
104104 let payticket = ((payval * x) / 100000000)
105- if ((1 > payticket))
105+ let ticketsum = (1 * x)
106+ if ((ticketsum > payticket))
106107 then throw("Ticket price is 1 WAVES")
107108 else {
108109 let lastfondprize = match getInteger(this, "fondprize") {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func payref (ld,user,refer,refsum) = {
55 let lde = ld.data
66 let isrefer = match getString(this, (user + "_ref")) {
77 case a: String =>
88 a
99 case _ =>
1010 ""
1111 }
1212 if ((isrefer == ""))
1313 then {
1414 let lastbal = match getInteger(this, (refer + "_wallet")) {
1515 case a: Int =>
1616 a
1717 case _ =>
1818 0
1919 }
2020 let lastrefbal = match getInteger(this, (refer + "_refpay")) {
2121 case a: Int =>
2222 a
2323 case _ =>
2424 0
2525 }
2626 let dsl = DataEntry((refer + "_wallet"), (lastbal + refsum)) :: lde
2727 let dslref = DataEntry((refer + "_refpay"), (lastrefbal + refsum)) :: dsl
2828 let dsl1 = WriteSet(dslref)
2929 dsl1
3030 }
3131 else {
3232 let lastbal1 = match getInteger(this, (isrefer + "_wallet")) {
3333 case a: Int =>
3434 a
3535 case _ =>
3636 0
3737 }
3838 let lastrefbal1 = match getInteger(this, (isrefer + "_refpay")) {
3939 case a: Int =>
4040 a
4141 case _ =>
4242 0
4343 }
4444 let dsl2 = DataEntry((isrefer + "_wallet"), (lastbal1 + refsum)) :: lde
4545 let dslref1 = DataEntry((isrefer + "_refpay"), (lastrefbal1 + refsum)) :: dsl2
4646 let dsl3 = WriteSet(dslref1)
4747 dsl3
4848 }
4949 }
5050
5151
5252 func setref (ld,user,refer) = {
5353 let lde = ld.data
5454 let isrefer = match getString(this, (user + "_ref")) {
5555 case a: String =>
5656 a
5757 case _ =>
5858 ""
5959 }
6060 if ((isrefer == ""))
6161 then {
6262 let dsl = DataEntry((user + "_ref"), refer) :: lde
6363 let dslref = DataEntry((refer + "_refer"), user) :: dsl
6464 let dsl1 = WriteSet(dslref)
6565 dsl1
6666 }
6767 else ld
6868 }
6969
7070
7171 func nextcountticket (ld,newcount) = {
7272 let lde = ld.data
7373 let newcounttik = DataEntry("ticketcount", newcount) :: lde
7474 let nws = WriteSet(newcounttik)
7575 nws
7676 }
7777
7878
7979 func dataticket (ld,ticketkey,ticketdata) = {
8080 let lde = ld.data
8181 let newtikdata = DataEntry(ticketkey, ticketdata) :: lde
8282 let nws = WriteSet(newtikdata)
8383 nws
8484 }
8585
8686
8787 func checknextround (ld,ticketcount,numofround) = {
8888 let lde = ld.data
8989 if ((ticketcount == 100))
9090 then {
9191 let newtikdata = DataEntry("numberofround", (numofround + 1)) :: lde
9292 let nws = WriteSet(newtikdata)
9393 nws
9494 }
9595 else ld
9696 }
9797
9898
9999 @Callable(inv)
100100 func playbingo (ticket,betx,refer) = {
101101 let pmt = extract(inv.payment)
102102 let payval = value(pmt.amount)
103103 let x = parseIntValue(betx)
104104 let payticket = ((payval * x) / 100000000)
105- if ((1 > payticket))
105+ let ticketsum = (1 * x)
106+ if ((ticketsum > payticket))
106107 then throw("Ticket price is 1 WAVES")
107108 else {
108109 let lastfondprize = match getInteger(this, "fondprize") {
109110 case a: Int =>
110111 a
111112 case _ =>
112113 0
113114 }
114115 let newfondprize = DataEntry("fondprize", (lastfondprize + (payticket / 2)))
115116 let dsl = WriteSet([newfondprize])
116117 let numberround = match getInteger(this, "numberofround") {
117118 case a: Int =>
118119 a
119120 case _ =>
120121 1
121122 }
122123 let user = toString(inv.caller)
123124 let dsl1 = setref(dsl, user, refer)
124125 let currentTicketcount = match getInteger(this, "ticketcount") {
125126 case a: Int =>
126127 a
127128 case _ =>
128129 0
129130 }
130131 let newTicketcount = (currentTicketcount + 1)
131132 let dsl2 = nextcountticket(dsl1, newTicketcount)
132133 let currentkeyticket = ((((("ticket_" + toString(numberround)) + "_") + toString(newTicketcount)) + "_") + user)
133134 let dsl3 = dataticket(dsl2, currentkeyticket, ticket)
134135 let dsl4 = checknextround(dsl3, newTicketcount, numberround)
135136 let refpayment = ((payticket * 10) * x)
136137 let dsl5 = payref(dsl4, user, refer, refpayment)
137138 dsl5
138139 }
139140 }
140141
141142

github/deemru/w8io/026f985 
38.58 ms