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