tx · 4xKYLTW2puBWSmkjN2BfNKoWQSgA9qLvTiqbF69ipSpd 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj: -0.03700000 Waves 2023.01.12 15:30 [2401738] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves
{ "type": 13, "id": "4xKYLTW2puBWSmkjN2BfNKoWQSgA9qLvTiqbF69ipSpd", "fee": 3700000, "feeAssetId": null, "timestamp": 1673526630483, "version": 2, "chainId": 84, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "384RBxU6urwfkPtvEKSvsS1gP49ZDSg8um3aZe4x91dsANMrNJZ9TKjYEUu3Z4APbKFEyA4CHBNLoVmfei7xFycR", "3bTD7S8AgEMwjeB5ee2gvwRfqtCb5e6dGLSaSXed16XPAAaxstuGrmGBYnbV9M5dHnnkpzEDhohAetvMikKh9Wtk", "h79U8wioxTq2gCvUVBGNPyxUs8bMzPvQKuC8J8hu4KvFqeDurKADbevRqSPFbvFhLaWmHfZPouxaJdDRQKNnx7P" ], "script": "base64:BgJYCAISDwoNCAgICAgIAQEBAQEBARIFCgMICAESABIAEgUKAwgBCBIDCgEBEgQKAgEIEgASBQoDCAEBEgQKAgEBEgQKAggBEgUKAwgBARIGCgQICAEBEgASAKkBAQ9nZXRTdHJpbmdPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5CQC5CQIJAMwIAgIKbWFuZGF0b3J5IAkAzAgCCQClCAEFB2FkZHJlc3MJAMwIAgIBLgkAzAgCBQNrZXkJAMwIAgIPIGlzIG5vdCBkZWZpbmVkBQNuaWwCAAEFbGNhbGMBAWwJALkIAQUBbAEOZ2V0TnVtYmVyQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQNrZX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RGZWUBBQlzcG9uc29yVHgJAGcCBQVjb3VudAADBwkAZwIFBWNvdW50AAMRFPLY", "height": 2401738, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 91q5zjyaVMW4S2c2ySi2xtdyWa5rRq3NxtHjEU8SmG8a Next: B8jrxogYe93WYYCD8GcQxAkn5r7KZQpYrC7k2g3xeDTi Diff:
Old | New | Differences | |
---|---|---|---|
197 | 197 | ||
198 | 198 | let az = "wavesOut_swap_feePart" | |
199 | 199 | ||
200 | - | func aA (b) = ("%s__" + b) | |
200 | + | let aA = "multiOut_swap_feePart" | |
201 | + | ||
202 | + | func aB (b) = ("%s__" + b) | |
201 | 203 | ||
202 | 204 | ||
203 | - | let | |
205 | + | let aC = "price" | |
204 | 206 | ||
205 | - | let | |
207 | + | let aD = "price_index" | |
206 | 208 | ||
207 | - | let | |
209 | + | let aE = "is_blocked" | |
208 | 210 | ||
209 | - | func | |
211 | + | func aF (aG) = ((aC + "_") + toString(aG)) | |
210 | 212 | ||
211 | 213 | ||
212 | - | func | |
214 | + | func aH (aI) = ((aD + "_") + toString(aI)) | |
213 | 215 | ||
214 | 216 | ||
215 | - | func | |
217 | + | func aJ (ac) = g(makeString(["%s%d%s", "lease", toString(ac), "nodeAddress"], z)) | |
216 | 218 | ||
217 | 219 | ||
218 | - | func | |
220 | + | func aK (ac) = addressFromStringValue(aJ(ac)) | |
219 | 221 | ||
220 | 222 | ||
221 | - | func | |
223 | + | func aL () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], z)), (1000 * B)) | |
222 | 224 | ||
223 | 225 | ||
224 | - | func | |
226 | + | func aM (aN) = ("balance_unlock_block_" + aN) | |
225 | 227 | ||
226 | 228 | ||
227 | - | func | |
229 | + | func aO (aP) = makeString(["%s%d%s", "lease", toString(aP), "id"], z) | |
228 | 230 | ||
229 | 231 | ||
230 | - | func | |
232 | + | func aQ (aR) = makeString(["%s%s%s", "leaseByAddress", aR, "id"], z) | |
231 | 233 | ||
232 | 234 | ||
233 | - | func | |
235 | + | func aS (aP) = makeString(["%s%d%s", "lease", toString(aP), "amount"], z) | |
234 | 236 | ||
235 | 237 | ||
236 | - | func | |
238 | + | func aT (aR) = makeString(["%s%s%s", "leaseByAddress", aR, "amount"], z) | |
237 | 239 | ||
238 | 240 | ||
239 | - | func | |
241 | + | func aU (aV) = makeString(["%s%d%s", "leaseGroup", toString(aV), "nodeList"], z) | |
240 | 242 | ||
241 | 243 | ||
242 | - | func | |
244 | + | func aW (aX) = (("min_" + aX) + "_swap_amount") | |
243 | 245 | ||
244 | 246 | ||
245 | - | func | |
247 | + | func aY (aX) = ("balance_lock_" + aX) | |
246 | 248 | ||
247 | 249 | ||
248 | - | func | |
250 | + | func aZ (aX,aN) = makeString(["balance_lock", aX, aN], "_") | |
249 | 251 | ||
250 | 252 | ||
251 | - | func | |
253 | + | func ba (aX) = (("balance_" + aX) + "_lock_interval") | |
252 | 254 | ||
253 | 255 | ||
254 | - | func | |
256 | + | func bb () = "balance_node_lock_interval" | |
255 | 257 | ||
256 | 258 | ||
257 | - | func | |
259 | + | func bc (aX) = (aX + "Out_swap_feePart") | |
258 | 260 | ||
259 | 261 | ||
260 | - | func | |
262 | + | func bd () = "swaps_timeframe" | |
261 | 263 | ||
262 | 264 | ||
263 | - | func | |
265 | + | func be () = "min_BR_protection_level" | |
264 | 266 | ||
265 | 267 | ||
266 | - | func | |
268 | + | func bf (aX) = valueOrElse(getInteger(this, aW(aX)), 0) | |
267 | 269 | ||
268 | 270 | ||
269 | - | func | |
271 | + | func bg () = valueOrElse(getInteger(this, bd()), 1440) | |
270 | 272 | ||
271 | 273 | ||
272 | - | func | |
274 | + | func bh (aX) = valueOrElse(getInteger(this, aY(aX)), 0) | |
273 | 275 | ||
274 | 276 | ||
275 | - | func | |
277 | + | func bi (aX,aN) = valueOrElse(getInteger(this, aZ(aX, aN)), 0) | |
276 | 278 | ||
277 | 279 | ||
278 | - | func | |
280 | + | func bj (aX) = valueOrElse(getInteger(this, ba(aX)), 1440) | |
279 | 281 | ||
280 | 282 | ||
281 | - | func | |
283 | + | func bk () = valueOrElse(getInteger(this, bb()), 1) | |
282 | 284 | ||
283 | 285 | ||
284 | - | func | |
286 | + | func bl (bm) = makeString(["%s%s", "swapUserSpentInPeriod", bm], z) | |
285 | 287 | ||
286 | 288 | ||
287 | - | func | |
289 | + | func bn (bm) = makeString(["%s%s", "userLastSwapHeight", bm], z) | |
288 | 290 | ||
289 | 291 | ||
290 | - | func | |
292 | + | func bo (bp,bq) = fraction(fraction(bp, D, bq), B, C) | |
291 | 293 | ||
292 | 294 | ||
293 | - | func | |
295 | + | func br (bp,bq) = fraction(fraction(bp, bq, D), C, B) | |
294 | 296 | ||
295 | 297 | ||
296 | - | func | |
298 | + | func bs (bp,bq) = br(bp, bq) | |
297 | 299 | ||
298 | 300 | ||
299 | - | func | |
301 | + | func bt (bu) = split(bu, ",") | |
300 | 302 | ||
301 | 303 | ||
302 | - | func | |
304 | + | func bv (aX,bw) = throw(((("The specified amount in " + aX) + " swap is less than the required minimum of ") + toString(bw))) | |
303 | 305 | ||
304 | 306 | ||
305 | - | func | |
307 | + | func bx () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
306 | 308 | ||
307 | 309 | ||
308 | - | func | |
310 | + | func by (aI,bz,bA,bB,bC) = throw(((((((((("invalid price history index: index=" + toString(aI)) + " priceIndex=") + toString(bz)) + " indexHeight=") + toString(bA)) + " unlockHeight=") + toString(bB)) + " prevIndexHeight=") + toString(bC))) | |
309 | 311 | ||
310 | 312 | ||
311 | - | let | |
313 | + | let bD = fromBase58String(g(al)) | |
312 | 314 | ||
313 | - | let | |
315 | + | let bz = i(ad, aD) | |
314 | 316 | ||
315 | - | let | |
317 | + | let bE = k(ad, aE) | |
316 | 318 | ||
317 | - | let | |
319 | + | let bF = fromBase58String(g(ax)) | |
318 | 320 | ||
319 | - | let | |
321 | + | let bG = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
320 | 322 | ||
321 | - | let | |
323 | + | let bH = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
322 | 324 | ||
323 | - | let | |
325 | + | let bI = this | |
324 | 326 | ||
325 | - | let | |
327 | + | let bJ = i(ad, aC) | |
326 | 328 | ||
327 | - | func | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | if (if (( | |
335 | - | then ( | |
329 | + | func bK (bL) = { | |
330 | + | let bM = 100000 | |
331 | + | let bN = 1000 | |
332 | + | let bO = br(bM, bJ) | |
333 | + | let bP = (bO * 2) | |
334 | + | let bQ = fraction(bO, bN, 100) | |
335 | + | let bR = value(bL.minSponsoredAssetFee) | |
336 | + | if (if ((bR >= bP)) | |
337 | + | then (bQ >= bR) | |
336 | 338 | else false) | |
337 | - | then ( | |
339 | + | then (bL.assetId == bD) | |
338 | 340 | else false | |
339 | 341 | } | |
340 | 342 | ||
341 | 343 | ||
342 | - | func | |
344 | + | func bS (aG) = i(ad, aF(aG)) | |
343 | 345 | ||
344 | 346 | ||
345 | - | func | |
347 | + | func bT (aI) = i(ad, aH(aI)) | |
346 | 348 | ||
347 | 349 | ||
348 | - | func | |
350 | + | func bU (bm) = makeString(["%s%s%s", "paramByUser", bm, "amount"], z) | |
349 | 351 | ||
350 | 352 | ||
351 | - | let | |
353 | + | let bV = 1 | |
352 | 354 | ||
353 | - | let | |
355 | + | let bW = 2 | |
354 | 356 | ||
355 | - | let | |
357 | + | let bX = 3 | |
356 | 358 | ||
357 | - | let | |
359 | + | let bY = 7 | |
358 | 360 | ||
359 | - | let | |
361 | + | let bZ = 8 | |
360 | 362 | ||
361 | - | let | |
363 | + | let ca = 11 | |
362 | 364 | ||
363 | - | let | |
365 | + | let cb = 15 | |
364 | 366 | ||
365 | - | let | |
367 | + | let cc = 16 | |
366 | 368 | ||
367 | - | func | |
369 | + | func cd (bm,ce) = makeString(["%s%s", bm, ce], z) | |
368 | 370 | ||
369 | 371 | ||
370 | - | func | |
372 | + | func cf (aX,cg,ch,bq,ci,cj,ck,cl,cm,cn,co,cp,aI,cq,cr,cs,ct,cu,cv) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d%s", aX, cg, ch, bq, ci, cj, ck, cl, cm, cn, co, cp, aI, cq, cr, cs, ct, cu, cv], z) | |
371 | 373 | ||
372 | 374 | ||
373 | - | func | |
375 | + | func cw (aX,cx,co) = cf(aX, "PENDING", toString(cx), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(co), "0", "0", "NULL", "0", "0", "0", "0", "") | |
374 | 376 | ||
375 | 377 | ||
376 | - | func | |
378 | + | func cy (cz,bq,ci,cj,cp,aI,cq,ct,cu,cv) = cf(cz[bV], "FINISHED", cz[bX], toString(bq), toString(ci), toString(cj), cz[bY], cz[bZ], toString(height), toString(lastBlock.timestamp), cz[ca], toString(cp), toString(aI), cq, cz[cb], cz[cc], toString(ct), toString(cu), cv) | |
377 | 379 | ||
378 | 380 | ||
379 | - | func | |
380 | - | let | |
381 | - | split(valueOrErrorMessage(getString(this, | |
381 | + | func cA (bm,cB) = { | |
382 | + | let cC = cd(bm, cB) | |
383 | + | split(valueOrErrorMessage(getString(this, cC), ("no swap data for " + cC)), z) | |
382 | 384 | } | |
383 | 385 | ||
384 | 386 | ||
385 | - | func | |
386 | - | let | |
387 | - | [( | |
387 | + | func cD (cE,cF,cG) = { | |
388 | + | let cH = fraction(cE, cG, C) | |
389 | + | [(cE - cH), cH] | |
388 | 390 | } | |
389 | 391 | ||
390 | 392 | ||
391 | - | func | |
392 | - | then -( | |
393 | - | else | |
393 | + | func cI (cJ) = if ((0 > cJ)) | |
394 | + | then -(cJ) | |
395 | + | else cJ | |
394 | 396 | ||
395 | 397 | ||
396 | - | func | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | if (if (( | |
398 | + | func cK (cL) = { | |
399 | + | let cM = ((wavesBalance(bI).available - cL) - aL()) | |
400 | + | let cN = f(aS(0)) | |
401 | + | let cO = f(aS(1)) | |
402 | + | let cP = (cM + cN) | |
403 | + | let cQ = (cM + cO) | |
404 | + | if (if ((cP > 0)) | |
403 | 405 | then true | |
404 | - | else ( | |
406 | + | else (cQ > 0)) | |
405 | 407 | then { | |
406 | - | let | |
407 | - | let | |
408 | - | if (( | |
409 | - | then $Tuple2(0, | |
410 | - | else $Tuple2(1, | |
408 | + | let cR = cI((cP - cO)) | |
409 | + | let cS = cI((cQ - cN)) | |
410 | + | if ((cS >= cR)) | |
411 | + | then $Tuple2(0, cP) | |
412 | + | else $Tuple2(1, cQ) | |
411 | 413 | } | |
412 | 414 | else $Tuple2(-1, 0) | |
413 | 415 | } | |
414 | 416 | ||
415 | 417 | ||
416 | - | func | |
418 | + | func cT (r) = if ((r.caller != this)) | |
417 | 419 | then throw("Permission denied: this contract only allowed") | |
418 | 420 | else true | |
419 | 421 | ||
420 | 422 | ||
421 | - | func | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | if (( | |
423 | + | func cU (cL) = { | |
424 | + | let cV = cK(cL) | |
425 | + | let aP = cV._1 | |
426 | + | let cW = cV._2 | |
427 | + | if ((cW > 0)) | |
426 | 428 | then { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | then [LeaseCancel(value( | |
429 | + | let cX = aO(aP) | |
430 | + | let cY = getBinary(this, cX) | |
431 | + | let cZ = if (isDefined(cY)) | |
432 | + | then [LeaseCancel(value(cY))] | |
431 | 433 | else nil | |
432 | - | let | |
433 | - | let | |
434 | - | ( | |
434 | + | let da = aS(aP) | |
435 | + | let db = Lease(aK(aP), cW) | |
436 | + | (cZ ++ [db, BinaryEntry(cX, d(db)), IntegerEntry(aS(aP), cW)]) | |
435 | 437 | } | |
436 | 438 | else nil | |
437 | 439 | } | |
438 | 440 | ||
439 | 441 | ||
440 | - | func | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | $Tuple5( | |
442 | + | func dc (dd) = { | |
443 | + | let aR = aK(dd) | |
444 | + | let de = aS(dd) | |
445 | + | let df = f(de) | |
446 | + | let dg = aO(dd) | |
447 | + | let dh = value(getBinary(this, dg)) | |
448 | + | $Tuple5(aR, de, df, dg, dh) | |
447 | 449 | } | |
448 | 450 | ||
449 | 451 | ||
450 | - | func dg (aW,dh,di,dj,dk) = { | |
451 | - | let dl = dk._2 | |
452 | - | let dm = dk._3 | |
453 | - | let dn = dk._6 | |
454 | - | let do = dk._7 | |
455 | - | let bv = be(aW) | |
456 | - | let dp = bg(aW) | |
457 | - | let dq = bh(aW, di) | |
458 | - | let aQ = aI(0) | |
459 | - | let dr = bR(bS(by)) | |
460 | - | let ds = (aQ == di) | |
461 | - | let dt = if (ds) | |
462 | - | then bj() | |
463 | - | else bi(aW) | |
464 | - | let cn = (height + dt) | |
465 | - | let du = if ((aW == "neutrino")) | |
466 | - | then dh | |
467 | - | else bq(dh, dr) | |
468 | - | let dv = if ((aW == "neutrino")) | |
469 | - | then do | |
470 | - | else bq(dn, dr) | |
471 | - | if ((bv > dh)) | |
472 | - | then bu(aW, bv) | |
473 | - | else if (if (!(ds)) | |
474 | - | then (dl > 0) | |
452 | + | func di (aX,dj,dk,dl) = { | |
453 | + | let dm = x(invoke(this, "swapParamsByUserSYSREADONLY", [dk, 0], nil)) | |
454 | + | let dn = dm._2 | |
455 | + | let do = dm._3 | |
456 | + | let dp = dm._6 | |
457 | + | let dq = dm._7 | |
458 | + | let bw = bf(aX) | |
459 | + | let dr = bh(aX) | |
460 | + | let ds = bi(aX, dk) | |
461 | + | let aR = aJ(0) | |
462 | + | let dt = bS(bT(bz)) | |
463 | + | let du = (aR == dk) | |
464 | + | let dv = if (du) | |
465 | + | then bk() | |
466 | + | else bj(aX) | |
467 | + | let co = (height + dv) | |
468 | + | let dw = if ((aX == "waves")) | |
469 | + | then br(dj, dt) | |
470 | + | else dj | |
471 | + | let dx = if ((aX == "waves")) | |
472 | + | then br(dp, dt) | |
473 | + | else dq | |
474 | + | if ((bw > dj)) | |
475 | + | then bv(aX, bw) | |
476 | + | else if (if (!(du)) | |
477 | + | then (dn > 0) | |
475 | 478 | else false) | |
476 | - | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + | |
477 | - | else if (if (!( | |
478 | - | then ( | |
479 | + | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + do)))) | |
480 | + | else if (if (!(du)) | |
481 | + | then (dw > dx) | |
479 | 482 | else false) | |
480 | - | then throw(((("You have exceeded your swap limit! Requested: " + toString( | |
481 | - | else if ( | |
482 | - | then | |
483 | + | then throw(((("You have exceeded your swap limit! Requested: " + toString(dw)) + ", available: ") + toString(dx))) | |
484 | + | else if (bE) | |
485 | + | then bx() | |
483 | 486 | else { | |
484 | - | let | |
485 | - | then | |
487 | + | let dy = if ((aX == "waves")) | |
488 | + | then cU(0) | |
486 | 489 | else nil | |
487 | - | $Tuple2(([IntegerEntry( | |
490 | + | $Tuple2(([IntegerEntry(bl(dk), dw), IntegerEntry(bn(dk), height), IntegerEntry(aZ(aX, dk), (ds + dj)), IntegerEntry(aM(dk), co), IntegerEntry(aY(aX), (dr + dj)), StringEntry(cd(dk, dl), cw(aX, dj, co))] ++ dy), unit) | |
488 | 491 | } | |
489 | 492 | } | |
490 | 493 | ||
491 | 494 | ||
492 | - | let | |
495 | + | let dz = 0 | |
493 | 496 | ||
494 | - | let | |
497 | + | let dA = 1 | |
495 | 498 | ||
496 | - | let | |
499 | + | let dB = 2 | |
497 | 500 | ||
498 | - | let | |
501 | + | let dC = 3 | |
499 | 502 | ||
500 | - | let | |
503 | + | let dD = 4 | |
501 | 504 | ||
502 | - | let | |
505 | + | let dE = 5 | |
503 | 506 | ||
504 | - | let | |
507 | + | let dF = 6 | |
505 | 508 | ||
506 | - | let | |
509 | + | let dG = 7 | |
507 | 510 | ||
508 | - | let | |
511 | + | let dH = 8 | |
509 | 512 | ||
510 | - | let | |
513 | + | let dI = 9 | |
511 | 514 | ||
512 | - | let | |
515 | + | let dJ = 10 | |
513 | 516 | ||
514 | - | let | |
517 | + | let dK = 11 | |
515 | 518 | ||
516 | - | let | |
519 | + | let dL = 12 | |
517 | 520 | ||
518 | - | let | |
521 | + | let dM = 13 | |
519 | 522 | ||
520 | - | let | |
523 | + | let dN = 0 | |
521 | 524 | ||
522 | - | let | |
525 | + | let dO = 1 | |
523 | 526 | ||
524 | - | let | |
527 | + | let dP = 2 | |
525 | 528 | ||
526 | - | let | |
529 | + | let dQ = 3 | |
527 | 530 | ||
528 | - | let | |
531 | + | let dR = 4 | |
529 | 532 | ||
530 | - | let | |
533 | + | let dS = 5 | |
531 | 534 | ||
532 | - | let | |
535 | + | let dT = 6 | |
533 | 536 | ||
534 | - | let | |
537 | + | let dU = 7 | |
535 | 538 | ||
536 | - | let | |
539 | + | let dV = 8 | |
537 | 540 | ||
538 | - | let | |
541 | + | let dW = 9 | |
539 | 542 | ||
540 | - | let | |
543 | + | let dX = 10 | |
541 | 544 | ||
542 | - | func | |
543 | - | let | |
544 | - | $Tuple10( | |
545 | + | func dY (dZ,bq) = { | |
546 | + | let ea = br(dZ, bq) | |
547 | + | $Tuple10(ea, bD, 0, unit, 0, bq, dZ, 0, 0, 0) | |
545 | 548 | } | |
546 | 549 | ||
547 | 550 | ||
548 | - | func | |
549 | - | let | |
550 | - | let | |
551 | + | func eb (ec,bq,cu,ed,ee) = { | |
552 | + | let ef = valueOrElse(getInteger(this, be()), F) | |
553 | + | let eg = if ((ef >= cu)) | |
551 | 554 | then 0 | |
552 | - | else fraction(( | |
553 | - | let | |
554 | - | then | |
555 | - | else | |
556 | - | let | |
557 | - | then fraction(( | |
555 | + | else fraction((ed - fraction(ef, ee, C)), C, (C - ef)) | |
556 | + | let eh = if ((ec > eg)) | |
557 | + | then eg | |
558 | + | else ec | |
559 | + | let ei = if ((ec > eg)) | |
560 | + | then fraction((ec - eg), cu, C) | |
558 | 561 | else 0 | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | $Tuple10( | |
562 | + | let ej = (eh + ei) | |
563 | + | let ek = (ec - ej) | |
564 | + | let ea = bo(ej, bq) | |
565 | + | $Tuple10(ea, unit, ek, bD, ea, bq, ej, eg, eh, ei) | |
563 | 566 | } | |
564 | 567 | ||
565 | 568 | ||
566 | - | func | |
567 | - | let | |
568 | - | if (if ((0 > | |
569 | + | func el (aX,ch,bq,em) = { | |
570 | + | let en = valueOrElse(getInteger(this, bc(aX)), E) | |
571 | + | if (if ((0 > en)) | |
569 | 572 | then true | |
570 | - | else ( | |
571 | - | then throw(((("invalid outFeePart config for " + | |
573 | + | else (en >= C)) | |
574 | + | then throw(((("invalid outFeePart config for " + aX) + " swap: outFeePart=") + toString(en))) | |
572 | 575 | else { | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | then | |
580 | - | else if (( | |
581 | - | then | |
582 | - | else throw(("Unsupported swap type " + | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
576 | + | let ef = valueOrElse(getInteger(this, be()), F) | |
577 | + | let eo = q(em[dH]) | |
578 | + | let ed = q(em[dD]) | |
579 | + | let ee = q(em[dE]) | |
580 | + | let ep = q(em[dM]) | |
581 | + | let eq = if ((aX == "waves")) | |
582 | + | then dY(ch, bq) | |
583 | + | else if ((aX == "outMulti")) | |
584 | + | then eb(ch, ep, eo, ed, ee) | |
585 | + | else throw(("Unsupported swap type " + aX)) | |
586 | + | let ea = eq._1 | |
587 | + | let er = eq._2 | |
588 | + | let es = eq._3 | |
589 | + | let et = eq._4 | |
590 | + | let eu = eq._5 | |
591 | + | let ev = eq._6 | |
592 | + | let ew = cD(ea, es, en) | |
593 | + | let ex = ew[G] | |
594 | + | let ey = ew[H] | |
595 | + | let ct = if ((0 >= es)) | |
593 | 596 | then 0 | |
594 | 597 | else { | |
595 | - | let | |
596 | - | q( | |
598 | + | let ez = l(invoke(ae, "surfFunctionREADONLY", [es, et], nil)) | |
599 | + | q(ez[dN]) | |
597 | 600 | } | |
598 | - | $Tuple8( | |
601 | + | $Tuple8(ex, er, ct, es, eu, ey, ea, ev) | |
599 | 602 | } | |
600 | 603 | } | |
601 | 604 | ||
602 | 605 | ||
603 | - | func | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | if ( | |
619 | - | then | |
620 | - | else if (( | |
606 | + | func eA (eB,aI,cB,cq,em) = { | |
607 | + | let bm = addressFromStringValue(eB) | |
608 | + | let cz = cA(eB, cB) | |
609 | + | let co = parseIntValue(cz[ca]) | |
610 | + | let aX = cz[bV] | |
611 | + | let ch = parseIntValue(cz[bX]) | |
612 | + | let eC = cz[bW] | |
613 | + | let ck = parseIntValue(cz[bY]) | |
614 | + | let en = valueOrElse(getInteger(this, bc(aX)), E) | |
615 | + | let dr = bh(aX) | |
616 | + | let ds = bi(aX, eB) | |
617 | + | let bB = co | |
618 | + | let bA = bT(aI) | |
619 | + | let bC = bT((aI - 1)) | |
620 | + | let dt = bS(bA) | |
621 | + | if (bE) | |
622 | + | then bx() | |
623 | + | else if ((eC != "PENDING")) | |
621 | 624 | then throw("swap has been already processed") | |
622 | - | else if (( | |
623 | - | then throw((("please wait for: " + toString( | |
624 | - | else if (if (if (( | |
625 | + | else if ((bB > height)) | |
626 | + | then throw((("please wait for: " + toString(bB)) + " block height to withdraw funds")) | |
627 | + | else if (if (if ((aI > bz)) | |
625 | 628 | then true | |
626 | - | else ( | |
629 | + | else (bB > bA)) | |
627 | 630 | then true | |
628 | - | else if (( | |
629 | - | then ( | |
631 | + | else if ((bC != 0)) | |
632 | + | then (bC >= bB) | |
630 | 633 | else false) | |
631 | - | then | |
634 | + | then by(aI, bz, bA, bB, bC) | |
632 | 635 | else { | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ((0 >= | |
636 | + | let eD = el(aX, ch, dt, em) | |
637 | + | let ci = eD._1 | |
638 | + | let er = eD._2 | |
639 | + | let ct = eD._3 | |
640 | + | let eu = eD._5 | |
641 | + | let cj = eD._6 | |
642 | + | let ea = eD._7 | |
643 | + | let ev = eD._8 | |
644 | + | if ((0 >= ea)) | |
642 | 645 | then throw("balance equals zero") | |
643 | 646 | else { | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | + | let eo = q(em[dH]) | |
648 | + | let eE = [IntegerEntry(aZ(aX, eB), (ds - ch)), IntegerEntry(aY(aX), (dr - ch)), ScriptTransfer(bm, ci, er), StringEntry(cd(eB, cB), cy(cz, ev, ci, cj, bB, aI, cq, ct, eo, "TODO"))] | |
649 | + | let eF = if ((ct > 0)) | |
647 | 650 | then { | |
648 | - | let | |
649 | - | if (( | |
651 | + | let eG = invoke(ai, "issueSurf", [ct, eB], nil) | |
652 | + | if ((eG == eG)) | |
650 | 653 | then 0 | |
651 | 654 | else throw("Strict value is not equal to itself.") | |
652 | 655 | } | |
653 | 656 | else 0 | |
654 | - | if (( | |
655 | - | then $Tuple3( | |
657 | + | if ((eF == eF)) | |
658 | + | then $Tuple3(eE, AttachedPayment(er, cj), eu) | |
656 | 659 | else throw("Strict value is not equal to itself.") | |
657 | 660 | } | |
658 | 661 | } | |
659 | 662 | } | |
660 | 663 | ||
661 | 664 | ||
662 | - | func | |
665 | + | func eH () = "%s__applyInProgress" | |
663 | 666 | ||
664 | 667 | ||
665 | - | func | |
668 | + | func eI (eJ) = ("%s%d__proposalData__" + toString(eJ)) | |
666 | 669 | ||
667 | 670 | ||
668 | - | let | |
671 | + | let eK = 9 | |
669 | 672 | ||
670 | - | func | |
671 | - | let n = | |
673 | + | func eL (bL) = { | |
674 | + | let n = bL | |
672 | 675 | if ($isInstanceOf(n, "Order")) | |
673 | 676 | then { | |
674 | - | let | |
677 | + | let eM = n | |
675 | 678 | throw("Orders aren't allowed") | |
676 | 679 | } | |
677 | 680 | else if (if ($isInstanceOf(n, "DataTransaction")) | |
706 | 709 | then true | |
707 | 710 | else $isInstanceOf(n, "ReissueTransaction")) | |
708 | 711 | then { | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | if (!(isDefined(indexOf( | |
714 | - | then throw(((("Unknown txId: " + | |
712 | + | let eN = n | |
713 | + | let ce = toBase58String(eN.id) | |
714 | + | let eJ = valueOrErrorMessage(getInteger(ak, eH()), "Apply is not happening") | |
715 | + | let eO = split(split(a(ak, eI(eJ)), z)[eK], A) | |
716 | + | if (!(isDefined(indexOf(eO, ce)))) | |
717 | + | then throw(((("Unknown txId: " + ce) + " for proposalId=") + toString(eJ))) | |
715 | 718 | else true | |
716 | 719 | } | |
717 | 720 | else throw("Match error") | |
719 | 722 | ||
720 | 723 | ||
721 | 724 | @Callable(r) | |
722 | - | func | |
723 | - | let | |
724 | - | if (( | |
725 | + | func constructorV1 (eP,eQ,eR,eS,eT,eU,eV,eW,eX,eY,eZ,fa,fb) = { | |
726 | + | let fc = cT(r) | |
727 | + | if ((fc == fc)) | |
725 | 728 | then if ((size(r.payments) != 0)) | |
726 | 729 | then throw("no payments allowed") | |
727 | - | else [StringEntry(al, | |
730 | + | else [StringEntry(al, eP), StringEntry(am, eQ), StringEntry(an, eR), StringEntry(ap, eS), StringEntry(aq, eT), StringEntry(ax, eU), IntegerEntry(at, eV), IntegerEntry(au, eW), IntegerEntry(av, eX), IntegerEntry(aw, eY), IntegerEntry(ay, eZ), IntegerEntry(az, fa), IntegerEntry(aA, fb)] | |
728 | 731 | else throw("Strict value is not equal to itself.") | |
729 | 732 | } | |
730 | 733 | ||
731 | 734 | ||
732 | 735 | ||
733 | 736 | @Callable(r) | |
734 | - | func constructorV2 (ae,af, | |
735 | - | let | |
736 | - | if (( | |
737 | + | func constructorV2 (ae,af,fd) = { | |
738 | + | let fc = cT(r) | |
739 | + | if ((fc == fc)) | |
737 | 740 | then if ((size(r.payments) != 0)) | |
738 | 741 | then throw("no payments allowed") | |
739 | - | else [StringEntry(as, ae), StringEntry(ao, af), IntegerEntry( | |
742 | + | else [StringEntry(as, ae), StringEntry(ao, af), IntegerEntry(bd(), fd)] | |
740 | 743 | else throw("Strict value is not equal to itself.") | |
741 | 744 | } | |
742 | 745 | ||
746 | 749 | func swapWavesToNeutrino () = if ((size(r.payments) != 1)) | |
747 | 750 | then throw("swapWavesToNeutrino require only one payment") | |
748 | 751 | else { | |
749 | - | let | |
750 | - | if (isDefined( | |
752 | + | let fe = value(r.payments[0]) | |
753 | + | if (isDefined(fe.assetId)) | |
751 | 754 | then throw("Only Waves token is allowed for swapping.") | |
752 | 755 | else { | |
753 | - | let bl = toString(r.caller) | |
754 | - | let dj = toBase58String(r.transactionId) | |
755 | - | let fc = x(invoke(this, "swapParamsByUserSYSREADONLY", [bl, 0], nil)) | |
756 | - | let fd = dg("waves", fb.amount, bl, dj, fc) | |
757 | - | fd | |
756 | + | let bm = toString(r.caller) | |
757 | + | let dl = toBase58String(r.transactionId) | |
758 | + | di("waves", fe.amount, bm, dl) | |
758 | 759 | } | |
759 | 760 | } | |
760 | 761 | ||
761 | 762 | ||
762 | 763 | ||
763 | 764 | @Callable(r) | |
764 | - | func | |
765 | - | then throw(" | |
765 | + | func swapNeutrinoToBasket () = if ((size(r.payments) != 1)) | |
766 | + | then throw("swapNeutrinoToBasket require only one payment") | |
766 | 767 | else { | |
767 | - | let | |
768 | - | if (( | |
768 | + | let fe = value(r.payments[0]) | |
769 | + | if ((fe.assetId != bD)) | |
769 | 770 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
770 | 771 | else { | |
771 | - | let bl = toString(r.caller) | |
772 | - | let dj = toBase58String(r.transactionId) | |
773 | - | let fc = x(invoke(this, "swapParamsByUserSYSREADONLY", [bl, 0], nil)) | |
774 | - | let fd = dg("neutrino", fb.amount, bl, dj, fc) | |
775 | - | fd | |
772 | + | let bm = toString(r.caller) | |
773 | + | let dl = toBase58String(r.transactionId) | |
774 | + | di("outMulti", fe.amount, bm, dl) | |
776 | 775 | } | |
777 | 776 | } | |
778 | 777 | ||
779 | 778 | ||
780 | 779 | ||
781 | 780 | @Callable(r) | |
782 | - | func withdraw ( | |
783 | - | let | |
781 | + | func withdraw (eB,aI,cB) = { | |
782 | + | let ce = toBase58String(r.transactionId) | |
784 | 783 | if ((size(r.payments) != 0)) | |
785 | 784 | then throw("no payments allowed") | |
786 | 785 | else { | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | if (( | |
786 | + | let em = l(invoke(ae, "calcNeutinoMetricsREADONLY", nil, nil)) | |
787 | + | let eo = q(em[dH]) | |
788 | + | let ff = eA(eB, aI, cB, ce, em) | |
789 | + | let eE = ff._1 | |
790 | + | let fg = ff._2 | |
791 | + | let eu = ff._3 | |
792 | + | let fh = invoke(this, "internalUnleaseAndLease", [eu], nil) | |
793 | + | if ((fh == fh)) | |
795 | 794 | then { | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | then fraction( | |
795 | + | let fi = l(invoke(ah, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil)) | |
796 | + | let fj = q(fi[1]) | |
797 | + | let fk = q(l(fi[3])[3]) | |
798 | + | let fl = if ((fj != 0)) | |
799 | + | then fraction(fg.amount, fk, fj) | |
801 | 800 | else 0 | |
802 | - | let | |
803 | - | then fraction( | |
801 | + | let fm = if ((fj != 0)) | |
802 | + | then fraction(fg.amount, (C - eo), C) | |
804 | 803 | else 0 | |
805 | - | let | |
806 | - | let | |
807 | - | let | |
804 | + | let fn = max([fl, fm]) | |
805 | + | let fo = (fg.amount - fn) | |
806 | + | let fp = if ((fn > 0)) | |
808 | 807 | then { | |
809 | - | let | |
810 | - | if (( | |
808 | + | let fq = invoke(ag, "deposit", nil, [AttachedPayment(fg.assetId, fn)]) | |
809 | + | if ((fq == fq)) | |
811 | 810 | then nil | |
812 | 811 | else throw("Strict value is not equal to itself.") | |
813 | 812 | } | |
814 | 813 | else nil | |
815 | - | if (( | |
814 | + | if ((fp == fp)) | |
816 | 815 | then { | |
817 | - | let | |
816 | + | let fr = if ((fo > 0)) | |
818 | 817 | then { | |
819 | - | let | |
820 | - | if (( | |
818 | + | let fs = invoke(af, "deposit", nil, [AttachedPayment(fg.assetId, fo)]) | |
819 | + | if ((fs == fs)) | |
821 | 820 | then nil | |
822 | 821 | else throw("Strict value is not equal to itself.") | |
823 | 822 | } | |
824 | 823 | else nil | |
825 | - | if (( | |
826 | - | then | |
824 | + | if ((fr == fr)) | |
825 | + | then eE | |
827 | 826 | else throw("Strict value is not equal to itself.") | |
828 | 827 | } | |
829 | 828 | else throw("Strict value is not equal to itself.") | |
835 | 834 | ||
836 | 835 | ||
837 | 836 | @Callable(r) | |
838 | - | func internalUnleaseAndLease ( | |
837 | + | func internalUnleaseAndLease (cL) = if ((r.caller != this)) | |
839 | 838 | then throw("internalUnleaseAndLease is not public method") | |
840 | - | else | |
839 | + | else cU(cL) | |
841 | 840 | ||
842 | 841 | ||
843 | 842 | ||
844 | 843 | @Callable(r) | |
845 | - | func transferUsdnToUser ( | |
844 | + | func transferUsdnToUser (bp,ft) = if ((r.caller != ai)) | |
846 | 845 | then throw("Only auction contract is authorized") | |
847 | - | else [ScriptTransfer(addressFromStringValue( | |
846 | + | else [ScriptTransfer(addressFromStringValue(ft), bp, bD)] | |
848 | 847 | ||
849 | 848 | ||
850 | 849 | ||
853 | 852 | then (r.caller != ak) | |
854 | 853 | else false) | |
855 | 854 | then throw("Currently only auction and governance contracts are allowed to call") | |
856 | - | else $Tuple2( | |
855 | + | else $Tuple2(cU(0), "success") | |
857 | 856 | ||
858 | 857 | ||
859 | 858 | ||
860 | 859 | @Callable(r) | |
861 | - | func approveLeasings ( | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | let | |
868 | - | let | |
869 | - | if (isDefined( | |
870 | - | then throw((("group " + toString( | |
860 | + | func approveLeasings (fu,aV,fv) = { | |
861 | + | let fw = [0, 1, 2, 3, 4, 5, 6, 7] | |
862 | + | let fx = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
863 | + | let fy = fromBase58String(fx) | |
864 | + | let fz = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE") | |
865 | + | let fA = addressFromStringValue(fz) | |
866 | + | let fB = aU(aV) | |
867 | + | let fC = getString(this, fB) | |
868 | + | if (isDefined(fC)) | |
869 | + | then throw((("group " + toString(aV)) + " already initialized")) | |
871 | 870 | else { | |
872 | - | let | |
873 | - | let | |
874 | - | if ((r.callerPublicKey != | |
871 | + | let fD = split(fu, z) | |
872 | + | let fE = size(fw) | |
873 | + | if ((r.callerPublicKey != fy)) | |
875 | 874 | then throw("approveLeasings not authorized") | |
876 | 875 | else { | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | let | |
884 | - | let | |
885 | - | if (( | |
876 | + | let fF = dc(0) | |
877 | + | let fG = fF._1 | |
878 | + | let fH = fF._2 | |
879 | + | let fI = fF._3 | |
880 | + | let fJ = fF._4 | |
881 | + | let fK = fF._5 | |
882 | + | let fL = Lease(fG, (fI - (fv * fE))) | |
883 | + | let fM = invoke(fA, "validateAndApproveLeasings", [fu], nil) | |
884 | + | if ((fM == fM)) | |
886 | 885 | then { | |
887 | - | func | |
888 | - | let | |
889 | - | let | |
890 | - | ( | |
886 | + | func fN (fO,r) = { | |
887 | + | let fP = fD[r] | |
888 | + | let fQ = Lease(addressFromStringValue(fP), fv) | |
889 | + | (fO ++ [fQ, BinaryEntry(aQ(fP), d(fQ)), IntegerEntry(aT(fP), fv)]) | |
891 | 890 | } | |
892 | 891 | ||
893 | - | ([StringEntry( | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | func | |
898 | - | then | |
899 | - | else | |
892 | + | ([StringEntry(fB, fu), BinaryEntry(fJ, d(fL)), IntegerEntry(fH, fL.amount), LeaseCancel(fK), fL] ++ { | |
893 | + | let fR = fw | |
894 | + | let fS = size(fR) | |
895 | + | let fT = nil | |
896 | + | func fU (fV,fW) = if ((fW >= fS)) | |
897 | + | then fV | |
898 | + | else fN(fV, fR[fW]) | |
900 | 899 | ||
901 | - | func | |
902 | - | then | |
900 | + | func fX (fV,fW) = if ((fW >= fS)) | |
901 | + | then fV | |
903 | 902 | else throw("List size exceeds 8") | |
904 | 903 | ||
905 | - | | |
904 | + | fX(fU(fU(fU(fU(fU(fU(fU(fU(fT, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
906 | 905 | }) | |
907 | 906 | } | |
908 | 907 | else throw("Strict value is not equal to itself.") | |
913 | 912 | ||
914 | 913 | ||
915 | 914 | @Callable(r) | |
916 | - | func rebalanceLeasings ( | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | if ((r.callerPublicKey != | |
915 | + | func rebalanceLeasings (bp,aV) = { | |
916 | + | let fw = [0, 1, 2, 3, 4, 5, 6, 7] | |
917 | + | let fx = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
918 | + | let fy = fromBase58String(fx) | |
919 | + | let fB = aU(aV) | |
920 | + | let fu = a(this, fB) | |
921 | + | let fD = split(fu, z) | |
922 | + | if ((r.callerPublicKey != fy)) | |
924 | 923 | then throw("rebalanceLeasings not authorized") | |
925 | 924 | else { | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | func | |
935 | - | let | |
936 | - | let | |
937 | - | let | |
938 | - | let | |
939 | - | let | |
940 | - | let | |
941 | - | let | |
942 | - | ( | |
925 | + | let eu = ((bp / size(fD)) + 1) | |
926 | + | let fY = dc(0) | |
927 | + | let fG = fY._1 | |
928 | + | let fH = fY._2 | |
929 | + | let fI = fY._3 | |
930 | + | let fJ = fY._4 | |
931 | + | let fK = fY._5 | |
932 | + | let fL = Lease(fG, (fI + (eu * size(fD)))) | |
933 | + | func fZ (fO,r) = { | |
934 | + | let fP = fD[r] | |
935 | + | let ga = aQ(fP) | |
936 | + | let gb = getBinaryValue(this, ga) | |
937 | + | let gc = aT(fP) | |
938 | + | let fv = getIntegerValue(this, gc) | |
939 | + | let gd = LeaseCancel(value(gb)) | |
940 | + | let fQ = Lease(addressFromStringValue(fP), (fv - eu)) | |
941 | + | (fO ++ [LeaseCancel(value(gb)), fQ, BinaryEntry(ga, d(fQ)), IntegerEntry(gc, fQ.amount)]) | |
943 | 942 | } | |
944 | 943 | ||
945 | 944 | ({ | |
946 | - | let | |
947 | - | let | |
948 | - | let | |
949 | - | func | |
950 | - | then | |
951 | - | else | |
945 | + | let fR = fw | |
946 | + | let fS = size(fR) | |
947 | + | let fT = nil | |
948 | + | func fU (fV,fW) = if ((fW >= fS)) | |
949 | + | then fV | |
950 | + | else fZ(fV, fR[fW]) | |
952 | 951 | ||
953 | - | func | |
954 | - | then | |
952 | + | func fX (fV,fW) = if ((fW >= fS)) | |
953 | + | then fV | |
955 | 954 | else throw("List size exceeds 8") | |
956 | 955 | ||
957 | - | | |
958 | - | } ++ [BinaryEntry( | |
956 | + | fX(fU(fU(fU(fU(fU(fU(fU(fU(fT, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
957 | + | } ++ [BinaryEntry(fJ, d(fL)), IntegerEntry(fH, fL.amount), LeaseCancel(fK), fL]) | |
959 | 958 | } | |
960 | 959 | } | |
961 | 960 | ||
962 | 961 | ||
963 | 962 | ||
964 | 963 | @Callable(r) | |
965 | - | func swapParamsByUserSYSREADONLY ( | |
966 | - | let | |
967 | - | let | |
968 | - | let | |
969 | - | let | |
970 | - | let | |
971 | - | let | |
972 | - | let | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
964 | + | func swapParamsByUserSYSREADONLY (dk,ge) = { | |
965 | + | let fi = l(invoke(ah, "gnsbtInfoSYSREADONLY", [dk, 0, 0], nil)) | |
966 | + | let gf = (q(fi[0]) + ge) | |
967 | + | let fj = (q(fi[1]) + ge) | |
968 | + | let gg = l(invoke(ae, "calcSwapLimitREADONLY", [gf], nil)) | |
969 | + | let gh = q(gg[0]) | |
970 | + | let dp = q(gg[1]) | |
971 | + | let dq = q(gg[2]) | |
972 | + | let gi = valueOrElse(getInteger(this, bn(dk)), 0) | |
973 | + | let gj = bg() | |
974 | + | let gk = (height - gi) | |
975 | + | let gl = (gk >= gj) | |
976 | + | let gm = if (gl) | |
978 | 977 | then 0 | |
979 | - | else valueOrElse(getInteger(this, | |
980 | - | let | |
978 | + | else valueOrElse(getInteger(this, bl(dk)), 0) | |
979 | + | let do = if (gl) | |
981 | 980 | then 0 | |
982 | - | else ( | |
983 | - | $Tuple2(nil, $Tuple7( | |
981 | + | else (gj - gk) | |
982 | + | $Tuple2(nil, $Tuple7(gh, gm, do, gf, fj, dp, dq)) | |
984 | 983 | } | |
985 | 984 | ||
986 | 985 | ||
987 | 986 | ||
988 | 987 | @Callable(r) | |
989 | - | func calcWithdrawResultSYSREADONLY ( | |
990 | - | let | |
991 | - | $Tuple2(nil, | |
988 | + | func calcWithdrawResultSYSREADONLY (aX,ch,bq) = { | |
989 | + | let em = l(invoke(ae, "calcNeutinoMetricsREADONLY", nil, nil)) | |
990 | + | $Tuple2(nil, el(aX, ch, bq, em)) | |
992 | 991 | } | |
993 | 992 | ||
994 | 993 | ||
995 | 994 | ||
996 | 995 | @Callable(r) | |
997 | - | func replaceCommunityNode ( | |
998 | - | let | |
999 | - | let | |
1000 | - | if ((r.callerPublicKey != | |
996 | + | func replaceCommunityNode (gn,go,aV,gp) = { | |
997 | + | let fx = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
998 | + | let fy = fromBase58String(fx) | |
999 | + | if ((r.callerPublicKey != fy)) | |
1001 | 1000 | then throw("replaceCommunityNode not authorized") | |
1002 | 1001 | else { | |
1003 | - | let | |
1004 | - | let | |
1005 | - | if (!(contains( | |
1006 | - | then throw(((("Group " + toString( | |
1002 | + | let gq = aU(aV) | |
1003 | + | let gr = a(this, gq) | |
1004 | + | if (!(contains(gr, gn))) | |
1005 | + | then throw(((("Group " + toString(aV)) + " does not contain address ") + gn)) | |
1007 | 1006 | else { | |
1008 | - | let | |
1009 | - | if (( | |
1007 | + | let gs = invoke(aj, "replaceApprovedNode", [gn, go, aV, gp], nil) | |
1008 | + | if ((gs == gs)) | |
1010 | 1009 | then { | |
1011 | - | let | |
1012 | - | let | |
1013 | - | let | |
1014 | - | let | |
1015 | - | let | |
1016 | - | let | |
1017 | - | let | |
1018 | - | $Tuple2([LeaseCancel(getBinaryValue( | |
1010 | + | let gt = aQ(gn) | |
1011 | + | let gu = aT(gn) | |
1012 | + | let gv = getIntegerValue(gu) | |
1013 | + | let gw = aQ(gn) | |
1014 | + | let gx = aT(gn) | |
1015 | + | let gy = Lease(addressFromStringValue(go), gv) | |
1016 | + | let gz = makeString(split(gr, gn), go) | |
1017 | + | $Tuple2([LeaseCancel(getBinaryValue(gt)), DeleteEntry(gt), DeleteEntry(gu), StringEntry(gq, gz), gy, BinaryEntry(gw, d(gy)), IntegerEntry(gx, gv)], unit) | |
1019 | 1018 | } | |
1020 | 1019 | else throw("Strict value is not equal to itself.") | |
1021 | 1020 | } | |
1026 | 1025 | ||
1027 | 1026 | @Callable(r) | |
1028 | 1027 | func updateReservesAndNeutrinoSupply () = { | |
1029 | - | func | |
1028 | + | func gA (c) = { | |
1030 | 1029 | let n = getInteger(this, c) | |
1031 | 1030 | if ($isInstanceOf(n, "Int")) | |
1032 | 1031 | then { | |
1033 | - | let | |
1034 | - | | |
1032 | + | let fO = n | |
1033 | + | fO | |
1035 | 1034 | } | |
1036 | 1035 | else 0 | |
1037 | 1036 | } | |
1038 | 1037 | ||
1039 | - | let | |
1040 | - | let ac = | |
1041 | - | let | |
1042 | - | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", | |
1038 | + | let gB = l(invoke(ae, "calcNeutinoMetricsREADONLY", nil, nil)) | |
1039 | + | let ac = gA("updateReservesAndNeutrinoSupplyIdx") | |
1040 | + | let gC = (ac + 1) | |
1041 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", gC), IntegerEntry("reserve", q(gB[3])), IntegerEntry("neutrinoSupply", q(gB[5])), IntegerEntry("reservesInUsdn", br(q(gB[3]), q(gB[0]))), IntegerEntry("surplus", q(gB[6])), IntegerEntry("deficit", -(q(gB[6])))] | |
1043 | 1042 | } | |
1044 | 1043 | ||
1045 | 1044 | ||
1046 | 1045 | ||
1047 | 1046 | @Callable(r) | |
1048 | 1047 | func wavesBalancesVsPayment () = { | |
1049 | - | let | |
1050 | - | [IntegerEntry("wavesBalance_available", | |
1048 | + | let gD = wavesBalance(this) | |
1049 | + | [IntegerEntry("wavesBalance_available", gD.available), IntegerEntry("wavesBalance_regular", gD.regular), IntegerEntry("wavesBalance_generating", gD.generating), IntegerEntry("wavesBalance_effective", gD.effective), IntegerEntry("waves_payment", value(r.payments[0]).amount)] | |
1051 | 1050 | } | |
1052 | 1051 | ||
1053 | 1052 | ||
1054 | - | @Verifier( | |
1055 | - | func | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1053 | + | @Verifier(bL) | |
1054 | + | func gE () = { | |
1055 | + | let gF = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], z) | |
1056 | + | let gG = split(valueOrElse(getString(ad, "%s__multisig"), gF), z) | |
1057 | + | let gH = ((((if (sigVerify(bL.bodyBytes, bL.proofs[0], fromBase58String(gG[0]))) | |
1059 | 1058 | then 1 | |
1060 | - | else 0) + (if (sigVerify( | |
1059 | + | else 0) + (if (sigVerify(bL.bodyBytes, bL.proofs[1], fromBase58String(gG[1]))) | |
1061 | 1060 | then 1 | |
1062 | - | else 0)) + (if (sigVerify( | |
1061 | + | else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[2], fromBase58String(gG[2]))) | |
1063 | 1062 | then 1 | |
1064 | - | else 0)) + (if (sigVerify( | |
1063 | + | else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[3], fromBase58String(gG[3]))) | |
1065 | 1064 | then 2 | |
1066 | 1065 | else 0)) | |
1067 | - | if (if ( | |
1066 | + | if (if (bE) | |
1068 | 1067 | then (getStringValue(ad, "is_blocked_caller") == toString(ak)) | |
1069 | 1068 | else false) | |
1070 | - | then | |
1069 | + | then eL(bL) | |
1071 | 1070 | else { | |
1072 | - | let n = | |
1071 | + | let n = bL | |
1073 | 1072 | if ($isInstanceOf(n, "SponsorFeeTransaction")) | |
1074 | 1073 | then { | |
1075 | - | let | |
1076 | - | if ( | |
1077 | - | then ( | |
1074 | + | let gI = n | |
1075 | + | if (bK(gI)) | |
1076 | + | then (gH >= 3) | |
1078 | 1077 | else false | |
1079 | 1078 | } | |
1080 | - | else ( | |
1079 | + | else (gH >= 3) | |
1081 | 1080 | } | |
1082 | 1081 | } | |
1083 | 1082 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = valueOrErrorMessage(getString(b, c), makeString(["mandatory ", toString(b), ".", c, " is not defined"], "")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func d (e) = calculateLeaseId(e) | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func f (c) = valueOrElse(getInteger(this, c), 0) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func g (c) = valueOrElse(getString(this, c), "") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func h (c) = valueOrElse(getBoolean(this, c), false) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (b,c) = valueOrElse(getInteger(b, c), 0) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (b,c) = valueOrElse(getString(addressFromStringValue(b), c), "") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func k (b,c) = valueOrElse(getBoolean(b, c), false) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func l (m) = { | |
29 | 29 | let n = m | |
30 | 30 | if ($isInstanceOf(n, "List[Any]")) | |
31 | 31 | then { | |
32 | 32 | let e = n | |
33 | 33 | e | |
34 | 34 | } | |
35 | 35 | else throw("fail to cast into List[Any]") | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func o (m) = { | |
40 | 40 | let n = m | |
41 | 41 | if ($isInstanceOf(n, "String")) | |
42 | 42 | then { | |
43 | 43 | let p = n | |
44 | 44 | p | |
45 | 45 | } | |
46 | 46 | else throw("fail to cast into String") | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func q (m) = { | |
51 | 51 | let n = m | |
52 | 52 | if ($isInstanceOf(n, "Int")) | |
53 | 53 | then { | |
54 | 54 | let r = n | |
55 | 55 | r | |
56 | 56 | } | |
57 | 57 | else throw("fail to cast into Int") | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func s (t) = { | |
62 | 62 | let n = t | |
63 | 63 | if ($isInstanceOf(n, "ByteVector")) | |
64 | 64 | then { | |
65 | 65 | let u = n | |
66 | 66 | u | |
67 | 67 | } | |
68 | 68 | else throw("fail to cast into ByteVector") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func v (m) = { | |
73 | 73 | let n = m | |
74 | 74 | if ($isInstanceOf(n, "AttachedPayment")) | |
75 | 75 | then { | |
76 | 76 | let w = n | |
77 | 77 | w | |
78 | 78 | } | |
79 | 79 | else throw("fail to cast into AttachedPayment") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func x (m) = { | |
84 | 84 | let n = m | |
85 | 85 | if ($isInstanceOf(n, "(Int, Int, Int, Int, Int, Int, Int)")) | |
86 | 86 | then { | |
87 | 87 | let y = n | |
88 | 88 | y | |
89 | 89 | } | |
90 | 90 | else throw("fail to cast into Tuple5 ints") | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | let z = "__" | |
95 | 95 | ||
96 | 96 | let A = ":" | |
97 | 97 | ||
98 | 98 | let B = 100000000 | |
99 | 99 | ||
100 | 100 | let C = 1000000 | |
101 | 101 | ||
102 | 102 | let D = 1000000 | |
103 | 103 | ||
104 | 104 | let E = 20000 | |
105 | 105 | ||
106 | 106 | let F = 100000 | |
107 | 107 | ||
108 | 108 | let G = 0 | |
109 | 109 | ||
110 | 110 | let H = 1 | |
111 | 111 | ||
112 | 112 | let I = 2 | |
113 | 113 | ||
114 | 114 | let J = 1 | |
115 | 115 | ||
116 | 116 | let K = 2 | |
117 | 117 | ||
118 | 118 | let L = 3 | |
119 | 119 | ||
120 | 120 | let M = 4 | |
121 | 121 | ||
122 | 122 | let N = 5 | |
123 | 123 | ||
124 | 124 | let O = 6 | |
125 | 125 | ||
126 | 126 | let P = 7 | |
127 | 127 | ||
128 | 128 | let Q = 8 | |
129 | 129 | ||
130 | 130 | let R = 9 | |
131 | 131 | ||
132 | 132 | let S = 10 | |
133 | 133 | ||
134 | 134 | let T = 11 | |
135 | 135 | ||
136 | 136 | let U = 12 | |
137 | 137 | ||
138 | 138 | let V = 13 | |
139 | 139 | ||
140 | 140 | func W () = "%s%s__config__controlAddress" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func X () = "%s__controlConfig" | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func Y (Z) = split_4C(a(Z, X()), z) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func aa (ab,ac) = valueOrErrorMessage(addressFromString(ab[ac]), ("Control cfg doesn't contain address at index " + toString(ac))) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | let ad = addressFromStringValue(valueOrElse(getString(this, W()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
153 | 153 | ||
154 | 154 | let ab = Y(ad) | |
155 | 155 | ||
156 | 156 | let ae = aa(ab, M) | |
157 | 157 | ||
158 | 158 | let af = aa(ab, Q) | |
159 | 159 | ||
160 | 160 | let ag = aa(ab, S) | |
161 | 161 | ||
162 | 162 | let ah = aa(ab, T) | |
163 | 163 | ||
164 | 164 | let ai = aa(ab, K) | |
165 | 165 | ||
166 | 166 | let aj = aa(ab, P) | |
167 | 167 | ||
168 | 168 | let ak = aa(ab, V) | |
169 | 169 | ||
170 | 170 | let al = "neutrino_asset_id" | |
171 | 171 | ||
172 | 172 | let am = "bond_asset_id" | |
173 | 173 | ||
174 | 174 | let an = "auction_contract" | |
175 | 175 | ||
176 | 176 | let ao = "nsbtStakingContract" | |
177 | 177 | ||
178 | 178 | let ap = "liquidation_contract" | |
179 | 179 | ||
180 | 180 | let aq = "rpd_contract" | |
181 | 181 | ||
182 | 182 | let ar = "control_contract" | |
183 | 183 | ||
184 | 184 | let as = "math_contract" | |
185 | 185 | ||
186 | 186 | let at = "balance_waves_lock_interval" | |
187 | 187 | ||
188 | 188 | let au = "balance_neutrino_lock_interval" | |
189 | 189 | ||
190 | 190 | let av = "min_waves_swap_amount" | |
191 | 191 | ||
192 | 192 | let aw = "min_neutrino_swap_amount" | |
193 | 193 | ||
194 | 194 | let ax = "node_oracle_provider" | |
195 | 195 | ||
196 | 196 | let ay = "neutrinoOut_swap_feePart" | |
197 | 197 | ||
198 | 198 | let az = "wavesOut_swap_feePart" | |
199 | 199 | ||
200 | - | func aA (b) = ("%s__" + b) | |
200 | + | let aA = "multiOut_swap_feePart" | |
201 | + | ||
202 | + | func aB (b) = ("%s__" + b) | |
201 | 203 | ||
202 | 204 | ||
203 | - | let | |
205 | + | let aC = "price" | |
204 | 206 | ||
205 | - | let | |
207 | + | let aD = "price_index" | |
206 | 208 | ||
207 | - | let | |
209 | + | let aE = "is_blocked" | |
208 | 210 | ||
209 | - | func | |
211 | + | func aF (aG) = ((aC + "_") + toString(aG)) | |
210 | 212 | ||
211 | 213 | ||
212 | - | func | |
214 | + | func aH (aI) = ((aD + "_") + toString(aI)) | |
213 | 215 | ||
214 | 216 | ||
215 | - | func | |
217 | + | func aJ (ac) = g(makeString(["%s%d%s", "lease", toString(ac), "nodeAddress"], z)) | |
216 | 218 | ||
217 | 219 | ||
218 | - | func | |
220 | + | func aK (ac) = addressFromStringValue(aJ(ac)) | |
219 | 221 | ||
220 | 222 | ||
221 | - | func | |
223 | + | func aL () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], z)), (1000 * B)) | |
222 | 224 | ||
223 | 225 | ||
224 | - | func | |
226 | + | func aM (aN) = ("balance_unlock_block_" + aN) | |
225 | 227 | ||
226 | 228 | ||
227 | - | func | |
229 | + | func aO (aP) = makeString(["%s%d%s", "lease", toString(aP), "id"], z) | |
228 | 230 | ||
229 | 231 | ||
230 | - | func | |
232 | + | func aQ (aR) = makeString(["%s%s%s", "leaseByAddress", aR, "id"], z) | |
231 | 233 | ||
232 | 234 | ||
233 | - | func | |
235 | + | func aS (aP) = makeString(["%s%d%s", "lease", toString(aP), "amount"], z) | |
234 | 236 | ||
235 | 237 | ||
236 | - | func | |
238 | + | func aT (aR) = makeString(["%s%s%s", "leaseByAddress", aR, "amount"], z) | |
237 | 239 | ||
238 | 240 | ||
239 | - | func | |
241 | + | func aU (aV) = makeString(["%s%d%s", "leaseGroup", toString(aV), "nodeList"], z) | |
240 | 242 | ||
241 | 243 | ||
242 | - | func | |
244 | + | func aW (aX) = (("min_" + aX) + "_swap_amount") | |
243 | 245 | ||
244 | 246 | ||
245 | - | func | |
247 | + | func aY (aX) = ("balance_lock_" + aX) | |
246 | 248 | ||
247 | 249 | ||
248 | - | func | |
250 | + | func aZ (aX,aN) = makeString(["balance_lock", aX, aN], "_") | |
249 | 251 | ||
250 | 252 | ||
251 | - | func | |
253 | + | func ba (aX) = (("balance_" + aX) + "_lock_interval") | |
252 | 254 | ||
253 | 255 | ||
254 | - | func | |
256 | + | func bb () = "balance_node_lock_interval" | |
255 | 257 | ||
256 | 258 | ||
257 | - | func | |
259 | + | func bc (aX) = (aX + "Out_swap_feePart") | |
258 | 260 | ||
259 | 261 | ||
260 | - | func | |
262 | + | func bd () = "swaps_timeframe" | |
261 | 263 | ||
262 | 264 | ||
263 | - | func | |
265 | + | func be () = "min_BR_protection_level" | |
264 | 266 | ||
265 | 267 | ||
266 | - | func | |
268 | + | func bf (aX) = valueOrElse(getInteger(this, aW(aX)), 0) | |
267 | 269 | ||
268 | 270 | ||
269 | - | func | |
271 | + | func bg () = valueOrElse(getInteger(this, bd()), 1440) | |
270 | 272 | ||
271 | 273 | ||
272 | - | func | |
274 | + | func bh (aX) = valueOrElse(getInteger(this, aY(aX)), 0) | |
273 | 275 | ||
274 | 276 | ||
275 | - | func | |
277 | + | func bi (aX,aN) = valueOrElse(getInteger(this, aZ(aX, aN)), 0) | |
276 | 278 | ||
277 | 279 | ||
278 | - | func | |
280 | + | func bj (aX) = valueOrElse(getInteger(this, ba(aX)), 1440) | |
279 | 281 | ||
280 | 282 | ||
281 | - | func | |
283 | + | func bk () = valueOrElse(getInteger(this, bb()), 1) | |
282 | 284 | ||
283 | 285 | ||
284 | - | func | |
286 | + | func bl (bm) = makeString(["%s%s", "swapUserSpentInPeriod", bm], z) | |
285 | 287 | ||
286 | 288 | ||
287 | - | func | |
289 | + | func bn (bm) = makeString(["%s%s", "userLastSwapHeight", bm], z) | |
288 | 290 | ||
289 | 291 | ||
290 | - | func | |
292 | + | func bo (bp,bq) = fraction(fraction(bp, D, bq), B, C) | |
291 | 293 | ||
292 | 294 | ||
293 | - | func | |
295 | + | func br (bp,bq) = fraction(fraction(bp, bq, D), C, B) | |
294 | 296 | ||
295 | 297 | ||
296 | - | func | |
298 | + | func bs (bp,bq) = br(bp, bq) | |
297 | 299 | ||
298 | 300 | ||
299 | - | func | |
301 | + | func bt (bu) = split(bu, ",") | |
300 | 302 | ||
301 | 303 | ||
302 | - | func | |
304 | + | func bv (aX,bw) = throw(((("The specified amount in " + aX) + " swap is less than the required minimum of ") + toString(bw))) | |
303 | 305 | ||
304 | 306 | ||
305 | - | func | |
307 | + | func bx () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
306 | 308 | ||
307 | 309 | ||
308 | - | func | |
310 | + | func by (aI,bz,bA,bB,bC) = throw(((((((((("invalid price history index: index=" + toString(aI)) + " priceIndex=") + toString(bz)) + " indexHeight=") + toString(bA)) + " unlockHeight=") + toString(bB)) + " prevIndexHeight=") + toString(bC))) | |
309 | 311 | ||
310 | 312 | ||
311 | - | let | |
313 | + | let bD = fromBase58String(g(al)) | |
312 | 314 | ||
313 | - | let | |
315 | + | let bz = i(ad, aD) | |
314 | 316 | ||
315 | - | let | |
317 | + | let bE = k(ad, aE) | |
316 | 318 | ||
317 | - | let | |
319 | + | let bF = fromBase58String(g(ax)) | |
318 | 320 | ||
319 | - | let | |
321 | + | let bG = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
320 | 322 | ||
321 | - | let | |
323 | + | let bH = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
322 | 324 | ||
323 | - | let | |
325 | + | let bI = this | |
324 | 326 | ||
325 | - | let | |
327 | + | let bJ = i(ad, aC) | |
326 | 328 | ||
327 | - | func | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | if (if (( | |
335 | - | then ( | |
329 | + | func bK (bL) = { | |
330 | + | let bM = 100000 | |
331 | + | let bN = 1000 | |
332 | + | let bO = br(bM, bJ) | |
333 | + | let bP = (bO * 2) | |
334 | + | let bQ = fraction(bO, bN, 100) | |
335 | + | let bR = value(bL.minSponsoredAssetFee) | |
336 | + | if (if ((bR >= bP)) | |
337 | + | then (bQ >= bR) | |
336 | 338 | else false) | |
337 | - | then ( | |
339 | + | then (bL.assetId == bD) | |
338 | 340 | else false | |
339 | 341 | } | |
340 | 342 | ||
341 | 343 | ||
342 | - | func | |
344 | + | func bS (aG) = i(ad, aF(aG)) | |
343 | 345 | ||
344 | 346 | ||
345 | - | func | |
347 | + | func bT (aI) = i(ad, aH(aI)) | |
346 | 348 | ||
347 | 349 | ||
348 | - | func | |
350 | + | func bU (bm) = makeString(["%s%s%s", "paramByUser", bm, "amount"], z) | |
349 | 351 | ||
350 | 352 | ||
351 | - | let | |
353 | + | let bV = 1 | |
352 | 354 | ||
353 | - | let | |
355 | + | let bW = 2 | |
354 | 356 | ||
355 | - | let | |
357 | + | let bX = 3 | |
356 | 358 | ||
357 | - | let | |
359 | + | let bY = 7 | |
358 | 360 | ||
359 | - | let | |
361 | + | let bZ = 8 | |
360 | 362 | ||
361 | - | let | |
363 | + | let ca = 11 | |
362 | 364 | ||
363 | - | let | |
365 | + | let cb = 15 | |
364 | 366 | ||
365 | - | let | |
367 | + | let cc = 16 | |
366 | 368 | ||
367 | - | func | |
369 | + | func cd (bm,ce) = makeString(["%s%s", bm, ce], z) | |
368 | 370 | ||
369 | 371 | ||
370 | - | func | |
372 | + | func cf (aX,cg,ch,bq,ci,cj,ck,cl,cm,cn,co,cp,aI,cq,cr,cs,ct,cu,cv) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d%s", aX, cg, ch, bq, ci, cj, ck, cl, cm, cn, co, cp, aI, cq, cr, cs, ct, cu, cv], z) | |
371 | 373 | ||
372 | 374 | ||
373 | - | func | |
375 | + | func cw (aX,cx,co) = cf(aX, "PENDING", toString(cx), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(co), "0", "0", "NULL", "0", "0", "0", "0", "") | |
374 | 376 | ||
375 | 377 | ||
376 | - | func | |
378 | + | func cy (cz,bq,ci,cj,cp,aI,cq,ct,cu,cv) = cf(cz[bV], "FINISHED", cz[bX], toString(bq), toString(ci), toString(cj), cz[bY], cz[bZ], toString(height), toString(lastBlock.timestamp), cz[ca], toString(cp), toString(aI), cq, cz[cb], cz[cc], toString(ct), toString(cu), cv) | |
377 | 379 | ||
378 | 380 | ||
379 | - | func | |
380 | - | let | |
381 | - | split(valueOrErrorMessage(getString(this, | |
381 | + | func cA (bm,cB) = { | |
382 | + | let cC = cd(bm, cB) | |
383 | + | split(valueOrErrorMessage(getString(this, cC), ("no swap data for " + cC)), z) | |
382 | 384 | } | |
383 | 385 | ||
384 | 386 | ||
385 | - | func | |
386 | - | let | |
387 | - | [( | |
387 | + | func cD (cE,cF,cG) = { | |
388 | + | let cH = fraction(cE, cG, C) | |
389 | + | [(cE - cH), cH] | |
388 | 390 | } | |
389 | 391 | ||
390 | 392 | ||
391 | - | func | |
392 | - | then -( | |
393 | - | else | |
393 | + | func cI (cJ) = if ((0 > cJ)) | |
394 | + | then -(cJ) | |
395 | + | else cJ | |
394 | 396 | ||
395 | 397 | ||
396 | - | func | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | if (if (( | |
398 | + | func cK (cL) = { | |
399 | + | let cM = ((wavesBalance(bI).available - cL) - aL()) | |
400 | + | let cN = f(aS(0)) | |
401 | + | let cO = f(aS(1)) | |
402 | + | let cP = (cM + cN) | |
403 | + | let cQ = (cM + cO) | |
404 | + | if (if ((cP > 0)) | |
403 | 405 | then true | |
404 | - | else ( | |
406 | + | else (cQ > 0)) | |
405 | 407 | then { | |
406 | - | let | |
407 | - | let | |
408 | - | if (( | |
409 | - | then $Tuple2(0, | |
410 | - | else $Tuple2(1, | |
408 | + | let cR = cI((cP - cO)) | |
409 | + | let cS = cI((cQ - cN)) | |
410 | + | if ((cS >= cR)) | |
411 | + | then $Tuple2(0, cP) | |
412 | + | else $Tuple2(1, cQ) | |
411 | 413 | } | |
412 | 414 | else $Tuple2(-1, 0) | |
413 | 415 | } | |
414 | 416 | ||
415 | 417 | ||
416 | - | func | |
418 | + | func cT (r) = if ((r.caller != this)) | |
417 | 419 | then throw("Permission denied: this contract only allowed") | |
418 | 420 | else true | |
419 | 421 | ||
420 | 422 | ||
421 | - | func | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | if (( | |
423 | + | func cU (cL) = { | |
424 | + | let cV = cK(cL) | |
425 | + | let aP = cV._1 | |
426 | + | let cW = cV._2 | |
427 | + | if ((cW > 0)) | |
426 | 428 | then { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | then [LeaseCancel(value( | |
429 | + | let cX = aO(aP) | |
430 | + | let cY = getBinary(this, cX) | |
431 | + | let cZ = if (isDefined(cY)) | |
432 | + | then [LeaseCancel(value(cY))] | |
431 | 433 | else nil | |
432 | - | let | |
433 | - | let | |
434 | - | ( | |
434 | + | let da = aS(aP) | |
435 | + | let db = Lease(aK(aP), cW) | |
436 | + | (cZ ++ [db, BinaryEntry(cX, d(db)), IntegerEntry(aS(aP), cW)]) | |
435 | 437 | } | |
436 | 438 | else nil | |
437 | 439 | } | |
438 | 440 | ||
439 | 441 | ||
440 | - | func | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | $Tuple5( | |
442 | + | func dc (dd) = { | |
443 | + | let aR = aK(dd) | |
444 | + | let de = aS(dd) | |
445 | + | let df = f(de) | |
446 | + | let dg = aO(dd) | |
447 | + | let dh = value(getBinary(this, dg)) | |
448 | + | $Tuple5(aR, de, df, dg, dh) | |
447 | 449 | } | |
448 | 450 | ||
449 | 451 | ||
450 | - | func dg (aW,dh,di,dj,dk) = { | |
451 | - | let dl = dk._2 | |
452 | - | let dm = dk._3 | |
453 | - | let dn = dk._6 | |
454 | - | let do = dk._7 | |
455 | - | let bv = be(aW) | |
456 | - | let dp = bg(aW) | |
457 | - | let dq = bh(aW, di) | |
458 | - | let aQ = aI(0) | |
459 | - | let dr = bR(bS(by)) | |
460 | - | let ds = (aQ == di) | |
461 | - | let dt = if (ds) | |
462 | - | then bj() | |
463 | - | else bi(aW) | |
464 | - | let cn = (height + dt) | |
465 | - | let du = if ((aW == "neutrino")) | |
466 | - | then dh | |
467 | - | else bq(dh, dr) | |
468 | - | let dv = if ((aW == "neutrino")) | |
469 | - | then do | |
470 | - | else bq(dn, dr) | |
471 | - | if ((bv > dh)) | |
472 | - | then bu(aW, bv) | |
473 | - | else if (if (!(ds)) | |
474 | - | then (dl > 0) | |
452 | + | func di (aX,dj,dk,dl) = { | |
453 | + | let dm = x(invoke(this, "swapParamsByUserSYSREADONLY", [dk, 0], nil)) | |
454 | + | let dn = dm._2 | |
455 | + | let do = dm._3 | |
456 | + | let dp = dm._6 | |
457 | + | let dq = dm._7 | |
458 | + | let bw = bf(aX) | |
459 | + | let dr = bh(aX) | |
460 | + | let ds = bi(aX, dk) | |
461 | + | let aR = aJ(0) | |
462 | + | let dt = bS(bT(bz)) | |
463 | + | let du = (aR == dk) | |
464 | + | let dv = if (du) | |
465 | + | then bk() | |
466 | + | else bj(aX) | |
467 | + | let co = (height + dv) | |
468 | + | let dw = if ((aX == "waves")) | |
469 | + | then br(dj, dt) | |
470 | + | else dj | |
471 | + | let dx = if ((aX == "waves")) | |
472 | + | then br(dp, dt) | |
473 | + | else dq | |
474 | + | if ((bw > dj)) | |
475 | + | then bv(aX, bw) | |
476 | + | else if (if (!(du)) | |
477 | + | then (dn > 0) | |
475 | 478 | else false) | |
476 | - | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + | |
477 | - | else if (if (!( | |
478 | - | then ( | |
479 | + | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + do)))) | |
480 | + | else if (if (!(du)) | |
481 | + | then (dw > dx) | |
479 | 482 | else false) | |
480 | - | then throw(((("You have exceeded your swap limit! Requested: " + toString( | |
481 | - | else if ( | |
482 | - | then | |
483 | + | then throw(((("You have exceeded your swap limit! Requested: " + toString(dw)) + ", available: ") + toString(dx))) | |
484 | + | else if (bE) | |
485 | + | then bx() | |
483 | 486 | else { | |
484 | - | let | |
485 | - | then | |
487 | + | let dy = if ((aX == "waves")) | |
488 | + | then cU(0) | |
486 | 489 | else nil | |
487 | - | $Tuple2(([IntegerEntry( | |
490 | + | $Tuple2(([IntegerEntry(bl(dk), dw), IntegerEntry(bn(dk), height), IntegerEntry(aZ(aX, dk), (ds + dj)), IntegerEntry(aM(dk), co), IntegerEntry(aY(aX), (dr + dj)), StringEntry(cd(dk, dl), cw(aX, dj, co))] ++ dy), unit) | |
488 | 491 | } | |
489 | 492 | } | |
490 | 493 | ||
491 | 494 | ||
492 | - | let | |
495 | + | let dz = 0 | |
493 | 496 | ||
494 | - | let | |
497 | + | let dA = 1 | |
495 | 498 | ||
496 | - | let | |
499 | + | let dB = 2 | |
497 | 500 | ||
498 | - | let | |
501 | + | let dC = 3 | |
499 | 502 | ||
500 | - | let | |
503 | + | let dD = 4 | |
501 | 504 | ||
502 | - | let | |
505 | + | let dE = 5 | |
503 | 506 | ||
504 | - | let | |
507 | + | let dF = 6 | |
505 | 508 | ||
506 | - | let | |
509 | + | let dG = 7 | |
507 | 510 | ||
508 | - | let | |
511 | + | let dH = 8 | |
509 | 512 | ||
510 | - | let | |
513 | + | let dI = 9 | |
511 | 514 | ||
512 | - | let | |
515 | + | let dJ = 10 | |
513 | 516 | ||
514 | - | let | |
517 | + | let dK = 11 | |
515 | 518 | ||
516 | - | let | |
519 | + | let dL = 12 | |
517 | 520 | ||
518 | - | let | |
521 | + | let dM = 13 | |
519 | 522 | ||
520 | - | let | |
523 | + | let dN = 0 | |
521 | 524 | ||
522 | - | let | |
525 | + | let dO = 1 | |
523 | 526 | ||
524 | - | let | |
527 | + | let dP = 2 | |
525 | 528 | ||
526 | - | let | |
529 | + | let dQ = 3 | |
527 | 530 | ||
528 | - | let | |
531 | + | let dR = 4 | |
529 | 532 | ||
530 | - | let | |
533 | + | let dS = 5 | |
531 | 534 | ||
532 | - | let | |
535 | + | let dT = 6 | |
533 | 536 | ||
534 | - | let | |
537 | + | let dU = 7 | |
535 | 538 | ||
536 | - | let | |
539 | + | let dV = 8 | |
537 | 540 | ||
538 | - | let | |
541 | + | let dW = 9 | |
539 | 542 | ||
540 | - | let | |
543 | + | let dX = 10 | |
541 | 544 | ||
542 | - | func | |
543 | - | let | |
544 | - | $Tuple10( | |
545 | + | func dY (dZ,bq) = { | |
546 | + | let ea = br(dZ, bq) | |
547 | + | $Tuple10(ea, bD, 0, unit, 0, bq, dZ, 0, 0, 0) | |
545 | 548 | } | |
546 | 549 | ||
547 | 550 | ||
548 | - | func | |
549 | - | let | |
550 | - | let | |
551 | + | func eb (ec,bq,cu,ed,ee) = { | |
552 | + | let ef = valueOrElse(getInteger(this, be()), F) | |
553 | + | let eg = if ((ef >= cu)) | |
551 | 554 | then 0 | |
552 | - | else fraction(( | |
553 | - | let | |
554 | - | then | |
555 | - | else | |
556 | - | let | |
557 | - | then fraction(( | |
555 | + | else fraction((ed - fraction(ef, ee, C)), C, (C - ef)) | |
556 | + | let eh = if ((ec > eg)) | |
557 | + | then eg | |
558 | + | else ec | |
559 | + | let ei = if ((ec > eg)) | |
560 | + | then fraction((ec - eg), cu, C) | |
558 | 561 | else 0 | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | $Tuple10( | |
562 | + | let ej = (eh + ei) | |
563 | + | let ek = (ec - ej) | |
564 | + | let ea = bo(ej, bq) | |
565 | + | $Tuple10(ea, unit, ek, bD, ea, bq, ej, eg, eh, ei) | |
563 | 566 | } | |
564 | 567 | ||
565 | 568 | ||
566 | - | func | |
567 | - | let | |
568 | - | if (if ((0 > | |
569 | + | func el (aX,ch,bq,em) = { | |
570 | + | let en = valueOrElse(getInteger(this, bc(aX)), E) | |
571 | + | if (if ((0 > en)) | |
569 | 572 | then true | |
570 | - | else ( | |
571 | - | then throw(((("invalid outFeePart config for " + | |
573 | + | else (en >= C)) | |
574 | + | then throw(((("invalid outFeePart config for " + aX) + " swap: outFeePart=") + toString(en))) | |
572 | 575 | else { | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | then | |
580 | - | else if (( | |
581 | - | then | |
582 | - | else throw(("Unsupported swap type " + | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
576 | + | let ef = valueOrElse(getInteger(this, be()), F) | |
577 | + | let eo = q(em[dH]) | |
578 | + | let ed = q(em[dD]) | |
579 | + | let ee = q(em[dE]) | |
580 | + | let ep = q(em[dM]) | |
581 | + | let eq = if ((aX == "waves")) | |
582 | + | then dY(ch, bq) | |
583 | + | else if ((aX == "outMulti")) | |
584 | + | then eb(ch, ep, eo, ed, ee) | |
585 | + | else throw(("Unsupported swap type " + aX)) | |
586 | + | let ea = eq._1 | |
587 | + | let er = eq._2 | |
588 | + | let es = eq._3 | |
589 | + | let et = eq._4 | |
590 | + | let eu = eq._5 | |
591 | + | let ev = eq._6 | |
592 | + | let ew = cD(ea, es, en) | |
593 | + | let ex = ew[G] | |
594 | + | let ey = ew[H] | |
595 | + | let ct = if ((0 >= es)) | |
593 | 596 | then 0 | |
594 | 597 | else { | |
595 | - | let | |
596 | - | q( | |
598 | + | let ez = l(invoke(ae, "surfFunctionREADONLY", [es, et], nil)) | |
599 | + | q(ez[dN]) | |
597 | 600 | } | |
598 | - | $Tuple8( | |
601 | + | $Tuple8(ex, er, ct, es, eu, ey, ea, ev) | |
599 | 602 | } | |
600 | 603 | } | |
601 | 604 | ||
602 | 605 | ||
603 | - | func | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | if ( | |
619 | - | then | |
620 | - | else if (( | |
606 | + | func eA (eB,aI,cB,cq,em) = { | |
607 | + | let bm = addressFromStringValue(eB) | |
608 | + | let cz = cA(eB, cB) | |
609 | + | let co = parseIntValue(cz[ca]) | |
610 | + | let aX = cz[bV] | |
611 | + | let ch = parseIntValue(cz[bX]) | |
612 | + | let eC = cz[bW] | |
613 | + | let ck = parseIntValue(cz[bY]) | |
614 | + | let en = valueOrElse(getInteger(this, bc(aX)), E) | |
615 | + | let dr = bh(aX) | |
616 | + | let ds = bi(aX, eB) | |
617 | + | let bB = co | |
618 | + | let bA = bT(aI) | |
619 | + | let bC = bT((aI - 1)) | |
620 | + | let dt = bS(bA) | |
621 | + | if (bE) | |
622 | + | then bx() | |
623 | + | else if ((eC != "PENDING")) | |
621 | 624 | then throw("swap has been already processed") | |
622 | - | else if (( | |
623 | - | then throw((("please wait for: " + toString( | |
624 | - | else if (if (if (( | |
625 | + | else if ((bB > height)) | |
626 | + | then throw((("please wait for: " + toString(bB)) + " block height to withdraw funds")) | |
627 | + | else if (if (if ((aI > bz)) | |
625 | 628 | then true | |
626 | - | else ( | |
629 | + | else (bB > bA)) | |
627 | 630 | then true | |
628 | - | else if (( | |
629 | - | then ( | |
631 | + | else if ((bC != 0)) | |
632 | + | then (bC >= bB) | |
630 | 633 | else false) | |
631 | - | then | |
634 | + | then by(aI, bz, bA, bB, bC) | |
632 | 635 | else { | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ((0 >= | |
636 | + | let eD = el(aX, ch, dt, em) | |
637 | + | let ci = eD._1 | |
638 | + | let er = eD._2 | |
639 | + | let ct = eD._3 | |
640 | + | let eu = eD._5 | |
641 | + | let cj = eD._6 | |
642 | + | let ea = eD._7 | |
643 | + | let ev = eD._8 | |
644 | + | if ((0 >= ea)) | |
642 | 645 | then throw("balance equals zero") | |
643 | 646 | else { | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | + | let eo = q(em[dH]) | |
648 | + | let eE = [IntegerEntry(aZ(aX, eB), (ds - ch)), IntegerEntry(aY(aX), (dr - ch)), ScriptTransfer(bm, ci, er), StringEntry(cd(eB, cB), cy(cz, ev, ci, cj, bB, aI, cq, ct, eo, "TODO"))] | |
649 | + | let eF = if ((ct > 0)) | |
647 | 650 | then { | |
648 | - | let | |
649 | - | if (( | |
651 | + | let eG = invoke(ai, "issueSurf", [ct, eB], nil) | |
652 | + | if ((eG == eG)) | |
650 | 653 | then 0 | |
651 | 654 | else throw("Strict value is not equal to itself.") | |
652 | 655 | } | |
653 | 656 | else 0 | |
654 | - | if (( | |
655 | - | then $Tuple3( | |
657 | + | if ((eF == eF)) | |
658 | + | then $Tuple3(eE, AttachedPayment(er, cj), eu) | |
656 | 659 | else throw("Strict value is not equal to itself.") | |
657 | 660 | } | |
658 | 661 | } | |
659 | 662 | } | |
660 | 663 | ||
661 | 664 | ||
662 | - | func | |
665 | + | func eH () = "%s__applyInProgress" | |
663 | 666 | ||
664 | 667 | ||
665 | - | func | |
668 | + | func eI (eJ) = ("%s%d__proposalData__" + toString(eJ)) | |
666 | 669 | ||
667 | 670 | ||
668 | - | let | |
671 | + | let eK = 9 | |
669 | 672 | ||
670 | - | func | |
671 | - | let n = | |
673 | + | func eL (bL) = { | |
674 | + | let n = bL | |
672 | 675 | if ($isInstanceOf(n, "Order")) | |
673 | 676 | then { | |
674 | - | let | |
677 | + | let eM = n | |
675 | 678 | throw("Orders aren't allowed") | |
676 | 679 | } | |
677 | 680 | else if (if ($isInstanceOf(n, "DataTransaction")) | |
678 | 681 | then true | |
679 | 682 | else if ($isInstanceOf(n, "SponsorFeeTransaction")) | |
680 | 683 | then true | |
681 | 684 | else if ($isInstanceOf(n, "SetScriptTransaction")) | |
682 | 685 | then true | |
683 | 686 | else if ($isInstanceOf(n, "CreateAliasTransaction")) | |
684 | 687 | then true | |
685 | 688 | else if ($isInstanceOf(n, "LeaseCancelTransaction")) | |
686 | 689 | then true | |
687 | 690 | else if ($isInstanceOf(n, "LeaseTransaction")) | |
688 | 691 | then true | |
689 | 692 | else if ($isInstanceOf(n, "IssueTransaction")) | |
690 | 693 | then true | |
691 | 694 | else if ($isInstanceOf(n, "InvokeExpressionTransaction")) | |
692 | 695 | then true | |
693 | 696 | else if ($isInstanceOf(n, "UpdateAssetInfoTransaction")) | |
694 | 697 | then true | |
695 | 698 | else if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
696 | 699 | then true | |
697 | 700 | else if ($isInstanceOf(n, "SetAssetScriptTransaction")) | |
698 | 701 | then true | |
699 | 702 | else if ($isInstanceOf(n, "TransferTransaction")) | |
700 | 703 | then true | |
701 | 704 | else if ($isInstanceOf(n, "ExchangeTransaction")) | |
702 | 705 | then true | |
703 | 706 | else if ($isInstanceOf(n, "MassTransferTransaction")) | |
704 | 707 | then true | |
705 | 708 | else if ($isInstanceOf(n, "BurnTransaction")) | |
706 | 709 | then true | |
707 | 710 | else $isInstanceOf(n, "ReissueTransaction")) | |
708 | 711 | then { | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | if (!(isDefined(indexOf( | |
714 | - | then throw(((("Unknown txId: " + | |
712 | + | let eN = n | |
713 | + | let ce = toBase58String(eN.id) | |
714 | + | let eJ = valueOrErrorMessage(getInteger(ak, eH()), "Apply is not happening") | |
715 | + | let eO = split(split(a(ak, eI(eJ)), z)[eK], A) | |
716 | + | if (!(isDefined(indexOf(eO, ce)))) | |
717 | + | then throw(((("Unknown txId: " + ce) + " for proposalId=") + toString(eJ))) | |
715 | 718 | else true | |
716 | 719 | } | |
717 | 720 | else throw("Match error") | |
718 | 721 | } | |
719 | 722 | ||
720 | 723 | ||
721 | 724 | @Callable(r) | |
722 | - | func | |
723 | - | let | |
724 | - | if (( | |
725 | + | func constructorV1 (eP,eQ,eR,eS,eT,eU,eV,eW,eX,eY,eZ,fa,fb) = { | |
726 | + | let fc = cT(r) | |
727 | + | if ((fc == fc)) | |
725 | 728 | then if ((size(r.payments) != 0)) | |
726 | 729 | then throw("no payments allowed") | |
727 | - | else [StringEntry(al, | |
730 | + | else [StringEntry(al, eP), StringEntry(am, eQ), StringEntry(an, eR), StringEntry(ap, eS), StringEntry(aq, eT), StringEntry(ax, eU), IntegerEntry(at, eV), IntegerEntry(au, eW), IntegerEntry(av, eX), IntegerEntry(aw, eY), IntegerEntry(ay, eZ), IntegerEntry(az, fa), IntegerEntry(aA, fb)] | |
728 | 731 | else throw("Strict value is not equal to itself.") | |
729 | 732 | } | |
730 | 733 | ||
731 | 734 | ||
732 | 735 | ||
733 | 736 | @Callable(r) | |
734 | - | func constructorV2 (ae,af, | |
735 | - | let | |
736 | - | if (( | |
737 | + | func constructorV2 (ae,af,fd) = { | |
738 | + | let fc = cT(r) | |
739 | + | if ((fc == fc)) | |
737 | 740 | then if ((size(r.payments) != 0)) | |
738 | 741 | then throw("no payments allowed") | |
739 | - | else [StringEntry(as, ae), StringEntry(ao, af), IntegerEntry( | |
742 | + | else [StringEntry(as, ae), StringEntry(ao, af), IntegerEntry(bd(), fd)] | |
740 | 743 | else throw("Strict value is not equal to itself.") | |
741 | 744 | } | |
742 | 745 | ||
743 | 746 | ||
744 | 747 | ||
745 | 748 | @Callable(r) | |
746 | 749 | func swapWavesToNeutrino () = if ((size(r.payments) != 1)) | |
747 | 750 | then throw("swapWavesToNeutrino require only one payment") | |
748 | 751 | else { | |
749 | - | let | |
750 | - | if (isDefined( | |
752 | + | let fe = value(r.payments[0]) | |
753 | + | if (isDefined(fe.assetId)) | |
751 | 754 | then throw("Only Waves token is allowed for swapping.") | |
752 | 755 | else { | |
753 | - | let bl = toString(r.caller) | |
754 | - | let dj = toBase58String(r.transactionId) | |
755 | - | let fc = x(invoke(this, "swapParamsByUserSYSREADONLY", [bl, 0], nil)) | |
756 | - | let fd = dg("waves", fb.amount, bl, dj, fc) | |
757 | - | fd | |
756 | + | let bm = toString(r.caller) | |
757 | + | let dl = toBase58String(r.transactionId) | |
758 | + | di("waves", fe.amount, bm, dl) | |
758 | 759 | } | |
759 | 760 | } | |
760 | 761 | ||
761 | 762 | ||
762 | 763 | ||
763 | 764 | @Callable(r) | |
764 | - | func | |
765 | - | then throw(" | |
765 | + | func swapNeutrinoToBasket () = if ((size(r.payments) != 1)) | |
766 | + | then throw("swapNeutrinoToBasket require only one payment") | |
766 | 767 | else { | |
767 | - | let | |
768 | - | if (( | |
768 | + | let fe = value(r.payments[0]) | |
769 | + | if ((fe.assetId != bD)) | |
769 | 770 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
770 | 771 | else { | |
771 | - | let bl = toString(r.caller) | |
772 | - | let dj = toBase58String(r.transactionId) | |
773 | - | let fc = x(invoke(this, "swapParamsByUserSYSREADONLY", [bl, 0], nil)) | |
774 | - | let fd = dg("neutrino", fb.amount, bl, dj, fc) | |
775 | - | fd | |
772 | + | let bm = toString(r.caller) | |
773 | + | let dl = toBase58String(r.transactionId) | |
774 | + | di("outMulti", fe.amount, bm, dl) | |
776 | 775 | } | |
777 | 776 | } | |
778 | 777 | ||
779 | 778 | ||
780 | 779 | ||
781 | 780 | @Callable(r) | |
782 | - | func withdraw ( | |
783 | - | let | |
781 | + | func withdraw (eB,aI,cB) = { | |
782 | + | let ce = toBase58String(r.transactionId) | |
784 | 783 | if ((size(r.payments) != 0)) | |
785 | 784 | then throw("no payments allowed") | |
786 | 785 | else { | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | if (( | |
786 | + | let em = l(invoke(ae, "calcNeutinoMetricsREADONLY", nil, nil)) | |
787 | + | let eo = q(em[dH]) | |
788 | + | let ff = eA(eB, aI, cB, ce, em) | |
789 | + | let eE = ff._1 | |
790 | + | let fg = ff._2 | |
791 | + | let eu = ff._3 | |
792 | + | let fh = invoke(this, "internalUnleaseAndLease", [eu], nil) | |
793 | + | if ((fh == fh)) | |
795 | 794 | then { | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | then fraction( | |
795 | + | let fi = l(invoke(ah, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil)) | |
796 | + | let fj = q(fi[1]) | |
797 | + | let fk = q(l(fi[3])[3]) | |
798 | + | let fl = if ((fj != 0)) | |
799 | + | then fraction(fg.amount, fk, fj) | |
801 | 800 | else 0 | |
802 | - | let | |
803 | - | then fraction( | |
801 | + | let fm = if ((fj != 0)) | |
802 | + | then fraction(fg.amount, (C - eo), C) | |
804 | 803 | else 0 | |
805 | - | let | |
806 | - | let | |
807 | - | let | |
804 | + | let fn = max([fl, fm]) | |
805 | + | let fo = (fg.amount - fn) | |
806 | + | let fp = if ((fn > 0)) | |
808 | 807 | then { | |
809 | - | let | |
810 | - | if (( | |
808 | + | let fq = invoke(ag, "deposit", nil, [AttachedPayment(fg.assetId, fn)]) | |
809 | + | if ((fq == fq)) | |
811 | 810 | then nil | |
812 | 811 | else throw("Strict value is not equal to itself.") | |
813 | 812 | } | |
814 | 813 | else nil | |
815 | - | if (( | |
814 | + | if ((fp == fp)) | |
816 | 815 | then { | |
817 | - | let | |
816 | + | let fr = if ((fo > 0)) | |
818 | 817 | then { | |
819 | - | let | |
820 | - | if (( | |
818 | + | let fs = invoke(af, "deposit", nil, [AttachedPayment(fg.assetId, fo)]) | |
819 | + | if ((fs == fs)) | |
821 | 820 | then nil | |
822 | 821 | else throw("Strict value is not equal to itself.") | |
823 | 822 | } | |
824 | 823 | else nil | |
825 | - | if (( | |
826 | - | then | |
824 | + | if ((fr == fr)) | |
825 | + | then eE | |
827 | 826 | else throw("Strict value is not equal to itself.") | |
828 | 827 | } | |
829 | 828 | else throw("Strict value is not equal to itself.") | |
830 | 829 | } | |
831 | 830 | else throw("Strict value is not equal to itself.") | |
832 | 831 | } | |
833 | 832 | } | |
834 | 833 | ||
835 | 834 | ||
836 | 835 | ||
837 | 836 | @Callable(r) | |
838 | - | func internalUnleaseAndLease ( | |
837 | + | func internalUnleaseAndLease (cL) = if ((r.caller != this)) | |
839 | 838 | then throw("internalUnleaseAndLease is not public method") | |
840 | - | else | |
839 | + | else cU(cL) | |
841 | 840 | ||
842 | 841 | ||
843 | 842 | ||
844 | 843 | @Callable(r) | |
845 | - | func transferUsdnToUser ( | |
844 | + | func transferUsdnToUser (bp,ft) = if ((r.caller != ai)) | |
846 | 845 | then throw("Only auction contract is authorized") | |
847 | - | else [ScriptTransfer(addressFromStringValue( | |
846 | + | else [ScriptTransfer(addressFromStringValue(ft), bp, bD)] | |
848 | 847 | ||
849 | 848 | ||
850 | 849 | ||
851 | 850 | @Callable(r) | |
852 | 851 | func acceptWaves () = if (if ((r.caller != ai)) | |
853 | 852 | then (r.caller != ak) | |
854 | 853 | else false) | |
855 | 854 | then throw("Currently only auction and governance contracts are allowed to call") | |
856 | - | else $Tuple2( | |
855 | + | else $Tuple2(cU(0), "success") | |
857 | 856 | ||
858 | 857 | ||
859 | 858 | ||
860 | 859 | @Callable(r) | |
861 | - | func approveLeasings ( | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | let | |
868 | - | let | |
869 | - | if (isDefined( | |
870 | - | then throw((("group " + toString( | |
860 | + | func approveLeasings (fu,aV,fv) = { | |
861 | + | let fw = [0, 1, 2, 3, 4, 5, 6, 7] | |
862 | + | let fx = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
863 | + | let fy = fromBase58String(fx) | |
864 | + | let fz = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE") | |
865 | + | let fA = addressFromStringValue(fz) | |
866 | + | let fB = aU(aV) | |
867 | + | let fC = getString(this, fB) | |
868 | + | if (isDefined(fC)) | |
869 | + | then throw((("group " + toString(aV)) + " already initialized")) | |
871 | 870 | else { | |
872 | - | let | |
873 | - | let | |
874 | - | if ((r.callerPublicKey != | |
871 | + | let fD = split(fu, z) | |
872 | + | let fE = size(fw) | |
873 | + | if ((r.callerPublicKey != fy)) | |
875 | 874 | then throw("approveLeasings not authorized") | |
876 | 875 | else { | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | let | |
882 | - | let | |
883 | - | let | |
884 | - | let | |
885 | - | if (( | |
876 | + | let fF = dc(0) | |
877 | + | let fG = fF._1 | |
878 | + | let fH = fF._2 | |
879 | + | let fI = fF._3 | |
880 | + | let fJ = fF._4 | |
881 | + | let fK = fF._5 | |
882 | + | let fL = Lease(fG, (fI - (fv * fE))) | |
883 | + | let fM = invoke(fA, "validateAndApproveLeasings", [fu], nil) | |
884 | + | if ((fM == fM)) | |
886 | 885 | then { | |
887 | - | func | |
888 | - | let | |
889 | - | let | |
890 | - | ( | |
886 | + | func fN (fO,r) = { | |
887 | + | let fP = fD[r] | |
888 | + | let fQ = Lease(addressFromStringValue(fP), fv) | |
889 | + | (fO ++ [fQ, BinaryEntry(aQ(fP), d(fQ)), IntegerEntry(aT(fP), fv)]) | |
891 | 890 | } | |
892 | 891 | ||
893 | - | ([StringEntry( | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | func | |
898 | - | then | |
899 | - | else | |
892 | + | ([StringEntry(fB, fu), BinaryEntry(fJ, d(fL)), IntegerEntry(fH, fL.amount), LeaseCancel(fK), fL] ++ { | |
893 | + | let fR = fw | |
894 | + | let fS = size(fR) | |
895 | + | let fT = nil | |
896 | + | func fU (fV,fW) = if ((fW >= fS)) | |
897 | + | then fV | |
898 | + | else fN(fV, fR[fW]) | |
900 | 899 | ||
901 | - | func | |
902 | - | then | |
900 | + | func fX (fV,fW) = if ((fW >= fS)) | |
901 | + | then fV | |
903 | 902 | else throw("List size exceeds 8") | |
904 | 903 | ||
905 | - | | |
904 | + | fX(fU(fU(fU(fU(fU(fU(fU(fU(fT, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
906 | 905 | }) | |
907 | 906 | } | |
908 | 907 | else throw("Strict value is not equal to itself.") | |
909 | 908 | } | |
910 | 909 | } | |
911 | 910 | } | |
912 | 911 | ||
913 | 912 | ||
914 | 913 | ||
915 | 914 | @Callable(r) | |
916 | - | func rebalanceLeasings ( | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | if ((r.callerPublicKey != | |
915 | + | func rebalanceLeasings (bp,aV) = { | |
916 | + | let fw = [0, 1, 2, 3, 4, 5, 6, 7] | |
917 | + | let fx = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
918 | + | let fy = fromBase58String(fx) | |
919 | + | let fB = aU(aV) | |
920 | + | let fu = a(this, fB) | |
921 | + | let fD = split(fu, z) | |
922 | + | if ((r.callerPublicKey != fy)) | |
924 | 923 | then throw("rebalanceLeasings not authorized") | |
925 | 924 | else { | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | func | |
935 | - | let | |
936 | - | let | |
937 | - | let | |
938 | - | let | |
939 | - | let | |
940 | - | let | |
941 | - | let | |
942 | - | ( | |
925 | + | let eu = ((bp / size(fD)) + 1) | |
926 | + | let fY = dc(0) | |
927 | + | let fG = fY._1 | |
928 | + | let fH = fY._2 | |
929 | + | let fI = fY._3 | |
930 | + | let fJ = fY._4 | |
931 | + | let fK = fY._5 | |
932 | + | let fL = Lease(fG, (fI + (eu * size(fD)))) | |
933 | + | func fZ (fO,r) = { | |
934 | + | let fP = fD[r] | |
935 | + | let ga = aQ(fP) | |
936 | + | let gb = getBinaryValue(this, ga) | |
937 | + | let gc = aT(fP) | |
938 | + | let fv = getIntegerValue(this, gc) | |
939 | + | let gd = LeaseCancel(value(gb)) | |
940 | + | let fQ = Lease(addressFromStringValue(fP), (fv - eu)) | |
941 | + | (fO ++ [LeaseCancel(value(gb)), fQ, BinaryEntry(ga, d(fQ)), IntegerEntry(gc, fQ.amount)]) | |
943 | 942 | } | |
944 | 943 | ||
945 | 944 | ({ | |
946 | - | let | |
947 | - | let | |
948 | - | let | |
949 | - | func | |
950 | - | then | |
951 | - | else | |
945 | + | let fR = fw | |
946 | + | let fS = size(fR) | |
947 | + | let fT = nil | |
948 | + | func fU (fV,fW) = if ((fW >= fS)) | |
949 | + | then fV | |
950 | + | else fZ(fV, fR[fW]) | |
952 | 951 | ||
953 | - | func | |
954 | - | then | |
952 | + | func fX (fV,fW) = if ((fW >= fS)) | |
953 | + | then fV | |
955 | 954 | else throw("List size exceeds 8") | |
956 | 955 | ||
957 | - | | |
958 | - | } ++ [BinaryEntry( | |
956 | + | fX(fU(fU(fU(fU(fU(fU(fU(fU(fT, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
957 | + | } ++ [BinaryEntry(fJ, d(fL)), IntegerEntry(fH, fL.amount), LeaseCancel(fK), fL]) | |
959 | 958 | } | |
960 | 959 | } | |
961 | 960 | ||
962 | 961 | ||
963 | 962 | ||
964 | 963 | @Callable(r) | |
965 | - | func swapParamsByUserSYSREADONLY ( | |
966 | - | let | |
967 | - | let | |
968 | - | let | |
969 | - | let | |
970 | - | let | |
971 | - | let | |
972 | - | let | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
964 | + | func swapParamsByUserSYSREADONLY (dk,ge) = { | |
965 | + | let fi = l(invoke(ah, "gnsbtInfoSYSREADONLY", [dk, 0, 0], nil)) | |
966 | + | let gf = (q(fi[0]) + ge) | |
967 | + | let fj = (q(fi[1]) + ge) | |
968 | + | let gg = l(invoke(ae, "calcSwapLimitREADONLY", [gf], nil)) | |
969 | + | let gh = q(gg[0]) | |
970 | + | let dp = q(gg[1]) | |
971 | + | let dq = q(gg[2]) | |
972 | + | let gi = valueOrElse(getInteger(this, bn(dk)), 0) | |
973 | + | let gj = bg() | |
974 | + | let gk = (height - gi) | |
975 | + | let gl = (gk >= gj) | |
976 | + | let gm = if (gl) | |
978 | 977 | then 0 | |
979 | - | else valueOrElse(getInteger(this, | |
980 | - | let | |
978 | + | else valueOrElse(getInteger(this, bl(dk)), 0) | |
979 | + | let do = if (gl) | |
981 | 980 | then 0 | |
982 | - | else ( | |
983 | - | $Tuple2(nil, $Tuple7( | |
981 | + | else (gj - gk) | |
982 | + | $Tuple2(nil, $Tuple7(gh, gm, do, gf, fj, dp, dq)) | |
984 | 983 | } | |
985 | 984 | ||
986 | 985 | ||
987 | 986 | ||
988 | 987 | @Callable(r) | |
989 | - | func calcWithdrawResultSYSREADONLY ( | |
990 | - | let | |
991 | - | $Tuple2(nil, | |
988 | + | func calcWithdrawResultSYSREADONLY (aX,ch,bq) = { | |
989 | + | let em = l(invoke(ae, "calcNeutinoMetricsREADONLY", nil, nil)) | |
990 | + | $Tuple2(nil, el(aX, ch, bq, em)) | |
992 | 991 | } | |
993 | 992 | ||
994 | 993 | ||
995 | 994 | ||
996 | 995 | @Callable(r) | |
997 | - | func replaceCommunityNode ( | |
998 | - | let | |
999 | - | let | |
1000 | - | if ((r.callerPublicKey != | |
996 | + | func replaceCommunityNode (gn,go,aV,gp) = { | |
997 | + | let fx = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
998 | + | let fy = fromBase58String(fx) | |
999 | + | if ((r.callerPublicKey != fy)) | |
1001 | 1000 | then throw("replaceCommunityNode not authorized") | |
1002 | 1001 | else { | |
1003 | - | let | |
1004 | - | let | |
1005 | - | if (!(contains( | |
1006 | - | then throw(((("Group " + toString( | |
1002 | + | let gq = aU(aV) | |
1003 | + | let gr = a(this, gq) | |
1004 | + | if (!(contains(gr, gn))) | |
1005 | + | then throw(((("Group " + toString(aV)) + " does not contain address ") + gn)) | |
1007 | 1006 | else { | |
1008 | - | let | |
1009 | - | if (( | |
1007 | + | let gs = invoke(aj, "replaceApprovedNode", [gn, go, aV, gp], nil) | |
1008 | + | if ((gs == gs)) | |
1010 | 1009 | then { | |
1011 | - | let | |
1012 | - | let | |
1013 | - | let | |
1014 | - | let | |
1015 | - | let | |
1016 | - | let | |
1017 | - | let | |
1018 | - | $Tuple2([LeaseCancel(getBinaryValue( | |
1010 | + | let gt = aQ(gn) | |
1011 | + | let gu = aT(gn) | |
1012 | + | let gv = getIntegerValue(gu) | |
1013 | + | let gw = aQ(gn) | |
1014 | + | let gx = aT(gn) | |
1015 | + | let gy = Lease(addressFromStringValue(go), gv) | |
1016 | + | let gz = makeString(split(gr, gn), go) | |
1017 | + | $Tuple2([LeaseCancel(getBinaryValue(gt)), DeleteEntry(gt), DeleteEntry(gu), StringEntry(gq, gz), gy, BinaryEntry(gw, d(gy)), IntegerEntry(gx, gv)], unit) | |
1019 | 1018 | } | |
1020 | 1019 | else throw("Strict value is not equal to itself.") | |
1021 | 1020 | } | |
1022 | 1021 | } | |
1023 | 1022 | } | |
1024 | 1023 | ||
1025 | 1024 | ||
1026 | 1025 | ||
1027 | 1026 | @Callable(r) | |
1028 | 1027 | func updateReservesAndNeutrinoSupply () = { | |
1029 | - | func | |
1028 | + | func gA (c) = { | |
1030 | 1029 | let n = getInteger(this, c) | |
1031 | 1030 | if ($isInstanceOf(n, "Int")) | |
1032 | 1031 | then { | |
1033 | - | let | |
1034 | - | | |
1032 | + | let fO = n | |
1033 | + | fO | |
1035 | 1034 | } | |
1036 | 1035 | else 0 | |
1037 | 1036 | } | |
1038 | 1037 | ||
1039 | - | let | |
1040 | - | let ac = | |
1041 | - | let | |
1042 | - | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", | |
1038 | + | let gB = l(invoke(ae, "calcNeutinoMetricsREADONLY", nil, nil)) | |
1039 | + | let ac = gA("updateReservesAndNeutrinoSupplyIdx") | |
1040 | + | let gC = (ac + 1) | |
1041 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", gC), IntegerEntry("reserve", q(gB[3])), IntegerEntry("neutrinoSupply", q(gB[5])), IntegerEntry("reservesInUsdn", br(q(gB[3]), q(gB[0]))), IntegerEntry("surplus", q(gB[6])), IntegerEntry("deficit", -(q(gB[6])))] | |
1043 | 1042 | } | |
1044 | 1043 | ||
1045 | 1044 | ||
1046 | 1045 | ||
1047 | 1046 | @Callable(r) | |
1048 | 1047 | func wavesBalancesVsPayment () = { | |
1049 | - | let | |
1050 | - | [IntegerEntry("wavesBalance_available", | |
1048 | + | let gD = wavesBalance(this) | |
1049 | + | [IntegerEntry("wavesBalance_available", gD.available), IntegerEntry("wavesBalance_regular", gD.regular), IntegerEntry("wavesBalance_generating", gD.generating), IntegerEntry("wavesBalance_effective", gD.effective), IntegerEntry("waves_payment", value(r.payments[0]).amount)] | |
1051 | 1050 | } | |
1052 | 1051 | ||
1053 | 1052 | ||
1054 | - | @Verifier( | |
1055 | - | func | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1053 | + | @Verifier(bL) | |
1054 | + | func gE () = { | |
1055 | + | let gF = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], z) | |
1056 | + | let gG = split(valueOrElse(getString(ad, "%s__multisig"), gF), z) | |
1057 | + | let gH = ((((if (sigVerify(bL.bodyBytes, bL.proofs[0], fromBase58String(gG[0]))) | |
1059 | 1058 | then 1 | |
1060 | - | else 0) + (if (sigVerify( | |
1059 | + | else 0) + (if (sigVerify(bL.bodyBytes, bL.proofs[1], fromBase58String(gG[1]))) | |
1061 | 1060 | then 1 | |
1062 | - | else 0)) + (if (sigVerify( | |
1061 | + | else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[2], fromBase58String(gG[2]))) | |
1063 | 1062 | then 1 | |
1064 | - | else 0)) + (if (sigVerify( | |
1063 | + | else 0)) + (if (sigVerify(bL.bodyBytes, bL.proofs[3], fromBase58String(gG[3]))) | |
1065 | 1064 | then 2 | |
1066 | 1065 | else 0)) | |
1067 | - | if (if ( | |
1066 | + | if (if (bE) | |
1068 | 1067 | then (getStringValue(ad, "is_blocked_caller") == toString(ak)) | |
1069 | 1068 | else false) | |
1070 | - | then | |
1069 | + | then eL(bL) | |
1071 | 1070 | else { | |
1072 | - | let n = | |
1071 | + | let n = bL | |
1073 | 1072 | if ($isInstanceOf(n, "SponsorFeeTransaction")) | |
1074 | 1073 | then { | |
1075 | - | let | |
1076 | - | if ( | |
1077 | - | then ( | |
1074 | + | let gI = n | |
1075 | + | if (bK(gI)) | |
1076 | + | then (gH >= 3) | |
1078 | 1077 | else false | |
1079 | 1078 | } | |
1080 | - | else ( | |
1079 | + | else (gH >= 3) | |
1081 | 1080 | } | |
1082 | 1081 | } | |
1083 | 1082 |
github/deemru/w8io/169f3d6 372.27 ms ◑