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