tx · A7YETDhSCzJGMoQUktAxZAMXJLmVrnG4dmGnquGdajnc 3N3c8hF3E1qiSZ27uH3XZvtWSso9QFckZUb: -0.03300000 Waves 2024.09.17 11:07 [3287404] smart account 3N3c8hF3E1qiSZ27uH3XZvtWSso9QFckZUb > SELF 0.00000000 Waves
{ "type": 13, "id": "A7YETDhSCzJGMoQUktAxZAMXJLmVrnG4dmGnquGdajnc", "fee": 3300000, "feeAssetId": null, "timestamp": 1726560418229, "version": 2, "chainId": 84, "sender": "3N3c8hF3E1qiSZ27uH3XZvtWSso9QFckZUb", "senderPublicKey": "9Dkh2UiuYRqFTQrAXgJJbJuG3Q6VDPhiYHrsdfQx42Zx", "proofs": [ "66q6hZrY5vMy683MSsreoJpCYV2PKNNVw7MJZPfWLX8Gqy3vnqUQg1vtKCRFzwsUFLHATDFzSt6aXpVsDKLDZ3Rj" ], "script": "base64:BwJnCAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGF4ACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAEYmlnMAkAtgIBAAAACklOREVYX0xJU1QJAMwIAgAACQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUJAMwIAgAGCQDMCAIABwkAzAgCAAgJAMwIAgAJCQDMCAIACgkAzAgCAAsJAMwIAgAMCQDMCAIADQkAzAgCAA4JAMwIAgAPCQDMCAIAEAkAzAgC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IFDmZhY3RvcnlBZGRyZXNzBQlrTXVsdGlzaWcHBAckbWF0Y2gwCQCdCAIFDmZhY3RvcnlBZGRyZXNzBQlrTXVsdGlzaWcDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAhtdWx0aXNpZwUHJG1hdGNoMAQJc3RhdHVzS2V5CQEHa1N0YXR1cwIJAKUIAQUEdGhpcwkA2AQBCAUCdHgCaWQEBnN0YXR1cwkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwUJc3RhdHVzS2V5BwUGc3RhdHVzBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZWY+XU=", "height": 3287404, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4JnZHetswEK2vsWqraSxe7r7vnkPPqWEAfEXWdgZV7kj Next: none Diff:
Old | New | Differences | |
---|---|---|---|
239 | 239 | func aN () = valueOrElse(getBinary(T, aM()), base58'') | |
240 | 240 | ||
241 | 241 | ||
242 | - | func aO () = makeString(["%s", " | |
242 | + | func aO (aP) = makeString(["%s%s", "requests", toString(aP)], a) | |
243 | 243 | ||
244 | 244 | ||
245 | - | func | |
245 | + | func aQ (aP) = valueOrElse(getBinary(T, aO(aP)), base58'') | |
246 | 246 | ||
247 | 247 | ||
248 | - | func | |
248 | + | func aR (aS,aT) = makeString(["%s%s%s", I(aS), I(aT), "pairAllowed"], a) | |
249 | 249 | ||
250 | 250 | ||
251 | - | func | |
251 | + | func aU (aS,aT) = valueOrElse(getBoolean(T, aR(aS, aT)), false) | |
252 | 252 | ||
253 | 253 | ||
254 | - | func | |
254 | + | func aV (K) = makeString(["%s", I(K)], a) | |
255 | 255 | ||
256 | 256 | ||
257 | - | func aW ( | |
257 | + | func aW (aS,aT) = makeString(["%s%s%s", I(aS), I(aT), "pairSettingPrices"], a) | |
258 | 258 | ||
259 | 259 | ||
260 | - | func aX (K) = makeString(["%s", I(K)], a) | |
261 | - | ||
262 | - | ||
263 | - | func aY (aU,aV) = makeString(["%s%s%s", I(aU), I(aV), "pairSettingPrices"], a) | |
264 | - | ||
265 | - | ||
266 | - | func aZ (aU,aV) = { | |
267 | - | let M = getString(T, aY(aU, aV)) | |
260 | + | func aX (aS,aT) = { | |
261 | + | let M = getString(T, aW(aS, aT)) | |
268 | 262 | if ($isInstanceOf(M, "String")) | |
269 | 263 | then { | |
270 | 264 | let C = M | |
274 | 268 | } | |
275 | 269 | ||
276 | 270 | ||
277 | - | func | |
271 | + | func aY (aS,aT,aZ) = makeString(["%s%s%d%s", I(aS), I(aT), aZ, "settings"], a) | |
278 | 272 | ||
279 | 273 | ||
280 | - | func | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | | |
274 | + | func ba (K) = { | |
275 | + | let bb = fromBase58String(valueOrErrorMessage(getString(T, s), B("invalid matcher public key"))) | |
276 | + | let bc = addressFromPublicKey(bb) | |
277 | + | let bd = valueOrErrorMessage(getInteger(bc, aV(K)), B(("invalid price, assetId = " + I(K)))) | |
278 | + | bd | |
285 | 279 | } | |
286 | 280 | ||
287 | 281 | ||
288 | - | func | |
282 | + | func be (bf,bg,bh) = (fraction(bf, bh, f) + bg) | |
289 | 283 | ||
290 | 284 | ||
291 | - | func | |
285 | + | func bi (bj,bk,bh) = (fraction(bj, bh, f) + bk) | |
292 | 286 | ||
293 | 287 | ||
294 | - | func | |
288 | + | func bl (bm,bn) = (bm - bn) | |
295 | 289 | ||
296 | 290 | ||
297 | - | func | |
291 | + | func bo (bp,bq,bn) = (fraction(bp, bq, f) - bn) | |
298 | 292 | ||
299 | 293 | ||
300 | - | func | |
301 | - | then ( | |
294 | + | func br (bs,bt) = if ((bs > k)) | |
295 | + | then (bs - bt) | |
302 | 296 | else k | |
303 | 297 | ||
304 | 298 | ||
305 | - | func | |
306 | - | then ( | |
299 | + | func bu (bs,bt) = if ((bs > k)) | |
300 | + | then (bt - bs) | |
307 | 301 | else k | |
308 | 302 | ||
309 | 303 | ||
310 | - | func | |
311 | - | then max([k, fraction( | |
304 | + | func bv (bw,bx) = if ((bx > k)) | |
305 | + | then max([k, fraction(bw, f, bx)]) | |
312 | 306 | else k | |
313 | 307 | ||
314 | 308 | ||
315 | - | func | |
316 | - | then max([k, fraction( | |
309 | + | func by (bw,bx) = if ((bx > k)) | |
310 | + | then max([k, fraction(bx, f, bw)]) | |
317 | 311 | else k | |
318 | 312 | ||
319 | 313 | ||
320 | - | func | |
314 | + | func bz (bA,bB,bh,bC) = fraction((fraction(bA, bh, f) + bB), bC, f) | |
321 | 315 | ||
322 | 316 | ||
323 | - | func | |
317 | + | func bD (bE,bC,bF) = fraction(bE, bF, bC) | |
324 | 318 | ||
325 | 319 | ||
326 | - | func | |
327 | - | let | |
328 | - | then ((( | |
320 | + | func bG (bp,bH,bA,bB,bI,bJ) = { | |
321 | + | let bK = if ((bA > k)) | |
322 | + | then (((bp - bH) / bA) + bI) | |
329 | 323 | else k | |
330 | - | let | |
331 | - | then ( | |
324 | + | let bL = if ((bB > k)) | |
325 | + | then (bJ - ((bp - bH) / (bA / bJ))) | |
332 | 326 | else k | |
333 | - | ( | |
327 | + | (bK + bL) | |
334 | 328 | } | |
335 | 329 | ||
336 | 330 | ||
337 | - | func | |
331 | + | func bM (as) = { | |
338 | 332 | let ay = fromBase58String(valueOrErrorMessage(getString(T, aL(as)), B("invalid account address: request id is undefined"))) | |
339 | 333 | ay | |
340 | 334 | } | |
341 | 335 | ||
342 | 336 | ||
343 | - | func bP (as) = { | |
344 | - | let ay = bO(as) | |
345 | - | let aU = G(valueOrErrorMessage(getString(T, aI(ay)), B("invalid amount asset id"))) | |
346 | - | let aV = G(valueOrErrorMessage(getString(T, aJ(ay)), B("invalid amount price id"))) | |
347 | - | $Tuple2(aU, aV) | |
337 | + | func bN (as) = { | |
338 | + | let ay = bM(as) | |
339 | + | let aS = G(valueOrErrorMessage(getString(T, aI(ay)), B("invalid amount asset id"))) | |
340 | + | let aT = G(valueOrErrorMessage(getString(T, aJ(ay)), B("invalid amount price id"))) | |
341 | + | $Tuple2(aS, aT) | |
342 | + | } | |
343 | + | ||
344 | + | ||
345 | + | func bO (as) = { | |
346 | + | let ay = bM(as) | |
347 | + | let bP = valueOrErrorMessage(getBinary(T, aH(ay)), B("invalid amount asset id")) | |
348 | + | bP | |
348 | 349 | } | |
349 | 350 | ||
350 | 351 | ||
351 | 352 | func bQ (as) = { | |
352 | - | let ay = bO(as) | |
353 | - | let bR = valueOrErrorMessage(getBinary(T, aH(ay)), B("invalid amount asset id")) | |
354 | - | bR | |
355 | - | } | |
356 | - | ||
357 | - | ||
358 | - | func bS (as) = { | |
359 | - | let bT = bP(as) | |
360 | - | let aU = bT._1 | |
361 | - | let aV = bT._2 | |
362 | - | let bs = valueOrErrorMessage(getInteger(T, aw(as)), B("leverage should be defined")) | |
363 | - | let ay = bO(as) | |
364 | - | let bU = valueOrErrorMessage(getBinary(T, aK(ay)), "kRequestIdToAccountPublicKey not found") | |
365 | - | let bV = valueOrElse(at(as), 0) | |
366 | - | let bj = t(bc(aU), Q(aV)) | |
367 | - | let bh = valueOrElse(getInteger(T, au(as, aU)), 0) | |
368 | - | let bi = valueOrElse(getInteger(T, au(as, aV)), 0) | |
369 | - | let bW = valueOrErrorMessage(getInteger(T, aF(ay)), ("status not found. RequestId = " + toBase58String(ay))) | |
370 | - | let bX = getString(T, az(aU)) | |
353 | + | let bR = bN(as) | |
354 | + | let aS = bR._1 | |
355 | + | let aT = bR._2 | |
356 | + | let bq = valueOrErrorMessage(getInteger(T, aw(as)), B("leverage should be defined")) | |
357 | + | let ay = bM(as) | |
358 | + | let bS = valueOrErrorMessage(getBinary(T, aK(ay)), "kRequestIdToAccountPublicKey not found") | |
359 | + | let bT = valueOrElse(at(as), 0) | |
360 | + | let bh = t(ba(aS), Q(aT)) | |
361 | + | let bf = valueOrElse(getInteger(T, au(as, aS)), 0) | |
362 | + | let bg = valueOrElse(getInteger(T, au(as, aT)), 0) | |
363 | + | let bU = valueOrErrorMessage(getInteger(T, aF(ay)), ("status not found. RequestId = " + toBase58String(ay))) | |
364 | + | let bV = getString(T, az(aS)) | |
365 | + | let bW = { | |
366 | + | let M = bV | |
367 | + | if ($isInstanceOf(M, "String")) | |
368 | + | then { | |
369 | + | let C = M | |
370 | + | N(G(C), as) | |
371 | + | } | |
372 | + | else 0 | |
373 | + | } | |
374 | + | let bX = getString(T, az(aT)) | |
371 | 375 | let bY = { | |
372 | 376 | let M = bX | |
373 | 377 | if ($isInstanceOf(M, "String")) | |
377 | 381 | } | |
378 | 382 | else 0 | |
379 | 383 | } | |
380 | - | let bZ = getString(T, az(aV)) | |
381 | - | let ca = { | |
382 | - | let M = bZ | |
383 | - | if ($isInstanceOf(M, "String")) | |
384 | - | then { | |
385 | - | let C = M | |
386 | - | N(G(C), as) | |
387 | - | } | |
388 | - | else 0 | |
389 | - | } | |
390 | - | $Tuple12(I(aU), I(aV), toString(as), toBase58String(bU), bs, toBase58String(ay), bV, bh, bi, bY, ca, bW) | |
384 | + | $Tuple12(I(aS), I(aT), toString(as), toBase58String(bS), bq, toBase58String(ay), bT, bf, bg, bW, bY, bU) | |
391 | 385 | } | |
392 | 386 | ||
393 | 387 | ||
394 | - | func | |
395 | - | let | |
396 | - | let as = valueOrErrorMessage(addressFromString( | |
397 | - | let | |
388 | + | func bZ (ae,ca,cb) = { | |
389 | + | let cc = cb.payments[0] | |
390 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
391 | + | let cd = [if (!(Y)) | |
398 | 392 | then true | |
399 | - | else D("not allowed"), ac( | |
393 | + | else D("not allowed"), ac(cb.caller), if ((size(cb.payments) == 1)) | |
400 | 394 | then true | |
401 | - | else D("1 payment is required"), if (( | |
395 | + | else D("1 payment is required"), if ((cc.assetId == W)) | |
402 | 396 | then true | |
403 | - | else D("invalid asset"), if ((getInteger(T, aF( | |
397 | + | else D("invalid asset"), if ((getInteger(T, aF(bM(as))) == aE)) | |
404 | 398 | then true | |
405 | 399 | else D("account is not ready")] | |
406 | - | if (( | |
400 | + | if ((cd == cd)) | |
407 | 401 | then { | |
408 | - | let | |
409 | - | let | |
410 | - | $Tuple2( | |
402 | + | let ce = [ScriptTransfer(as, cc.amount, cc.assetId)] | |
403 | + | let cf = [invoke(T, "integerEntry", [ar(as), (valueOrElse(at(as), 0) + cc.amount)], nil)] | |
404 | + | $Tuple2(ce, cf) | |
411 | 405 | } | |
412 | 406 | else throw("Strict value is not equal to itself.") | |
413 | 407 | } | |
414 | 408 | ||
415 | 409 | ||
416 | - | func | |
417 | - | let as = valueOrErrorMessage(addressFromString( | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
410 | + | func cg (ae,ca,cb) = { | |
411 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
412 | + | let ch = G(ca[1]) | |
413 | + | let ci = E(valueOrErrorMessage(parseInt(ca[2]), B("invalid requested amount")), "requested amount") | |
414 | + | let cj = bO(as) | |
415 | + | let ck = addressFromPublicKey(ae) | |
416 | + | let cd = [if (!(Y)) | |
423 | 417 | then true | |
424 | - | else D("not allowed"), ac( | |
418 | + | else D("not allowed"), ac(cb.caller), if ((ae == cj)) | |
425 | 419 | then true | |
426 | 420 | else D("can be called by account owner only")] | |
427 | - | if (( | |
421 | + | if ((cd == cd)) | |
428 | 422 | then { | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | then w(fraction( | |
439 | - | else if (( | |
440 | - | then w( | |
423 | + | let aS = bN(as)._1 | |
424 | + | let bT = t(valueOrElse(at(as), 0), Q(W)) | |
425 | + | let bh = t(ba(aS), Q(W)) | |
426 | + | let bf = t(valueOrElse(getInteger(T, au(as, aS)), 0), Q(aS)) | |
427 | + | let bg = t(valueOrElse(getInteger(T, au(as, W)), 0), Q(W)) | |
428 | + | let bn = be(bf, bg, bh) | |
429 | + | let bq = t(valueOrErrorMessage(getInteger(T, aw(as)), B("leverage should be defined")), 1) | |
430 | + | let cl = bo(bT, bq, bn) | |
431 | + | let cm = if ((ch == aS)) | |
432 | + | then w(fraction(cl, f, bh), Q(aS)) | |
433 | + | else if ((ch == W)) | |
434 | + | then w(cl, Q(W)) | |
441 | 435 | else D("invalid requested asset id") | |
442 | - | let aC = G(valueOrErrorMessage(getString(T, az( | |
443 | - | let | |
444 | - | then | |
445 | - | else D(("credit available = " + toString( | |
446 | - | let | |
447 | - | $Tuple2(nil, [ | |
436 | + | let aC = G(valueOrErrorMessage(getString(T, az(ch)), B("synthetic asset for requested asset is undefined"))) | |
437 | + | let cn = if ((cm >= ci)) | |
438 | + | then ci | |
439 | + | else D(("credit available = " + toString(cm))) | |
440 | + | let cf = [invoke(T, "integerEntry", [au(as, ch), (valueOrElse(av(as, ch), 0) + cn)], nil), invoke(T, "transferAsset", [as.bytes, cn, aC], nil)] | |
441 | + | $Tuple2(nil, [cf, cm]) | |
448 | 442 | } | |
449 | 443 | else throw("Strict value is not equal to itself.") | |
450 | 444 | } | |
451 | 445 | ||
452 | 446 | ||
453 | - | @Callable( | |
454 | - | func init ( | |
455 | - | let | |
456 | - | if (( | |
457 | - | then $Tuple2([StringEntry(R, | |
447 | + | @Callable(cb) | |
448 | + | func init (co) = { | |
449 | + | let cp = ab(cb.caller) | |
450 | + | if ((cp == cp)) | |
451 | + | then $Tuple2([StringEntry(R, co)], unit) | |
458 | 452 | else throw("Strict value is not equal to itself.") | |
459 | 453 | } | |
460 | 454 | ||
461 | 455 | ||
462 | 456 | ||
463 | - | @Callable( | |
464 | - | func requestAccount (ae, | |
465 | - | let | |
457 | + | @Callable(cb) | |
458 | + | func requestAccount (ae,ca) = { | |
459 | + | let cd = [if (!(Y)) | |
466 | 460 | then true | |
467 | - | else D("not allowed"), ac( | |
468 | - | if (( | |
461 | + | else D("not allowed"), ac(cb.caller)] | |
462 | + | if ((cd == cd)) | |
469 | 463 | then { | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let ay = sha256( | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
464 | + | let cq = ca[0] | |
465 | + | let cr = ca[1] | |
466 | + | let bq = valueOrErrorMessage(parseInt(ca[2]), B("invalid leverage")) | |
467 | + | let ck = addressFromPublicKey(ae) | |
468 | + | let ay = sha256(cb.transactionId) | |
469 | + | let aS = G(cq) | |
470 | + | let aT = G(cr) | |
471 | + | let cs = (size(aO(ck)) / j) | |
472 | + | let ct = [if ((size(cb.payments) == 1)) | |
479 | 473 | then true | |
480 | - | else D("1 payment is required"), if (( | |
474 | + | else D("1 payment is required"), if ((cb.payments[0].assetId == unit)) | |
481 | 475 | then true | |
482 | - | else D("invalid asset"), if (( | |
476 | + | else D("invalid asset"), if ((cb.payments[0].amount == an())) | |
483 | 477 | then true | |
484 | - | else D("invalid amount"), if ( | |
478 | + | else D("invalid amount"), if (aU(aS, aT)) | |
485 | 479 | then true | |
486 | - | else D("pair is not allowed"), if (( | |
480 | + | else D("pair is not allowed"), if ((bq == 2)) | |
487 | 481 | then true | |
488 | - | else D("account is already exists"), if ((aq() > cu)) | |
482 | + | else D("leverage is not allowed"), if ((getInteger(T, aF(ay)) == unit)) | |
483 | + | then true | |
484 | + | else D("account is already exists"), if ((aq() > cs)) | |
489 | 485 | then true | |
490 | 486 | else D(("accounts limit is " + toString(aq())))] | |
491 | - | if (( | |
487 | + | if ((ct == ct)) | |
492 | 488 | then { | |
493 | - | let cw = $Tuple2([ScriptTransfer(T, an(), unit)], [invoke(T, "integerEntry", [aF(ay), aD], nil), invoke(T, "binaryEntry", [aM(), (aN() + ay)], nil), invoke(T, "integerEntry", [ax(ay), bs], nil)]) | |
494 | - | let cg = cw._1 | |
495 | - | let ch = cw._2 | |
496 | - | $Tuple2(cg, (ch ++ [invoke(T, "binaryEntry", [aH(ay), ae], nil), invoke(T, "binaryEntry", [aQ(cm), (aS(cm) + ay)], nil), invoke(T, "stringEntry", [aI(ay), cs], nil), invoke(T, "stringEntry", [aJ(ay), ct], nil)])) | |
489 | + | let ce = [ScriptTransfer(T, an(), unit)] | |
490 | + | $Tuple2(ce, [invoke(T, "integerEntry", [aF(ay), aD], nil), invoke(T, "binaryEntry", [aM(), (aN() + ay)], nil), invoke(T, "binaryEntry", [aO(ck), (aQ(ck) + ay)], nil), invoke(T, "binaryEntry", [aH(ay), ae], nil), invoke(T, "stringEntry", [aI(ay), cq], nil), invoke(T, "stringEntry", [aJ(ay), cr], nil), invoke(T, "integerEntry", [ax(ay), bq], nil)]) | |
497 | 491 | } | |
498 | 492 | else throw("Strict value is not equal to itself.") | |
499 | 493 | } | |
502 | 496 | ||
503 | 497 | ||
504 | 498 | ||
505 | - | @Callable(cd) | |
506 | - | func addAccount (ae,cc) = { | |
507 | - | let cf = [if (!(Y)) | |
499 | + | @Callable(cb) | |
500 | + | func editAccount (ae,ca) = { | |
501 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
502 | + | let cq = ca[1] | |
503 | + | let cr = ca[2] | |
504 | + | let bq = valueOrErrorMessage(parseInt(ca[3]), B("invalid leverage")) | |
505 | + | let ay = bM(as) | |
506 | + | let cu = bO(as) | |
507 | + | let aS = G(cq) | |
508 | + | let aT = G(cr) | |
509 | + | let ct = [if (!(Y)) | |
508 | 510 | then true | |
509 | - | else D("not allowed"), ac(cd.caller)] | |
510 | - | if ((cf == cf)) | |
511 | + | else D("not allowed"), ac(cb.caller), if ((ae == cu)) | |
512 | + | then true | |
513 | + | else D("caller is not an account owner"), if (aU(aS, aT)) | |
514 | + | then true | |
515 | + | else D("pair is not allowed"), if ((bq == 2)) | |
516 | + | then true | |
517 | + | else D("leverage is not allowed"), if ((getInteger(T, aF(ay)) == aE)) | |
518 | + | then true | |
519 | + | else D("account is not ready")] | |
520 | + | if ((ct == ct)) | |
521 | + | then $Tuple2(nil, [invoke(T, "stringEntry", [aI(ay), cq], nil), invoke(T, "stringEntry", [aJ(ay), cr], nil), invoke(T, "integerEntry", [ax(ay), bq], nil)]) | |
522 | + | else throw("Strict value is not equal to itself.") | |
523 | + | } | |
524 | + | ||
525 | + | ||
526 | + | ||
527 | + | @Callable(cb) | |
528 | + | func addAccount (ae,ca) = { | |
529 | + | let cd = [if (!(Y)) | |
530 | + | then true | |
531 | + | else D("not allowed"), ac(cb.caller)] | |
532 | + | if ((cd == cd)) | |
511 | 533 | then { | |
512 | - | let | |
513 | - | let | |
534 | + | let cv = fromBase58String(ca[0]) | |
535 | + | let bS = ae | |
514 | 536 | let as = addressFromPublicKey(ae) | |
515 | - | let | |
516 | - | let | |
537 | + | let cw = addressFromPublicKey(cv) | |
538 | + | let ct = [if ((getBinary(T, aG(as)) == unit)) | |
517 | 539 | then true | |
518 | 540 | else D("account is already exists"), if ({ | |
519 | 541 | let M = scriptHash(as) | |
520 | 542 | if ($isInstanceOf(M, "ByteVector")) | |
521 | 543 | then { | |
522 | - | let | |
523 | - | ( | |
544 | + | let cx = M | |
545 | + | (cx == blake2b256_32Kb(al())) | |
524 | 546 | } | |
525 | 547 | else false | |
526 | 548 | }) | |
527 | 549 | then true | |
528 | 550 | else D("invalid script")] | |
529 | - | if (( | |
551 | + | if ((ct == ct)) | |
530 | 552 | then { | |
531 | - | let | |
532 | - | then $Tuple2( | |
553 | + | let cy = if ((size(aN()) == 0)) | |
554 | + | then $Tuple2(D("requests queue is empty"), nil) | |
533 | 555 | else { | |
534 | 556 | let ay = take(aN(), j) | |
535 | - | let | |
536 | - | $Tuple2(nil, [invoke(T, "integerEntry", [aF(ay), aE], nil), invoke(T, "binaryEntry", [aK(ay), | |
557 | + | let bq = valueOrErrorMessage(getInteger(T, ax(ay)), B("request's leverage is undefined")) | |
558 | + | $Tuple2(nil, [invoke(T, "integerEntry", [aF(ay), aE], nil), invoke(T, "binaryEntry", [aK(ay), bS], nil), invoke(T, "binaryEntry", [aM(), drop(aN(), j)], nil), invoke(T, "stringEntry", [aL(as), toBase58String(ay)], nil), invoke(T, "transferWaves", [cw.bytes, an()], nil), invoke(T, "integerEntry", [aw(as), bq], nil)]) | |
537 | 559 | } | |
538 | - | let | |
539 | - | let | |
540 | - | $Tuple2( | |
560 | + | let ce = cy._1 | |
561 | + | let cf = cy._2 | |
562 | + | $Tuple2(ce, (cf ++ [invoke(T, "binaryEntry", [aG(as), cv], nil)])) | |
541 | 563 | } | |
542 | 564 | else throw("Strict value is not equal to itself.") | |
543 | 565 | } | |
546 | 568 | ||
547 | 569 | ||
548 | 570 | ||
549 | - | @Callable( | |
550 | - | func withdraw (ae, | |
551 | - | let | |
571 | + | @Callable(cb) | |
572 | + | func withdraw (ae,ca) = { | |
573 | + | let ct = [if (!(Y)) | |
552 | 574 | then true | |
553 | - | else D("not allowed"), ac( | |
554 | - | if (( | |
575 | + | else D("not allowed"), ac(cb.caller)] | |
576 | + | if ((ct == ct)) | |
555 | 577 | then { | |
556 | - | let | |
557 | - | let as = valueOrErrorMessage(addressFromString( | |
558 | - | let | |
559 | - | let K = G( | |
560 | - | let | |
561 | - | $Tuple2(nil, | |
578 | + | let ck = addressFromPublicKey(ae) | |
579 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
580 | + | let cz = valueOrErrorMessage(parseInt(ca[1]), B("invalid amount")) | |
581 | + | let K = G(ca[2]) | |
582 | + | let cA = [invoke(as, "transferAsset", [ck.bytes, cz, K], nil)] | |
583 | + | $Tuple2(nil, cA) | |
562 | 584 | } | |
563 | 585 | else throw("Strict value is not equal to itself.") | |
564 | 586 | } | |
565 | 587 | ||
566 | 588 | ||
567 | 589 | ||
568 | - | @Callable( | |
569 | - | func deposit (ae, | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | $Tuple2( | |
590 | + | @Callable(cb) | |
591 | + | func deposit (ae,ca) = { | |
592 | + | let cB = bZ(ae, ca, cb) | |
593 | + | let ce = cB._1 | |
594 | + | let cf = cB._2 | |
595 | + | $Tuple2(ce, cf) | |
574 | 596 | } | |
575 | 597 | ||
576 | 598 | ||
577 | 599 | ||
578 | - | @Callable( | |
579 | - | func borrow (ae, | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | $Tuple2( | |
600 | + | @Callable(cb) | |
601 | + | func borrow (ae,ca) = { | |
602 | + | let cC = cg(ae, ca, cb) | |
603 | + | let ce = cC._1 | |
604 | + | let cf = cC._2 | |
605 | + | $Tuple2(ce, cf) | |
584 | 606 | } | |
585 | 607 | ||
586 | 608 | ||
587 | 609 | ||
588 | - | @Callable( | |
589 | - | func depositAndBorrow (ae, | |
590 | - | let as = | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | $Tuple2(( | |
610 | + | @Callable(cb) | |
611 | + | func depositAndBorrow (ae,ca) = { | |
612 | + | let as = ca[0] | |
613 | + | let cD = bZ(ae, [as], cb) | |
614 | + | let cE = cD._1 | |
615 | + | let cF = cD._2 | |
616 | + | let cG = cg(ae, ca, cb) | |
617 | + | let cH = cG._1 | |
618 | + | let cI = cG._2 | |
619 | + | $Tuple2((cE ++ cH), (cF ++ cI)) | |
598 | 620 | } | |
599 | 621 | ||
600 | 622 | ||
601 | 623 | ||
602 | - | @Callable( | |
603 | - | func repay (ae, | |
604 | - | let | |
624 | + | @Callable(cb) | |
625 | + | func repay (ae,ca) = { | |
626 | + | let cd = [if (!(Y)) | |
605 | 627 | then true | |
606 | - | else D("not allowed"), ac( | |
607 | - | if (( | |
628 | + | else D("not allowed"), ac(cb.caller)] | |
629 | + | if ((cd == cd)) | |
608 | 630 | then $Tuple2(nil, unit) | |
609 | 631 | else throw("Strict value is not equal to itself.") | |
610 | 632 | } | |
611 | 633 | ||
612 | 634 | ||
613 | 635 | ||
614 | - | @Callable( | |
615 | - | func setPairAllowance (ae, | |
616 | - | let | |
636 | + | @Callable(cb) | |
637 | + | func setPairAllowance (ae,ca) = { | |
638 | + | let cd = [if (!(Y)) | |
617 | 639 | then true | |
618 | - | else D("not allowed"), ac( | |
619 | - | if (( | |
640 | + | else D("not allowed"), ac(cb.caller), ad(ae)] | |
641 | + | if ((cd == cd)) | |
620 | 642 | then { | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | $Tuple2(nil, | |
643 | + | let cq = ca[0] | |
644 | + | let cr = ca[1] | |
645 | + | let cJ = ca[2] | |
646 | + | let aS = G(cq) | |
647 | + | let aT = G(cr) | |
648 | + | let cK = (cJ == "true") | |
649 | + | let cA = [invoke(T, "booleanEntry", [aR(aS, aT), cK], nil)] | |
650 | + | $Tuple2(nil, cA) | |
629 | 651 | } | |
630 | 652 | else throw("Strict value is not equal to itself.") | |
631 | 653 | } | |
632 | 654 | ||
633 | 655 | ||
634 | 656 | ||
635 | - | @Callable( | |
636 | - | func addSyntheticAsset (ae, | |
637 | - | let aA = G( | |
638 | - | let aC = G( | |
639 | - | let | |
657 | + | @Callable(cb) | |
658 | + | func addSyntheticAsset (ae,ca) = { | |
659 | + | let aA = G(ca[0]) | |
660 | + | let aC = G(ca[1]) | |
661 | + | let cd = [if (!(Y)) | |
640 | 662 | then true | |
641 | - | else D("not allowed"), ac( | |
663 | + | else D("not allowed"), ac(cb.caller), ad(ae), if ((getString(T, az(aA)) == unit)) | |
642 | 664 | then true | |
643 | 665 | else D("invalid base asset"), if ((getString(T, aB(aC)) == unit)) | |
644 | 666 | then true | |
645 | 667 | else D("invalid synthetic asset")] | |
646 | - | if (( | |
668 | + | if ((cd == cd)) | |
647 | 669 | then { | |
648 | - | let | |
649 | - | $Tuple2(nil, | |
670 | + | let cA = [invoke(T, "stringEntry", [az(aA), I(aC)], nil), invoke(T, "stringEntry", [aB(aC), I(aA)], nil)] | |
671 | + | $Tuple2(nil, cA) | |
650 | 672 | } | |
651 | 673 | else throw("Strict value is not equal to itself.") | |
652 | 674 | } | |
653 | 675 | ||
654 | 676 | ||
655 | 677 | ||
656 | - | @Callable( | |
657 | - | func doShutdown (ae, | |
658 | - | let | |
659 | - | if (( | |
678 | + | @Callable(cb) | |
679 | + | func doShutdown (ae,ca) = { | |
680 | + | let ct = [ac(cb.caller), ad(ae)] | |
681 | + | if ((ct == ct)) | |
660 | 682 | then { | |
661 | - | let | |
662 | - | $Tuple2(nil, | |
683 | + | let cA = [invoke(T, "booleanEntry", [q, true], nil)] | |
684 | + | $Tuple2(nil, cA) | |
663 | 685 | } | |
664 | 686 | else throw("Strict value is not equal to itself.") | |
665 | 687 | } | |
666 | 688 | ||
667 | 689 | ||
668 | 690 | ||
669 | - | @Callable( | |
670 | - | func getAccountInfoREADONLY (ae, | |
671 | - | let | |
672 | - | if (( | |
691 | + | @Callable(cb) | |
692 | + | func getAccountInfoREADONLY (ae,ca) = { | |
693 | + | let ct = [ac(cb.caller)] | |
694 | + | if ((ct == ct)) | |
673 | 695 | then { | |
674 | - | let as = valueOrErrorMessage(addressFromString( | |
675 | - | let | |
676 | - | $Tuple2(nil, | |
696 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
697 | + | let cL = bQ(as) | |
698 | + | $Tuple2(nil, cL) | |
677 | 699 | } | |
678 | 700 | else throw("Strict value is not equal to itself.") | |
679 | 701 | } | |
680 | 702 | ||
681 | 703 | ||
682 | 704 | ||
683 | - | @Callable( | |
684 | - | func getUserInfoREADONLY (ae, | |
685 | - | let | |
686 | - | if (( | |
705 | + | @Callable(cb) | |
706 | + | func getUserInfoREADONLY (ae,ca) = { | |
707 | + | let ct = [ac(cb.caller)] | |
708 | + | if ((ct == ct)) | |
687 | 709 | then { | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | func | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | if (( | |
710 | + | let ck = valueOrErrorMessage(addressFromString(ca[0]), B("invalid user address")) | |
711 | + | let cM = valueOrElse(getBinary(T, aO(ck)), base58'') | |
712 | + | let cs = (size(cM) / j) | |
713 | + | func cN (cO,cP) = { | |
714 | + | let cQ = cO | |
715 | + | let cR = cQ._1 | |
716 | + | let cS = cQ._2 | |
717 | + | let cT = cQ._3 | |
718 | + | if ((cT > cP)) | |
697 | 719 | then { | |
698 | - | let ay = take( | |
699 | - | let | |
700 | - | let | |
701 | - | let as = addressFromPublicKey( | |
702 | - | let | |
703 | - | $Tuple3(( | |
720 | + | let ay = take(cS, j) | |
721 | + | let cU = drop(cS, j) | |
722 | + | let bS = valueOrErrorMessage(getBinary(T, aK(ay)), "kRequestIdToAccountPublicKey not found") | |
723 | + | let as = addressFromPublicKey(bS) | |
724 | + | let cL = bQ(as) | |
725 | + | $Tuple3((cR :+ cL), cU, cT) | |
704 | 726 | } | |
705 | - | else | |
727 | + | else cO | |
706 | 728 | } | |
707 | 729 | ||
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | func | |
713 | - | then | |
714 | - | else | |
730 | + | let cV = { | |
731 | + | let cW = l | |
732 | + | let cX = size(cW) | |
733 | + | let cY = $Tuple3(nil, cM, cs) | |
734 | + | func cZ (da,db) = if ((db >= cX)) | |
735 | + | then da | |
736 | + | else cN(da, cW[db]) | |
715 | 737 | ||
716 | - | func | |
717 | - | then | |
738 | + | func dc (da,db) = if ((db >= cX)) | |
739 | + | then da | |
718 | 740 | else throw("List size exceeds 20") | |
719 | 741 | ||
720 | - | | |
742 | + | dc(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cY, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
721 | 743 | } | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | $Tuple2(nil, | |
744 | + | let cR = cV._1 | |
745 | + | let dd = cV._2 | |
746 | + | let de = cV._3 | |
747 | + | $Tuple2(nil, cR) | |
726 | 748 | } | |
727 | 749 | else throw("Strict value is not equal to itself.") | |
728 | 750 | } | |
729 | 751 | ||
730 | 752 | ||
731 | 753 | ||
732 | - | @Callable( | |
733 | - | func getPairSettingsInfoREADONLY (ae, | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | func | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | let | |
745 | - | ( | |
754 | + | @Callable(cb) | |
755 | + | func getPairSettingsInfoREADONLY (ae,ca) = { | |
756 | + | let df = G(ca[0]) | |
757 | + | let dg = G(ca[1]) | |
758 | + | let dh = aX(df, dg) | |
759 | + | func di (cO,dj) = { | |
760 | + | let dk = aY(df, dg, dj) | |
761 | + | let dl = getStringValue(T, dk) | |
762 | + | let dm = split(dl, a) | |
763 | + | let bd = parseInt(dj) | |
764 | + | let dn = parseInt(dm[1]) | |
765 | + | let do = parseInt(dm[2]) | |
766 | + | let dp = parseInt(dm[3]) | |
767 | + | (cO :+ $Tuple4(bd, dn, do, dp)) | |
746 | 768 | } | |
747 | 769 | ||
748 | - | let | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | func | |
753 | - | then | |
754 | - | else | |
770 | + | let cL = { | |
771 | + | let cW = dh | |
772 | + | let cX = size(cW) | |
773 | + | let cY = nil | |
774 | + | func cZ (da,db) = if ((db >= cX)) | |
775 | + | then da | |
776 | + | else di(da, cW[db]) | |
755 | 777 | ||
756 | - | func | |
757 | - | then | |
778 | + | func dc (da,db) = if ((db >= cX)) | |
779 | + | then da | |
758 | 780 | else throw("List size exceeds 20") | |
759 | 781 | ||
760 | - | | |
782 | + | dc(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cY, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
761 | 783 | } | |
762 | - | $Tuple2(nil, | |
784 | + | $Tuple2(nil, cL) | |
763 | 785 | } | |
764 | 786 | ||
765 | 787 | ||
766 | 788 | ||
767 | - | @Callable( | |
768 | - | func editPairSettings (ae, | |
769 | - | let | |
770 | - | if (( | |
789 | + | @Callable(cb) | |
790 | + | func editPairSettings (ae,ca) = { | |
791 | + | let ct = [ac(cb.caller), ad(ae)] | |
792 | + | if ((ct == ct)) | |
771 | 793 | then { | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let M = indexOf( | |
794 | + | let df = G(ca[0]) | |
795 | + | let dg = G(ca[1]) | |
796 | + | let bd = ca[2] | |
797 | + | let dn = ca[3] | |
798 | + | let do = ca[4] | |
799 | + | let dp = ca[5] | |
800 | + | let dq = aW(df, dg) | |
801 | + | let dk = aY(df, dg, bd) | |
802 | + | let dh = aX(df, dg) | |
803 | + | let dr = { | |
804 | + | let M = indexOf(dh, bd) | |
783 | 805 | if ($isInstanceOf(M, "Int")) | |
784 | 806 | then { | |
785 | - | let | |
786 | - | | |
807 | + | let ds = M | |
808 | + | dh | |
787 | 809 | } | |
788 | - | else ( | |
810 | + | else (dh :+ bd) | |
789 | 811 | } | |
790 | - | let | |
812 | + | let dt = [valueOrErrorMessage(parseInt(bd), B("price value is not an Int")), valueOrErrorMessage(dn, B("maxLeverage value is not an Int")), valueOrErrorMessage(do, B("initialMargin value is not an Int")), valueOrErrorMessage(dp, B("maintenanceMargin value is not an Int")), if ((20 >= size(dr))) | |
791 | 813 | then true | |
792 | 814 | else D("exceeded max prices list size (20)")] | |
793 | - | if (( | |
815 | + | if ((dt == dt)) | |
794 | 816 | then { | |
795 | - | let | |
796 | - | let | |
797 | - | $Tuple2(nil, | |
817 | + | let du = makeString(["%s%s%s", dn, do, dp], a) | |
818 | + | let cA = [invoke(T, "stringEntry", [aW(df, dg), makeString(dr, a)], nil), invoke(T, "stringEntry", [aY(df, dg, bd), du], nil)] | |
819 | + | $Tuple2(nil, cA) | |
798 | 820 | } | |
799 | 821 | else throw("Strict value is not equal to itself.") | |
800 | 822 | } | |
803 | 825 | ||
804 | 826 | ||
805 | 827 | ||
806 | - | @Callable( | |
807 | - | func deletePairSettings (ae, | |
808 | - | let | |
809 | - | if (( | |
828 | + | @Callable(cb) | |
829 | + | func deletePairSettings (ae,ca) = { | |
830 | + | let ct = [ac(cb.caller), ad(ae)] | |
831 | + | if ((ct == ct)) | |
810 | 832 | then { | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | let M = indexOf( | |
833 | + | let df = G(ca[0]) | |
834 | + | let dg = G(ca[1]) | |
835 | + | let bd = ca[2] | |
836 | + | let dk = aY(df, dg, bd) | |
837 | + | let dq = aW(df, dg) | |
838 | + | let dh = aX(df, dg) | |
839 | + | let dr = { | |
840 | + | let M = indexOf(dh, bd) | |
819 | 841 | if ($isInstanceOf(M, "Int")) | |
820 | 842 | then { | |
821 | - | let | |
822 | - | removeByIndex( | |
843 | + | let ds = M | |
844 | + | removeByIndex(dh, ds) | |
823 | 845 | } | |
824 | - | else | |
846 | + | else dh | |
825 | 847 | } | |
826 | - | let | |
827 | - | then invoke(T, "deleteEntry", [ | |
828 | - | else invoke(T, "stringEntry", [ | |
829 | - | $Tuple2(nil, | |
848 | + | let cA = [invoke(T, "deleteEntry", [dk], nil), if ((size(dr) == 0)) | |
849 | + | then invoke(T, "deleteEntry", [aW(df, dg)], nil) | |
850 | + | else invoke(T, "stringEntry", [aW(df, dg), makeString(dr, a)], nil)] | |
851 | + | $Tuple2(nil, cA) | |
830 | 852 | } | |
831 | 853 | else throw("Strict value is not equal to itself.") | |
832 | 854 | } | |
833 | 855 | ||
834 | 856 | ||
835 | - | @Verifier( | |
836 | - | func | |
857 | + | @Verifier(dv) | |
858 | + | func dw () = if (if (isDefined(S)) | |
837 | 859 | then isDefined(getString(T, m)) | |
838 | 860 | else false) | |
839 | 861 | then { | |
841 | 863 | if ($isInstanceOf(M, "String")) | |
842 | 864 | then { | |
843 | 865 | let ai = M | |
844 | - | let | |
845 | - | let | |
846 | - | | |
866 | + | let dx = n(toString(this), toBase58String(dv.id)) | |
867 | + | let bU = valueOrElse(getBoolean(addressFromStringValue(ai), dx), false) | |
868 | + | bU | |
847 | 869 | } | |
848 | 870 | else false | |
849 | 871 | } | |
850 | - | else sigVerify( | |
872 | + | else sigVerify(dv.bodyBytes, dv.proofs[0], dv.senderPublicKey) | |
851 | 873 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = take(drop(this.bytes, 1), 1) | |
7 | 7 | ||
8 | 8 | let c = base58'2W' | |
9 | 9 | ||
10 | 10 | let d = "futures_calculator.ride" | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1000000000000000000) | |
15 | 15 | ||
16 | 16 | let g = 8 | |
17 | 17 | ||
18 | 18 | let h = 6 | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = 32 | |
23 | 23 | ||
24 | 24 | let k = toBigInt(0) | |
25 | 25 | ||
26 | 26 | let l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
27 | 27 | ||
28 | 28 | let m = "%s__multisig" | |
29 | 29 | ||
30 | 30 | func n (o,p) = makeString(["%s__status", o, p], a) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | let q = "%s__shutdown" | |
34 | 34 | ||
35 | 35 | let r = "%s__publicKeys" | |
36 | 36 | ||
37 | 37 | let s = "%s__matcherPublicKey" | |
38 | 38 | ||
39 | 39 | func t (u,v) = fraction(toBigInt(u), f, toBigInt(v)) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func w (x,y) = toInt(fraction(x, toBigInt(y), f)) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func z (A) = isDefined(addressFromString(A)) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func B (C) = ((d + ": ") + C) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func D (C) = throw(B(C)) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func E (F,C) = if ((F >= 0)) | |
55 | 55 | then F | |
56 | 56 | else D((C + " value should be positive")) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func G (H) = if ((H == i)) | |
60 | 60 | then unit | |
61 | 61 | else fromBase58String(H) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func I (H) = if ((H == unit)) | |
65 | 65 | then i | |
66 | 66 | else toBase58String(value(H)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func J (K) = valueOrErrorMessage(assetInfo(K), B("invalid asset info")) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func L (K) = { | |
73 | 73 | let M = K | |
74 | 74 | if ($isInstanceOf(M, "Unit")) | |
75 | 75 | then g | |
76 | 76 | else if ($isInstanceOf(M, "ByteVector")) | |
77 | 77 | then { | |
78 | 78 | let K = M | |
79 | 79 | J(K).decimals | |
80 | 80 | } | |
81 | 81 | else throw("Match error") | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func N (K,A) = { | |
86 | 86 | let M = K | |
87 | 87 | if ($isInstanceOf(M, "Unit")) | |
88 | 88 | then wavesBalance(A).available | |
89 | 89 | else if ($isInstanceOf(M, "ByteVector")) | |
90 | 90 | then { | |
91 | 91 | let K = M | |
92 | 92 | assetBalance(A, K) | |
93 | 93 | } | |
94 | 94 | else throw("Match error") | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func O (P) = pow(10, 0, P, 0, 0, DOWN) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func Q (K) = O(L(K)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | let R = "%s__factoryAddress" | |
105 | 105 | ||
106 | 106 | let S = { | |
107 | 107 | let M = getString(this, R) | |
108 | 108 | if ($isInstanceOf(M, "String")) | |
109 | 109 | then { | |
110 | 110 | let C = M | |
111 | 111 | addressFromString(C) | |
112 | 112 | } | |
113 | 113 | else if ($isInstanceOf(M, "Unit")) | |
114 | 114 | then unit | |
115 | 115 | else throw("Match error") | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | let T = valueOrErrorMessage(S, B("invalid factory address")) | |
119 | 119 | ||
120 | 120 | let U = "%s__usdtAssetId" | |
121 | 121 | ||
122 | 122 | let V = { | |
123 | 123 | let M = getString(T, U) | |
124 | 124 | if ($isInstanceOf(M, "String")) | |
125 | 125 | then { | |
126 | 126 | let C = M | |
127 | 127 | G(C) | |
128 | 128 | } | |
129 | 129 | else if ($isInstanceOf(M, "Unit")) | |
130 | 130 | then unit | |
131 | 131 | else throw("Match error") | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | let W = valueOrErrorMessage(V, B("invalid usdt asset id")) | |
135 | 135 | ||
136 | 136 | let X = "%s__calculatorAddress" | |
137 | 137 | ||
138 | 138 | let Y = valueOrElse(getBoolean(T, q), false) | |
139 | 139 | ||
140 | 140 | func Z (aa,A) = if ((aa == A)) | |
141 | 141 | then true | |
142 | 142 | else D("permission denied") | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ab (aa) = Z(aa, this) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ac (aa) = Z(aa, T) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ad (ae) = { | |
152 | 152 | let af = getString(T, m) | |
153 | 153 | let ag = { | |
154 | 154 | let M = af | |
155 | 155 | if ($isInstanceOf(M, "String")) | |
156 | 156 | then { | |
157 | 157 | let ah = M | |
158 | 158 | let ai = addressFromStringValue(ah) | |
159 | 159 | let aj = split(getStringValue(ai, r), a) | |
160 | 160 | containsElement(aj, toBase58String(ae)) | |
161 | 161 | } | |
162 | 162 | else (addressFromPublicKey(ae) == T) | |
163 | 163 | } | |
164 | 164 | if (ag) | |
165 | 165 | then true | |
166 | 166 | else D("not allowed") | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | let ak = "%s__accountScript" | |
171 | 171 | ||
172 | 172 | func al () = valueOrErrorMessage(getBinary(T, ak), B("account script is not set")) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | let am = "%s__rewardAmount" | |
176 | 176 | ||
177 | 177 | func an () = valueOrErrorMessage(getInteger(T, am), B("reward amount is not set")) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | let ao = "%s__accountsLimit" | |
181 | 181 | ||
182 | 182 | let ap = 20 | |
183 | 183 | ||
184 | 184 | func aq () = valueOrElse(getInteger(T, ao), ap) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func ar (as) = makeString(["%s%s", "deposited", toString(as)], a) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func at (as) = getInteger(T, ar(as)) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func au (as,K) = makeString(["%s%s%s", "credit", toString(as), I(K)], a) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func av (as,K) = getInteger(T, au(as, K)) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func aw (as) = makeString(["%s%s", "leverage", toString(as)], a) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func ax (ay) = makeString(["%s%s", "requestLeverage", toBase58String(ay)], a) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func az (aA) = makeString(["%s%s", "syntheticAssetId", I(aA)], a) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aB (aC) = makeString(["%s%s", "baseAssetId", I(aC)], a) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | let aD = 0 | |
212 | 212 | ||
213 | 213 | let aE = 1 | |
214 | 214 | ||
215 | 215 | func aF (ay) = makeString(["%s%s", toBase58String(ay), "status"], a) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func aG (as) = makeString(["%s%s", toString(as), "creatorPublicKey"], a) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func aH (ay) = makeString(["%s%s", toBase58String(ay), "ownerPublicKey"], a) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func aI (ay) = makeString(["%s%s", toBase58String(ay), "amountAssetId"], a) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func aJ (ay) = makeString(["%s%s", toBase58String(ay), "priceAssetId"], a) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func aK (ay) = makeString(["%s%s", toBase58String(ay), "requestIdToAccountPublicKey"], a) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func aL (as) = makeString(["%s%s", toString(as), "accountAddressToRequestId"], a) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func aM () = makeString(["%s", "requestsQueue"], a) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aN () = valueOrElse(getBinary(T, aM()), base58'') | |
240 | 240 | ||
241 | 241 | ||
242 | - | func aO () = makeString(["%s", " | |
242 | + | func aO (aP) = makeString(["%s%s", "requests", toString(aP)], a) | |
243 | 243 | ||
244 | 244 | ||
245 | - | func | |
245 | + | func aQ (aP) = valueOrElse(getBinary(T, aO(aP)), base58'') | |
246 | 246 | ||
247 | 247 | ||
248 | - | func | |
248 | + | func aR (aS,aT) = makeString(["%s%s%s", I(aS), I(aT), "pairAllowed"], a) | |
249 | 249 | ||
250 | 250 | ||
251 | - | func | |
251 | + | func aU (aS,aT) = valueOrElse(getBoolean(T, aR(aS, aT)), false) | |
252 | 252 | ||
253 | 253 | ||
254 | - | func | |
254 | + | func aV (K) = makeString(["%s", I(K)], a) | |
255 | 255 | ||
256 | 256 | ||
257 | - | func aW ( | |
257 | + | func aW (aS,aT) = makeString(["%s%s%s", I(aS), I(aT), "pairSettingPrices"], a) | |
258 | 258 | ||
259 | 259 | ||
260 | - | func aX (K) = makeString(["%s", I(K)], a) | |
261 | - | ||
262 | - | ||
263 | - | func aY (aU,aV) = makeString(["%s%s%s", I(aU), I(aV), "pairSettingPrices"], a) | |
264 | - | ||
265 | - | ||
266 | - | func aZ (aU,aV) = { | |
267 | - | let M = getString(T, aY(aU, aV)) | |
260 | + | func aX (aS,aT) = { | |
261 | + | let M = getString(T, aW(aS, aT)) | |
268 | 262 | if ($isInstanceOf(M, "String")) | |
269 | 263 | then { | |
270 | 264 | let C = M | |
271 | 265 | split(C, a) | |
272 | 266 | } | |
273 | 267 | else nil | |
274 | 268 | } | |
275 | 269 | ||
276 | 270 | ||
277 | - | func | |
271 | + | func aY (aS,aT,aZ) = makeString(["%s%s%d%s", I(aS), I(aT), aZ, "settings"], a) | |
278 | 272 | ||
279 | 273 | ||
280 | - | func | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | | |
274 | + | func ba (K) = { | |
275 | + | let bb = fromBase58String(valueOrErrorMessage(getString(T, s), B("invalid matcher public key"))) | |
276 | + | let bc = addressFromPublicKey(bb) | |
277 | + | let bd = valueOrErrorMessage(getInteger(bc, aV(K)), B(("invalid price, assetId = " + I(K)))) | |
278 | + | bd | |
285 | 279 | } | |
286 | 280 | ||
287 | 281 | ||
288 | - | func | |
282 | + | func be (bf,bg,bh) = (fraction(bf, bh, f) + bg) | |
289 | 283 | ||
290 | 284 | ||
291 | - | func | |
285 | + | func bi (bj,bk,bh) = (fraction(bj, bh, f) + bk) | |
292 | 286 | ||
293 | 287 | ||
294 | - | func | |
288 | + | func bl (bm,bn) = (bm - bn) | |
295 | 289 | ||
296 | 290 | ||
297 | - | func | |
291 | + | func bo (bp,bq,bn) = (fraction(bp, bq, f) - bn) | |
298 | 292 | ||
299 | 293 | ||
300 | - | func | |
301 | - | then ( | |
294 | + | func br (bs,bt) = if ((bs > k)) | |
295 | + | then (bs - bt) | |
302 | 296 | else k | |
303 | 297 | ||
304 | 298 | ||
305 | - | func | |
306 | - | then ( | |
299 | + | func bu (bs,bt) = if ((bs > k)) | |
300 | + | then (bt - bs) | |
307 | 301 | else k | |
308 | 302 | ||
309 | 303 | ||
310 | - | func | |
311 | - | then max([k, fraction( | |
304 | + | func bv (bw,bx) = if ((bx > k)) | |
305 | + | then max([k, fraction(bw, f, bx)]) | |
312 | 306 | else k | |
313 | 307 | ||
314 | 308 | ||
315 | - | func | |
316 | - | then max([k, fraction( | |
309 | + | func by (bw,bx) = if ((bx > k)) | |
310 | + | then max([k, fraction(bx, f, bw)]) | |
317 | 311 | else k | |
318 | 312 | ||
319 | 313 | ||
320 | - | func | |
314 | + | func bz (bA,bB,bh,bC) = fraction((fraction(bA, bh, f) + bB), bC, f) | |
321 | 315 | ||
322 | 316 | ||
323 | - | func | |
317 | + | func bD (bE,bC,bF) = fraction(bE, bF, bC) | |
324 | 318 | ||
325 | 319 | ||
326 | - | func | |
327 | - | let | |
328 | - | then ((( | |
320 | + | func bG (bp,bH,bA,bB,bI,bJ) = { | |
321 | + | let bK = if ((bA > k)) | |
322 | + | then (((bp - bH) / bA) + bI) | |
329 | 323 | else k | |
330 | - | let | |
331 | - | then ( | |
324 | + | let bL = if ((bB > k)) | |
325 | + | then (bJ - ((bp - bH) / (bA / bJ))) | |
332 | 326 | else k | |
333 | - | ( | |
327 | + | (bK + bL) | |
334 | 328 | } | |
335 | 329 | ||
336 | 330 | ||
337 | - | func | |
331 | + | func bM (as) = { | |
338 | 332 | let ay = fromBase58String(valueOrErrorMessage(getString(T, aL(as)), B("invalid account address: request id is undefined"))) | |
339 | 333 | ay | |
340 | 334 | } | |
341 | 335 | ||
342 | 336 | ||
343 | - | func bP (as) = { | |
344 | - | let ay = bO(as) | |
345 | - | let aU = G(valueOrErrorMessage(getString(T, aI(ay)), B("invalid amount asset id"))) | |
346 | - | let aV = G(valueOrErrorMessage(getString(T, aJ(ay)), B("invalid amount price id"))) | |
347 | - | $Tuple2(aU, aV) | |
337 | + | func bN (as) = { | |
338 | + | let ay = bM(as) | |
339 | + | let aS = G(valueOrErrorMessage(getString(T, aI(ay)), B("invalid amount asset id"))) | |
340 | + | let aT = G(valueOrErrorMessage(getString(T, aJ(ay)), B("invalid amount price id"))) | |
341 | + | $Tuple2(aS, aT) | |
342 | + | } | |
343 | + | ||
344 | + | ||
345 | + | func bO (as) = { | |
346 | + | let ay = bM(as) | |
347 | + | let bP = valueOrErrorMessage(getBinary(T, aH(ay)), B("invalid amount asset id")) | |
348 | + | bP | |
348 | 349 | } | |
349 | 350 | ||
350 | 351 | ||
351 | 352 | func bQ (as) = { | |
352 | - | let ay = bO(as) | |
353 | - | let bR = valueOrErrorMessage(getBinary(T, aH(ay)), B("invalid amount asset id")) | |
354 | - | bR | |
355 | - | } | |
356 | - | ||
357 | - | ||
358 | - | func bS (as) = { | |
359 | - | let bT = bP(as) | |
360 | - | let aU = bT._1 | |
361 | - | let aV = bT._2 | |
362 | - | let bs = valueOrErrorMessage(getInteger(T, aw(as)), B("leverage should be defined")) | |
363 | - | let ay = bO(as) | |
364 | - | let bU = valueOrErrorMessage(getBinary(T, aK(ay)), "kRequestIdToAccountPublicKey not found") | |
365 | - | let bV = valueOrElse(at(as), 0) | |
366 | - | let bj = t(bc(aU), Q(aV)) | |
367 | - | let bh = valueOrElse(getInteger(T, au(as, aU)), 0) | |
368 | - | let bi = valueOrElse(getInteger(T, au(as, aV)), 0) | |
369 | - | let bW = valueOrErrorMessage(getInteger(T, aF(ay)), ("status not found. RequestId = " + toBase58String(ay))) | |
370 | - | let bX = getString(T, az(aU)) | |
353 | + | let bR = bN(as) | |
354 | + | let aS = bR._1 | |
355 | + | let aT = bR._2 | |
356 | + | let bq = valueOrErrorMessage(getInteger(T, aw(as)), B("leverage should be defined")) | |
357 | + | let ay = bM(as) | |
358 | + | let bS = valueOrErrorMessage(getBinary(T, aK(ay)), "kRequestIdToAccountPublicKey not found") | |
359 | + | let bT = valueOrElse(at(as), 0) | |
360 | + | let bh = t(ba(aS), Q(aT)) | |
361 | + | let bf = valueOrElse(getInteger(T, au(as, aS)), 0) | |
362 | + | let bg = valueOrElse(getInteger(T, au(as, aT)), 0) | |
363 | + | let bU = valueOrErrorMessage(getInteger(T, aF(ay)), ("status not found. RequestId = " + toBase58String(ay))) | |
364 | + | let bV = getString(T, az(aS)) | |
365 | + | let bW = { | |
366 | + | let M = bV | |
367 | + | if ($isInstanceOf(M, "String")) | |
368 | + | then { | |
369 | + | let C = M | |
370 | + | N(G(C), as) | |
371 | + | } | |
372 | + | else 0 | |
373 | + | } | |
374 | + | let bX = getString(T, az(aT)) | |
371 | 375 | let bY = { | |
372 | 376 | let M = bX | |
373 | 377 | if ($isInstanceOf(M, "String")) | |
374 | 378 | then { | |
375 | 379 | let C = M | |
376 | 380 | N(G(C), as) | |
377 | 381 | } | |
378 | 382 | else 0 | |
379 | 383 | } | |
380 | - | let bZ = getString(T, az(aV)) | |
381 | - | let ca = { | |
382 | - | let M = bZ | |
383 | - | if ($isInstanceOf(M, "String")) | |
384 | - | then { | |
385 | - | let C = M | |
386 | - | N(G(C), as) | |
387 | - | } | |
388 | - | else 0 | |
389 | - | } | |
390 | - | $Tuple12(I(aU), I(aV), toString(as), toBase58String(bU), bs, toBase58String(ay), bV, bh, bi, bY, ca, bW) | |
384 | + | $Tuple12(I(aS), I(aT), toString(as), toBase58String(bS), bq, toBase58String(ay), bT, bf, bg, bW, bY, bU) | |
391 | 385 | } | |
392 | 386 | ||
393 | 387 | ||
394 | - | func | |
395 | - | let | |
396 | - | let as = valueOrErrorMessage(addressFromString( | |
397 | - | let | |
388 | + | func bZ (ae,ca,cb) = { | |
389 | + | let cc = cb.payments[0] | |
390 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
391 | + | let cd = [if (!(Y)) | |
398 | 392 | then true | |
399 | - | else D("not allowed"), ac( | |
393 | + | else D("not allowed"), ac(cb.caller), if ((size(cb.payments) == 1)) | |
400 | 394 | then true | |
401 | - | else D("1 payment is required"), if (( | |
395 | + | else D("1 payment is required"), if ((cc.assetId == W)) | |
402 | 396 | then true | |
403 | - | else D("invalid asset"), if ((getInteger(T, aF( | |
397 | + | else D("invalid asset"), if ((getInteger(T, aF(bM(as))) == aE)) | |
404 | 398 | then true | |
405 | 399 | else D("account is not ready")] | |
406 | - | if (( | |
400 | + | if ((cd == cd)) | |
407 | 401 | then { | |
408 | - | let | |
409 | - | let | |
410 | - | $Tuple2( | |
402 | + | let ce = [ScriptTransfer(as, cc.amount, cc.assetId)] | |
403 | + | let cf = [invoke(T, "integerEntry", [ar(as), (valueOrElse(at(as), 0) + cc.amount)], nil)] | |
404 | + | $Tuple2(ce, cf) | |
411 | 405 | } | |
412 | 406 | else throw("Strict value is not equal to itself.") | |
413 | 407 | } | |
414 | 408 | ||
415 | 409 | ||
416 | - | func | |
417 | - | let as = valueOrErrorMessage(addressFromString( | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
410 | + | func cg (ae,ca,cb) = { | |
411 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
412 | + | let ch = G(ca[1]) | |
413 | + | let ci = E(valueOrErrorMessage(parseInt(ca[2]), B("invalid requested amount")), "requested amount") | |
414 | + | let cj = bO(as) | |
415 | + | let ck = addressFromPublicKey(ae) | |
416 | + | let cd = [if (!(Y)) | |
423 | 417 | then true | |
424 | - | else D("not allowed"), ac( | |
418 | + | else D("not allowed"), ac(cb.caller), if ((ae == cj)) | |
425 | 419 | then true | |
426 | 420 | else D("can be called by account owner only")] | |
427 | - | if (( | |
421 | + | if ((cd == cd)) | |
428 | 422 | then { | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | then w(fraction( | |
439 | - | else if (( | |
440 | - | then w( | |
423 | + | let aS = bN(as)._1 | |
424 | + | let bT = t(valueOrElse(at(as), 0), Q(W)) | |
425 | + | let bh = t(ba(aS), Q(W)) | |
426 | + | let bf = t(valueOrElse(getInteger(T, au(as, aS)), 0), Q(aS)) | |
427 | + | let bg = t(valueOrElse(getInteger(T, au(as, W)), 0), Q(W)) | |
428 | + | let bn = be(bf, bg, bh) | |
429 | + | let bq = t(valueOrErrorMessage(getInteger(T, aw(as)), B("leverage should be defined")), 1) | |
430 | + | let cl = bo(bT, bq, bn) | |
431 | + | let cm = if ((ch == aS)) | |
432 | + | then w(fraction(cl, f, bh), Q(aS)) | |
433 | + | else if ((ch == W)) | |
434 | + | then w(cl, Q(W)) | |
441 | 435 | else D("invalid requested asset id") | |
442 | - | let aC = G(valueOrErrorMessage(getString(T, az( | |
443 | - | let | |
444 | - | then | |
445 | - | else D(("credit available = " + toString( | |
446 | - | let | |
447 | - | $Tuple2(nil, [ | |
436 | + | let aC = G(valueOrErrorMessage(getString(T, az(ch)), B("synthetic asset for requested asset is undefined"))) | |
437 | + | let cn = if ((cm >= ci)) | |
438 | + | then ci | |
439 | + | else D(("credit available = " + toString(cm))) | |
440 | + | let cf = [invoke(T, "integerEntry", [au(as, ch), (valueOrElse(av(as, ch), 0) + cn)], nil), invoke(T, "transferAsset", [as.bytes, cn, aC], nil)] | |
441 | + | $Tuple2(nil, [cf, cm]) | |
448 | 442 | } | |
449 | 443 | else throw("Strict value is not equal to itself.") | |
450 | 444 | } | |
451 | 445 | ||
452 | 446 | ||
453 | - | @Callable( | |
454 | - | func init ( | |
455 | - | let | |
456 | - | if (( | |
457 | - | then $Tuple2([StringEntry(R, | |
447 | + | @Callable(cb) | |
448 | + | func init (co) = { | |
449 | + | let cp = ab(cb.caller) | |
450 | + | if ((cp == cp)) | |
451 | + | then $Tuple2([StringEntry(R, co)], unit) | |
458 | 452 | else throw("Strict value is not equal to itself.") | |
459 | 453 | } | |
460 | 454 | ||
461 | 455 | ||
462 | 456 | ||
463 | - | @Callable( | |
464 | - | func requestAccount (ae, | |
465 | - | let | |
457 | + | @Callable(cb) | |
458 | + | func requestAccount (ae,ca) = { | |
459 | + | let cd = [if (!(Y)) | |
466 | 460 | then true | |
467 | - | else D("not allowed"), ac( | |
468 | - | if (( | |
461 | + | else D("not allowed"), ac(cb.caller)] | |
462 | + | if ((cd == cd)) | |
469 | 463 | then { | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let ay = sha256( | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
464 | + | let cq = ca[0] | |
465 | + | let cr = ca[1] | |
466 | + | let bq = valueOrErrorMessage(parseInt(ca[2]), B("invalid leverage")) | |
467 | + | let ck = addressFromPublicKey(ae) | |
468 | + | let ay = sha256(cb.transactionId) | |
469 | + | let aS = G(cq) | |
470 | + | let aT = G(cr) | |
471 | + | let cs = (size(aO(ck)) / j) | |
472 | + | let ct = [if ((size(cb.payments) == 1)) | |
479 | 473 | then true | |
480 | - | else D("1 payment is required"), if (( | |
474 | + | else D("1 payment is required"), if ((cb.payments[0].assetId == unit)) | |
481 | 475 | then true | |
482 | - | else D("invalid asset"), if (( | |
476 | + | else D("invalid asset"), if ((cb.payments[0].amount == an())) | |
483 | 477 | then true | |
484 | - | else D("invalid amount"), if ( | |
478 | + | else D("invalid amount"), if (aU(aS, aT)) | |
485 | 479 | then true | |
486 | - | else D("pair is not allowed"), if (( | |
480 | + | else D("pair is not allowed"), if ((bq == 2)) | |
487 | 481 | then true | |
488 | - | else D("account is already exists"), if ((aq() > cu)) | |
482 | + | else D("leverage is not allowed"), if ((getInteger(T, aF(ay)) == unit)) | |
483 | + | then true | |
484 | + | else D("account is already exists"), if ((aq() > cs)) | |
489 | 485 | then true | |
490 | 486 | else D(("accounts limit is " + toString(aq())))] | |
491 | - | if (( | |
487 | + | if ((ct == ct)) | |
492 | 488 | then { | |
493 | - | let cw = $Tuple2([ScriptTransfer(T, an(), unit)], [invoke(T, "integerEntry", [aF(ay), aD], nil), invoke(T, "binaryEntry", [aM(), (aN() + ay)], nil), invoke(T, "integerEntry", [ax(ay), bs], nil)]) | |
494 | - | let cg = cw._1 | |
495 | - | let ch = cw._2 | |
496 | - | $Tuple2(cg, (ch ++ [invoke(T, "binaryEntry", [aH(ay), ae], nil), invoke(T, "binaryEntry", [aQ(cm), (aS(cm) + ay)], nil), invoke(T, "stringEntry", [aI(ay), cs], nil), invoke(T, "stringEntry", [aJ(ay), ct], nil)])) | |
489 | + | let ce = [ScriptTransfer(T, an(), unit)] | |
490 | + | $Tuple2(ce, [invoke(T, "integerEntry", [aF(ay), aD], nil), invoke(T, "binaryEntry", [aM(), (aN() + ay)], nil), invoke(T, "binaryEntry", [aO(ck), (aQ(ck) + ay)], nil), invoke(T, "binaryEntry", [aH(ay), ae], nil), invoke(T, "stringEntry", [aI(ay), cq], nil), invoke(T, "stringEntry", [aJ(ay), cr], nil), invoke(T, "integerEntry", [ax(ay), bq], nil)]) | |
497 | 491 | } | |
498 | 492 | else throw("Strict value is not equal to itself.") | |
499 | 493 | } | |
500 | 494 | else throw("Strict value is not equal to itself.") | |
501 | 495 | } | |
502 | 496 | ||
503 | 497 | ||
504 | 498 | ||
505 | - | @Callable(cd) | |
506 | - | func addAccount (ae,cc) = { | |
507 | - | let cf = [if (!(Y)) | |
499 | + | @Callable(cb) | |
500 | + | func editAccount (ae,ca) = { | |
501 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
502 | + | let cq = ca[1] | |
503 | + | let cr = ca[2] | |
504 | + | let bq = valueOrErrorMessage(parseInt(ca[3]), B("invalid leverage")) | |
505 | + | let ay = bM(as) | |
506 | + | let cu = bO(as) | |
507 | + | let aS = G(cq) | |
508 | + | let aT = G(cr) | |
509 | + | let ct = [if (!(Y)) | |
508 | 510 | then true | |
509 | - | else D("not allowed"), ac(cd.caller)] | |
510 | - | if ((cf == cf)) | |
511 | + | else D("not allowed"), ac(cb.caller), if ((ae == cu)) | |
512 | + | then true | |
513 | + | else D("caller is not an account owner"), if (aU(aS, aT)) | |
514 | + | then true | |
515 | + | else D("pair is not allowed"), if ((bq == 2)) | |
516 | + | then true | |
517 | + | else D("leverage is not allowed"), if ((getInteger(T, aF(ay)) == aE)) | |
518 | + | then true | |
519 | + | else D("account is not ready")] | |
520 | + | if ((ct == ct)) | |
521 | + | then $Tuple2(nil, [invoke(T, "stringEntry", [aI(ay), cq], nil), invoke(T, "stringEntry", [aJ(ay), cr], nil), invoke(T, "integerEntry", [ax(ay), bq], nil)]) | |
522 | + | else throw("Strict value is not equal to itself.") | |
523 | + | } | |
524 | + | ||
525 | + | ||
526 | + | ||
527 | + | @Callable(cb) | |
528 | + | func addAccount (ae,ca) = { | |
529 | + | let cd = [if (!(Y)) | |
530 | + | then true | |
531 | + | else D("not allowed"), ac(cb.caller)] | |
532 | + | if ((cd == cd)) | |
511 | 533 | then { | |
512 | - | let | |
513 | - | let | |
534 | + | let cv = fromBase58String(ca[0]) | |
535 | + | let bS = ae | |
514 | 536 | let as = addressFromPublicKey(ae) | |
515 | - | let | |
516 | - | let | |
537 | + | let cw = addressFromPublicKey(cv) | |
538 | + | let ct = [if ((getBinary(T, aG(as)) == unit)) | |
517 | 539 | then true | |
518 | 540 | else D("account is already exists"), if ({ | |
519 | 541 | let M = scriptHash(as) | |
520 | 542 | if ($isInstanceOf(M, "ByteVector")) | |
521 | 543 | then { | |
522 | - | let | |
523 | - | ( | |
544 | + | let cx = M | |
545 | + | (cx == blake2b256_32Kb(al())) | |
524 | 546 | } | |
525 | 547 | else false | |
526 | 548 | }) | |
527 | 549 | then true | |
528 | 550 | else D("invalid script")] | |
529 | - | if (( | |
551 | + | if ((ct == ct)) | |
530 | 552 | then { | |
531 | - | let | |
532 | - | then $Tuple2( | |
553 | + | let cy = if ((size(aN()) == 0)) | |
554 | + | then $Tuple2(D("requests queue is empty"), nil) | |
533 | 555 | else { | |
534 | 556 | let ay = take(aN(), j) | |
535 | - | let | |
536 | - | $Tuple2(nil, [invoke(T, "integerEntry", [aF(ay), aE], nil), invoke(T, "binaryEntry", [aK(ay), | |
557 | + | let bq = valueOrErrorMessage(getInteger(T, ax(ay)), B("request's leverage is undefined")) | |
558 | + | $Tuple2(nil, [invoke(T, "integerEntry", [aF(ay), aE], nil), invoke(T, "binaryEntry", [aK(ay), bS], nil), invoke(T, "binaryEntry", [aM(), drop(aN(), j)], nil), invoke(T, "stringEntry", [aL(as), toBase58String(ay)], nil), invoke(T, "transferWaves", [cw.bytes, an()], nil), invoke(T, "integerEntry", [aw(as), bq], nil)]) | |
537 | 559 | } | |
538 | - | let | |
539 | - | let | |
540 | - | $Tuple2( | |
560 | + | let ce = cy._1 | |
561 | + | let cf = cy._2 | |
562 | + | $Tuple2(ce, (cf ++ [invoke(T, "binaryEntry", [aG(as), cv], nil)])) | |
541 | 563 | } | |
542 | 564 | else throw("Strict value is not equal to itself.") | |
543 | 565 | } | |
544 | 566 | else throw("Strict value is not equal to itself.") | |
545 | 567 | } | |
546 | 568 | ||
547 | 569 | ||
548 | 570 | ||
549 | - | @Callable( | |
550 | - | func withdraw (ae, | |
551 | - | let | |
571 | + | @Callable(cb) | |
572 | + | func withdraw (ae,ca) = { | |
573 | + | let ct = [if (!(Y)) | |
552 | 574 | then true | |
553 | - | else D("not allowed"), ac( | |
554 | - | if (( | |
575 | + | else D("not allowed"), ac(cb.caller)] | |
576 | + | if ((ct == ct)) | |
555 | 577 | then { | |
556 | - | let | |
557 | - | let as = valueOrErrorMessage(addressFromString( | |
558 | - | let | |
559 | - | let K = G( | |
560 | - | let | |
561 | - | $Tuple2(nil, | |
578 | + | let ck = addressFromPublicKey(ae) | |
579 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
580 | + | let cz = valueOrErrorMessage(parseInt(ca[1]), B("invalid amount")) | |
581 | + | let K = G(ca[2]) | |
582 | + | let cA = [invoke(as, "transferAsset", [ck.bytes, cz, K], nil)] | |
583 | + | $Tuple2(nil, cA) | |
562 | 584 | } | |
563 | 585 | else throw("Strict value is not equal to itself.") | |
564 | 586 | } | |
565 | 587 | ||
566 | 588 | ||
567 | 589 | ||
568 | - | @Callable( | |
569 | - | func deposit (ae, | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | $Tuple2( | |
590 | + | @Callable(cb) | |
591 | + | func deposit (ae,ca) = { | |
592 | + | let cB = bZ(ae, ca, cb) | |
593 | + | let ce = cB._1 | |
594 | + | let cf = cB._2 | |
595 | + | $Tuple2(ce, cf) | |
574 | 596 | } | |
575 | 597 | ||
576 | 598 | ||
577 | 599 | ||
578 | - | @Callable( | |
579 | - | func borrow (ae, | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | $Tuple2( | |
600 | + | @Callable(cb) | |
601 | + | func borrow (ae,ca) = { | |
602 | + | let cC = cg(ae, ca, cb) | |
603 | + | let ce = cC._1 | |
604 | + | let cf = cC._2 | |
605 | + | $Tuple2(ce, cf) | |
584 | 606 | } | |
585 | 607 | ||
586 | 608 | ||
587 | 609 | ||
588 | - | @Callable( | |
589 | - | func depositAndBorrow (ae, | |
590 | - | let as = | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | $Tuple2(( | |
610 | + | @Callable(cb) | |
611 | + | func depositAndBorrow (ae,ca) = { | |
612 | + | let as = ca[0] | |
613 | + | let cD = bZ(ae, [as], cb) | |
614 | + | let cE = cD._1 | |
615 | + | let cF = cD._2 | |
616 | + | let cG = cg(ae, ca, cb) | |
617 | + | let cH = cG._1 | |
618 | + | let cI = cG._2 | |
619 | + | $Tuple2((cE ++ cH), (cF ++ cI)) | |
598 | 620 | } | |
599 | 621 | ||
600 | 622 | ||
601 | 623 | ||
602 | - | @Callable( | |
603 | - | func repay (ae, | |
604 | - | let | |
624 | + | @Callable(cb) | |
625 | + | func repay (ae,ca) = { | |
626 | + | let cd = [if (!(Y)) | |
605 | 627 | then true | |
606 | - | else D("not allowed"), ac( | |
607 | - | if (( | |
628 | + | else D("not allowed"), ac(cb.caller)] | |
629 | + | if ((cd == cd)) | |
608 | 630 | then $Tuple2(nil, unit) | |
609 | 631 | else throw("Strict value is not equal to itself.") | |
610 | 632 | } | |
611 | 633 | ||
612 | 634 | ||
613 | 635 | ||
614 | - | @Callable( | |
615 | - | func setPairAllowance (ae, | |
616 | - | let | |
636 | + | @Callable(cb) | |
637 | + | func setPairAllowance (ae,ca) = { | |
638 | + | let cd = [if (!(Y)) | |
617 | 639 | then true | |
618 | - | else D("not allowed"), ac( | |
619 | - | if (( | |
640 | + | else D("not allowed"), ac(cb.caller), ad(ae)] | |
641 | + | if ((cd == cd)) | |
620 | 642 | then { | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | $Tuple2(nil, | |
643 | + | let cq = ca[0] | |
644 | + | let cr = ca[1] | |
645 | + | let cJ = ca[2] | |
646 | + | let aS = G(cq) | |
647 | + | let aT = G(cr) | |
648 | + | let cK = (cJ == "true") | |
649 | + | let cA = [invoke(T, "booleanEntry", [aR(aS, aT), cK], nil)] | |
650 | + | $Tuple2(nil, cA) | |
629 | 651 | } | |
630 | 652 | else throw("Strict value is not equal to itself.") | |
631 | 653 | } | |
632 | 654 | ||
633 | 655 | ||
634 | 656 | ||
635 | - | @Callable( | |
636 | - | func addSyntheticAsset (ae, | |
637 | - | let aA = G( | |
638 | - | let aC = G( | |
639 | - | let | |
657 | + | @Callable(cb) | |
658 | + | func addSyntheticAsset (ae,ca) = { | |
659 | + | let aA = G(ca[0]) | |
660 | + | let aC = G(ca[1]) | |
661 | + | let cd = [if (!(Y)) | |
640 | 662 | then true | |
641 | - | else D("not allowed"), ac( | |
663 | + | else D("not allowed"), ac(cb.caller), ad(ae), if ((getString(T, az(aA)) == unit)) | |
642 | 664 | then true | |
643 | 665 | else D("invalid base asset"), if ((getString(T, aB(aC)) == unit)) | |
644 | 666 | then true | |
645 | 667 | else D("invalid synthetic asset")] | |
646 | - | if (( | |
668 | + | if ((cd == cd)) | |
647 | 669 | then { | |
648 | - | let | |
649 | - | $Tuple2(nil, | |
670 | + | let cA = [invoke(T, "stringEntry", [az(aA), I(aC)], nil), invoke(T, "stringEntry", [aB(aC), I(aA)], nil)] | |
671 | + | $Tuple2(nil, cA) | |
650 | 672 | } | |
651 | 673 | else throw("Strict value is not equal to itself.") | |
652 | 674 | } | |
653 | 675 | ||
654 | 676 | ||
655 | 677 | ||
656 | - | @Callable( | |
657 | - | func doShutdown (ae, | |
658 | - | let | |
659 | - | if (( | |
678 | + | @Callable(cb) | |
679 | + | func doShutdown (ae,ca) = { | |
680 | + | let ct = [ac(cb.caller), ad(ae)] | |
681 | + | if ((ct == ct)) | |
660 | 682 | then { | |
661 | - | let | |
662 | - | $Tuple2(nil, | |
683 | + | let cA = [invoke(T, "booleanEntry", [q, true], nil)] | |
684 | + | $Tuple2(nil, cA) | |
663 | 685 | } | |
664 | 686 | else throw("Strict value is not equal to itself.") | |
665 | 687 | } | |
666 | 688 | ||
667 | 689 | ||
668 | 690 | ||
669 | - | @Callable( | |
670 | - | func getAccountInfoREADONLY (ae, | |
671 | - | let | |
672 | - | if (( | |
691 | + | @Callable(cb) | |
692 | + | func getAccountInfoREADONLY (ae,ca) = { | |
693 | + | let ct = [ac(cb.caller)] | |
694 | + | if ((ct == ct)) | |
673 | 695 | then { | |
674 | - | let as = valueOrErrorMessage(addressFromString( | |
675 | - | let | |
676 | - | $Tuple2(nil, | |
696 | + | let as = valueOrErrorMessage(addressFromString(ca[0]), B("invalid account address")) | |
697 | + | let cL = bQ(as) | |
698 | + | $Tuple2(nil, cL) | |
677 | 699 | } | |
678 | 700 | else throw("Strict value is not equal to itself.") | |
679 | 701 | } | |
680 | 702 | ||
681 | 703 | ||
682 | 704 | ||
683 | - | @Callable( | |
684 | - | func getUserInfoREADONLY (ae, | |
685 | - | let | |
686 | - | if (( | |
705 | + | @Callable(cb) | |
706 | + | func getUserInfoREADONLY (ae,ca) = { | |
707 | + | let ct = [ac(cb.caller)] | |
708 | + | if ((ct == ct)) | |
687 | 709 | then { | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | func | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | if (( | |
710 | + | let ck = valueOrErrorMessage(addressFromString(ca[0]), B("invalid user address")) | |
711 | + | let cM = valueOrElse(getBinary(T, aO(ck)), base58'') | |
712 | + | let cs = (size(cM) / j) | |
713 | + | func cN (cO,cP) = { | |
714 | + | let cQ = cO | |
715 | + | let cR = cQ._1 | |
716 | + | let cS = cQ._2 | |
717 | + | let cT = cQ._3 | |
718 | + | if ((cT > cP)) | |
697 | 719 | then { | |
698 | - | let ay = take( | |
699 | - | let | |
700 | - | let | |
701 | - | let as = addressFromPublicKey( | |
702 | - | let | |
703 | - | $Tuple3(( | |
720 | + | let ay = take(cS, j) | |
721 | + | let cU = drop(cS, j) | |
722 | + | let bS = valueOrErrorMessage(getBinary(T, aK(ay)), "kRequestIdToAccountPublicKey not found") | |
723 | + | let as = addressFromPublicKey(bS) | |
724 | + | let cL = bQ(as) | |
725 | + | $Tuple3((cR :+ cL), cU, cT) | |
704 | 726 | } | |
705 | - | else | |
727 | + | else cO | |
706 | 728 | } | |
707 | 729 | ||
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | func | |
713 | - | then | |
714 | - | else | |
730 | + | let cV = { | |
731 | + | let cW = l | |
732 | + | let cX = size(cW) | |
733 | + | let cY = $Tuple3(nil, cM, cs) | |
734 | + | func cZ (da,db) = if ((db >= cX)) | |
735 | + | then da | |
736 | + | else cN(da, cW[db]) | |
715 | 737 | ||
716 | - | func | |
717 | - | then | |
738 | + | func dc (da,db) = if ((db >= cX)) | |
739 | + | then da | |
718 | 740 | else throw("List size exceeds 20") | |
719 | 741 | ||
720 | - | | |
742 | + | dc(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cY, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
721 | 743 | } | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | $Tuple2(nil, | |
744 | + | let cR = cV._1 | |
745 | + | let dd = cV._2 | |
746 | + | let de = cV._3 | |
747 | + | $Tuple2(nil, cR) | |
726 | 748 | } | |
727 | 749 | else throw("Strict value is not equal to itself.") | |
728 | 750 | } | |
729 | 751 | ||
730 | 752 | ||
731 | 753 | ||
732 | - | @Callable( | |
733 | - | func getPairSettingsInfoREADONLY (ae, | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | func | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | let | |
745 | - | ( | |
754 | + | @Callable(cb) | |
755 | + | func getPairSettingsInfoREADONLY (ae,ca) = { | |
756 | + | let df = G(ca[0]) | |
757 | + | let dg = G(ca[1]) | |
758 | + | let dh = aX(df, dg) | |
759 | + | func di (cO,dj) = { | |
760 | + | let dk = aY(df, dg, dj) | |
761 | + | let dl = getStringValue(T, dk) | |
762 | + | let dm = split(dl, a) | |
763 | + | let bd = parseInt(dj) | |
764 | + | let dn = parseInt(dm[1]) | |
765 | + | let do = parseInt(dm[2]) | |
766 | + | let dp = parseInt(dm[3]) | |
767 | + | (cO :+ $Tuple4(bd, dn, do, dp)) | |
746 | 768 | } | |
747 | 769 | ||
748 | - | let | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | func | |
753 | - | then | |
754 | - | else | |
770 | + | let cL = { | |
771 | + | let cW = dh | |
772 | + | let cX = size(cW) | |
773 | + | let cY = nil | |
774 | + | func cZ (da,db) = if ((db >= cX)) | |
775 | + | then da | |
776 | + | else di(da, cW[db]) | |
755 | 777 | ||
756 | - | func | |
757 | - | then | |
778 | + | func dc (da,db) = if ((db >= cX)) | |
779 | + | then da | |
758 | 780 | else throw("List size exceeds 20") | |
759 | 781 | ||
760 | - | | |
782 | + | dc(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cZ(cY, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
761 | 783 | } | |
762 | - | $Tuple2(nil, | |
784 | + | $Tuple2(nil, cL) | |
763 | 785 | } | |
764 | 786 | ||
765 | 787 | ||
766 | 788 | ||
767 | - | @Callable( | |
768 | - | func editPairSettings (ae, | |
769 | - | let | |
770 | - | if (( | |
789 | + | @Callable(cb) | |
790 | + | func editPairSettings (ae,ca) = { | |
791 | + | let ct = [ac(cb.caller), ad(ae)] | |
792 | + | if ((ct == ct)) | |
771 | 793 | then { | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let M = indexOf( | |
794 | + | let df = G(ca[0]) | |
795 | + | let dg = G(ca[1]) | |
796 | + | let bd = ca[2] | |
797 | + | let dn = ca[3] | |
798 | + | let do = ca[4] | |
799 | + | let dp = ca[5] | |
800 | + | let dq = aW(df, dg) | |
801 | + | let dk = aY(df, dg, bd) | |
802 | + | let dh = aX(df, dg) | |
803 | + | let dr = { | |
804 | + | let M = indexOf(dh, bd) | |
783 | 805 | if ($isInstanceOf(M, "Int")) | |
784 | 806 | then { | |
785 | - | let | |
786 | - | | |
807 | + | let ds = M | |
808 | + | dh | |
787 | 809 | } | |
788 | - | else ( | |
810 | + | else (dh :+ bd) | |
789 | 811 | } | |
790 | - | let | |
812 | + | let dt = [valueOrErrorMessage(parseInt(bd), B("price value is not an Int")), valueOrErrorMessage(dn, B("maxLeverage value is not an Int")), valueOrErrorMessage(do, B("initialMargin value is not an Int")), valueOrErrorMessage(dp, B("maintenanceMargin value is not an Int")), if ((20 >= size(dr))) | |
791 | 813 | then true | |
792 | 814 | else D("exceeded max prices list size (20)")] | |
793 | - | if (( | |
815 | + | if ((dt == dt)) | |
794 | 816 | then { | |
795 | - | let | |
796 | - | let | |
797 | - | $Tuple2(nil, | |
817 | + | let du = makeString(["%s%s%s", dn, do, dp], a) | |
818 | + | let cA = [invoke(T, "stringEntry", [aW(df, dg), makeString(dr, a)], nil), invoke(T, "stringEntry", [aY(df, dg, bd), du], nil)] | |
819 | + | $Tuple2(nil, cA) | |
798 | 820 | } | |
799 | 821 | else throw("Strict value is not equal to itself.") | |
800 | 822 | } | |
801 | 823 | else throw("Strict value is not equal to itself.") | |
802 | 824 | } | |
803 | 825 | ||
804 | 826 | ||
805 | 827 | ||
806 | - | @Callable( | |
807 | - | func deletePairSettings (ae, | |
808 | - | let | |
809 | - | if (( | |
828 | + | @Callable(cb) | |
829 | + | func deletePairSettings (ae,ca) = { | |
830 | + | let ct = [ac(cb.caller), ad(ae)] | |
831 | + | if ((ct == ct)) | |
810 | 832 | then { | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | let M = indexOf( | |
833 | + | let df = G(ca[0]) | |
834 | + | let dg = G(ca[1]) | |
835 | + | let bd = ca[2] | |
836 | + | let dk = aY(df, dg, bd) | |
837 | + | let dq = aW(df, dg) | |
838 | + | let dh = aX(df, dg) | |
839 | + | let dr = { | |
840 | + | let M = indexOf(dh, bd) | |
819 | 841 | if ($isInstanceOf(M, "Int")) | |
820 | 842 | then { | |
821 | - | let | |
822 | - | removeByIndex( | |
843 | + | let ds = M | |
844 | + | removeByIndex(dh, ds) | |
823 | 845 | } | |
824 | - | else | |
846 | + | else dh | |
825 | 847 | } | |
826 | - | let | |
827 | - | then invoke(T, "deleteEntry", [ | |
828 | - | else invoke(T, "stringEntry", [ | |
829 | - | $Tuple2(nil, | |
848 | + | let cA = [invoke(T, "deleteEntry", [dk], nil), if ((size(dr) == 0)) | |
849 | + | then invoke(T, "deleteEntry", [aW(df, dg)], nil) | |
850 | + | else invoke(T, "stringEntry", [aW(df, dg), makeString(dr, a)], nil)] | |
851 | + | $Tuple2(nil, cA) | |
830 | 852 | } | |
831 | 853 | else throw("Strict value is not equal to itself.") | |
832 | 854 | } | |
833 | 855 | ||
834 | 856 | ||
835 | - | @Verifier( | |
836 | - | func | |
857 | + | @Verifier(dv) | |
858 | + | func dw () = if (if (isDefined(S)) | |
837 | 859 | then isDefined(getString(T, m)) | |
838 | 860 | else false) | |
839 | 861 | then { | |
840 | 862 | let M = getString(T, m) | |
841 | 863 | if ($isInstanceOf(M, "String")) | |
842 | 864 | then { | |
843 | 865 | let ai = M | |
844 | - | let | |
845 | - | let | |
846 | - | | |
866 | + | let dx = n(toString(this), toBase58String(dv.id)) | |
867 | + | let bU = valueOrElse(getBoolean(addressFromStringValue(ai), dx), false) | |
868 | + | bU | |
847 | 869 | } | |
848 | 870 | else false | |
849 | 871 | } | |
850 | - | else sigVerify( | |
872 | + | else sigVerify(dv.bodyBytes, dv.proofs[0], dv.senderPublicKey) | |
851 | 873 |
github/deemru/w8io/026f985 205.95 ms ◑