tx · DNnHXmWVeTrnGGhiD5fRBQNnTCmr1Jh8jmZJBe9pV72g 3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2: -0.03100000 Waves 2022.11.28 12:05 [2336749] smart account 3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2 > SELF 0.00000000 Waves
{ "type": 13, "id": "DNnHXmWVeTrnGGhiD5fRBQNnTCmr1Jh8jmZJBe9pV72g", "fee": 3100000, "feeAssetId": null, "timestamp": 1669626077665, "version": 1, "sender": "3NCX3qr5ABsbWQhQR8CV3vCvHQa2xANk2f2", "senderPublicKey": "9LajxyiDMFaW5Xgcye62gHbqchgWLEYTebgbfnZFdtTu", "proofs": [ "31vabhj5py8KQnRVW22BK6HJDYTtTDcQFYNNnx1c8ZoUsWHFK6MJTT6ESNYRP22Ey6nepNbctGPHyZXAVijBotaD" ], "script": "base64:BgLIKQgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQ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hPQIFAmdkBQJnYgcGCQD0AwMIBQJmWAlib2R5Qnl0ZXMJAJEDAggFAmZYBnByb29mcwAABQJmWgkA9AMDCAUCZlgJYm9keUJ5dGVzCQCRAwIIBQJmWAZwcm9vZnMAAAUCZlrYqHJa", "chainId": 84, "height": 2336749, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GmNTK2KiUT9ZpM1i9Dw445wmBxVohkVYQmdR75kHNgvJ Next: EFHxTY1ZVD2kL947LjCAJ9WHUd5WFuv6bBEP1bhAGHMA Diff:
Old | New | Differences | |
---|---|---|---|
594 | 594 | } | |
595 | 595 | ||
596 | 596 | ||
597 | - | func eA (eB,eC,cb) = { | |
598 | - | let eD = (pow((eB * eC), 0, 5, 1, 0, DOWN) / cb) | |
599 | - | eD | |
600 | - | } | |
597 | + | func eA (eB,eC,cb) = fraction(eB, eC, cb) | |
601 | 598 | ||
602 | 599 | ||
603 | - | func | |
604 | - | let | |
605 | - | let | |
600 | + | func eD () = { | |
601 | + | let eE = bw(aS(ba)) | |
602 | + | let eF = bw(aS(bb)) | |
606 | 603 | let cb = value(assetInfo(aZ)).quantity | |
607 | - | let | |
608 | - | | |
604 | + | let eG = eA(eE, eF, cb) | |
605 | + | eG | |
609 | 606 | } | |
610 | 607 | ||
611 | 608 | ||
1093 | 1090 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1094 | 1091 | if ((fK == fK)) | |
1095 | 1092 | then { | |
1096 | - | let | |
1097 | - | [IntegerEntry(ag, height), IntegerEntry(af, | |
1093 | + | let eG = eD() | |
1094 | + | [IntegerEntry(ag, height), IntegerEntry(af, eG)] | |
1098 | 1095 | } | |
1099 | 1096 | else throw("Strict value is not equal to itself.") | |
1100 | 1097 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(2) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (H,I) = toInt(fraction(H, toBigInt(I), d)) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func J (K,L,M) = fraction(K, L, M) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func N (H) = if ((0 > H)) | |
72 | 72 | then -(H) | |
73 | 73 | else H | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func O (H) = if ((e > H)) | |
77 | 77 | then -(H) | |
78 | 78 | else H | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func P () = "%s__factoryContract" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func Q () = "%s__managerPublicKey" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func R () = "%s__pendingManagerPublicKey" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func S () = "%s%s__price__last" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func T (U,V) = makeString(["%s%s%d%d__price__history", toString(U), toString(V)], j) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func W (X,Y) = ((("%s%s%s__P__" + X) + "__") + Y) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func Z (X,Y) = ((("%s%s%s__G__" + X) + "__") + Y) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func aa () = "%s__amountAsset" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func ab () = "%s__priceAsset" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let ac = "%s__fee" | |
109 | 109 | ||
110 | 110 | let ad = fraction(10, b, 10000) | |
111 | 111 | ||
112 | 112 | let ae = valueOrElse(getInteger(this, ac), ad) | |
113 | 113 | ||
114 | 114 | let af = makeString(["%s", "kLp"], j) | |
115 | 115 | ||
116 | 116 | let ag = makeString(["%s", "kLpRefreshedHeight"], j) | |
117 | 117 | ||
118 | 118 | let ah = makeString(["%s", "refreshKLpDelay"], j) | |
119 | 119 | ||
120 | 120 | let ai = 30 | |
121 | 121 | ||
122 | 122 | let aj = valueOrElse(getInteger(this, ah), ai) | |
123 | 123 | ||
124 | 124 | func ak () = "%s__factoryConfig" | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func al () = "%s%s__matcher__publicKey" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func am (an) = (("%s%s%s__" + an) + "__mappings__poolContract2LpAsset") | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ao (ap,aq) = (((("%d%d%s__" + ap) + "__") + aq) + "__config") | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ar (as) = ("%s%s%s__mappings__baseAsset2internalId__" + as) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func at () = "%s__shutdown" | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func au (av) = ("%s%s__poolWeight__" + av) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func aw () = "%s__allowedLpScriptHash" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | let ax = "%s__feeCollectorAddress" | |
149 | 149 | ||
150 | 150 | func ay (az,aA,aB) = throw(((((("order validation failed: orderValid=" + toString(az)) + " senderValid=") + toString(aA)) + " matcherValid=") + toString(aB))) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aC (aD,aE) = valueOrErrorMessage(getString(aD, aE), makeString(["mandatory ", toString(aD), ".", aE, " is not defined"], "")) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func aF (aD,aE) = valueOrErrorMessage(getInteger(aD, aE), makeString(["mandatory ", toString(aD), ".", aE, " is not defined"], "")) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func aG (aH) = throw(makeString(["lp.ride:", aH], " ")) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func aI (aH) = makeString(["lp.ride:", aH], " ") | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | let aJ = addressFromStringValue(aC(this, P())) | |
166 | 166 | ||
167 | 167 | let aK = addressFromStringValue(aC(aJ, ax)) | |
168 | 168 | ||
169 | 169 | func aL () = valueOrElse(getBoolean(aJ, at()), false) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aM () = fromBase58String(aC(aJ, al())) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aN () = { | |
176 | 176 | let aO = aC(this, aa()) | |
177 | 177 | let aP = aC(this, ab()) | |
178 | 178 | let aq = aF(aJ, ar(aP)) | |
179 | 179 | let ap = aF(aJ, ar(aO)) | |
180 | 180 | split(aC(aJ, ao(toString(ap), toString(aq))), j) | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func aQ (aR) = if ((aR == i)) | |
185 | 185 | then unit | |
186 | 186 | else fromBase58String(aR) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func aS (aR) = if ((aR == unit)) | |
190 | 190 | then i | |
191 | 191 | else toBase58String(value(aR)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func aT (aU) = $Tuple7(addressFromStringValue(aU[o]), parseIntValue(aU[p]), fromBase58String(aU[q]), aQ(aU[r]), aQ(aU[s]), parseIntValue(aU[t]), parseIntValue(aU[u])) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | let aV = aT(aN()) | |
198 | 198 | ||
199 | 199 | let aW = aV | |
200 | 200 | ||
201 | 201 | let aX = aW._1 | |
202 | 202 | ||
203 | 203 | let aY = aW._2 | |
204 | 204 | ||
205 | 205 | let aZ = aW._3 | |
206 | 206 | ||
207 | 207 | let ba = aW._4 | |
208 | 208 | ||
209 | 209 | let bb = aW._5 | |
210 | 210 | ||
211 | 211 | let bc = aW._6 | |
212 | 212 | ||
213 | 213 | let bd = aW._7 | |
214 | 214 | ||
215 | 215 | func be () = split(aC(aJ, ak()), j) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | let bf = valueOrErrorMessage(addressFromString(be()[B]), "incorrect staking address") | |
219 | 219 | ||
220 | 220 | let bg = valueOrErrorMessage(addressFromString(be()[C]), "incorrect staking address") | |
221 | 221 | ||
222 | 222 | func bh (bi,bj,bk,bl,bm,bn,bo,bp,bq,br) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bi), toString(bj), toString(bk), toString(bl), toString(bm), toString(bn), toString(bo), toString(bp), toString(bq), toString(br)], j) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func bs (bt,bu,bv,bl,bo,bp) = makeString(["%d%d%d%d%d%d", toString(bt), toString(bu), toString(bv), toString(bl), toString(bo), toString(bp)], j) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func bw (bx) = if ((bx == "WAVES")) | |
229 | 229 | then wavesBalance(this).available | |
230 | 230 | else assetBalance(this, fromBase58String(bx)) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func by (bz,bA) = fraction(bz, d, bA) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func bB (bC,bD,bE,bF) = { | |
237 | 237 | let bG = D(bE, bC) | |
238 | 238 | let bH = D(bF, bD) | |
239 | 239 | by(bH, bG) | |
240 | 240 | } | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func bI (bE,bF,bJ) = { | |
244 | 244 | let bK = aN() | |
245 | 245 | let bL = parseIntValue(bK[t]) | |
246 | 246 | let bM = parseIntValue(bK[u]) | |
247 | 247 | let bN = bB(bL, bM, bE, bF) | |
248 | 248 | let bA = D(bE, bL) | |
249 | 249 | let bz = D(bF, bM) | |
250 | 250 | let bO = D(bJ, b) | |
251 | 251 | let bP = by(bA, bO) | |
252 | 252 | let bQ = by(bz, bO) | |
253 | 253 | [bN, bP, bQ] | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func bR (bE,bF,bJ) = { | |
258 | 258 | let bS = bI(bE, bF, bJ) | |
259 | 259 | [G(bS[0], b), G(bS[1], b), G(bS[2], b)] | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bT (bU,bV,bW,X) = { | |
264 | 264 | let bK = aN() | |
265 | 265 | let bX = bK[q] | |
266 | 266 | let bY = bK[r] | |
267 | 267 | let bZ = bK[s] | |
268 | 268 | let bC = parseIntValue(bK[t]) | |
269 | 269 | let bD = parseIntValue(bK[u]) | |
270 | 270 | let ca = bK[p] | |
271 | 271 | let cb = valueOrErrorMessage(assetInfo(fromBase58String(bX)), (("Asset " + bX) + " doesn't exist")).quantity | |
272 | 272 | if ((bX != bV)) | |
273 | 273 | then throw("Invalid asset passed.") | |
274 | 274 | else { | |
275 | 275 | let cc = bw(bY) | |
276 | 276 | let cd = D(cc, bC) | |
277 | 277 | let ce = bw(bZ) | |
278 | 278 | let cf = D(ce, bD) | |
279 | 279 | let cg = by(cf, cd) | |
280 | 280 | let ch = G(cg, b) | |
281 | 281 | let ci = D(bW, b) | |
282 | 282 | let cj = D(cb, b) | |
283 | 283 | let ck = fraction(cd, ci, cj) | |
284 | 284 | let cl = fraction(cf, ci, cj) | |
285 | 285 | let cm = G(ck, bC) | |
286 | 286 | let cn = G(cl, bD) | |
287 | 287 | let co = if ((bU == "")) | |
288 | 288 | then nil | |
289 | 289 | else [ScriptTransfer(X, cm, if ((bY == "WAVES")) | |
290 | 290 | then unit | |
291 | 291 | else fromBase58String(bY)), ScriptTransfer(X, cn, if ((bZ == "WAVES")) | |
292 | 292 | then unit | |
293 | 293 | else fromBase58String(bZ)), StringEntry(Z(toString(X), bU), bs(cm, cn, bW, ch, height, lastBlock.timestamp)), IntegerEntry(S(), ch), IntegerEntry(T(height, lastBlock.timestamp), ch)] | |
294 | 294 | $Tuple10(cm, cn, bY, bZ, cc, ce, cb, cg, ca, co) | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func cp (bU,cq,cr,cs,ct,cu,X,cv,cw) = { | |
300 | 300 | let bK = aN() | |
301 | 301 | let bX = fromBase58String(bK[q]) | |
302 | 302 | let cx = bK[r] | |
303 | 303 | let cy = bK[s] | |
304 | 304 | let cz = bK[v] | |
305 | 305 | let cA = bK[w] | |
306 | 306 | let bL = parseIntValue(bK[t]) | |
307 | 307 | let bM = parseIntValue(bK[u]) | |
308 | 308 | let ca = bK[p] | |
309 | 309 | let cb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
310 | 310 | let cB = toBase58String(valueOrElse(cs, fromBase58String("WAVES"))) | |
311 | 311 | let cC = toBase58String(valueOrElse(cu, fromBase58String("WAVES"))) | |
312 | 312 | if (if ((cx != cB)) | |
313 | 313 | then true | |
314 | 314 | else (cy != cC)) | |
315 | 315 | then throw("Invalid amt or price asset passed.") | |
316 | 316 | else { | |
317 | 317 | let cc = if (cv) | |
318 | 318 | then bw(cx) | |
319 | 319 | else (bw(cx) - cr) | |
320 | 320 | let ce = if (cv) | |
321 | 321 | then bw(cy) | |
322 | 322 | else (bw(cy) - ct) | |
323 | 323 | let cD = D(cr, bL) | |
324 | 324 | let cE = D(ct, bM) | |
325 | 325 | let cF = by(cE, cD) | |
326 | 326 | let cd = D(cc, bL) | |
327 | 327 | let cf = D(ce, bM) | |
328 | 328 | let cG = if ((cb == 0)) | |
329 | 329 | then { | |
330 | 330 | let cg = e | |
331 | 331 | let cH = e | |
332 | 332 | let bO = pow((cD * cE), 0, toBigInt(5), 1, 0, DOWN) | |
333 | 333 | $Tuple5(G(bO, b), G(cD, bL), G(cE, bM), by((cf + cE), (cd + cD)), cH) | |
334 | 334 | } | |
335 | 335 | else { | |
336 | 336 | let cg = by(cf, cd) | |
337 | 337 | let cH = fraction(O((cg - cF)), d, cg) | |
338 | 338 | let cI = D(cq, b) | |
339 | 339 | if (if ((cg != e)) | |
340 | 340 | then (cH > cI) | |
341 | 341 | else false) | |
342 | 342 | then throw(((("Price slippage " + toString(cH)) + " exceeded the passed limit of ") + toString(cI))) | |
343 | 343 | else { | |
344 | 344 | let cj = D(cb, b) | |
345 | 345 | let cJ = fraction(cD, cg, d) | |
346 | 346 | let cK = fraction(cE, d, cg) | |
347 | 347 | let cL = if ((cJ > cE)) | |
348 | 348 | then $Tuple2(cK, cE) | |
349 | 349 | else $Tuple2(cD, cJ) | |
350 | 350 | let cM = cL._1 | |
351 | 351 | let cN = cL._2 | |
352 | 352 | let bO = fraction(cj, cN, cf) | |
353 | 353 | $Tuple5(G(bO, b), G(cM, bL), G(cN, bM), cg, cH) | |
354 | 354 | } | |
355 | 355 | } | |
356 | 356 | let cO = cG._1 | |
357 | 357 | let cP = cG._2 | |
358 | 358 | let cQ = cG._3 | |
359 | 359 | let ch = G(cG._4, b) | |
360 | 360 | let cR = G(cG._5, b) | |
361 | 361 | if ((0 >= cO)) | |
362 | 362 | then throw("Invalid calculations. LP calculated is less than zero.") | |
363 | 363 | else { | |
364 | 364 | let cS = if (!(cw)) | |
365 | 365 | then 0 | |
366 | 366 | else cO | |
367 | 367 | let cT = (cr - cP) | |
368 | 368 | let cU = (ct - cQ) | |
369 | 369 | let cV = [IntegerEntry(S(), ch), IntegerEntry(T(height, lastBlock.timestamp), ch), StringEntry(W(X, bU), bh(cP, cQ, cS, ch, cq, cR, height, lastBlock.timestamp, cT, cU))] | |
370 | 370 | $Tuple13(cO, cS, ch, cc, ce, cb, bX, ca, cV, cT, cU, cs, cu) | |
371 | 371 | } | |
372 | 372 | } | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func cW (cX) = { | |
377 | 377 | let bK = aN() | |
378 | 378 | let cY = bK[r] | |
379 | 379 | let cZ = bK[s] | |
380 | 380 | let ca = parseIntValue(bK[p]) | |
381 | 381 | let bL = parseIntValue(bK[t]) | |
382 | 382 | let bM = parseIntValue(bK[u]) | |
383 | 383 | let da = bw(cY) | |
384 | 384 | let db = bw(cZ) | |
385 | 385 | let cg = if ((cX.orderType == Buy)) | |
386 | 386 | then bB(bL, bM, (da + cX.amount), db) | |
387 | 387 | else bB(bL, bM, (da - cX.amount), db) | |
388 | 388 | let ch = G(cg, b) | |
389 | 389 | if (if (if (aL()) | |
390 | 390 | then true | |
391 | 391 | else (ca == m)) | |
392 | 392 | then true | |
393 | 393 | else (ca == n)) | |
394 | 394 | then throw("Exchange operations disabled") | |
395 | 395 | else { | |
396 | 396 | let dc = cX.assetPair.amountAsset | |
397 | 397 | let dd = if ((dc == unit)) | |
398 | 398 | then "WAVES" | |
399 | 399 | else toBase58String(value(dc)) | |
400 | 400 | let de = cX.assetPair.priceAsset | |
401 | 401 | let df = if ((de == unit)) | |
402 | 402 | then "WAVES" | |
403 | 403 | else toBase58String(value(de)) | |
404 | 404 | if (if ((dd != cY)) | |
405 | 405 | then true | |
406 | 406 | else (df != cZ)) | |
407 | 407 | then throw("Wrong order assets.") | |
408 | 408 | else { | |
409 | 409 | let dg = cX.price | |
410 | 410 | let dh = fraction(b, bM, bL) | |
411 | 411 | let di = J(dg, b, dh) | |
412 | 412 | let dj = if ((cX.orderType == Buy)) | |
413 | 413 | then (ch >= di) | |
414 | 414 | else (di >= ch) | |
415 | 415 | true | |
416 | 416 | } | |
417 | 417 | } | |
418 | 418 | } | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | func dk (dl) = if ((size(dl.payments) != 1)) | |
422 | 422 | then throw("exactly 1 payment is expected") | |
423 | 423 | else { | |
424 | 424 | let dm = value(dl.payments[0]) | |
425 | 425 | let bV = value(dm.assetId) | |
426 | 426 | let dn = dm.amount | |
427 | 427 | let cG = bT(toBase58String(dl.transactionId), toBase58String(bV), dn, dl.caller) | |
428 | 428 | let cm = cG._1 | |
429 | 429 | let cn = cG._2 | |
430 | 430 | let ca = parseIntValue(cG._9) | |
431 | 431 | let co = cG._10 | |
432 | 432 | if (if (aL()) | |
433 | 433 | then true | |
434 | 434 | else (ca == n)) | |
435 | 435 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
436 | 436 | else $Tuple5(cm, cn, dn, bV, co) | |
437 | 437 | } | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | func do (dl,cq,cw) = if ((size(dl.payments) != 2)) | |
441 | 441 | then throw("exactly 2 payments are expected") | |
442 | 442 | else { | |
443 | 443 | let dp = value(dl.payments[0]) | |
444 | 444 | let dq = value(dl.payments[1]) | |
445 | 445 | let dr = cp(toBase58String(dl.transactionId), cq, dp.amount, dp.assetId, dq.amount, dq.assetId, toString(dl.caller), false, cw) | |
446 | 446 | let ca = parseIntValue(dr._8) | |
447 | 447 | if (if (if (aL()) | |
448 | 448 | then true | |
449 | 449 | else (ca == l)) | |
450 | 450 | then true | |
451 | 451 | else (ca == n)) | |
452 | 452 | then throw(("Put operation is blocked by admin. Status = " + toString(ca))) | |
453 | 453 | else dr | |
454 | 454 | } | |
455 | 455 | ||
456 | 456 | ||
457 | 457 | func ds (dt) = { | |
458 | 458 | let du = invoke(aJ, "emit", [dt], nil) | |
459 | 459 | if ((du == du)) | |
460 | 460 | then { | |
461 | 461 | let dv = { | |
462 | 462 | let dw = du | |
463 | 463 | if ($isInstanceOf(dw, "Address")) | |
464 | 464 | then { | |
465 | 465 | let dx = dw | |
466 | 466 | invoke(dx, "emit", [dt], nil) | |
467 | 467 | } | |
468 | 468 | else unit | |
469 | 469 | } | |
470 | 470 | if ((dv == dv)) | |
471 | 471 | then dt | |
472 | 472 | else throw("Strict value is not equal to itself.") | |
473 | 473 | } | |
474 | 474 | else throw("Strict value is not equal to itself.") | |
475 | 475 | } | |
476 | 476 | ||
477 | 477 | ||
478 | 478 | func dy (dt) = { | |
479 | 479 | let dz = fraction(dt, ae, b) | |
480 | 480 | $Tuple2((dt - dz), dz) | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | func dA (dB,dC,X,Y) = { | |
485 | 485 | let dD = (Y == unit) | |
486 | 486 | let dE = bw(aS(ba)) | |
487 | 487 | let dF = bw(aS(bb)) | |
488 | 488 | let dG = if ((dC == ba)) | |
489 | 489 | then true | |
490 | 490 | else if ((dC == bb)) | |
491 | 491 | then false | |
492 | 492 | else aG("invalid asset") | |
493 | 493 | let dH = if (dD) | |
494 | 494 | then $Tuple2(dE, dF) | |
495 | 495 | else if (dG) | |
496 | 496 | then $Tuple2((dE - dB), dF) | |
497 | 497 | else $Tuple2(dE, (dF - dB)) | |
498 | 498 | let dI = dH._1 | |
499 | 499 | let dJ = dH._2 | |
500 | 500 | let dK = if (dG) | |
501 | 501 | then $Tuple2(dB, 0) | |
502 | 502 | else $Tuple2(0, dB) | |
503 | 503 | let dL = dK._1 | |
504 | 504 | let dM = dK._2 | |
505 | 505 | let dN = dy(dL)._1 | |
506 | 506 | let dO = dy(dM)._1 | |
507 | 507 | let dP = dy(dB) | |
508 | 508 | let dQ = dP._1 | |
509 | 509 | let dz = dP._2 | |
510 | 510 | let dR = (dI + dN) | |
511 | 511 | let dS = (dJ + dO) | |
512 | 512 | let dT = by(D(dS, bd), D(dR, bc)) | |
513 | 513 | let dU = G(dT, b) | |
514 | 514 | let dV = if (dG) | |
515 | 515 | then dI | |
516 | 516 | else dJ | |
517 | 517 | let dW = toBigInt(dV) | |
518 | 518 | let dX = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
519 | 519 | let dY = if ((dX > f)) | |
520 | 520 | then true | |
521 | 521 | else aG("initial deposit requires all coins") | |
522 | 522 | if ((dY == dY)) | |
523 | 523 | then { | |
524 | 524 | let dZ = toBigInt(dQ) | |
525 | 525 | let ea = max([0, toInt(((dX * (sqrtBigInt((d + ((dZ * d) / dW)), 18, 18, DOWN) - d)) / d))]) | |
526 | 526 | let cV = if (dD) | |
527 | 527 | then nil | |
528 | 528 | else [IntegerEntry(S(), dU), IntegerEntry(T(height, lastBlock.timestamp), dU), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dL, dM, ea, dU, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
529 | 529 | let eb = by(D(dJ, bd), D(dI, bc)) | |
530 | 530 | let ec = G(eb, b) | |
531 | 531 | let ed = { | |
532 | 532 | let ee = if (dG) | |
533 | 533 | then $Tuple2(dL, dI) | |
534 | 534 | else $Tuple2(dM, dJ) | |
535 | 535 | let dt = ee._1 | |
536 | 536 | let ef = ee._2 | |
537 | 537 | let eg = toInt(fraction(dX, toBigInt((dt / 2)), toBigInt(ef))) | |
538 | 538 | fraction((ea - eg), b, eg) | |
539 | 539 | } | |
540 | 540 | $Tuple4(ea, cV, dz, ed) | |
541 | 541 | } | |
542 | 542 | else throw("Strict value is not equal to itself.") | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | func eh (ei,dQ,dC,X,Y) = { | |
547 | 547 | let dD = (Y == unit) | |
548 | 548 | let ej = [if ((dC == aZ)) | |
549 | 549 | then true | |
550 | 550 | else aG("invalid lp asset")] | |
551 | 551 | if ((ej == ej)) | |
552 | 552 | then { | |
553 | 553 | let ek = if ((ei == ba)) | |
554 | 554 | then true | |
555 | 555 | else if ((ei == bb)) | |
556 | 556 | then false | |
557 | 557 | else aG("invalid asset") | |
558 | 558 | let el = if (ek) | |
559 | 559 | then toBigInt(bw(aS(ba))) | |
560 | 560 | else toBigInt(bw(aS(bb))) | |
561 | 561 | let em = bw(aS(ba)) | |
562 | 562 | let en = bw(aS(bb)) | |
563 | 563 | let eo = if (ek) | |
564 | 564 | then em | |
565 | 565 | else en | |
566 | 566 | let ep = toBigInt(eo) | |
567 | 567 | let dX = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
568 | 568 | let eq = toBigInt(dQ) | |
569 | 569 | let er = max([0, toInt(((el * (d - pow((d - ((eq * d) / dX)), 18, h, 0, 18, DOWN))) / d))]) | |
570 | 570 | let es = dy(er) | |
571 | 571 | let et = es._1 | |
572 | 572 | let dz = es._2 | |
573 | 573 | let eu = if (ek) | |
574 | 574 | then $Tuple4(et, 0, (em - er), en) | |
575 | 575 | else $Tuple4(0, et, em, (en - er)) | |
576 | 576 | let ev = eu._1 | |
577 | 577 | let ew = eu._2 | |
578 | 578 | let ex = eu._3 | |
579 | 579 | let ey = eu._4 | |
580 | 580 | let dT = by(D(ey, bd), D(ex, bc)) | |
581 | 581 | let dU = G(dT, b) | |
582 | 582 | let cV = if (dD) | |
583 | 583 | then nil | |
584 | 584 | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(ev, ew, dQ, dU, height, lastBlock.timestamp)), IntegerEntry(S(), dU), IntegerEntry(T(height, lastBlock.timestamp), dU)] | |
585 | 585 | let eb = by(D(en, bd), D(em, bc)) | |
586 | 586 | let ec = G(eb, b) | |
587 | 587 | let ed = { | |
588 | 588 | let ez = (toInt(fraction(el, eq, dX)) * 2) | |
589 | 589 | fraction((et - ez), b, ez) | |
590 | 590 | } | |
591 | 591 | $Tuple4(et, cV, dz, ed) | |
592 | 592 | } | |
593 | 593 | else throw("Strict value is not equal to itself.") | |
594 | 594 | } | |
595 | 595 | ||
596 | 596 | ||
597 | - | func eA (eB,eC,cb) = { | |
598 | - | let eD = (pow((eB * eC), 0, 5, 1, 0, DOWN) / cb) | |
599 | - | eD | |
600 | - | } | |
597 | + | func eA (eB,eC,cb) = fraction(eB, eC, cb) | |
601 | 598 | ||
602 | 599 | ||
603 | - | func | |
604 | - | let | |
605 | - | let | |
600 | + | func eD () = { | |
601 | + | let eE = bw(aS(ba)) | |
602 | + | let eF = bw(aS(bb)) | |
606 | 603 | let cb = value(assetInfo(aZ)).quantity | |
607 | - | let | |
608 | - | | |
604 | + | let eG = eA(eE, eF, cb) | |
605 | + | eG | |
609 | 606 | } | |
610 | 607 | ||
611 | 608 | ||
612 | 609 | func eH () = { | |
613 | 610 | let dw = getString(Q()) | |
614 | 611 | if ($isInstanceOf(dw, "String")) | |
615 | 612 | then { | |
616 | 613 | let eI = dw | |
617 | 614 | fromBase58String(eI) | |
618 | 615 | } | |
619 | 616 | else if ($isInstanceOf(dw, "Unit")) | |
620 | 617 | then unit | |
621 | 618 | else throw("Match error") | |
622 | 619 | } | |
623 | 620 | ||
624 | 621 | ||
625 | 622 | func eJ () = { | |
626 | 623 | let dw = getString(R()) | |
627 | 624 | if ($isInstanceOf(dw, "String")) | |
628 | 625 | then { | |
629 | 626 | let eI = dw | |
630 | 627 | fromBase58String(eI) | |
631 | 628 | } | |
632 | 629 | else if ($isInstanceOf(dw, "Unit")) | |
633 | 630 | then unit | |
634 | 631 | else throw("Match error") | |
635 | 632 | } | |
636 | 633 | ||
637 | 634 | ||
638 | 635 | func eK (dl) = { | |
639 | 636 | let dw = eH() | |
640 | 637 | if ($isInstanceOf(dw, "ByteVector")) | |
641 | 638 | then { | |
642 | 639 | let eL = dw | |
643 | 640 | (dl.callerPublicKey == eL) | |
644 | 641 | } | |
645 | 642 | else if ($isInstanceOf(dw, "Unit")) | |
646 | 643 | then (dl.caller == this) | |
647 | 644 | else throw("Match error") | |
648 | 645 | } | |
649 | 646 | ||
650 | 647 | ||
651 | 648 | func eM (dl) = { | |
652 | 649 | let eN = throw("Permission denied") | |
653 | 650 | let dw = eH() | |
654 | 651 | if ($isInstanceOf(dw, "ByteVector")) | |
655 | 652 | then { | |
656 | 653 | let eL = dw | |
657 | 654 | if ((dl.callerPublicKey == eL)) | |
658 | 655 | then true | |
659 | 656 | else eN | |
660 | 657 | } | |
661 | 658 | else if ($isInstanceOf(dw, "Unit")) | |
662 | 659 | then if ((dl.caller == this)) | |
663 | 660 | then true | |
664 | 661 | else eN | |
665 | 662 | else throw("Match error") | |
666 | 663 | } | |
667 | 664 | ||
668 | 665 | ||
669 | 666 | @Callable(dl) | |
670 | 667 | func setManager (eO) = { | |
671 | 668 | let eP = eM(dl) | |
672 | 669 | if ((eP == eP)) | |
673 | 670 | then { | |
674 | 671 | let eQ = fromBase58String(eO) | |
675 | 672 | if ((eQ == eQ)) | |
676 | 673 | then [StringEntry(R(), eO)] | |
677 | 674 | else throw("Strict value is not equal to itself.") | |
678 | 675 | } | |
679 | 676 | else throw("Strict value is not equal to itself.") | |
680 | 677 | } | |
681 | 678 | ||
682 | 679 | ||
683 | 680 | ||
684 | 681 | @Callable(dl) | |
685 | 682 | func confirmManager () = { | |
686 | 683 | let eR = eJ() | |
687 | 684 | let eS = if (isDefined(eR)) | |
688 | 685 | then true | |
689 | 686 | else throw("No pending manager") | |
690 | 687 | if ((eS == eS)) | |
691 | 688 | then { | |
692 | 689 | let eT = if ((dl.callerPublicKey == value(eR))) | |
693 | 690 | then true | |
694 | 691 | else throw("You are not pending manager") | |
695 | 692 | if ((eT == eT)) | |
696 | 693 | then [StringEntry(Q(), toBase58String(value(eR))), DeleteEntry(R())] | |
697 | 694 | else throw("Strict value is not equal to itself.") | |
698 | 695 | } | |
699 | 696 | else throw("Strict value is not equal to itself.") | |
700 | 697 | } | |
701 | 698 | ||
702 | 699 | ||
703 | 700 | ||
704 | 701 | @Callable(dl) | |
705 | 702 | func put (cq,eU) = if ((0 > cq)) | |
706 | 703 | then throw("Invalid slippageTolerance passed") | |
707 | 704 | else { | |
708 | 705 | let dr = do(dl, cq, true) | |
709 | 706 | let cS = dr._2 | |
710 | 707 | let bX = dr._7 | |
711 | 708 | let co = dr._9 | |
712 | 709 | let cT = dr._10 | |
713 | 710 | let cU = dr._11 | |
714 | 711 | let eV = dr._12 | |
715 | 712 | let eW = dr._13 | |
716 | 713 | let du = invoke(aJ, "emit", [cS], nil) | |
717 | 714 | if ((du == du)) | |
718 | 715 | then { | |
719 | 716 | let dv = { | |
720 | 717 | let dw = du | |
721 | 718 | if ($isInstanceOf(dw, "Address")) | |
722 | 719 | then { | |
723 | 720 | let dx = dw | |
724 | 721 | invoke(dx, "emit", [cS], nil) | |
725 | 722 | } | |
726 | 723 | else unit | |
727 | 724 | } | |
728 | 725 | if ((dv == dv)) | |
729 | 726 | then { | |
730 | 727 | let eX = if ((cT > 0)) | |
731 | 728 | then invoke(bg, "put", nil, [AttachedPayment(eV, cT)]) | |
732 | 729 | else nil | |
733 | 730 | if ((eX == eX)) | |
734 | 731 | then { | |
735 | 732 | let eY = if ((cU > 0)) | |
736 | 733 | then invoke(bg, "put", nil, [AttachedPayment(eW, cU)]) | |
737 | 734 | else nil | |
738 | 735 | if ((eY == eY)) | |
739 | 736 | then { | |
740 | 737 | let eZ = if (eU) | |
741 | 738 | then { | |
742 | 739 | let fa = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)]) | |
743 | 740 | if ((fa == fa)) | |
744 | 741 | then nil | |
745 | 742 | else throw("Strict value is not equal to itself.") | |
746 | 743 | } | |
747 | 744 | else [ScriptTransfer(dl.caller, cS, bX)] | |
748 | 745 | (co ++ eZ) | |
749 | 746 | } | |
750 | 747 | else throw("Strict value is not equal to itself.") | |
751 | 748 | } | |
752 | 749 | else throw("Strict value is not equal to itself.") | |
753 | 750 | } | |
754 | 751 | else throw("Strict value is not equal to itself.") | |
755 | 752 | } | |
756 | 753 | else throw("Strict value is not equal to itself.") | |
757 | 754 | } | |
758 | 755 | ||
759 | 756 | ||
760 | 757 | ||
761 | 758 | @Callable(dl) | |
762 | 759 | func putForFree (fb) = if ((0 > fb)) | |
763 | 760 | then throw("Invalid value passed") | |
764 | 761 | else { | |
765 | 762 | let dr = do(dl, fb, false) | |
766 | 763 | dr._9 | |
767 | 764 | } | |
768 | 765 | ||
769 | 766 | ||
770 | 767 | ||
771 | 768 | @Callable(dl) | |
772 | 769 | func putOneTkn (fc,fd) = { | |
773 | 770 | let fe = { | |
774 | 771 | let ff = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
775 | 772 | if ($isInstanceOf(ff, "Boolean")) | |
776 | 773 | then ff | |
777 | 774 | else throw(($getType(ff) + " couldn't be cast to Boolean")) | |
778 | 775 | } | |
779 | 776 | let fg = if (if (if (aL()) | |
780 | 777 | then true | |
781 | 778 | else (aY == l)) | |
782 | 779 | then true | |
783 | 780 | else (aY == n)) | |
784 | 781 | then true | |
785 | 782 | else fe | |
786 | 783 | let ej = [if (if (!(fg)) | |
787 | 784 | then true | |
788 | 785 | else eK(dl)) | |
789 | 786 | then true | |
790 | 787 | else aG("put operation is blocked by admin"), if ((size(dl.payments) == 1)) | |
791 | 788 | then true | |
792 | 789 | else aG("exactly 1 payment are expected")] | |
793 | 790 | if ((ej == ej)) | |
794 | 791 | then { | |
795 | 792 | let fh = dl.payments[0] | |
796 | 793 | let dC = fh.assetId | |
797 | 794 | let dB = fh.amount | |
798 | 795 | let X = dl.caller | |
799 | 796 | let Y = dl.transactionId | |
800 | 797 | let fi = dA(dB, dC, X, Y) | |
801 | 798 | let fj = fi._1 | |
802 | 799 | let cV = fi._2 | |
803 | 800 | let dz = fi._3 | |
804 | 801 | let fk = fi._4 | |
805 | 802 | let fl = if (if ((fc > 0)) | |
806 | 803 | then (fc > fj) | |
807 | 804 | else false) | |
808 | 805 | then aG(makeString(["amount to receive is less than ", toString(fc)], "")) | |
809 | 806 | else fj | |
810 | 807 | let du = ds(fl) | |
811 | 808 | if ((du == du)) | |
812 | 809 | then { | |
813 | 810 | let eZ = if (fd) | |
814 | 811 | then { | |
815 | 812 | let fm = invoke(bf, "stake", nil, [AttachedPayment(aZ, fl)]) | |
816 | 813 | if ((fm == fm)) | |
817 | 814 | then nil | |
818 | 815 | else throw("Strict value is not equal to itself.") | |
819 | 816 | } | |
820 | 817 | else [ScriptTransfer(dl.caller, fl, aZ)] | |
821 | 818 | let fn = if ((dz > 0)) | |
822 | 819 | then [ScriptTransfer(aK, dz, dC)] | |
823 | 820 | else nil | |
824 | 821 | $Tuple2(((cV ++ eZ) ++ fn), fl) | |
825 | 822 | } | |
826 | 823 | else throw("Strict value is not equal to itself.") | |
827 | 824 | } | |
828 | 825 | else throw("Strict value is not equal to itself.") | |
829 | 826 | } | |
830 | 827 | ||
831 | 828 | ||
832 | 829 | ||
833 | 830 | @Callable(dl) | |
834 | 831 | func putOneTknREADONLY (dC,dB) = { | |
835 | 832 | let fo = dA(dB, aQ(dC), unit, unit) | |
836 | 833 | let fj = fo._1 | |
837 | 834 | let cV = fo._2 | |
838 | 835 | let dz = fo._3 | |
839 | 836 | let fk = fo._4 | |
840 | 837 | $Tuple2(nil, $Tuple3(fj, dz, fk)) | |
841 | 838 | } | |
842 | 839 | ||
843 | 840 | ||
844 | 841 | ||
845 | 842 | @Callable(dl) | |
846 | 843 | func getOneTkn (fp,fc) = { | |
847 | 844 | let fe = { | |
848 | 845 | let ff = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
849 | 846 | if ($isInstanceOf(ff, "Boolean")) | |
850 | 847 | then ff | |
851 | 848 | else throw(($getType(ff) + " couldn't be cast to Boolean")) | |
852 | 849 | } | |
853 | 850 | let fq = if (if (aL()) | |
854 | 851 | then true | |
855 | 852 | else (aY == n)) | |
856 | 853 | then true | |
857 | 854 | else fe | |
858 | 855 | let ej = [if (if (!(fq)) | |
859 | 856 | then true | |
860 | 857 | else eK(dl)) | |
861 | 858 | then true | |
862 | 859 | else aG("get operation is blocked by admin"), if ((size(dl.payments) == 1)) | |
863 | 860 | then true | |
864 | 861 | else aG("exactly 1 payment are expected")] | |
865 | 862 | if ((ej == ej)) | |
866 | 863 | then { | |
867 | 864 | let ei = aQ(fp) | |
868 | 865 | let fh = dl.payments[0] | |
869 | 866 | let dC = fh.assetId | |
870 | 867 | let dQ = fh.amount | |
871 | 868 | let X = dl.caller | |
872 | 869 | let Y = dl.transactionId | |
873 | 870 | let fr = eh(ei, dQ, dC, X, Y) | |
874 | 871 | let fs = fr._1 | |
875 | 872 | let cV = fr._2 | |
876 | 873 | let dz = fr._3 | |
877 | 874 | let fk = fr._4 | |
878 | 875 | let dt = if (if ((fc > 0)) | |
879 | 876 | then (fc > fs) | |
880 | 877 | else false) | |
881 | 878 | then aG(makeString(["amount to receive is less than ", toString(fc)], "")) | |
882 | 879 | else fs | |
883 | 880 | let ft = invoke(aJ, "burn", [dQ], [AttachedPayment(dC, dQ)]) | |
884 | 881 | if ((ft == ft)) | |
885 | 882 | then { | |
886 | 883 | let fu = [ScriptTransfer(X, dt, ei)] | |
887 | 884 | let fn = if ((dz > 0)) | |
888 | 885 | then [ScriptTransfer(aK, dz, ei)] | |
889 | 886 | else nil | |
890 | 887 | $Tuple2(((cV ++ fu) ++ fn), dt) | |
891 | 888 | } | |
892 | 889 | else throw("Strict value is not equal to itself.") | |
893 | 890 | } | |
894 | 891 | else throw("Strict value is not equal to itself.") | |
895 | 892 | } | |
896 | 893 | ||
897 | 894 | ||
898 | 895 | ||
899 | 896 | @Callable(dl) | |
900 | 897 | func getOneTknREADONLY (ei,dQ) = { | |
901 | 898 | let fv = eh(aQ(ei), dQ, aZ, unit, unit) | |
902 | 899 | let fs = fv._1 | |
903 | 900 | let cV = fv._2 | |
904 | 901 | let dz = fv._3 | |
905 | 902 | let fk = fv._4 | |
906 | 903 | $Tuple2(nil, $Tuple3(fs, dz, fk)) | |
907 | 904 | } | |
908 | 905 | ||
909 | 906 | ||
910 | 907 | ||
911 | 908 | @Callable(dl) | |
912 | 909 | func unstakeAndGetOneTkn (fw,fp,fc) = { | |
913 | 910 | let fe = { | |
914 | 911 | let ff = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
915 | 912 | if ($isInstanceOf(ff, "Boolean")) | |
916 | 913 | then ff | |
917 | 914 | else throw(($getType(ff) + " couldn't be cast to Boolean")) | |
918 | 915 | } | |
919 | 916 | let fq = if (if (aL()) | |
920 | 917 | then true | |
921 | 918 | else (aY == n)) | |
922 | 919 | then true | |
923 | 920 | else fe | |
924 | 921 | let ej = [if (if (!(fq)) | |
925 | 922 | then true | |
926 | 923 | else eK(dl)) | |
927 | 924 | then true | |
928 | 925 | else aG("get operation is blocked by admin"), if ((size(dl.payments) == 0)) | |
929 | 926 | then true | |
930 | 927 | else aG("no payments are expected")] | |
931 | 928 | if ((ej == ej)) | |
932 | 929 | then { | |
933 | 930 | let ei = aQ(fp) | |
934 | 931 | let X = dl.caller | |
935 | 932 | let Y = dl.transactionId | |
936 | 933 | let fx = invoke(bf, "unstake", [toBase58String(aZ), fw], nil) | |
937 | 934 | if ((fx == fx)) | |
938 | 935 | then { | |
939 | 936 | let fy = eh(ei, fw, aZ, X, Y) | |
940 | 937 | let fs = fy._1 | |
941 | 938 | let cV = fy._2 | |
942 | 939 | let dz = fy._3 | |
943 | 940 | let fk = fy._4 | |
944 | 941 | let dt = if (if ((fc > 0)) | |
945 | 942 | then (fc > fs) | |
946 | 943 | else false) | |
947 | 944 | then aG(makeString(["amount to receive is less than ", toString(fc)], "")) | |
948 | 945 | else fs | |
949 | 946 | let ft = invoke(aJ, "burn", [fw], [AttachedPayment(aZ, fw)]) | |
950 | 947 | if ((ft == ft)) | |
951 | 948 | then { | |
952 | 949 | let fu = [ScriptTransfer(dl.caller, dt, ei)] | |
953 | 950 | let fn = if ((dz > 0)) | |
954 | 951 | then [ScriptTransfer(aK, dz, ei)] | |
955 | 952 | else nil | |
956 | 953 | $Tuple2(((cV ++ fu) ++ fn), dt) | |
957 | 954 | } | |
958 | 955 | else throw("Strict value is not equal to itself.") | |
959 | 956 | } | |
960 | 957 | else throw("Strict value is not equal to itself.") | |
961 | 958 | } | |
962 | 959 | else throw("Strict value is not equal to itself.") | |
963 | 960 | } | |
964 | 961 | ||
965 | 962 | ||
966 | 963 | ||
967 | 964 | @Callable(dl) | |
968 | 965 | func get () = { | |
969 | 966 | let cG = dk(dl) | |
970 | 967 | let fz = cG._1 | |
971 | 968 | let cn = cG._2 | |
972 | 969 | let dn = cG._3 | |
973 | 970 | let bV = cG._4 | |
974 | 971 | let co = cG._5 | |
975 | 972 | let fA = invoke(aJ, "burn", [dn], [AttachedPayment(bV, dn)]) | |
976 | 973 | if ((fA == fA)) | |
977 | 974 | then co | |
978 | 975 | else throw("Strict value is not equal to itself.") | |
979 | 976 | } | |
980 | 977 | ||
981 | 978 | ||
982 | 979 | ||
983 | 980 | @Callable(dl) | |
984 | 981 | func getNoLess (fB,fC) = { | |
985 | 982 | let cG = dk(dl) | |
986 | 983 | let cm = cG._1 | |
987 | 984 | let cn = cG._2 | |
988 | 985 | let dn = cG._3 | |
989 | 986 | let bV = cG._4 | |
990 | 987 | let co = cG._5 | |
991 | 988 | if ((fB > cm)) | |
992 | 989 | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fB))) | |
993 | 990 | else if ((fC > cn)) | |
994 | 991 | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fC))) | |
995 | 992 | else { | |
996 | 993 | let fA = invoke(aJ, "burn", [dn], [AttachedPayment(bV, dn)]) | |
997 | 994 | if ((fA == fA)) | |
998 | 995 | then co | |
999 | 996 | else throw("Strict value is not equal to itself.") | |
1000 | 997 | } | |
1001 | 998 | } | |
1002 | 999 | ||
1003 | 1000 | ||
1004 | 1001 | ||
1005 | 1002 | @Callable(dl) | |
1006 | 1003 | func unstakeAndGet (dt) = { | |
1007 | 1004 | let fD = if ((size(dl.payments) != 0)) | |
1008 | 1005 | then throw("No payments are expected") | |
1009 | 1006 | else true | |
1010 | 1007 | if ((fD == fD)) | |
1011 | 1008 | then { | |
1012 | 1009 | let bK = aN() | |
1013 | 1010 | let bX = fromBase58String(bK[q]) | |
1014 | 1011 | let fx = invoke(bf, "unstake", [toBase58String(bX), dt], nil) | |
1015 | 1012 | if ((fx == fx)) | |
1016 | 1013 | then { | |
1017 | 1014 | let cG = bT(toBase58String(dl.transactionId), toBase58String(bX), dt, dl.caller) | |
1018 | 1015 | let ca = parseIntValue(cG._9) | |
1019 | 1016 | let co = cG._10 | |
1020 | 1017 | let fE = if (if (aL()) | |
1021 | 1018 | then true | |
1022 | 1019 | else (ca == n)) | |
1023 | 1020 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
1024 | 1021 | else true | |
1025 | 1022 | if ((fE == fE)) | |
1026 | 1023 | then { | |
1027 | 1024 | let fA = invoke(aJ, "burn", [dt], [AttachedPayment(bX, dt)]) | |
1028 | 1025 | if ((fA == fA)) | |
1029 | 1026 | then co | |
1030 | 1027 | else throw("Strict value is not equal to itself.") | |
1031 | 1028 | } | |
1032 | 1029 | else throw("Strict value is not equal to itself.") | |
1033 | 1030 | } | |
1034 | 1031 | else throw("Strict value is not equal to itself.") | |
1035 | 1032 | } | |
1036 | 1033 | else throw("Strict value is not equal to itself.") | |
1037 | 1034 | } | |
1038 | 1035 | ||
1039 | 1036 | ||
1040 | 1037 | ||
1041 | 1038 | @Callable(dl) | |
1042 | 1039 | func unstakeAndGetNoLess (fw,fF,fC) = { | |
1043 | 1040 | let fq = if (aL()) | |
1044 | 1041 | then true | |
1045 | 1042 | else (aY == n) | |
1046 | 1043 | let ej = [if (!(fq)) | |
1047 | 1044 | then true | |
1048 | 1045 | else throw("get operation is blocked by admin"), if ((size(dl.payments) == 0)) | |
1049 | 1046 | then true | |
1050 | 1047 | else throw("no payments are expected")] | |
1051 | 1048 | if ((ej == ej)) | |
1052 | 1049 | then { | |
1053 | 1050 | let fx = invoke(bf, "unstake", [toBase58String(aZ), fw], nil) | |
1054 | 1051 | if ((fx == fx)) | |
1055 | 1052 | then { | |
1056 | 1053 | let cG = bT(toBase58String(dl.transactionId), toBase58String(aZ), fw, dl.caller) | |
1057 | 1054 | let cm = cG._1 | |
1058 | 1055 | let cn = cG._2 | |
1059 | 1056 | let co = cG._10 | |
1060 | 1057 | let fG = [if ((cm >= fF)) | |
1061 | 1058 | then true | |
1062 | 1059 | else throw(makeString(["amount asset amount to receive is less than ", toString(fF)], "")), if ((cn >= fC)) | |
1063 | 1060 | then true | |
1064 | 1061 | else throw(makeString(["price asset amount to receive is less than ", toString(fC)], ""))] | |
1065 | 1062 | if ((fG == fG)) | |
1066 | 1063 | then { | |
1067 | 1064 | let fA = invoke(aJ, "burn", [fw], [AttachedPayment(aZ, fw)]) | |
1068 | 1065 | if ((fA == fA)) | |
1069 | 1066 | then co | |
1070 | 1067 | else throw("Strict value is not equal to itself.") | |
1071 | 1068 | } | |
1072 | 1069 | else throw("Strict value is not equal to itself.") | |
1073 | 1070 | } | |
1074 | 1071 | else throw("Strict value is not equal to itself.") | |
1075 | 1072 | } | |
1076 | 1073 | else throw("Strict value is not equal to itself.") | |
1077 | 1074 | } | |
1078 | 1075 | ||
1079 | 1076 | ||
1080 | 1077 | ||
1081 | 1078 | @Callable(dl) | |
1082 | 1079 | func activate (fH,fI) = if ((toString(dl.caller) != toString(aJ))) | |
1083 | 1080 | then throw("permissions denied") | |
1084 | 1081 | else $Tuple2([StringEntry(aa(), fH), StringEntry(ab(), fI)], "success") | |
1085 | 1082 | ||
1086 | 1083 | ||
1087 | 1084 | ||
1088 | 1085 | @Callable(dl) | |
1089 | 1086 | func refreshKLp () = { | |
1090 | 1087 | let fJ = valueOrElse(getInteger(ag), 0) | |
1091 | 1088 | let fK = if (((height - fJ) >= aj)) | |
1092 | 1089 | then unit | |
1093 | 1090 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1094 | 1091 | if ((fK == fK)) | |
1095 | 1092 | then { | |
1096 | - | let | |
1097 | - | [IntegerEntry(ag, height), IntegerEntry(af, | |
1093 | + | let eG = eD() | |
1094 | + | [IntegerEntry(ag, height), IntegerEntry(af, eG)] | |
1098 | 1095 | } | |
1099 | 1096 | else throw("Strict value is not equal to itself.") | |
1100 | 1097 | } | |
1101 | 1098 | ||
1102 | 1099 | ||
1103 | 1100 | ||
1104 | 1101 | @Callable(dl) | |
1105 | 1102 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1106 | 1103 | ||
1107 | 1104 | ||
1108 | 1105 | ||
1109 | 1106 | @Callable(dl) | |
1110 | 1107 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1111 | 1108 | ||
1112 | 1109 | ||
1113 | 1110 | ||
1114 | 1111 | @Callable(dl) | |
1115 | 1112 | func calcPricesWrapperREADONLY (bE,bF,bJ) = { | |
1116 | 1113 | let bS = bI(bE, bF, bJ) | |
1117 | 1114 | $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])]) | |
1118 | 1115 | } | |
1119 | 1116 | ||
1120 | 1117 | ||
1121 | 1118 | ||
1122 | 1119 | @Callable(dl) | |
1123 | 1120 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1124 | 1121 | ||
1125 | 1122 | ||
1126 | 1123 | ||
1127 | 1124 | @Callable(dl) | |
1128 | 1125 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1129 | 1126 | ||
1130 | 1127 | ||
1131 | 1128 | ||
1132 | 1129 | @Callable(dl) | |
1133 | 1130 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1134 | 1131 | ||
1135 | 1132 | ||
1136 | 1133 | ||
1137 | 1134 | @Callable(dl) | |
1138 | 1135 | func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw)) | |
1139 | 1136 | ||
1140 | 1137 | ||
1141 | 1138 | ||
1142 | 1139 | @Callable(dl) | |
1143 | 1140 | func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = { | |
1144 | 1141 | let cG = bT(bU, bV, bW, addressFromStringValue(X)) | |
1145 | 1142 | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1146 | 1143 | } | |
1147 | 1144 | ||
1148 | 1145 | ||
1149 | 1146 | ||
1150 | 1147 | @Callable(dl) | |
1151 | 1148 | func statsREADONLY () = { | |
1152 | 1149 | let bK = aN() | |
1153 | 1150 | let bX = fromBase58String(bK[q]) | |
1154 | 1151 | let cY = bK[r] | |
1155 | 1152 | let cZ = bK[s] | |
1156 | 1153 | let cz = bK[v] | |
1157 | 1154 | let cA = bK[w] | |
1158 | 1155 | let bL = parseIntValue(bK[t]) | |
1159 | 1156 | let bM = parseIntValue(bK[u]) | |
1160 | 1157 | let fL = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1161 | 1158 | let da = bw(cY) | |
1162 | 1159 | let db = bw(cZ) | |
1163 | 1160 | let fM = if ((fL == 0)) | |
1164 | 1161 | then [e, e, e] | |
1165 | 1162 | else bI(da, db, fL) | |
1166 | 1163 | let ch = 0 | |
1167 | 1164 | let fN = G(fM[1], b) | |
1168 | 1165 | let fO = G(fM[2], b) | |
1169 | 1166 | let fP = value(getInteger(aJ, au(toString(this)))) | |
1170 | 1167 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(da), toString(db), toString(fL), toString(ch), toString(fN), toString(fO), toString(fP)], j)) | |
1171 | 1168 | } | |
1172 | 1169 | ||
1173 | 1170 | ||
1174 | 1171 | ||
1175 | 1172 | @Callable(dl) | |
1176 | 1173 | func evaluatePutByAmountAssetREADONLY (cr) = { | |
1177 | 1174 | let bK = aN() | |
1178 | 1175 | let bX = fromBase58String(bK[q]) | |
1179 | 1176 | let cx = bK[r] | |
1180 | 1177 | let bY = fromBase58String(cx) | |
1181 | 1178 | let cy = bK[s] | |
1182 | 1179 | let bZ = fromBase58String(cy) | |
1183 | 1180 | let bL = parseIntValue(bK[t]) | |
1184 | 1181 | let bM = parseIntValue(bK[u]) | |
1185 | 1182 | let ca = bK[p] | |
1186 | 1183 | let fL = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1187 | 1184 | let da = bw(cx) | |
1188 | 1185 | let db = bw(cy) | |
1189 | 1186 | let bG = D(da, bL) | |
1190 | 1187 | let bH = D(db, bM) | |
1191 | 1188 | let cg = if ((fL == 0)) | |
1192 | 1189 | then e | |
1193 | 1190 | else by(bH, bG) | |
1194 | 1191 | let cD = D(cr, bL) | |
1195 | 1192 | let cE = fraction(cD, cg, d) | |
1196 | 1193 | let ct = G(cE, bM) | |
1197 | 1194 | let dr = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1198 | 1195 | let cO = dr._1 | |
1199 | 1196 | let fQ = dr._3 | |
1200 | 1197 | let cc = dr._4 | |
1201 | 1198 | let ce = dr._5 | |
1202 | 1199 | let cb = dr._6 | |
1203 | 1200 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j)) | |
1204 | 1201 | } | |
1205 | 1202 | ||
1206 | 1203 | ||
1207 | 1204 | ||
1208 | 1205 | @Callable(dl) | |
1209 | 1206 | func evaluatePutByPriceAssetREADONLY (ct) = { | |
1210 | 1207 | let bK = aN() | |
1211 | 1208 | let bX = fromBase58String(bK[q]) | |
1212 | 1209 | let cx = bK[r] | |
1213 | 1210 | let bY = fromBase58String(cx) | |
1214 | 1211 | let cy = bK[s] | |
1215 | 1212 | let bZ = fromBase58String(cy) | |
1216 | 1213 | let bL = parseIntValue(bK[t]) | |
1217 | 1214 | let bM = parseIntValue(bK[u]) | |
1218 | 1215 | let ca = bK[p] | |
1219 | 1216 | let fL = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1220 | 1217 | let fR = bw(cx) | |
1221 | 1218 | let fS = bw(cy) | |
1222 | 1219 | let fT = D(fR, bL) | |
1223 | 1220 | let fU = D(fS, bM) | |
1224 | 1221 | let cg = if ((fL == 0)) | |
1225 | 1222 | then e | |
1226 | 1223 | else by(fU, fT) | |
1227 | 1224 | let cE = D(ct, bM) | |
1228 | 1225 | let cD = fraction(cE, d, cg) | |
1229 | 1226 | let cr = G(cD, bL) | |
1230 | 1227 | let dr = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1231 | 1228 | let cO = dr._1 | |
1232 | 1229 | let fQ = dr._3 | |
1233 | 1230 | let cc = dr._4 | |
1234 | 1231 | let ce = dr._5 | |
1235 | 1232 | let cb = dr._6 | |
1236 | 1233 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j)) | |
1237 | 1234 | } | |
1238 | 1235 | ||
1239 | 1236 | ||
1240 | 1237 | ||
1241 | 1238 | @Callable(dl) | |
1242 | 1239 | func evaluateGetREADONLY (fV,fW) = { | |
1243 | 1240 | let cG = bT("", fV, fW, this) | |
1244 | 1241 | let cm = cG._1 | |
1245 | 1242 | let cn = cG._2 | |
1246 | 1243 | let cc = cG._5 | |
1247 | 1244 | let ce = cG._6 | |
1248 | 1245 | let cb = cG._7 | |
1249 | 1246 | let ch = cG._8 | |
1250 | 1247 | let ca = parseIntValue(cG._9) | |
1251 | 1248 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cm), toString(cn), toString(cc), toString(ce), toString(cb), toString(ch), toString(ca)], j)) | |
1252 | 1249 | } | |
1253 | 1250 | ||
1254 | 1251 | ||
1255 | 1252 | @Verifier(fX) | |
1256 | 1253 | func fY () = { | |
1257 | 1254 | let fZ = { | |
1258 | 1255 | let dw = eH() | |
1259 | 1256 | if ($isInstanceOf(dw, "ByteVector")) | |
1260 | 1257 | then { | |
1261 | 1258 | let eL = dw | |
1262 | 1259 | eL | |
1263 | 1260 | } | |
1264 | 1261 | else if ($isInstanceOf(dw, "Unit")) | |
1265 | 1262 | then fX.senderPublicKey | |
1266 | 1263 | else throw("Match error") | |
1267 | 1264 | } | |
1268 | 1265 | let dw = fX | |
1269 | 1266 | if ($isInstanceOf(dw, "Order")) | |
1270 | 1267 | then { | |
1271 | 1268 | let cX = dw | |
1272 | 1269 | let ga = aM() | |
1273 | 1270 | let az = cW(cX) | |
1274 | 1271 | let aA = sigVerify(cX.bodyBytes, cX.proofs[0], cX.senderPublicKey) | |
1275 | 1272 | let aB = sigVerify(cX.bodyBytes, cX.proofs[1], ga) | |
1276 | 1273 | if (if (if (az) | |
1277 | 1274 | then aA | |
1278 | 1275 | else false) | |
1279 | 1276 | then aB | |
1280 | 1277 | else false) | |
1281 | 1278 | then true | |
1282 | 1279 | else ay(az, aA, aB) | |
1283 | 1280 | } | |
1284 | 1281 | else if ($isInstanceOf(dw, "SetScriptTransaction")) | |
1285 | 1282 | then { | |
1286 | 1283 | let eI = dw | |
1287 | 1284 | let gb = blake2b256(value(eI.script)) | |
1288 | 1285 | let gc = fromBase64String(value(getString(aJ, aw()))) | |
1289 | 1286 | let gd = scriptHash(this) | |
1290 | 1287 | if (if ((gc == gb)) | |
1291 | 1288 | then (gd != gb) | |
1292 | 1289 | else false) | |
1293 | 1290 | then true | |
1294 | 1291 | else sigVerify(fX.bodyBytes, fX.proofs[0], fZ) | |
1295 | 1292 | } | |
1296 | 1293 | else sigVerify(fX.bodyBytes, fX.proofs[0], fZ) | |
1297 | 1294 | } | |
1298 | 1295 |
github/deemru/w8io/026f985 131.08 ms ◑