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