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