tx · Ax73N5XmJCkQPjF5YJ4VKpfrhe53RoanVWVxbNSVX2pQ 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.02700000 Waves 2023.06.14 11:44 [2622109] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "Ax73N5XmJCkQPjF5YJ4VKpfrhe53RoanVWVxbNSVX2pQ", "fee": 2700000, "feeAssetId": null, "timestamp": 1686732266744, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "34LKsqA2ccSmnaJmfdzMCXjw8xjGVUdbqWWUDQCk81nuJtXKB9ZNRPgFz1AbH8yv4LMoafE9SjvnUrs5zavtXgDQ" ], "script": "base64:BgLYKwgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSAwoBCCIGU0NBTEU4IgVNVUxUOCIGTVVMVDEyIgdTQ0FMRTE4IgZNVUxUMTgiDlBPT0xXRUlHSFRNVUxUIg5HV1h2aXJ0dWFsUE9PTCIMbGFiZWxQb29sc0xwIg1kZWZhdWx0U3ByZWFkIgt3YXZlc1N0cmluZyIQY29udHJhY3RGaWxlbmFtZSIRZGVjaW1hbHNNdWx0UHJpY2UiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIhJpZHhJbnRl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QIFAmJmAgpCeXRlVmVjdG9yBAJiRgUCYmYFAmJGAwkAAQIFAmJmAgRVbml0CAUCZmgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmZoCWJvZHlCeXRlcwkAkQMCCAUCZmgGcHJvb2ZzAAAFAmZqseEcMw==", "height": 2622109, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 86yDnP5hEHbqfyoitPje6Mep6aU1itX7xFjKXAfAaL48 Next: 37DqwX9n5E8Z3eewpmJjkKLRag6cPQPiogiFf2t3sWaF Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = "factory_v2.ride" | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = ((100 * 1000) * 1000) | |
27 | 27 | ||
28 | - | let m = "" | |
28 | + | let m = "__" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = "" | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 2 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 3 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 4 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 1 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 2 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 3 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 1 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 2 | |
49 | 49 | ||
50 | - | let x = | |
50 | + | let x = 3 | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = 4 | |
53 | 53 | ||
54 | - | let z = | |
54 | + | let z = 5 | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = 6 | |
57 | 57 | ||
58 | - | let B = | |
58 | + | let B = 7 | |
59 | 59 | ||
60 | - | let C = | |
60 | + | let C = 8 | |
61 | 61 | ||
62 | - | let D = | |
62 | + | let D = 9 | |
63 | 63 | ||
64 | - | let E = | |
64 | + | let E = 10 | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = 11 | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = "WX_EMISSION" | |
69 | 69 | ||
70 | - | func H () = "%s__allowedLpScriptHash" | |
70 | + | let H = [G] | |
71 | + | ||
72 | + | func I (J) = makeString([k, ": ", J], "") | |
71 | 73 | ||
72 | 74 | ||
73 | - | func | |
75 | + | func K (J) = throw(I(J)) | |
74 | 76 | ||
75 | 77 | ||
76 | - | func | |
78 | + | func L () = "%s__allowedLpScriptHash" | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func M () = "%s__allowedLpStableScriptHash" | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
84 | + | func N () = "%s__swapContract" | |
83 | 85 | ||
84 | 86 | ||
85 | - | func | |
87 | + | func O () = "%s__factoryConfig" | |
86 | 88 | ||
87 | 89 | ||
88 | - | func | |
90 | + | func P () = "%s__lpTokensList" | |
89 | 91 | ||
90 | 92 | ||
91 | - | func | |
93 | + | func Q () = "%s%s__pool__scriptHash" | |
92 | 94 | ||
93 | 95 | ||
94 | - | func | |
96 | + | func R () = "%s%s__matcher__publicKey" | |
95 | 97 | ||
96 | 98 | ||
97 | - | func | |
99 | + | func S () = "%s__legacyFactoryContract" | |
98 | 100 | ||
99 | 101 | ||
100 | - | func | |
102 | + | func T () = "%s__legacyPools" | |
101 | 103 | ||
102 | 104 | ||
103 | - | func | |
105 | + | func U () = "%s__managerPublicKey" | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
108 | + | func V () = "%s__managerVaultAddress" | |
107 | 109 | ||
108 | 110 | ||
109 | - | func | |
111 | + | func W () = "%s__adminPubKeys" | |
110 | 112 | ||
111 | 113 | ||
112 | - | func | |
114 | + | func X () = "%s__assetsStoreContract" | |
113 | 115 | ||
114 | 116 | ||
115 | - | func | |
117 | + | func Y () = "%s__votingEmissionContract" | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func Z () = "%s__userPoolsContract" | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
123 | + | func aa () = makeString(["%s", "priceAssets"], m) | |
122 | 124 | ||
123 | 125 | ||
124 | - | func | |
126 | + | func ab () = "%s__priceDecimals" | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func ac () = "%s__shutdown" | |
128 | 130 | ||
129 | 131 | ||
130 | - | func ad ( | |
132 | + | func ad () = "%s__nextInternalAssetId" | |
131 | 133 | ||
132 | 134 | ||
133 | - | func | |
135 | + | func ae (af) = ("%s%s__poolWeight__" + af) | |
134 | 136 | ||
135 | 137 | ||
136 | - | func | |
138 | + | func ag (af,ah) = ((("%s%s__poolWeight__" + af) + "__") + toString(ah)) | |
137 | 139 | ||
138 | 140 | ||
139 | - | func ak (al) = { | |
140 | - | let am = al | |
141 | - | let ai = am._1 | |
142 | - | let aj = am._2 | |
143 | - | makeString(["%d%d%s", toString(ai), toString(aj), "oneTokenOperationsDisabled"], l) | |
141 | + | func ai (aj) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(aj)) | |
142 | + | ||
143 | + | ||
144 | + | func ak (al) = ("%s%s%s__mappings__baseAsset2internalId__" + al) | |
145 | + | ||
146 | + | ||
147 | + | func am (an,ao) = (((("%d%d%s__" + an) + "__") + ao) + "__config") | |
148 | + | ||
149 | + | ||
150 | + | func ap (aq) = { | |
151 | + | let ar = aq | |
152 | + | let an = ar._1 | |
153 | + | let ao = ar._2 | |
154 | + | makeString(["%d%d%s", toString(an), toString(ao), "oneTokenOperationsDisabled"], m) | |
144 | 155 | } | |
145 | 156 | ||
146 | 157 | ||
147 | - | func | |
158 | + | func as () = makeString(["%s", "oneTokenOperationsDisabled"], m) | |
148 | 159 | ||
149 | 160 | ||
150 | - | func | |
161 | + | func at (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2Pool") | |
151 | 162 | ||
152 | 163 | ||
153 | - | func | |
164 | + | func av (aw,ax) = (((("%d%d%s%s__" + aw) + "__") + ax) + "__mappings__PoolAssets2LpAsset") | |
154 | 165 | ||
155 | 166 | ||
156 | - | func | |
167 | + | func ay (af) = ("%s%s__spread__" + af) | |
157 | 168 | ||
158 | 169 | ||
159 | - | func | |
170 | + | func az (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2PoolAssets") | |
160 | 171 | ||
161 | 172 | ||
162 | - | func | |
173 | + | func aB (aw,ax) = (((("%d%d%s%s__" + toString(aw)) + "__") + toString(ax)) + "__mappings__poolAssets2PoolContract") | |
163 | 174 | ||
164 | 175 | ||
165 | - | func | |
176 | + | func aC (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2LpAsset") | |
166 | 177 | ||
167 | 178 | ||
168 | - | func | |
179 | + | func aD (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2PoolContract") | |
169 | 180 | ||
170 | 181 | ||
171 | - | func | |
182 | + | func aE (aF,aG) = ((("%s%s%s__wxEmission__" + aF) + "__") + aG) | |
172 | 183 | ||
173 | 184 | ||
174 | - | func | |
185 | + | func aH (af) = ("%s%s__inFee__" + af) | |
175 | 186 | ||
176 | 187 | ||
177 | - | func | |
188 | + | func aI () = "%s__inFeeDefault" | |
178 | 189 | ||
179 | 190 | ||
180 | - | func | |
191 | + | func aJ (af) = ("%s%s__outFee__" + af) | |
181 | 192 | ||
182 | 193 | ||
183 | - | func | |
194 | + | func aK () = "%s__outFeeDefault" | |
184 | 195 | ||
185 | 196 | ||
186 | - | func | |
197 | + | func aL (af) = ("%s%s__skipOrderValidation__" + af) | |
187 | 198 | ||
188 | 199 | ||
189 | - | func | |
200 | + | func aM (af) = ("%s%s__changeAmpDelay__" + af) | |
190 | 201 | ||
191 | 202 | ||
192 | - | func | |
203 | + | func aN (af) = ("%s%s__changeAmpDelta__" + af) | |
193 | 204 | ||
194 | 205 | ||
195 | - | func | |
206 | + | func aO (af) = ("%s%s__changeAmpTarget__" + af) | |
196 | 207 | ||
197 | 208 | ||
198 | - | func | |
209 | + | func aP () = "%s__sWavesProxyAddress" | |
199 | 210 | ||
200 | 211 | ||
201 | - | func | |
212 | + | func aQ () = "%s__sWavesAssetId" | |
202 | 213 | ||
203 | 214 | ||
204 | - | func | |
215 | + | func aR () = "%s__stakingProfitAddress" | |
205 | 216 | ||
206 | 217 | ||
207 | - | func | |
218 | + | func aS (af,aT) = makeString(["%s%s%s", "leasedRatio", af, aT], m) | |
208 | 219 | ||
209 | 220 | ||
210 | - | func | |
221 | + | func aU (aT) = makeString(["%s%s", "leasedRatioDefault", aT], m) | |
211 | 222 | ||
212 | 223 | ||
213 | - | func | |
224 | + | func aV (af,aT) = makeString(["%s%s%s", "leasedRatioTolerance", af, aT], m) | |
214 | 225 | ||
215 | 226 | ||
216 | - | func | |
227 | + | func aW (af,aT) = makeString(["%s%s%s", "minBalance", af, aT], m) | |
217 | 228 | ||
218 | 229 | ||
219 | - | func | |
230 | + | func aX (aT) = makeString(["%s%s", "minBalanceDefault", aT], m) | |
220 | 231 | ||
221 | 232 | ||
222 | - | func | |
233 | + | func aY (aZ) = valueOrErrorMessage(getString(this, aZ), ("No data for this.key=" + aZ)) | |
223 | 234 | ||
224 | 235 | ||
225 | - | func | |
236 | + | func ba (aZ) = valueOrErrorMessage(getBoolean(this, aZ), ("No data for this.key=" + aZ)) | |
226 | 237 | ||
227 | 238 | ||
228 | - | func | |
239 | + | func bb (aZ) = valueOrErrorMessage(getInteger(this, aZ), ("No data for this.key=" + aZ)) | |
229 | 240 | ||
230 | 241 | ||
231 | - | func | |
242 | + | func bc (bd) = if ((bd == j)) | |
232 | 243 | then unit | |
233 | - | else fromBase58String( | |
244 | + | else fromBase58String(bd) | |
234 | 245 | ||
235 | 246 | ||
236 | - | func | |
237 | - | let | |
238 | - | if ($isInstanceOf( | |
247 | + | func be () = { | |
248 | + | let bf = getString(V()) | |
249 | + | if ($isInstanceOf(bf, "String")) | |
239 | 250 | then { | |
240 | - | let | |
241 | - | addressFromStringValue( | |
251 | + | let bg = bf | |
252 | + | addressFromStringValue(bg) | |
242 | 253 | } | |
243 | 254 | else this | |
244 | 255 | } | |
245 | 256 | ||
246 | 257 | ||
247 | - | let | |
258 | + | let bh = 1 | |
248 | 259 | ||
249 | - | let | |
260 | + | let bi = 2 | |
250 | 261 | ||
251 | - | let | |
262 | + | let bj = 3 | |
252 | 263 | ||
253 | - | let | |
264 | + | let bk = 4 | |
254 | 265 | ||
255 | - | let | |
266 | + | let bl = 5 | |
256 | 267 | ||
257 | - | let | |
268 | + | let bm = 6 | |
258 | 269 | ||
259 | - | let | |
270 | + | let bn = 7 | |
260 | 271 | ||
261 | - | let | |
272 | + | let bo = 8 | |
262 | 273 | ||
263 | - | let | |
274 | + | let bp = 9 | |
264 | 275 | ||
265 | - | let | |
276 | + | let bq = 10 | |
266 | 277 | ||
267 | - | let | |
278 | + | let br = 11 | |
268 | 279 | ||
269 | - | func | |
280 | + | func bs (bt) = addressFromStringValue(bt[bi]) | |
270 | 281 | ||
271 | 282 | ||
272 | - | func | |
283 | + | func bu (bt) = addressFromStringValue(bt[bl]) | |
273 | 284 | ||
274 | 285 | ||
275 | - | func | |
286 | + | func bv (bt) = addressFromStringValue(bt[bh]) | |
276 | 287 | ||
277 | 288 | ||
278 | - | func | |
289 | + | func bw (bt) = addressFromStringValue(bt[bq]) | |
279 | 290 | ||
280 | 291 | ||
281 | - | func | |
282 | - | let | |
283 | - | if ($isInstanceOf( | |
292 | + | func bx () = { | |
293 | + | let bf = getString(aa()) | |
294 | + | if ($isInstanceOf(bf, "String")) | |
284 | 295 | then { | |
285 | - | let | |
286 | - | if ((size( | |
296 | + | let bg = bf | |
297 | + | if ((size(bg) == 0)) | |
287 | 298 | then nil | |
288 | - | else split( | |
299 | + | else split(bg, m) | |
289 | 300 | } | |
290 | 301 | else nil | |
291 | 302 | } | |
292 | 303 | ||
293 | 304 | ||
294 | - | func | |
295 | - | let | |
296 | - | let | |
297 | - | if ($isInstanceOf( | |
305 | + | func by () = { | |
306 | + | let bz = be() | |
307 | + | let bf = getString(bz, U()) | |
308 | + | if ($isInstanceOf(bf, "String")) | |
298 | 309 | then { | |
299 | - | let | |
300 | - | fromBase58String( | |
310 | + | let bg = bf | |
311 | + | fromBase58String(bg) | |
301 | 312 | } | |
302 | - | else if ($isInstanceOf( | |
313 | + | else if ($isInstanceOf(bf, "Unit")) | |
303 | 314 | then unit | |
304 | 315 | else throw("Match error") | |
305 | 316 | } | |
306 | 317 | ||
307 | 318 | ||
308 | - | let | |
319 | + | let bA = K("Permission denied") | |
309 | 320 | ||
310 | - | let | |
321 | + | let bB = K("Test error here") | |
311 | 322 | ||
312 | - | func | |
323 | + | func bC (bD) = if ((bD.caller == this)) | |
313 | 324 | then true | |
314 | - | else | |
325 | + | else bA | |
315 | 326 | ||
316 | 327 | ||
317 | - | func | |
318 | - | let | |
319 | - | if ($isInstanceOf( | |
328 | + | func bE (bD) = { | |
329 | + | let bf = by() | |
330 | + | if ($isInstanceOf(bf, "ByteVector")) | |
320 | 331 | then { | |
321 | - | let | |
322 | - | if (( | |
332 | + | let bF = bf | |
333 | + | if ((bD.callerPublicKey == bF)) | |
323 | 334 | then true | |
324 | - | else | |
335 | + | else bA | |
325 | 336 | } | |
326 | - | else if ($isInstanceOf( | |
327 | - | then | |
337 | + | else if ($isInstanceOf(bf, "Unit")) | |
338 | + | then bC(bD) | |
328 | 339 | else throw("Match error") | |
329 | 340 | } | |
330 | 341 | ||
331 | 342 | ||
332 | - | func | |
343 | + | func bG (bH,bI,bJ,bK,bL,bM,bN,bO,bP,bQ,bR) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR], m) | |
333 | 344 | ||
334 | 345 | ||
335 | - | func | |
346 | + | func bS (bH,bI,bJ,bK,bL,bM,bN) = makeString(["%s%s%s%s%s%s", bH, bI, bJ, bK, bL, bM, bN], m) | |
336 | 347 | ||
337 | 348 | ||
338 | - | func | |
349 | + | func bT (af,bU,bV,bW,bX,bY,bZ,ca,cb,cc,cd) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", af, bU, bV, bW, bX, toString(bY), toString(bZ), toString(ca), toString(cb), toString(cc), cd], m) | |
339 | 350 | ||
340 | 351 | ||
341 | - | func | |
352 | + | func ce (cf,cg) = makeString(["%d%d", toString(cf), toString(cg)], m) | |
342 | 353 | ||
343 | 354 | ||
344 | - | func | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | split( | |
355 | + | func ch (af) = { | |
356 | + | let ci = split(aY(az(af)), m) | |
357 | + | let an = ci[1] | |
358 | + | let ao = ci[2] | |
359 | + | split(aY(am(an, ao)), m) | |
349 | 360 | } | |
350 | 361 | ||
351 | 362 | ||
352 | - | func | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
363 | + | func cj (ck,cl) = { | |
364 | + | let cm = valueOrElse(getInteger(this, ak(ck)), 0) | |
365 | + | let cn = valueOrElse(getInteger(this, ad()), 0) | |
366 | + | let co = if ((cm == 0)) | |
356 | 367 | then { | |
357 | - | let | |
358 | - | $Tuple3( | |
368 | + | let cp = (cn + cl) | |
369 | + | $Tuple3(cp, [IntegerEntry(ad(), cp), IntegerEntry(ak(ck), cp), StringEntry(ai(cp), ck)], true) | |
359 | 370 | } | |
360 | - | else $Tuple3( | |
361 | - | | |
371 | + | else $Tuple3(cm, nil, false) | |
372 | + | co | |
362 | 373 | } | |
363 | 374 | ||
364 | 375 | ||
365 | - | func | |
366 | - | let | |
367 | - | if (containsElement( | |
376 | + | func cq (bD) = { | |
377 | + | let cr = split(valueOrElse(getString(W()), n), m) | |
378 | + | if (containsElement(cr, toBase58String(bD.callerPublicKey))) | |
368 | 379 | then true | |
369 | 380 | else { | |
370 | - | let | |
371 | - | if (( | |
381 | + | let cs = bE(bD) | |
382 | + | if ((cs == cs)) | |
372 | 383 | then true | |
373 | 384 | else throw("Strict value is not equal to itself.") | |
374 | 385 | } | |
375 | 386 | } | |
376 | 387 | ||
377 | 388 | ||
378 | - | func | |
389 | + | func ct (aZ,cu,cv) = valueOrElse(getInteger(this, aZ), valueOrElse(getInteger(this, cu), cv)) | |
379 | 390 | ||
380 | 391 | ||
381 | - | func | |
382 | - | let | |
383 | - | let | |
384 | - | if (if (( | |
392 | + | func cw (aF,aG) = { | |
393 | + | let an = getInteger(ak(aF)) | |
394 | + | let ao = getInteger(ak(aG)) | |
395 | + | if (if ((an == unit)) | |
385 | 396 | then true | |
386 | - | else ( | |
397 | + | else (ao == unit)) | |
387 | 398 | then false | |
388 | 399 | else { | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
400 | + | let cx = toString(value(an)) | |
401 | + | let cy = toString(value(ao)) | |
402 | + | let cz = getString(am(cx, cy)) | |
403 | + | let cA = getString(am(cy, cx)) | |
404 | + | let cB = if ((cz != unit)) | |
394 | 405 | then true | |
395 | - | else ( | |
396 | - | | |
406 | + | else (cA != unit) | |
407 | + | cB | |
397 | 408 | } | |
398 | 409 | } | |
399 | 410 | ||
400 | 411 | ||
401 | - | @Callable( | |
402 | - | func getSwapContractREADONLY () = $Tuple2(nil, | |
412 | + | @Callable(bD) | |
413 | + | func getSwapContractREADONLY () = $Tuple2(nil, aY(N())) | |
403 | 414 | ||
404 | 415 | ||
405 | 416 | ||
406 | - | @Callable( | |
407 | - | func getPoolLeaseConfigREADONLY ( | |
408 | - | let | |
409 | - | let | |
410 | - | if ($isInstanceOf( | |
417 | + | @Callable(bD) | |
418 | + | func getPoolLeaseConfigREADONLY (af,aT) = { | |
419 | + | let cC = { | |
420 | + | let bf = getInteger(this, aS(af, aT)) | |
421 | + | if ($isInstanceOf(bf, "Int")) | |
411 | 422 | then { | |
412 | - | let | |
413 | - | $Tuple2(true, min([100, max([0, | |
423 | + | let cD = bf | |
424 | + | $Tuple2(true, min([100, max([0, cD])])) | |
414 | 425 | } | |
415 | 426 | else { | |
416 | - | let | |
417 | - | if ($isInstanceOf( | |
427 | + | let cE = getInteger(this, aU(aT)) | |
428 | + | if ($isInstanceOf(cE, "Int")) | |
418 | 429 | then { | |
419 | - | let | |
420 | - | $Tuple2(true, min([100, max([0, | |
430 | + | let cF = cE | |
431 | + | $Tuple2(true, min([100, max([0, cF])])) | |
421 | 432 | } | |
422 | 433 | else $Tuple2(false, 0) | |
423 | 434 | } | |
424 | 435 | } | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | if ($isInstanceOf( | |
436 | + | let cG = cC._1 | |
437 | + | let cH = cC._2 | |
438 | + | let cI = { | |
439 | + | let bf = getInteger(this, aW(af, aT)) | |
440 | + | if ($isInstanceOf(bf, "Int")) | |
430 | 441 | then { | |
431 | - | let | |
432 | - | max([0, | |
442 | + | let cJ = bf | |
443 | + | max([0, cJ]) | |
433 | 444 | } | |
434 | 445 | else { | |
435 | - | let | |
436 | - | if ($isInstanceOf( | |
446 | + | let cE = getInteger(this, aX(aT)) | |
447 | + | if ($isInstanceOf(cE, "Int")) | |
437 | 448 | then { | |
438 | - | let | |
439 | - | max([0, | |
449 | + | let cK = cE | |
450 | + | max([0, cK]) | |
440 | 451 | } | |
441 | 452 | else 0 | |
442 | 453 | } | |
443 | 454 | } | |
444 | - | let | |
445 | - | then $Tuple3(valueOrElse(getString(this, | |
455 | + | let cL = if ((aT == "WAVES")) | |
456 | + | then $Tuple3(valueOrElse(getString(this, aP()), ""), getString(this, valueOrElse(aQ(), "")), c) | |
446 | 457 | else $Tuple3("", "", 0) | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | $Tuple2(nil, $Tuple7( | |
458 | + | let cM = cL._1 | |
459 | + | let cN = cL._2 | |
460 | + | let cO = cL._3 | |
461 | + | let cP = valueOrElse(getString(this, aR()), "") | |
462 | + | $Tuple2(nil, $Tuple7(cG, cH, cI, cM, cN, cO, cP)) | |
452 | 463 | } | |
453 | 464 | ||
454 | 465 | ||
455 | 466 | ||
456 | - | @Callable( | |
457 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
458 | - | then ( | |
467 | + | @Callable(bD) | |
468 | + | func getLpAssetFromPoolAssetsREADONLY (cQ,cR) = if (if ((cQ == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
469 | + | then (cR == "WAVES") | |
459 | 470 | else false) | |
460 | 471 | then $Tuple2(nil, unit) | |
461 | 472 | else { | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
473 | + | let cS = value(getInteger(this, ak(cQ))) | |
474 | + | let cT = value(getInteger(this, ak(cR))) | |
475 | + | let cU = getString(this, av(toString(cS), toString(cT))) | |
476 | + | let cV = if ((cU == unit)) | |
466 | 477 | then unit | |
467 | - | else drop(value( | |
468 | - | $Tuple2(nil, | |
478 | + | else drop(value(cU), 4) | |
479 | + | $Tuple2(nil, cV) | |
469 | 480 | } | |
470 | 481 | ||
471 | 482 | ||
472 | 483 | ||
473 | - | @Callable( | |
474 | - | func getPoolAddressFromLpAssetREADONLY ( | |
484 | + | @Callable(bD) | |
485 | + | func getPoolAddressFromLpAssetREADONLY (cW) = $Tuple2(nil, valueOrElse(getString(this, aD(cW)), "")) | |
475 | 486 | ||
476 | 487 | ||
477 | 488 | ||
478 | - | @Callable( | |
479 | - | func constructor ( | |
480 | - | let | |
481 | - | if (( | |
482 | - | then [StringEntry( | |
489 | + | @Callable(bD) | |
490 | + | func constructor (cX,cY,bJ,bK,bL,bM,cZ,da) = { | |
491 | + | let db = bE(bD) | |
492 | + | if ((db == db)) | |
493 | + | then [StringEntry(O(), bS(cX, cY, bJ, bK, bL, bM, cZ)), IntegerEntry(ab(), da)] | |
483 | 494 | else throw("Strict value is not equal to itself.") | |
484 | 495 | } | |
485 | 496 | ||
486 | 497 | ||
487 | 498 | ||
488 | - | @Callable( | |
489 | - | func constructorV2 ( | |
490 | - | let | |
491 | - | if (( | |
499 | + | @Callable(bD) | |
500 | + | func constructorV2 (dc) = { | |
501 | + | let db = bE(bD) | |
502 | + | if ((db == db)) | |
492 | 503 | then { | |
493 | - | let | |
494 | - | if (( | |
495 | - | then [StringEntry( | |
504 | + | let dd = addressFromPublicKey(fromBase58String(dc)) | |
505 | + | if ((dd == dd)) | |
506 | + | then [StringEntry(R(), dc)] | |
496 | 507 | else throw("Strict value is not equal to itself.") | |
497 | 508 | } | |
498 | 509 | else throw("Strict value is not equal to itself.") | |
500 | 511 | ||
501 | 512 | ||
502 | 513 | ||
503 | - | @Callable( | |
504 | - | func constructorV3 ( | |
505 | - | let | |
506 | - | if (( | |
514 | + | @Callable(bD) | |
515 | + | func constructorV3 (bO,bP,bQ,bR) = { | |
516 | + | let db = bE(bD) | |
517 | + | if ((db == db)) | |
507 | 518 | then { | |
508 | - | let | |
509 | - | [StringEntry( | |
519 | + | let bt = split(aY(O()), m) | |
520 | + | [StringEntry(O(), bG(bt[1], bt[2], bt[3], bt[4], bt[5], bt[6], bt[7], bO, bP, bQ, bR))] | |
510 | 521 | } | |
511 | 522 | else throw("Strict value is not equal to itself.") | |
512 | 523 | } | |
513 | 524 | ||
514 | 525 | ||
515 | 526 | ||
516 | - | @Callable( | |
517 | - | func constructorV4 ( | |
518 | - | let | |
519 | - | if (( | |
520 | - | then [StringEntry( | |
527 | + | @Callable(bD) | |
528 | + | func constructorV4 (de,df) = { | |
529 | + | let db = bE(bD) | |
530 | + | if ((db == db)) | |
531 | + | then [StringEntry(S(), de), StringEntry(T(), makeString(df, m))] | |
521 | 532 | else throw("Strict value is not equal to itself.") | |
522 | 533 | } | |
523 | 534 | ||
524 | 535 | ||
525 | 536 | ||
526 | - | @Callable( | |
527 | - | func constructorV5 ( | |
528 | - | let | |
529 | - | if (( | |
530 | - | then [StringEntry( | |
537 | + | @Callable(bD) | |
538 | + | func constructorV5 (dg) = { | |
539 | + | let db = bE(bD) | |
540 | + | if ((db == db)) | |
541 | + | then [StringEntry(X(), dg)] | |
531 | 542 | else throw("Strict value is not equal to itself.") | |
532 | 543 | } | |
533 | 544 | ||
534 | 545 | ||
535 | 546 | ||
536 | - | @Callable( | |
537 | - | func constructorV6 ( | |
538 | - | let | |
547 | + | @Callable(bD) | |
548 | + | func constructorV6 (dh,di) = { | |
549 | + | let dj = [bE(bD), if ((addressFromString(dh) != unit)) | |
539 | 550 | then true | |
540 | 551 | else "invalid voting emission contract address"] | |
541 | - | if (( | |
542 | - | then [StringEntry( | |
552 | + | if ((dj == dj)) | |
553 | + | then [StringEntry(Y(), dh), StringEntry(aa(), makeString(di, m))] | |
543 | 554 | else throw("Strict value is not equal to itself.") | |
544 | 555 | } | |
545 | 556 | ||
546 | 557 | ||
547 | 558 | ||
548 | - | @Callable( | |
549 | - | func setAdmins ( | |
550 | - | let | |
551 | - | if (( | |
552 | - | then [StringEntry( | |
559 | + | @Callable(bD) | |
560 | + | func setAdmins (dk) = { | |
561 | + | let db = bE(bD) | |
562 | + | if ((db == db)) | |
563 | + | then [StringEntry(W(), makeString(dk, m))] | |
553 | 564 | else throw("Strict value is not equal to itself.") | |
554 | 565 | } | |
555 | 566 | ||
556 | 567 | ||
557 | 568 | ||
558 | - | @Callable( | |
559 | - | func activateNewPool ( | |
560 | - | let | |
561 | - | if (( | |
562 | - | then if (isDefined(getString( | |
563 | - | then | |
569 | + | @Callable(bD) | |
570 | + | func activateNewPool (af,bW,bX,dl,dm,dn,cd,do) = { | |
571 | + | let db = cq(bD) | |
572 | + | if ((db == db)) | |
573 | + | then if (isDefined(getString(az(af)))) | |
574 | + | then K((("Pool address " + af) + " already registered.")) | |
564 | 575 | else { | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
576 | + | let dp = cj(bW, 1) | |
577 | + | let dq = dp._1 | |
578 | + | let dr = cj(bX, if (dp._3) | |
568 | 579 | then 2 | |
569 | 580 | else 1) | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | if ( | |
575 | - | then | |
581 | + | let ds = dr._1 | |
582 | + | let dt = valueOrErrorMessage(scriptHash(addressFromStringValue(af)), ("No script has been found on pool account " + af)) | |
583 | + | let du = getBinaryValue(Q()) | |
584 | + | let dv = cw(bW, bX) | |
585 | + | if (dv) | |
586 | + | then K((((("Pool " + bW) + "/") + bX) + " has already been activated.")) | |
576 | 587 | else { | |
577 | - | let | |
578 | - | let | |
579 | - | then | |
580 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
581 | - | let | |
582 | - | then | |
583 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | if (( | |
589 | - | then if (( | |
590 | - | then | |
588 | + | let dw = value(getString(this, am(toString(dq), toString(ds)))) | |
589 | + | let dx = if ((bW == "WAVES")) | |
590 | + | then l | |
591 | + | else pow(10, 0, value(assetInfo(fromBase58String(bW))).decimals, 0, 0, DOWN) | |
592 | + | let dy = if ((bX == "WAVES")) | |
593 | + | then l | |
594 | + | else pow(10, 0, value(assetInfo(fromBase58String(bX))).decimals, 0, 0, DOWN) | |
595 | + | let dz = Issue(dl, dm, 1, 8, true) | |
596 | + | let bV = calculateAssetId(dz) | |
597 | + | let dA = toBase58String(bV) | |
598 | + | let dB = invoke(addressFromStringValue(af), "activate", [bW, bX], nil) | |
599 | + | if ((dB == dB)) | |
600 | + | then if ((dB != "success")) | |
601 | + | then K("Pool initialisation error happened.") | |
591 | 602 | else { | |
592 | - | let | |
593 | - | let | |
594 | - | if (( | |
603 | + | let dg = addressFromStringValue(aY(X())) | |
604 | + | let dC = invoke(dg, "createOrUpdate", [dA, dl, false], nil) | |
605 | + | if ((dC == dC)) | |
595 | 606 | then { | |
596 | - | let | |
597 | - | if (( | |
607 | + | let dD = invoke(dg, "addLabel", [dA, h], nil) | |
608 | + | if ((dD == dD)) | |
598 | 609 | then { | |
599 | - | let | |
600 | - | if (( | |
610 | + | let dE = invoke(dg, "setLogo", [dA, do], nil) | |
611 | + | if ((dE == dE)) | |
601 | 612 | then { | |
602 | - | let | |
603 | - | if (( | |
613 | + | let dF = invoke(dg, "addAssetsLink", [bW, bX, dA], nil) | |
614 | + | if ((dF == dF)) | |
604 | 615 | then { | |
605 | - | let | |
606 | - | if (( | |
607 | - | then $Tuple2((( | |
616 | + | let dG = invoke(dg, "increaseAssetPoolsNumber", [bW], nil) | |
617 | + | if ((dG == dG)) | |
618 | + | then $Tuple2(((dp._2 ++ dr._2) ++ [dz, Burn(bV, 1), StringEntry(am(toString(dq), toString(ds)), bT(af, toString(o), dA, bW, bX, dx, dy, dq, ds, l, cd)), StringEntry(at(dA), ce(dq, ds)), StringEntry(av(toString(dq), toString(ds)), ("%s__" + dA)), StringEntry(az(af), ce(dq, ds)), StringEntry(aB(dq, ds), af), StringEntry(aD(dA), af), StringEntry(aC(af), dA), IntegerEntry(ae(af), dn), IntegerEntry(ay(af), i)]), dA) | |
608 | 619 | else throw("Strict value is not equal to itself.") | |
609 | 620 | } | |
610 | 621 | else throw("Strict value is not equal to itself.") | |
623 | 634 | ||
624 | 635 | ||
625 | 636 | ||
626 | - | @Callable( | |
627 | - | func managePool ( | |
628 | - | let | |
629 | - | if (( | |
637 | + | @Callable(bD) | |
638 | + | func managePool (af,dH) = { | |
639 | + | let db = bE(bD) | |
640 | + | if ((db == db)) | |
630 | 641 | then { | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | [StringEntry( | |
642 | + | let dI = ch(af) | |
643 | + | let bU = dI[w] | |
644 | + | let dA = dI[x] | |
645 | + | let bW = dI[y] | |
646 | + | let bX = dI[z] | |
647 | + | let dx = parseIntValue(dI[A]) | |
648 | + | let dy = parseIntValue(dI[B]) | |
649 | + | let dq = parseIntValue(dI[C]) | |
650 | + | let ds = parseIntValue(dI[D]) | |
651 | + | let dJ = parseIntValue(dI[E]) | |
652 | + | let cd = dI[F] | |
653 | + | [StringEntry(am(toString(dq), toString(ds)), bT(af, toString(dH), dA, bW, bX, dx, dy, dq, ds, dJ, cd))] | |
643 | 654 | } | |
644 | 655 | else throw("Strict value is not equal to itself.") | |
645 | 656 | } | |
646 | 657 | ||
647 | 658 | ||
648 | 659 | ||
649 | - | @Callable( | |
650 | - | func emit ( | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | if ((0 >= | |
660 | + | @Callable(bD) | |
661 | + | func emit (dK) = { | |
662 | + | let dL = bD.caller | |
663 | + | let dM = bD.originCaller | |
664 | + | let dN = valueOrErrorMessage(getString(aC(toString(dL))), "Invalid LP address called me.") | |
665 | + | let dO = fromBase58String(dN) | |
666 | + | let df = split(valueOrElse(getString(T()), n), m) | |
667 | + | let de = addressFromStringValue(valueOrErrorMessage(getString(S()), "Legacy factory contract does not exists.")) | |
668 | + | if ((0 >= dK)) | |
658 | 669 | then nil | |
659 | - | else if (containsElement( | |
660 | - | then $Tuple2(nil, | |
661 | - | else $Tuple2([Reissue( | |
670 | + | else if (containsElement(df, toString(dL))) | |
671 | + | then $Tuple2(nil, de) | |
672 | + | else $Tuple2([Reissue(dO, dK, true), ScriptTransfer(bD.caller, dK, dO)], "success") | |
662 | 673 | } | |
663 | 674 | ||
664 | 675 | ||
665 | 676 | ||
666 | - | @Callable( | |
667 | - | func burn ( | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | if (( | |
675 | - | then | |
676 | - | else if (( | |
677 | - | then | |
677 | + | @Callable(bD) | |
678 | + | func burn (dP) = { | |
679 | + | let dL = bD.caller | |
680 | + | let dM = bD.originCaller | |
681 | + | let dQ = value(bD.payments[0]) | |
682 | + | let dR = value(dQ.amount) | |
683 | + | let dS = toBase58String(value(dQ.assetId)) | |
684 | + | let dT = valueOrErrorMessage(getString(aC(toString(dL))), "Invalid LP address called me.") | |
685 | + | if ((dS != dT)) | |
686 | + | then K("Invalid asset passed.") | |
687 | + | else if ((dP != dR)) | |
688 | + | then K("Invalid amount passed.") | |
678 | 689 | else { | |
679 | - | let | |
680 | - | $Tuple2([Burn( | |
690 | + | let dO = fromBase58String(dT) | |
691 | + | $Tuple2([Burn(dO, dP)], "success") | |
681 | 692 | } | |
682 | 693 | } | |
683 | 694 | ||
684 | 695 | ||
685 | 696 | ||
686 | - | @Callable( | |
687 | - | func modifyWeight ( | |
688 | - | let | |
697 | + | @Callable(bD) | |
698 | + | func modifyWeight (bV,dU) = { | |
699 | + | let db = if ((toBase58String(bD.caller.bytes) == valueOrElse(getString(this, Y()), ""))) | |
689 | 700 | then true | |
690 | - | else | |
691 | - | if (( | |
701 | + | else bE(bD) | |
702 | + | if ((db == db)) | |
692 | 703 | then { | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | if (( | |
704 | + | let aA = aY(aD(bV)) | |
705 | + | let dV = ae(aA) | |
706 | + | let dW = ae(g) | |
707 | + | let dX = valueOrElse(getInteger(dW), 0) | |
708 | + | let dn = valueOrElse(getInteger(dV), 0) | |
709 | + | let dY = dU | |
710 | + | let bt = split(aY(O()), m) | |
711 | + | let cX = bv(bt) | |
712 | + | let dZ = invoke(cX, "onModifyWeight", [bV, aA], nil) | |
713 | + | if ((dZ == dZ)) | |
703 | 714 | then { | |
704 | - | let | |
715 | + | let ea = if ((dX == 0)) | |
705 | 716 | then nil | |
706 | - | else [IntegerEntry( | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
717 | + | else [IntegerEntry(dW, 0)] | |
718 | + | let eb = ag(aA, 0) | |
719 | + | let ec = getInteger(eb) | |
720 | + | let ed = if ((ec == unit)) | |
710 | 721 | then nil | |
711 | - | else [DeleteEntry( | |
712 | - | (([IntegerEntry( | |
722 | + | else [DeleteEntry(eb)] | |
723 | + | (([IntegerEntry(dV, dY)] ++ ea) ++ ed) | |
713 | 724 | } | |
714 | 725 | else throw("Strict value is not equal to itself.") | |
715 | 726 | } | |
718 | 729 | ||
719 | 730 | ||
720 | 731 | ||
721 | - | @Callable( | |
722 | - | func modifyWeights ( | |
723 | - | let | |
724 | - | if (( | |
732 | + | @Callable(bD) | |
733 | + | func modifyWeights (ee,ef,eg,eh) = { | |
734 | + | let db = bE(bD) | |
735 | + | if ((db == db)) | |
725 | 736 | then { | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | if ((0 >= | |
741 | - | then | |
742 | - | else if ((0 >= | |
743 | - | then | |
737 | + | let ei = ((5 * f) / 100) | |
738 | + | let ej = ((5 * f) / 100) | |
739 | + | let ek = ((5 * f) / 100) | |
740 | + | let bt = split(aY(O()), m) | |
741 | + | let el = bv(bt) | |
742 | + | let em = bw(bt) | |
743 | + | let en = ae(ee) | |
744 | + | let eo = ae(ef) | |
745 | + | let ep = ae(eg) | |
746 | + | let eq = ae(eh) | |
747 | + | let er = bb(en) | |
748 | + | let es = bb(eo) | |
749 | + | let et = (er - ek) | |
750 | + | let eu = (es - ek) | |
751 | + | if ((0 >= et)) | |
752 | + | then K(("invalid btcWeightNew: " + toString(et))) | |
753 | + | else if ((0 >= eu)) | |
754 | + | then K(("invalid ethWeightNew: " + toString(eu))) | |
744 | 755 | else { | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | if (( | |
756 | + | let ev = aY(aC(ee)) | |
757 | + | let ew = aY(aC(ef)) | |
758 | + | let ex = aY(aC(eg)) | |
759 | + | let ey = aY(aC(eh)) | |
760 | + | let ez = invoke(el, "onModifyWeight", [ev, ee], nil) | |
761 | + | if ((ez == ez)) | |
751 | 762 | then { | |
752 | - | let | |
753 | - | if (( | |
763 | + | let eA = invoke(el, "onModifyWeight", [ew, ef], nil) | |
764 | + | if ((eA == eA)) | |
754 | 765 | then { | |
755 | - | let | |
756 | - | if (( | |
766 | + | let eB = invoke(el, "onModifyWeight", [ex, eg], nil) | |
767 | + | if ((eB == eB)) | |
757 | 768 | then { | |
758 | - | let | |
759 | - | if (( | |
760 | - | then [IntegerEntry( | |
769 | + | let eC = invoke(el, "onModifyWeight", [ey, eh], nil) | |
770 | + | if ((eC == eC)) | |
771 | + | then [IntegerEntry(en, et), IntegerEntry(eo, eu), IntegerEntry(ep, ei), IntegerEntry(eq, ej), IntegerEntry(ag(ee, 0), er), IntegerEntry(ag(ef, 0), es), IntegerEntry(ag(eg, 0), ei), IntegerEntry(ag(eh, 0), ej)] | |
761 | 772 | else throw("Strict value is not equal to itself.") | |
762 | 773 | } | |
763 | 774 | else throw("Strict value is not equal to itself.") | |
772 | 783 | ||
773 | 784 | ||
774 | 785 | ||
775 | - | @Callable( | |
776 | - | func checkWxEmissionPoolLabel ( | |
777 | - | let | |
778 | - | let | |
779 | - | if ($isInstanceOf( | |
786 | + | @Callable(bD) | |
787 | + | func checkWxEmissionPoolLabel (aF,aG) = { | |
788 | + | let eD = { | |
789 | + | let bf = getBoolean(aE(aF, aG)) | |
790 | + | if ($isInstanceOf(bf, "Boolean")) | |
780 | 791 | then { | |
781 | - | let | |
782 | - | | |
792 | + | let cJ = bf | |
793 | + | cJ | |
783 | 794 | } | |
784 | 795 | else false | |
785 | 796 | } | |
786 | - | $Tuple2(nil, | |
797 | + | $Tuple2(nil, eD) | |
787 | 798 | } | |
788 | 799 | ||
789 | 800 | ||
790 | 801 | ||
791 | - | @Callable( | |
792 | - | func setWxEmissionPoolLabel ( | |
793 | - | let | |
794 | - | if (( | |
795 | - | then $Tuple2([BooleanEntry( | |
802 | + | @Callable(bD) | |
803 | + | func setWxEmissionPoolLabel (aF,aG) = { | |
804 | + | let db = cq(bD) | |
805 | + | if ((db == db)) | |
806 | + | then $Tuple2([BooleanEntry(aE(aF, aG), true)], unit) | |
796 | 807 | else throw("Strict value is not equal to itself.") | |
797 | 808 | } | |
798 | 809 | ||
799 | 810 | ||
800 | 811 | ||
801 | - | @Callable( | |
802 | - | func deleteWxEmissionPoolLabel ( | |
803 | - | let | |
812 | + | @Callable(bD) | |
813 | + | func deleteWxEmissionPoolLabel (aF,aG) = { | |
814 | + | let db = if ((bD.caller == this)) | |
804 | 815 | then true | |
805 | - | else | |
806 | - | if (( | |
807 | - | then $Tuple2([DeleteEntry( | |
816 | + | else cq(bD) | |
817 | + | if ((db == db)) | |
818 | + | then $Tuple2([DeleteEntry(aE(aF, aG))], unit) | |
808 | 819 | else throw("Strict value is not equal to itself.") | |
809 | 820 | } | |
810 | 821 | ||
811 | 822 | ||
812 | 823 | ||
813 | - | @Callable( | |
814 | - | func onVerificationLoss ( | |
815 | - | let | |
824 | + | @Callable(bD) | |
825 | + | func onVerificationLoss (aT) = { | |
826 | + | let db = if ((toBase58String(bD.caller.bytes) == valueOrElse(getString(this, X()), ""))) | |
816 | 827 | then true | |
817 | - | else | |
818 | - | if (( | |
828 | + | else bE(bD) | |
829 | + | if ((db == db)) | |
819 | 830 | then { | |
820 | - | let | |
821 | - | let | |
831 | + | let di = bx() | |
832 | + | let eE = if ((size(di) > 0)) | |
822 | 833 | then true | |
823 | - | else | |
824 | - | if (( | |
834 | + | else K("invalid price assets") | |
835 | + | if ((eE == eE)) | |
825 | 836 | then { | |
826 | - | func | |
827 | - | let | |
828 | - | if (( | |
837 | + | func eF (eG,eH) = { | |
838 | + | let cD = invoke(this, "deleteWxEmissionPoolLabel", [aT, eH], nil) | |
839 | + | if ((cD == cD)) | |
829 | 840 | then unit | |
830 | 841 | else throw("Strict value is not equal to itself.") | |
831 | 842 | } | |
832 | 843 | ||
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | func | |
838 | - | then | |
839 | - | else | |
844 | + | let eI = { | |
845 | + | let eJ = di | |
846 | + | let eK = size(eJ) | |
847 | + | let eL = unit | |
848 | + | func eM (eN,eO) = if ((eO >= eK)) | |
849 | + | then eN | |
850 | + | else eF(eN, eJ[eO]) | |
840 | 851 | ||
841 | - | func | |
842 | - | then | |
852 | + | func eP (eN,eO) = if ((eO >= eK)) | |
853 | + | then eN | |
843 | 854 | else throw("List size exceeds 11") | |
844 | 855 | ||
845 | - | | |
856 | + | eP(eM(eM(eM(eM(eM(eM(eM(eM(eM(eM(eM(eL, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11) | |
846 | 857 | } | |
847 | - | if (( | |
858 | + | if ((eI == eI)) | |
848 | 859 | then $Tuple2(nil, unit) | |
849 | 860 | else throw("Strict value is not equal to itself.") | |
850 | 861 | } | |
855 | 866 | ||
856 | 867 | ||
857 | 868 | ||
858 | - | @Callable( | |
859 | - | func isPoolOneTokenOperationsDisabledREADONLY ( | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | $Tuple2(nil, if ( | |
869 | + | @Callable(bD) | |
870 | + | func isPoolOneTokenOperationsDisabledREADONLY (af) = { | |
871 | + | let dI = ch(af) | |
872 | + | let aq = $Tuple2(parseIntValue(dI[C]), parseIntValue(dI[D])) | |
873 | + | let eQ = valueOrElse(getBoolean(ap(aq)), false) | |
874 | + | let eR = valueOrElse(getBoolean(as()), false) | |
875 | + | $Tuple2(nil, if (eR) | |
865 | 876 | then true | |
866 | - | else | |
877 | + | else eQ) | |
867 | 878 | } | |
868 | 879 | ||
869 | 880 | ||
870 | 881 | ||
871 | - | @Callable( | |
872 | - | func getInFeeREADONLY ( | |
873 | - | let | |
874 | - | $Tuple2(nil, | |
882 | + | @Callable(bD) | |
883 | + | func getInFeeREADONLY (af) = { | |
884 | + | let eS = ct(aH(af), aI(), 0) | |
885 | + | $Tuple2(nil, eS) | |
875 | 886 | } | |
876 | 887 | ||
877 | 888 | ||
878 | 889 | ||
879 | - | @Callable( | |
880 | - | func getOutFeeREADONLY ( | |
881 | - | let | |
882 | - | $Tuple2(nil, | |
890 | + | @Callable(bD) | |
891 | + | func getOutFeeREADONLY (af) = { | |
892 | + | let eS = ct(aJ(af), aK(), fraction(10, b, 10000)) | |
893 | + | $Tuple2(nil, eS) | |
883 | 894 | } | |
884 | 895 | ||
885 | 896 | ||
886 | 897 | ||
887 | - | @Callable( | |
888 | - | func poolInfoREADONLY ( | |
889 | - | let | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | then isDefined( | |
898 | + | @Callable(bD) | |
899 | + | func poolInfoREADONLY (eT,eU) = { | |
900 | + | let eV = getInteger(this, ak(eT)) | |
901 | + | let eW = getInteger(this, ak(eU)) | |
902 | + | let eX = getString(this, aB(value(eV), value(eW))) | |
903 | + | let eY = getString(this, aC(value(eX))) | |
904 | + | let dv = if (if (isDefined(eV)) | |
905 | + | then isDefined(eW) | |
895 | 906 | else false) | |
896 | - | then isDefined( | |
907 | + | then isDefined(eX) | |
897 | 908 | else false | |
898 | - | let | |
899 | - | then $Tuple2(addressFromStringValue(value( | |
909 | + | let eZ = if (dv) | |
910 | + | then $Tuple2(addressFromStringValue(value(eX)), bc(value(eY))) | |
900 | 911 | else unit | |
901 | - | $Tuple2(nil, | |
912 | + | $Tuple2(nil, eZ) | |
902 | 913 | } | |
903 | 914 | ||
904 | 915 | ||
905 | 916 | ||
906 | - | @Callable( | |
907 | - | func getPoolStatusREADONLY ( | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | $Tuple2(nil, parseIntValue( | |
917 | + | @Callable(bD) | |
918 | + | func getPoolStatusREADONLY (af) = { | |
919 | + | let ci = split(aY(az(af)), m) | |
920 | + | let an = ci[1] | |
921 | + | let ao = ci[2] | |
922 | + | let cz = split(aY(am(an, ao)), m) | |
923 | + | $Tuple2(nil, parseIntValue(cz[w])) | |
913 | 924 | } | |
914 | 925 | ||
915 | 926 | ||
916 | 927 | ||
917 | - | @Callable( | |
918 | - | func getPoolConfigREADONLY ( | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | $Tuple2(nil, | |
928 | + | @Callable(bD) | |
929 | + | func getPoolConfigREADONLY (af) = { | |
930 | + | let ci = split(aY(az(af)), m) | |
931 | + | let an = ci[1] | |
932 | + | let ao = ci[2] | |
933 | + | let cz = split(aY(am(an, ao)), m) | |
934 | + | $Tuple2(nil, cz) | |
924 | 935 | } | |
925 | 936 | ||
926 | 937 | ||
927 | 938 | ||
928 | - | @Callable( | |
929 | - | func getPoolConfigByLpAssetIdREADONLY ( | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | $Tuple2(nil, | |
939 | + | @Callable(bD) | |
940 | + | func getPoolConfigByLpAssetIdREADONLY (dA) = { | |
941 | + | let ci = split(aY(at(dA)), m) | |
942 | + | let an = ci[1] | |
943 | + | let ao = ci[2] | |
944 | + | let cz = split(aY(am(an, ao)), m) | |
945 | + | $Tuple2(nil, cz) | |
935 | 946 | } | |
936 | 947 | ||
937 | 948 | ||
938 | 949 | ||
939 | - | @Callable( | |
940 | - | func poolExistsREADONLY ( | |
950 | + | @Callable(bD) | |
951 | + | func poolExistsREADONLY (aF,aG) = $Tuple2(nil, cw(aF, aG)) | |
941 | 952 | ||
942 | 953 | ||
943 | 954 | ||
944 | - | @Callable( | |
945 | - | func skipOrderValidationREADONLY ( | |
955 | + | @Callable(bD) | |
956 | + | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aL(af)), false)) | |
946 | 957 | ||
947 | 958 | ||
948 | 959 | ||
949 | - | @Callable( | |
950 | - | func getChangeAmpConfigREADONLY ( | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | $Tuple2(nil, [ | |
960 | + | @Callable(bD) | |
961 | + | func getChangeAmpConfigREADONLY (af) = { | |
962 | + | let fa = getIntegerValue(aM(af)) | |
963 | + | let fb = getIntegerValue(aN(af)) | |
964 | + | let fc = getIntegerValue(aO(af)) | |
965 | + | $Tuple2(nil, [fa, fb, fc]) | |
955 | 966 | } | |
956 | 967 | ||
957 | 968 | ||
958 | 969 | ||
959 | - | @Callable( | |
960 | - | func getPoolWeightREADONLY ( | |
961 | - | let | |
962 | - | let | |
963 | - | $Tuple2(nil, | |
970 | + | @Callable(bD) | |
971 | + | func getPoolWeightREADONLY (bV) = { | |
972 | + | let af = aY(aD(bV)) | |
973 | + | let fd = valueOrElse(getInteger(ae(af)), 0) | |
974 | + | $Tuple2(nil, fd) | |
964 | 975 | } | |
965 | 976 | ||
966 | 977 | ||
967 | - | @Verifier(eZ) | |
968 | - | func fa () = { | |
969 | - | let fb = { | |
970 | - | let ba = bt() | |
971 | - | if ($isInstanceOf(ba, "ByteVector")) | |
978 | + | ||
979 | + | @Callable(bD) | |
980 | + | func deletePool (aA) = { | |
981 | + | let db = if (bE(bD)) | |
982 | + | then true | |
983 | + | else bA | |
984 | + | if ((db == db)) | |
985 | + | then { | |
986 | + | let ci = split(aY(az(aA)), m) | |
987 | + | let an = parseIntValue(ci[1]) | |
988 | + | let ao = parseIntValue(ci[2]) | |
989 | + | let aF = getStringValue(ai(an)) | |
990 | + | let aG = getStringValue(ai(ao)) | |
991 | + | let bV = aY(aC(aA)) | |
992 | + | let fe = addressFromStringValue(getStringValue(Z())) | |
993 | + | let ff = invoke(fe, "deletePool", [aF, aG], nil) | |
994 | + | if ((ff == ff)) | |
995 | + | then { | |
996 | + | let dh = addressFromStringValue(getStringValue(Y())) | |
997 | + | let fg = invoke(dh, "deletePool", [aF, aG], nil) | |
998 | + | if ((fg == fg)) | |
999 | + | then [DeleteEntry(aC(aA)), DeleteEntry(az(aA)), DeleteEntry(av(toString(an), toString(ao))), DeleteEntry(aB(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(at(bV)), DeleteEntry(aD(bV)), DeleteEntry(aE(aF, aG)), DeleteEntry(ae(aA)), DeleteEntry(ay(aA)), DeleteEntry(aH(aA)), DeleteEntry(aJ(aA)), DeleteEntry(aL(aA)), DeleteEntry(aM(aA)), DeleteEntry(aN(aA)), DeleteEntry(aO(aA))] | |
1000 | + | else throw("Strict value is not equal to itself.") | |
1001 | + | } | |
1002 | + | else throw("Strict value is not equal to itself.") | |
1003 | + | } | |
1004 | + | else throw("Strict value is not equal to itself.") | |
1005 | + | } | |
1006 | + | ||
1007 | + | ||
1008 | + | @Verifier(fh) | |
1009 | + | func fi () = { | |
1010 | + | let fj = { | |
1011 | + | let bf = by() | |
1012 | + | if ($isInstanceOf(bf, "ByteVector")) | |
972 | 1013 | then { | |
973 | - | let | |
974 | - | | |
1014 | + | let bF = bf | |
1015 | + | bF | |
975 | 1016 | } | |
976 | - | else if ($isInstanceOf( | |
977 | - | then | |
1017 | + | else if ($isInstanceOf(bf, "Unit")) | |
1018 | + | then fh.senderPublicKey | |
978 | 1019 | else throw("Match error") | |
979 | 1020 | } | |
980 | - | sigVerify( | |
1021 | + | sigVerify(fh.bodyBytes, fh.proofs[0], fj) | |
981 | 1022 | } | |
982 | 1023 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 1000000000000 | |
9 | 9 | ||
10 | 10 | let d = 18 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(1000000000000000000) | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = "GWXvirtualPOOL" | |
17 | 17 | ||
18 | 18 | let h = "POOLS_LP" | |
19 | 19 | ||
20 | 20 | let i = 2000000 | |
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = "factory_v2.ride" | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = ((100 * 1000) * 1000) | |
27 | 27 | ||
28 | - | let m = "" | |
28 | + | let m = "__" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = "" | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 2 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 3 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 4 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 1 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 2 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 3 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 1 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 2 | |
49 | 49 | ||
50 | - | let x = | |
50 | + | let x = 3 | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = 4 | |
53 | 53 | ||
54 | - | let z = | |
54 | + | let z = 5 | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = 6 | |
57 | 57 | ||
58 | - | let B = | |
58 | + | let B = 7 | |
59 | 59 | ||
60 | - | let C = | |
60 | + | let C = 8 | |
61 | 61 | ||
62 | - | let D = | |
62 | + | let D = 9 | |
63 | 63 | ||
64 | - | let E = | |
64 | + | let E = 10 | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = 11 | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = "WX_EMISSION" | |
69 | 69 | ||
70 | - | func H () = "%s__allowedLpScriptHash" | |
70 | + | let H = [G] | |
71 | + | ||
72 | + | func I (J) = makeString([k, ": ", J], "") | |
71 | 73 | ||
72 | 74 | ||
73 | - | func | |
75 | + | func K (J) = throw(I(J)) | |
74 | 76 | ||
75 | 77 | ||
76 | - | func | |
78 | + | func L () = "%s__allowedLpScriptHash" | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func M () = "%s__allowedLpStableScriptHash" | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
84 | + | func N () = "%s__swapContract" | |
83 | 85 | ||
84 | 86 | ||
85 | - | func | |
87 | + | func O () = "%s__factoryConfig" | |
86 | 88 | ||
87 | 89 | ||
88 | - | func | |
90 | + | func P () = "%s__lpTokensList" | |
89 | 91 | ||
90 | 92 | ||
91 | - | func | |
93 | + | func Q () = "%s%s__pool__scriptHash" | |
92 | 94 | ||
93 | 95 | ||
94 | - | func | |
96 | + | func R () = "%s%s__matcher__publicKey" | |
95 | 97 | ||
96 | 98 | ||
97 | - | func | |
99 | + | func S () = "%s__legacyFactoryContract" | |
98 | 100 | ||
99 | 101 | ||
100 | - | func | |
102 | + | func T () = "%s__legacyPools" | |
101 | 103 | ||
102 | 104 | ||
103 | - | func | |
105 | + | func U () = "%s__managerPublicKey" | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
108 | + | func V () = "%s__managerVaultAddress" | |
107 | 109 | ||
108 | 110 | ||
109 | - | func | |
111 | + | func W () = "%s__adminPubKeys" | |
110 | 112 | ||
111 | 113 | ||
112 | - | func | |
114 | + | func X () = "%s__assetsStoreContract" | |
113 | 115 | ||
114 | 116 | ||
115 | - | func | |
117 | + | func Y () = "%s__votingEmissionContract" | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func Z () = "%s__userPoolsContract" | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
123 | + | func aa () = makeString(["%s", "priceAssets"], m) | |
122 | 124 | ||
123 | 125 | ||
124 | - | func | |
126 | + | func ab () = "%s__priceDecimals" | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func ac () = "%s__shutdown" | |
128 | 130 | ||
129 | 131 | ||
130 | - | func ad ( | |
132 | + | func ad () = "%s__nextInternalAssetId" | |
131 | 133 | ||
132 | 134 | ||
133 | - | func | |
135 | + | func ae (af) = ("%s%s__poolWeight__" + af) | |
134 | 136 | ||
135 | 137 | ||
136 | - | func | |
138 | + | func ag (af,ah) = ((("%s%s__poolWeight__" + af) + "__") + toString(ah)) | |
137 | 139 | ||
138 | 140 | ||
139 | - | func ak (al) = { | |
140 | - | let am = al | |
141 | - | let ai = am._1 | |
142 | - | let aj = am._2 | |
143 | - | makeString(["%d%d%s", toString(ai), toString(aj), "oneTokenOperationsDisabled"], l) | |
141 | + | func ai (aj) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(aj)) | |
142 | + | ||
143 | + | ||
144 | + | func ak (al) = ("%s%s%s__mappings__baseAsset2internalId__" + al) | |
145 | + | ||
146 | + | ||
147 | + | func am (an,ao) = (((("%d%d%s__" + an) + "__") + ao) + "__config") | |
148 | + | ||
149 | + | ||
150 | + | func ap (aq) = { | |
151 | + | let ar = aq | |
152 | + | let an = ar._1 | |
153 | + | let ao = ar._2 | |
154 | + | makeString(["%d%d%s", toString(an), toString(ao), "oneTokenOperationsDisabled"], m) | |
144 | 155 | } | |
145 | 156 | ||
146 | 157 | ||
147 | - | func | |
158 | + | func as () = makeString(["%s", "oneTokenOperationsDisabled"], m) | |
148 | 159 | ||
149 | 160 | ||
150 | - | func | |
161 | + | func at (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2Pool") | |
151 | 162 | ||
152 | 163 | ||
153 | - | func | |
164 | + | func av (aw,ax) = (((("%d%d%s%s__" + aw) + "__") + ax) + "__mappings__PoolAssets2LpAsset") | |
154 | 165 | ||
155 | 166 | ||
156 | - | func | |
167 | + | func ay (af) = ("%s%s__spread__" + af) | |
157 | 168 | ||
158 | 169 | ||
159 | - | func | |
170 | + | func az (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2PoolAssets") | |
160 | 171 | ||
161 | 172 | ||
162 | - | func | |
173 | + | func aB (aw,ax) = (((("%d%d%s%s__" + toString(aw)) + "__") + toString(ax)) + "__mappings__poolAssets2PoolContract") | |
163 | 174 | ||
164 | 175 | ||
165 | - | func | |
176 | + | func aC (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2LpAsset") | |
166 | 177 | ||
167 | 178 | ||
168 | - | func | |
179 | + | func aD (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2PoolContract") | |
169 | 180 | ||
170 | 181 | ||
171 | - | func | |
182 | + | func aE (aF,aG) = ((("%s%s%s__wxEmission__" + aF) + "__") + aG) | |
172 | 183 | ||
173 | 184 | ||
174 | - | func | |
185 | + | func aH (af) = ("%s%s__inFee__" + af) | |
175 | 186 | ||
176 | 187 | ||
177 | - | func | |
188 | + | func aI () = "%s__inFeeDefault" | |
178 | 189 | ||
179 | 190 | ||
180 | - | func | |
191 | + | func aJ (af) = ("%s%s__outFee__" + af) | |
181 | 192 | ||
182 | 193 | ||
183 | - | func | |
194 | + | func aK () = "%s__outFeeDefault" | |
184 | 195 | ||
185 | 196 | ||
186 | - | func | |
197 | + | func aL (af) = ("%s%s__skipOrderValidation__" + af) | |
187 | 198 | ||
188 | 199 | ||
189 | - | func | |
200 | + | func aM (af) = ("%s%s__changeAmpDelay__" + af) | |
190 | 201 | ||
191 | 202 | ||
192 | - | func | |
203 | + | func aN (af) = ("%s%s__changeAmpDelta__" + af) | |
193 | 204 | ||
194 | 205 | ||
195 | - | func | |
206 | + | func aO (af) = ("%s%s__changeAmpTarget__" + af) | |
196 | 207 | ||
197 | 208 | ||
198 | - | func | |
209 | + | func aP () = "%s__sWavesProxyAddress" | |
199 | 210 | ||
200 | 211 | ||
201 | - | func | |
212 | + | func aQ () = "%s__sWavesAssetId" | |
202 | 213 | ||
203 | 214 | ||
204 | - | func | |
215 | + | func aR () = "%s__stakingProfitAddress" | |
205 | 216 | ||
206 | 217 | ||
207 | - | func | |
218 | + | func aS (af,aT) = makeString(["%s%s%s", "leasedRatio", af, aT], m) | |
208 | 219 | ||
209 | 220 | ||
210 | - | func | |
221 | + | func aU (aT) = makeString(["%s%s", "leasedRatioDefault", aT], m) | |
211 | 222 | ||
212 | 223 | ||
213 | - | func | |
224 | + | func aV (af,aT) = makeString(["%s%s%s", "leasedRatioTolerance", af, aT], m) | |
214 | 225 | ||
215 | 226 | ||
216 | - | func | |
227 | + | func aW (af,aT) = makeString(["%s%s%s", "minBalance", af, aT], m) | |
217 | 228 | ||
218 | 229 | ||
219 | - | func | |
230 | + | func aX (aT) = makeString(["%s%s", "minBalanceDefault", aT], m) | |
220 | 231 | ||
221 | 232 | ||
222 | - | func | |
233 | + | func aY (aZ) = valueOrErrorMessage(getString(this, aZ), ("No data for this.key=" + aZ)) | |
223 | 234 | ||
224 | 235 | ||
225 | - | func | |
236 | + | func ba (aZ) = valueOrErrorMessage(getBoolean(this, aZ), ("No data for this.key=" + aZ)) | |
226 | 237 | ||
227 | 238 | ||
228 | - | func | |
239 | + | func bb (aZ) = valueOrErrorMessage(getInteger(this, aZ), ("No data for this.key=" + aZ)) | |
229 | 240 | ||
230 | 241 | ||
231 | - | func | |
242 | + | func bc (bd) = if ((bd == j)) | |
232 | 243 | then unit | |
233 | - | else fromBase58String( | |
244 | + | else fromBase58String(bd) | |
234 | 245 | ||
235 | 246 | ||
236 | - | func | |
237 | - | let | |
238 | - | if ($isInstanceOf( | |
247 | + | func be () = { | |
248 | + | let bf = getString(V()) | |
249 | + | if ($isInstanceOf(bf, "String")) | |
239 | 250 | then { | |
240 | - | let | |
241 | - | addressFromStringValue( | |
251 | + | let bg = bf | |
252 | + | addressFromStringValue(bg) | |
242 | 253 | } | |
243 | 254 | else this | |
244 | 255 | } | |
245 | 256 | ||
246 | 257 | ||
247 | - | let | |
258 | + | let bh = 1 | |
248 | 259 | ||
249 | - | let | |
260 | + | let bi = 2 | |
250 | 261 | ||
251 | - | let | |
262 | + | let bj = 3 | |
252 | 263 | ||
253 | - | let | |
264 | + | let bk = 4 | |
254 | 265 | ||
255 | - | let | |
266 | + | let bl = 5 | |
256 | 267 | ||
257 | - | let | |
268 | + | let bm = 6 | |
258 | 269 | ||
259 | - | let | |
270 | + | let bn = 7 | |
260 | 271 | ||
261 | - | let | |
272 | + | let bo = 8 | |
262 | 273 | ||
263 | - | let | |
274 | + | let bp = 9 | |
264 | 275 | ||
265 | - | let | |
276 | + | let bq = 10 | |
266 | 277 | ||
267 | - | let | |
278 | + | let br = 11 | |
268 | 279 | ||
269 | - | func | |
280 | + | func bs (bt) = addressFromStringValue(bt[bi]) | |
270 | 281 | ||
271 | 282 | ||
272 | - | func | |
283 | + | func bu (bt) = addressFromStringValue(bt[bl]) | |
273 | 284 | ||
274 | 285 | ||
275 | - | func | |
286 | + | func bv (bt) = addressFromStringValue(bt[bh]) | |
276 | 287 | ||
277 | 288 | ||
278 | - | func | |
289 | + | func bw (bt) = addressFromStringValue(bt[bq]) | |
279 | 290 | ||
280 | 291 | ||
281 | - | func | |
282 | - | let | |
283 | - | if ($isInstanceOf( | |
292 | + | func bx () = { | |
293 | + | let bf = getString(aa()) | |
294 | + | if ($isInstanceOf(bf, "String")) | |
284 | 295 | then { | |
285 | - | let | |
286 | - | if ((size( | |
296 | + | let bg = bf | |
297 | + | if ((size(bg) == 0)) | |
287 | 298 | then nil | |
288 | - | else split( | |
299 | + | else split(bg, m) | |
289 | 300 | } | |
290 | 301 | else nil | |
291 | 302 | } | |
292 | 303 | ||
293 | 304 | ||
294 | - | func | |
295 | - | let | |
296 | - | let | |
297 | - | if ($isInstanceOf( | |
305 | + | func by () = { | |
306 | + | let bz = be() | |
307 | + | let bf = getString(bz, U()) | |
308 | + | if ($isInstanceOf(bf, "String")) | |
298 | 309 | then { | |
299 | - | let | |
300 | - | fromBase58String( | |
310 | + | let bg = bf | |
311 | + | fromBase58String(bg) | |
301 | 312 | } | |
302 | - | else if ($isInstanceOf( | |
313 | + | else if ($isInstanceOf(bf, "Unit")) | |
303 | 314 | then unit | |
304 | 315 | else throw("Match error") | |
305 | 316 | } | |
306 | 317 | ||
307 | 318 | ||
308 | - | let | |
319 | + | let bA = K("Permission denied") | |
309 | 320 | ||
310 | - | let | |
321 | + | let bB = K("Test error here") | |
311 | 322 | ||
312 | - | func | |
323 | + | func bC (bD) = if ((bD.caller == this)) | |
313 | 324 | then true | |
314 | - | else | |
325 | + | else bA | |
315 | 326 | ||
316 | 327 | ||
317 | - | func | |
318 | - | let | |
319 | - | if ($isInstanceOf( | |
328 | + | func bE (bD) = { | |
329 | + | let bf = by() | |
330 | + | if ($isInstanceOf(bf, "ByteVector")) | |
320 | 331 | then { | |
321 | - | let | |
322 | - | if (( | |
332 | + | let bF = bf | |
333 | + | if ((bD.callerPublicKey == bF)) | |
323 | 334 | then true | |
324 | - | else | |
335 | + | else bA | |
325 | 336 | } | |
326 | - | else if ($isInstanceOf( | |
327 | - | then | |
337 | + | else if ($isInstanceOf(bf, "Unit")) | |
338 | + | then bC(bD) | |
328 | 339 | else throw("Match error") | |
329 | 340 | } | |
330 | 341 | ||
331 | 342 | ||
332 | - | func | |
343 | + | func bG (bH,bI,bJ,bK,bL,bM,bN,bO,bP,bQ,bR) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR], m) | |
333 | 344 | ||
334 | 345 | ||
335 | - | func | |
346 | + | func bS (bH,bI,bJ,bK,bL,bM,bN) = makeString(["%s%s%s%s%s%s", bH, bI, bJ, bK, bL, bM, bN], m) | |
336 | 347 | ||
337 | 348 | ||
338 | - | func | |
349 | + | func bT (af,bU,bV,bW,bX,bY,bZ,ca,cb,cc,cd) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", af, bU, bV, bW, bX, toString(bY), toString(bZ), toString(ca), toString(cb), toString(cc), cd], m) | |
339 | 350 | ||
340 | 351 | ||
341 | - | func | |
352 | + | func ce (cf,cg) = makeString(["%d%d", toString(cf), toString(cg)], m) | |
342 | 353 | ||
343 | 354 | ||
344 | - | func | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | split( | |
355 | + | func ch (af) = { | |
356 | + | let ci = split(aY(az(af)), m) | |
357 | + | let an = ci[1] | |
358 | + | let ao = ci[2] | |
359 | + | split(aY(am(an, ao)), m) | |
349 | 360 | } | |
350 | 361 | ||
351 | 362 | ||
352 | - | func | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
363 | + | func cj (ck,cl) = { | |
364 | + | let cm = valueOrElse(getInteger(this, ak(ck)), 0) | |
365 | + | let cn = valueOrElse(getInteger(this, ad()), 0) | |
366 | + | let co = if ((cm == 0)) | |
356 | 367 | then { | |
357 | - | let | |
358 | - | $Tuple3( | |
368 | + | let cp = (cn + cl) | |
369 | + | $Tuple3(cp, [IntegerEntry(ad(), cp), IntegerEntry(ak(ck), cp), StringEntry(ai(cp), ck)], true) | |
359 | 370 | } | |
360 | - | else $Tuple3( | |
361 | - | | |
371 | + | else $Tuple3(cm, nil, false) | |
372 | + | co | |
362 | 373 | } | |
363 | 374 | ||
364 | 375 | ||
365 | - | func | |
366 | - | let | |
367 | - | if (containsElement( | |
376 | + | func cq (bD) = { | |
377 | + | let cr = split(valueOrElse(getString(W()), n), m) | |
378 | + | if (containsElement(cr, toBase58String(bD.callerPublicKey))) | |
368 | 379 | then true | |
369 | 380 | else { | |
370 | - | let | |
371 | - | if (( | |
381 | + | let cs = bE(bD) | |
382 | + | if ((cs == cs)) | |
372 | 383 | then true | |
373 | 384 | else throw("Strict value is not equal to itself.") | |
374 | 385 | } | |
375 | 386 | } | |
376 | 387 | ||
377 | 388 | ||
378 | - | func | |
389 | + | func ct (aZ,cu,cv) = valueOrElse(getInteger(this, aZ), valueOrElse(getInteger(this, cu), cv)) | |
379 | 390 | ||
380 | 391 | ||
381 | - | func | |
382 | - | let | |
383 | - | let | |
384 | - | if (if (( | |
392 | + | func cw (aF,aG) = { | |
393 | + | let an = getInteger(ak(aF)) | |
394 | + | let ao = getInteger(ak(aG)) | |
395 | + | if (if ((an == unit)) | |
385 | 396 | then true | |
386 | - | else ( | |
397 | + | else (ao == unit)) | |
387 | 398 | then false | |
388 | 399 | else { | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
400 | + | let cx = toString(value(an)) | |
401 | + | let cy = toString(value(ao)) | |
402 | + | let cz = getString(am(cx, cy)) | |
403 | + | let cA = getString(am(cy, cx)) | |
404 | + | let cB = if ((cz != unit)) | |
394 | 405 | then true | |
395 | - | else ( | |
396 | - | | |
406 | + | else (cA != unit) | |
407 | + | cB | |
397 | 408 | } | |
398 | 409 | } | |
399 | 410 | ||
400 | 411 | ||
401 | - | @Callable( | |
402 | - | func getSwapContractREADONLY () = $Tuple2(nil, | |
412 | + | @Callable(bD) | |
413 | + | func getSwapContractREADONLY () = $Tuple2(nil, aY(N())) | |
403 | 414 | ||
404 | 415 | ||
405 | 416 | ||
406 | - | @Callable( | |
407 | - | func getPoolLeaseConfigREADONLY ( | |
408 | - | let | |
409 | - | let | |
410 | - | if ($isInstanceOf( | |
417 | + | @Callable(bD) | |
418 | + | func getPoolLeaseConfigREADONLY (af,aT) = { | |
419 | + | let cC = { | |
420 | + | let bf = getInteger(this, aS(af, aT)) | |
421 | + | if ($isInstanceOf(bf, "Int")) | |
411 | 422 | then { | |
412 | - | let | |
413 | - | $Tuple2(true, min([100, max([0, | |
423 | + | let cD = bf | |
424 | + | $Tuple2(true, min([100, max([0, cD])])) | |
414 | 425 | } | |
415 | 426 | else { | |
416 | - | let | |
417 | - | if ($isInstanceOf( | |
427 | + | let cE = getInteger(this, aU(aT)) | |
428 | + | if ($isInstanceOf(cE, "Int")) | |
418 | 429 | then { | |
419 | - | let | |
420 | - | $Tuple2(true, min([100, max([0, | |
430 | + | let cF = cE | |
431 | + | $Tuple2(true, min([100, max([0, cF])])) | |
421 | 432 | } | |
422 | 433 | else $Tuple2(false, 0) | |
423 | 434 | } | |
424 | 435 | } | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | if ($isInstanceOf( | |
436 | + | let cG = cC._1 | |
437 | + | let cH = cC._2 | |
438 | + | let cI = { | |
439 | + | let bf = getInteger(this, aW(af, aT)) | |
440 | + | if ($isInstanceOf(bf, "Int")) | |
430 | 441 | then { | |
431 | - | let | |
432 | - | max([0, | |
442 | + | let cJ = bf | |
443 | + | max([0, cJ]) | |
433 | 444 | } | |
434 | 445 | else { | |
435 | - | let | |
436 | - | if ($isInstanceOf( | |
446 | + | let cE = getInteger(this, aX(aT)) | |
447 | + | if ($isInstanceOf(cE, "Int")) | |
437 | 448 | then { | |
438 | - | let | |
439 | - | max([0, | |
449 | + | let cK = cE | |
450 | + | max([0, cK]) | |
440 | 451 | } | |
441 | 452 | else 0 | |
442 | 453 | } | |
443 | 454 | } | |
444 | - | let | |
445 | - | then $Tuple3(valueOrElse(getString(this, | |
455 | + | let cL = if ((aT == "WAVES")) | |
456 | + | then $Tuple3(valueOrElse(getString(this, aP()), ""), getString(this, valueOrElse(aQ(), "")), c) | |
446 | 457 | else $Tuple3("", "", 0) | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | $Tuple2(nil, $Tuple7( | |
458 | + | let cM = cL._1 | |
459 | + | let cN = cL._2 | |
460 | + | let cO = cL._3 | |
461 | + | let cP = valueOrElse(getString(this, aR()), "") | |
462 | + | $Tuple2(nil, $Tuple7(cG, cH, cI, cM, cN, cO, cP)) | |
452 | 463 | } | |
453 | 464 | ||
454 | 465 | ||
455 | 466 | ||
456 | - | @Callable( | |
457 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
458 | - | then ( | |
467 | + | @Callable(bD) | |
468 | + | func getLpAssetFromPoolAssetsREADONLY (cQ,cR) = if (if ((cQ == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
469 | + | then (cR == "WAVES") | |
459 | 470 | else false) | |
460 | 471 | then $Tuple2(nil, unit) | |
461 | 472 | else { | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
473 | + | let cS = value(getInteger(this, ak(cQ))) | |
474 | + | let cT = value(getInteger(this, ak(cR))) | |
475 | + | let cU = getString(this, av(toString(cS), toString(cT))) | |
476 | + | let cV = if ((cU == unit)) | |
466 | 477 | then unit | |
467 | - | else drop(value( | |
468 | - | $Tuple2(nil, | |
478 | + | else drop(value(cU), 4) | |
479 | + | $Tuple2(nil, cV) | |
469 | 480 | } | |
470 | 481 | ||
471 | 482 | ||
472 | 483 | ||
473 | - | @Callable( | |
474 | - | func getPoolAddressFromLpAssetREADONLY ( | |
484 | + | @Callable(bD) | |
485 | + | func getPoolAddressFromLpAssetREADONLY (cW) = $Tuple2(nil, valueOrElse(getString(this, aD(cW)), "")) | |
475 | 486 | ||
476 | 487 | ||
477 | 488 | ||
478 | - | @Callable( | |
479 | - | func constructor ( | |
480 | - | let | |
481 | - | if (( | |
482 | - | then [StringEntry( | |
489 | + | @Callable(bD) | |
490 | + | func constructor (cX,cY,bJ,bK,bL,bM,cZ,da) = { | |
491 | + | let db = bE(bD) | |
492 | + | if ((db == db)) | |
493 | + | then [StringEntry(O(), bS(cX, cY, bJ, bK, bL, bM, cZ)), IntegerEntry(ab(), da)] | |
483 | 494 | else throw("Strict value is not equal to itself.") | |
484 | 495 | } | |
485 | 496 | ||
486 | 497 | ||
487 | 498 | ||
488 | - | @Callable( | |
489 | - | func constructorV2 ( | |
490 | - | let | |
491 | - | if (( | |
499 | + | @Callable(bD) | |
500 | + | func constructorV2 (dc) = { | |
501 | + | let db = bE(bD) | |
502 | + | if ((db == db)) | |
492 | 503 | then { | |
493 | - | let | |
494 | - | if (( | |
495 | - | then [StringEntry( | |
504 | + | let dd = addressFromPublicKey(fromBase58String(dc)) | |
505 | + | if ((dd == dd)) | |
506 | + | then [StringEntry(R(), dc)] | |
496 | 507 | else throw("Strict value is not equal to itself.") | |
497 | 508 | } | |
498 | 509 | else throw("Strict value is not equal to itself.") | |
499 | 510 | } | |
500 | 511 | ||
501 | 512 | ||
502 | 513 | ||
503 | - | @Callable( | |
504 | - | func constructorV3 ( | |
505 | - | let | |
506 | - | if (( | |
514 | + | @Callable(bD) | |
515 | + | func constructorV3 (bO,bP,bQ,bR) = { | |
516 | + | let db = bE(bD) | |
517 | + | if ((db == db)) | |
507 | 518 | then { | |
508 | - | let | |
509 | - | [StringEntry( | |
519 | + | let bt = split(aY(O()), m) | |
520 | + | [StringEntry(O(), bG(bt[1], bt[2], bt[3], bt[4], bt[5], bt[6], bt[7], bO, bP, bQ, bR))] | |
510 | 521 | } | |
511 | 522 | else throw("Strict value is not equal to itself.") | |
512 | 523 | } | |
513 | 524 | ||
514 | 525 | ||
515 | 526 | ||
516 | - | @Callable( | |
517 | - | func constructorV4 ( | |
518 | - | let | |
519 | - | if (( | |
520 | - | then [StringEntry( | |
527 | + | @Callable(bD) | |
528 | + | func constructorV4 (de,df) = { | |
529 | + | let db = bE(bD) | |
530 | + | if ((db == db)) | |
531 | + | then [StringEntry(S(), de), StringEntry(T(), makeString(df, m))] | |
521 | 532 | else throw("Strict value is not equal to itself.") | |
522 | 533 | } | |
523 | 534 | ||
524 | 535 | ||
525 | 536 | ||
526 | - | @Callable( | |
527 | - | func constructorV5 ( | |
528 | - | let | |
529 | - | if (( | |
530 | - | then [StringEntry( | |
537 | + | @Callable(bD) | |
538 | + | func constructorV5 (dg) = { | |
539 | + | let db = bE(bD) | |
540 | + | if ((db == db)) | |
541 | + | then [StringEntry(X(), dg)] | |
531 | 542 | else throw("Strict value is not equal to itself.") | |
532 | 543 | } | |
533 | 544 | ||
534 | 545 | ||
535 | 546 | ||
536 | - | @Callable( | |
537 | - | func constructorV6 ( | |
538 | - | let | |
547 | + | @Callable(bD) | |
548 | + | func constructorV6 (dh,di) = { | |
549 | + | let dj = [bE(bD), if ((addressFromString(dh) != unit)) | |
539 | 550 | then true | |
540 | 551 | else "invalid voting emission contract address"] | |
541 | - | if (( | |
542 | - | then [StringEntry( | |
552 | + | if ((dj == dj)) | |
553 | + | then [StringEntry(Y(), dh), StringEntry(aa(), makeString(di, m))] | |
543 | 554 | else throw("Strict value is not equal to itself.") | |
544 | 555 | } | |
545 | 556 | ||
546 | 557 | ||
547 | 558 | ||
548 | - | @Callable( | |
549 | - | func setAdmins ( | |
550 | - | let | |
551 | - | if (( | |
552 | - | then [StringEntry( | |
559 | + | @Callable(bD) | |
560 | + | func setAdmins (dk) = { | |
561 | + | let db = bE(bD) | |
562 | + | if ((db == db)) | |
563 | + | then [StringEntry(W(), makeString(dk, m))] | |
553 | 564 | else throw("Strict value is not equal to itself.") | |
554 | 565 | } | |
555 | 566 | ||
556 | 567 | ||
557 | 568 | ||
558 | - | @Callable( | |
559 | - | func activateNewPool ( | |
560 | - | let | |
561 | - | if (( | |
562 | - | then if (isDefined(getString( | |
563 | - | then | |
569 | + | @Callable(bD) | |
570 | + | func activateNewPool (af,bW,bX,dl,dm,dn,cd,do) = { | |
571 | + | let db = cq(bD) | |
572 | + | if ((db == db)) | |
573 | + | then if (isDefined(getString(az(af)))) | |
574 | + | then K((("Pool address " + af) + " already registered.")) | |
564 | 575 | else { | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
576 | + | let dp = cj(bW, 1) | |
577 | + | let dq = dp._1 | |
578 | + | let dr = cj(bX, if (dp._3) | |
568 | 579 | then 2 | |
569 | 580 | else 1) | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | if ( | |
575 | - | then | |
581 | + | let ds = dr._1 | |
582 | + | let dt = valueOrErrorMessage(scriptHash(addressFromStringValue(af)), ("No script has been found on pool account " + af)) | |
583 | + | let du = getBinaryValue(Q()) | |
584 | + | let dv = cw(bW, bX) | |
585 | + | if (dv) | |
586 | + | then K((((("Pool " + bW) + "/") + bX) + " has already been activated.")) | |
576 | 587 | else { | |
577 | - | let | |
578 | - | let | |
579 | - | then | |
580 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
581 | - | let | |
582 | - | then | |
583 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | if (( | |
589 | - | then if (( | |
590 | - | then | |
588 | + | let dw = value(getString(this, am(toString(dq), toString(ds)))) | |
589 | + | let dx = if ((bW == "WAVES")) | |
590 | + | then l | |
591 | + | else pow(10, 0, value(assetInfo(fromBase58String(bW))).decimals, 0, 0, DOWN) | |
592 | + | let dy = if ((bX == "WAVES")) | |
593 | + | then l | |
594 | + | else pow(10, 0, value(assetInfo(fromBase58String(bX))).decimals, 0, 0, DOWN) | |
595 | + | let dz = Issue(dl, dm, 1, 8, true) | |
596 | + | let bV = calculateAssetId(dz) | |
597 | + | let dA = toBase58String(bV) | |
598 | + | let dB = invoke(addressFromStringValue(af), "activate", [bW, bX], nil) | |
599 | + | if ((dB == dB)) | |
600 | + | then if ((dB != "success")) | |
601 | + | then K("Pool initialisation error happened.") | |
591 | 602 | else { | |
592 | - | let | |
593 | - | let | |
594 | - | if (( | |
603 | + | let dg = addressFromStringValue(aY(X())) | |
604 | + | let dC = invoke(dg, "createOrUpdate", [dA, dl, false], nil) | |
605 | + | if ((dC == dC)) | |
595 | 606 | then { | |
596 | - | let | |
597 | - | if (( | |
607 | + | let dD = invoke(dg, "addLabel", [dA, h], nil) | |
608 | + | if ((dD == dD)) | |
598 | 609 | then { | |
599 | - | let | |
600 | - | if (( | |
610 | + | let dE = invoke(dg, "setLogo", [dA, do], nil) | |
611 | + | if ((dE == dE)) | |
601 | 612 | then { | |
602 | - | let | |
603 | - | if (( | |
613 | + | let dF = invoke(dg, "addAssetsLink", [bW, bX, dA], nil) | |
614 | + | if ((dF == dF)) | |
604 | 615 | then { | |
605 | - | let | |
606 | - | if (( | |
607 | - | then $Tuple2((( | |
616 | + | let dG = invoke(dg, "increaseAssetPoolsNumber", [bW], nil) | |
617 | + | if ((dG == dG)) | |
618 | + | then $Tuple2(((dp._2 ++ dr._2) ++ [dz, Burn(bV, 1), StringEntry(am(toString(dq), toString(ds)), bT(af, toString(o), dA, bW, bX, dx, dy, dq, ds, l, cd)), StringEntry(at(dA), ce(dq, ds)), StringEntry(av(toString(dq), toString(ds)), ("%s__" + dA)), StringEntry(az(af), ce(dq, ds)), StringEntry(aB(dq, ds), af), StringEntry(aD(dA), af), StringEntry(aC(af), dA), IntegerEntry(ae(af), dn), IntegerEntry(ay(af), i)]), dA) | |
608 | 619 | else throw("Strict value is not equal to itself.") | |
609 | 620 | } | |
610 | 621 | else throw("Strict value is not equal to itself.") | |
611 | 622 | } | |
612 | 623 | else throw("Strict value is not equal to itself.") | |
613 | 624 | } | |
614 | 625 | else throw("Strict value is not equal to itself.") | |
615 | 626 | } | |
616 | 627 | else throw("Strict value is not equal to itself.") | |
617 | 628 | } | |
618 | 629 | else throw("Strict value is not equal to itself.") | |
619 | 630 | } | |
620 | 631 | } | |
621 | 632 | else throw("Strict value is not equal to itself.") | |
622 | 633 | } | |
623 | 634 | ||
624 | 635 | ||
625 | 636 | ||
626 | - | @Callable( | |
627 | - | func managePool ( | |
628 | - | let | |
629 | - | if (( | |
637 | + | @Callable(bD) | |
638 | + | func managePool (af,dH) = { | |
639 | + | let db = bE(bD) | |
640 | + | if ((db == db)) | |
630 | 641 | then { | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | [StringEntry( | |
642 | + | let dI = ch(af) | |
643 | + | let bU = dI[w] | |
644 | + | let dA = dI[x] | |
645 | + | let bW = dI[y] | |
646 | + | let bX = dI[z] | |
647 | + | let dx = parseIntValue(dI[A]) | |
648 | + | let dy = parseIntValue(dI[B]) | |
649 | + | let dq = parseIntValue(dI[C]) | |
650 | + | let ds = parseIntValue(dI[D]) | |
651 | + | let dJ = parseIntValue(dI[E]) | |
652 | + | let cd = dI[F] | |
653 | + | [StringEntry(am(toString(dq), toString(ds)), bT(af, toString(dH), dA, bW, bX, dx, dy, dq, ds, dJ, cd))] | |
643 | 654 | } | |
644 | 655 | else throw("Strict value is not equal to itself.") | |
645 | 656 | } | |
646 | 657 | ||
647 | 658 | ||
648 | 659 | ||
649 | - | @Callable( | |
650 | - | func emit ( | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | if ((0 >= | |
660 | + | @Callable(bD) | |
661 | + | func emit (dK) = { | |
662 | + | let dL = bD.caller | |
663 | + | let dM = bD.originCaller | |
664 | + | let dN = valueOrErrorMessage(getString(aC(toString(dL))), "Invalid LP address called me.") | |
665 | + | let dO = fromBase58String(dN) | |
666 | + | let df = split(valueOrElse(getString(T()), n), m) | |
667 | + | let de = addressFromStringValue(valueOrErrorMessage(getString(S()), "Legacy factory contract does not exists.")) | |
668 | + | if ((0 >= dK)) | |
658 | 669 | then nil | |
659 | - | else if (containsElement( | |
660 | - | then $Tuple2(nil, | |
661 | - | else $Tuple2([Reissue( | |
670 | + | else if (containsElement(df, toString(dL))) | |
671 | + | then $Tuple2(nil, de) | |
672 | + | else $Tuple2([Reissue(dO, dK, true), ScriptTransfer(bD.caller, dK, dO)], "success") | |
662 | 673 | } | |
663 | 674 | ||
664 | 675 | ||
665 | 676 | ||
666 | - | @Callable( | |
667 | - | func burn ( | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | if (( | |
675 | - | then | |
676 | - | else if (( | |
677 | - | then | |
677 | + | @Callable(bD) | |
678 | + | func burn (dP) = { | |
679 | + | let dL = bD.caller | |
680 | + | let dM = bD.originCaller | |
681 | + | let dQ = value(bD.payments[0]) | |
682 | + | let dR = value(dQ.amount) | |
683 | + | let dS = toBase58String(value(dQ.assetId)) | |
684 | + | let dT = valueOrErrorMessage(getString(aC(toString(dL))), "Invalid LP address called me.") | |
685 | + | if ((dS != dT)) | |
686 | + | then K("Invalid asset passed.") | |
687 | + | else if ((dP != dR)) | |
688 | + | then K("Invalid amount passed.") | |
678 | 689 | else { | |
679 | - | let | |
680 | - | $Tuple2([Burn( | |
690 | + | let dO = fromBase58String(dT) | |
691 | + | $Tuple2([Burn(dO, dP)], "success") | |
681 | 692 | } | |
682 | 693 | } | |
683 | 694 | ||
684 | 695 | ||
685 | 696 | ||
686 | - | @Callable( | |
687 | - | func modifyWeight ( | |
688 | - | let | |
697 | + | @Callable(bD) | |
698 | + | func modifyWeight (bV,dU) = { | |
699 | + | let db = if ((toBase58String(bD.caller.bytes) == valueOrElse(getString(this, Y()), ""))) | |
689 | 700 | then true | |
690 | - | else | |
691 | - | if (( | |
701 | + | else bE(bD) | |
702 | + | if ((db == db)) | |
692 | 703 | then { | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | if (( | |
704 | + | let aA = aY(aD(bV)) | |
705 | + | let dV = ae(aA) | |
706 | + | let dW = ae(g) | |
707 | + | let dX = valueOrElse(getInteger(dW), 0) | |
708 | + | let dn = valueOrElse(getInteger(dV), 0) | |
709 | + | let dY = dU | |
710 | + | let bt = split(aY(O()), m) | |
711 | + | let cX = bv(bt) | |
712 | + | let dZ = invoke(cX, "onModifyWeight", [bV, aA], nil) | |
713 | + | if ((dZ == dZ)) | |
703 | 714 | then { | |
704 | - | let | |
715 | + | let ea = if ((dX == 0)) | |
705 | 716 | then nil | |
706 | - | else [IntegerEntry( | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
717 | + | else [IntegerEntry(dW, 0)] | |
718 | + | let eb = ag(aA, 0) | |
719 | + | let ec = getInteger(eb) | |
720 | + | let ed = if ((ec == unit)) | |
710 | 721 | then nil | |
711 | - | else [DeleteEntry( | |
712 | - | (([IntegerEntry( | |
722 | + | else [DeleteEntry(eb)] | |
723 | + | (([IntegerEntry(dV, dY)] ++ ea) ++ ed) | |
713 | 724 | } | |
714 | 725 | else throw("Strict value is not equal to itself.") | |
715 | 726 | } | |
716 | 727 | else throw("Strict value is not equal to itself.") | |
717 | 728 | } | |
718 | 729 | ||
719 | 730 | ||
720 | 731 | ||
721 | - | @Callable( | |
722 | - | func modifyWeights ( | |
723 | - | let | |
724 | - | if (( | |
732 | + | @Callable(bD) | |
733 | + | func modifyWeights (ee,ef,eg,eh) = { | |
734 | + | let db = bE(bD) | |
735 | + | if ((db == db)) | |
725 | 736 | then { | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | if ((0 >= | |
741 | - | then | |
742 | - | else if ((0 >= | |
743 | - | then | |
737 | + | let ei = ((5 * f) / 100) | |
738 | + | let ej = ((5 * f) / 100) | |
739 | + | let ek = ((5 * f) / 100) | |
740 | + | let bt = split(aY(O()), m) | |
741 | + | let el = bv(bt) | |
742 | + | let em = bw(bt) | |
743 | + | let en = ae(ee) | |
744 | + | let eo = ae(ef) | |
745 | + | let ep = ae(eg) | |
746 | + | let eq = ae(eh) | |
747 | + | let er = bb(en) | |
748 | + | let es = bb(eo) | |
749 | + | let et = (er - ek) | |
750 | + | let eu = (es - ek) | |
751 | + | if ((0 >= et)) | |
752 | + | then K(("invalid btcWeightNew: " + toString(et))) | |
753 | + | else if ((0 >= eu)) | |
754 | + | then K(("invalid ethWeightNew: " + toString(eu))) | |
744 | 755 | else { | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | if (( | |
756 | + | let ev = aY(aC(ee)) | |
757 | + | let ew = aY(aC(ef)) | |
758 | + | let ex = aY(aC(eg)) | |
759 | + | let ey = aY(aC(eh)) | |
760 | + | let ez = invoke(el, "onModifyWeight", [ev, ee], nil) | |
761 | + | if ((ez == ez)) | |
751 | 762 | then { | |
752 | - | let | |
753 | - | if (( | |
763 | + | let eA = invoke(el, "onModifyWeight", [ew, ef], nil) | |
764 | + | if ((eA == eA)) | |
754 | 765 | then { | |
755 | - | let | |
756 | - | if (( | |
766 | + | let eB = invoke(el, "onModifyWeight", [ex, eg], nil) | |
767 | + | if ((eB == eB)) | |
757 | 768 | then { | |
758 | - | let | |
759 | - | if (( | |
760 | - | then [IntegerEntry( | |
769 | + | let eC = invoke(el, "onModifyWeight", [ey, eh], nil) | |
770 | + | if ((eC == eC)) | |
771 | + | then [IntegerEntry(en, et), IntegerEntry(eo, eu), IntegerEntry(ep, ei), IntegerEntry(eq, ej), IntegerEntry(ag(ee, 0), er), IntegerEntry(ag(ef, 0), es), IntegerEntry(ag(eg, 0), ei), IntegerEntry(ag(eh, 0), ej)] | |
761 | 772 | else throw("Strict value is not equal to itself.") | |
762 | 773 | } | |
763 | 774 | else throw("Strict value is not equal to itself.") | |
764 | 775 | } | |
765 | 776 | else throw("Strict value is not equal to itself.") | |
766 | 777 | } | |
767 | 778 | else throw("Strict value is not equal to itself.") | |
768 | 779 | } | |
769 | 780 | } | |
770 | 781 | else throw("Strict value is not equal to itself.") | |
771 | 782 | } | |
772 | 783 | ||
773 | 784 | ||
774 | 785 | ||
775 | - | @Callable( | |
776 | - | func checkWxEmissionPoolLabel ( | |
777 | - | let | |
778 | - | let | |
779 | - | if ($isInstanceOf( | |
786 | + | @Callable(bD) | |
787 | + | func checkWxEmissionPoolLabel (aF,aG) = { | |
788 | + | let eD = { | |
789 | + | let bf = getBoolean(aE(aF, aG)) | |
790 | + | if ($isInstanceOf(bf, "Boolean")) | |
780 | 791 | then { | |
781 | - | let | |
782 | - | | |
792 | + | let cJ = bf | |
793 | + | cJ | |
783 | 794 | } | |
784 | 795 | else false | |
785 | 796 | } | |
786 | - | $Tuple2(nil, | |
797 | + | $Tuple2(nil, eD) | |
787 | 798 | } | |
788 | 799 | ||
789 | 800 | ||
790 | 801 | ||
791 | - | @Callable( | |
792 | - | func setWxEmissionPoolLabel ( | |
793 | - | let | |
794 | - | if (( | |
795 | - | then $Tuple2([BooleanEntry( | |
802 | + | @Callable(bD) | |
803 | + | func setWxEmissionPoolLabel (aF,aG) = { | |
804 | + | let db = cq(bD) | |
805 | + | if ((db == db)) | |
806 | + | then $Tuple2([BooleanEntry(aE(aF, aG), true)], unit) | |
796 | 807 | else throw("Strict value is not equal to itself.") | |
797 | 808 | } | |
798 | 809 | ||
799 | 810 | ||
800 | 811 | ||
801 | - | @Callable( | |
802 | - | func deleteWxEmissionPoolLabel ( | |
803 | - | let | |
812 | + | @Callable(bD) | |
813 | + | func deleteWxEmissionPoolLabel (aF,aG) = { | |
814 | + | let db = if ((bD.caller == this)) | |
804 | 815 | then true | |
805 | - | else | |
806 | - | if (( | |
807 | - | then $Tuple2([DeleteEntry( | |
816 | + | else cq(bD) | |
817 | + | if ((db == db)) | |
818 | + | then $Tuple2([DeleteEntry(aE(aF, aG))], unit) | |
808 | 819 | else throw("Strict value is not equal to itself.") | |
809 | 820 | } | |
810 | 821 | ||
811 | 822 | ||
812 | 823 | ||
813 | - | @Callable( | |
814 | - | func onVerificationLoss ( | |
815 | - | let | |
824 | + | @Callable(bD) | |
825 | + | func onVerificationLoss (aT) = { | |
826 | + | let db = if ((toBase58String(bD.caller.bytes) == valueOrElse(getString(this, X()), ""))) | |
816 | 827 | then true | |
817 | - | else | |
818 | - | if (( | |
828 | + | else bE(bD) | |
829 | + | if ((db == db)) | |
819 | 830 | then { | |
820 | - | let | |
821 | - | let | |
831 | + | let di = bx() | |
832 | + | let eE = if ((size(di) > 0)) | |
822 | 833 | then true | |
823 | - | else | |
824 | - | if (( | |
834 | + | else K("invalid price assets") | |
835 | + | if ((eE == eE)) | |
825 | 836 | then { | |
826 | - | func | |
827 | - | let | |
828 | - | if (( | |
837 | + | func eF (eG,eH) = { | |
838 | + | let cD = invoke(this, "deleteWxEmissionPoolLabel", [aT, eH], nil) | |
839 | + | if ((cD == cD)) | |
829 | 840 | then unit | |
830 | 841 | else throw("Strict value is not equal to itself.") | |
831 | 842 | } | |
832 | 843 | ||
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | func | |
838 | - | then | |
839 | - | else | |
844 | + | let eI = { | |
845 | + | let eJ = di | |
846 | + | let eK = size(eJ) | |
847 | + | let eL = unit | |
848 | + | func eM (eN,eO) = if ((eO >= eK)) | |
849 | + | then eN | |
850 | + | else eF(eN, eJ[eO]) | |
840 | 851 | ||
841 | - | func | |
842 | - | then | |
852 | + | func eP (eN,eO) = if ((eO >= eK)) | |
853 | + | then eN | |
843 | 854 | else throw("List size exceeds 11") | |
844 | 855 | ||
845 | - | | |
856 | + | eP(eM(eM(eM(eM(eM(eM(eM(eM(eM(eM(eM(eL, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11) | |
846 | 857 | } | |
847 | - | if (( | |
858 | + | if ((eI == eI)) | |
848 | 859 | then $Tuple2(nil, unit) | |
849 | 860 | else throw("Strict value is not equal to itself.") | |
850 | 861 | } | |
851 | 862 | else throw("Strict value is not equal to itself.") | |
852 | 863 | } | |
853 | 864 | else throw("Strict value is not equal to itself.") | |
854 | 865 | } | |
855 | 866 | ||
856 | 867 | ||
857 | 868 | ||
858 | - | @Callable( | |
859 | - | func isPoolOneTokenOperationsDisabledREADONLY ( | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | $Tuple2(nil, if ( | |
869 | + | @Callable(bD) | |
870 | + | func isPoolOneTokenOperationsDisabledREADONLY (af) = { | |
871 | + | let dI = ch(af) | |
872 | + | let aq = $Tuple2(parseIntValue(dI[C]), parseIntValue(dI[D])) | |
873 | + | let eQ = valueOrElse(getBoolean(ap(aq)), false) | |
874 | + | let eR = valueOrElse(getBoolean(as()), false) | |
875 | + | $Tuple2(nil, if (eR) | |
865 | 876 | then true | |
866 | - | else | |
877 | + | else eQ) | |
867 | 878 | } | |
868 | 879 | ||
869 | 880 | ||
870 | 881 | ||
871 | - | @Callable( | |
872 | - | func getInFeeREADONLY ( | |
873 | - | let | |
874 | - | $Tuple2(nil, | |
882 | + | @Callable(bD) | |
883 | + | func getInFeeREADONLY (af) = { | |
884 | + | let eS = ct(aH(af), aI(), 0) | |
885 | + | $Tuple2(nil, eS) | |
875 | 886 | } | |
876 | 887 | ||
877 | 888 | ||
878 | 889 | ||
879 | - | @Callable( | |
880 | - | func getOutFeeREADONLY ( | |
881 | - | let | |
882 | - | $Tuple2(nil, | |
890 | + | @Callable(bD) | |
891 | + | func getOutFeeREADONLY (af) = { | |
892 | + | let eS = ct(aJ(af), aK(), fraction(10, b, 10000)) | |
893 | + | $Tuple2(nil, eS) | |
883 | 894 | } | |
884 | 895 | ||
885 | 896 | ||
886 | 897 | ||
887 | - | @Callable( | |
888 | - | func poolInfoREADONLY ( | |
889 | - | let | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | then isDefined( | |
898 | + | @Callable(bD) | |
899 | + | func poolInfoREADONLY (eT,eU) = { | |
900 | + | let eV = getInteger(this, ak(eT)) | |
901 | + | let eW = getInteger(this, ak(eU)) | |
902 | + | let eX = getString(this, aB(value(eV), value(eW))) | |
903 | + | let eY = getString(this, aC(value(eX))) | |
904 | + | let dv = if (if (isDefined(eV)) | |
905 | + | then isDefined(eW) | |
895 | 906 | else false) | |
896 | - | then isDefined( | |
907 | + | then isDefined(eX) | |
897 | 908 | else false | |
898 | - | let | |
899 | - | then $Tuple2(addressFromStringValue(value( | |
909 | + | let eZ = if (dv) | |
910 | + | then $Tuple2(addressFromStringValue(value(eX)), bc(value(eY))) | |
900 | 911 | else unit | |
901 | - | $Tuple2(nil, | |
912 | + | $Tuple2(nil, eZ) | |
902 | 913 | } | |
903 | 914 | ||
904 | 915 | ||
905 | 916 | ||
906 | - | @Callable( | |
907 | - | func getPoolStatusREADONLY ( | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | $Tuple2(nil, parseIntValue( | |
917 | + | @Callable(bD) | |
918 | + | func getPoolStatusREADONLY (af) = { | |
919 | + | let ci = split(aY(az(af)), m) | |
920 | + | let an = ci[1] | |
921 | + | let ao = ci[2] | |
922 | + | let cz = split(aY(am(an, ao)), m) | |
923 | + | $Tuple2(nil, parseIntValue(cz[w])) | |
913 | 924 | } | |
914 | 925 | ||
915 | 926 | ||
916 | 927 | ||
917 | - | @Callable( | |
918 | - | func getPoolConfigREADONLY ( | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | $Tuple2(nil, | |
928 | + | @Callable(bD) | |
929 | + | func getPoolConfigREADONLY (af) = { | |
930 | + | let ci = split(aY(az(af)), m) | |
931 | + | let an = ci[1] | |
932 | + | let ao = ci[2] | |
933 | + | let cz = split(aY(am(an, ao)), m) | |
934 | + | $Tuple2(nil, cz) | |
924 | 935 | } | |
925 | 936 | ||
926 | 937 | ||
927 | 938 | ||
928 | - | @Callable( | |
929 | - | func getPoolConfigByLpAssetIdREADONLY ( | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | $Tuple2(nil, | |
939 | + | @Callable(bD) | |
940 | + | func getPoolConfigByLpAssetIdREADONLY (dA) = { | |
941 | + | let ci = split(aY(at(dA)), m) | |
942 | + | let an = ci[1] | |
943 | + | let ao = ci[2] | |
944 | + | let cz = split(aY(am(an, ao)), m) | |
945 | + | $Tuple2(nil, cz) | |
935 | 946 | } | |
936 | 947 | ||
937 | 948 | ||
938 | 949 | ||
939 | - | @Callable( | |
940 | - | func poolExistsREADONLY ( | |
950 | + | @Callable(bD) | |
951 | + | func poolExistsREADONLY (aF,aG) = $Tuple2(nil, cw(aF, aG)) | |
941 | 952 | ||
942 | 953 | ||
943 | 954 | ||
944 | - | @Callable( | |
945 | - | func skipOrderValidationREADONLY ( | |
955 | + | @Callable(bD) | |
956 | + | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aL(af)), false)) | |
946 | 957 | ||
947 | 958 | ||
948 | 959 | ||
949 | - | @Callable( | |
950 | - | func getChangeAmpConfigREADONLY ( | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | $Tuple2(nil, [ | |
960 | + | @Callable(bD) | |
961 | + | func getChangeAmpConfigREADONLY (af) = { | |
962 | + | let fa = getIntegerValue(aM(af)) | |
963 | + | let fb = getIntegerValue(aN(af)) | |
964 | + | let fc = getIntegerValue(aO(af)) | |
965 | + | $Tuple2(nil, [fa, fb, fc]) | |
955 | 966 | } | |
956 | 967 | ||
957 | 968 | ||
958 | 969 | ||
959 | - | @Callable( | |
960 | - | func getPoolWeightREADONLY ( | |
961 | - | let | |
962 | - | let | |
963 | - | $Tuple2(nil, | |
970 | + | @Callable(bD) | |
971 | + | func getPoolWeightREADONLY (bV) = { | |
972 | + | let af = aY(aD(bV)) | |
973 | + | let fd = valueOrElse(getInteger(ae(af)), 0) | |
974 | + | $Tuple2(nil, fd) | |
964 | 975 | } | |
965 | 976 | ||
966 | 977 | ||
967 | - | @Verifier(eZ) | |
968 | - | func fa () = { | |
969 | - | let fb = { | |
970 | - | let ba = bt() | |
971 | - | if ($isInstanceOf(ba, "ByteVector")) | |
978 | + | ||
979 | + | @Callable(bD) | |
980 | + | func deletePool (aA) = { | |
981 | + | let db = if (bE(bD)) | |
982 | + | then true | |
983 | + | else bA | |
984 | + | if ((db == db)) | |
985 | + | then { | |
986 | + | let ci = split(aY(az(aA)), m) | |
987 | + | let an = parseIntValue(ci[1]) | |
988 | + | let ao = parseIntValue(ci[2]) | |
989 | + | let aF = getStringValue(ai(an)) | |
990 | + | let aG = getStringValue(ai(ao)) | |
991 | + | let bV = aY(aC(aA)) | |
992 | + | let fe = addressFromStringValue(getStringValue(Z())) | |
993 | + | let ff = invoke(fe, "deletePool", [aF, aG], nil) | |
994 | + | if ((ff == ff)) | |
995 | + | then { | |
996 | + | let dh = addressFromStringValue(getStringValue(Y())) | |
997 | + | let fg = invoke(dh, "deletePool", [aF, aG], nil) | |
998 | + | if ((fg == fg)) | |
999 | + | then [DeleteEntry(aC(aA)), DeleteEntry(az(aA)), DeleteEntry(av(toString(an), toString(ao))), DeleteEntry(aB(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(at(bV)), DeleteEntry(aD(bV)), DeleteEntry(aE(aF, aG)), DeleteEntry(ae(aA)), DeleteEntry(ay(aA)), DeleteEntry(aH(aA)), DeleteEntry(aJ(aA)), DeleteEntry(aL(aA)), DeleteEntry(aM(aA)), DeleteEntry(aN(aA)), DeleteEntry(aO(aA))] | |
1000 | + | else throw("Strict value is not equal to itself.") | |
1001 | + | } | |
1002 | + | else throw("Strict value is not equal to itself.") | |
1003 | + | } | |
1004 | + | else throw("Strict value is not equal to itself.") | |
1005 | + | } | |
1006 | + | ||
1007 | + | ||
1008 | + | @Verifier(fh) | |
1009 | + | func fi () = { | |
1010 | + | let fj = { | |
1011 | + | let bf = by() | |
1012 | + | if ($isInstanceOf(bf, "ByteVector")) | |
972 | 1013 | then { | |
973 | - | let | |
974 | - | | |
1014 | + | let bF = bf | |
1015 | + | bF | |
975 | 1016 | } | |
976 | - | else if ($isInstanceOf( | |
977 | - | then | |
1017 | + | else if ($isInstanceOf(bf, "Unit")) | |
1018 | + | then fh.senderPublicKey | |
978 | 1019 | else throw("Match error") | |
979 | 1020 | } | |
980 | - | sigVerify( | |
1021 | + | sigVerify(fh.bodyBytes, fh.proofs[0], fj) | |
981 | 1022 | } | |
982 | 1023 |
github/deemru/w8io/fabc49c 369.68 ms ◑