tx · 7u5r5CLbBY6CsE3xKTwk8dnWp4h2LZH7udEFTqf5So8M

3MuMTmGoACSiyXJzcioMw4sYoXk2Ui4aanJ:  -0.01700000 Waves

2022.08.31 00:09 [2207703] smart account 3MuMTmGoACSiyXJzcioMw4sYoXk2Ui4aanJ > SELF 0.00000000 Waves

{ "type": 13, "id": "7u5r5CLbBY6CsE3xKTwk8dnWp4h2LZH7udEFTqf5So8M", "fee": 1700000, "feeAssetId": null, "timestamp": 1661893780118, "version": 2, "chainId": 84, "sender": "3MuMTmGoACSiyXJzcioMw4sYoXk2Ui4aanJ", "senderPublicKey": "7opDBgjwGmchRaJn7irNojWPe6uCjvWZc3JGS9FGsd9p", "proofs": [ "EVu4L7R8tBL66ie5Um9UPZq6TJqbqccCYGhqP4tuFQP5NXzU4bPtQ6uqHv2bhXuKQejXdsYfjkqMhdHwKvXDjHZ" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAeAAAAAAlnYW1lVG9rZW4BAAAAIJeJnkMy+NLP5OT6k3WKNNG/oDTmgYr0XJzGEku3CrKZAAAAABNnYW1lTWFzdGVyUHVibGljS2V5AQAAACBlJDgo+Fq7PRSc0ciebD/XFlx5Eoi6BjIFEFF4VxVLDwAAAAAXZ2FtZU1hc3RlclB1YmxpY0tleVRlc3QBAAAAIGUkOCj4Wrs9FJzRyJ5sP9cWXHkSiLoGMgUQUXhXFUsPAAAAAAx0b2tlbkFzc2V0SWQCAAAALEJDWUdwM3VmQVk2WVdHektZbWl0ckpTY0FDTjdKWmQzZnBmbWYyZmNYN3EyAAAAAAlnYW1lSW5kZXgCAAAABkdBUkxJQwAAAAAIdG9rZW5BSWQJAAEsAAAAAgkAASwAAAACBQAAAAlnYW1lSW5kZXgCAAAAAV8CAAAAFWYyTXdybU40ZmRzZjQzMkZWOWtTZQAAAAAIdG9rZW5CSWQJAAEsAAAAAgkAASwAAAACBQAAAAlnYW1lSW5kZXgCAAAAAV8CAAAAFWYxTXp3cm1OZGY0MzRGZ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uZ3JhdHVsYXRpb25zIHlvdSB3b24hPC9oMT48YnI+PHA+WW91IGhhdmUgd29uIAUAAAAOY29udmVydGVkUHJpY2UCAAAAASAFAAAADHRva2VuQXNzZXRJZAIAAAAEITxwPgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAEmxvdHRlcnlQcmljZVRva2VuQgkAAlkAAAABBQAAAAx0b2tlbkFzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAABpMYXN0IGJsb2NrIGRvZXMgbm90IGV4aXN0LgkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAicGF5bWVudCBpcyBub3QgaW4gY29ycmVjdCBhc3NldElkIAkAAlgAAAABBQAAAAlnYW1lVG9rZW4CAAAAAS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl/7IZg", "height": 2207703, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7LThGD1oJkPQzLGn65oKs9QHpzFzW9LcHQ582dQ6Z5v7 Next: DjFXPaQdrcPYN4gz6aNTTiLZe19kFBaUUZBsPB7Ht2Nm Diff:
OldNewDifferences
161161 @Callable(aj)
162162 func startGarlicLotto () = {
163163 let al = N()
164- if ((100 > al))
165- then throw("Not enought Amount")
166- else if ((size(aj.payments) != 1))
167- then throw("Payment not attached or there is more then 1 payment attached.")
164+ let am = aj.payments[0]
165+ if ((10000000000 > al))
166+ then throw("Amount is less than 100 GRLC, not enough Amount.")
167+ else if (if ((size(aj.payments) != 1))
168+ then (i > am.amount)
169+ else false)
170+ then throw((("Payment not attached or there is more then 1 payment attached with minimum 1 GRLC.[" + toString(i)) + "-Int]"))
168171 else {
169- let am = aj.payments[0]
170172 let an = (am.amount + aj.fee)
171173 if ((aj.payments[0].assetId == a))
172174 then {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BCYGp3ufAY6YWGzKYmitrJScACN7JZd3fpfmf2fcX7q2'
55
66 let b = base58'7opDBgjwGmchRaJn7irNojWPe6uCjvWZc3JGS9FGsd9p'
77
88 let c = base58'7opDBgjwGmchRaJn7irNojWPe6uCjvWZc3JGS9FGsd9p'
99
1010 let d = "BCYGp3ufAY6YWGzKYmitrJScACN7JZd3fpfmf2fcX7q2"
1111
1212 let e = "GARLIC"
1313
1414 let f = ((e + "_") + "f2MwrmN4fdsf432FV9kSe")
1515
1616 let g = ((e + "_") + "f1MzwrmNdf434Ffsdfs-0")
1717
1818 let h = ((e + "_") + "f3MzwrmN4widf434Ffsdw")
1919
2020 let i = 100000000
2121
2222 let j = "_probability"
2323
2424 let k = "_probability_decimal"
2525
2626 let l = (e + "_winning_address")
2727
2828 let m = "_price"
2929
3030 let n = ((e + "_") + "lottery_prices")
3131
3232 let o = ((e + "_") + "lottery_asset_id")
3333
3434 let p = ((e + "_") + "garlic_count_prices")
3535
3636 let q = ((e + "_") + "SPIN_COUNTER")
3737
3838 let r = 3
3939
4040 let s = ((e + "_") + "total_prizes_pool")
4141
4242 func t (u) = (u != b)
4343
4444
4545 func v (w) = (((e + "_") + toString(w)) + "_SPIN_RANDOM_HASH")
4646
4747
4848 func x (w) = getString(this, v(w))
4949
5050
5151 func y () = getInteger(this, q)
5252
5353
5454 let z = ["V2F2ZXNMb3R0b1Yy", "V2F2ZXNMb3R0b1Yy", "V2F2ZXNMb3R0b1Yy", "pdHlFeGNoYW5nZVYy", "pdHlFeGNoYW5nZVYy", "V2F2ZXNMb3Nzb1Yy", "V2F2ZXNMb3Nzb1Yy", "pdHlFeGNoYW5nZVYy", "pdHlFeGNoYW5nZVYy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2ZXNNb3Nzb1Yy", "V2F2ZXNUZWFtVjI", "V2F2ZXNUZWFtVjI"]
5555
5656 func A (B,C) = {
5757 let D = (((((C + B.transactionId) + B.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
5858 sha256(D)
5959 }
6060
6161
6262 func E (F) = if ((F == 1))
6363 then "0.0"
6464 else if ((F == 2))
6565 then "0.00"
6666 else if ((F == 3))
6767 then "0.000"
6868 else if ((F == 4))
6969 then "0.0000"
7070 else if ((F == 5))
7171 then "0.00000"
7272 else if ((F == 6))
7373 then "0.000000"
7474 else if ((F == 7))
7575 then "0.0000000"
7676 else throw("exceed number")
7777
7878
7979 func G () = {
8080 let H = {
8181 let I = getString(this, n)
8282 if ($isInstanceOf(I, "String"))
8383 then {
8484 let J = I
8585 J
8686 }
8787 else if ($isInstanceOf(I, "Unit"))
8888 then ""
8989 else throw("Match error")
9090 }
9191 let K = size(H)
9292 if ((K == 0))
9393 then nil
9494 else {
9595 let L = take(H, (size(H) - 1))
9696 let M = split(L, ",")
9797 M
9898 }
9999 }
100100
101101
102102 func N () = assetBalance(this, fromBase58String(d))
103103
104104
105105 func O (P,Q) = if (if (isDefined(Q))
106106 then true
107107 else (Q != ""))
108108 then {
109109 let R = getIntegerValue(this, (Q + j))
110110 let S = getIntegerValue(this, (Q + k))
111111 let T = size(P)
112112 if ((T == 1))
113113 then {
114114 let U = P[0]
115115 let V = fromBase64String(U)
116116 let W = (S * 500)
117117 let X = (toInt(V) % W)
118118 if ((R > X))
119119 then Q :: P
120120 else P
121121 }
122122 else P
123123 }
124124 else P
125125
126126
127127 func Y (Z,aa) = {
128128 let ab = size(toString(Z))
129129 if ((ab > aa))
130130 then {
131131 let ac = takeRight(toString(Z), aa)
132132 let ad = take(toString(Z), (size(toString(Z)) - aa))
133133 let ae = ((ad + ".") + ac)
134134 ae
135135 }
136136 else if ((ab == aa))
137137 then {
138138 let af = (aa - ab)
139139 let ag = ("0." + toString(Z))
140140 ag
141141 }
142142 else {
143143 let ah = (aa - ab)
144144 let ai = E(ah)
145145 let ag = (ai + toString(Z))
146146 ag
147147 }
148148 }
149149
150150
151151 @Callable(aj)
152152 func setGarlicCoinLottery () = if (t(aj.callerPublicKey))
153153 then throw((("initGame_FORBBIDEN, Only owner of Pubkey [" + toBase58String(b)) + "] is allowded to Set Factors."))
154154 else {
155155 let ak = (((((f + ",") + g) + ",") + h) + ",")
156156 [IntegerEntry((f + j), 69), IntegerEntry((f + m), 69), IntegerEntry((f + k), 100), StringEntry((f + o), d), IntegerEntry((g + j), 69), IntegerEntry((g + m), 6900000000), IntegerEntry((g + k), 10), StringEntry((g + o), d), IntegerEntry((h + j), 69), IntegerEntry((h + m), 500000000), IntegerEntry((h + k), 1), StringEntry((h + o), d), StringEntry(n, ak), IntegerEntry(p, 3), IntegerEntry(q, 0)]
157157 }
158158
159159
160160
161161 @Callable(aj)
162162 func startGarlicLotto () = {
163163 let al = N()
164- if ((100 > al))
165- then throw("Not enought Amount")
166- else if ((size(aj.payments) != 1))
167- then throw("Payment not attached or there is more then 1 payment attached.")
164+ let am = aj.payments[0]
165+ if ((10000000000 > al))
166+ then throw("Amount is less than 100 GRLC, not enough Amount.")
167+ else if (if ((size(aj.payments) != 1))
168+ then (i > am.amount)
169+ else false)
170+ then throw((("Payment not attached or there is more then 1 payment attached with minimum 1 GRLC.[" + toString(i)) + "-Int]"))
168171 else {
169- let am = aj.payments[0]
170172 let an = (am.amount + aj.fee)
171173 if ((aj.payments[0].assetId == a))
172174 then {
173175 let I = blockInfoByHeight((lastBlock.height - 1))
174176 if ($isInstanceOf(I, "BlockInfo"))
175177 then {
176178 let ao = I
177179 let ap = {
178180 let aq = y()
179181 if ($isInstanceOf(aq, "Int"))
180182 then {
181183 let ar = aq
182184 ar
183185 }
184186 else if ($isInstanceOf(aq, "Unit"))
185187 then throw("Garlic lottery has not been initialed yet- missing spin")
186188 else throw("Match error")
187189 }
188190 let as = (toInt(sha256((take(aj.transactionId, 16) + take(lastBlock.generationSignature, 16)))) % 17728)
189191 let at = ((toInt(toBytes(pow(as, 0, 2, 0, 0, UP))) + ap) % 64)
190192 let au = G()
191193 let av = {
192194 let aq = x(as)
193195 if ($isInstanceOf(aq, "String"))
194196 then {
195197 let aw = aq
196198 aw
197199 }
198200 else z[at]
199201 }
200202 let ax = A(aj, toBytes(av))
201203 let ay = toBase64String(ax)
202204 let az = fromBase64String(ay)
203205 let aA = [ay]
204206 let aB = {
205207 let aC = au
206208 let aD = size(aC)
207209 let aE = aA
208210 func aF (aG,aH) = if ((aH >= aD))
209211 then aG
210212 else O(aG, aC[aH])
211213
212214 func aI (aG,aH) = if ((aH >= aD))
213215 then aG
214216 else throw("List size exceeds 3")
215217
216218 aI(aF(aF(aF(aE, 0), 1), 2), 3)
217219 }
218220 let aJ = size(aB)
219221 let aK = (500 * 1)
220222 let aL = (toInt(az) % aK)
221223 if ((aJ == 1))
222224 then [StringEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing!<p>"), StringEntry(v(at), toBase64String(ax)), IntegerEntry((toString((ap + 1)) + "_last_hash_number"), aL), IntegerEntry((toString((ap + 1)) + "_last_selected_number"), at), IntegerEntry(q, (ap + 1))]
223225 else {
224226 let Q = aB[0]
225227 let aM = toBase58String(aj.caller.bytes)
226228 let aN = N()
227229 if ((aN == 0))
228230 then throw("Not Enough Garlic Coin")
229231 else if ((Q == f))
230232 then {
231233 let aO = {
232234 let aq = getInteger(this, (f + m))
233235 if ($isInstanceOf(aq, "Int"))
234236 then {
235237 let aP = aq
236238 aP
237239 }
238240 else if ($isInstanceOf(aq, "Unit"))
239241 then 0
240242 else throw("Match error")
241243 }
242244 let aQ = ((aO * aN) / 100)
243245 let aR = {
244246 let aq = assetInfo(fromBase58String(d))
245247 if ($isInstanceOf(aq, "Asset"))
246248 then {
247249 let aS = aq
248250 aS.decimals
249251 }
250252 else if ($isInstanceOf(aq, "Unit"))
251253 then throw("Can't find asset")
252254 else throw("Match error")
253255 }
254256 let aT = Y(aQ, aR)
255257 [StringEntry((Q + l), aM), StringEntry(v(at), toBase64String(ax)), IntegerEntry(q, (ap + 1)), StringEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + aT) + " ") + d) + "!<p>")), ScriptTransfer(aj.caller, aQ, fromBase58String(d))]
256258 }
257259 else {
258260 let aU = {
259261 let aq = getInteger(this, (Q + m))
260262 if ($isInstanceOf(aq, "Int"))
261263 then {
262264 let aP = aq
263265 aP
264266 }
265267 else if ($isInstanceOf(aq, "Unit"))
266268 then 0
267269 else throw("Match error")
268270 }
269271 let aR = {
270272 let aq = assetInfo(fromBase58String(d))
271273 if ($isInstanceOf(aq, "Asset"))
272274 then {
273275 let aS = aq
274276 aS.decimals
275277 }
276278 else if ($isInstanceOf(aq, "Unit"))
277279 then throw("Can't find asset")
278280 else throw("Match error")
279281 }
280282 let aT = Y(aU, aR)
281283 [StringEntry((Q + l), aM), StringEntry(v(at), toBase64String(ax)), IntegerEntry(q, (ap + 1)), StringEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + aT) + " ") + d) + "!<p>")), ScriptTransfer(aj.caller, aU, fromBase58String(d))]
282284 }
283285 }
284286 }
285287 else throw("Last block does not exist.")
286288 }
287289 else throw((("payment is not in correct assetId " + toBase58String(a)) + "."))
288290 }
289291 }
290292
291293
292294 @Verifier(aV)
293295 func aW () = {
294296 let I = aV
295297 sigVerify(aV.bodyBytes, aV.proofs[0], aV.senderPublicKey)
296298 }
297299

github/deemru/w8io/169f3d6 
66.57 ms