tx · 9HZ2mWCkUbxxUzJYgCT28msdw6XoUszmQaNU5SoUVQ2g 3MtsXxXqERvHEmkPiiuBESuixd9Y8qAU1PC: -0.10000000 Waves 2023.01.24 12:09 [2418841] smart account 3MtsXxXqERvHEmkPiiuBESuixd9Y8qAU1PC > SELF 0.00000000 Waves
{ "type": 13, "id": "9HZ2mWCkUbxxUzJYgCT28msdw6XoUszmQaNU5SoUVQ2g", "fee": 10000000, "feeAssetId": null, "timestamp": 1674551388713, "version": 2, "chainId": 84, "sender": "3MtsXxXqERvHEmkPiiuBESuixd9Y8qAU1PC", "senderPublicKey": "EBCSQaTtuxQBJyc62F142LxJ3hpQtCwuZ2z9kkoe6Vvt", "proofs": [ "4M5iam5ujCZLkagDu6TySvvbp6ttPhyWHQLYHvHLEK1PchkM86xS8Yt4Jjypzrur6rtaZYoSQqVsvRfZj5PmNmej", "9eXRaeiUPSBYdry8RiXFBdNrjpDUzf7Z77KnV1vbL2wE2JWbaK2s5RGNSUYUnkCz4dT5ZRS2PMMfes8hYZdEJ3b" ], "script": "base64:BgIbCAISABIECgIICBIFCgMBBAESBAoCAQgSABIAPwAGb3JhY2xlCQEHQWRkcmVzcwEBGgFUSBOXDMDTM8wlMoC2KfenZGiAq+PMe0uZAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0FjdGl2ZUdsb2ICFGFjdGl2ZV9hbGxfY29udHJhY3RzAA9rTnVtYmVyT2ZWb3RpbmcCFHZvdGluZ19hY3RpdmVfbnVtYmVyAA1rSGVpZ2h0T2ZQb29sAg5fZmluaXNoX2hlaWdodAADa05vAg9fdG90YWxfdm90ZXNfbm8ABGtZZXMCEF90b3RhbF92b3Rlc195ZXMAB2tOb1VzZXICCF92b3RlX25vAAhrWWVzVXNlcgIJX3ZvdGVfeWVzAA9rU3RhdHVzT2ZWb3RpbmcCB19zdGF0dXMAD2tBbW91bnRPZlZvdGluZwIOdm90aW5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pc0FkbWluQ2FsbAEFAWkDBQZhY3RpdmUJAAIBAhZEQXBwIGlzIGFscmVhZHkgYWN0aXZlCQDMCAIJAQxCb29sZWFuRW50cnkCBQdrQWN0aXZlBgkAzAgCCQELRGVsZXRlRW50cnkBBQZrQ2F1c2UFA25pbAECdHgBBnZlcmlmeQAEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAjpKtPU=", "height": 2418841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HYuZ9etLR9mMauWQLSg5tYvTZPc6V28h6DTKakgt5wnM Next: CASrHiWAPJ7kDzihqwofETm427Ks23cZM9wtQpG4HRVW Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
5 | 5 | ||
6 | 6 | let b = "1.0.0" | |
7 | 7 | ||
8 | 8 | let c = "version" | |
9 | 9 | ||
10 | 10 | let d = "active" | |
11 | 11 | ||
12 | 12 | let e = "active_all_contracts" | |
13 | 13 | ||
14 | 14 | let f = "voting_active_number" | |
15 | 15 | ||
16 | 16 | let g = "_finish_height" | |
17 | 17 | ||
18 | 18 | let h = "_total_votes_no" | |
19 | 19 | ||
20 | 20 | let i = "_total_votes_yes" | |
21 | 21 | ||
22 | 22 | let j = "_vote_no" | |
23 | 23 | ||
24 | 24 | let k = "_vote_yes" | |
25 | 25 | ||
26 | 26 | let l = "_status" | |
27 | 27 | ||
28 | 28 | let m = "voting_id_last" | |
29 | 29 | ||
30 | 30 | let n = "max_amount_voting" | |
31 | 31 | ||
32 | 32 | let o = "max_day_voting" | |
33 | 33 | ||
34 | 34 | let p = "shutdown_cause" | |
35 | 35 | ||
36 | 36 | let q = "_cancel_cause" | |
37 | 37 | ||
38 | 38 | let r = "_GSwop_amount" | |
39 | 39 | ||
40 | 40 | let s = "_asset_name" | |
41 | 41 | ||
42 | 42 | let t = "_voting" | |
43 | 43 | ||
44 | 44 | let u = "voting_active_cell_1" | |
45 | 45 | ||
46 | 46 | let v = "voting_active_cell_2" | |
47 | 47 | ||
48 | 48 | let w = "voting_active_cell_3" | |
49 | 49 | ||
50 | 50 | let x = "admin_pub_1" | |
51 | 51 | ||
52 | 52 | let y = "admin_pub_2" | |
53 | 53 | ||
54 | 54 | let z = "admin_pub_3" | |
55 | 55 | ||
56 | 56 | let A = "money_box_address" | |
57 | 57 | ||
58 | 58 | let B = "governance_address" | |
59 | 59 | ||
60 | 60 | let C = "farming_address" | |
61 | 61 | ||
62 | 62 | let D = "usdn_asset_id" | |
63 | 63 | ||
64 | 64 | let E = "SWOP_id" | |
65 | 65 | ||
66 | 66 | let F = getIntegerValue(this, f) | |
67 | 67 | ||
68 | 68 | let G = getIntegerValue(this, m) | |
69 | 69 | ||
70 | 70 | let H = valueOrElse(getString(this, u), "") | |
71 | 71 | ||
72 | 72 | let I = valueOrElse(getString(this, v), "") | |
73 | 73 | ||
74 | 74 | let J = valueOrElse(getString(this, w), "") | |
75 | 75 | ||
76 | 76 | let K = getBooleanValue(this, d) | |
77 | 77 | ||
78 | 78 | let L = valueOrElse(getBoolean(a, e), true) | |
79 | 79 | ||
80 | 80 | let M = 1000000000 | |
81 | 81 | ||
82 | 82 | let N = 3 | |
83 | 83 | ||
84 | 84 | let O = 7 | |
85 | 85 | ||
86 | 86 | let P = (1443 * O) | |
87 | 87 | ||
88 | 88 | func Q (R) = { | |
89 | 89 | let S = getString(a, R) | |
90 | 90 | if ($isInstanceOf(S, "String")) | |
91 | 91 | then { | |
92 | 92 | let T = S | |
93 | 93 | fromBase58String(T) | |
94 | 94 | } | |
95 | 95 | else { | |
96 | 96 | let U = S | |
97 | 97 | throw((R + "is empty")) | |
98 | 98 | } | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | let V = Q(x) | |
103 | 103 | ||
104 | 104 | let W = Q(y) | |
105 | 105 | ||
106 | 106 | let X = Q(z) | |
107 | 107 | ||
108 | 108 | let Y = Address(Q(B)) | |
109 | 109 | ||
110 | 110 | let Z = Address(Q(C)) | |
111 | 111 | ||
112 | 112 | let aa = Address(Q(A)) | |
113 | 113 | ||
114 | 114 | let ab = Q(D) | |
115 | 115 | ||
116 | 116 | let ac = fromBase58String(getStringValue(Z, E)) | |
117 | 117 | ||
118 | 118 | func ad () = if (if (K) | |
119 | 119 | then L | |
120 | 120 | else false) | |
121 | 121 | then unit | |
122 | 122 | else throw("DApp is inactive at this moment") | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func ae (af) = if (containsElement([V, W, X], af.callerPublicKey)) | |
126 | 126 | then unit | |
127 | 127 | else throw("Only admin can call this function") | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ag (ah) = { | |
131 | 131 | let S = ah | |
132 | 132 | if ($isInstanceOf(S, "ByteVector")) | |
133 | 133 | then { | |
134 | 134 | let ai = S | |
135 | 135 | if (isDefined(assetInfo(ai))) | |
136 | 136 | then { | |
137 | 137 | let aj = toBase58String(ai) | |
138 | 138 | let ak = valueOrErrorMessage(assetInfo(ai), (("Asset " + aj) + " doesn't exist")) | |
139 | 139 | $Tuple3(aj, ak.name, ak.decimals) | |
140 | 140 | } | |
141 | 141 | else throw("Asset is not defined") | |
142 | 142 | } | |
143 | 143 | else if ($isInstanceOf(S, "Unit")) | |
144 | 144 | then { | |
145 | 145 | let al = S | |
146 | 146 | $Tuple3("WAVES", "WAVES", 8) | |
147 | 147 | } | |
148 | 148 | else throw("Match error") | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func am (an,ao,ap) = { | |
153 | 153 | let aq = split(an, "_") | |
154 | 154 | let ar = isDefined(getInteger(this, an)) | |
155 | 155 | if (if (ar) | |
156 | 156 | then (an != "") | |
157 | 157 | else false) | |
158 | 158 | then { | |
159 | 159 | let as = aq[2] | |
160 | 160 | let at = (((((ao + "_") + ap) + "_") + as) + t) | |
161 | 161 | let au = isDefined(getInteger(this, at)) | |
162 | 162 | let av = valueOrElse(getInteger(this, (as + g)), 0) | |
163 | 163 | let aw = valueOrElse(getBoolean(this, (as + l)), true) | |
164 | 164 | if (au) | |
165 | 165 | then if ((av > height)) | |
166 | 166 | then if (aw) | |
167 | 167 | then true | |
168 | 168 | else false | |
169 | 169 | else false | |
170 | 170 | else false | |
171 | 171 | } | |
172 | 172 | else false | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func ax (ay) = { | |
177 | 177 | let an = valueOrElse(getString(this, ay), "") | |
178 | 178 | let aq = split(an, "_") | |
179 | 179 | let ar = isDefined(getInteger(this, an)) | |
180 | 180 | if (if (ar) | |
181 | 181 | then (an != "") | |
182 | 182 | else false) | |
183 | 183 | then { | |
184 | 184 | let as = aq[2] | |
185 | 185 | let av = valueOrElse(getInteger(this, (as + g)), 0) | |
186 | 186 | let aw = valueOrElse(getBoolean(this, (as + l)), true) | |
187 | 187 | if ((av > height)) | |
188 | 188 | then if (aw) | |
189 | 189 | then "" | |
190 | 190 | else ay | |
191 | 191 | else ay | |
192 | 192 | } | |
193 | 193 | else ay | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func az (ao,ap) = if (if (am(H, ao, ap)) | |
198 | 198 | then true | |
199 | 199 | else am(I, ao, ap)) | |
200 | 200 | then true | |
201 | 201 | else am(J, ao, ap) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aA (as) = { | |
205 | 205 | let av = valueOrElse(getInteger(this, (toString(as) + g)), 0) | |
206 | 206 | let aw = valueOrElse(getBoolean(this, (toString(as) + l)), true) | |
207 | 207 | let aB = height | |
208 | 208 | if ((0 > as)) | |
209 | 209 | then 0 | |
210 | 210 | else if (!(aw)) | |
211 | 211 | then 0 | |
212 | 212 | else if ((av > aB)) | |
213 | 213 | then 1 | |
214 | 214 | else 0 | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aC () = ((aA(valueOrElse(getInteger(this, H), -1)) + aA(valueOrElse(getInteger(this, I), -1))) + aA(valueOrElse(getInteger(this, J), -1))) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func aD () = if ((ax(u) != "")) | |
222 | 222 | then u | |
223 | 223 | else if ((ax(v) != "")) | |
224 | 224 | then v | |
225 | 225 | else if ((ax(w) != "")) | |
226 | 226 | then w | |
227 | 227 | else "" | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func aE (aF) = if ((aF == "WAVES")) | |
231 | 231 | then unit | |
232 | 232 | else fromBase58String(aF) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func aG (aH) = if ((valueOrElse(getInteger(Y, (toString(aH) + r)), 0) > 0)) | |
236 | 236 | then true | |
237 | 237 | else false | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func aI (aJ) = [BooleanEntry(d, false), StringEntry(p, aJ)] | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | @Callable(af) | |
244 | 244 | func init () = if ((af.caller != this)) | |
245 | 245 | then throw("Only the DApp itself can call this function") | |
246 | 246 | else if (isDefined(getBoolean(this, d))) | |
247 | 247 | then throw("DApp is already active") | |
248 | 248 | else { | |
249 | 249 | let aK = 0 | |
250 | 250 | let aL = 0 | |
251 | 251 | let aM = true | |
252 | 252 | let aN = "" | |
253 | 253 | [StringEntry(c, b), BooleanEntry(d, aM), IntegerEntry(f, aK), IntegerEntry(m, aL), IntegerEntry(n, N), IntegerEntry(o, O), StringEntry(u, aN), StringEntry(v, aN), StringEntry(w, aN)] | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(af) | |
259 | 259 | func initVotingForNewPool (ao,ap) = valueOrElse(ad(), { | |
260 | 260 | let aO = $Tuple2(af.payments[0].amount, af.payments[0].assetId) | |
261 | 261 | let aP = aO._1 | |
262 | 262 | let aQ = aO._2 | |
263 | 263 | let aR = $Tuple2(aE(ao), aE(ap)) | |
264 | 264 | let aS = aR._1 | |
265 | 265 | let aT = aR._2 | |
266 | 266 | let aU = aD() | |
267 | 267 | let aV = aC() | |
268 | 268 | let aW = az(ao, ap) | |
269 | 269 | let aX = ag(aS) | |
270 | 270 | let aY = aX._1 | |
271 | 271 | let aZ = aX._2 | |
272 | 272 | let ba = aX._3 | |
273 | 273 | let bb = ag(aT) | |
274 | 274 | let bc = bb._1 | |
275 | 275 | let bd = bb._2 | |
276 | 276 | let be = bb._3 | |
277 | 277 | if ((aS == aT)) | |
278 | 278 | then throw("Assets must be different") | |
279 | 279 | else if (aW) | |
280 | 280 | then throw("This pool already exists") | |
281 | 281 | else if ((size(af.payments) != 1)) | |
282 | 282 | then throw("One attached asset expected") | |
283 | 283 | else if ((aQ != ac)) | |
284 | 284 | then throw("You must use a SWOP token") | |
285 | 285 | else if (if ((ao == "")) | |
286 | 286 | then true | |
287 | 287 | else (ap == "")) | |
288 | 288 | then throw("Assets can't be empty") | |
289 | 289 | else if ((aP != M)) | |
290 | 290 | then throw("You need to attach 10 SWOP tokens") | |
291 | 291 | else if (!(if (if ((aT == ab)) | |
292 | 292 | then true | |
293 | 293 | else (aT == unit)) | |
294 | 294 | then true | |
295 | 295 | else (aT == ac))) | |
296 | 296 | then throw("assetB must be USDN, WAVES or SWOP") | |
297 | 297 | else if (if (((aV + 1) > N)) | |
298 | 298 | then true | |
299 | 299 | else (aU == "")) | |
300 | 300 | then throw(("Too many votings. Maximum quantity: " + toString(N))) | |
301 | 301 | else [IntegerEntry((((((ao + "_") + ap) + "_") + toString(G)) + t), G), IntegerEntry((toString(G) + g), (height + P)), BooleanEntry((toString(G) + l), true), IntegerEntry(m, (G + 1)), IntegerEntry(f, (aV + 1)), StringEntry((ao + s), aZ), StringEntry((ap + s), bd), StringEntry(aU, (((((ao + "_") + ap) + "_") + toString(G)) + t)), ScriptTransfer(aa, aP, aQ)] | |
302 | 302 | }) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | ||
306 | 306 | @Callable(af) | |
307 | 307 | func voteForPool (as,bf,bg) = valueOrElse(ad(), { | |
308 | 308 | let aB = height | |
309 | 309 | let bh = valueOrErrorMessage(getIntegerValue(this, (toString(as) + g)), "Empty pool height") | |
310 | 310 | let aw = valueOrElse(getBoolean(this, (toString(as) + l)), true) | |
311 | 311 | let bi = valueOrElse(getInteger(Y, (toString(af.caller) + r)), 0) | |
312 | 312 | let bj = if (bf) | |
313 | 313 | then (valueOrElse(getInteger(this, (((toString(af.caller) + "_") + toString(as)) + j)), 0) + bg) | |
314 | 314 | else (valueOrElse(getInteger(this, (((toString(af.caller) + "_") + toString(as)) + k)), 0) + bg) | |
315 | 315 | if (!(aG(af.caller))) | |
316 | 316 | then throw("This address has 0 SWOP in Governance dApp") | |
317 | 317 | else if (!(aw)) | |
318 | 318 | then throw("This voting was canceled") | |
319 | 319 | else if ((aB > bh)) | |
320 | 320 | then throw("This voting was expired") | |
321 | 321 | else if ((0 > bg)) | |
322 | 322 | then throw("The number of votes must be positive") | |
323 | 323 | else if ((bj > bi)) | |
324 | 324 | then throw((((toString(af.caller) + " has ") + toString(bi)) + " GSWOP in governance.")) | |
325 | 325 | else if (bf) | |
326 | 326 | then { | |
327 | 327 | let bk = valueOrElse(getInteger(this, (((toString(af.caller) + "_") + toString(as)) + k)), 0) | |
328 | 328 | let bl = ((valueOrElse(getInteger(this, (toString(as) + i)), 0) - bk) + bg) | |
329 | 329 | [IntegerEntry((toString(as) + i), bl), IntegerEntry((((toString(af.caller) + "_") + toString(as)) + k), bg)] | |
330 | 330 | } | |
331 | 331 | else { | |
332 | 332 | let bk = valueOrElse(getInteger(this, (((toString(af.caller) + "_") + toString(as)) + j)), 0) | |
333 | 333 | let bl = ((valueOrElse(getInteger(this, (toString(as) + h)), 0) - bk) + bg) | |
334 | 334 | [IntegerEntry((toString(as) + h), bl), IntegerEntry((((toString(af.caller) + "_") + toString(as)) + j), bg)] | |
335 | 335 | } | |
336 | 336 | }) | |
337 | 337 | ||
338 | 338 | ||
339 | 339 | ||
340 | 340 | @Callable(af) | |
341 | 341 | func cancelVoting (as,aJ) = valueOrElse(ae(af), { | |
342 | 342 | let aw = valueOrElse(getBoolean(this, (toString(as) + l)), true) | |
343 | 343 | if (!(aw)) | |
344 | 344 | then throw((("Voting " + toString(as)) + " has already been stopped")) | |
345 | 345 | else [IntegerEntry(f, (F - 1)), BooleanEntry((toString(as) + l), false), StringEntry((toString(as) + q), aJ)] | |
346 | 346 | }) | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(af) | |
351 | 351 | func shutdown () = valueOrElse(ae(af), if (!(K)) | |
352 | 352 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, p), "the cause wasn't specified"))) | |
353 | 353 | else aI("Paused by admin")) | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | ||
357 | 357 | @Callable(af) | |
358 | 358 | func activate () = valueOrElse(ae(af), if (K) | |
359 | 359 | then throw("DApp is already active") | |
360 | 360 | else [BooleanEntry(d, true), DeleteEntry(p)]) | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | @Verifier(bm) | |
364 | 364 | func bn () = { | |
365 | 365 | let bo = if (sigVerify(bm.bodyBytes, bm.proofs[0], V)) | |
366 | 366 | then 1 | |
367 | 367 | else 0 | |
368 | 368 | let bp = if (sigVerify(bm.bodyBytes, bm.proofs[1], W)) | |
369 | 369 | then 1 | |
370 | 370 | else 0 | |
371 | 371 | let bq = if (sigVerify(bm.bodyBytes, bm.proofs[2], X)) | |
372 | 372 | then 1 | |
373 | 373 | else 0 | |
374 | 374 | (((bo + bp) + bq) >= 2) | |
375 | 375 | } | |
376 | 376 |
github/deemru/w8io/026f985 36.53 ms ◑