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