tx · AGArpRAYWjvpgtCpEyy9hYvupnhUQUvBrKx6PF4zD9iX

3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9:  -0.01400000 Waves

2019.11.25 18:33 [780987] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves

{ "type": 13, "id": "AGArpRAYWjvpgtCpEyy9hYvupnhUQUvBrKx6PF4zD9iX", "fee": 1400000, "feeAssetId": null, "timestamp": 1574696146704, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "3Sfths84CdcaENv27uDJpsmBT2iHxvJ6sqVnSJAz39y2ojLsVQMLTfAw3Q7takg4kUterqskw6ADSwuhrUS6d8hq" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAFAQAAAAZwYXlyZWYAAAAEAAAAAmxkAAAABHVzZXIAAAAFcmVmZXIAAAAGcmVmc3VtBAAAAANsZGUIBQAAAAJsZAAAAARkYXRhBAAAAAdpc3JlZmVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAEdXNlcgIAAAAEX3JlZgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAADCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAQAAAAHbGFzdGJhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAIFAAAABXJlZmVyAgAAAAdfd2FsbGV0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACmxhc3RyZWZiYWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAVyZWZlcgIAAAA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AEZHNsNAkBAAAADmNoZWNrbmV4dHJvdW5kAAAAAwUAAAAEZHNsMwUAAAAObmV3VGlja2V0Y291bnQFAAAAC251bWJlcnJvdW5kBAAAAApyZWZwYXltZW50CQAAaAAAAAIJAABoAAAAAgUAAAAJcGF5dGlja2V0AAAAAAAAAAAKBQAAAAF4BAAAAARkc2w1CQEAAAAGcGF5cmVmAAAABAUAAAAEZHNsNAUAAAAEdXNlcgUAAAAFcmVmZXIFAAAACnJlZnBheW1lbnQFAAAABGRzbDUAAAAAIARwdg==", "chainId": 84, "height": 780987, "spentComplexity": 0 } View: original | compacted Prev: 6q8rzNCd5znAKxmAP6uwyWzoX5KFzfQuUjdd4eTJm61j Next: AoUKh4WyLa31VuvEbFYdd8VhD1yjTdMBAEzq72eUWNcc Diff:
OldNewDifferences
120120 let J = value(I.amount)
121121 let K = parseIntValue(H)
122122 let L = ((J * K) / 100000000)
123- let M = (1 * K)
124- if ((M > L))
123+ if ((L > J))
125124 then throw("Ticket price is 1 WAVES")
126125 else {
127- let N = {
126+ let M = {
128127 let h = getInteger(this, "fondprize")
129128 if ($isInstanceOf(h, "Int"))
130129 then {
133132 }
134133 else 0
135134 }
136- let O = DataEntry("fondprize", (N + (L / 2)))
137- let l = WriteSet([O])
138- let P = {
135+ let N = DataEntry("fondprize", (M + (L / 2)))
136+ let l = WriteSet([N])
137+ let O = {
139138 let h = getInteger(this, "numberofround")
140139 if ($isInstanceOf(h, "Int"))
141140 then {
146145 }
147146 let c = toString(F.caller)
148147 let n = t(l, c, d)
149- let Q = {
148+ let P = {
150149 let h = getInteger(this, "ticketcount")
151150 if ($isInstanceOf(h, "Int"))
152151 then {
155154 }
156155 else 0
157156 }
158- let R = (Q + 1)
159- let q = u(n, R)
160- let S = ((((("ticket_" + toString(P)) + "_") + toString(R)) + "_") + c)
161- let s = y(q, S, G)
162- let T = C(s, R, P)
163- let U = ((L * 10) * K)
164- let V = a(T, c, d, U)
165- V
157+ let Q = (P + 1)
158+ let q = u(n, Q)
159+ let R = ((((("ticket_" + toString(O)) + "_") + toString(Q)) + "_") + c)
160+ let s = y(q, R, G)
161+ let S = C(s, Q, O)
162+ let T = ((L * 10) * K)
163+ let U = a(S, c, d, T)
164+ U
166165 }
167166 }
168167
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c,d,e) = {
55 let f = b.data
66 let g = {
77 let h = getString(this, (c + "_ref"))
88 if ($isInstanceOf(h, "String"))
99 then {
1010 let i = h
1111 i
1212 }
1313 else ""
1414 }
1515 if ((g == ""))
1616 then {
1717 let j = {
1818 let h = getInteger(this, (d + "_wallet"))
1919 if ($isInstanceOf(h, "Int"))
2020 then {
2121 let i = h
2222 i
2323 }
2424 else 0
2525 }
2626 let k = {
2727 let h = getInteger(this, (d + "_refpay"))
2828 if ($isInstanceOf(h, "Int"))
2929 then {
3030 let i = h
3131 i
3232 }
3333 else 0
3434 }
3535 let l = DataEntry((d + "_wallet"), (j + e)) :: f
3636 let m = DataEntry((d + "_refpay"), (k + e)) :: l
3737 let n = WriteSet(m)
3838 n
3939 }
4040 else {
4141 let o = {
4242 let h = getInteger(this, (g + "_wallet"))
4343 if ($isInstanceOf(h, "Int"))
4444 then {
4545 let i = h
4646 i
4747 }
4848 else 0
4949 }
5050 let p = {
5151 let h = getInteger(this, (g + "_refpay"))
5252 if ($isInstanceOf(h, "Int"))
5353 then {
5454 let i = h
5555 i
5656 }
5757 else 0
5858 }
5959 let q = DataEntry((g + "_wallet"), (o + e)) :: f
6060 let r = DataEntry((g + "_refpay"), (p + e)) :: q
6161 let s = WriteSet(r)
6262 s
6363 }
6464 }
6565
6666
6767 func t (b,c,d) = {
6868 let f = b.data
6969 let g = {
7070 let h = getString(this, (c + "_ref"))
7171 if ($isInstanceOf(h, "String"))
7272 then {
7373 let i = h
7474 i
7575 }
7676 else ""
7777 }
7878 if ((g == ""))
7979 then {
8080 let l = DataEntry((c + "_ref"), d) :: f
8181 let m = DataEntry((d + "_refer"), c) :: l
8282 let n = WriteSet(m)
8383 n
8484 }
8585 else b
8686 }
8787
8888
8989 func u (b,v) = {
9090 let f = b.data
9191 let w = DataEntry("ticketcount", v) :: f
9292 let x = WriteSet(w)
9393 x
9494 }
9595
9696
9797 func y (b,z,A) = {
9898 let f = b.data
9999 let B = DataEntry(z, A) :: f
100100 let x = WriteSet(B)
101101 x
102102 }
103103
104104
105105 func C (b,D,E) = {
106106 let f = b.data
107107 if ((D == 100))
108108 then {
109109 let B = DataEntry("numberofround", (E + 1)) :: f
110110 let x = WriteSet(B)
111111 x
112112 }
113113 else b
114114 }
115115
116116
117117 @Callable(F)
118118 func playbingo (G,H,d) = {
119119 let I = extract(F.payment)
120120 let J = value(I.amount)
121121 let K = parseIntValue(H)
122122 let L = ((J * K) / 100000000)
123- let M = (1 * K)
124- if ((M > L))
123+ if ((L > J))
125124 then throw("Ticket price is 1 WAVES")
126125 else {
127- let N = {
126+ let M = {
128127 let h = getInteger(this, "fondprize")
129128 if ($isInstanceOf(h, "Int"))
130129 then {
131130 let i = h
132131 i
133132 }
134133 else 0
135134 }
136- let O = DataEntry("fondprize", (N + (L / 2)))
137- let l = WriteSet([O])
138- let P = {
135+ let N = DataEntry("fondprize", (M + (L / 2)))
136+ let l = WriteSet([N])
137+ let O = {
139138 let h = getInteger(this, "numberofround")
140139 if ($isInstanceOf(h, "Int"))
141140 then {
142141 let i = h
143142 i
144143 }
145144 else 1
146145 }
147146 let c = toString(F.caller)
148147 let n = t(l, c, d)
149- let Q = {
148+ let P = {
150149 let h = getInteger(this, "ticketcount")
151150 if ($isInstanceOf(h, "Int"))
152151 then {
153152 let i = h
154153 i
155154 }
156155 else 0
157156 }
158- let R = (Q + 1)
159- let q = u(n, R)
160- let S = ((((("ticket_" + toString(P)) + "_") + toString(R)) + "_") + c)
161- let s = y(q, S, G)
162- let T = C(s, R, P)
163- let U = ((L * 10) * K)
164- let V = a(T, c, d, U)
165- V
157+ let Q = (P + 1)
158+ let q = u(n, Q)
159+ let R = ((((("ticket_" + toString(O)) + "_") + toString(Q)) + "_") + c)
160+ let s = y(q, R, G)
161+ let S = C(s, Q, O)
162+ let T = ((L * 10) * K)
163+ let U = a(S, c, d, T)
164+ U
166165 }
167166 }
168167
169168

github/deemru/w8io/169f3d6 
58.32 ms