tx · HTqDQAda7LeSL1fqZjyHouKAzBu7eg6r5kaVyFDoUnUv 3MsWCoaYDNCfHR8VzPB3cwLMrt7xfQWcWZJ: -0.01000000 Waves 2024.06.11 17:29 [3146210] smart account 3MsWCoaYDNCfHR8VzPB3cwLMrt7xfQWcWZJ > SELF 0.00000000 Waves
{ "type": 13, "id": "HTqDQAda7LeSL1fqZjyHouKAzBu7eg6r5kaVyFDoUnUv", "fee": 1000000, "feeAssetId": null, "timestamp": 1718116226643, "version": 2, "chainId": 84, "sender": "3MsWCoaYDNCfHR8VzPB3cwLMrt7xfQWcWZJ", "senderPublicKey": "97GV9vh8gVwcCVk5uVkuYSiKY9tAhptVmzhp87xY9wKy", "proofs": [ "4ypesWmmWDVzQbyvijuV9QnWVx3Xmhb7uSwicu5w187ZqmpSkUbkn26CCZVMkXtsTTzeqAcQuXpT9d1T7w7bGgDV" ], "script": "base64:CAISCAISBgoECBgICBIECgIICBIAEAAUcHJlZGljdGlvbk1heENvdW50ZXIAAwAKbWF4Q291bnRlcgAGAA1kZWZhdWx0UmF0aW5nAGQADnJhdGVBZGp1c3RtZW50ABQAB3Rva2VuSWQBIG33eiemmz/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAxwYXlvdXRBbW91bnQAgOHrFwAMcmF0aW5nQ3V0b2ZmADIABXJfbWF4APQDAAVzY2FsZQBkARFzZWFyY2hGb3JDb3VudGVycwIGaXRlbUlkB2NvdW50ZXIEEXNlYXJjaEZvckNvdW50ZXJzBAckbWF0Y2gwCQCiCAEJAKwCAgkArAICBQZpdGVtSWQCAV8JAKQDAQUHY291bnRlcgMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXMFByRtYXRjaDAFAXMCB05vIFVzZXIFEXNlYXJjaEZvckNvdW50ZXJzAQ9zZWFyY2hGb3JSYXRpbmcBB2FkZHJlc3MEBnJhdGluZwQHJG1hdGNoMAkAnwgBCQCsAgIFB2FkZHJlc3MCB19yYXRpbmcDCQABAgUHJG1hdGNoMAI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HJlZ2lzdGVyVXNlcgAEDGNsaWVudEFkcmVzcwkApQgBCAUBaQZjYWxsZXIEDXNlYXJjaEZvclVzZXIEByRtYXRjaDAJAJ8IAQkArAICBQxjbGllbnRBZHJlc3MCB19yYXRpbmcDCQABAgUHJG1hdGNoMAIDSW50BAFzBQckbWF0Y2gwBQFzAP///////////wEDCQECIT0CBQ1zZWFyY2hGb3JVc2VyAP///////////wEJAAIBAhNVc2VyIGFscmVhZHkgZXhpc3RzCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFDGNsaWVudEFkcmVzcwIHX3JhdGluZwUNZGVmYXVsdFJhdGluZwUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleV4pXlY=", "height": 3146210, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CXtZxmiLbCS1WyiDGNyzE5hJBam3ruiHYHnx2c97dYzD Next: 4qa52T7FpFtiCvsX4B6azX2FzUDvUtz3HJizxep4Zgds Diff:
Old | New | Differences | |
---|---|---|---|
117 | 117 | func E (F,h) = { | |
118 | 118 | let G = ((F * 100) / h) | |
119 | 119 | let H = ((f * G) / 100) | |
120 | - | H | |
120 | + | if ((0 >= H)) | |
121 | + | then 1 | |
122 | + | else H | |
121 | 123 | } | |
122 | 124 | ||
123 | 125 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 8 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 3 | |
5 | 5 | ||
6 | 6 | let b = 6 | |
7 | 7 | ||
8 | 8 | let c = 100 | |
9 | 9 | ||
10 | 10 | let d = 20 | |
11 | 11 | ||
12 | 12 | let e = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH' | |
13 | 13 | ||
14 | 14 | let f = 50000000 | |
15 | 15 | ||
16 | 16 | let g = 50 | |
17 | 17 | ||
18 | 18 | let h = 500 | |
19 | 19 | ||
20 | 20 | let i = 100 | |
21 | 21 | ||
22 | 22 | func j (k,l) = { | |
23 | 23 | let j = { | |
24 | 24 | let m = getString(((k + "_") + toString(l))) | |
25 | 25 | if ($isInstanceOf(m, "String")) | |
26 | 26 | then { | |
27 | 27 | let n = m | |
28 | 28 | n | |
29 | 29 | } | |
30 | 30 | else "No User" | |
31 | 31 | } | |
32 | 32 | j | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func o (p) = { | |
37 | 37 | let q = { | |
38 | 38 | let m = getInteger((p + "_rating")) | |
39 | 39 | if ($isInstanceOf(m, "Int")) | |
40 | 40 | then { | |
41 | 41 | let r = m | |
42 | 42 | r | |
43 | 43 | } | |
44 | 44 | else c | |
45 | 45 | } | |
46 | 46 | q | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func s (k,t) = { | |
51 | 51 | let u = { | |
52 | 52 | let m = getString(((k + "_") + t)) | |
53 | 53 | if ($isInstanceOf(m, "String")) | |
54 | 54 | then { | |
55 | 55 | let n = m | |
56 | 56 | n | |
57 | 57 | } | |
58 | 58 | else "Not Found" | |
59 | 59 | } | |
60 | 60 | u | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func v (k,w) = { | |
65 | 65 | let u = { | |
66 | 66 | let m = getInteger(((k + "_prediction_") + w)) | |
67 | 67 | if ($isInstanceOf(m, "Int")) | |
68 | 68 | then { | |
69 | 69 | let n = m | |
70 | 70 | n | |
71 | 71 | } | |
72 | 72 | else "Not Found" | |
73 | 73 | } | |
74 | 74 | u | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func x (k,l) = { | |
79 | 79 | let y = if ((l >= 5)) | |
80 | 80 | then { | |
81 | 81 | let z = j(k, 1) | |
82 | 82 | let A = j(k, 2) | |
83 | 83 | let B = j(k, 3) | |
84 | 84 | let C = j(k, 4) | |
85 | 85 | let D = j(k, 5) | |
86 | 86 | (((((nil :+ z) :+ A) :+ B) :+ C) :+ D) | |
87 | 87 | } | |
88 | 88 | else if ((l >= 4)) | |
89 | 89 | then { | |
90 | 90 | let z = j(k, 1) | |
91 | 91 | let A = j(k, 2) | |
92 | 92 | let B = j(k, 3) | |
93 | 93 | let C = j(k, 4) | |
94 | 94 | ((((nil :+ z) :+ A) :+ B) :+ C) | |
95 | 95 | } | |
96 | 96 | else if ((l >= 3)) | |
97 | 97 | then { | |
98 | 98 | let z = j(k, 1) | |
99 | 99 | let A = j(k, 2) | |
100 | 100 | let B = j(k, 3) | |
101 | 101 | (((nil :+ z) :+ A) :+ B) | |
102 | 102 | } | |
103 | 103 | else if ((l >= 2)) | |
104 | 104 | then { | |
105 | 105 | let z = j(k, 1) | |
106 | 106 | let A = j(k, 2) | |
107 | 107 | ((nil :+ z) :+ A) | |
108 | 108 | } | |
109 | 109 | else { | |
110 | 110 | let z = j(k, 1) | |
111 | 111 | (nil :+ z) | |
112 | 112 | } | |
113 | 113 | y | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func E (F,h) = { | |
118 | 118 | let G = ((F * 100) / h) | |
119 | 119 | let H = ((f * G) / 100) | |
120 | - | H | |
120 | + | if ((0 >= H)) | |
121 | + | then 1 | |
122 | + | else H | |
121 | 123 | } | |
122 | 124 | ||
123 | 125 | ||
124 | 126 | func I (F,J,K,L) = { | |
125 | 127 | let M = ((F * i) / h) | |
126 | 128 | if ((L == 1)) | |
127 | 129 | then { | |
128 | 130 | let N = ((K * (100 - M)) / i) | |
129 | 131 | (F + N) | |
130 | 132 | } | |
131 | 133 | else { | |
132 | 134 | let N = -70 | |
133 | 135 | (F + N) | |
134 | 136 | } | |
135 | 137 | } | |
136 | 138 | ||
137 | 139 | ||
138 | 140 | @Callable(O) | |
139 | 141 | func adjustRatingsAndPayoutParticipants (k,P,Q,R) = { | |
140 | 142 | let S = toString(O.caller) | |
141 | 143 | if ((S != toString(this))) | |
142 | 144 | then throw("You are not allowed to call this function") | |
143 | 145 | else { | |
144 | 146 | func T (U,p) = { | |
145 | 147 | let q = o(p) | |
146 | 148 | let w = s(k, p) | |
147 | 149 | let L = if ((w == R)) | |
148 | 150 | then 1 | |
149 | 151 | else 0 | |
150 | 152 | let V = I(q, h, d, L) | |
151 | 153 | let H = if ((w == R)) | |
152 | 154 | then true | |
153 | 155 | else false | |
154 | 156 | let W = (U :+ IntegerEntry((p + "_rating"), V)) | |
155 | 157 | let X = E(V, h) | |
156 | 158 | if (H) | |
157 | 159 | then (W :+ ScriptTransfer(Address(fromBase58String(p)), X, e)) | |
158 | 160 | else W | |
159 | 161 | } | |
160 | 162 | ||
161 | 163 | let Y = { | |
162 | 164 | let Z = P | |
163 | 165 | let aa = size(Z) | |
164 | 166 | let ab = nil | |
165 | 167 | func ac (ad,ae) = if ((ae >= aa)) | |
166 | 168 | then ad | |
167 | 169 | else T(ad, Z[ae]) | |
168 | 170 | ||
169 | 171 | func af (ad,ae) = if ((ae >= aa)) | |
170 | 172 | then ad | |
171 | 173 | else throw("List size exceeds 5") | |
172 | 174 | ||
173 | 175 | af(ac(ac(ac(ac(ac(ab, 0), 1), 2), 3), 4), 5) | |
174 | 176 | } | |
175 | 177 | (Y :+ BooleanEntry((k + "_adjusted"), true)) | |
176 | 178 | } | |
177 | 179 | } | |
178 | 180 | ||
179 | 181 | ||
180 | 182 | ||
181 | 183 | @Callable(O) | |
182 | 184 | func savePrediction (k,w) = { | |
183 | 185 | let ag = toString(O.caller) | |
184 | 186 | let ah = { | |
185 | 187 | let m = getInteger((ag + "_rating")) | |
186 | 188 | if ($isInstanceOf(m, "Int")) | |
187 | 189 | then { | |
188 | 190 | let n = m | |
189 | 191 | n | |
190 | 192 | } | |
191 | 193 | else "User does not exist" | |
192 | 194 | } | |
193 | 195 | if ((ah == "User does not exist")) | |
194 | 196 | then throw("User does not exist") | |
195 | 197 | else { | |
196 | 198 | let ai = { | |
197 | 199 | let m = getBoolean((k + "_final")) | |
198 | 200 | if ($isInstanceOf(m, "Boolean")) | |
199 | 201 | then { | |
200 | 202 | let n = m | |
201 | 203 | n | |
202 | 204 | } | |
203 | 205 | else false | |
204 | 206 | } | |
205 | 207 | if (ai) | |
206 | 208 | then throw("Final prediction already made") | |
207 | 209 | else { | |
208 | 210 | let aj = { | |
209 | 211 | let m = getBoolean((k + "_cancelled")) | |
210 | 212 | if ($isInstanceOf(m, "Boolean")) | |
211 | 213 | then { | |
212 | 214 | let n = m | |
213 | 215 | n | |
214 | 216 | } | |
215 | 217 | else false | |
216 | 218 | } | |
217 | 219 | if (aj) | |
218 | 220 | then throw("Final prediction already made") | |
219 | 221 | else { | |
220 | 222 | let ak = o(ag) | |
221 | 223 | if ((g >= ak)) | |
222 | 224 | then throw("You are not allowed to participate anymore") | |
223 | 225 | else { | |
224 | 226 | let al = { | |
225 | 227 | let m = getInteger((k + "_counter")) | |
226 | 228 | if ($isInstanceOf(m, "Int")) | |
227 | 229 | then { | |
228 | 230 | let n = m | |
229 | 231 | n | |
230 | 232 | } | |
231 | 233 | else -1 | |
232 | 234 | } | |
233 | 235 | if ((al >= 1)) | |
234 | 236 | then { | |
235 | 237 | let y = x(k, al) | |
236 | 238 | if (containsElement(y, ag)) | |
237 | 239 | then throw("This User already gave a Prediction") | |
238 | 240 | else { | |
239 | 241 | let am = { | |
240 | 242 | let m = getInteger(((k + "_prediction_") + w)) | |
241 | 243 | if ($isInstanceOf(m, "Int")) | |
242 | 244 | then { | |
243 | 245 | let n = m | |
244 | 246 | n | |
245 | 247 | } | |
246 | 248 | else 404 | |
247 | 249 | } | |
248 | 250 | let an = (al + 1) | |
249 | 251 | if ((am != 404)) | |
250 | 252 | then if (((am + 1) == a)) | |
251 | 253 | then { | |
252 | 254 | let V = I(ak, h, d, 1) | |
253 | 255 | let X = E(V, h) | |
254 | 256 | let ao = invoke(this, "adjustRatingsAndPayoutParticipants", [k, y, ag, w], nil) | |
255 | 257 | if ((ao != ao)) | |
256 | 258 | then throw("Strict value is not equal to itself.") | |
257 | 259 | else [StringEntry(((k + "_") + toString(an)), ag), StringEntry(((k + "_") + ag), w), IntegerEntry(((k + "_prediction_") + w), (am + 1)), IntegerEntry((k + "_counter"), an), BooleanEntry((k + "_final"), true), BooleanEntry((k + "_cancelled"), false), DeleteEntry(("updated_" + k)), StringEntry(("final_" + k), k), ScriptTransfer(Address(fromBase58String(ag)), X, e), IntegerEntry((ag + "_rating"), V), StringEntry((k + "_final_prediction"), w)] | |
258 | 260 | } | |
259 | 261 | else if ((an >= b)) | |
260 | 262 | then [StringEntry(((k + "_") + toString(an)), ag), StringEntry(((k + "_") + ag), w), IntegerEntry(((k + "_prediction_") + w), (am + 1)), IntegerEntry((k + "_counter"), an), BooleanEntry((k + "_cancelled"), true), BooleanEntry((k + "_final"), false), DeleteEntry(("updated_" + k)), StringEntry(("final_" + k), k)] | |
261 | 263 | else [StringEntry(((k + "_") + toString(an)), ag), StringEntry(((k + "_") + ag), w), IntegerEntry(((k + "_prediction_") + w), (am + 1)), IntegerEntry((k + "_counter"), an), BooleanEntry((k + "_final"), false), BooleanEntry((k + "_cancelled"), false)] | |
262 | 264 | else if ((an >= b)) | |
263 | 265 | then [StringEntry(((k + "_") + toString(an)), ag), StringEntry(((k + "_") + ag), w), IntegerEntry(((k + "_prediction_") + w), 1), IntegerEntry((k + "_counter"), an), BooleanEntry((k + "_cancelled"), true), BooleanEntry((k + "_final"), false), DeleteEntry(("updated_" + k)), StringEntry(("final_" + k), k)] | |
264 | 266 | else [StringEntry(((k + "_") + toString(an)), ag), StringEntry(((k + "_") + ag), w), IntegerEntry(((k + "_prediction_") + w), 1), IntegerEntry((k + "_counter"), an), BooleanEntry((k + "_cancelled"), false), BooleanEntry((k + "_final"), false)] | |
265 | 267 | } | |
266 | 268 | } | |
267 | 269 | else { | |
268 | 270 | let ap = { | |
269 | 271 | let m = getString(("new_" + k)) | |
270 | 272 | if ($isInstanceOf(m, "String")) | |
271 | 273 | then { | |
272 | 274 | let n = m | |
273 | 275 | n | |
274 | 276 | } | |
275 | 277 | else "Item not Found" | |
276 | 278 | } | |
277 | 279 | if ((ap == "Item not Found")) | |
278 | 280 | then throw("Item not found") | |
279 | 281 | else [StringEntry(((k + "_") + toString(1)), ag), StringEntry(((k + "_") + ag), w), IntegerEntry((k + "_counter"), 1), IntegerEntry(((k + "_prediction_") + w), 1), DeleteEntry(("new_" + k)), StringEntry(("updated_" + k), k)] | |
280 | 282 | } | |
281 | 283 | } | |
282 | 284 | } | |
283 | 285 | } | |
284 | 286 | } | |
285 | 287 | } | |
286 | 288 | ||
287 | 289 | ||
288 | 290 | ||
289 | 291 | @Callable(O) | |
290 | 292 | func registerUser () = { | |
291 | 293 | let ag = toString(O.caller) | |
292 | 294 | let ah = { | |
293 | 295 | let m = getInteger((ag + "_rating")) | |
294 | 296 | if ($isInstanceOf(m, "Int")) | |
295 | 297 | then { | |
296 | 298 | let n = m | |
297 | 299 | n | |
298 | 300 | } | |
299 | 301 | else -1 | |
300 | 302 | } | |
301 | 303 | if ((ah != -1)) | |
302 | 304 | then throw("User already exists") | |
303 | 305 | else [IntegerEntry((ag + "_rating"), c)] | |
304 | 306 | } | |
305 | 307 | ||
306 | 308 | ||
307 | 309 | @Verifier(aq) | |
308 | 310 | func ar () = sigVerify(aq.bodyBytes, aq.proofs[0], aq.senderPublicKey) | |
309 | 311 |
github/deemru/w8io/026f985 34.48 ms ◑