tx · 4MTC5ZxvRo4oqDpLsiALQX3ixB41kpBUAfJa7fTKxMP5 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2022.01.20 12:33 [1887069] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "4MTC5ZxvRo4oqDpLsiALQX3ixB41kpBUAfJa7fTKxMP5", "fee": 1400000, "feeAssetId": null, "timestamp": 1642671233755, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "3BGD6fcMBZGcpH2ifyhZ89TCzYGccNuc8TwTnnuuydjovAARox1fktyQa5p3TqGqRpT36sSb2NUxMVUdGsusMQxT" ], "script": "base64:AAIFAAAAAAAAAG0IAhIECgIICBIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIAAAARgAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAAAAAApzbGlwcGFnZTRECQABNgAAAAEJAABlAAAAAgUAAAAGc2NhbGU4CQAAaQAAAAIJAABoAAAAAgUAAAAGc2NhbGU4AAAAAAAAAAABBQAAAAZzY2FsZTgAAAAABUFtdWx0AgAAAAMxMDAAAAAABURjb252AgAAAAExAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAApQb29sQWN0aXZlAAAAAAAAAAABAAAAAApQb29sUHV0RGlzAAAAAAAAAAACA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AAB210Y2hQdWIJAQAAABNnZXRNYXRjaGVyUHViT3JGYWlsAAAAAAQAAAADb3JWCQEAAAAbdmFsaWRhdGVNYXRjaGVyT3JkZXJBbGxvd2VkAAAAAQUAAAAFb3JkZXIEAAAABXNuZHJWCQAB9AAAAAMIBQAAAAVvcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAABW9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgFAAAABW9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAAFbXRjaFYJAAH0AAAAAwgFAAAABW9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAAFb3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAdtdGNoUHViAwMDBQAAAANvclYFAAAABXNuZHJWBwUAAAAFbXRjaFYHBgkBAAAAD3Rocm93T3JkZXJFcnJvcgAAAAMFAAAAA29yVgUAAAAFc25kclYFAAAABW10Y2hWBAAAAAVhZG1pbgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzCQEAAAAMa2V5TWFuUHViS2V5AAAAAAUAAAAFRU1QVFkDCQAAAAAAAAIFAAAABWFkbWluBQAAAAVFTVBUWQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAABWFkbWluNRNdGQ==", "chainId": 84, "height": 1887069, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6qWL7uUXnQN5SwPmYaRFuMJd63zZPjFs4e9DG3WzSC4q Next: HoBkWVKfhCY6CT6o9pJa5Bh7BoXNyyzXueiTkoJ9xrXH Diff:
Old | New | Differences | |
---|---|---|---|
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyAmplificator () = "%s__amp" | |
95 | + | ||
96 | + | ||
97 | + | func keyAddonAddr () = "%s__addonAddr" | |
95 | 98 | ||
96 | 99 | ||
97 | 100 | func keyFactoryConfig () = "%s__factoryConfig" | |
323 | 326 | else calcLpAmt | |
324 | 327 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
325 | 328 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
326 | - | let $ | |
329 | + | let $t01585816203 = if (if (isOneAsset) | |
327 | 330 | then (pmtId == amIdStr) | |
328 | 331 | else false) | |
329 | 332 | then $Tuple2(pmtAmt, 0) | |
332 | 335 | else false) | |
333 | 336 | then $Tuple2(0, pmtAmt) | |
334 | 337 | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
335 | - | let writeAmAmt = $ | |
336 | - | let writePrAmt = $ | |
338 | + | let writeAmAmt = $t01585816203._1 | |
339 | + | let writePrAmt = $t01585816203._2 | |
337 | 340 | let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
338 | 341 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId) | |
339 | 342 | } | |
509 | 512 | else { | |
510 | 513 | let amBalance = getAccBalance(amId) | |
511 | 514 | let prBalance = getAccBalance(prId) | |
512 | - | let $ | |
515 | + | let $t02394424324 = if ((pmtAssetId == amId)) | |
513 | 516 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
514 | 517 | else if ((pmtAssetId == prId)) | |
515 | 518 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
516 | 519 | else throw("wrong pmtAssetId") | |
517 | - | let amBalanceNow = $ | |
518 | - | let prBalanceNow = $ | |
519 | - | let virtSwapInAm = $ | |
520 | - | let virtSwapOutPr = $ | |
521 | - | let virtSwapInPr = $ | |
522 | - | let virtSwapOutAm = $ | |
520 | + | let amBalanceNow = $t02394424324._1 | |
521 | + | let prBalanceNow = $t02394424324._2 | |
522 | + | let virtSwapInAm = $t02394424324._3 | |
523 | + | let virtSwapOutPr = $t02394424324._4 | |
524 | + | let virtSwapInPr = $t02394424324._5 | |
525 | + | let virtSwapOutAm = $t02394424324._6 | |
523 | 526 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
524 | 527 | let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
525 | 528 | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
611 | 614 | let fcfg = getFactoryConfig() | |
612 | 615 | let gwxCntr = valueOrErrorMessage(addressFromString(fcfg[idxFactGwxRewCntr]), "Wr sl addr") | |
613 | 616 | let pmt = value(i.payments[0]) | |
614 | - | let userAddress = i.caller | |
617 | + | let addon = valueOrElse(getString(this, keyAddonAddr()), "") | |
618 | + | let userAddress = if ((addon == toString(i.caller))) | |
619 | + | then i.originCaller | |
620 | + | else i.caller | |
615 | 621 | let txId58 = toBase58String(i.transactionId) | |
616 | 622 | let pmtAssetId = value(pmt.assetId) | |
617 | 623 | let pmtAmt = pmt.amount | |
618 | 624 | if ((1000000000 > pmtAmt)) | |
619 | - | then throw("Min | |
625 | + | then throw("Min pmt 10 LP") | |
620 | 626 | else if (if (if ((0 > slippage)) | |
621 | 627 | then true | |
622 | 628 | else (0 > exchResult)) | |
631 | 637 | let estimPrAmt = r._2 | |
632 | 638 | let amBalance = getAccBalance(amId) | |
633 | 639 | let prBalance = getAccBalance(prId) | |
634 | - | let $ | |
640 | + | let $t02909129548 = if ((outAssetId == amId)) | |
635 | 641 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult)) | |
636 | 642 | else if ((outAssetId == prId)) | |
637 | 643 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult)) | |
638 | 644 | else throw("wrong outAssetId") | |
639 | - | let amBalanceNow = $ | |
640 | - | let prBalanceNow = $ | |
641 | - | let virtSwapInAm = $ | |
642 | - | let virtSwapOutPr = $ | |
643 | - | let virtSwapInPr = $ | |
644 | - | let virtSwapOutAm = $ | |
645 | - | let totalGet = $ | |
645 | + | let amBalanceNow = $t02909129548._1 | |
646 | + | let prBalanceNow = $t02909129548._2 | |
647 | + | let virtSwapInAm = $t02909129548._3 | |
648 | + | let virtSwapOutPr = $t02909129548._4 | |
649 | + | let virtSwapInPr = $t02909129548._5 | |
650 | + | let virtSwapOutAm = $t02909129548._6 | |
651 | + | let totalGet = $t02909129548._7 | |
646 | 652 | if (if ((0 > virtSwapInAm)) | |
647 | 653 | then true | |
648 | 654 | else (0 > virtSwapInPr)) | |
653 | 659 | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
654 | 660 | if ((D0vsD1 == D0vsD1)) | |
655 | 661 | then { | |
656 | - | let | |
657 | - | if (( | |
662 | + | let finalRes = validateAbsDiff(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
663 | + | if ((finalRes == finalRes)) | |
658 | 664 | then { | |
659 | - | let $ | |
660 | - | then $Tuple2(toInt( | |
661 | - | else $Tuple2(0, toInt( | |
662 | - | let outAm = $ | |
663 | - | let outPr = $ | |
664 | - | let | |
665 | - | let | |
665 | + | let $t03028230386 = if ((outAssetId == amId)) | |
666 | + | then $Tuple2(toInt(finalRes._2), 0) | |
667 | + | else $Tuple2(0, toInt(finalRes._2)) | |
668 | + | let outAm = $t03028230386._1 | |
669 | + | let outPr = $t03028230386._2 | |
670 | + | let curPrX18 = calcPriceBigInt(toX18(prBalance, prDcm), toX18(amBalance, amDcm)) | |
671 | + | let curPr = fromX18(curPrX18, scale8) | |
666 | 672 | let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES")) | |
667 | 673 | then unit | |
668 | - | else fromBase58String(outAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, | |
674 | + | else fromBase58String(outAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, curPr, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPr), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPr)] | |
669 | 675 | if ((state == state)) | |
670 | 676 | then { | |
671 | 677 | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
730 | 736 | else true | |
731 | 737 | if ((v == v)) | |
732 | 738 | then { | |
733 | - | let | |
734 | - | if (( | |
739 | + | let burnA = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
740 | + | if ((burnA == burnA)) | |
735 | 741 | then state | |
736 | 742 | else throw("Strict value is not equal to itself.") | |
737 | 743 | } | |
745 | 751 | ||
746 | 752 | ||
747 | 753 | @Callable(i) | |
748 | - | func activate ( | |
754 | + | func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(factoryContract))) | |
749 | 755 | then throw("denied") | |
750 | - | else $Tuple2([StringEntry(keyAmtAsset(), | |
756 | + | else $Tuple2([StringEntry(keyAmtAsset(), amtAsStr), StringEntry(keyPriceAsset(), prAsStr)], "success") | |
751 | 757 | ||
752 | 758 | ||
753 | 759 | ||
763 | 769 | ||
764 | 770 | @Callable(i) | |
765 | 771 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
766 | - | let | |
767 | - | $Tuple2(nil, [toString( | |
772 | + | let pr = calcPrices(amAmt, prAmt, lpAmt) | |
773 | + | $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])]) | |
768 | 774 | } | |
769 | 775 | ||
770 | 776 | ||
771 | 777 | ||
772 | 778 | @Callable(i) | |
773 | - | func fromX18WrapperREADONLY (val, | |
779 | + | func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resScaleMult)) | |
774 | 780 | ||
775 | 781 | ||
776 | 782 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let scale8 = 100000000 | |
5 | 5 | ||
6 | 6 | let scale8BigInt = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let scale18 = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let zeroBigInt = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let oneBigInt = toBigInt(1) | |
13 | 13 | ||
14 | 14 | let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8))) | |
15 | 15 | ||
16 | 16 | let Amult = "100" | |
17 | 17 | ||
18 | 18 | let Dconv = "1" | |
19 | 19 | ||
20 | 20 | let SEP = "__" | |
21 | 21 | ||
22 | 22 | let EMPTY = "" | |
23 | 23 | ||
24 | 24 | let PoolActive = 1 | |
25 | 25 | ||
26 | 26 | let PoolPutDis = 2 | |
27 | 27 | ||
28 | 28 | let PoolMatcherDis = 3 | |
29 | 29 | ||
30 | 30 | let PoolShutdown = 4 | |
31 | 31 | ||
32 | 32 | let idxPoolAddress = 1 | |
33 | 33 | ||
34 | 34 | let idxPoolSt = 2 | |
35 | 35 | ||
36 | 36 | let idxLPAsId = 3 | |
37 | 37 | ||
38 | 38 | let idxAmAsId = 4 | |
39 | 39 | ||
40 | 40 | let idxPrAsId = 5 | |
41 | 41 | ||
42 | 42 | let idxAmtAsDcm = 6 | |
43 | 43 | ||
44 | 44 | let idxPriceAsDcm = 7 | |
45 | 45 | ||
46 | 46 | let idxIAmtAsId = 8 | |
47 | 47 | ||
48 | 48 | let idxIPriceAsId = 9 | |
49 | 49 | ||
50 | 50 | let idxFactStakCntr = 1 | |
51 | 51 | ||
52 | 52 | let idxFactSlippCntr = 7 | |
53 | 53 | ||
54 | 54 | let idxFactGwxRewCntr = 10 | |
55 | 55 | ||
56 | 56 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func abs (val) = if ((zeroBigInt > val)) | |
66 | 66 | then -(val) | |
67 | 67 | else val | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func keyFactCntr () = "%s__factoryContract" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyManPubKey () = "%s__managerPublicKey" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyPriceLast () = "%s%s__price__last" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyPriceHistory (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyPutActionByUser (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyGetActionByUser (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyAmtAsset () = "%s__amountAsset" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyPriceAsset () = "%s__priceAsset" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyAmplificator () = "%s__amp" | |
95 | + | ||
96 | + | ||
97 | + | func keyAddonAddr () = "%s__addonAddr" | |
95 | 98 | ||
96 | 99 | ||
97 | 100 | func keyFactoryConfig () = "%s__factoryConfig" | |
98 | 101 | ||
99 | 102 | ||
100 | 103 | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
101 | 104 | ||
102 | 105 | ||
103 | 106 | func keyPoolConfig (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config") | |
104 | 107 | ||
105 | 108 | ||
106 | 109 | func keyMappingsBaseAsset2internalId (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr) | |
107 | 110 | ||
108 | 111 | ||
109 | 112 | func keyAllPoolsShutdown () = "%s__shutdown" | |
110 | 113 | ||
111 | 114 | ||
112 | 115 | func keyPoolWeight (p) = ("%s%s__poolWeight__" + p) | |
113 | 116 | ||
114 | 117 | ||
115 | 118 | func throwOrderError (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV))) | |
116 | 119 | ||
117 | 120 | ||
118 | 121 | func asString (val) = match val { | |
119 | 122 | case valStr: String => | |
120 | 123 | valStr | |
121 | 124 | case _ => | |
122 | 125 | throw("fail cast to String") | |
123 | 126 | } | |
124 | 127 | ||
125 | 128 | ||
126 | 129 | func getStringOrFail (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
127 | 130 | ||
128 | 131 | ||
129 | 132 | func getIntOrFail (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
130 | 133 | ||
131 | 134 | ||
132 | 135 | let factoryContract = addressFromStringValue(getStringOrFail(this, keyFactCntr())) | |
133 | 136 | ||
134 | 137 | let A = getStringOrFail(this, keyAmplificator()) | |
135 | 138 | ||
136 | 139 | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
137 | 140 | ||
138 | 141 | ||
139 | 142 | func getMatcherPubOrFail () = fromBase58String(getStringOrFail(factoryContract, keyMatcherPub())) | |
140 | 143 | ||
141 | 144 | ||
142 | 145 | func getPoolConfig () = { | |
143 | 146 | let amtAs = getStringOrFail(this, keyAmtAsset()) | |
144 | 147 | let priceAs = getStringOrFail(this, keyPriceAsset()) | |
145 | 148 | let iPriceAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAs)) | |
146 | 149 | let iAmtAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAs)) | |
147 | 150 | split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAs), toString(iPriceAs))), SEP) | |
148 | 151 | } | |
149 | 152 | ||
150 | 153 | ||
151 | 154 | func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP) | |
152 | 155 | ||
153 | 156 | ||
154 | 157 | func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slipByUser,slippageReal,txHeight,txTimestamp,slipageAmAmt,slipagePrAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slipByUser), toString(slippageReal), toString(txHeight), toString(txTimestamp), toString(slipageAmAmt), toString(slipagePrAmt)], SEP) | |
155 | 158 | ||
156 | 159 | ||
157 | 160 | func dataGetActionInfo (outAmtAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP) | |
158 | 161 | ||
159 | 162 | ||
160 | 163 | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
161 | 164 | then wavesBalance(this).available | |
162 | 165 | else assetBalance(this, fromBase58String(assetId)) | |
163 | 166 | ||
164 | 167 | ||
165 | 168 | func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
166 | 169 | ||
167 | 170 | ||
168 | 171 | func validateAbsDiff (A1,A2,slippage) = { | |
169 | 172 | let diff = fraction((A1 - A2), scale8BigInt, A2) | |
170 | 173 | let pass = ((slippage - abs(diff)) > zeroBigInt) | |
171 | 174 | if (!(pass)) | |
172 | 175 | then throw(("Big slpg: " + toString(diff))) | |
173 | 176 | else $Tuple2(pass, min([A1, A2])) | |
174 | 177 | } | |
175 | 178 | ||
176 | 179 | ||
177 | 180 | func validateD (D1,D0,slpg) = { | |
178 | 181 | let diff = fraction(D0, scale8BigInt, D1) | |
179 | 182 | let fail = (slpg > diff) | |
180 | 183 | if (if (fail) | |
181 | 184 | then true | |
182 | 185 | else (D0 > D1)) | |
183 | 186 | then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
184 | 187 | else fail | |
185 | 188 | } | |
186 | 189 | ||
187 | 190 | ||
188 | 191 | func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
189 | 192 | let amtAsAmtX18 = toX18(amAmt, amAssetDcm) | |
190 | 193 | let prAsAmtX18 = toX18(prAmt, prAssetDcm) | |
191 | 194 | calcPriceBigInt(prAsAmtX18, amtAsAmtX18) | |
192 | 195 | } | |
193 | 196 | ||
194 | 197 | ||
195 | 198 | func calcPrices (amAmt,prAmt,lpAmt) = { | |
196 | 199 | let cfg = getPoolConfig() | |
197 | 200 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
198 | 201 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
199 | 202 | let priceX18 = privateCalcPrice(amtAsDcm, prAsDcm, amAmt, prAmt) | |
200 | 203 | let amAmtX18 = toX18(amAmt, amtAsDcm) | |
201 | 204 | let prAmtX18 = toX18(prAmt, prAsDcm) | |
202 | 205 | let lpAmtX18 = toX18(lpAmt, scale8) | |
203 | 206 | let lpPrInAmAsX18 = calcPriceBigInt(amAmtX18, lpAmtX18) | |
204 | 207 | let lpPrInPrAsX18 = calcPriceBigInt(prAmtX18, lpAmtX18) | |
205 | 208 | [priceX18, lpPrInAmAsX18, lpPrInPrAsX18] | |
206 | 209 | } | |
207 | 210 | ||
208 | 211 | ||
209 | 212 | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
210 | 213 | let p = calcPrices(amAmt, prAmt, lpAmt) | |
211 | 214 | [fromX18(p[0], scale8), fromX18(p[1], scale8), fromX18(p[2], scale8)] | |
212 | 215 | } | |
213 | 216 | ||
214 | 217 | ||
215 | 218 | func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
216 | 219 | let cfg = getPoolConfig() | |
217 | 220 | let lpId = cfg[idxLPAsId] | |
218 | 221 | let amId = cfg[idxAmAsId] | |
219 | 222 | let prId = cfg[idxPrAsId] | |
220 | 223 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
221 | 224 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
222 | 225 | let sts = cfg[idxPoolSt] | |
223 | 226 | let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity | |
224 | 227 | if ((lpId != pmtAssetId)) | |
225 | 228 | then throw("Wrong pmt asset") | |
226 | 229 | else { | |
227 | 230 | let amBalance = getAccBalance(amId) | |
228 | 231 | let amBalanceX18 = toX18(amBalance, amDcm) | |
229 | 232 | let prBalance = getAccBalance(prId) | |
230 | 233 | let prBalanceX18 = toX18(prBalance, prDcm) | |
231 | 234 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
232 | 235 | let curPrice = fromX18(curPriceX18, scale8) | |
233 | 236 | let pmtLpAmtX18 = toX18(pmtLpAmt, scale8) | |
234 | 237 | let lpEmissX18 = toX18(lpEmiss, scale8) | |
235 | 238 | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18) | |
236 | 239 | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18) | |
237 | 240 | let outAmAmt = fromX18(outAmAmtX18, amDcm) | |
238 | 241 | let outPrAmt = fromX18(outPrAmtX18, prDcm) | |
239 | 242 | let state = if ((txId58 == "")) | |
240 | 243 | then nil | |
241 | 244 | else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES")) | |
242 | 245 | then unit | |
243 | 246 | else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES")) | |
244 | 247 | then unit | |
245 | 248 | else fromBase58String(prId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice)] | |
246 | 249 | $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state) | |
247 | 250 | } | |
248 | 251 | } | |
249 | 252 | ||
250 | 253 | ||
251 | 254 | func estimatePutOperation (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
252 | 255 | let cfg = getPoolConfig() | |
253 | 256 | let lpId = fromBase58String(cfg[idxLPAsId]) | |
254 | 257 | let amIdStr = cfg[idxAmAsId] | |
255 | 258 | let prIdStr = cfg[idxPrAsId] | |
256 | 259 | let inAmIdStr = cfg[idxIAmtAsId] | |
257 | 260 | let inPrIdStr = cfg[idxIPriceAsId] | |
258 | 261 | let amtDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
259 | 262 | let priceDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
260 | 263 | let sts = cfg[idxPoolSt] | |
261 | 264 | let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity | |
262 | 265 | let amBalance = if (isEval) | |
263 | 266 | then getAccBalance(amIdStr) | |
264 | 267 | else if (if (isOneAsset) | |
265 | 268 | then (pmtId == amIdStr) | |
266 | 269 | else false) | |
267 | 270 | then (getAccBalance(amIdStr) - pmtAmt) | |
268 | 271 | else if (isOneAsset) | |
269 | 272 | then getAccBalance(amIdStr) | |
270 | 273 | else (getAccBalance(amIdStr) - inAmAmt) | |
271 | 274 | let prBalance = if (isEval) | |
272 | 275 | then getAccBalance(prIdStr) | |
273 | 276 | else if (if (isOneAsset) | |
274 | 277 | then (pmtId == prIdStr) | |
275 | 278 | else false) | |
276 | 279 | then (getAccBalance(prIdStr) - pmtAmt) | |
277 | 280 | else if (isOneAsset) | |
278 | 281 | then getAccBalance(prIdStr) | |
279 | 282 | else (getAccBalance(prIdStr) - inPrAmt) | |
280 | 283 | let inAmAssetAmtX18 = toX18(inAmAmt, amtDcm) | |
281 | 284 | let inPrAssetAmtX18 = toX18(inPrAmt, priceDcm) | |
282 | 285 | let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18) | |
283 | 286 | let amBalanceX18 = toX18(amBalance, amtDcm) | |
284 | 287 | let prBalanceX18 = toX18(prBalance, priceDcm) | |
285 | 288 | let res = if ((lpEm == 0)) | |
286 | 289 | then { | |
287 | 290 | let curPriceX18 = zeroBigInt | |
288 | 291 | let slippageX18 = zeroBigInt | |
289 | 292 | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
290 | 293 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtDcm), fromX18(inPrAssetAmtX18, priceDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
291 | 294 | } | |
292 | 295 | else { | |
293 | 296 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
294 | 297 | let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
295 | 298 | let slippageX18 = toX18(slippage, scale8) | |
296 | 299 | if (if ((curPriceX18 != zeroBigInt)) | |
297 | 300 | then (slippageRealX18 > slippageX18) | |
298 | 301 | else false) | |
299 | 302 | then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18))) | |
300 | 303 | else { | |
301 | 304 | let lpEmissionX18 = toX18(lpEm, scale8) | |
302 | 305 | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
303 | 306 | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
304 | 307 | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
305 | 308 | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
306 | 309 | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
307 | 310 | let expAmtAssetAmtX18 = expectedAmts._1 | |
308 | 311 | let expPriceAssetAmtX18 = expectedAmts._2 | |
309 | 312 | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
310 | 313 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtDcm), fromX18(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18) | |
311 | 314 | } | |
312 | 315 | } | |
313 | 316 | let calcLpAmt = res._1 | |
314 | 317 | let calcAmAssetPmt = res._2 | |
315 | 318 | let calcPrAssetPmt = res._3 | |
316 | 319 | let curPrice = fromX18(res._4, scale8) | |
317 | 320 | let slippageCalc = fromX18(res._5, scale8) | |
318 | 321 | if ((0 >= calcLpAmt)) | |
319 | 322 | then throw("LP <= 0") | |
320 | 323 | else { | |
321 | 324 | let emitLpAmt = if (!(emitLp)) | |
322 | 325 | then 0 | |
323 | 326 | else calcLpAmt | |
324 | 327 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
325 | 328 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
326 | - | let $ | |
329 | + | let $t01585816203 = if (if (isOneAsset) | |
327 | 330 | then (pmtId == amIdStr) | |
328 | 331 | else false) | |
329 | 332 | then $Tuple2(pmtAmt, 0) | |
330 | 333 | else if (if (isOneAsset) | |
331 | 334 | then (pmtId == prIdStr) | |
332 | 335 | else false) | |
333 | 336 | then $Tuple2(0, pmtAmt) | |
334 | 337 | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
335 | - | let writeAmAmt = $ | |
336 | - | let writePrAmt = $ | |
338 | + | let writeAmAmt = $t01585816203._1 | |
339 | + | let writePrAmt = $t01585816203._2 | |
337 | 340 | let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
338 | 341 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId) | |
339 | 342 | } | |
340 | 343 | } | |
341 | 344 | ||
342 | 345 | ||
343 | 346 | func validateMatcherOrderAllowed (order) = { | |
344 | 347 | let cfg = getPoolConfig() | |
345 | 348 | let amtAsId = cfg[idxAmAsId] | |
346 | 349 | let prAsId = cfg[idxPrAsId] | |
347 | 350 | let sts = parseIntValue(cfg[idxPoolSt]) | |
348 | 351 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
349 | 352 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
350 | 353 | let accAmtAsBalance = getAccBalance(amtAsId) | |
351 | 354 | let accPrAsBalance = getAccBalance(prAsId) | |
352 | 355 | let curPriceX18 = if ((order.orderType == Buy)) | |
353 | 356 | then privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance) | |
354 | 357 | else privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance) | |
355 | 358 | let curPrice = fromX18(curPriceX18, scale8) | |
356 | 359 | if (if (if (isGlobalShutdown()) | |
357 | 360 | then true | |
358 | 361 | else (sts == PoolMatcherDis)) | |
359 | 362 | then true | |
360 | 363 | else (sts == PoolShutdown)) | |
361 | 364 | then throw("Admin blocked") | |
362 | 365 | else { | |
363 | 366 | let orAmtAsset = order.assetPair.amountAsset | |
364 | 367 | let orAmtAsStr = if ((orAmtAsset == unit)) | |
365 | 368 | then "WAVES" | |
366 | 369 | else toBase58String(value(orAmtAsset)) | |
367 | 370 | let orPrAsset = order.assetPair.priceAsset | |
368 | 371 | let orPrAsStr = if ((orPrAsset == unit)) | |
369 | 372 | then "WAVES" | |
370 | 373 | else toBase58String(value(orPrAsset)) | |
371 | 374 | if (if ((orAmtAsStr != amtAsId)) | |
372 | 375 | then true | |
373 | 376 | else (orPrAsStr != prAsId)) | |
374 | 377 | then throw("Wr assets") | |
375 | 378 | else { | |
376 | 379 | let orderPrice = order.price | |
377 | 380 | let priceDcm = fraction(scale8, prAsDcm, amtAsDcm) | |
378 | 381 | let castOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
379 | 382 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
380 | 383 | then (curPrice >= castOrderPrice) | |
381 | 384 | else (castOrderPrice >= curPrice) | |
382 | 385 | true | |
383 | 386 | } | |
384 | 387 | } | |
385 | 388 | } | |
386 | 389 | ||
387 | 390 | ||
388 | 391 | func commonGet (i) = if ((size(i.payments) != 1)) | |
389 | 392 | then throw("1 pmnt exp") | |
390 | 393 | else { | |
391 | 394 | let pmt = value(i.payments[0]) | |
392 | 395 | let pmtAssetId = value(pmt.assetId) | |
393 | 396 | let pmtAmt = pmt.amount | |
394 | 397 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
395 | 398 | let outAmAmt = res._1 | |
396 | 399 | let outPrAmt = res._2 | |
397 | 400 | let sts = parseIntValue(res._9) | |
398 | 401 | let state = res._10 | |
399 | 402 | if (if (isGlobalShutdown()) | |
400 | 403 | then true | |
401 | 404 | else (sts == PoolShutdown)) | |
402 | 405 | then throw(("Admin blocked: " + toString(sts))) | |
403 | 406 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
404 | 407 | } | |
405 | 408 | ||
406 | 409 | ||
407 | 410 | func commonPut (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
408 | 411 | let r = estimatePutOperation(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, pmtAmt, pmtId) | |
409 | 412 | let sts = parseIntValue(r._8) | |
410 | 413 | if (if (if (isGlobalShutdown()) | |
411 | 414 | then true | |
412 | 415 | else (sts == PoolPutDis)) | |
413 | 416 | then true | |
414 | 417 | else (sts == PoolShutdown)) | |
415 | 418 | then throw(("Blocked:" + toString(sts))) | |
416 | 419 | else r | |
417 | 420 | } | |
418 | 421 | ||
419 | 422 | ||
420 | 423 | @Callable(i) | |
421 | 424 | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
422 | 425 | then throw("denied") | |
423 | 426 | else [StringEntry(keyFactCntr(), factoryContract), StringEntry(keyManPubKey(), managerPublicKey)] | |
424 | 427 | ||
425 | 428 | ||
426 | 429 | ||
427 | 430 | @Callable(i) | |
428 | 431 | func put (slip,autoStake) = { | |
429 | 432 | let factCfg = getFactoryConfig() | |
430 | 433 | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr") | |
431 | 434 | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr") | |
432 | 435 | if ((0 > slip)) | |
433 | 436 | then throw("Wrong slippage") | |
434 | 437 | else if ((size(i.payments) != 2)) | |
435 | 438 | then throw("2 pmnts expd") | |
436 | 439 | else { | |
437 | 440 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], slip, true, false, 0, "") | |
438 | 441 | let emitLpAmt = estPut._2 | |
439 | 442 | let lpAssetId = estPut._7 | |
440 | 443 | let state = estPut._9 | |
441 | 444 | let amDiff = estPut._10 | |
442 | 445 | let prDiff = estPut._11 | |
443 | 446 | let amId = estPut._12 | |
444 | 447 | let prId = estPut._13 | |
445 | 448 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
446 | 449 | if ((emitInv == emitInv)) | |
447 | 450 | then { | |
448 | 451 | let slippageAInv = if ((amDiff > 0)) | |
449 | 452 | then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)]) | |
450 | 453 | else nil | |
451 | 454 | if ((slippageAInv == slippageAInv)) | |
452 | 455 | then { | |
453 | 456 | let slippagePInv = if ((prDiff > 0)) | |
454 | 457 | then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)]) | |
455 | 458 | else nil | |
456 | 459 | if ((slippagePInv == slippagePInv)) | |
457 | 460 | then { | |
458 | 461 | let lpTrnsfr = if (autoStake) | |
459 | 462 | then { | |
460 | 463 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
461 | 464 | if ((slpStakeInv == slpStakeInv)) | |
462 | 465 | then nil | |
463 | 466 | else throw("Strict value is not equal to itself.") | |
464 | 467 | } | |
465 | 468 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
466 | 469 | (state ++ lpTrnsfr) | |
467 | 470 | } | |
468 | 471 | else throw("Strict value is not equal to itself.") | |
469 | 472 | } | |
470 | 473 | else throw("Strict value is not equal to itself.") | |
471 | 474 | } | |
472 | 475 | else throw("Strict value is not equal to itself.") | |
473 | 476 | } | |
474 | 477 | } | |
475 | 478 | ||
476 | 479 | ||
477 | 480 | ||
478 | 481 | @Callable(i) | |
479 | 482 | func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = { | |
480 | 483 | let cfg = getFactoryConfig() | |
481 | 484 | let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr") | |
482 | 485 | let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr") | |
483 | 486 | let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr") | |
484 | 487 | let poolCfg = getPoolConfig() | |
485 | 488 | let amId = poolCfg[idxAmAsId] | |
486 | 489 | let prId = poolCfg[idxPrAsId] | |
487 | 490 | let amDcm = parseIntValue(poolCfg[idxAmtAsDcm]) | |
488 | 491 | let prDcm = parseIntValue(poolCfg[idxPriceAsDcm]) | |
489 | 492 | if (if (if (if ((0 >= slippage)) | |
490 | 493 | then true | |
491 | 494 | else (0 >= amAssetPart)) | |
492 | 495 | then true | |
493 | 496 | else (0 >= prAssetPart)) | |
494 | 497 | then true | |
495 | 498 | else (0 >= outLp)) | |
496 | 499 | then throw("Wrong params") | |
497 | 500 | else if ((size(i.payments) != 1)) | |
498 | 501 | then throw("1 pmnt expd") | |
499 | 502 | else { | |
500 | 503 | let pmt = value(i.payments[0]) | |
501 | 504 | let pmtAssetId = toBase58String(value(pmt.assetId)) | |
502 | 505 | let pmtAmt = pmt.amount | |
503 | 506 | if (if (if ((amAssetPart > pmtAmt)) | |
504 | 507 | then true | |
505 | 508 | else (prAssetPart > pmtAmt)) | |
506 | 509 | then true | |
507 | 510 | else (10000000 > pmtAmt)) | |
508 | 511 | then throw("Wrong pmt amt") | |
509 | 512 | else { | |
510 | 513 | let amBalance = getAccBalance(amId) | |
511 | 514 | let prBalance = getAccBalance(prId) | |
512 | - | let $ | |
515 | + | let $t02394424324 = if ((pmtAssetId == amId)) | |
513 | 516 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
514 | 517 | else if ((pmtAssetId == prId)) | |
515 | 518 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
516 | 519 | else throw("wrong pmtAssetId") | |
517 | - | let amBalanceNow = $ | |
518 | - | let prBalanceNow = $ | |
519 | - | let virtSwapInAm = $ | |
520 | - | let virtSwapOutPr = $ | |
521 | - | let virtSwapInPr = $ | |
522 | - | let virtSwapOutAm = $ | |
520 | + | let amBalanceNow = $t02394424324._1 | |
521 | + | let prBalanceNow = $t02394424324._2 | |
522 | + | let virtSwapInAm = $t02394424324._3 | |
523 | + | let virtSwapOutPr = $t02394424324._4 | |
524 | + | let virtSwapInPr = $t02394424324._5 | |
525 | + | let virtSwapOutAm = $t02394424324._6 | |
523 | 526 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
524 | 527 | let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
525 | 528 | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
526 | 529 | if ((D0vsD1 == D0vsD1)) | |
527 | 530 | then { | |
528 | 531 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId) | |
529 | 532 | let estimLP = estPut._2 | |
530 | 533 | let lpAssetId = estPut._7 | |
531 | 534 | let state = estPut._9 | |
532 | 535 | let amDiff = estPut._10 | |
533 | 536 | let prDiff = estPut._11 | |
534 | 537 | let lpCalcRes = validateAbsDiff(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage)) | |
535 | 538 | let emitLpAmt = toInt(lpCalcRes._2) | |
536 | 539 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
537 | 540 | if ((emitInv == emitInv)) | |
538 | 541 | then { | |
539 | 542 | let slippageAInv = if ((amDiff > 0)) | |
540 | 543 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
541 | 544 | else nil | |
542 | 545 | if ((slippageAInv == slippageAInv)) | |
543 | 546 | then { | |
544 | 547 | let slippagePInv = if ((prDiff > 0)) | |
545 | 548 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
546 | 549 | else nil | |
547 | 550 | if ((slippagePInv == slippagePInv)) | |
548 | 551 | then { | |
549 | 552 | let lpTrnsfr = if (autoStake) | |
550 | 553 | then { | |
551 | 554 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
552 | 555 | if ((slpStakeInv == slpStakeInv)) | |
553 | 556 | then nil | |
554 | 557 | else throw("Strict value is not equal to itself.") | |
555 | 558 | } | |
556 | 559 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
557 | 560 | (state ++ lpTrnsfr) | |
558 | 561 | } | |
559 | 562 | else throw("Strict value is not equal to itself.") | |
560 | 563 | } | |
561 | 564 | else throw("Strict value is not equal to itself.") | |
562 | 565 | } | |
563 | 566 | else throw("Strict value is not equal to itself.") | |
564 | 567 | } | |
565 | 568 | else throw("Strict value is not equal to itself.") | |
566 | 569 | } | |
567 | 570 | } | |
568 | 571 | } | |
569 | 572 | ||
570 | 573 | ||
571 | 574 | ||
572 | 575 | @Callable(i) | |
573 | 576 | func putForFree (maxSlpg) = if ((0 > maxSlpg)) | |
574 | 577 | then throw("Wrong slpg") | |
575 | 578 | else if ((size(i.payments) != 2)) | |
576 | 579 | then throw("2 pmnts expd") | |
577 | 580 | else { | |
578 | 581 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlpg, false, false, 0, "") | |
579 | 582 | estPut._9 | |
580 | 583 | } | |
581 | 584 | ||
582 | 585 | ||
583 | 586 | ||
584 | 587 | @Callable(i) | |
585 | 588 | func get () = { | |
586 | 589 | let res = commonGet(i) | |
587 | 590 | let outAmtAmt = res._1 | |
588 | 591 | let outPrAmt = res._2 | |
589 | 592 | let pmtAmt = res._3 | |
590 | 593 | let pmtAssetId = res._4 | |
591 | 594 | let state = res._5 | |
592 | 595 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
593 | 596 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
594 | 597 | then state | |
595 | 598 | else throw("Strict value is not equal to itself.") | |
596 | 599 | } | |
597 | 600 | ||
598 | 601 | ||
599 | 602 | ||
600 | 603 | @Callable(i) | |
601 | 604 | func getOneTkn (exchResult,notUsed,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
602 | 605 | then throw("1 pmnt expd") | |
603 | 606 | else { | |
604 | 607 | let cfg = getPoolConfig() | |
605 | 608 | let lpId = cfg[idxLPAsId] | |
606 | 609 | let amId = cfg[idxAmAsId] | |
607 | 610 | let prId = cfg[idxPrAsId] | |
608 | 611 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
609 | 612 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
610 | 613 | let sts = cfg[idxPoolSt] | |
611 | 614 | let fcfg = getFactoryConfig() | |
612 | 615 | let gwxCntr = valueOrErrorMessage(addressFromString(fcfg[idxFactGwxRewCntr]), "Wr sl addr") | |
613 | 616 | let pmt = value(i.payments[0]) | |
614 | - | let userAddress = i.caller | |
617 | + | let addon = valueOrElse(getString(this, keyAddonAddr()), "") | |
618 | + | let userAddress = if ((addon == toString(i.caller))) | |
619 | + | then i.originCaller | |
620 | + | else i.caller | |
615 | 621 | let txId58 = toBase58String(i.transactionId) | |
616 | 622 | let pmtAssetId = value(pmt.assetId) | |
617 | 623 | let pmtAmt = pmt.amount | |
618 | 624 | if ((1000000000 > pmtAmt)) | |
619 | - | then throw("Min | |
625 | + | then throw("Min pmt 10 LP") | |
620 | 626 | else if (if (if ((0 > slippage)) | |
621 | 627 | then true | |
622 | 628 | else (0 > exchResult)) | |
623 | 629 | then true | |
624 | 630 | else (0 > outAmount)) | |
625 | 631 | then throw("Wrong params") | |
626 | 632 | else if ((lpId != toBase58String(pmtAssetId))) | |
627 | 633 | then throw("Wrong LP") | |
628 | 634 | else { | |
629 | 635 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
630 | 636 | let estimAmAmt = r._1 | |
631 | 637 | let estimPrAmt = r._2 | |
632 | 638 | let amBalance = getAccBalance(amId) | |
633 | 639 | let prBalance = getAccBalance(prId) | |
634 | - | let $ | |
640 | + | let $t02909129548 = if ((outAssetId == amId)) | |
635 | 641 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult)) | |
636 | 642 | else if ((outAssetId == prId)) | |
637 | 643 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult)) | |
638 | 644 | else throw("wrong outAssetId") | |
639 | - | let amBalanceNow = $ | |
640 | - | let prBalanceNow = $ | |
641 | - | let virtSwapInAm = $ | |
642 | - | let virtSwapOutPr = $ | |
643 | - | let virtSwapInPr = $ | |
644 | - | let virtSwapOutAm = $ | |
645 | - | let totalGet = $ | |
645 | + | let amBalanceNow = $t02909129548._1 | |
646 | + | let prBalanceNow = $t02909129548._2 | |
647 | + | let virtSwapInAm = $t02909129548._3 | |
648 | + | let virtSwapOutPr = $t02909129548._4 | |
649 | + | let virtSwapInPr = $t02909129548._5 | |
650 | + | let virtSwapOutAm = $t02909129548._6 | |
651 | + | let totalGet = $t02909129548._7 | |
646 | 652 | if (if ((0 > virtSwapInAm)) | |
647 | 653 | then true | |
648 | 654 | else (0 > virtSwapInPr)) | |
649 | 655 | then throw("Wrong calc") | |
650 | 656 | else { | |
651 | 657 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
652 | 658 | let D1 = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil) | |
653 | 659 | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
654 | 660 | if ((D0vsD1 == D0vsD1)) | |
655 | 661 | then { | |
656 | - | let | |
657 | - | if (( | |
662 | + | let finalRes = validateAbsDiff(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
663 | + | if ((finalRes == finalRes)) | |
658 | 664 | then { | |
659 | - | let $ | |
660 | - | then $Tuple2(toInt( | |
661 | - | else $Tuple2(0, toInt( | |
662 | - | let outAm = $ | |
663 | - | let outPr = $ | |
664 | - | let | |
665 | - | let | |
665 | + | let $t03028230386 = if ((outAssetId == amId)) | |
666 | + | then $Tuple2(toInt(finalRes._2), 0) | |
667 | + | else $Tuple2(0, toInt(finalRes._2)) | |
668 | + | let outAm = $t03028230386._1 | |
669 | + | let outPr = $t03028230386._2 | |
670 | + | let curPrX18 = calcPriceBigInt(toX18(prBalance, prDcm), toX18(amBalance, amDcm)) | |
671 | + | let curPr = fromX18(curPrX18, scale8) | |
666 | 672 | let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES")) | |
667 | 673 | then unit | |
668 | - | else fromBase58String(outAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, | |
674 | + | else fromBase58String(outAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, curPr, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPr), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPr)] | |
669 | 675 | if ((state == state)) | |
670 | 676 | then { | |
671 | 677 | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
672 | 678 | if ((burn == burn)) | |
673 | 679 | then state | |
674 | 680 | else throw("Strict value is not equal to itself.") | |
675 | 681 | } | |
676 | 682 | else throw("Strict value is not equal to itself.") | |
677 | 683 | } | |
678 | 684 | else throw("Strict value is not equal to itself.") | |
679 | 685 | } | |
680 | 686 | else throw("Strict value is not equal to itself.") | |
681 | 687 | } | |
682 | 688 | } | |
683 | 689 | } | |
684 | 690 | ||
685 | 691 | ||
686 | 692 | ||
687 | 693 | @Callable(i) | |
688 | 694 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
689 | 695 | let res = commonGet(i) | |
690 | 696 | let outAmAmt = res._1 | |
691 | 697 | let outPrAmt = res._2 | |
692 | 698 | let pmtAmt = res._3 | |
693 | 699 | let pmtAssetId = res._4 | |
694 | 700 | let state = res._5 | |
695 | 701 | if ((noLessThenAmtAsset > outAmAmt)) | |
696 | 702 | then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
697 | 703 | else if ((noLessThenPriceAsset > outPrAmt)) | |
698 | 704 | then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
699 | 705 | else { | |
700 | 706 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
701 | 707 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
702 | 708 | then state | |
703 | 709 | else throw("Strict value is not equal to itself.") | |
704 | 710 | } | |
705 | 711 | } | |
706 | 712 | ||
707 | 713 | ||
708 | 714 | ||
709 | 715 | @Callable(i) | |
710 | 716 | func unstakeAndGet (amount) = { | |
711 | 717 | let checkPayments = if ((size(i.payments) != 0)) | |
712 | 718 | then throw("No pmnts expd") | |
713 | 719 | else true | |
714 | 720 | if ((checkPayments == checkPayments)) | |
715 | 721 | then { | |
716 | 722 | let cfg = getPoolConfig() | |
717 | 723 | let factoryCfg = getFactoryConfig() | |
718 | 724 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
719 | 725 | let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr") | |
720 | 726 | let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil) | |
721 | 727 | if ((unstakeInv == unstakeInv)) | |
722 | 728 | then { | |
723 | 729 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
724 | 730 | let sts = parseIntValue(r._9) | |
725 | 731 | let state = r._10 | |
726 | 732 | let v = if (if (isGlobalShutdown()) | |
727 | 733 | then true | |
728 | 734 | else (sts == PoolShutdown)) | |
729 | 735 | then throw(("Blocked: " + toString(sts))) | |
730 | 736 | else true | |
731 | 737 | if ((v == v)) | |
732 | 738 | then { | |
733 | - | let | |
734 | - | if (( | |
739 | + | let burnA = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
740 | + | if ((burnA == burnA)) | |
735 | 741 | then state | |
736 | 742 | else throw("Strict value is not equal to itself.") | |
737 | 743 | } | |
738 | 744 | else throw("Strict value is not equal to itself.") | |
739 | 745 | } | |
740 | 746 | else throw("Strict value is not equal to itself.") | |
741 | 747 | } | |
742 | 748 | else throw("Strict value is not equal to itself.") | |
743 | 749 | } | |
744 | 750 | ||
745 | 751 | ||
746 | 752 | ||
747 | 753 | @Callable(i) | |
748 | - | func activate ( | |
754 | + | func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(factoryContract))) | |
749 | 755 | then throw("denied") | |
750 | - | else $Tuple2([StringEntry(keyAmtAsset(), | |
756 | + | else $Tuple2([StringEntry(keyAmtAsset(), amtAsStr), StringEntry(keyPriceAsset(), prAsStr)], "success") | |
751 | 757 | ||
752 | 758 | ||
753 | 759 | ||
754 | 760 | @Callable(i) | |
755 | 761 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
756 | 762 | ||
757 | 763 | ||
758 | 764 | ||
759 | 765 | @Callable(i) | |
760 | 766 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
761 | 767 | ||
762 | 768 | ||
763 | 769 | ||
764 | 770 | @Callable(i) | |
765 | 771 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
766 | - | let | |
767 | - | $Tuple2(nil, [toString( | |
772 | + | let pr = calcPrices(amAmt, prAmt, lpAmt) | |
773 | + | $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])]) | |
768 | 774 | } | |
769 | 775 | ||
770 | 776 | ||
771 | 777 | ||
772 | 778 | @Callable(i) | |
773 | - | func fromX18WrapperREADONLY (val, | |
779 | + | func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resScaleMult)) | |
774 | 780 | ||
775 | 781 | ||
776 | 782 | ||
777 | 783 | @Callable(i) | |
778 | 784 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
779 | 785 | ||
780 | 786 | ||
781 | 787 | ||
782 | 788 | @Callable(i) | |
783 | 789 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
784 | 790 | ||
785 | 791 | ||
786 | 792 | ||
787 | 793 | @Callable(i) | |
788 | 794 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,usrAddr,isEval,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, usrAddr, isEval, emitLp, false, 0, "")) | |
789 | 795 | ||
790 | 796 | ||
791 | 797 | ||
792 | 798 | @Callable(i) | |
793 | 799 | func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = { | |
794 | 800 | let res = estimateGetOperation(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr)) | |
795 | 801 | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
796 | 802 | } | |
797 | 803 | ||
798 | 804 | ||
799 | 805 | @Verifier(tx) | |
800 | 806 | func verify () = match tx { | |
801 | 807 | case order: Order => | |
802 | 808 | let mtchPub = getMatcherPubOrFail() | |
803 | 809 | let orV = validateMatcherOrderAllowed(order) | |
804 | 810 | let sndrV = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
805 | 811 | let mtchV = sigVerify(order.bodyBytes, order.proofs[1], mtchPub) | |
806 | 812 | if (if (if (orV) | |
807 | 813 | then sndrV | |
808 | 814 | else false) | |
809 | 815 | then mtchV | |
810 | 816 | else false) | |
811 | 817 | then true | |
812 | 818 | else throwOrderError(orV, sndrV, mtchV) | |
813 | 819 | case _ => | |
814 | 820 | let admin = valueOrElse(getString(this, keyManPubKey()), EMPTY) | |
815 | 821 | if ((admin == EMPTY)) | |
816 | 822 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
817 | 823 | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(admin)) | |
818 | 824 | } | |
819 | 825 |
github/deemru/w8io/026f985 101.55 ms ◑