tx · Aih1LhYGq68JX9RdPJKvVgKfELsrNEUXsDNyR1HsT9zb 3N1ytAUyhtig9X6F2hHHs1jbzYxr47Yp8Fr: -0.01800000 Waves 2024.12.20 18:22 [3423028] smart account 3N1ytAUyhtig9X6F2hHHs1jbzYxr47Yp8Fr > SELF 0.00000000 Waves
{ "type": 13, "id": "Aih1LhYGq68JX9RdPJKvVgKfELsrNEUXsDNyR1HsT9zb", "fee": 1800000, "feeAssetId": null, "timestamp": 1734708233124, "version": 2, "chainId": 84, "sender": "3N1ytAUyhtig9X6F2hHHs1jbzYxr47Yp8Fr", "senderPublicKey": "jXCTQV8PjX2uC9UHBFveupYy9cjhY7stHbzE9cptymw", "proofs": [ "2pkxXj4uPDipVvDBky6AeME6zkRDSDPT5UgcpFEMz7fZK4vTVQgGs7LX7mPdYTgGME8qy68ZpXhDbynKHouS29Pm" ], "script": "base64:BwIxCAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGDoACXNlcGFyYXRvcgICX18AC3dhdmVzU3RyaW5nAgVXQVZFUwAQY29udHJhY3RGaWxlbmFtZQIXbWVtZV9pbV9jYWxjdWxhdG9yLnJpZGUABW11bHQ4AIDC1y8BB3dyYXBFcnIBAXMJAKwCAgkArAICBRBjb250cmFjdEZpbGVuYW1lAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD3ZhbGlkYXRlQWRkcmVzcwEHYWRkcmVzcwkBCWlzRGVmaW5lZAEJAKYIAQUHYWRkcmVzcwAMU1RBVFVTX0VNUFRZAAAADFNUQVRVU19SRUFEWQABABVTVEFUVVNfVEFSR0VUX1JFQUNIRUQAAgASU1RBVFVTX1RSQU5TRkVSUkVEAAMACWtTaHV0ZG93bgIOc2h1dGRvd25fX2ZsYWcAC2tQcmljZUFzc2V0AgxwcmljZV9fYXNzZXQADmtMaXN0aW5nVm9sdW1lAg9saXN0aW5nX192b2x1bWUADGtDcmVhdGlvbkZlZQISc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91bnQgZnJvbSBwb29sIGlzIHRvbyBsb3cJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABBNrZXlBZG1pbkFkZHJlc3NMaXN0AhQlc19fYWRtaW5BZGRyZXNzTGlzdAQOa2V5QWxsb3dlZFR4SWQCCCVzX190eElkBAlhZG1pbkxpc3QJALUJAgkBC3ZhbHVlT3JFbHNlAgkAnQgCBQ5mYWN0b3J5QWRkcmVzcwUTa2V5QWRtaW5BZGRyZXNzTGlzdAIAAgJfXwQHYnlPd25lcgMJAGcCCQCQAwEFCWFkbWluTGlzdAADBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQQIYnlBZG1pbnMJAAACCAUCdHgCaWQJANkEAQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQ5mYWN0b3J5QWRkcmVzcwUOa2V5QWxsb3dlZFR4SWQCAAMFCGJ5QWRtaW5zBgUHYnlPd25lcvovWms=", "height": 3423028, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 36eQMJnqu2CeK2W9DQP5LGNxFxz69LQqPuB5SauwJwiD Next: 5y9zXER3ZSysS1Y88jSMq5m9CApPAEAecdscJPtxKFDC Diff:
Old | New | Differences | |
---|---|---|---|
393 | 393 | if ((bj == bj)) | |
394 | 394 | then { | |
395 | 395 | let bk = if (ak(ai)) | |
396 | - | then | |
396 | + | then reentrantInvoke(I, "swap", [bg, ba, toString(this)], aF.payments) | |
397 | 397 | else invoke(ai, "swap", [ba, bg], aF.payments) | |
398 | 398 | if ((bk == bk)) | |
399 | 399 | then { | |
429 | 429 | let bt = am(F, br) | |
430 | 430 | if ((bt == bt)) | |
431 | 431 | then { | |
432 | - | let bu = | |
432 | + | let bu = invoke(F, "withdrawLiquidityFromPool", [ai.bytes], nil) | |
433 | 433 | if ((bu == bu)) | |
434 | 434 | then { | |
435 | 435 | let bv = am(F, bq) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "WAVES" | |
7 | 7 | ||
8 | 8 | let c = "meme_im_calculator.ride" | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | func e (f) = ((c + ": ") + f) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func g (f) = throw(e(f)) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func h (i) = isDefined(addressFromString(i)) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | let j = 0 | |
22 | 22 | ||
23 | 23 | let k = 1 | |
24 | 24 | ||
25 | 25 | let l = 2 | |
26 | 26 | ||
27 | 27 | let m = 3 | |
28 | 28 | ||
29 | 29 | let n = "shutdown__flag" | |
30 | 30 | ||
31 | 31 | let o = "price__asset" | |
32 | 32 | ||
33 | 33 | let p = "listing__volume" | |
34 | 34 | ||
35 | 35 | let q = "setup__creationFee" | |
36 | 36 | ||
37 | 37 | let r = "setup__curveTarget" | |
38 | 38 | ||
39 | 39 | let s = "setup__virtualLiquidity" | |
40 | 40 | ||
41 | 41 | let t = "static_tokenIds" | |
42 | 42 | ||
43 | 43 | let u = "pool__contract__hash" | |
44 | 44 | ||
45 | 45 | let v = "last__empty_pool__index" | |
46 | 46 | ||
47 | 47 | let w = "first__empty__pool__index" | |
48 | 48 | ||
49 | 49 | func x (y) = makeString(["pool", toString(y)], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func z (i) = makeString(["pool", toString(i)], a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func A (i) = makeString(["asset", toString(i)], a) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func B (y) = makeString(["pool", "status", toString(y)], a) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | let C = "factory__address" | |
62 | 62 | ||
63 | 63 | let D = { | |
64 | 64 | let E = getString(this, C) | |
65 | 65 | if ($isInstanceOf(E, "String")) | |
66 | 66 | then { | |
67 | 67 | let f = E | |
68 | 68 | addressFromString(f) | |
69 | 69 | } | |
70 | 70 | else if ($isInstanceOf(E, "Unit")) | |
71 | 71 | then unit | |
72 | 72 | else throw("Match error") | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | let F = valueOrErrorMessage(D, e("invalid factory address")) | |
76 | 76 | ||
77 | 77 | let G = "wxswap__address" | |
78 | 78 | ||
79 | 79 | let H = { | |
80 | 80 | let E = getString(F, G) | |
81 | 81 | if ($isInstanceOf(E, "String")) | |
82 | 82 | then { | |
83 | 83 | let f = E | |
84 | 84 | addressFromString(f) | |
85 | 85 | } | |
86 | 86 | else unit | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | let I = valueOrErrorMessage(H, e("invalid wx swap address")) | |
90 | 90 | ||
91 | 91 | let J = "wxfee_address" | |
92 | 92 | ||
93 | 93 | let K = { | |
94 | 94 | let E = getString(F, J) | |
95 | 95 | if ($isInstanceOf(E, "String")) | |
96 | 96 | then { | |
97 | 97 | let f = E | |
98 | 98 | addressFromString(f) | |
99 | 99 | } | |
100 | 100 | else unit | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | let L = valueOrErrorMessage(K, e("invalid fee collector address")) | |
104 | 104 | ||
105 | 105 | let M = "userpools_address" | |
106 | 106 | ||
107 | 107 | let N = { | |
108 | 108 | let E = getString(F, M) | |
109 | 109 | if ($isInstanceOf(E, "String")) | |
110 | 110 | then { | |
111 | 111 | let f = E | |
112 | 112 | addressFromString(f) | |
113 | 113 | } | |
114 | 114 | else unit | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | let O = valueOrErrorMessage(N, e("invalid user_pools dapp address")) | |
118 | 118 | ||
119 | 119 | let P = "assetstore_address" | |
120 | 120 | ||
121 | 121 | let Q = { | |
122 | 122 | let E = getString(F, P) | |
123 | 123 | if ($isInstanceOf(E, "String")) | |
124 | 124 | then { | |
125 | 125 | let f = E | |
126 | 126 | addressFromString(f) | |
127 | 127 | } | |
128 | 128 | else unit | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | let R = valueOrErrorMessage(Q, e("invalid asset_store dapp address")) | |
132 | 132 | ||
133 | 133 | let S = valueOrElse(getBoolean(F, n), false) | |
134 | 134 | ||
135 | 135 | let T = valueOrElse(getInteger(F, v), 0) | |
136 | 136 | ||
137 | 137 | let U = valueOrElse(getInteger(F, w), 0) | |
138 | 138 | ||
139 | 139 | let V = valueOrElse(getInteger(F, p), 0) | |
140 | 140 | ||
141 | 141 | let W = valueOrElse(getInteger(F, q), 0) | |
142 | 142 | ||
143 | 143 | let X = getBinary(F, u) | |
144 | 144 | ||
145 | 145 | func Y (Z) = if ((Z == b)) | |
146 | 146 | then unit | |
147 | 147 | else fromBase58String(Z) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func aa (Z) = if ((Z == unit)) | |
151 | 151 | then b | |
152 | 152 | else toBase58String(value(Z)) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ab (ac,i) = if ((ac == i)) | |
156 | 156 | then true | |
157 | 157 | else g("permission denied") | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ad (ac) = ab(ac, this) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ae (ac) = ab(ac, F) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func af (i) = { | |
167 | 167 | let E = X | |
168 | 168 | if ($isInstanceOf(E, "ByteVector")) | |
169 | 169 | then { | |
170 | 170 | let ag = E | |
171 | 171 | (scriptHash(i) == ag) | |
172 | 172 | } | |
173 | 173 | else true | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func ah (ai) = isDefined(getInteger(F, z(ai))) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aj (ai) = valueOrErrorMessage(getInteger(F, z(ai)), "pool doesn't exists") | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ak (ai) = { | |
184 | 184 | let al = valueOrElse(getInteger(F, B(aj(ai))), -1) | |
185 | 185 | containsElement([l, m], al) | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func am (i,an) = { | |
190 | 190 | let E = an | |
191 | 191 | if ($isInstanceOf(E, "ByteVector")) | |
192 | 192 | then { | |
193 | 193 | let ao = E | |
194 | 194 | assetBalance(i, ao) | |
195 | 195 | } | |
196 | 196 | else wavesBalance(i).available | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func ap (aq,ar) = { | |
201 | 201 | let as = makeString(["%s%s%s", "status", aq, ar], a) | |
202 | 202 | let at = makeString(["%s%s%s", "status", ar, aq], a) | |
203 | 203 | let au = valueOrElse(getString(O, as), "") | |
204 | 204 | let av = valueOrElse(getString(O, at), "") | |
205 | 205 | if ((au == "active")) | |
206 | 206 | then true | |
207 | 207 | else (av == "active") | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aw (an) = { | |
212 | 212 | let ax = { | |
213 | 213 | let E = an | |
214 | 214 | if ($isInstanceOf(E, "ByteVector")) | |
215 | 215 | then { | |
216 | 216 | let ay = E | |
217 | 217 | let az = { | |
218 | 218 | let aA = assetInfo(ay) | |
219 | 219 | if ($isInstanceOf(aA, "Asset")) | |
220 | 220 | then { | |
221 | 221 | let aB = aA | |
222 | 222 | aB.name | |
223 | 223 | } | |
224 | 224 | else "%" | |
225 | 225 | } | |
226 | 226 | $Tuple2(toString((toInt(ay) % 360)), az) | |
227 | 227 | } | |
228 | 228 | else $Tuple2("200", "WAVES") | |
229 | 229 | } | |
230 | 230 | let aC = ax._1 | |
231 | 231 | let aD = ax._2 | |
232 | 232 | let aE = (((("<svg width='30' height='30' xmlns='http://www.w3.org/2000/svg'><circle cx='15' cy='15' fill='hsl(" + aC) + ", 70%, 70%)' r='15'/><text x='50%' y='50%' text-anchor='middle' dominant-baseline='middle' font-size='18'>") + take(aD, 1)) + "</text></svg>") | |
233 | 233 | aE | |
234 | 234 | } | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | @Callable(aF) | |
238 | 238 | func init (aG) = { | |
239 | 239 | let aH = ad(aF.caller) | |
240 | 240 | if ((aH == aH)) | |
241 | 241 | then [StringEntry(C, aG)] | |
242 | 242 | else throw("Strict value is not equal to itself.") | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | ||
247 | 247 | @Callable(aF) | |
248 | 248 | func addEmptyPool (aI,aJ) = { | |
249 | 249 | let aK = addressFromPublicKey(aI) | |
250 | 250 | let aL = (T + 1) | |
251 | 251 | let aM = [if (!(S)) | |
252 | 252 | then true | |
253 | 253 | else g("not allowed (shutdown)"), if (af(aK)) | |
254 | 254 | then true | |
255 | 255 | else g("pool script is not allowed"), if (!(ah(aK))) | |
256 | 256 | then true | |
257 | 257 | else g("pool address is already registered")] | |
258 | 258 | if ((aM == aM)) | |
259 | 259 | then { | |
260 | 260 | let aN = [invoke(F, "integerEntry", [v, aL], nil), invoke(F, "stringEntry", [x(aL), toString(aK)], nil), invoke(F, "integerEntry", [z(aK), aL], nil), invoke(F, "integerEntry", [B(aL), j], nil)] | |
261 | 261 | $Tuple2(nil, aN) | |
262 | 262 | } | |
263 | 263 | else throw("Strict value is not equal to itself.") | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | ||
268 | 268 | @Callable(aF) | |
269 | 269 | func createPool (aI,aJ) = { | |
270 | 270 | let aO = (V + W) | |
271 | 271 | let aM = [if (!(S)) | |
272 | 272 | then true | |
273 | 273 | else g("Temporary shutdown"), ae(aF.caller), if (((T - U) > 0)) | |
274 | 274 | then true | |
275 | 275 | else g("No empty pool available"), if ((aF.payments[0].assetId == unit)) | |
276 | 276 | then true | |
277 | 277 | else g("Payment should be in WAVES"), if ((aF.payments[0].amount >= aO)) | |
278 | 278 | then true | |
279 | 279 | else g((("Payment should be greater or equal " + toString(aO)) + " WAVELET")), if (isDefined(aJ[0])) | |
280 | 280 | then true | |
281 | 281 | else g("Token name is not provided"), if (isDefined(aJ[1])) | |
282 | 282 | then true | |
283 | 283 | else g("Token description is not provided"), if (isDefined(aJ[2])) | |
284 | 284 | then true | |
285 | 285 | else g("Token quantity is not provided"), if ((parseInt(aJ[2]) != unit)) | |
286 | 286 | then true | |
287 | 287 | else g("Token quantity should be a number")] | |
288 | 288 | if ((aM == aM)) | |
289 | 289 | then { | |
290 | 290 | let aP = (U + 1) | |
291 | 291 | let aQ = getStringValue(F, x(aP)) | |
292 | 292 | let ai = addressFromStringValue(aQ) | |
293 | 293 | let aR = addressFromPublicKey(aI) | |
294 | 294 | let aS = take(aQ, 8) | |
295 | 295 | let aT = toString(aR) | |
296 | 296 | let aU = aJ[0] | |
297 | 297 | let aV = aJ[1] | |
298 | 298 | let aW = aJ[2] | |
299 | 299 | let aX = invoke(F, "initPoolInvoke", [aQ, [aS, aT, aU, aV, aW]], [AttachedPayment(aF.payments[0].assetId, aF.payments[0].amount)]) | |
300 | 300 | if ((aX == aX)) | |
301 | 301 | then { | |
302 | 302 | let aN = [invoke(F, "integerEntry", [w, aP], nil), invoke(F, "integerEntry", [B(aP), k], nil)] | |
303 | 303 | $Tuple2(nil, aN) | |
304 | 304 | } | |
305 | 305 | else throw("Strict value is not equal to itself.") | |
306 | 306 | } | |
307 | 307 | else throw("Strict value is not equal to itself.") | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | ||
312 | 312 | @Callable(aF) | |
313 | 313 | func notifyStatusUpdate (aI,aJ) = { | |
314 | 314 | let ai = addressFromPublicKey(aI) | |
315 | 315 | let aM = [if (ah(ai)) | |
316 | 316 | then true | |
317 | 317 | else g("pool not found"), ae(aF.caller)] | |
318 | 318 | if ((aM == aM)) | |
319 | 319 | then { | |
320 | 320 | let aP = getIntegerValue(F, z(ai)) | |
321 | 321 | let aY = parseIntValue(aJ[0]) | |
322 | 322 | let aN = [invoke(F, "integerEntry", [B(aP), aY], nil)] | |
323 | 323 | $Tuple2(nil, aN) | |
324 | 324 | } | |
325 | 325 | else throw("Strict value is not equal to itself.") | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Callable(aF) | |
331 | 331 | func isWxSwapActiveREADONLY (aI,aJ) = { | |
332 | 332 | let aZ = aJ[0] | |
333 | 333 | let ba = aJ[1] | |
334 | 334 | let aM = [ae(aF.caller)] | |
335 | 335 | if ((aM == aM)) | |
336 | 336 | then $Tuple2(nil, ap(aZ, ba)) | |
337 | 337 | else throw("Strict value is not equal to itself.") | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | ||
342 | 342 | @Callable(aF) | |
343 | 343 | func swapREADONLY (aI,aJ) = { | |
344 | 344 | let ai = addressFromStringValue(aJ[0]) | |
345 | 345 | let aZ = aJ[1] | |
346 | 346 | let ba = aJ[2] | |
347 | 347 | let bb = parseIntValue(aJ[3]) | |
348 | 348 | let aM = [if (!(S)) | |
349 | 349 | then true | |
350 | 350 | else g("Temporary shutdown"), ae(aF.caller)] | |
351 | 351 | if ((aM == aM)) | |
352 | 352 | then if (ak(ai)) | |
353 | 353 | then { | |
354 | 354 | let bc = { | |
355 | 355 | let bd = invoke(I, "swapCalculateREADONLY", [bb, aZ, ba], nil) | |
356 | 356 | if ($isInstanceOf(bd, "Int")) | |
357 | 357 | then bd | |
358 | 358 | else throw(($getType(bd) + " couldn't be cast to Int")) | |
359 | 359 | } | |
360 | 360 | $Tuple2(nil, $Tuple2(bc, "WxSwap")) | |
361 | 361 | } | |
362 | 362 | else { | |
363 | 363 | let be = { | |
364 | 364 | let bd = invoke(ai, "swapReadOnly", [aZ, ba, bb], nil) | |
365 | 365 | if ($isInstanceOf(bd, "Int")) | |
366 | 366 | then bd | |
367 | 367 | else throw(($getType(bd) + " couldn't be cast to Int")) | |
368 | 368 | } | |
369 | 369 | $Tuple2(nil, $Tuple2(be, "iMemePool")) | |
370 | 370 | } | |
371 | 371 | else throw("Strict value is not equal to itself.") | |
372 | 372 | } | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | ||
376 | 376 | @Callable(aF) | |
377 | 377 | func swap (aI,aJ) = { | |
378 | 378 | let aR = addressFromPublicKey(aI) | |
379 | 379 | let ai = addressFromStringValue(aJ[0]) | |
380 | 380 | let ba = aJ[1] | |
381 | 381 | let bf = Y(ba) | |
382 | 382 | let bg = parseIntValue(aJ[2]) | |
383 | 383 | let bh = aF.payments[0].amount | |
384 | 384 | let bi = aF.payments[0].assetId | |
385 | 385 | let aM = [if (!(S)) | |
386 | 386 | then true | |
387 | 387 | else g("Temporary shutdown"), ae(aF.caller), if ((size(aF.payments) == 1)) | |
388 | 388 | then true | |
389 | 389 | else g("exactly one payment is expected")] | |
390 | 390 | if ((aM == aM)) | |
391 | 391 | then { | |
392 | 392 | let bj = am(this, bf) | |
393 | 393 | if ((bj == bj)) | |
394 | 394 | then { | |
395 | 395 | let bk = if (ak(ai)) | |
396 | - | then | |
396 | + | then reentrantInvoke(I, "swap", [bg, ba, toString(this)], aF.payments) | |
397 | 397 | else invoke(ai, "swap", [ba, bg], aF.payments) | |
398 | 398 | if ((bk == bk)) | |
399 | 399 | then { | |
400 | 400 | let bl = am(this, bf) | |
401 | 401 | if ((bl == bl)) | |
402 | 402 | then [ScriptTransfer(aR, (bl - bj), bf)] | |
403 | 403 | else throw("Strict value is not equal to itself.") | |
404 | 404 | } | |
405 | 405 | else throw("Strict value is not equal to itself.") | |
406 | 406 | } | |
407 | 407 | else throw("Strict value is not equal to itself.") | |
408 | 408 | } | |
409 | 409 | else throw("Strict value is not equal to itself.") | |
410 | 410 | } | |
411 | 411 | ||
412 | 412 | ||
413 | 413 | ||
414 | 414 | @Callable(aF) | |
415 | 415 | func transferPool (aI,aJ) = { | |
416 | 416 | let aR = addressFromPublicKey(aI) | |
417 | 417 | let ai = addressFromStringValue(aJ[0]) | |
418 | 418 | let bm = split(getStringValue(ai, t), ",") | |
419 | 419 | let bn = Y(bm[0]) | |
420 | 420 | let bo = Y(bm[1]) | |
421 | 421 | let bp = if ((bn == unit)) | |
422 | 422 | then $Tuple2(bo, bn) | |
423 | 423 | else $Tuple2(bn, bo) | |
424 | 424 | let bq = bp._1 | |
425 | 425 | let br = bp._2 | |
426 | 426 | let bs = am(F, bq) | |
427 | 427 | if ((bs == bs)) | |
428 | 428 | then { | |
429 | 429 | let bt = am(F, br) | |
430 | 430 | if ((bt == bt)) | |
431 | 431 | then { | |
432 | - | let bu = | |
432 | + | let bu = invoke(F, "withdrawLiquidityFromPool", [ai.bytes], nil) | |
433 | 433 | if ((bu == bu)) | |
434 | 434 | then { | |
435 | 435 | let bv = am(F, bq) | |
436 | 436 | if ((bv == bv)) | |
437 | 437 | then { | |
438 | 438 | let bw = am(F, br) | |
439 | 439 | if ((bw == bw)) | |
440 | 440 | then { | |
441 | 441 | let bx = (bv - bs) | |
442 | 442 | let by = (bw - bt) | |
443 | 443 | let aE = aw(bq) | |
444 | 444 | if (if ((bx > 0)) | |
445 | 445 | then (by > 0) | |
446 | 446 | else false) | |
447 | 447 | then { | |
448 | 448 | let bz = fraction(bx, 20, 100) | |
449 | 449 | let bA = invoke(F, "burn", [bq, bz], nil) | |
450 | 450 | if ((bA == bA)) | |
451 | 451 | then { | |
452 | 452 | let bB = fraction(by, 20, 100) | |
453 | 453 | let bC = invoke(F, "transferWaves", [L.bytes, bB], nil) | |
454 | 454 | if ((bC == bC)) | |
455 | 455 | then { | |
456 | 456 | let bD = invoke(F, "registerAsset", [R.bytes, aa(bq), aE, true], nil) | |
457 | 457 | if ((bD == bD)) | |
458 | 458 | then { | |
459 | 459 | let bE = invoke(F, "createWxPool", [O.bytes, aa(bq), (bx - bz), aa(br), (by - bB)], nil) | |
460 | 460 | if ((bE == bE)) | |
461 | 461 | then { | |
462 | 462 | let bF = invoke(F, "integerEntry", [B(aj(ai)), m], nil) | |
463 | 463 | if ((bF == bF)) | |
464 | 464 | then nil | |
465 | 465 | else throw("Strict value is not equal to itself.") | |
466 | 466 | } | |
467 | 467 | else throw("Strict value is not equal to itself.") | |
468 | 468 | } | |
469 | 469 | else throw("Strict value is not equal to itself.") | |
470 | 470 | } | |
471 | 471 | else throw("Strict value is not equal to itself.") | |
472 | 472 | } | |
473 | 473 | else throw("Strict value is not equal to itself.") | |
474 | 474 | } | |
475 | 475 | else g("withdrawn amount from pool is too low") | |
476 | 476 | } | |
477 | 477 | else throw("Strict value is not equal to itself.") | |
478 | 478 | } | |
479 | 479 | else throw("Strict value is not equal to itself.") | |
480 | 480 | } | |
481 | 481 | else throw("Strict value is not equal to itself.") | |
482 | 482 | } | |
483 | 483 | else throw("Strict value is not equal to itself.") | |
484 | 484 | } | |
485 | 485 | else throw("Strict value is not equal to itself.") | |
486 | 486 | } | |
487 | 487 | ||
488 | 488 | ||
489 | 489 | @Verifier(bG) | |
490 | 490 | func bH () = { | |
491 | 491 | let bI = "%s__adminAddressList" | |
492 | 492 | let bJ = "%s__txId" | |
493 | 493 | let bK = split(valueOrElse(getString(F, bI), ""), "__") | |
494 | 494 | let bL = if ((size(bK) >= 3)) | |
495 | 495 | then false | |
496 | 496 | else sigVerify(bG.bodyBytes, bG.proofs[0], bG.senderPublicKey) | |
497 | 497 | let bM = (bG.id == fromBase58String(valueOrElse(getString(F, bJ), ""))) | |
498 | 498 | if (bM) | |
499 | 499 | then true | |
500 | 500 | else bL | |
501 | 501 | } | |
502 | 502 |
github/deemru/w8io/169f3d6 47.11 ms ◑