tx · 7CrwtXr56T1mJB5LoV3W8iQHT93vFBsNH7VYBQurYLqt 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW: -0.01400000 Waves 2021.08.16 16:34 [1660972] smart account 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW > SELF 0.00000000 Waves
{ "type": 13, "id": "7CrwtXr56T1mJB5LoV3W8iQHT93vFBsNH7VYBQurYLqt", "fee": 1400000, "feeAssetId": null, "timestamp": 1629120829376, "version": 2, "chainId": 84, "sender": "3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW", "senderPublicKey": "DfbjpZJBbZwnUKysUkxCbWTE1ZWuoUb6Y6BZdu5iAE8j", "proofs": [ "GXA1uxUV79k25hAegBQgQnSMojqywnhoAY4Ndygg5vm1MXtRTDAJATdyuSsotnrdUzaV59VPwBnYLy44CbrrQAG", "f5jW1XGyRfh1nAKhZrParpjGeXgfFFBTEDzderqDCj1pyrywqDyVok6NoNkTnhpRpMLMBatwa8XAwCajKFs7x9j" ], "script": "base64:AAIFAAAAAAAAACoIAhIDCgEIEgMKAQESAwoBARIECgIBARIAEgQKAgEBEgASABIAEgMKAQEAAABdAAAAAAd2ZXJzaW9uAgAAAAUyLjAuMAAAAAAIa1ZlcnNpb24CAAAAB3ZlcnNpb24AAAAAB2tBY3RpdmUCAAAABmFjdGl2ZQAAAAAJa0Fzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAlrQXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAACWtCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAlrQmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAANa1NoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAEWtTaGFyZUFzc2V0U3VwcGx5AgAAABJzaGFyZV9hc3NldF9zdXBwbHkAAAAABGtGZWUCAAAACmNvbW1pc3Npb24AAAAAEmtGZWVTY2FsZURlbGltaXRlcgIAAAAaY29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AAAADGFkbWluUHViS2V5MQYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTIGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkzBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACmFkbVN0YWtpbmcDAwMDAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAYFAAAAFmNhbGxFbmFibGVGaXJzdEhhcnZlc3QGBQAAAAtjYWxsU3Rha2luZwYFAAAAD2V4Y2hhbmdlVG9XYXZlcwUAAAANc2lnbmVkQnlBZG1pbgcGBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zWUVJ+A==", "height": 1660972, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Bg54gPrPTWmBqYjLao53UUUWaydtExR3AVy2bMYksQqq Next: AmArDG9swu3jX17byexjokcecfEk9dEMh83S2jkmhKJr Diff:
Old | New | Differences | |
---|---|---|---|
27 | 27 | ||
28 | 28 | let kCause = "shutdown_cause" | |
29 | 29 | ||
30 | - | let | |
30 | + | let kFirstHarvest = "first_harvest" | |
31 | 31 | ||
32 | - | let | |
32 | + | let kFirstHarvestHeight = "first_harvest_height" | |
33 | 33 | ||
34 | 34 | let kShareLimit = "share_limit_on_first_harvest" | |
35 | 35 | ||
39 | 39 | ||
40 | 40 | let kStartHeight = "start_height" | |
41 | 41 | ||
42 | - | let | |
42 | + | let kOracleAssetPriority = "asset_priority_" | |
43 | 43 | ||
44 | - | let | |
44 | + | let kOracleScriptHash = "script_hash_flat" | |
45 | 45 | ||
46 | - | let keyOracleScriptHash = "script_hash_cpmm" | |
47 | - | ||
48 | - | let keyInitPoolHeight = "init_pool_height_" | |
46 | + | let kInitPoolHeight = "init_pool_height_" | |
49 | 47 | ||
50 | 48 | let keyAdminPubKey1 = "admin_pub_1" | |
51 | 49 | ||
85 | 83 | ||
86 | 84 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
87 | 85 | ||
88 | - | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
89 | - | ||
90 | - | let govAddr = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
86 | + | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 1) | |
91 | 87 | ||
92 | 88 | let stakingAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
93 | 89 | ||
94 | 90 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
91 | + | ||
92 | + | let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
95 | 93 | ||
96 | 94 | let stakingFeeInUSDN = 270000 | |
97 | 95 | ||
188 | 186 | throw("Match error") | |
189 | 187 | } | |
190 | 188 | ||
189 | + | func isAllowedAsset (assetId) = match assetId { | |
190 | + | case id: ByteVector => | |
191 | + | if ((id == USDN)) | |
192 | + | then true | |
193 | + | else false | |
194 | + | case waves: Unit => | |
195 | + | false | |
196 | + | case _ => | |
197 | + | throw("Match error") | |
198 | + | } | |
199 | + | ||
200 | + | ||
191 | 201 | let availableBalanceA = (balanceA - (if ((assetIdA == USDN)) | |
192 | 202 | then stakedAmountUSDN | |
193 | 203 | else 0)) | |
241 | 251 | else acc | |
242 | 252 | ||
243 | 253 | let stepAmount = { | |
244 | - | let $ | |
245 | - | let $ | |
246 | - | let $ | |
247 | - | if (($ | |
248 | - | then $ | |
254 | + | let $list71887231 = [1, 2, 3, 4, 5] | |
255 | + | let $size71887231 = size($list71887231) | |
256 | + | let $acc071887231 = -1 | |
257 | + | if (($size71887231 == 0)) | |
258 | + | then $acc071887231 | |
249 | 259 | else { | |
250 | - | let $ | |
251 | - | if (($ | |
252 | - | then $ | |
260 | + | let $acc171887231 = getStepAmount($acc071887231, $list71887231[0]) | |
261 | + | if (($size71887231 == 1)) | |
262 | + | then $acc171887231 | |
253 | 263 | else { | |
254 | - | let $ | |
255 | - | if (($ | |
256 | - | then $ | |
264 | + | let $acc271887231 = getStepAmount($acc171887231, $list71887231[1]) | |
265 | + | if (($size71887231 == 2)) | |
266 | + | then $acc271887231 | |
257 | 267 | else { | |
258 | - | let $ | |
259 | - | if (($ | |
260 | - | then $ | |
268 | + | let $acc371887231 = getStepAmount($acc271887231, $list71887231[2]) | |
269 | + | if (($size71887231 == 3)) | |
270 | + | then $acc371887231 | |
261 | 271 | else { | |
262 | - | let $ | |
263 | - | if (($ | |
264 | - | then $ | |
272 | + | let $acc471887231 = getStepAmount($acc371887231, $list71887231[3]) | |
273 | + | if (($size71887231 == 4)) | |
274 | + | then $acc471887231 | |
265 | 275 | else { | |
266 | - | let $ | |
267 | - | if (($ | |
268 | - | then $ | |
276 | + | let $acc571887231 = getStepAmount($acc471887231, $list71887231[4]) | |
277 | + | if (($size71887231 == 5)) | |
278 | + | then $acc571887231 | |
269 | 279 | else { | |
270 | - | let $ | |
280 | + | let $acc671887231 = getStepAmount($acc571887231, $list71887231[5]) | |
271 | 281 | throw("List size exceed 5") | |
272 | 282 | } | |
273 | 283 | } | |
336 | 346 | ||
337 | 347 | ||
338 | 348 | @Callable(i) | |
339 | - | func init () = { | |
340 | - | let $t097709847 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
341 | - | let pmtAmountA = $t097709847._1 | |
342 | - | let pmtAssetIdA = $t097709847._2 | |
343 | - | let $t098529929 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
344 | - | let pmtAmountB = $t098529929._1 | |
345 | - | let pmtAssetIdB = $t098529929._2 | |
346 | - | let $t0993410011 = getAssetInfo(pmtAssetIdA) | |
347 | - | let pmtStrAssetIdA = $t0993410011._1 | |
348 | - | let pmtAssetNameA = $t0993410011._2 | |
349 | - | let pmtDecimalsA = $t0993410011._3 | |
350 | - | let $t01001610093 = getAssetInfo(pmtAssetIdB) | |
351 | - | let pmtStrAssetIdB = $t01001610093._1 | |
352 | - | let pmtAssetNameB = $t01001610093._2 | |
353 | - | let pmtDecimalsB = $t01001610093._3 | |
354 | - | if (isDefined(getBoolean(this, kActive))) | |
355 | - | then throwIsActive() | |
356 | - | else if ((pmtAssetIdA == pmtAssetIdB)) | |
357 | - | then throw("Assets must be different") | |
358 | - | else { | |
359 | - | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
360 | - | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
361 | - | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
362 | - | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
363 | - | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
364 | - | let shareIssueId = calculateAssetId(shareIssue) | |
365 | - | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
366 | - | [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)] | |
367 | - | } | |
349 | + | func init (userAdressStr) = { | |
350 | + | let $t0992810005 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
351 | + | let pmtAmount1 = $t0992810005._1 | |
352 | + | let pmtAssetId1 = $t0992810005._2 | |
353 | + | let $t01001010087 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
354 | + | let pmtAmount2 = $t01001010087._1 | |
355 | + | let pmtAssetId2 = $t01001010087._2 | |
356 | + | let $t01009210175 = $Tuple2(i.payments[2].amount, i.payments[2].assetId) | |
357 | + | let pmtAmountSWOP = $t01009210175._1 | |
358 | + | let pmtAssetIdSWOP = $t01009210175._2 | |
359 | + | let check = isDataStorageUntouched(this) | |
360 | + | let userScriptHash = scriptHash(this) | |
361 | + | let userAddress = addressFromStringValue(userAdressStr) | |
362 | + | if ((i.caller == this)) | |
363 | + | then throw("You can't call yourself") | |
364 | + | else if (if ((pmtAssetIdSWOP != SWOP)) | |
365 | + | then true | |
366 | + | else (pmtAmountSWOP != comissionForInitalization)) | |
367 | + | then throw("You need to attach 10 SWOP tokens") | |
368 | + | else if (if (!(isAllowedAsset(pmtAssetId1))) | |
369 | + | then !(isAllowedAsset(pmtAssetId2)) | |
370 | + | else false) | |
371 | + | then throw("One of assets must be USDN, WAVES or SWOP") | |
372 | + | else if (if ((userScriptHash == value(getBinary(oracle, kOracleScriptHash)))) | |
373 | + | then true | |
374 | + | else !(check)) | |
375 | + | then throw("Unexpected script was found.") | |
376 | + | else if (isDefined(getBoolean(this, kActive))) | |
377 | + | then throwIsActive() | |
378 | + | else if ((pmtAssetId1 == pmtAssetId2)) | |
379 | + | then throw("Assets must be different") | |
380 | + | else { | |
381 | + | let pmtStrAssetId1 = match pmtAssetId1 { | |
382 | + | case id: ByteVector => | |
383 | + | toBase58String(id) | |
384 | + | case waves: Unit => | |
385 | + | "WAVES" | |
386 | + | case _ => | |
387 | + | throw("Match error") | |
388 | + | } | |
389 | + | let pmtStrAssetId2 = match pmtAssetId2 { | |
390 | + | case id: ByteVector => | |
391 | + | toBase58String(id) | |
392 | + | case waves: Unit => | |
393 | + | "WAVES" | |
394 | + | case _ => | |
395 | + | throw("Match error") | |
396 | + | } | |
397 | + | let asset1Priority = valueOrElse(getInteger(oracle, (kOracleAssetPriority + pmtStrAssetId1)), 999999) | |
398 | + | let asset2Priority = valueOrElse(getInteger(oracle, (kOracleAssetPriority + pmtStrAssetId2)), 999999) | |
399 | + | let $t01150911736 = if ((asset2Priority > asset1Priority)) | |
400 | + | then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1) | |
401 | + | else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2) | |
402 | + | let pmtAmountA = $t01150911736._1 | |
403 | + | let pmtAssetIdA = $t01150911736._2 | |
404 | + | let pmtAmountB = $t01150911736._3 | |
405 | + | let pmtAssetIdB = $t01150911736._4 | |
406 | + | let $t01174511822 = getAssetInfo(pmtAssetIdA) | |
407 | + | let pmtStrAssetIdA = $t01174511822._1 | |
408 | + | let pmtAssetNameA = $t01174511822._2 | |
409 | + | let pmtDecimalsA = $t01174511822._3 | |
410 | + | let $t01183111908 = getAssetInfo(pmtAssetIdB) | |
411 | + | let pmtStrAssetIdB = $t01183111908._1 | |
412 | + | let pmtAssetNameB = $t01183111908._2 | |
413 | + | let pmtDecimalsB = $t01183111908._3 | |
414 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
415 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
416 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
417 | + | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
418 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
419 | + | let shareIssueId = calculateAssetId(shareIssue) | |
420 | + | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
421 | + | [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), IntegerEntry(kInitPoolHeight, height), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(userAddress, shareInitialSupply, shareIssueId), ScriptTransfer(walletAddress, comissionForInitalization, SWOP)] | |
422 | + | } | |
368 | 423 | } | |
369 | 424 | ||
370 | 425 | ||
416 | 471 | ||
417 | 472 | @Callable(i) | |
418 | 473 | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = { | |
419 | - | let $ | |
420 | - | let pmtAmount = $ | |
421 | - | let pmtAssetId = $ | |
474 | + | let $t01658616661 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
475 | + | let pmtAmount = $t01658616661._1 | |
476 | + | let pmtAssetId = $t01658616661._2 | |
422 | 477 | let pmtMinThreshold = 5000000 | |
423 | 478 | let thresholdValueForMinTolerance = 50000000 | |
424 | 479 | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
440 | 495 | else false) | |
441 | 496 | then throwAssets() | |
442 | 497 | else { | |
443 | - | let $ | |
498 | + | let $t01767318438 = if ((pmtAssetId == assetIdA)) | |
444 | 499 | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
445 | 500 | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
446 | - | let virtualReplenishA = $ | |
447 | - | let virtualReplenishB = $ | |
448 | - | let balanceAfterSwapA = $ | |
449 | - | let balanceAfterSwapB = $ | |
450 | - | let invariantCalculated = $ | |
451 | - | let newBalanceA = $ | |
452 | - | let newBalanceB = $ | |
501 | + | let virtualReplenishA = $t01767318438._1 | |
502 | + | let virtualReplenishB = $t01767318438._2 | |
503 | + | let balanceAfterSwapA = $t01767318438._3 | |
504 | + | let balanceAfterSwapB = $t01767318438._4 | |
505 | + | let invariantCalculated = $t01767318438._5 | |
506 | + | let newBalanceA = $t01767318438._6 | |
507 | + | let newBalanceB = $t01767318438._7 | |
453 | 508 | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
454 | 509 | then IntegerEntry(kBalanceA, newBalanceA) | |
455 | 510 | else IntegerEntry(kBalanceB, newBalanceB) | |
482 | 537 | ||
483 | 538 | @Callable(i) | |
484 | 539 | func withdraw () = { | |
485 | - | let $ | |
486 | - | let pmtAmount = $ | |
487 | - | let pmtAssetId = $ | |
540 | + | let $t02058320726 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
541 | + | let pmtAmount = $t02058320726._1 | |
542 | + | let pmtAssetId = $t02058320726._2 | |
488 | 543 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
489 | 544 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
490 | 545 | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
507 | 562 | ||
508 | 563 | @Callable(i) | |
509 | 564 | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
510 | - | let $ | |
511 | - | let pmtAmount = $ | |
512 | - | let pmtAssetId = $ | |
565 | + | let $t02208422159 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
566 | + | let pmtAmount = $t02208422159._1 | |
567 | + | let pmtAssetId = $t02208422159._2 | |
513 | 568 | if (!(isActive)) | |
514 | 569 | then throwIsInactive() | |
515 | 570 | else if ((0 >= estimatedAmountToReceive)) | |
537 | 592 | let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
538 | 593 | let governanceReward = fraction(amount, feeGovernance, feeScale6) | |
539 | 594 | let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6) | |
540 | - | let $ | |
595 | + | let $t02358123843 = if ((pmtAssetId == assetIdA)) | |
541 | 596 | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
542 | 597 | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
543 | - | let newBalanceA = $ | |
544 | - | let newBalanceB = $ | |
598 | + | let newBalanceA = $t02358123843._1 | |
599 | + | let newBalanceB = $t02358123843._2 | |
545 | 600 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
546 | 601 | if (if ((dAppThresholdAmount > newBalanceA)) | |
547 | 602 | then true | |
559 | 614 | then (stakedAmountUSDN >= newBalanceB) | |
560 | 615 | else false) | |
561 | 616 | then throwInsufficientAvailableBalance(amountMinusFee, availableBalanceB, assetNameB) | |
562 | - | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer( | |
617 | + | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(walletAddress, governanceReward, sendAssetId)] | |
563 | 618 | } | |
564 | 619 | } | |
565 | 620 | ||
584 | 639 | ||
585 | 640 | ||
586 | 641 | @Callable(i) | |
587 | - | func enableFirstHarvest () = [BooleanEntry( | |
642 | + | func enableFirstHarvest () = [BooleanEntry(kFirstHarvest, true), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))] | |
588 | 643 | ||
589 | 644 | ||
590 | 645 |
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 | - | let | |
30 | + | let kFirstHarvest = "first_harvest" | |
31 | 31 | ||
32 | - | let | |
32 | + | let kFirstHarvestHeight = "first_harvest_height" | |
33 | 33 | ||
34 | 34 | let kShareLimit = "share_limit_on_first_harvest" | |
35 | 35 | ||
36 | 36 | let kBasePeriod = "base_period" | |
37 | 37 | ||
38 | 38 | let kPeriodLength = "period_length" | |
39 | 39 | ||
40 | 40 | let kStartHeight = "start_height" | |
41 | 41 | ||
42 | - | let | |
42 | + | let kOracleAssetPriority = "asset_priority_" | |
43 | 43 | ||
44 | - | let | |
44 | + | let kOracleScriptHash = "script_hash_flat" | |
45 | 45 | ||
46 | - | let keyOracleScriptHash = "script_hash_cpmm" | |
47 | - | ||
48 | - | let keyInitPoolHeight = "init_pool_height_" | |
46 | + | let kInitPoolHeight = "init_pool_height_" | |
49 | 47 | ||
50 | 48 | let keyAdminPubKey1 = "admin_pub_1" | |
51 | 49 | ||
52 | 50 | let keyAdminPubKey2 = "admin_pub_2" | |
53 | 51 | ||
54 | 52 | let keyAdminPubKey3 = "admin_pub_3" | |
55 | 53 | ||
56 | 54 | let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
57 | 55 | ||
58 | 56 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
59 | 57 | ||
60 | 58 | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
61 | 59 | ||
62 | 60 | let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
63 | 61 | ||
64 | 62 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
65 | 63 | case string: String => | |
66 | 64 | fromBase58String(string) | |
67 | 65 | case nothing => | |
68 | 66 | throw("Admin public key is empty") | |
69 | 67 | } | |
70 | 68 | ||
71 | 69 | ||
72 | 70 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
73 | 71 | ||
74 | 72 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
75 | 73 | ||
76 | 74 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
77 | 75 | ||
78 | 76 | let admStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
79 | 77 | ||
80 | 78 | let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
81 | 79 | ||
82 | 80 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
83 | 81 | ||
84 | 82 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
85 | 83 | ||
86 | 84 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
87 | 85 | ||
88 | - | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
89 | - | ||
90 | - | let govAddr = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
86 | + | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 1) | |
91 | 87 | ||
92 | 88 | let stakingAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
93 | 89 | ||
94 | 90 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
91 | + | ||
92 | + | let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
95 | 93 | ||
96 | 94 | let stakingFeeInUSDN = 270000 | |
97 | 95 | ||
98 | 96 | let isActive = getBooleanValue(this, kActive) | |
99 | 97 | ||
100 | 98 | let strAssetIdA = getStringValue(this, kAssetIdA) | |
101 | 99 | ||
102 | 100 | let strAssetIdB = getStringValue(this, kAssetIdB) | |
103 | 101 | ||
104 | 102 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
105 | 103 | then unit | |
106 | 104 | else fromBase58String(strAssetIdA) | |
107 | 105 | ||
108 | 106 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
109 | 107 | then unit | |
110 | 108 | else fromBase58String(strAssetIdB) | |
111 | 109 | ||
112 | 110 | let assetNameA = match assetIdA { | |
113 | 111 | case id: ByteVector => | |
114 | 112 | value(assetInfo(id)).name | |
115 | 113 | case waves: Unit => | |
116 | 114 | "WAVES" | |
117 | 115 | case _ => | |
118 | 116 | throw("Match error") | |
119 | 117 | } | |
120 | 118 | ||
121 | 119 | let assetNameB = match assetIdB { | |
122 | 120 | case id: ByteVector => | |
123 | 121 | value(assetInfo(id)).name | |
124 | 122 | case waves: Unit => | |
125 | 123 | "WAVES" | |
126 | 124 | case _ => | |
127 | 125 | throw("Match error") | |
128 | 126 | } | |
129 | 127 | ||
130 | 128 | let balanceA = getIntegerValue(this, kBalanceA) | |
131 | 129 | ||
132 | 130 | let balanceB = getIntegerValue(this, kBalanceB) | |
133 | 131 | ||
134 | 132 | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
135 | 133 | ||
136 | 134 | let shareAssetSupply = getIntegerValue(this, kShareAssetSupply) | |
137 | 135 | ||
138 | 136 | let invariant = getIntegerValue(this, kInvariant) | |
139 | 137 | ||
140 | 138 | let fee = 500 | |
141 | 139 | ||
142 | 140 | let feeGovernance = 200 | |
143 | 141 | ||
144 | 142 | let feeScale6 = 1000000 | |
145 | 143 | ||
146 | 144 | let comissionForInitalization = 1000000000 | |
147 | 145 | ||
148 | 146 | let scale3 = 1000 | |
149 | 147 | ||
150 | 148 | let scale8 = 100000000 | |
151 | 149 | ||
152 | 150 | let scale12 = 1000000000000 | |
153 | 151 | ||
154 | 152 | let slippageScale3 = 1000 | |
155 | 153 | ||
156 | 154 | let digits8 = 8 | |
157 | 155 | ||
158 | 156 | let dAppThreshold = 50 | |
159 | 157 | ||
160 | 158 | let dAppThresholdScale2 = 100 | |
161 | 159 | ||
162 | 160 | let exchangeRatioLimitMin = 90000000 | |
163 | 161 | ||
164 | 162 | let exchangeRatioLimitMax = 110000000 | |
165 | 163 | ||
166 | 164 | let alpha = 50 | |
167 | 165 | ||
168 | 166 | let alphaDigits = 2 | |
169 | 167 | ||
170 | 168 | let beta = 46000000 | |
171 | 169 | ||
172 | 170 | func accountBalance (assetId) = match assetId { | |
173 | 171 | case id: ByteVector => | |
174 | 172 | assetBalance(this, id) | |
175 | 173 | case waves: Unit => | |
176 | 174 | wavesBalance(this).available | |
177 | 175 | case _ => | |
178 | 176 | throw("Match error") | |
179 | 177 | } | |
180 | 178 | ||
181 | 179 | ||
182 | 180 | let stakedAmountUSDN = match getInteger(stakingAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))) { | |
183 | 181 | case staked: Int => | |
184 | 182 | staked | |
185 | 183 | case nothing: Unit => | |
186 | 184 | 0 | |
187 | 185 | case _ => | |
188 | 186 | throw("Match error") | |
189 | 187 | } | |
190 | 188 | ||
189 | + | func isAllowedAsset (assetId) = match assetId { | |
190 | + | case id: ByteVector => | |
191 | + | if ((id == USDN)) | |
192 | + | then true | |
193 | + | else false | |
194 | + | case waves: Unit => | |
195 | + | false | |
196 | + | case _ => | |
197 | + | throw("Match error") | |
198 | + | } | |
199 | + | ||
200 | + | ||
191 | 201 | let availableBalanceA = (balanceA - (if ((assetIdA == USDN)) | |
192 | 202 | then stakedAmountUSDN | |
193 | 203 | else 0)) | |
194 | 204 | ||
195 | 205 | let availableBalanceB = (balanceB - (if ((assetIdB == USDN)) | |
196 | 206 | then stakedAmountUSDN | |
197 | 207 | else 0)) | |
198 | 208 | ||
199 | 209 | let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == USDN)) | |
200 | 210 | then stakedAmountUSDN | |
201 | 211 | else 0)) | |
202 | 212 | ||
203 | 213 | let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == USDN)) | |
204 | 214 | then stakedAmountUSDN | |
205 | 215 | else 0)) | |
206 | 216 | ||
207 | 217 | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
208 | 218 | then (accountBalanceWithStakedB >= balanceB) | |
209 | 219 | else false | |
210 | 220 | ||
211 | 221 | func skewness (x,y) = (((fraction(scale12, x, y) + fraction(scale12, y, x)) / 2) / 10000) | |
212 | 222 | ||
213 | 223 | ||
214 | 224 | func invariantCalc (x,y) = { | |
215 | 225 | let sk = skewness(x, y) | |
216 | 226 | (fraction((x + y), scale8, pow(sk, digits8, alpha, alphaDigits, digits8, CEILING)) + (2 * fraction(pow(fraction(x, y, scale8), 0, 5, 1, (digits8 / 2), DOWN), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8))) | |
217 | 227 | } | |
218 | 228 | ||
219 | 229 | ||
220 | 230 | func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = { | |
221 | 231 | let slippageValue = (scale8 - ((scale8 * 1) / 10000000)) | |
222 | 232 | let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
223 | 233 | let x = (balanceA + tokenReceiveAmount) | |
224 | 234 | let y = (balanceB + tokenReceiveAmount) | |
225 | 235 | let invariantNew = if ((tokenId == assetIdA)) | |
226 | 236 | then invariantCalc(x, (balanceB - amountToSendEstimated)) | |
227 | 237 | else if ((tokenId == assetIdB)) | |
228 | 238 | then invariantCalc((balanceA - amountToSendEstimated), y) | |
229 | 239 | else throw("Wrong asset in payment") | |
230 | 240 | let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew) | |
231 | 241 | func getStepAmount (acc,step) = if ((acc == -1)) | |
232 | 242 | then { | |
233 | 243 | let amountToSend = (amountToSendEstimated - ((step * deltaBetweenMaxAndMinSendValue) / 5)) | |
234 | 244 | let stepInvariant = if ((tokenId == assetIdA)) | |
235 | 245 | then invariantCalc(x, (balanceB - amountToSend)) | |
236 | 246 | else invariantCalc((balanceA - amountToSend), y) | |
237 | 247 | if ((stepInvariant > invariant)) | |
238 | 248 | then amountToSend | |
239 | 249 | else -1 | |
240 | 250 | } | |
241 | 251 | else acc | |
242 | 252 | ||
243 | 253 | let stepAmount = { | |
244 | - | let $ | |
245 | - | let $ | |
246 | - | let $ | |
247 | - | if (($ | |
248 | - | then $ | |
254 | + | let $list71887231 = [1, 2, 3, 4, 5] | |
255 | + | let $size71887231 = size($list71887231) | |
256 | + | let $acc071887231 = -1 | |
257 | + | if (($size71887231 == 0)) | |
258 | + | then $acc071887231 | |
249 | 259 | else { | |
250 | - | let $ | |
251 | - | if (($ | |
252 | - | then $ | |
260 | + | let $acc171887231 = getStepAmount($acc071887231, $list71887231[0]) | |
261 | + | if (($size71887231 == 1)) | |
262 | + | then $acc171887231 | |
253 | 263 | else { | |
254 | - | let $ | |
255 | - | if (($ | |
256 | - | then $ | |
264 | + | let $acc271887231 = getStepAmount($acc171887231, $list71887231[1]) | |
265 | + | if (($size71887231 == 2)) | |
266 | + | then $acc271887231 | |
257 | 267 | else { | |
258 | - | let $ | |
259 | - | if (($ | |
260 | - | then $ | |
268 | + | let $acc371887231 = getStepAmount($acc271887231, $list71887231[2]) | |
269 | + | if (($size71887231 == 3)) | |
270 | + | then $acc371887231 | |
261 | 271 | else { | |
262 | - | let $ | |
263 | - | if (($ | |
264 | - | then $ | |
272 | + | let $acc471887231 = getStepAmount($acc371887231, $list71887231[3]) | |
273 | + | if (($size71887231 == 4)) | |
274 | + | then $acc471887231 | |
265 | 275 | else { | |
266 | - | let $ | |
267 | - | if (($ | |
268 | - | then $ | |
276 | + | let $acc571887231 = getStepAmount($acc471887231, $list71887231[4]) | |
277 | + | if (($size71887231 == 5)) | |
278 | + | then $acc571887231 | |
269 | 279 | else { | |
270 | - | let $ | |
280 | + | let $acc671887231 = getStepAmount($acc571887231, $list71887231[5]) | |
271 | 281 | throw("List size exceed 5") | |
272 | 282 | } | |
273 | 283 | } | |
274 | 284 | } | |
275 | 285 | } | |
276 | 286 | } | |
277 | 287 | } | |
278 | 288 | } | |
279 | 289 | if ((0 > stepAmount)) | |
280 | 290 | then throw("something went wrong while working with amountToSend") | |
281 | 291 | else if (if ((invariantEstimatedRatio > slippageValue)) | |
282 | 292 | then (invariantNew > invariant) | |
283 | 293 | else false) | |
284 | 294 | then amountToSendEstimated | |
285 | 295 | else stepAmount | |
286 | 296 | } | |
287 | 297 | ||
288 | 298 | ||
289 | 299 | func getAssetInfo (assetId) = match assetId { | |
290 | 300 | case id: ByteVector => | |
291 | 301 | let stringId = toBase58String(id) | |
292 | 302 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
293 | 303 | $Tuple3(stringId, info.name, info.decimals) | |
294 | 304 | case waves: Unit => | |
295 | 305 | $Tuple3("WAVES", "WAVES", 8) | |
296 | 306 | case _ => | |
297 | 307 | throw("Match error") | |
298 | 308 | } | |
299 | 309 | ||
300 | 310 | ||
301 | 311 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
302 | 312 | ||
303 | 313 | ||
304 | 314 | func deductStakingFee (amount,assetId) = if ((assetId == USDN)) | |
305 | 315 | then { | |
306 | 316 | let result = (amount - stakingFeeInUSDN) | |
307 | 317 | if ((0 >= result)) | |
308 | 318 | then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N")) | |
309 | 319 | else result | |
310 | 320 | } | |
311 | 321 | else amount | |
312 | 322 | ||
313 | 323 | ||
314 | 324 | func throwIsActive () = throw("DApp is already active") | |
315 | 325 | ||
316 | 326 | ||
317 | 327 | func throwIsInactive () = throw("DApp is inactive at this moment") | |
318 | 328 | ||
319 | 329 | ||
320 | 330 | func throwOnlyAdmin () = throw("Only admin can call this function") | |
321 | 331 | ||
322 | 332 | ||
323 | 333 | func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
324 | 334 | ||
325 | 335 | ||
326 | 336 | 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)) | |
327 | 337 | ||
328 | 338 | ||
329 | 339 | func throwInsufficientAvailableBalance (amount,available,assetName) = throw((((((((("Insufficient DApp balance to pay " + toString(amount)) + " ") + assetName) + " due to staking. Available: ") + toString(available)) + " ") + assetName) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
330 | 340 | ||
331 | 341 | ||
332 | 342 | func throwInsufficientAvailableBalances (amountA,amountB) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(amountA)) + " ") + assetNameA) + " and ") + toString(amountB)) + " ") + assetNameB) + " due to staking. Available: ") + toString(availableBalanceA)) + " ") + assetNameA) + " and ") + toString(availableBalanceB)) + " ") + assetNameB) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
333 | 343 | ||
334 | 344 | ||
335 | 345 | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
336 | 346 | ||
337 | 347 | ||
338 | 348 | @Callable(i) | |
339 | - | func init () = { | |
340 | - | let $t097709847 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
341 | - | let pmtAmountA = $t097709847._1 | |
342 | - | let pmtAssetIdA = $t097709847._2 | |
343 | - | let $t098529929 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
344 | - | let pmtAmountB = $t098529929._1 | |
345 | - | let pmtAssetIdB = $t098529929._2 | |
346 | - | let $t0993410011 = getAssetInfo(pmtAssetIdA) | |
347 | - | let pmtStrAssetIdA = $t0993410011._1 | |
348 | - | let pmtAssetNameA = $t0993410011._2 | |
349 | - | let pmtDecimalsA = $t0993410011._3 | |
350 | - | let $t01001610093 = getAssetInfo(pmtAssetIdB) | |
351 | - | let pmtStrAssetIdB = $t01001610093._1 | |
352 | - | let pmtAssetNameB = $t01001610093._2 | |
353 | - | let pmtDecimalsB = $t01001610093._3 | |
354 | - | if (isDefined(getBoolean(this, kActive))) | |
355 | - | then throwIsActive() | |
356 | - | else if ((pmtAssetIdA == pmtAssetIdB)) | |
357 | - | then throw("Assets must be different") | |
358 | - | else { | |
359 | - | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
360 | - | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
361 | - | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
362 | - | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
363 | - | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
364 | - | let shareIssueId = calculateAssetId(shareIssue) | |
365 | - | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
366 | - | [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)] | |
367 | - | } | |
349 | + | func init (userAdressStr) = { | |
350 | + | let $t0992810005 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
351 | + | let pmtAmount1 = $t0992810005._1 | |
352 | + | let pmtAssetId1 = $t0992810005._2 | |
353 | + | let $t01001010087 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
354 | + | let pmtAmount2 = $t01001010087._1 | |
355 | + | let pmtAssetId2 = $t01001010087._2 | |
356 | + | let $t01009210175 = $Tuple2(i.payments[2].amount, i.payments[2].assetId) | |
357 | + | let pmtAmountSWOP = $t01009210175._1 | |
358 | + | let pmtAssetIdSWOP = $t01009210175._2 | |
359 | + | let check = isDataStorageUntouched(this) | |
360 | + | let userScriptHash = scriptHash(this) | |
361 | + | let userAddress = addressFromStringValue(userAdressStr) | |
362 | + | if ((i.caller == this)) | |
363 | + | then throw("You can't call yourself") | |
364 | + | else if (if ((pmtAssetIdSWOP != SWOP)) | |
365 | + | then true | |
366 | + | else (pmtAmountSWOP != comissionForInitalization)) | |
367 | + | then throw("You need to attach 10 SWOP tokens") | |
368 | + | else if (if (!(isAllowedAsset(pmtAssetId1))) | |
369 | + | then !(isAllowedAsset(pmtAssetId2)) | |
370 | + | else false) | |
371 | + | then throw("One of assets must be USDN, WAVES or SWOP") | |
372 | + | else if (if ((userScriptHash == value(getBinary(oracle, kOracleScriptHash)))) | |
373 | + | then true | |
374 | + | else !(check)) | |
375 | + | then throw("Unexpected script was found.") | |
376 | + | else if (isDefined(getBoolean(this, kActive))) | |
377 | + | then throwIsActive() | |
378 | + | else if ((pmtAssetId1 == pmtAssetId2)) | |
379 | + | then throw("Assets must be different") | |
380 | + | else { | |
381 | + | let pmtStrAssetId1 = match pmtAssetId1 { | |
382 | + | case id: ByteVector => | |
383 | + | toBase58String(id) | |
384 | + | case waves: Unit => | |
385 | + | "WAVES" | |
386 | + | case _ => | |
387 | + | throw("Match error") | |
388 | + | } | |
389 | + | let pmtStrAssetId2 = match pmtAssetId2 { | |
390 | + | case id: ByteVector => | |
391 | + | toBase58String(id) | |
392 | + | case waves: Unit => | |
393 | + | "WAVES" | |
394 | + | case _ => | |
395 | + | throw("Match error") | |
396 | + | } | |
397 | + | let asset1Priority = valueOrElse(getInteger(oracle, (kOracleAssetPriority + pmtStrAssetId1)), 999999) | |
398 | + | let asset2Priority = valueOrElse(getInteger(oracle, (kOracleAssetPriority + pmtStrAssetId2)), 999999) | |
399 | + | let $t01150911736 = if ((asset2Priority > asset1Priority)) | |
400 | + | then $Tuple4(pmtAmount2, pmtAssetId2, pmtAmount1, pmtAssetId1) | |
401 | + | else $Tuple4(pmtAmount1, pmtAssetId1, pmtAmount2, pmtAssetId2) | |
402 | + | let pmtAmountA = $t01150911736._1 | |
403 | + | let pmtAssetIdA = $t01150911736._2 | |
404 | + | let pmtAmountB = $t01150911736._3 | |
405 | + | let pmtAssetIdB = $t01150911736._4 | |
406 | + | let $t01174511822 = getAssetInfo(pmtAssetIdA) | |
407 | + | let pmtStrAssetIdA = $t01174511822._1 | |
408 | + | let pmtAssetNameA = $t01174511822._2 | |
409 | + | let pmtDecimalsA = $t01174511822._3 | |
410 | + | let $t01183111908 = getAssetInfo(pmtAssetIdB) | |
411 | + | let pmtStrAssetIdB = $t01183111908._1 | |
412 | + | let pmtAssetNameB = $t01183111908._2 | |
413 | + | let pmtDecimalsB = $t01183111908._3 | |
414 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
415 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
416 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
417 | + | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
418 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
419 | + | let shareIssueId = calculateAssetId(shareIssue) | |
420 | + | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
421 | + | [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), IntegerEntry(kInitPoolHeight, height), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(userAddress, shareInitialSupply, shareIssueId), ScriptTransfer(walletAddress, comissionForInitalization, SWOP)] | |
422 | + | } | |
368 | 423 | } | |
369 | 424 | ||
370 | 425 | ||
371 | 426 | ||
372 | 427 | @Callable(i) | |
373 | 428 | func keepLimitForFirstHarvest (shareLimit) = if (!(isActive)) | |
374 | 429 | then throw("DApp is inactive at this moment") | |
375 | 430 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStaking], i.callerPublicKey))) | |
376 | 431 | then throw("Only admin can call this function") | |
377 | 432 | else [IntegerEntry(kShareLimit, shareLimit)] | |
378 | 433 | ||
379 | 434 | ||
380 | 435 | ||
381 | 436 | @Callable(i) | |
382 | 437 | func replenishWithTwoTokens (slippageTolerance) = { | |
383 | 438 | let pmtAssetIdA = i.payments[0].assetId | |
384 | 439 | let pmtAssetIdB = i.payments[1].assetId | |
385 | 440 | let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA) | |
386 | 441 | let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB) | |
387 | 442 | let tokenRatio = fraction(fraction(scale8, balanceA, pmtAmountA), scale3, fraction(scale8, balanceB, pmtAmountB)) | |
388 | 443 | let ratioShareTokensInA = fraction(scale8, pmtAmountA, balanceA) | |
389 | 444 | let ratioShareTokensInB = fraction(scale8, pmtAmountB, balanceB) | |
390 | 445 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
391 | 446 | let invariantCalculated = invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB)) | |
392 | 447 | if (!(isActive)) | |
393 | 448 | then throwIsInactive() | |
394 | 449 | else if (if ((0 > slippageTolerance)) | |
395 | 450 | then true | |
396 | 451 | else (slippageTolerance > 10)) | |
397 | 452 | then throw("Slippage tolerance must be <= 1%") | |
398 | 453 | else if ((size(i.payments) != 2)) | |
399 | 454 | then throw("Two attached assets expected") | |
400 | 455 | else if (if ((pmtAssetIdA != assetIdA)) | |
401 | 456 | then true | |
402 | 457 | else (pmtAssetIdB != assetIdB)) | |
403 | 458 | then throwAssets() | |
404 | 459 | else if (if ((((scale3 * (slippageScale3 - slippageTolerance)) / slippageScale3) > tokenRatio)) | |
405 | 460 | then true | |
406 | 461 | else (tokenRatio > ((scale3 * (slippageScale3 + slippageTolerance)) / slippageScale3))) | |
407 | 462 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
408 | 463 | else if ((shareTokenToPayAmount == 0)) | |
409 | 464 | then throw("Too small amount to replenish") | |
410 | 465 | else if (!(hasEnoughBalance)) | |
411 | 466 | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
412 | 467 | else [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalculated), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
413 | 468 | } | |
414 | 469 | ||
415 | 470 | ||
416 | 471 | ||
417 | 472 | @Callable(i) | |
418 | 473 | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = { | |
419 | - | let $ | |
420 | - | let pmtAmount = $ | |
421 | - | let pmtAssetId = $ | |
474 | + | let $t01658616661 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
475 | + | let pmtAmount = $t01658616661._1 | |
476 | + | let pmtAssetId = $t01658616661._2 | |
422 | 477 | let pmtMinThreshold = 5000000 | |
423 | 478 | let thresholdValueForMinTolerance = 50000000 | |
424 | 479 | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
425 | 480 | then 100000 | |
426 | 481 | else 1 | |
427 | 482 | let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000)) | |
428 | 483 | let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000)) | |
429 | 484 | let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000)) | |
430 | 485 | if (!(isActive)) | |
431 | 486 | then throwIsInactive() | |
432 | 487 | else if ((pmtMinThreshold > pmtAmount)) | |
433 | 488 | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
434 | 489 | else if ((size(i.payments) != 1)) | |
435 | 490 | then throw("One attached payment expected") | |
436 | 491 | else if (!(hasEnoughBalance)) | |
437 | 492 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
438 | 493 | else if (if ((pmtAssetId != assetIdA)) | |
439 | 494 | then (pmtAssetId != assetIdB) | |
440 | 495 | else false) | |
441 | 496 | then throwAssets() | |
442 | 497 | else { | |
443 | - | let $ | |
498 | + | let $t01767318438 = if ((pmtAssetId == assetIdA)) | |
444 | 499 | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
445 | 500 | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
446 | - | let virtualReplenishA = $ | |
447 | - | let virtualReplenishB = $ | |
448 | - | let balanceAfterSwapA = $ | |
449 | - | let balanceAfterSwapB = $ | |
450 | - | let invariantCalculated = $ | |
451 | - | let newBalanceA = $ | |
452 | - | let newBalanceB = $ | |
501 | + | let virtualReplenishA = $t01767318438._1 | |
502 | + | let virtualReplenishB = $t01767318438._2 | |
503 | + | let balanceAfterSwapA = $t01767318438._3 | |
504 | + | let balanceAfterSwapB = $t01767318438._4 | |
505 | + | let invariantCalculated = $t01767318438._5 | |
506 | + | let newBalanceA = $t01767318438._6 | |
507 | + | let newBalanceB = $t01767318438._7 | |
453 | 508 | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
454 | 509 | then IntegerEntry(kBalanceA, newBalanceA) | |
455 | 510 | else IntegerEntry(kBalanceB, newBalanceB) | |
456 | 511 | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
457 | 512 | let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew) | |
458 | 513 | let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB)) | |
459 | 514 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
460 | 515 | if (if ((slippageValueMinForSwap >= invariantEstimatedRatio)) | |
461 | 516 | then true | |
462 | 517 | else (invariant > invariantNew)) | |
463 | 518 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
464 | 519 | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
465 | 520 | then true | |
466 | 521 | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
467 | 522 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
468 | 523 | else if (if ((dAppThresholdAmount > newBalanceA)) | |
469 | 524 | then true | |
470 | 525 | else (dAppThresholdAmount > newBalanceB)) | |
471 | 526 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
472 | 527 | else { | |
473 | 528 | let ratioShareTokensInA = fraction(deductStakingFee(virtualReplenishA, assetIdA), scale8, balanceAfterSwapA) | |
474 | 529 | let ratioShareTokensInB = fraction(deductStakingFee(virtualReplenishB, assetIdB), scale8, balanceAfterSwapB) | |
475 | 530 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
476 | 531 | [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)] | |
477 | 532 | } | |
478 | 533 | } | |
479 | 534 | } | |
480 | 535 | ||
481 | 536 | ||
482 | 537 | ||
483 | 538 | @Callable(i) | |
484 | 539 | func withdraw () = { | |
485 | - | let $ | |
486 | - | let pmtAmount = $ | |
487 | - | let pmtAssetId = $ | |
540 | + | let $t02058320726 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
541 | + | let pmtAmount = $t02058320726._1 | |
542 | + | let pmtAssetId = $t02058320726._2 | |
488 | 543 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
489 | 544 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
490 | 545 | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
491 | 546 | if (!(isActive)) | |
492 | 547 | then throwIsInactive() | |
493 | 548 | else if ((size(i.payments) != 1)) | |
494 | 549 | then throw("One attached payment expected") | |
495 | 550 | else if ((pmtAssetId != shareAssetId)) | |
496 | 551 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
497 | 552 | else if (!(hasEnoughBalance)) | |
498 | 553 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
499 | 554 | else if (if ((amountToPayA > availableBalanceA)) | |
500 | 555 | then true | |
501 | 556 | else (amountToPayB > availableBalanceB)) | |
502 | 557 | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
503 | 558 | else [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)] | |
504 | 559 | } | |
505 | 560 | ||
506 | 561 | ||
507 | 562 | ||
508 | 563 | @Callable(i) | |
509 | 564 | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
510 | - | let $ | |
511 | - | let pmtAmount = $ | |
512 | - | let pmtAssetId = $ | |
565 | + | let $t02208422159 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
566 | + | let pmtAmount = $t02208422159._1 | |
567 | + | let pmtAssetId = $t02208422159._2 | |
513 | 568 | if (!(isActive)) | |
514 | 569 | then throwIsInactive() | |
515 | 570 | else if ((0 >= estimatedAmountToReceive)) | |
516 | 571 | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
517 | 572 | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
518 | 573 | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive))) | |
519 | 574 | else if ((size(i.payments) != 1)) | |
520 | 575 | then throw("One attached payment expected") | |
521 | 576 | else if (!(hasEnoughBalance)) | |
522 | 577 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
523 | 578 | else if (if ((pmtAssetId != assetIdA)) | |
524 | 579 | then (pmtAssetId != assetIdB) | |
525 | 580 | else false) | |
526 | 581 | then throwAssets() | |
527 | 582 | else if ((10000000 > pmtAmount)) | |
528 | 583 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
529 | 584 | else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount))) | |
530 | 585 | then true | |
531 | 586 | else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax)) | |
532 | 587 | then throw("Incorrect args and pmt ratio") | |
533 | 588 | else { | |
534 | 589 | let sendAssetId = if ((pmtAssetId == assetIdA)) | |
535 | 590 | then assetIdB | |
536 | 591 | else assetIdA | |
537 | 592 | let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
538 | 593 | let governanceReward = fraction(amount, feeGovernance, feeScale6) | |
539 | 594 | let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6) | |
540 | - | let $ | |
595 | + | let $t02358123843 = if ((pmtAssetId == assetIdA)) | |
541 | 596 | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
542 | 597 | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
543 | - | let newBalanceA = $ | |
544 | - | let newBalanceB = $ | |
598 | + | let newBalanceA = $t02358123843._1 | |
599 | + | let newBalanceB = $t02358123843._2 | |
545 | 600 | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
546 | 601 | if (if ((dAppThresholdAmount > newBalanceA)) | |
547 | 602 | then true | |
548 | 603 | else (dAppThresholdAmount > newBalanceB)) | |
549 | 604 | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
550 | 605 | else if (if (if ((assetIdA == USDN)) | |
551 | 606 | then (sendAssetId == assetIdA) | |
552 | 607 | else false) | |
553 | 608 | then (stakedAmountUSDN >= newBalanceA) | |
554 | 609 | else false) | |
555 | 610 | then throwInsufficientAvailableBalance(amountMinusFee, availableBalanceA, assetNameA) | |
556 | 611 | else if (if (if ((assetIdB == USDN)) | |
557 | 612 | then (sendAssetId == assetIdB) | |
558 | 613 | else false) | |
559 | 614 | then (stakedAmountUSDN >= newBalanceB) | |
560 | 615 | else false) | |
561 | 616 | then throwInsufficientAvailableBalance(amountMinusFee, availableBalanceB, assetNameB) | |
562 | - | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer( | |
617 | + | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(walletAddress, governanceReward, sendAssetId)] | |
563 | 618 | } | |
564 | 619 | } | |
565 | 620 | ||
566 | 621 | ||
567 | 622 | ||
568 | 623 | @Callable(i) | |
569 | 624 | func shutdown () = if (!(isActive)) | |
570 | 625 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
571 | 626 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStartStop], i.callerPublicKey))) | |
572 | 627 | then throwOnlyAdmin() | |
573 | 628 | else suspend("Paused by admin") | |
574 | 629 | ||
575 | 630 | ||
576 | 631 | ||
577 | 632 | @Callable(i) | |
578 | 633 | func activate () = if (isActive) | |
579 | 634 | then throwIsActive() | |
580 | 635 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStartStop], i.callerPublicKey))) | |
581 | 636 | then throwOnlyAdmin() | |
582 | 637 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)] | |
583 | 638 | ||
584 | 639 | ||
585 | 640 | ||
586 | 641 | @Callable(i) | |
587 | - | func enableFirstHarvest () = [BooleanEntry( | |
642 | + | func enableFirstHarvest () = [BooleanEntry(kFirstHarvest, true), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))] | |
588 | 643 | ||
589 | 644 | ||
590 | 645 | ||
591 | 646 | @Callable(i) | |
592 | 647 | func takeIntoAccountExtraFunds (amountLeave) = { | |
593 | 648 | let uncountableA = (accountBalanceWithStakedA - balanceA) | |
594 | 649 | let uncountableB = (accountBalanceWithStakedB - balanceB) | |
595 | 650 | let amountEnrollA = (uncountableA - (if ((assetIdA == unit)) | |
596 | 651 | then amountLeave | |
597 | 652 | else 0)) | |
598 | 653 | let amountEnrollB = (uncountableB - (if ((assetIdB == unit)) | |
599 | 654 | then amountLeave | |
600 | 655 | else 0)) | |
601 | 656 | let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB)) | |
602 | 657 | if (!(isActive)) | |
603 | 658 | then throwIsInactive() | |
604 | 659 | else if ((i.caller != this)) | |
605 | 660 | then throwOnlyAdmin() | |
606 | 661 | else if ((0 > amountLeave)) | |
607 | 662 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
608 | 663 | else if (if ((0 > uncountableA)) | |
609 | 664 | then true | |
610 | 665 | else (0 > uncountableB)) | |
611 | 666 | then suspend("Enroll amount negative") | |
612 | 667 | else if (if ((0 > amountEnrollA)) | |
613 | 668 | then true | |
614 | 669 | else (0 > amountEnrollB)) | |
615 | 670 | then throw("Too large amountLeave") | |
616 | 671 | else [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
617 | 672 | } | |
618 | 673 | ||
619 | 674 | ||
620 | 675 | @Verifier(tx) | |
621 | 676 | func verify () = { | |
622 | 677 | let multiSignedByAdmins = { | |
623 | 678 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
624 | 679 | then 1 | |
625 | 680 | else 0 | |
626 | 681 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
627 | 682 | then 1 | |
628 | 683 | else 0 | |
629 | 684 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
630 | 685 | then 1 | |
631 | 686 | else 0 | |
632 | 687 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
633 | 688 | } | |
634 | 689 | match tx { | |
635 | 690 | case inv: InvokeScriptTransaction => | |
636 | 691 | let callTakeIntoAccount = if ((inv.dApp == this)) | |
637 | 692 | then (inv.function == "takeIntoAccountExtraFunds") | |
638 | 693 | else false | |
639 | 694 | let callEnableFirstHarvest = if ((inv.dApp == this)) | |
640 | 695 | then (inv.function == "enableFirstHarvest") | |
641 | 696 | else false | |
642 | 697 | let callStaking = if ((inv.dApp == stakingAddress)) | |
643 | 698 | then if (if (if ((inv.function == "lockNeutrino")) | |
644 | 699 | then (size(inv.payments) == 1) | |
645 | 700 | else false) | |
646 | 701 | then (inv.payments[0].assetId == USDN) | |
647 | 702 | else false) | |
648 | 703 | then true | |
649 | 704 | else if ((inv.function == "unlockNeutrino")) | |
650 | 705 | then (size(inv.payments) == 0) | |
651 | 706 | else false | |
652 | 707 | else false | |
653 | 708 | let exchangeToWaves = if (if (if ((inv.dApp == USDNToWavesExchanger)) | |
654 | 709 | then (inv.function == "exchange") | |
655 | 710 | else false) | |
656 | 711 | then (assetIdA == USDN) | |
657 | 712 | else false) | |
658 | 713 | then true | |
659 | 714 | else if (if ((assetIdB == USDN)) | |
660 | 715 | then (size(inv.payments) == 1) | |
661 | 716 | else false) | |
662 | 717 | then (inv.payments[0].assetId == USDN) | |
663 | 718 | else false | |
664 | 719 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
665 | 720 | then true | |
666 | 721 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
667 | 722 | then true | |
668 | 723 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
669 | 724 | then true | |
670 | 725 | else sigVerify(tx.bodyBytes, tx.proofs[0], admStaking) | |
671 | 726 | if (if (if (if (if (callTakeIntoAccount) | |
672 | 727 | then true | |
673 | 728 | else callEnableFirstHarvest) | |
674 | 729 | then true | |
675 | 730 | else callStaking) | |
676 | 731 | then true | |
677 | 732 | else exchangeToWaves) | |
678 | 733 | then signedByAdmin | |
679 | 734 | else false) | |
680 | 735 | then true | |
681 | 736 | else multiSignedByAdmins | |
682 | 737 | case _ => | |
683 | 738 | multiSignedByAdmins | |
684 | 739 | } | |
685 | 740 | } | |
686 | 741 |
github/deemru/w8io/169f3d6 102.35 ms ◑