tx · 3CBpjNjfvuP7S7HCbJq4t8eDp72gGJeqUHU1mE8ivcai 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T: -0.01400000 Waves 2022.05.11 16:32 [2047071] smart account 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T > SELF 0.00000000 Waves
{ "type": 13, "id": "3CBpjNjfvuP7S7HCbJq4t8eDp72gGJeqUHU1mE8ivcai", "fee": 1400000, "feeAssetId": null, "timestamp": 1652276025450, "version": 1, "sender": "3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T", "senderPublicKey": "7iXEgsFNsnbLZ3ca4tmz8jffnyxMu9keuBV6CuQPJLuA", "proofs": [ "5EhmXR2FCtHrKanK1KgKqBKR6FSNeypgEWzV9CvXvwiAyJFcKUb49Ghx8tEYbY1dqwP6xXKGWz7QW2hW7Hk5RJZ3" ], "script": "base64:AAIFAAAAAAAAADQIAhILCgkICAgIAQgBCAESBAoCCAgSBQoDCAgEEgQKAggIEgMKAQESBAoCCAgSAwoBCBIAAAAAHAAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAMa2V5RmVlQW1vdW50CQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAADZmVlBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAAOa2V5VXNkbkFzc2V0SWQJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAt1c2RuQXNzZXRJZAUAAAADbmlsBQAAAAlzZXBhcmF0b3IAAAAAEWtleVZvdGluZ0R1cmF0aW9uCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAALZXBvY2hMZW5ndGgFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAABFrZXlGaW5hbGl6ZVJld2FyZAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAADmZpbmFsaXplUmV3YXJkBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAASa2V5Vm90aW5nV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2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V51Jc6MQ==", "chainId": 84, "height": 2047071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7yXFtrVdX8up8moYTCL1Sqa2A4vs5uJPBjwGh28GWdj3 Next: 6FAX2uLk4oBSHzCdLXJGbGf1Qc4zyNUgQt6zrwRSAz7u Diff:
Old | New | Differences | |
---|---|---|---|
140 | 140 | then true | |
141 | 141 | else throw("Invalid USDN asset ID")] | |
142 | 142 | if ((aa == aa)) | |
143 | - | then $Tuple2([StringEntry(h, R), StringEntry(i, S), StringEntry(j, U), IntegerEntry(b, V), IntegerEntry(d, X), IntegerEntry(e, Z), StringEntry(g, W), StringEntry(c, Y)], unit) | |
143 | + | then $Tuple2([StringEntry(h, R), StringEntry(i, S), StringEntry(j, U), IntegerEntry(b, V), IntegerEntry(d, X), IntegerEntry(e, Z), StringEntry(g, W), StringEntry(c, Y), StringEntry(k, T)], unit) | |
144 | 144 | else throw("Strict value is not equal to itself.") | |
145 | 145 | } | |
146 | 146 | ||
217 | 217 | let ak = aj[1] | |
218 | 218 | let al = aj[2] | |
219 | 219 | let y = invoke(E, "getUserGwxAmountAtHeightREADONLY", [toString(L.caller), ai], nil) | |
220 | - | let am = if (ah) | |
220 | + | let am = if ((O(y) > 0)) | |
221 | + | then true | |
222 | + | else throw("you don't have gwx") | |
223 | + | if ((am == am)) | |
221 | 224 | then { | |
222 | - | let an = (parseIntValue(ak) + O(y)) | |
223 | - | let ao = v(o, p, toString(L.caller)) | |
224 | - | let ap = x(toString(O(y)), ah) | |
225 | - | $Tuple2([StringEntry(r(o, p), s(toString(an), al)), StringEntry(ao, ap)], unit) | |
225 | + | let an = if (ah) | |
226 | + | then { | |
227 | + | let ao = (parseIntValue(ak) + O(y)) | |
228 | + | let ap = v(o, p, toString(L.caller)) | |
229 | + | let aq = x(toString(O(y)), ah) | |
230 | + | $Tuple2([StringEntry(r(o, p), s(toString(ao), al)), StringEntry(ap, aq)], unit) | |
231 | + | } | |
232 | + | else { | |
233 | + | let ar = (parseIntValue(al) + O(y)) | |
234 | + | let as = v(o, p, toString(L.caller)) | |
235 | + | let at = x(toString(O(y)), ah) | |
236 | + | $Tuple2([StringEntry(r(o, p), s(ak, toString(ar))), StringEntry(as, at)], unit) | |
237 | + | } | |
238 | + | an | |
226 | 239 | } | |
227 | - | else { | |
228 | - | let aq = (parseIntValue(al) + O(y)) | |
229 | - | let ar = v(o, p, toString(L.caller)) | |
230 | - | let as = x(toString(O(y)), ah) | |
231 | - | $Tuple2([StringEntry(r(o, p), s(ak, toString(aq))), StringEntry(ar, as)], unit) | |
232 | - | } | |
233 | - | am | |
240 | + | else throw("Strict value is not equal to itself.") | |
234 | 241 | } | |
235 | 242 | else throw("Strict value is not equal to itself.") | |
236 | 243 | } | |
245 | 252 | if ((aa == aa)) | |
246 | 253 | then { | |
247 | 254 | let z = split(value(getString(v(o, p, toString(L.caller)))), a) | |
248 | - | let | |
249 | - | let | |
255 | + | let au = z[1] | |
256 | + | let av = z[2] | |
250 | 257 | let aj = split(value(getString(r(o, p))), a) | |
251 | 258 | let ak = aj[1] | |
252 | 259 | let al = aj[2] | |
253 | - | let | |
260 | + | let aw = if ((av == "yes")) | |
254 | 261 | then { | |
255 | - | let | |
256 | - | $Tuple2([StringEntry(r(o, p), s(toString( | |
262 | + | let ao = (parseIntValue(ak) - parseIntValue(au)) | |
263 | + | $Tuple2([StringEntry(r(o, p), s(toString(ao), al)), DeleteEntry(v(o, p, toString(L.caller)))], unit) | |
257 | 264 | } | |
258 | 265 | else { | |
259 | - | let | |
260 | - | $Tuple2([StringEntry(r(o, p), s(ak, toString( | |
266 | + | let ar = (parseIntValue(al) - parseIntValue(au)) | |
267 | + | $Tuple2([StringEntry(r(o, p), s(ak, toString(ar))), DeleteEntry(v(o, p, toString(L.caller)))], unit) | |
261 | 268 | } | |
262 | - | | |
269 | + | aw | |
263 | 270 | } | |
264 | 271 | else throw("Strict value is not equal to itself.") | |
265 | 272 | } | |
267 | 274 | ||
268 | 275 | ||
269 | 276 | @Callable(L) | |
270 | - | func setFee ( | |
277 | + | func setFee (ax) = { | |
271 | 278 | let aa = [K(L)] | |
272 | 279 | if ((aa == aa)) | |
273 | - | then [IntegerEntry(b, | |
280 | + | then [IntegerEntry(b, ax)] | |
274 | 281 | else throw("Strict value is not equal to itself.") | |
275 | 282 | } | |
276 | 283 | ||
289 | 296 | let aj = split(value(getString(r(o, p))), a) | |
290 | 297 | let ak = parseIntValue(aj[1]) | |
291 | 298 | let al = parseIntValue(aj[2]) | |
292 | - | let | |
299 | + | let aw = if ((ak > al)) | |
293 | 300 | then { | |
294 | - | let | |
295 | - | if (( | |
301 | + | let ay = invoke(F, "setPoolLabels", [o, p, "WX_EMISSION"], nil) | |
302 | + | if ((ay == ay)) | |
296 | 303 | then $Tuple2([DeleteEntry(n(o, p))], unit) | |
297 | 304 | else throw("Strict value is not equal to itself.") | |
298 | 305 | } | |
299 | 306 | else $Tuple2([DeleteEntry(n(o, p))], unit) | |
300 | - | | |
307 | + | aw | |
301 | 308 | } | |
302 | 309 | else throw("Strict value is not equal to itself.") | |
303 | 310 | } | |
305 | 312 | ||
306 | 313 | ||
307 | 314 | @Callable(L) | |
308 | - | func setManager ( | |
309 | - | let | |
310 | - | if (( | |
315 | + | func setManager (az) = { | |
316 | + | let aA = K(L) | |
317 | + | if ((aA == aA)) | |
311 | 318 | then { | |
312 | - | let | |
313 | - | if (( | |
314 | - | then [StringEntry(B(), | |
319 | + | let aB = fromBase58String(az) | |
320 | + | if ((aB == aB)) | |
321 | + | then [StringEntry(B(), az)] | |
315 | 322 | else throw("Strict value is not equal to itself.") | |
316 | 323 | } | |
317 | 324 | else throw("Strict value is not equal to itself.") | |
321 | 328 | ||
322 | 329 | @Callable(L) | |
323 | 330 | func confirmManager () = { | |
324 | - | let | |
325 | - | let | |
331 | + | let aC = J() | |
332 | + | let aD = if (isDefined(aC)) | |
326 | 333 | then true | |
327 | 334 | else throw("No pending manager") | |
328 | - | if (( | |
335 | + | if ((aD == aD)) | |
329 | 336 | then { | |
330 | - | let | |
337 | + | let aE = if ((L.callerPublicKey == value(aC))) | |
331 | 338 | then true | |
332 | 339 | else throw("You are not pending manager") | |
333 | - | if (( | |
334 | - | then [StringEntry(A(), toBase58String(value( | |
340 | + | if ((aE == aE)) | |
341 | + | then [StringEntry(A(), toBase58String(value(aC))), DeleteEntry(B())] | |
335 | 342 | else throw("Strict value is not equal to itself.") | |
336 | 343 | } | |
337 | 344 | else throw("Strict value is not equal to itself.") | |
338 | 345 | } | |
339 | 346 | ||
340 | 347 | ||
341 | - | @Verifier( | |
342 | - | func | |
343 | - | let | |
348 | + | @Verifier(aF) | |
349 | + | func aG () = { | |
350 | + | let aH = { | |
344 | 351 | let H = G() | |
345 | 352 | if ($isInstanceOf(H, "ByteVector")) | |
346 | 353 | then { | |
348 | 355 | N | |
349 | 356 | } | |
350 | 357 | else if ($isInstanceOf(H, "Unit")) | |
351 | - | then | |
358 | + | then aF.senderPublicKey | |
352 | 359 | else throw("Match error") | |
353 | 360 | } | |
354 | - | sigVerify( | |
361 | + | sigVerify(aF.bodyBytes, aF.proofs[0], aH) | |
355 | 362 | } | |
356 | 363 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = makeString(["%s", "fee"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "usdnAssetId"], a) | |
9 | 9 | ||
10 | 10 | let d = makeString(["%s", "epochLength"], a) | |
11 | 11 | ||
12 | 12 | let e = makeString(["%s", "finalizeReward"], a) | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "votingThreshold"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s", "wxAssetId"], a) | |
17 | 17 | ||
18 | 18 | let h = makeString(["%s", "assetsStoreContract"], a) | |
19 | 19 | ||
20 | 20 | let i = makeString(["%s", "userPoolContract"], a) | |
21 | 21 | ||
22 | 22 | let j = makeString(["%s", "emissionContract"], a) | |
23 | 23 | ||
24 | 24 | let k = makeString(["%s", "boostingContract"], a) | |
25 | 25 | ||
26 | 26 | func l (m) = valueOrErrorMessage(getString(this, m), (m + " is not defined")) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (o,p) = makeString(["%s%s%s", "inList", o, p], a) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func q (o,p) = makeString(["%s%s%s", "startHeight", o, p], a) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func r (o,p) = makeString(["%s%s%s", "votingResult", o, p], a) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func s (t,u) = makeString(["%d%d", t, u], a) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func v (o,p,w) = makeString(["%s%s%s%s", "vote", o, p, w], a) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func x (y,z) = { | |
45 | 45 | let m = if (z) | |
46 | 46 | then makeString(["%d%s", y, "yes"], a) | |
47 | 47 | else makeString(["%d%s", y, "no"], a) | |
48 | 48 | m | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func A () = "%s__managerPublicKey" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func B () = "%s__pendingManagerPublicKey" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | let C = addressFromStringValue(l(j)) | |
59 | 59 | ||
60 | 60 | let D = addressFromStringValue(l(i)) | |
61 | 61 | ||
62 | 62 | let E = addressFromStringValue(l(k)) | |
63 | 63 | ||
64 | 64 | let F = addressFromStringValue(l(h)) | |
65 | 65 | ||
66 | 66 | func G () = { | |
67 | 67 | let H = getString(A()) | |
68 | 68 | if ($isInstanceOf(H, "String")) | |
69 | 69 | then { | |
70 | 70 | let I = H | |
71 | 71 | fromBase58String(I) | |
72 | 72 | } | |
73 | 73 | else if ($isInstanceOf(H, "Unit")) | |
74 | 74 | then unit | |
75 | 75 | else throw("Match error") | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func J () = { | |
80 | 80 | let H = getString(B()) | |
81 | 81 | if ($isInstanceOf(H, "String")) | |
82 | 82 | then { | |
83 | 83 | let I = H | |
84 | 84 | fromBase58String(I) | |
85 | 85 | } | |
86 | 86 | else if ($isInstanceOf(H, "Unit")) | |
87 | 87 | then unit | |
88 | 88 | else throw("Match error") | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func K (L) = { | |
93 | 93 | let M = throw("Permission denied") | |
94 | 94 | let H = G() | |
95 | 95 | if ($isInstanceOf(H, "ByteVector")) | |
96 | 96 | then { | |
97 | 97 | let N = H | |
98 | 98 | if ((L.callerPublicKey == N)) | |
99 | 99 | then true | |
100 | 100 | else M | |
101 | 101 | } | |
102 | 102 | else if ($isInstanceOf(H, "Unit")) | |
103 | 103 | then if ((L.caller == this)) | |
104 | 104 | then true | |
105 | 105 | else M | |
106 | 106 | else throw("Match error") | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func O (P) = { | |
111 | 111 | let H = P | |
112 | 112 | if ($isInstanceOf(H, "Int")) | |
113 | 113 | then { | |
114 | 114 | let Q = H | |
115 | 115 | Q | |
116 | 116 | } | |
117 | 117 | else throw("Failed to cast into Integer") | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Callable(L) | |
122 | 122 | func constructor (R,S,T,U,V,W,X,Y,Z) = { | |
123 | 123 | let aa = [K(L), if (isDefined(addressFromString(R))) | |
124 | 124 | then true | |
125 | 125 | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(T))) | |
126 | 126 | then true | |
127 | 127 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(S))) | |
128 | 128 | then true | |
129 | 129 | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(U))) | |
130 | 130 | then true | |
131 | 131 | else throw("Invalid emission contract address"), if ((V >= 0)) | |
132 | 132 | then true | |
133 | 133 | else throw("Invalid fee amount"), if ((X > 0)) | |
134 | 134 | then true | |
135 | 135 | else throw("Invalid voting duration"), if ((Z > 0)) | |
136 | 136 | then true | |
137 | 137 | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String(W)))) | |
138 | 138 | then true | |
139 | 139 | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(Y)))) | |
140 | 140 | then true | |
141 | 141 | else throw("Invalid USDN asset ID")] | |
142 | 142 | if ((aa == aa)) | |
143 | - | then $Tuple2([StringEntry(h, R), StringEntry(i, S), StringEntry(j, U), IntegerEntry(b, V), IntegerEntry(d, X), IntegerEntry(e, Z), StringEntry(g, W), StringEntry(c, Y)], unit) | |
143 | + | then $Tuple2([StringEntry(h, R), StringEntry(i, S), StringEntry(j, U), IntegerEntry(b, V), IntegerEntry(d, X), IntegerEntry(e, Z), StringEntry(g, W), StringEntry(c, Y), StringEntry(k, T)], unit) | |
144 | 144 | else throw("Strict value is not equal to itself.") | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | ||
149 | 149 | @Callable(L) | |
150 | 150 | func suggest (o,p) = { | |
151 | 151 | let ab = value(L.payments[0]) | |
152 | 152 | let ac = valueOrErrorMessage(assetInfo(fromBase58String(o)), "Invalid amountAssetId ID") | |
153 | 153 | let aa = [if ((ac.issuer == L.caller)) | |
154 | 154 | then true | |
155 | 155 | else throw("Asset can only be suggested by its issuer"), if ((ac.scripted == false)) | |
156 | 156 | then true | |
157 | 157 | else throw("Asset is smart"), if ((toBase58String(value(ab.assetId)) == value(getString(g)))) | |
158 | 158 | then true | |
159 | 159 | else throw("Invalid fee asset"), if ((ab.amount == value(getInteger(b)))) | |
160 | 160 | then true | |
161 | 161 | else throw("Invalid fee amount"), if ((p == value(getString(c)))) | |
162 | 162 | then true | |
163 | 163 | else throw("priceAssetId is not USDN"), if ((getBoolean(n(o, p)) == unit)) | |
164 | 164 | then true | |
165 | 165 | else throw("Already in voting list")] | |
166 | 166 | if ((aa == aa)) | |
167 | 167 | then { | |
168 | 168 | let ad = { | |
169 | 169 | let H = invoke(D, "statusREADONLY", [o, p], nil) | |
170 | 170 | if ($isInstanceOf(H, "String")) | |
171 | 171 | then { | |
172 | 172 | let I = H | |
173 | 173 | if ((I == "active")) | |
174 | 174 | then true | |
175 | 175 | else throw("User pool is not active") | |
176 | 176 | } | |
177 | 177 | else throw("User pool is not active") | |
178 | 178 | } | |
179 | 179 | if ((ad == ad)) | |
180 | 180 | then { | |
181 | 181 | let ae = { | |
182 | 182 | let H = invoke(F, "isVerifiedREADONLY", [o], nil) | |
183 | 183 | if ($isInstanceOf(H, "Boolean")) | |
184 | 184 | then { | |
185 | 185 | let af = H | |
186 | 186 | af | |
187 | 187 | } | |
188 | 188 | else throw("Asset is not verified") | |
189 | 189 | } | |
190 | 190 | if ((ae == ae)) | |
191 | 191 | then { | |
192 | 192 | let ag = invoke(C, "burn", nil, [AttachedPayment(ab.assetId, ab.amount)]) | |
193 | 193 | if ((ag == ag)) | |
194 | 194 | then [BooleanEntry(n(o, p), true), IntegerEntry(q(o, p), height), StringEntry(r(o, p), s("0", "0"))] | |
195 | 195 | else throw("Strict value is not equal to itself.") | |
196 | 196 | } | |
197 | 197 | else throw("Strict value is not equal to itself.") | |
198 | 198 | } | |
199 | 199 | else throw("Strict value is not equal to itself.") | |
200 | 200 | } | |
201 | 201 | else throw("Strict value is not equal to itself.") | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | ||
206 | 206 | @Callable(L) | |
207 | 207 | func vote (o,p,ah) = { | |
208 | 208 | let ai = (value(getInteger(q(o, p))) + value(getInteger(d))) | |
209 | 209 | let aa = [if (valueOrElse(getBoolean(n(o, p)), false)) | |
210 | 210 | then true | |
211 | 211 | else throw("The token isn't on the voting list"), if ((ai > height)) | |
212 | 212 | then true | |
213 | 213 | else throw("too late to vote")] | |
214 | 214 | if ((aa == aa)) | |
215 | 215 | then { | |
216 | 216 | let aj = split(value(getString(r(o, p))), a) | |
217 | 217 | let ak = aj[1] | |
218 | 218 | let al = aj[2] | |
219 | 219 | let y = invoke(E, "getUserGwxAmountAtHeightREADONLY", [toString(L.caller), ai], nil) | |
220 | - | let am = if (ah) | |
220 | + | let am = if ((O(y) > 0)) | |
221 | + | then true | |
222 | + | else throw("you don't have gwx") | |
223 | + | if ((am == am)) | |
221 | 224 | then { | |
222 | - | let an = (parseIntValue(ak) + O(y)) | |
223 | - | let ao = v(o, p, toString(L.caller)) | |
224 | - | let ap = x(toString(O(y)), ah) | |
225 | - | $Tuple2([StringEntry(r(o, p), s(toString(an), al)), StringEntry(ao, ap)], unit) | |
225 | + | let an = if (ah) | |
226 | + | then { | |
227 | + | let ao = (parseIntValue(ak) + O(y)) | |
228 | + | let ap = v(o, p, toString(L.caller)) | |
229 | + | let aq = x(toString(O(y)), ah) | |
230 | + | $Tuple2([StringEntry(r(o, p), s(toString(ao), al)), StringEntry(ap, aq)], unit) | |
231 | + | } | |
232 | + | else { | |
233 | + | let ar = (parseIntValue(al) + O(y)) | |
234 | + | let as = v(o, p, toString(L.caller)) | |
235 | + | let at = x(toString(O(y)), ah) | |
236 | + | $Tuple2([StringEntry(r(o, p), s(ak, toString(ar))), StringEntry(as, at)], unit) | |
237 | + | } | |
238 | + | an | |
226 | 239 | } | |
227 | - | else { | |
228 | - | let aq = (parseIntValue(al) + O(y)) | |
229 | - | let ar = v(o, p, toString(L.caller)) | |
230 | - | let as = x(toString(O(y)), ah) | |
231 | - | $Tuple2([StringEntry(r(o, p), s(ak, toString(aq))), StringEntry(ar, as)], unit) | |
232 | - | } | |
233 | - | am | |
240 | + | else throw("Strict value is not equal to itself.") | |
234 | 241 | } | |
235 | 242 | else throw("Strict value is not equal to itself.") | |
236 | 243 | } | |
237 | 244 | ||
238 | 245 | ||
239 | 246 | ||
240 | 247 | @Callable(L) | |
241 | 248 | func cancelVote (o,p) = { | |
242 | 249 | let aa = [if (isDefined(getString(r(o, p)))) | |
243 | 250 | then true | |
244 | 251 | else throw("No vote for assets pair")] | |
245 | 252 | if ((aa == aa)) | |
246 | 253 | then { | |
247 | 254 | let z = split(value(getString(v(o, p, toString(L.caller)))), a) | |
248 | - | let | |
249 | - | let | |
255 | + | let au = z[1] | |
256 | + | let av = z[2] | |
250 | 257 | let aj = split(value(getString(r(o, p))), a) | |
251 | 258 | let ak = aj[1] | |
252 | 259 | let al = aj[2] | |
253 | - | let | |
260 | + | let aw = if ((av == "yes")) | |
254 | 261 | then { | |
255 | - | let | |
256 | - | $Tuple2([StringEntry(r(o, p), s(toString( | |
262 | + | let ao = (parseIntValue(ak) - parseIntValue(au)) | |
263 | + | $Tuple2([StringEntry(r(o, p), s(toString(ao), al)), DeleteEntry(v(o, p, toString(L.caller)))], unit) | |
257 | 264 | } | |
258 | 265 | else { | |
259 | - | let | |
260 | - | $Tuple2([StringEntry(r(o, p), s(ak, toString( | |
266 | + | let ar = (parseIntValue(al) - parseIntValue(au)) | |
267 | + | $Tuple2([StringEntry(r(o, p), s(ak, toString(ar))), DeleteEntry(v(o, p, toString(L.caller)))], unit) | |
261 | 268 | } | |
262 | - | | |
269 | + | aw | |
263 | 270 | } | |
264 | 271 | else throw("Strict value is not equal to itself.") | |
265 | 272 | } | |
266 | 273 | ||
267 | 274 | ||
268 | 275 | ||
269 | 276 | @Callable(L) | |
270 | - | func setFee ( | |
277 | + | func setFee (ax) = { | |
271 | 278 | let aa = [K(L)] | |
272 | 279 | if ((aa == aa)) | |
273 | - | then [IntegerEntry(b, | |
280 | + | then [IntegerEntry(b, ax)] | |
274 | 281 | else throw("Strict value is not equal to itself.") | |
275 | 282 | } | |
276 | 283 | ||
277 | 284 | ||
278 | 285 | ||
279 | 286 | @Callable(L) | |
280 | 287 | func finalize (o,p) = { | |
281 | 288 | let ai = (value(getInteger(q(o, p))) + value(getInteger(d))) | |
282 | 289 | let aa = [if (isDefined(getBoolean(n(o, p)))) | |
283 | 290 | then true | |
284 | 291 | else throw("No assets pair"), if ((height >= ai)) | |
285 | 292 | then true | |
286 | 293 | else throw("insufficient height for completion")] | |
287 | 294 | if ((aa == aa)) | |
288 | 295 | then { | |
289 | 296 | let aj = split(value(getString(r(o, p))), a) | |
290 | 297 | let ak = parseIntValue(aj[1]) | |
291 | 298 | let al = parseIntValue(aj[2]) | |
292 | - | let | |
299 | + | let aw = if ((ak > al)) | |
293 | 300 | then { | |
294 | - | let | |
295 | - | if (( | |
301 | + | let ay = invoke(F, "setPoolLabels", [o, p, "WX_EMISSION"], nil) | |
302 | + | if ((ay == ay)) | |
296 | 303 | then $Tuple2([DeleteEntry(n(o, p))], unit) | |
297 | 304 | else throw("Strict value is not equal to itself.") | |
298 | 305 | } | |
299 | 306 | else $Tuple2([DeleteEntry(n(o, p))], unit) | |
300 | - | | |
307 | + | aw | |
301 | 308 | } | |
302 | 309 | else throw("Strict value is not equal to itself.") | |
303 | 310 | } | |
304 | 311 | ||
305 | 312 | ||
306 | 313 | ||
307 | 314 | @Callable(L) | |
308 | - | func setManager ( | |
309 | - | let | |
310 | - | if (( | |
315 | + | func setManager (az) = { | |
316 | + | let aA = K(L) | |
317 | + | if ((aA == aA)) | |
311 | 318 | then { | |
312 | - | let | |
313 | - | if (( | |
314 | - | then [StringEntry(B(), | |
319 | + | let aB = fromBase58String(az) | |
320 | + | if ((aB == aB)) | |
321 | + | then [StringEntry(B(), az)] | |
315 | 322 | else throw("Strict value is not equal to itself.") | |
316 | 323 | } | |
317 | 324 | else throw("Strict value is not equal to itself.") | |
318 | 325 | } | |
319 | 326 | ||
320 | 327 | ||
321 | 328 | ||
322 | 329 | @Callable(L) | |
323 | 330 | func confirmManager () = { | |
324 | - | let | |
325 | - | let | |
331 | + | let aC = J() | |
332 | + | let aD = if (isDefined(aC)) | |
326 | 333 | then true | |
327 | 334 | else throw("No pending manager") | |
328 | - | if (( | |
335 | + | if ((aD == aD)) | |
329 | 336 | then { | |
330 | - | let | |
337 | + | let aE = if ((L.callerPublicKey == value(aC))) | |
331 | 338 | then true | |
332 | 339 | else throw("You are not pending manager") | |
333 | - | if (( | |
334 | - | then [StringEntry(A(), toBase58String(value( | |
340 | + | if ((aE == aE)) | |
341 | + | then [StringEntry(A(), toBase58String(value(aC))), DeleteEntry(B())] | |
335 | 342 | else throw("Strict value is not equal to itself.") | |
336 | 343 | } | |
337 | 344 | else throw("Strict value is not equal to itself.") | |
338 | 345 | } | |
339 | 346 | ||
340 | 347 | ||
341 | - | @Verifier( | |
342 | - | func | |
343 | - | let | |
348 | + | @Verifier(aF) | |
349 | + | func aG () = { | |
350 | + | let aH = { | |
344 | 351 | let H = G() | |
345 | 352 | if ($isInstanceOf(H, "ByteVector")) | |
346 | 353 | then { | |
347 | 354 | let N = H | |
348 | 355 | N | |
349 | 356 | } | |
350 | 357 | else if ($isInstanceOf(H, "Unit")) | |
351 | - | then | |
358 | + | then aF.senderPublicKey | |
352 | 359 | else throw("Match error") | |
353 | 360 | } | |
354 | - | sigVerify( | |
361 | + | sigVerify(aF.bodyBytes, aF.proofs[0], aH) | |
355 | 362 | } | |
356 | 363 |
github/deemru/w8io/169f3d6 62.39 ms ◑