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