tx · 94YcD23cVGNXNU8YRow3MjaLTdKRVFf1cQJSwZrfEi4u 3Mr4AtgcKHK4v4VnNDdFcyJGR1kSFkKU7RU: -0.01400000 Waves 2022.03.10 16:54 [1957927] smart account 3Mr4AtgcKHK4v4VnNDdFcyJGR1kSFkKU7RU > SELF 0.00000000 Waves
{ "type": 13, "id": "94YcD23cVGNXNU8YRow3MjaLTdKRVFf1cQJSwZrfEi4u", "fee": 1400000, "feeAssetId": null, "timestamp": 1646920468050, "version": 2, "chainId": 84, "sender": "3Mr4AtgcKHK4v4VnNDdFcyJGR1kSFkKU7RU", "senderPublicKey": "CBrP6pyJ9ht8Dei2HsD8DvNtxNYEw47NcFxatXjR6k8i", "proofs": [ "3WjR3D46CckZyxcX69mRfX4sxBqURYwDctPvU4G9ixFBhTmP6YkFATKSsa5sQRx5mVVJadPFcG26dpiMe8zzCFBe", "3HP7FAY2sUmo2wTo7SqRVuWYnw5gm6SSCUhL3vYbHswhducxeHdJvpt5BDaKquXDex6BZTun6y469aoLLuTX6RwB" ], "script": "base64:AAIFAAAAAAAAACMIAhIAEgASBAoCAQESABIECgIBARIAEgASABIAEgUKAwQBCAAAAFIAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW1pdGVyAg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atus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6zyWSXV9ZtsyJfHv9BFaQ5tmp2Vqs6qjJiL7Hqdnk4e8 Next: QoeUaL6niL2tqWt6LXiLKzLA3S39N7GqC8osZUjvBCc Diff:
Old | New | Differences | |
---|---|---|---|
54 | 54 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
55 | 55 | ||
56 | 56 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
57 | + | ||
58 | + | let admStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
57 | 59 | ||
58 | 60 | let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | 61 | ||
324 | 326 | ||
325 | 327 | func calcStakingParams (stake,amount,assetId) = if (stake) | |
326 | 328 | then { | |
327 | - | let $ | |
328 | - | let call = $ | |
329 | - | let stakingAddr = $ | |
329 | + | let $t097119777 = calcStakingFuncAndAddres(stake, assetId) | |
330 | + | let call = $t097119777._1 | |
331 | + | let stakingAddr = $t097119777._2 | |
330 | 332 | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
331 | 333 | } | |
332 | 334 | else { | |
333 | - | let $ | |
334 | - | let call = $ | |
335 | - | let stakingAddr = $ | |
335 | + | let $t098639929 = calcStakingFuncAndAddres(stake, assetId) | |
336 | + | let call = $t098639929._1 | |
337 | + | let stakingAddr = $t098639929._2 | |
336 | 338 | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
337 | 339 | } | |
338 | 340 | ||
339 | 341 | ||
340 | 342 | @Callable(i) | |
341 | 343 | func init () = { | |
342 | - | let $ | |
343 | - | let pmtAmountA = $ | |
344 | - | let pmtAssetIdA = $ | |
345 | - | let $ | |
346 | - | let pmtAmountB = $ | |
347 | - | let pmtAssetIdB = $ | |
348 | - | let $ | |
349 | - | let pmtStrAssetIdA = $ | |
350 | - | let pmtAssetNameA = $ | |
351 | - | let pmtDecimalsA = $ | |
352 | - | let $ | |
353 | - | let pmtStrAssetIdB = $ | |
354 | - | let pmtAssetNameB = $ | |
355 | - | let pmtDecimalsB = $ | |
344 | + | let $t01003410111 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
345 | + | let pmtAmountA = $t01003410111._1 | |
346 | + | let pmtAssetIdA = $t01003410111._2 | |
347 | + | let $t01011610193 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
348 | + | let pmtAmountB = $t01011610193._1 | |
349 | + | let pmtAssetIdB = $t01011610193._2 | |
350 | + | let $t01019810275 = getAssetInfo(pmtAssetIdA) | |
351 | + | let pmtStrAssetIdA = $t01019810275._1 | |
352 | + | let pmtAssetNameA = $t01019810275._2 | |
353 | + | let pmtDecimalsA = $t01019810275._3 | |
354 | + | let $t01028010357 = getAssetInfo(pmtAssetIdB) | |
355 | + | let pmtStrAssetIdB = $t01028010357._1 | |
356 | + | let pmtAssetNameB = $t01028010357._2 | |
357 | + | let pmtDecimalsB = $t01028010357._3 | |
356 | 358 | if (isDefined(getBoolean(this, kActive))) | |
357 | 359 | then throwIsActive() | |
358 | 360 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
389 | 391 | let pmtAssetIdB = i.payments[1].assetId | |
390 | 392 | let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA) | |
391 | 393 | let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB) | |
392 | - | let $ | |
393 | - | let pmtStrAssetIdA = $ | |
394 | - | let pmtAssetNameA = $ | |
395 | - | let pmtDecimalsA = $ | |
396 | - | let $ | |
397 | - | let pmtStrAssetIdB = $ | |
398 | - | let pmtAssetNameB = $ | |
399 | - | let pmtDecimalsB = $ | |
400 | - | let $ | |
394 | + | let $t01293813015 = getAssetInfo(pmtAssetIdA) | |
395 | + | let pmtStrAssetIdA = $t01293813015._1 | |
396 | + | let pmtAssetNameA = $t01293813015._2 | |
397 | + | let pmtDecimalsA = $t01293813015._3 | |
398 | + | let $t01302013137 = getAssetInfo(pmtAssetIdB) | |
399 | + | let pmtStrAssetIdB = $t01302013137._1 | |
400 | + | let pmtAssetNameB = $t01302013137._2 | |
401 | + | let pmtDecimalsB = $t01302013137._3 | |
402 | + | let $t01314213646 = if ((ratioShareTokensInB > ratioShareTokensInA)) | |
401 | 403 | then { | |
402 | 404 | let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING) | |
403 | 405 | $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA) | |
406 | 408 | let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING) | |
407 | 409 | $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB) | |
408 | 410 | } | |
409 | - | let pmtAmountA = $ | |
410 | - | let pmtAmountB = $ | |
411 | - | let change = $ | |
412 | - | let changeAssetId = $ | |
413 | - | let shareTokenRatio = $ | |
411 | + | let pmtAmountA = $t01314213646._1 | |
412 | + | let pmtAmountB = $t01314213646._2 | |
413 | + | let change = $t01314213646._3 | |
414 | + | let changeAssetId = $t01314213646._4 | |
415 | + | let shareTokenRatio = $t01314213646._5 | |
414 | 416 | let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8) | |
415 | 417 | if ((size(i.payments) != 2)) | |
416 | 418 | then throw("Two attached assets expected") | |
445 | 447 | ||
446 | 448 | @Callable(i) | |
447 | 449 | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), { | |
448 | - | let $ | |
449 | - | let pmtAmount = $ | |
450 | - | let pmtAssetId = $ | |
451 | - | let $ | |
452 | - | let pmtStrAssetId = $ | |
453 | - | let pmtAssetName = $ | |
454 | - | let pmtDecimals = $ | |
450 | + | let $t01529515370 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
451 | + | let pmtAmount = $t01529515370._1 | |
452 | + | let pmtAssetId = $t01529515370._2 | |
453 | + | let $t01537515448 = getAssetInfo(pmtAssetId) | |
454 | + | let pmtStrAssetId = $t01537515448._1 | |
455 | + | let pmtAssetName = $t01537515448._2 | |
456 | + | let pmtDecimals = $t01537515448._3 | |
455 | 457 | let pmtMinThreshold = 5000000 | |
456 | 458 | let thresholdValueForMinTolerance = 50000000 | |
457 | 459 | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
471 | 473 | else false) | |
472 | 474 | then throwAssets() | |
473 | 475 | else { | |
474 | - | let $ | |
476 | + | let $t01638617151 = if ((pmtAssetId == assetIdA)) | |
475 | 477 | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
476 | 478 | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
477 | - | let virtualReplenishA = $ | |
478 | - | let virtualReplenishB = $ | |
479 | - | let balanceAfterSwapA = $ | |
480 | - | let balanceAfterSwapB = $ | |
481 | - | let invariantCalculated = $ | |
482 | - | let newBalanceA = $ | |
483 | - | let newBalanceB = $ | |
479 | + | let virtualReplenishA = $t01638617151._1 | |
480 | + | let virtualReplenishB = $t01638617151._2 | |
481 | + | let balanceAfterSwapA = $t01638617151._3 | |
482 | + | let balanceAfterSwapB = $t01638617151._4 | |
483 | + | let invariantCalculated = $t01638617151._5 | |
484 | + | let newBalanceA = $t01638617151._6 | |
485 | + | let newBalanceB = $t01638617151._7 | |
484 | 486 | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
485 | 487 | then IntegerEntry(kBalanceA, newBalanceA) | |
486 | 488 | else IntegerEntry(kBalanceB, newBalanceB) | |
520 | 522 | ||
521 | 523 | @Callable(i) | |
522 | 524 | func withdraw () = valueOrElse(isActive(), { | |
523 | - | let $ | |
524 | - | let pmtAmount = $ | |
525 | - | let pmtAssetId = $ | |
525 | + | let $t01940119544 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
526 | + | let pmtAmount = $t01940119544._1 | |
527 | + | let pmtAssetId = $t01940119544._2 | |
526 | 528 | let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply) | |
527 | 529 | let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply) | |
528 | 530 | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
553 | 555 | ||
554 | 556 | @Callable(i) | |
555 | 557 | func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), { | |
556 | - | let $ | |
557 | - | let pmtAmount = $ | |
558 | - | let pmtAssetId = $ | |
558 | + | let $t02100721082 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
559 | + | let pmtAmount = $t02100721082._1 | |
560 | + | let pmtAssetId = $t02100721082._2 | |
559 | 561 | if ((0 >= estimatedAmountToReceive)) | |
560 | 562 | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
561 | 563 | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
578 | 580 | let sendAssetId = if ((pmtAssetId == assetIdA)) | |
579 | 581 | then assetIdB | |
580 | 582 | else assetIdA | |
581 | - | let $ | |
582 | - | let amount = $ | |
583 | - | let amountInvarian = $ | |
583 | + | let $t02217322292 = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
584 | + | let amount = $t02217322292._1 | |
585 | + | let amountInvarian = $t02217322292._2 | |
584 | 586 | let governanceReward = fraction(amount, feeGovernance, feeScale6) | |
585 | 587 | let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6) | |
586 | - | let $ | |
588 | + | let $t02244822710 = if ((pmtAssetId == assetIdA)) | |
587 | 589 | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
588 | 590 | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
589 | - | let newBalanceA = $ | |
590 | - | let newBalanceB = $ | |
591 | + | let newBalanceA = $t02244822710._1 | |
592 | + | let newBalanceB = $t02244822710._2 | |
591 | 593 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
592 | 594 | if (if ((dAppThresholdAmount > newBalanceA)) | |
593 | 595 | then true | |
594 | 596 | else (dAppThresholdAmount > newBalanceB)) | |
595 | 597 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
596 | 598 | else { | |
597 | - | let $ | |
598 | - | let pmtStrAssetId = $ | |
599 | - | let pmtAssetName = $ | |
600 | - | let pmtDecimals = $ | |
601 | - | let $ | |
602 | - | let sendStrAssetId = $ | |
603 | - | let sendAssetName = $ | |
604 | - | let sendDecimals = $ | |
599 | + | let $t02300823081 = getAssetInfo(pmtAssetId) | |
600 | + | let pmtStrAssetId = $t02300823081._1 | |
601 | + | let pmtAssetName = $t02300823081._2 | |
602 | + | let pmtDecimals = $t02300823081._3 | |
603 | + | let $t02309423171 = getAssetInfo(sendAssetId) | |
604 | + | let sendStrAssetId = $t02309423171._1 | |
605 | + | let sendAssetName = $t02309423171._2 | |
606 | + | let sendDecimals = $t02309423171._3 | |
605 | 607 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetId)) | |
606 | 608 | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
607 | 609 | else 0 | |
674 | 676 | ||
675 | 677 | ||
676 | 678 | @Callable(i) | |
679 | + | func writeBigIntInvariant () = valueOrElse(isAdminCall(i), { | |
680 | + | let invariantNew = invariantCalc(balanceA, balanceB) | |
681 | + | [IntegerEntry(kInvariant, invariantNew)] | |
682 | + | }) | |
683 | + | ||
684 | + | ||
685 | + | ||
686 | + | @Callable(i) | |
677 | 687 | func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this)) | |
678 | 688 | then throw("Only contract itself can invoke this function") | |
679 | 689 | else { | |
680 | - | let $ | |
681 | - | let call = $ | |
682 | - | let addr = $ | |
683 | - | let params = $ | |
684 | - | let payments = $ | |
690 | + | let $t02613626239 = calcStakingParams(stake, amount, fromBase58String(assetIdString)) | |
691 | + | let call = $t02613626239._1 | |
692 | + | let addr = $t02613626239._2 | |
693 | + | let params = $t02613626239._3 | |
694 | + | let payments = $t02613626239._4 | |
685 | 695 | let inv = invoke(addr, call, params, payments) | |
686 | 696 | if ((inv == inv)) | |
687 | 697 | then nil |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "2.0.0" | |
5 | 5 | ||
6 | 6 | let kVersion = "version" | |
7 | 7 | ||
8 | 8 | let kActive = "active" | |
9 | 9 | ||
10 | 10 | let kAssetIdA = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let kAssetIdB = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let kBalanceA = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let kBalanceB = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let kShareAssetId = "share_asset_id" | |
19 | 19 | ||
20 | 20 | let kShareAssetSupply = "share_asset_supply" | |
21 | 21 | ||
22 | 22 | let kFee = "commission" | |
23 | 23 | ||
24 | 24 | let kFeeScaleDelimiter = "commission_scale_delimiter" | |
25 | 25 | ||
26 | 26 | let kInvariant = "invariant" | |
27 | 27 | ||
28 | 28 | let kCause = "shutdown_cause" | |
29 | 29 | ||
30 | 30 | let keyUSDNNSBTAddress = "staking_usdnnsbt_address" | |
31 | 31 | ||
32 | 32 | let keyEURNAddress = "staking_eurn_address" | |
33 | 33 | ||
34 | 34 | let keyAdminPubKey1 = "admin_pub_1" | |
35 | 35 | ||
36 | 36 | let keyAdminPubKey2 = "admin_pub_2" | |
37 | 37 | ||
38 | 38 | let keyAdminPubKey3 = "admin_pub_3" | |
39 | 39 | ||
40 | 40 | let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
41 | 41 | ||
42 | 42 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
43 | 43 | ||
44 | 44 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
45 | 45 | case string: String => | |
46 | 46 | fromBase58String(string) | |
47 | 47 | case nothing => | |
48 | 48 | throw("Admin public key is empty") | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
53 | 53 | ||
54 | 54 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
55 | 55 | ||
56 | 56 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
57 | + | ||
58 | + | let admStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
57 | 59 | ||
58 | 60 | let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | 61 | ||
60 | 62 | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
61 | 63 | ||
62 | 64 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
63 | 65 | ||
64 | 66 | let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
65 | 67 | ||
66 | 68 | let stakingAssets = [toBase58String(USDN), toBase58String(EURN)] | |
67 | 69 | ||
68 | 70 | let stakingUSDNNSBTAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyUSDNNSBTAddress), "no usdn staking address"))) | |
69 | 71 | ||
70 | 72 | let stakingEURNAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyEURNAddress), "no usdn staking address"))) | |
71 | 73 | ||
72 | 74 | let active = getBooleanValue(this, kActive) | |
73 | 75 | ||
74 | 76 | let strAssetIdA = getStringValue(this, kAssetIdA) | |
75 | 77 | ||
76 | 78 | let strAssetIdB = getStringValue(this, kAssetIdB) | |
77 | 79 | ||
78 | 80 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
79 | 81 | then unit | |
80 | 82 | else fromBase58String(strAssetIdA) | |
81 | 83 | ||
82 | 84 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
83 | 85 | then unit | |
84 | 86 | else fromBase58String(strAssetIdB) | |
85 | 87 | ||
86 | 88 | let assetNameA = match assetIdA { | |
87 | 89 | case id: ByteVector => | |
88 | 90 | value(assetInfo(id)).name | |
89 | 91 | case waves: Unit => | |
90 | 92 | "WAVES" | |
91 | 93 | case _ => | |
92 | 94 | throw("Match error") | |
93 | 95 | } | |
94 | 96 | ||
95 | 97 | let assetNameB = match assetIdB { | |
96 | 98 | case id: ByteVector => | |
97 | 99 | value(assetInfo(id)).name | |
98 | 100 | case waves: Unit => | |
99 | 101 | "WAVES" | |
100 | 102 | case _ => | |
101 | 103 | throw("Match error") | |
102 | 104 | } | |
103 | 105 | ||
104 | 106 | let balanceA = getIntegerValue(this, kBalanceA) | |
105 | 107 | ||
106 | 108 | let balanceB = getIntegerValue(this, kBalanceB) | |
107 | 109 | ||
108 | 110 | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
109 | 111 | ||
110 | 112 | let shareAssetSupply = getIntegerValue(this, kShareAssetSupply) | |
111 | 113 | ||
112 | 114 | let invariant = getIntegerValue(this, kInvariant) | |
113 | 115 | ||
114 | 116 | let fee = 500 | |
115 | 117 | ||
116 | 118 | let feeGovernance = 200 | |
117 | 119 | ||
118 | 120 | let feeScale6 = 1000000 | |
119 | 121 | ||
120 | 122 | let scale3 = 1000 | |
121 | 123 | ||
122 | 124 | let scale8 = 100000000 | |
123 | 125 | ||
124 | 126 | let scale16 = 10000000000000000 | |
125 | 127 | ||
126 | 128 | let slippageScale3 = 1000 | |
127 | 129 | ||
128 | 130 | let digits8 = 8 | |
129 | 131 | ||
130 | 132 | let dAppThreshold = 50 | |
131 | 133 | ||
132 | 134 | let dAppThresholdScale2 = 100 | |
133 | 135 | ||
134 | 136 | let exchangeRatioLimitMin = 90000000 | |
135 | 137 | ||
136 | 138 | let exchangeRatioLimitMax = 110000000 | |
137 | 139 | ||
138 | 140 | let alpha = 50 | |
139 | 141 | ||
140 | 142 | let alphaDigits = 2 | |
141 | 143 | ||
142 | 144 | let beta = 4600000000000000 | |
143 | 145 | ||
144 | 146 | func accountBalance (assetId) = match assetId { | |
145 | 147 | case id: ByteVector => | |
146 | 148 | assetBalance(this, id) | |
147 | 149 | case waves: Unit => | |
148 | 150 | wavesBalance(this).available | |
149 | 151 | case _ => | |
150 | 152 | throw("Match error") | |
151 | 153 | } | |
152 | 154 | ||
153 | 155 | ||
154 | 156 | func stakedAmount (assetId) = { | |
155 | 157 | let stakedAmountCalculated = match assetId { | |
156 | 158 | case aId: ByteVector => | |
157 | 159 | if ((aId == USDN)) | |
158 | 160 | then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
159 | 161 | else if ((aId == EURN)) | |
160 | 162 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this))) | |
161 | 163 | else 0 | |
162 | 164 | case _: Unit => | |
163 | 165 | 0 | |
164 | 166 | case _ => | |
165 | 167 | throw("Match error") | |
166 | 168 | } | |
167 | 169 | match stakedAmountCalculated { | |
168 | 170 | case i: Int => | |
169 | 171 | i | |
170 | 172 | case _ => | |
171 | 173 | 0 | |
172 | 174 | } | |
173 | 175 | } | |
174 | 176 | ||
175 | 177 | ||
176 | 178 | let stakedAmountA = stakedAmount(assetIdA) | |
177 | 179 | ||
178 | 180 | let stakedAmountB = stakedAmount(assetIdB) | |
179 | 181 | ||
180 | 182 | let availableBalanceA = (balanceA - stakedAmountA) | |
181 | 183 | ||
182 | 184 | let availableBalanceB = (balanceB - stakedAmountB) | |
183 | 185 | ||
184 | 186 | let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA) | |
185 | 187 | ||
186 | 188 | let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB) | |
187 | 189 | ||
188 | 190 | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
189 | 191 | then (accountBalanceWithStakedB >= balanceB) | |
190 | 192 | else false | |
191 | 193 | ||
192 | 194 | func skewness (x,y) = ((fraction(scale16, x, y) + fraction(scale16, y, x)) / 2) | |
193 | 195 | ||
194 | 196 | ||
195 | 197 | func invariantCalc (x,y) = { | |
196 | 198 | let sk = skewness(x, y) | |
197 | 199 | (fraction((x + y), scale16, pow(sk, digits8, alpha, alphaDigits, digits8, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(x), toBigInt(y), toBigInt(scale8)), 0, toBigInt(5), 1, (digits8 / 2), DOWN)), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8))) | |
198 | 200 | } | |
199 | 201 | ||
200 | 202 | ||
201 | 203 | func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = { | |
202 | 204 | let worstAllowedNewInvariantRatio = (scale8 - ((scale8 * 1) / 10000000)) | |
203 | 205 | let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
204 | 206 | let x = (balanceA + tokenReceiveAmount) | |
205 | 207 | let y = (balanceB + tokenReceiveAmount) | |
206 | 208 | func getStepAmount (acc,step) = if ((acc._1 == -1)) | |
207 | 209 | then { | |
208 | 210 | let amountToSend = (amountToSendEstimated - (((step * deltaBetweenMaxAndMinSendValue) / 3) / scale3)) | |
209 | 211 | let stepInvariant = if ((tokenId == assetIdA)) | |
210 | 212 | then invariantCalc(x, (balanceB - amountToSend)) | |
211 | 213 | else invariantCalc((balanceA - amountToSend), y) | |
212 | 214 | if ((stepInvariant > invariant)) | |
213 | 215 | then $Tuple2(amountToSend, stepInvariant) | |
214 | 216 | else $Tuple2(-1, 0) | |
215 | 217 | } | |
216 | 218 | else acc | |
217 | 219 | ||
218 | 220 | let amountToSendMin = getStepAmount($Tuple2(-1, 0), 3000) | |
219 | 221 | if ((0 > amountToSendMin._1)) | |
220 | 222 | then throw("Price is worse than minReceived") | |
221 | 223 | else { | |
222 | 224 | let invEstimated = if ((tokenId == assetIdA)) | |
223 | 225 | then invariantCalc(x, (balanceB - amountToSendEstimated)) | |
224 | 226 | else if ((tokenId == assetIdB)) | |
225 | 227 | then invariantCalc((balanceA - amountToSendEstimated), y) | |
226 | 228 | else throw("Wrong asset in payment") | |
227 | 229 | let amountToSendBest = if ((invariant > invEstimated)) | |
228 | 230 | then if ((worstAllowedNewInvariantRatio >= fraction(scale8, invariant, invEstimated))) | |
229 | 231 | then throw("Bad estimation provided 1") | |
230 | 232 | else { | |
231 | 233 | let a = { | |
232 | 234 | let $l = [25, 200, 500] | |
233 | 235 | let $s = size($l) | |
234 | 236 | let $acc0 = $Tuple2(-1, 0) | |
235 | 237 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
236 | 238 | then $a | |
237 | 239 | else getStepAmount($a, $l[$i]) | |
238 | 240 | ||
239 | 241 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
240 | 242 | then $a | |
241 | 243 | else throw("List size exceeds 3") | |
242 | 244 | ||
243 | 245 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
244 | 246 | } | |
245 | 247 | if ((0 > a._1)) | |
246 | 248 | then amountToSendMin | |
247 | 249 | else a | |
248 | 250 | } | |
249 | 251 | else { | |
250 | 252 | let a = { | |
251 | 253 | let $l = [-500, -200, -25] | |
252 | 254 | let $s = size($l) | |
253 | 255 | let $acc0 = $Tuple2(-1, 0) | |
254 | 256 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
255 | 257 | then $a | |
256 | 258 | else getStepAmount($a, $l[$i]) | |
257 | 259 | ||
258 | 260 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
259 | 261 | then $a | |
260 | 262 | else throw("List size exceeds 3") | |
261 | 263 | ||
262 | 264 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
263 | 265 | } | |
264 | 266 | let tupleSendBetter = if ((0 > a._1)) | |
265 | 267 | then $Tuple2(amountToSendEstimated, invEstimated) | |
266 | 268 | else a | |
267 | 269 | if ((worstAllowedNewInvariantRatio >= fraction(scale8, invariant, tupleSendBetter._2))) | |
268 | 270 | then throw("Bad estimation provided 2") | |
269 | 271 | else tupleSendBetter | |
270 | 272 | } | |
271 | 273 | amountToSendBest | |
272 | 274 | } | |
273 | 275 | } | |
274 | 276 | ||
275 | 277 | ||
276 | 278 | func getAssetInfo (assetId) = match assetId { | |
277 | 279 | case id: ByteVector => | |
278 | 280 | let stringId = toBase58String(id) | |
279 | 281 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
280 | 282 | $Tuple3(stringId, info.name, info.decimals) | |
281 | 283 | case waves: Unit => | |
282 | 284 | $Tuple3("WAVES", "WAVES", 8) | |
283 | 285 | case _ => | |
284 | 286 | throw("Match error") | |
285 | 287 | } | |
286 | 288 | ||
287 | 289 | ||
288 | 290 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
289 | 291 | ||
290 | 292 | ||
291 | 293 | func throwIsActive () = throw("DApp is already active") | |
292 | 294 | ||
293 | 295 | ||
294 | 296 | func isActive () = if (active) | |
295 | 297 | then unit | |
296 | 298 | else throw("DApp is inactive at this moment") | |
297 | 299 | ||
298 | 300 | ||
299 | 301 | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
300 | 302 | then unit | |
301 | 303 | else throw("Only admin can call this function") | |
302 | 304 | ||
303 | 305 | ||
304 | 306 | func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
305 | 307 | ||
306 | 308 | ||
307 | 309 | func throwOnePayment () = throw("One attached payment expected") | |
308 | 310 | ||
309 | 311 | ||
310 | 312 | func throwThreshold (threshold,amountA,amountB) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(threshold)) + ": ") + toString(amountA)) + " ") + assetNameA) + ", ") + toString(amountB)) + " ") + assetNameB)) | |
311 | 313 | ||
312 | 314 | ||
313 | 315 | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
314 | 316 | ||
315 | 317 | ||
316 | 318 | func calcStakingFuncAndAddres (stake,assetId) = if (stake) | |
317 | 319 | then if ((assetId == USDN)) | |
318 | 320 | then $Tuple2("lockNeutrino", stakingUSDNNSBTAddress) | |
319 | 321 | else $Tuple2("startStaking", stakingEURNAddress) | |
320 | 322 | else if ((assetId == USDN)) | |
321 | 323 | then $Tuple2("unlockNeutrino", stakingUSDNNSBTAddress) | |
322 | 324 | else $Tuple2("stopStaking", stakingEURNAddress) | |
323 | 325 | ||
324 | 326 | ||
325 | 327 | func calcStakingParams (stake,amount,assetId) = if (stake) | |
326 | 328 | then { | |
327 | - | let $ | |
328 | - | let call = $ | |
329 | - | let stakingAddr = $ | |
329 | + | let $t097119777 = calcStakingFuncAndAddres(stake, assetId) | |
330 | + | let call = $t097119777._1 | |
331 | + | let stakingAddr = $t097119777._2 | |
330 | 332 | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
331 | 333 | } | |
332 | 334 | else { | |
333 | - | let $ | |
334 | - | let call = $ | |
335 | - | let stakingAddr = $ | |
335 | + | let $t098639929 = calcStakingFuncAndAddres(stake, assetId) | |
336 | + | let call = $t098639929._1 | |
337 | + | let stakingAddr = $t098639929._2 | |
336 | 338 | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
337 | 339 | } | |
338 | 340 | ||
339 | 341 | ||
340 | 342 | @Callable(i) | |
341 | 343 | func init () = { | |
342 | - | let $ | |
343 | - | let pmtAmountA = $ | |
344 | - | let pmtAssetIdA = $ | |
345 | - | let $ | |
346 | - | let pmtAmountB = $ | |
347 | - | let pmtAssetIdB = $ | |
348 | - | let $ | |
349 | - | let pmtStrAssetIdA = $ | |
350 | - | let pmtAssetNameA = $ | |
351 | - | let pmtDecimalsA = $ | |
352 | - | let $ | |
353 | - | let pmtStrAssetIdB = $ | |
354 | - | let pmtAssetNameB = $ | |
355 | - | let pmtDecimalsB = $ | |
344 | + | let $t01003410111 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
345 | + | let pmtAmountA = $t01003410111._1 | |
346 | + | let pmtAssetIdA = $t01003410111._2 | |
347 | + | let $t01011610193 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
348 | + | let pmtAmountB = $t01011610193._1 | |
349 | + | let pmtAssetIdB = $t01011610193._2 | |
350 | + | let $t01019810275 = getAssetInfo(pmtAssetIdA) | |
351 | + | let pmtStrAssetIdA = $t01019810275._1 | |
352 | + | let pmtAssetNameA = $t01019810275._2 | |
353 | + | let pmtDecimalsA = $t01019810275._3 | |
354 | + | let $t01028010357 = getAssetInfo(pmtAssetIdB) | |
355 | + | let pmtStrAssetIdB = $t01028010357._1 | |
356 | + | let pmtAssetNameB = $t01028010357._2 | |
357 | + | let pmtDecimalsB = $t01028010357._3 | |
356 | 358 | if (isDefined(getBoolean(this, kActive))) | |
357 | 359 | then throwIsActive() | |
358 | 360 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
359 | 361 | then throw("Assets must be different") | |
360 | 362 | else { | |
361 | 363 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
362 | 364 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
363 | 365 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
364 | 366 | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
365 | 367 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
366 | 368 | let shareIssueId = calculateAssetId(shareIssue) | |
367 | 369 | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
368 | 370 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
369 | 371 | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
370 | 372 | else 0 | |
371 | 373 | if ((stake1 == stake1)) | |
372 | 374 | then { | |
373 | 375 | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
374 | 376 | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
375 | 377 | else 0 | |
376 | 378 | if ((stake2 == stake2)) | |
377 | 379 | then [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, fee), IntegerEntry(kFeeScaleDelimiter, feeScale6), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] | |
378 | 380 | else throw("Strict value is not equal to itself.") | |
379 | 381 | } | |
380 | 382 | else throw("Strict value is not equal to itself.") | |
381 | 383 | } | |
382 | 384 | } | |
383 | 385 | ||
384 | 386 | ||
385 | 387 | ||
386 | 388 | @Callable(i) | |
387 | 389 | func replenishWithTwoTokens () = valueOrElse(isActive(), { | |
388 | 390 | let pmtAssetIdA = i.payments[0].assetId | |
389 | 391 | let pmtAssetIdB = i.payments[1].assetId | |
390 | 392 | let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA) | |
391 | 393 | let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB) | |
392 | - | let $ | |
393 | - | let pmtStrAssetIdA = $ | |
394 | - | let pmtAssetNameA = $ | |
395 | - | let pmtDecimalsA = $ | |
396 | - | let $ | |
397 | - | let pmtStrAssetIdB = $ | |
398 | - | let pmtAssetNameB = $ | |
399 | - | let pmtDecimalsB = $ | |
400 | - | let $ | |
394 | + | let $t01293813015 = getAssetInfo(pmtAssetIdA) | |
395 | + | let pmtStrAssetIdA = $t01293813015._1 | |
396 | + | let pmtAssetNameA = $t01293813015._2 | |
397 | + | let pmtDecimalsA = $t01293813015._3 | |
398 | + | let $t01302013137 = getAssetInfo(pmtAssetIdB) | |
399 | + | let pmtStrAssetIdB = $t01302013137._1 | |
400 | + | let pmtAssetNameB = $t01302013137._2 | |
401 | + | let pmtDecimalsB = $t01302013137._3 | |
402 | + | let $t01314213646 = if ((ratioShareTokensInB > ratioShareTokensInA)) | |
401 | 403 | then { | |
402 | 404 | let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING) | |
403 | 405 | $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA) | |
404 | 406 | } | |
405 | 407 | else { | |
406 | 408 | let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING) | |
407 | 409 | $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB) | |
408 | 410 | } | |
409 | - | let pmtAmountA = $ | |
410 | - | let pmtAmountB = $ | |
411 | - | let change = $ | |
412 | - | let changeAssetId = $ | |
413 | - | let shareTokenRatio = $ | |
411 | + | let pmtAmountA = $t01314213646._1 | |
412 | + | let pmtAmountB = $t01314213646._2 | |
413 | + | let change = $t01314213646._3 | |
414 | + | let changeAssetId = $t01314213646._4 | |
415 | + | let shareTokenRatio = $t01314213646._5 | |
414 | 416 | let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8) | |
415 | 417 | if ((size(i.payments) != 2)) | |
416 | 418 | then throw("Two attached assets expected") | |
417 | 419 | else if (if ((pmtAssetIdA != assetIdA)) | |
418 | 420 | then true | |
419 | 421 | else (pmtAssetIdB != assetIdB)) | |
420 | 422 | then throwAssets() | |
421 | 423 | else if ((shareTokenToPayAmount == 0)) | |
422 | 424 | then throw("Too small amount to replenish") | |
423 | 425 | else if ((0 > change)) | |
424 | 426 | then throw("Change < 0") | |
425 | 427 | else if (!(hasEnoughBalance)) | |
426 | 428 | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
427 | 429 | else { | |
428 | 430 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
429 | 431 | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
430 | 432 | else 0 | |
431 | 433 | if ((stake1 == stake1)) | |
432 | 434 | then { | |
433 | 435 | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
434 | 436 | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
435 | 437 | else 0 | |
436 | 438 | if ((stake2 == stake2)) | |
437 | 439 | then [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB))), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), ScriptTransfer(i.caller, change, changeAssetId)] | |
438 | 440 | else throw("Strict value is not equal to itself.") | |
439 | 441 | } | |
440 | 442 | else throw("Strict value is not equal to itself.") | |
441 | 443 | } | |
442 | 444 | }) | |
443 | 445 | ||
444 | 446 | ||
445 | 447 | ||
446 | 448 | @Callable(i) | |
447 | 449 | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), { | |
448 | - | let $ | |
449 | - | let pmtAmount = $ | |
450 | - | let pmtAssetId = $ | |
451 | - | let $ | |
452 | - | let pmtStrAssetId = $ | |
453 | - | let pmtAssetName = $ | |
454 | - | let pmtDecimals = $ | |
450 | + | let $t01529515370 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
451 | + | let pmtAmount = $t01529515370._1 | |
452 | + | let pmtAssetId = $t01529515370._2 | |
453 | + | let $t01537515448 = getAssetInfo(pmtAssetId) | |
454 | + | let pmtStrAssetId = $t01537515448._1 | |
455 | + | let pmtAssetName = $t01537515448._2 | |
456 | + | let pmtDecimals = $t01537515448._3 | |
455 | 457 | let pmtMinThreshold = 5000000 | |
456 | 458 | let thresholdValueForMinTolerance = 50000000 | |
457 | 459 | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
458 | 460 | then 100000 | |
459 | 461 | else 1 | |
460 | 462 | let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000)) | |
461 | 463 | let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000)) | |
462 | 464 | let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000)) | |
463 | 465 | if ((pmtMinThreshold > pmtAmount)) | |
464 | 466 | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
465 | 467 | else if ((size(i.payments) != 1)) | |
466 | 468 | then throwOnePayment() | |
467 | 469 | else if (!(hasEnoughBalance)) | |
468 | 470 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
469 | 471 | else if (if ((pmtAssetId != assetIdA)) | |
470 | 472 | then (pmtAssetId != assetIdB) | |
471 | 473 | else false) | |
472 | 474 | then throwAssets() | |
473 | 475 | else { | |
474 | - | let $ | |
476 | + | let $t01638617151 = if ((pmtAssetId == assetIdA)) | |
475 | 477 | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
476 | 478 | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
477 | - | let virtualReplenishA = $ | |
478 | - | let virtualReplenishB = $ | |
479 | - | let balanceAfterSwapA = $ | |
480 | - | let balanceAfterSwapB = $ | |
481 | - | let invariantCalculated = $ | |
482 | - | let newBalanceA = $ | |
483 | - | let newBalanceB = $ | |
479 | + | let virtualReplenishA = $t01638617151._1 | |
480 | + | let virtualReplenishB = $t01638617151._2 | |
481 | + | let balanceAfterSwapA = $t01638617151._3 | |
482 | + | let balanceAfterSwapB = $t01638617151._4 | |
483 | + | let invariantCalculated = $t01638617151._5 | |
484 | + | let newBalanceA = $t01638617151._6 | |
485 | + | let newBalanceB = $t01638617151._7 | |
484 | 486 | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
485 | 487 | then IntegerEntry(kBalanceA, newBalanceA) | |
486 | 488 | else IntegerEntry(kBalanceB, newBalanceB) | |
487 | 489 | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
488 | 490 | let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew) | |
489 | 491 | let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB)) | |
490 | 492 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
491 | 493 | if (if ((slippageValueMinForSwap >= invariantEstimatedRatio)) | |
492 | 494 | then true | |
493 | 495 | else (invariant > invariantNew)) | |
494 | 496 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
495 | 497 | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
496 | 498 | then true | |
497 | 499 | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
498 | 500 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
499 | 501 | else if (if ((dAppThresholdAmount > newBalanceA)) | |
500 | 502 | then true | |
501 | 503 | else (dAppThresholdAmount > newBalanceB)) | |
502 | 504 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
503 | 505 | else { | |
504 | 506 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetId)) | |
505 | 507 | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
506 | 508 | else 0 | |
507 | 509 | if ((stake1 == stake1)) | |
508 | 510 | then { | |
509 | 511 | let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA) | |
510 | 512 | let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB) | |
511 | 513 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
512 | 514 | [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)] | |
513 | 515 | } | |
514 | 516 | else throw("Strict value is not equal to itself.") | |
515 | 517 | } | |
516 | 518 | } | |
517 | 519 | }) | |
518 | 520 | ||
519 | 521 | ||
520 | 522 | ||
521 | 523 | @Callable(i) | |
522 | 524 | func withdraw () = valueOrElse(isActive(), { | |
523 | - | let $ | |
524 | - | let pmtAmount = $ | |
525 | - | let pmtAssetId = $ | |
525 | + | let $t01940119544 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
526 | + | let pmtAmount = $t01940119544._1 | |
527 | + | let pmtAssetId = $t01940119544._2 | |
526 | 528 | let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply) | |
527 | 529 | let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply) | |
528 | 530 | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
529 | 531 | if ((size(i.payments) != 1)) | |
530 | 532 | then throwOnePayment() | |
531 | 533 | else if ((pmtAssetId != shareAssetId)) | |
532 | 534 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
533 | 535 | else if (!(hasEnoughBalance)) | |
534 | 536 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
535 | 537 | else { | |
536 | 538 | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
537 | 539 | then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
538 | 540 | else 0 | |
539 | 541 | if ((stake1 == stake1)) | |
540 | 542 | then { | |
541 | 543 | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
542 | 544 | then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
543 | 545 | else 0 | |
544 | 546 | if ((stake2 == stake2)) | |
545 | 547 | then [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - pmtAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
546 | 548 | else throw("Strict value is not equal to itself.") | |
547 | 549 | } | |
548 | 550 | else throw("Strict value is not equal to itself.") | |
549 | 551 | } | |
550 | 552 | }) | |
551 | 553 | ||
552 | 554 | ||
553 | 555 | ||
554 | 556 | @Callable(i) | |
555 | 557 | func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), { | |
556 | - | let $ | |
557 | - | let pmtAmount = $ | |
558 | - | let pmtAssetId = $ | |
558 | + | let $t02100721082 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
559 | + | let pmtAmount = $t02100721082._1 | |
560 | + | let pmtAssetId = $t02100721082._2 | |
559 | 561 | if ((0 >= estimatedAmountToReceive)) | |
560 | 562 | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
561 | 563 | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
562 | 564 | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive))) | |
563 | 565 | else if ((size(i.payments) != 1)) | |
564 | 566 | then throwOnePayment() | |
565 | 567 | else if (!(hasEnoughBalance)) | |
566 | 568 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
567 | 569 | else if (if ((pmtAssetId != assetIdA)) | |
568 | 570 | then (pmtAssetId != assetIdB) | |
569 | 571 | else false) | |
570 | 572 | then throwAssets() | |
571 | 573 | else if ((10000000 > pmtAmount)) | |
572 | 574 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
573 | 575 | else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount))) | |
574 | 576 | then true | |
575 | 577 | else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax)) | |
576 | 578 | then throw("Incorrect args and pmt ratio") | |
577 | 579 | else { | |
578 | 580 | let sendAssetId = if ((pmtAssetId == assetIdA)) | |
579 | 581 | then assetIdB | |
580 | 582 | else assetIdA | |
581 | - | let $ | |
582 | - | let amount = $ | |
583 | - | let amountInvarian = $ | |
583 | + | let $t02217322292 = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
584 | + | let amount = $t02217322292._1 | |
585 | + | let amountInvarian = $t02217322292._2 | |
584 | 586 | let governanceReward = fraction(amount, feeGovernance, feeScale6) | |
585 | 587 | let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6) | |
586 | - | let $ | |
588 | + | let $t02244822710 = if ((pmtAssetId == assetIdA)) | |
587 | 589 | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
588 | 590 | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
589 | - | let newBalanceA = $ | |
590 | - | let newBalanceB = $ | |
591 | + | let newBalanceA = $t02244822710._1 | |
592 | + | let newBalanceB = $t02244822710._2 | |
591 | 593 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
592 | 594 | if (if ((dAppThresholdAmount > newBalanceA)) | |
593 | 595 | then true | |
594 | 596 | else (dAppThresholdAmount > newBalanceB)) | |
595 | 597 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
596 | 598 | else { | |
597 | - | let $ | |
598 | - | let pmtStrAssetId = $ | |
599 | - | let pmtAssetName = $ | |
600 | - | let pmtDecimals = $ | |
601 | - | let $ | |
602 | - | let sendStrAssetId = $ | |
603 | - | let sendAssetName = $ | |
604 | - | let sendDecimals = $ | |
599 | + | let $t02300823081 = getAssetInfo(pmtAssetId) | |
600 | + | let pmtStrAssetId = $t02300823081._1 | |
601 | + | let pmtAssetName = $t02300823081._2 | |
602 | + | let pmtDecimals = $t02300823081._3 | |
603 | + | let $t02309423171 = getAssetInfo(sendAssetId) | |
604 | + | let sendStrAssetId = $t02309423171._1 | |
605 | + | let sendAssetName = $t02309423171._2 | |
606 | + | let sendDecimals = $t02309423171._3 | |
605 | 607 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetId)) | |
606 | 608 | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
607 | 609 | else 0 | |
608 | 610 | if ((stake1 == stake1)) | |
609 | 611 | then { | |
610 | 612 | let stake2 = if (containsElement(stakingAssets, sendStrAssetId)) | |
611 | 613 | then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil) | |
612 | 614 | else 0 | |
613 | 615 | if ((stake2 == stake2)) | |
614 | 616 | then [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, amountInvarian), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(walletAddress, governanceReward, sendAssetId)] | |
615 | 617 | else throw("Strict value is not equal to itself.") | |
616 | 618 | } | |
617 | 619 | else throw("Strict value is not equal to itself.") | |
618 | 620 | } | |
619 | 621 | } | |
620 | 622 | }) | |
621 | 623 | ||
622 | 624 | ||
623 | 625 | ||
624 | 626 | @Callable(i) | |
625 | 627 | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
626 | 628 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
627 | 629 | else suspend("Paused by admin")) | |
628 | 630 | ||
629 | 631 | ||
630 | 632 | ||
631 | 633 | @Callable(i) | |
632 | 634 | func activate () = valueOrElse(isAdminCall(i), if (active) | |
633 | 635 | then throwIsActive() | |
634 | 636 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
635 | 637 | ||
636 | 638 | ||
637 | 639 | ||
638 | 640 | @Callable(i) | |
639 | 641 | func takeIntoAccountExtraFunds () = valueOrElse(isActive(), { | |
640 | 642 | let amountEnrollA = (accountBalanceWithStakedA - balanceA) | |
641 | 643 | let amountEnrollB = (accountBalanceWithStakedB - balanceB) | |
642 | 644 | let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB)) | |
643 | 645 | if ((i.caller != walletAddress)) | |
644 | 646 | then throw("Only the wallet can call this function") | |
645 | 647 | else if (if ((0 > amountEnrollA)) | |
646 | 648 | then true | |
647 | 649 | else (0 > amountEnrollB)) | |
648 | 650 | then suspend("Enroll amount negative") | |
649 | 651 | else if (if ((amountEnrollA == 0)) | |
650 | 652 | then (amountEnrollB == 0) | |
651 | 653 | else false) | |
652 | 654 | then throw("No money to take") | |
653 | 655 | else { | |
654 | 656 | let stake1 = if (if (containsElement(stakingAssets, strAssetIdA)) | |
655 | 657 | then (amountEnrollA > 0) | |
656 | 658 | else false) | |
657 | 659 | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
658 | 660 | else 0 | |
659 | 661 | if ((stake1 == stake1)) | |
660 | 662 | then { | |
661 | 663 | let stake2 = if (if (containsElement(stakingAssets, strAssetIdB)) | |
662 | 664 | then (amountEnrollB > 0) | |
663 | 665 | else false) | |
664 | 666 | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
665 | 667 | else 0 | |
666 | 668 | if ((stake2 == stake2)) | |
667 | 669 | then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
668 | 670 | else throw("Strict value is not equal to itself.") | |
669 | 671 | } | |
670 | 672 | else throw("Strict value is not equal to itself.") | |
671 | 673 | } | |
672 | 674 | }) | |
673 | 675 | ||
674 | 676 | ||
675 | 677 | ||
676 | 678 | @Callable(i) | |
679 | + | func writeBigIntInvariant () = valueOrElse(isAdminCall(i), { | |
680 | + | let invariantNew = invariantCalc(balanceA, balanceB) | |
681 | + | [IntegerEntry(kInvariant, invariantNew)] | |
682 | + | }) | |
683 | + | ||
684 | + | ||
685 | + | ||
686 | + | @Callable(i) | |
677 | 687 | func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this)) | |
678 | 688 | then throw("Only contract itself can invoke this function") | |
679 | 689 | else { | |
680 | - | let $ | |
681 | - | let call = $ | |
682 | - | let addr = $ | |
683 | - | let params = $ | |
684 | - | let payments = $ | |
690 | + | let $t02613626239 = calcStakingParams(stake, amount, fromBase58String(assetIdString)) | |
691 | + | let call = $t02613626239._1 | |
692 | + | let addr = $t02613626239._2 | |
693 | + | let params = $t02613626239._3 | |
694 | + | let payments = $t02613626239._4 | |
685 | 695 | let inv = invoke(addr, call, params, payments) | |
686 | 696 | if ((inv == inv)) | |
687 | 697 | then nil | |
688 | 698 | else throw("Strict value is not equal to itself.") | |
689 | 699 | } | |
690 | 700 | ||
691 | 701 | ||
692 | 702 | @Verifier(tx) | |
693 | 703 | func verify () = { | |
694 | 704 | let multiSignedByAdmins = { | |
695 | 705 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
696 | 706 | then 1 | |
697 | 707 | else 0 | |
698 | 708 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
699 | 709 | then 1 | |
700 | 710 | else 0 | |
701 | 711 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
702 | 712 | then 1 | |
703 | 713 | else 0 | |
704 | 714 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
705 | 715 | } | |
706 | 716 | match tx { | |
707 | 717 | case inv: InvokeScriptTransaction => | |
708 | 718 | let callTakeIntoAccount = if ((inv.dApp == this)) | |
709 | 719 | then (inv.function == "takeIntoAccountExtraFunds") | |
710 | 720 | else false | |
711 | 721 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
712 | 722 | then true | |
713 | 723 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
714 | 724 | then true | |
715 | 725 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
716 | 726 | then true | |
717 | 727 | else sigVerify(tx.bodyBytes, tx.proofs[0], admStaking) | |
718 | 728 | if (if (callTakeIntoAccount) | |
719 | 729 | then signedByAdmin | |
720 | 730 | else false) | |
721 | 731 | then true | |
722 | 732 | else multiSignedByAdmins | |
723 | 733 | case _ => | |
724 | 734 | multiSignedByAdmins | |
725 | 735 | } | |
726 | 736 | } | |
727 | 737 |
github/deemru/w8io/026f985 99.53 ms ◑