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