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