tx · DXaPtP5RHZWHvPmdW9rS7vrvQZZFYDoUVxpGhVjcBdQ9 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.02800000 Waves 2023.07.21 12:32 [2675441] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "DXaPtP5RHZWHvPmdW9rS7vrvQZZFYDoUVxpGhVjcBdQ9", "fee": 2800000, "feeAssetId": null, "timestamp": 1689931993167, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "2993T2sBtQdTrHHfGJeiahuuSm67RjbGrxdsMPiFujwZPCoR48rDyXtWUymYeuEZvPhv2yN7nWYXtGAQK4f5iUTn" ], "script": "base64:BgK0LQgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSAwoBCCIGU0NBTEU4IgVNVUxUOCIGTVVMVDEyIgdTQ0FMRTE4IgZNVUxUMTgiDlBPT0xXRUlHSFRNVUxUIg5HV1h2aXJ0dWFsUE9PTCIMbGFiZWxQb29sc0xwIg1kZWZhdWx0U3ByZWFkIgt3YXZlc1N0cmluZyIQY29udHJhY3RGaWxlbmFtZSIRZGVjaW1hbHNNdWx0UHJpY2UiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIhJpZHhJbnRlcm5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HJ5AQkBAmFlAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmF5AQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFIAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFKAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFMAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFNAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFOAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFPAQUCYUEFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECZnYBAmZ3AAQCZngEAmJmCQECYnkAAwkAAQIFAmJmAgpCeXRlVmVjdG9yBAJiRgUCYmYFAmJGAwkAAQIFAmJmAgRVbml0CAUCZnYPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmZ2CWJvZHlCeXRlcwkAkQMCCAUCZnYGcHJvb2ZzAAAFAmZ4LuuPpg==", "height": 2675441, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2mbizu3bHURTHUkscMagK8sDgfrAAaezopZYNbQaU6mo Next: Fw6T22x2kMq44ar2UAF6WnJTV2zdZJp61J3dAScAidbG Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = "factory_v2.ride" | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = ((100 * 1000) * 1000) | |
27 | 27 | ||
28 | - | let m = "" | |
28 | + | let m = "__" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = "" | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 2 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 3 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 4 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 1 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 2 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 3 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 1 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 2 | |
49 | 49 | ||
50 | - | let x = | |
50 | + | let x = 3 | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = 4 | |
53 | 53 | ||
54 | - | let z = | |
54 | + | let z = 5 | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = 6 | |
57 | 57 | ||
58 | - | let B = | |
58 | + | let B = 7 | |
59 | 59 | ||
60 | - | let C = | |
60 | + | let C = 8 | |
61 | 61 | ||
62 | - | let D = | |
62 | + | let D = 9 | |
63 | 63 | ||
64 | - | let E = | |
64 | + | let E = 10 | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = 11 | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = "WX_EMISSION" | |
69 | 69 | ||
70 | - | func H () = "%s__allowedLpScriptHash" | |
70 | + | let H = [G] | |
71 | + | ||
72 | + | func I (J) = makeString([k, ": ", J], "") | |
71 | 73 | ||
72 | 74 | ||
73 | - | func | |
75 | + | func K (J) = throw(I(J)) | |
74 | 76 | ||
75 | 77 | ||
76 | - | func | |
78 | + | func L () = "%s__allowedLpScriptHash" | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func M () = "%s__allowedLpStableScriptHash" | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
84 | + | func N () = "%s__swapContract" | |
83 | 85 | ||
84 | 86 | ||
85 | - | func | |
87 | + | func O () = "%s__factoryConfig" | |
86 | 88 | ||
87 | 89 | ||
88 | - | func | |
90 | + | func P () = "%s__lpTokensList" | |
89 | 91 | ||
90 | 92 | ||
91 | - | func | |
93 | + | func Q () = "%s%s__pool__scriptHash" | |
92 | 94 | ||
93 | 95 | ||
94 | - | func | |
96 | + | func R () = "%s%s__matcher__publicKey" | |
95 | 97 | ||
96 | 98 | ||
97 | - | func | |
99 | + | func S () = "%s__legacyFactoryContract" | |
98 | 100 | ||
99 | 101 | ||
100 | - | func | |
102 | + | func T () = "%s__legacyPools" | |
101 | 103 | ||
102 | 104 | ||
103 | - | func | |
105 | + | func U () = "%s__managerPublicKey" | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
108 | + | func V () = "%s__managerVaultAddress" | |
107 | 109 | ||
108 | 110 | ||
109 | - | func | |
111 | + | func W () = "%s__adminPubKeys" | |
110 | 112 | ||
111 | 113 | ||
112 | - | func | |
114 | + | func X () = "%s__assetsStoreContract" | |
113 | 115 | ||
114 | 116 | ||
115 | - | func | |
117 | + | func Y () = "%s__votingEmissionContract" | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func Z () = "%s__userPoolsContract" | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
123 | + | func aa () = makeString(["%s", "priceAssets"], m) | |
122 | 124 | ||
123 | 125 | ||
124 | - | func | |
126 | + | func ab () = "%s__priceDecimals" | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func ac () = "%s__shutdown" | |
128 | 130 | ||
129 | 131 | ||
130 | - | func ad ( | |
132 | + | func ad () = "%s__nextInternalAssetId" | |
131 | 133 | ||
132 | 134 | ||
133 | - | func | |
135 | + | func ae (af) = ("%s%s__poolWeight__" + af) | |
134 | 136 | ||
135 | 137 | ||
136 | - | func | |
138 | + | func ag (af,ah) = ((("%s%s__poolWeight__" + af) + "__") + toString(ah)) | |
137 | 139 | ||
138 | 140 | ||
139 | - | func ak (al) = { | |
140 | - | let am = al | |
141 | - | let ai = am._1 | |
142 | - | let aj = am._2 | |
143 | - | makeString(["%d%d%s", toString(ai), toString(aj), "oneTokenOperationsDisabled"], l) | |
141 | + | func ai (aj) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(aj)) | |
142 | + | ||
143 | + | ||
144 | + | func ak (al) = ("%s%s%s__mappings__baseAsset2internalId__" + al) | |
145 | + | ||
146 | + | ||
147 | + | func am (an,ao) = (((("%d%d%s__" + an) + "__") + ao) + "__config") | |
148 | + | ||
149 | + | ||
150 | + | func ap (aq) = { | |
151 | + | let ar = aq | |
152 | + | let an = ar._1 | |
153 | + | let ao = ar._2 | |
154 | + | makeString(["%d%d%s", toString(an), toString(ao), "oneTokenOperationsDisabled"], m) | |
144 | 155 | } | |
145 | 156 | ||
146 | 157 | ||
147 | - | func | |
158 | + | func as () = makeString(["%s", "oneTokenOperationsDisabled"], m) | |
148 | 159 | ||
149 | 160 | ||
150 | - | func | |
161 | + | func at (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2Pool") | |
151 | 162 | ||
152 | 163 | ||
153 | - | func | |
164 | + | func av (aw,ax) = (((("%d%d%s%s__" + aw) + "__") + ax) + "__mappings__PoolAssets2LpAsset") | |
154 | 165 | ||
155 | 166 | ||
156 | - | func | |
167 | + | func ay (af) = ("%s%s__spread__" + af) | |
157 | 168 | ||
158 | 169 | ||
159 | - | func | |
170 | + | func az (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2PoolAssets") | |
160 | 171 | ||
161 | 172 | ||
162 | - | func | |
173 | + | func aB (aw,ax) = (((("%d%d%s%s__" + toString(aw)) + "__") + toString(ax)) + "__mappings__poolAssets2PoolContract") | |
163 | 174 | ||
164 | 175 | ||
165 | - | func | |
176 | + | func aC (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2LpAsset") | |
166 | 177 | ||
167 | 178 | ||
168 | - | func | |
179 | + | func aD (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2PoolContract") | |
169 | 180 | ||
170 | 181 | ||
171 | - | func | |
182 | + | func aE (aF,aG) = ((("%s%s%s__wxEmission__" + aF) + "__") + aG) | |
172 | 183 | ||
173 | 184 | ||
174 | - | func | |
185 | + | func aH (af) = ("%s%s__inFee__" + af) | |
175 | 186 | ||
176 | 187 | ||
177 | - | func | |
188 | + | func aI () = "%s__inFeeDefault" | |
178 | 189 | ||
179 | 190 | ||
180 | - | func | |
191 | + | func aJ (af) = ("%s%s__outFee__" + af) | |
181 | 192 | ||
182 | 193 | ||
183 | - | func | |
194 | + | func aK () = "%s__outFeeDefault" | |
184 | 195 | ||
185 | 196 | ||
186 | - | func | |
197 | + | func aL (af) = ("%s%s__skipOrderValidation__" + af) | |
187 | 198 | ||
188 | 199 | ||
189 | - | func | |
200 | + | func aM (af) = ("%s%s__changeAmpDelay__" + af) | |
190 | 201 | ||
191 | 202 | ||
192 | - | func | |
203 | + | func aN (af) = ("%s%s__changeAmpDelta__" + af) | |
193 | 204 | ||
194 | 205 | ||
195 | - | func | |
206 | + | func aO (af) = ("%s%s__changeAmpTarget__" + af) | |
196 | 207 | ||
197 | 208 | ||
198 | - | func | |
209 | + | func aP () = "%s__sWavesProxyAddress" | |
199 | 210 | ||
200 | 211 | ||
201 | - | func | |
212 | + | func aQ () = "%s__sWavesAssetId" | |
202 | 213 | ||
203 | 214 | ||
204 | - | func | |
215 | + | func aR () = "%s__stakingProfitAddress" | |
205 | 216 | ||
206 | 217 | ||
207 | - | func | |
218 | + | func aS (af,aT) = makeString(["%s%s%s", "leasedRatio", af, aT], m) | |
208 | 219 | ||
209 | 220 | ||
210 | - | func | |
221 | + | func aU (aT) = makeString(["%s%s", "leasedRatioDefault", aT], m) | |
211 | 222 | ||
212 | 223 | ||
213 | - | func | |
224 | + | func aV (af,aT) = makeString(["%s%s%s", "leasedRatioTolerance", af, aT], m) | |
214 | 225 | ||
215 | 226 | ||
216 | - | func | |
227 | + | func aW (af,aT) = makeString(["%s%s%s", "minBalance", af, aT], m) | |
217 | 228 | ||
218 | 229 | ||
219 | - | func | |
230 | + | func aX (aT) = makeString(["%s%s", "minBalanceDefault", aT], m) | |
220 | 231 | ||
221 | 232 | ||
222 | - | func | |
233 | + | func aY (aZ) = valueOrErrorMessage(getString(this, aZ), ("No data for this.key=" + aZ)) | |
223 | 234 | ||
224 | 235 | ||
225 | - | func | |
236 | + | func ba (aZ) = valueOrErrorMessage(getBoolean(this, aZ), ("No data for this.key=" + aZ)) | |
226 | 237 | ||
227 | 238 | ||
228 | - | func | |
239 | + | func bb (aZ) = valueOrErrorMessage(getInteger(this, aZ), ("No data for this.key=" + aZ)) | |
229 | 240 | ||
230 | 241 | ||
231 | - | func | |
242 | + | func bc (bd) = if ((bd == j)) | |
232 | 243 | then unit | |
233 | - | else fromBase58String( | |
244 | + | else fromBase58String(bd) | |
234 | 245 | ||
235 | 246 | ||
236 | - | func | |
237 | - | let | |
238 | - | if ($isInstanceOf( | |
247 | + | func be () = { | |
248 | + | let bf = getString(V()) | |
249 | + | if ($isInstanceOf(bf, "String")) | |
239 | 250 | then { | |
240 | - | let | |
241 | - | addressFromStringValue( | |
251 | + | let bg = bf | |
252 | + | addressFromStringValue(bg) | |
242 | 253 | } | |
243 | 254 | else this | |
244 | 255 | } | |
245 | 256 | ||
246 | 257 | ||
247 | - | let | |
258 | + | let bh = 1 | |
248 | 259 | ||
249 | - | let | |
260 | + | let bi = 2 | |
250 | 261 | ||
251 | - | let | |
262 | + | let bj = 3 | |
252 | 263 | ||
253 | - | let | |
264 | + | let bk = 4 | |
254 | 265 | ||
255 | - | let | |
266 | + | let bl = 5 | |
256 | 267 | ||
257 | - | let | |
268 | + | let bm = 6 | |
258 | 269 | ||
259 | - | let | |
270 | + | let bn = 7 | |
260 | 271 | ||
261 | - | let | |
272 | + | let bo = 8 | |
262 | 273 | ||
263 | - | let | |
274 | + | let bp = 9 | |
264 | 275 | ||
265 | - | let | |
276 | + | let bq = 10 | |
266 | 277 | ||
267 | - | let | |
278 | + | let br = 11 | |
268 | 279 | ||
269 | - | func | |
280 | + | func bs (bt) = addressFromStringValue(bt[bi]) | |
270 | 281 | ||
271 | 282 | ||
272 | - | func | |
283 | + | func bu (bt) = addressFromStringValue(bt[bl]) | |
273 | 284 | ||
274 | 285 | ||
275 | - | func | |
286 | + | func bv (bt) = addressFromStringValue(bt[bh]) | |
276 | 287 | ||
277 | 288 | ||
278 | - | func | |
289 | + | func bw (bt) = addressFromStringValue(bt[bq]) | |
279 | 290 | ||
280 | 291 | ||
281 | - | func | |
282 | - | let | |
283 | - | if ($isInstanceOf( | |
292 | + | func bx () = { | |
293 | + | let bf = getString(aa()) | |
294 | + | if ($isInstanceOf(bf, "String")) | |
284 | 295 | then { | |
285 | - | let | |
286 | - | if ((size( | |
296 | + | let bg = bf | |
297 | + | if ((size(bg) == 0)) | |
287 | 298 | then nil | |
288 | - | else split( | |
299 | + | else split(bg, m) | |
289 | 300 | } | |
290 | 301 | else nil | |
291 | 302 | } | |
292 | 303 | ||
293 | 304 | ||
294 | - | func | |
295 | - | let | |
296 | - | let | |
297 | - | if ($isInstanceOf( | |
305 | + | func by () = { | |
306 | + | let bz = be() | |
307 | + | let bf = getString(bz, U()) | |
308 | + | if ($isInstanceOf(bf, "String")) | |
298 | 309 | then { | |
299 | - | let | |
300 | - | fromBase58String( | |
310 | + | let bg = bf | |
311 | + | fromBase58String(bg) | |
301 | 312 | } | |
302 | - | else if ($isInstanceOf( | |
313 | + | else if ($isInstanceOf(bf, "Unit")) | |
303 | 314 | then unit | |
304 | 315 | else throw("Match error") | |
305 | 316 | } | |
306 | 317 | ||
307 | 318 | ||
308 | - | let | |
319 | + | let bA = K("Permission denied") | |
309 | 320 | ||
310 | - | let | |
321 | + | let bB = K("Test error here") | |
311 | 322 | ||
312 | - | func | |
323 | + | func bC (bD) = if ((bD.caller == this)) | |
313 | 324 | then true | |
314 | - | else | |
325 | + | else bA | |
315 | 326 | ||
316 | 327 | ||
317 | - | func | |
318 | - | let | |
319 | - | if ($isInstanceOf( | |
328 | + | func bE (bD) = { | |
329 | + | let bf = by() | |
330 | + | if ($isInstanceOf(bf, "ByteVector")) | |
320 | 331 | then { | |
321 | - | let | |
322 | - | if (( | |
332 | + | let bF = bf | |
333 | + | if ((bD.callerPublicKey == bF)) | |
323 | 334 | then true | |
324 | - | else | |
335 | + | else bA | |
325 | 336 | } | |
326 | - | else if ($isInstanceOf( | |
327 | - | then | |
337 | + | else if ($isInstanceOf(bf, "Unit")) | |
338 | + | then bC(bD) | |
328 | 339 | else throw("Match error") | |
329 | 340 | } | |
330 | 341 | ||
331 | 342 | ||
332 | - | func | |
343 | + | func bG (bH,bI,bJ,bK,bL,bM,bN,bO,bP,bQ,bR) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR], m) | |
333 | 344 | ||
334 | 345 | ||
335 | - | func | |
346 | + | func bS (bH,bI,bJ,bK,bL,bM,bN) = makeString(["%s%s%s%s%s%s", bH, bI, bJ, bK, bL, bM, bN], m) | |
336 | 347 | ||
337 | 348 | ||
338 | - | func | |
349 | + | func bT (af,bU,bV,bW,bX,bY,bZ,ca,cb,cc,cd) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", af, bU, bV, bW, bX, toString(bY), toString(bZ), toString(ca), toString(cb), toString(cc), cd], m) | |
339 | 350 | ||
340 | 351 | ||
341 | - | func | |
352 | + | func ce (cf,cg) = makeString(["%d%d", toString(cf), toString(cg)], m) | |
342 | 353 | ||
343 | 354 | ||
344 | - | func | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | split( | |
355 | + | func ch (af) = { | |
356 | + | let ci = split(aY(az(af)), m) | |
357 | + | let an = ci[1] | |
358 | + | let ao = ci[2] | |
359 | + | split(aY(am(an, ao)), m) | |
349 | 360 | } | |
350 | 361 | ||
351 | 362 | ||
352 | - | func | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
363 | + | func cj (ck,cl) = { | |
364 | + | let cm = valueOrElse(getInteger(this, ak(ck)), 0) | |
365 | + | let cn = valueOrElse(getInteger(this, ad()), 0) | |
366 | + | let co = if ((cm == 0)) | |
356 | 367 | then { | |
357 | - | let | |
358 | - | $Tuple3( | |
368 | + | let cp = (cn + cl) | |
369 | + | $Tuple3(cp, [IntegerEntry(ad(), cp), IntegerEntry(ak(ck), cp), StringEntry(ai(cp), ck)], true) | |
359 | 370 | } | |
360 | - | else $Tuple3( | |
361 | - | | |
371 | + | else $Tuple3(cm, nil, false) | |
372 | + | co | |
362 | 373 | } | |
363 | 374 | ||
364 | 375 | ||
365 | - | func | |
366 | - | let | |
367 | - | if (containsElement( | |
376 | + | func cq (bD) = { | |
377 | + | let cr = split(valueOrElse(getString(W()), n), m) | |
378 | + | if (containsElement(cr, toBase58String(bD.callerPublicKey))) | |
368 | 379 | then true | |
369 | 380 | else { | |
370 | - | let | |
371 | - | if (( | |
381 | + | let cs = bE(bD) | |
382 | + | if ((cs == cs)) | |
372 | 383 | then true | |
373 | 384 | else throw("Strict value is not equal to itself.") | |
374 | 385 | } | |
375 | 386 | } | |
376 | 387 | ||
377 | 388 | ||
378 | - | func | |
389 | + | func ct (aZ,cu,cv) = valueOrElse(getInteger(this, aZ), valueOrElse(getInteger(this, cu), cv)) | |
379 | 390 | ||
380 | 391 | ||
381 | - | func | |
382 | - | let | |
383 | - | let | |
384 | - | if (if (( | |
392 | + | func cw (aF,aG) = { | |
393 | + | let an = getInteger(ak(aF)) | |
394 | + | let ao = getInteger(ak(aG)) | |
395 | + | if (if ((an == unit)) | |
385 | 396 | then true | |
386 | - | else ( | |
397 | + | else (ao == unit)) | |
387 | 398 | then false | |
388 | 399 | else { | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
400 | + | let cx = toString(value(an)) | |
401 | + | let cy = toString(value(ao)) | |
402 | + | let cz = getString(am(cx, cy)) | |
403 | + | let cA = getString(am(cy, cx)) | |
404 | + | let cB = if ((cz != unit)) | |
394 | 405 | then true | |
395 | - | else ( | |
396 | - | | |
406 | + | else (cA != unit) | |
407 | + | cB | |
397 | 408 | } | |
398 | 409 | } | |
399 | 410 | ||
400 | 411 | ||
401 | - | @Callable(by) | |
402 | - | func getSwapContractREADONLY () = $Tuple2(nil, aT(J())) | |
412 | + | func cC (aA) = { | |
413 | + | let ci = { | |
414 | + | let bf = getString(az(aA)) | |
415 | + | if ($isInstanceOf(bf, "String")) | |
416 | + | then { | |
417 | + | let bg = bf | |
418 | + | split(bg, m) | |
419 | + | } | |
420 | + | else K(makeString([aA, "pool is not found"], " ")) | |
421 | + | } | |
422 | + | let an = parseIntValue(ci[1]) | |
423 | + | let ao = parseIntValue(ci[2]) | |
424 | + | let aF = getStringValue(ai(an)) | |
425 | + | let aG = getStringValue(ai(ao)) | |
426 | + | let bV = getStringValue(aC(aA)) | |
427 | + | $Tuple5(aF, aG, bV, an, ao) | |
428 | + | } | |
429 | + | ||
430 | + | ||
431 | + | func cD (aA) = { | |
432 | + | let cE = cC(aA) | |
433 | + | let aF = cE._1 | |
434 | + | let aG = cE._2 | |
435 | + | let bV = cE._3 | |
436 | + | let an = cE._4 | |
437 | + | let ao = cE._5 | |
438 | + | let cF = addressFromStringValue(getStringValue(Z())) | |
439 | + | let cG = invoke(cF, "getPoolCreatorREADONLY", [aF, aG], nil) | |
440 | + | cG | |
441 | + | } | |
442 | + | ||
443 | + | ||
444 | + | func cH (cI,cJ) = { | |
445 | + | let cK = addressFromStringValue(cI) | |
446 | + | if ((cJ == "WAVES")) | |
447 | + | then wavesBalance(cK).regular | |
448 | + | else { | |
449 | + | let aT = fromBase58String(cJ) | |
450 | + | assetBalance(cK, aT) | |
451 | + | } | |
452 | + | } | |
453 | + | ||
454 | + | ||
455 | + | func cL (aA) = { | |
456 | + | let cM = cC(aA) | |
457 | + | let aF = cM._1 | |
458 | + | let aG = cM._2 | |
459 | + | let bV = cM._3 | |
460 | + | let an = cM._4 | |
461 | + | let ao = cM._5 | |
462 | + | if ((cH(aA, aF) == 0)) | |
463 | + | then (cH(aA, aG) == 0) | |
464 | + | else false | |
465 | + | } | |
466 | + | ||
467 | + | ||
468 | + | @Callable(bD) | |
469 | + | func getSwapContractREADONLY () = $Tuple2(nil, aY(N())) | |
403 | 470 | ||
404 | 471 | ||
405 | 472 | ||
406 | - | @Callable( | |
407 | - | func getPoolLeaseConfigREADONLY ( | |
408 | - | let | |
409 | - | let | |
410 | - | if ($isInstanceOf( | |
473 | + | @Callable(bD) | |
474 | + | func getPoolLeaseConfigREADONLY (af,aT) = { | |
475 | + | let cN = { | |
476 | + | let bf = getInteger(this, aS(af, aT)) | |
477 | + | if ($isInstanceOf(bf, "Int")) | |
411 | 478 | then { | |
412 | - | let | |
413 | - | $Tuple2(true, min([100, max([0, | |
479 | + | let cO = bf | |
480 | + | $Tuple2(true, min([100, max([0, cO])])) | |
414 | 481 | } | |
415 | 482 | else { | |
416 | - | let | |
417 | - | if ($isInstanceOf( | |
483 | + | let cP = getInteger(this, aU(aT)) | |
484 | + | if ($isInstanceOf(cP, "Int")) | |
418 | 485 | then { | |
419 | - | let | |
420 | - | $Tuple2(true, min([100, max([0, | |
486 | + | let cQ = cP | |
487 | + | $Tuple2(true, min([100, max([0, cQ])])) | |
421 | 488 | } | |
422 | 489 | else $Tuple2(false, 0) | |
423 | 490 | } | |
424 | 491 | } | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | if ($isInstanceOf( | |
492 | + | let cR = cN._1 | |
493 | + | let cS = cN._2 | |
494 | + | let cT = { | |
495 | + | let bf = getInteger(this, aW(af, aT)) | |
496 | + | if ($isInstanceOf(bf, "Int")) | |
430 | 497 | then { | |
431 | - | let | |
432 | - | max([0, | |
498 | + | let cU = bf | |
499 | + | max([0, cU]) | |
433 | 500 | } | |
434 | 501 | else { | |
435 | - | let | |
436 | - | if ($isInstanceOf( | |
502 | + | let cP = getInteger(this, aX(aT)) | |
503 | + | if ($isInstanceOf(cP, "Int")) | |
437 | 504 | then { | |
438 | - | let | |
439 | - | max([0, | |
505 | + | let cV = cP | |
506 | + | max([0, cV]) | |
440 | 507 | } | |
441 | 508 | else 0 | |
442 | 509 | } | |
443 | 510 | } | |
444 | - | let | |
445 | - | then $Tuple3(valueOrElse(getString(this, | |
511 | + | let cW = if ((aT == "WAVES")) | |
512 | + | then $Tuple3(valueOrElse(getString(this, aP()), ""), getString(this, valueOrElse(aQ(), "")), c) | |
446 | 513 | else $Tuple3("", "", 0) | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | $Tuple2(nil, $Tuple7( | |
514 | + | let cX = cW._1 | |
515 | + | let cY = cW._2 | |
516 | + | let cZ = cW._3 | |
517 | + | let da = valueOrElse(getString(this, aR()), "") | |
518 | + | $Tuple2(nil, $Tuple7(cR, cS, cT, cX, cY, cZ, da)) | |
452 | 519 | } | |
453 | 520 | ||
454 | 521 | ||
455 | 522 | ||
456 | - | @Callable( | |
457 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
458 | - | then ( | |
523 | + | @Callable(bD) | |
524 | + | func getLpAssetFromPoolAssetsREADONLY (db,dc) = if (if ((db == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
525 | + | then (dc == "WAVES") | |
459 | 526 | else false) | |
460 | 527 | then $Tuple2(nil, unit) | |
461 | 528 | else { | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
529 | + | let dd = value(getInteger(this, ak(db))) | |
530 | + | let de = value(getInteger(this, ak(dc))) | |
531 | + | let df = getString(this, av(toString(dd), toString(de))) | |
532 | + | let dg = if ((df == unit)) | |
466 | 533 | then unit | |
467 | - | else drop(value( | |
468 | - | $Tuple2(nil, | |
534 | + | else drop(value(df), 4) | |
535 | + | $Tuple2(nil, dg) | |
469 | 536 | } | |
470 | 537 | ||
471 | 538 | ||
472 | 539 | ||
473 | - | @Callable( | |
474 | - | func getPoolAddressFromLpAssetREADONLY ( | |
540 | + | @Callable(bD) | |
541 | + | func getPoolAddressFromLpAssetREADONLY (dh) = $Tuple2(nil, valueOrElse(getString(this, aD(dh)), "")) | |
475 | 542 | ||
476 | 543 | ||
477 | 544 | ||
478 | - | @Callable( | |
479 | - | func constructor ( | |
480 | - | let | |
481 | - | if (( | |
482 | - | then [StringEntry( | |
545 | + | @Callable(bD) | |
546 | + | func constructor (di,dj,bJ,bK,bL,bM,dk,dl) = { | |
547 | + | let dm = bE(bD) | |
548 | + | if ((dm == dm)) | |
549 | + | then [StringEntry(O(), bS(di, dj, bJ, bK, bL, bM, dk)), IntegerEntry(ab(), dl)] | |
483 | 550 | else throw("Strict value is not equal to itself.") | |
484 | 551 | } | |
485 | 552 | ||
486 | 553 | ||
487 | 554 | ||
488 | - | @Callable( | |
489 | - | func constructorV2 ( | |
490 | - | let | |
491 | - | if (( | |
555 | + | @Callable(bD) | |
556 | + | func constructorV2 (dn) = { | |
557 | + | let dm = bE(bD) | |
558 | + | if ((dm == dm)) | |
492 | 559 | then { | |
493 | - | let | |
494 | - | if (( | |
495 | - | then [StringEntry( | |
560 | + | let do = addressFromPublicKey(fromBase58String(dn)) | |
561 | + | if ((do == do)) | |
562 | + | then [StringEntry(R(), dn)] | |
496 | 563 | else throw("Strict value is not equal to itself.") | |
497 | 564 | } | |
498 | 565 | else throw("Strict value is not equal to itself.") | |
500 | 567 | ||
501 | 568 | ||
502 | 569 | ||
503 | - | @Callable( | |
504 | - | func constructorV3 ( | |
505 | - | let | |
506 | - | if (( | |
570 | + | @Callable(bD) | |
571 | + | func constructorV3 (bO,bP,bQ,bR) = { | |
572 | + | let dm = bE(bD) | |
573 | + | if ((dm == dm)) | |
507 | 574 | then { | |
508 | - | let | |
509 | - | [StringEntry( | |
575 | + | let bt = split(aY(O()), m) | |
576 | + | [StringEntry(O(), bG(bt[1], bt[2], bt[3], bt[4], bt[5], bt[6], bt[7], bO, bP, bQ, bR))] | |
510 | 577 | } | |
511 | 578 | else throw("Strict value is not equal to itself.") | |
512 | 579 | } | |
513 | 580 | ||
514 | 581 | ||
515 | 582 | ||
516 | - | @Callable( | |
517 | - | func constructorV4 ( | |
518 | - | let | |
519 | - | if (( | |
520 | - | then [StringEntry( | |
583 | + | @Callable(bD) | |
584 | + | func constructorV4 (dp,dq) = { | |
585 | + | let dm = bE(bD) | |
586 | + | if ((dm == dm)) | |
587 | + | then [StringEntry(S(), dp), StringEntry(T(), makeString(dq, m))] | |
521 | 588 | else throw("Strict value is not equal to itself.") | |
522 | 589 | } | |
523 | 590 | ||
524 | 591 | ||
525 | 592 | ||
526 | - | @Callable( | |
527 | - | func constructorV5 ( | |
528 | - | let | |
529 | - | if (( | |
530 | - | then [StringEntry( | |
593 | + | @Callable(bD) | |
594 | + | func constructorV5 (dr) = { | |
595 | + | let dm = bE(bD) | |
596 | + | if ((dm == dm)) | |
597 | + | then [StringEntry(X(), dr)] | |
531 | 598 | else throw("Strict value is not equal to itself.") | |
532 | 599 | } | |
533 | 600 | ||
534 | 601 | ||
535 | 602 | ||
536 | - | @Callable( | |
537 | - | func constructorV6 ( | |
538 | - | let | |
603 | + | @Callable(bD) | |
604 | + | func constructorV6 (ds,dt) = { | |
605 | + | let du = [bE(bD), if ((addressFromString(ds) != unit)) | |
539 | 606 | then true | |
540 | 607 | else "invalid voting emission contract address"] | |
541 | - | if (( | |
542 | - | then [StringEntry( | |
608 | + | if ((du == du)) | |
609 | + | then [StringEntry(Y(), ds), StringEntry(aa(), makeString(dt, m))] | |
543 | 610 | else throw("Strict value is not equal to itself.") | |
544 | 611 | } | |
545 | 612 | ||
546 | 613 | ||
547 | 614 | ||
548 | - | @Callable( | |
549 | - | func setAdmins ( | |
550 | - | let | |
551 | - | if (( | |
552 | - | then [StringEntry( | |
615 | + | @Callable(bD) | |
616 | + | func setAdmins (dv) = { | |
617 | + | let dm = bE(bD) | |
618 | + | if ((dm == dm)) | |
619 | + | then [StringEntry(W(), makeString(dv, m))] | |
553 | 620 | else throw("Strict value is not equal to itself.") | |
554 | 621 | } | |
555 | 622 | ||
556 | 623 | ||
557 | 624 | ||
558 | - | @Callable( | |
559 | - | func activateNewPool ( | |
560 | - | let | |
561 | - | if (( | |
562 | - | then if (isDefined(getString( | |
563 | - | then | |
625 | + | @Callable(bD) | |
626 | + | func activateNewPool (af,bW,bX,dw,dx,dy,cd,dz) = { | |
627 | + | let dm = cq(bD) | |
628 | + | if ((dm == dm)) | |
629 | + | then if (isDefined(getString(az(af)))) | |
630 | + | then K((("Pool address " + af) + " already registered.")) | |
564 | 631 | else { | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
632 | + | let dA = cj(bW, 1) | |
633 | + | let dB = dA._1 | |
634 | + | let dC = cj(bX, if (dA._3) | |
568 | 635 | then 2 | |
569 | 636 | else 1) | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | if ( | |
575 | - | then | |
637 | + | let dD = dC._1 | |
638 | + | let dE = valueOrErrorMessage(scriptHash(addressFromStringValue(af)), ("No script has been found on pool account " + af)) | |
639 | + | let dF = getBinaryValue(Q()) | |
640 | + | let dG = cw(bW, bX) | |
641 | + | if (dG) | |
642 | + | then K((((("Pool " + bW) + "/") + bX) + " has already been activated.")) | |
576 | 643 | else { | |
577 | - | let | |
578 | - | let | |
579 | - | then | |
580 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
581 | - | let | |
582 | - | then | |
583 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | if (( | |
589 | - | then if (( | |
590 | - | then | |
644 | + | let dH = value(getString(this, am(toString(dB), toString(dD)))) | |
645 | + | let dI = if ((bW == "WAVES")) | |
646 | + | then l | |
647 | + | else pow(10, 0, value(assetInfo(fromBase58String(bW))).decimals, 0, 0, DOWN) | |
648 | + | let dJ = if ((bX == "WAVES")) | |
649 | + | then l | |
650 | + | else pow(10, 0, value(assetInfo(fromBase58String(bX))).decimals, 0, 0, DOWN) | |
651 | + | let dK = Issue(dw, dx, 1, 8, true) | |
652 | + | let bV = calculateAssetId(dK) | |
653 | + | let dL = toBase58String(bV) | |
654 | + | let dM = invoke(addressFromStringValue(af), "activate", [bW, bX], nil) | |
655 | + | if ((dM == dM)) | |
656 | + | then if ((dM != "success")) | |
657 | + | then K("Pool initialisation error happened.") | |
591 | 658 | else { | |
592 | - | let | |
593 | - | let | |
594 | - | if (( | |
659 | + | let dr = addressFromStringValue(aY(X())) | |
660 | + | let dN = invoke(dr, "createOrUpdate", [dL, dw, false], nil) | |
661 | + | if ((dN == dN)) | |
595 | 662 | then { | |
596 | - | let | |
597 | - | if (( | |
663 | + | let dO = invoke(dr, "addLabel", [dL, h], nil) | |
664 | + | if ((dO == dO)) | |
598 | 665 | then { | |
599 | - | let | |
600 | - | if (( | |
666 | + | let dP = invoke(dr, "setLogo", [dL, dz], nil) | |
667 | + | if ((dP == dP)) | |
601 | 668 | then { | |
602 | - | let | |
603 | - | if (( | |
669 | + | let dQ = invoke(dr, "addAssetsLink", [bW, bX, dL], nil) | |
670 | + | if ((dQ == dQ)) | |
604 | 671 | then { | |
605 | - | let | |
606 | - | if (( | |
607 | - | then $Tuple2((( | |
672 | + | let dR = invoke(dr, "increaseAssetPoolsNumber", [bW], nil) | |
673 | + | if ((dR == dR)) | |
674 | + | then $Tuple2(((dA._2 ++ dC._2) ++ [dK, Burn(bV, 1), StringEntry(am(toString(dB), toString(dD)), bT(af, toString(o), dL, bW, bX, dI, dJ, dB, dD, l, cd)), StringEntry(at(dL), ce(dB, dD)), StringEntry(av(toString(dB), toString(dD)), ("%s__" + dL)), StringEntry(az(af), ce(dB, dD)), StringEntry(aB(dB, dD), af), StringEntry(aD(dL), af), StringEntry(aC(af), dL), IntegerEntry(ae(af), dy), IntegerEntry(ay(af), i)]), dL) | |
608 | 675 | else throw("Strict value is not equal to itself.") | |
609 | 676 | } | |
610 | 677 | else throw("Strict value is not equal to itself.") | |
623 | 690 | ||
624 | 691 | ||
625 | 692 | ||
626 | - | @Callable( | |
627 | - | func managePool ( | |
628 | - | let | |
629 | - | if (( | |
693 | + | @Callable(bD) | |
694 | + | func managePool (af,dS) = { | |
695 | + | let dm = bE(bD) | |
696 | + | if ((dm == dm)) | |
630 | 697 | then { | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | [StringEntry( | |
698 | + | let dT = ch(af) | |
699 | + | let bU = dT[w] | |
700 | + | let dL = dT[x] | |
701 | + | let bW = dT[y] | |
702 | + | let bX = dT[z] | |
703 | + | let dI = parseIntValue(dT[A]) | |
704 | + | let dJ = parseIntValue(dT[B]) | |
705 | + | let dB = parseIntValue(dT[C]) | |
706 | + | let dD = parseIntValue(dT[D]) | |
707 | + | let dU = parseIntValue(dT[E]) | |
708 | + | let cd = dT[F] | |
709 | + | [StringEntry(am(toString(dB), toString(dD)), bT(af, toString(dS), dL, bW, bX, dI, dJ, dB, dD, dU, cd))] | |
643 | 710 | } | |
644 | 711 | else throw("Strict value is not equal to itself.") | |
645 | 712 | } | |
646 | 713 | ||
647 | 714 | ||
648 | 715 | ||
649 | - | @Callable( | |
650 | - | func emit ( | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | if ((0 >= | |
716 | + | @Callable(bD) | |
717 | + | func emit (dV) = { | |
718 | + | let dW = bD.caller | |
719 | + | let dX = bD.originCaller | |
720 | + | let dY = valueOrErrorMessage(getString(aC(toString(dW))), "Invalid LP address called me.") | |
721 | + | let dZ = fromBase58String(dY) | |
722 | + | let dq = split(valueOrElse(getString(T()), n), m) | |
723 | + | let dp = addressFromStringValue(valueOrErrorMessage(getString(S()), "Legacy factory contract does not exists.")) | |
724 | + | if ((0 >= dV)) | |
658 | 725 | then nil | |
659 | - | else if (containsElement( | |
660 | - | then $Tuple2(nil, | |
661 | - | else $Tuple2([Reissue( | |
726 | + | else if (containsElement(dq, toString(dW))) | |
727 | + | then $Tuple2(nil, dp) | |
728 | + | else $Tuple2([Reissue(dZ, dV, true), ScriptTransfer(bD.caller, dV, dZ)], "success") | |
662 | 729 | } | |
663 | 730 | ||
664 | 731 | ||
665 | 732 | ||
666 | - | @Callable( | |
667 | - | func burn ( | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | if (( | |
675 | - | then | |
676 | - | else if (( | |
677 | - | then | |
733 | + | @Callable(bD) | |
734 | + | func burn (ea) = { | |
735 | + | let dW = bD.caller | |
736 | + | let dX = bD.originCaller | |
737 | + | let eb = value(bD.payments[0]) | |
738 | + | let ec = value(eb.amount) | |
739 | + | let ed = toBase58String(value(eb.assetId)) | |
740 | + | let ee = valueOrErrorMessage(getString(aC(toString(dW))), "Invalid LP address called me.") | |
741 | + | if ((ed != ee)) | |
742 | + | then K("Invalid asset passed.") | |
743 | + | else if ((ea != ec)) | |
744 | + | then K("Invalid amount passed.") | |
678 | 745 | else { | |
679 | - | let | |
680 | - | $Tuple2([Burn( | |
746 | + | let dZ = fromBase58String(ee) | |
747 | + | $Tuple2([Burn(dZ, ea)], "success") | |
681 | 748 | } | |
682 | 749 | } | |
683 | 750 | ||
684 | 751 | ||
685 | 752 | ||
686 | - | @Callable( | |
687 | - | func modifyWeight ( | |
688 | - | let | |
753 | + | @Callable(bD) | |
754 | + | func modifyWeight (bV,ef) = { | |
755 | + | let dm = if ((toBase58String(bD.caller.bytes) == valueOrElse(getString(this, Y()), ""))) | |
689 | 756 | then true | |
690 | - | else | |
691 | - | if (( | |
757 | + | else bE(bD) | |
758 | + | if ((dm == dm)) | |
692 | 759 | then { | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | if (( | |
760 | + | let aA = aY(aD(bV)) | |
761 | + | let eg = ae(aA) | |
762 | + | let eh = ae(g) | |
763 | + | let ei = valueOrElse(getInteger(eh), 0) | |
764 | + | let dy = valueOrElse(getInteger(eg), 0) | |
765 | + | let ej = ef | |
766 | + | let bt = split(aY(O()), m) | |
767 | + | let di = bv(bt) | |
768 | + | let ek = invoke(di, "onModifyWeight", [bV, aA], nil) | |
769 | + | if ((ek == ek)) | |
703 | 770 | then { | |
704 | - | let | |
771 | + | let el = if ((ei == 0)) | |
705 | 772 | then nil | |
706 | - | else [IntegerEntry( | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
773 | + | else [IntegerEntry(eh, 0)] | |
774 | + | let em = ag(aA, 0) | |
775 | + | let en = getInteger(em) | |
776 | + | let eo = if ((en == unit)) | |
710 | 777 | then nil | |
711 | - | else [DeleteEntry( | |
712 | - | (([IntegerEntry( | |
778 | + | else [DeleteEntry(em)] | |
779 | + | (([IntegerEntry(eg, ej)] ++ el) ++ eo) | |
713 | 780 | } | |
714 | 781 | else throw("Strict value is not equal to itself.") | |
715 | 782 | } | |
718 | 785 | ||
719 | 786 | ||
720 | 787 | ||
721 | - | @Callable( | |
722 | - | func modifyWeights ( | |
723 | - | let | |
724 | - | if (( | |
788 | + | @Callable(bD) | |
789 | + | func modifyWeights (ep,eq,er,es) = { | |
790 | + | let dm = bE(bD) | |
791 | + | if ((dm == dm)) | |
725 | 792 | then { | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | if ((0 >= | |
741 | - | then | |
742 | - | else if ((0 >= | |
743 | - | then | |
793 | + | let et = ((5 * f) / 100) | |
794 | + | let eu = ((5 * f) / 100) | |
795 | + | let ev = ((5 * f) / 100) | |
796 | + | let bt = split(aY(O()), m) | |
797 | + | let ew = bv(bt) | |
798 | + | let ex = bw(bt) | |
799 | + | let ey = ae(ep) | |
800 | + | let ez = ae(eq) | |
801 | + | let eA = ae(er) | |
802 | + | let eB = ae(es) | |
803 | + | let eC = bb(ey) | |
804 | + | let eD = bb(ez) | |
805 | + | let eE = (eC - ev) | |
806 | + | let eF = (eD - ev) | |
807 | + | if ((0 >= eE)) | |
808 | + | then K(("invalid btcWeightNew: " + toString(eE))) | |
809 | + | else if ((0 >= eF)) | |
810 | + | then K(("invalid ethWeightNew: " + toString(eF))) | |
744 | 811 | else { | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | if (( | |
812 | + | let eG = aY(aC(ep)) | |
813 | + | let eH = aY(aC(eq)) | |
814 | + | let eI = aY(aC(er)) | |
815 | + | let eJ = aY(aC(es)) | |
816 | + | let eK = invoke(ew, "onModifyWeight", [eG, ep], nil) | |
817 | + | if ((eK == eK)) | |
751 | 818 | then { | |
752 | - | let | |
753 | - | if (( | |
819 | + | let eL = invoke(ew, "onModifyWeight", [eH, eq], nil) | |
820 | + | if ((eL == eL)) | |
754 | 821 | then { | |
755 | - | let | |
756 | - | if (( | |
822 | + | let eM = invoke(ew, "onModifyWeight", [eI, er], nil) | |
823 | + | if ((eM == eM)) | |
757 | 824 | then { | |
758 | - | let | |
759 | - | if (( | |
760 | - | then [IntegerEntry( | |
825 | + | let eN = invoke(ew, "onModifyWeight", [eJ, es], nil) | |
826 | + | if ((eN == eN)) | |
827 | + | then [IntegerEntry(ey, eE), IntegerEntry(ez, eF), IntegerEntry(eA, et), IntegerEntry(eB, eu), IntegerEntry(ag(ep, 0), eC), IntegerEntry(ag(eq, 0), eD), IntegerEntry(ag(er, 0), et), IntegerEntry(ag(es, 0), eu)] | |
761 | 828 | else throw("Strict value is not equal to itself.") | |
762 | 829 | } | |
763 | 830 | else throw("Strict value is not equal to itself.") | |
772 | 839 | ||
773 | 840 | ||
774 | 841 | ||
775 | - | @Callable( | |
776 | - | func checkWxEmissionPoolLabel ( | |
777 | - | let | |
778 | - | let | |
779 | - | if ($isInstanceOf( | |
842 | + | @Callable(bD) | |
843 | + | func checkWxEmissionPoolLabel (aF,aG) = { | |
844 | + | let eO = { | |
845 | + | let bf = getBoolean(aE(aF, aG)) | |
846 | + | if ($isInstanceOf(bf, "Boolean")) | |
780 | 847 | then { | |
781 | - | let | |
782 | - | | |
848 | + | let cU = bf | |
849 | + | cU | |
783 | 850 | } | |
784 | 851 | else false | |
785 | 852 | } | |
786 | - | $Tuple2(nil, | |
853 | + | $Tuple2(nil, eO) | |
787 | 854 | } | |
788 | 855 | ||
789 | 856 | ||
790 | 857 | ||
791 | - | @Callable( | |
792 | - | func setWxEmissionPoolLabel ( | |
793 | - | let | |
794 | - | if (( | |
795 | - | then $Tuple2([BooleanEntry( | |
858 | + | @Callable(bD) | |
859 | + | func setWxEmissionPoolLabel (aF,aG) = { | |
860 | + | let dm = cq(bD) | |
861 | + | if ((dm == dm)) | |
862 | + | then $Tuple2([BooleanEntry(aE(aF, aG), true)], unit) | |
796 | 863 | else throw("Strict value is not equal to itself.") | |
797 | 864 | } | |
798 | 865 | ||
799 | 866 | ||
800 | 867 | ||
801 | - | @Callable( | |
802 | - | func deleteWxEmissionPoolLabel ( | |
803 | - | let | |
868 | + | @Callable(bD) | |
869 | + | func deleteWxEmissionPoolLabel (aF,aG) = { | |
870 | + | let dm = if ((bD.caller == this)) | |
804 | 871 | then true | |
805 | - | else | |
806 | - | if (( | |
807 | - | then $Tuple2([DeleteEntry( | |
872 | + | else cq(bD) | |
873 | + | if ((dm == dm)) | |
874 | + | then $Tuple2([DeleteEntry(aE(aF, aG))], unit) | |
808 | 875 | else throw("Strict value is not equal to itself.") | |
809 | 876 | } | |
810 | 877 | ||
811 | 878 | ||
812 | 879 | ||
813 | - | @Callable( | |
814 | - | func onVerificationLoss ( | |
815 | - | let | |
880 | + | @Callable(bD) | |
881 | + | func onVerificationLoss (aT) = { | |
882 | + | let dm = if ((toBase58String(bD.caller.bytes) == valueOrElse(getString(this, X()), ""))) | |
816 | 883 | then true | |
817 | - | else | |
818 | - | if (( | |
884 | + | else bE(bD) | |
885 | + | if ((dm == dm)) | |
819 | 886 | then { | |
820 | - | let | |
821 | - | let | |
887 | + | let dt = bx() | |
888 | + | let eP = if ((size(dt) > 0)) | |
822 | 889 | then true | |
823 | - | else | |
824 | - | if (( | |
890 | + | else K("invalid price assets") | |
891 | + | if ((eP == eP)) | |
825 | 892 | then { | |
826 | - | func | |
827 | - | let | |
828 | - | if (( | |
893 | + | func eQ (eR,eS) = { | |
894 | + | let cO = invoke(this, "deleteWxEmissionPoolLabel", [aT, eS], nil) | |
895 | + | if ((cO == cO)) | |
829 | 896 | then unit | |
830 | 897 | else throw("Strict value is not equal to itself.") | |
831 | 898 | } | |
832 | 899 | ||
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | func | |
838 | - | then | |
839 | - | else | |
900 | + | let eT = { | |
901 | + | let eU = dt | |
902 | + | let eV = size(eU) | |
903 | + | let eW = unit | |
904 | + | func eX (eY,eZ) = if ((eZ >= eV)) | |
905 | + | then eY | |
906 | + | else eQ(eY, eU[eZ]) | |
840 | 907 | ||
841 | - | func | |
842 | - | then | |
908 | + | func fa (eY,eZ) = if ((eZ >= eV)) | |
909 | + | then eY | |
843 | 910 | else throw("List size exceeds 11") | |
844 | 911 | ||
845 | - | | |
912 | + | fa(eX(eX(eX(eX(eX(eX(eX(eX(eX(eX(eX(eW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11) | |
846 | 913 | } | |
847 | - | if (( | |
914 | + | if ((eT == eT)) | |
848 | 915 | then $Tuple2(nil, unit) | |
849 | 916 | else throw("Strict value is not equal to itself.") | |
850 | 917 | } | |
855 | 922 | ||
856 | 923 | ||
857 | 924 | ||
858 | - | @Callable( | |
859 | - | func isPoolOneTokenOperationsDisabledREADONLY ( | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | $Tuple2(nil, if ( | |
925 | + | @Callable(bD) | |
926 | + | func isPoolOneTokenOperationsDisabledREADONLY (af) = { | |
927 | + | let dT = ch(af) | |
928 | + | let aq = $Tuple2(parseIntValue(dT[C]), parseIntValue(dT[D])) | |
929 | + | let fb = valueOrElse(getBoolean(ap(aq)), false) | |
930 | + | let fc = valueOrElse(getBoolean(as()), false) | |
931 | + | $Tuple2(nil, if (fc) | |
865 | 932 | then true | |
866 | - | else | |
933 | + | else fb) | |
867 | 934 | } | |
868 | 935 | ||
869 | 936 | ||
870 | 937 | ||
871 | - | @Callable( | |
872 | - | func getInFeeREADONLY ( | |
873 | - | let | |
874 | - | $Tuple2(nil, | |
938 | + | @Callable(bD) | |
939 | + | func getInFeeREADONLY (af) = { | |
940 | + | let fd = ct(aH(af), aI(), 0) | |
941 | + | $Tuple2(nil, fd) | |
875 | 942 | } | |
876 | 943 | ||
877 | 944 | ||
878 | 945 | ||
879 | - | @Callable( | |
880 | - | func getOutFeeREADONLY ( | |
881 | - | let | |
882 | - | $Tuple2(nil, | |
946 | + | @Callable(bD) | |
947 | + | func getOutFeeREADONLY (af) = { | |
948 | + | let fd = ct(aJ(af), aK(), fraction(10, b, 10000)) | |
949 | + | $Tuple2(nil, fd) | |
883 | 950 | } | |
884 | 951 | ||
885 | 952 | ||
886 | 953 | ||
887 | - | @Callable( | |
888 | - | func poolInfoREADONLY ( | |
889 | - | let | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | then isDefined( | |
954 | + | @Callable(bD) | |
955 | + | func poolInfoREADONLY (fe,ff) = { | |
956 | + | let fg = getInteger(this, ak(fe)) | |
957 | + | let fh = getInteger(this, ak(ff)) | |
958 | + | let fi = getString(this, aB(value(fg), value(fh))) | |
959 | + | let fj = getString(this, aC(value(fi))) | |
960 | + | let dG = if (if (isDefined(fg)) | |
961 | + | then isDefined(fh) | |
895 | 962 | else false) | |
896 | - | then isDefined( | |
963 | + | then isDefined(fi) | |
897 | 964 | else false | |
898 | - | let | |
899 | - | then $Tuple2(addressFromStringValue(value( | |
965 | + | let fk = if (dG) | |
966 | + | then $Tuple2(addressFromStringValue(value(fi)), bc(value(fj))) | |
900 | 967 | else unit | |
901 | - | $Tuple2(nil, | |
968 | + | $Tuple2(nil, fk) | |
902 | 969 | } | |
903 | 970 | ||
904 | 971 | ||
905 | 972 | ||
906 | - | @Callable( | |
907 | - | func getPoolStatusREADONLY ( | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | $Tuple2(nil, parseIntValue( | |
973 | + | @Callable(bD) | |
974 | + | func getPoolStatusREADONLY (af) = { | |
975 | + | let ci = split(aY(az(af)), m) | |
976 | + | let an = ci[1] | |
977 | + | let ao = ci[2] | |
978 | + | let cz = split(aY(am(an, ao)), m) | |
979 | + | $Tuple2(nil, parseIntValue(cz[w])) | |
913 | 980 | } | |
914 | 981 | ||
915 | 982 | ||
916 | 983 | ||
917 | - | @Callable( | |
918 | - | func getPoolConfigREADONLY ( | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | $Tuple2(nil, | |
984 | + | @Callable(bD) | |
985 | + | func getPoolConfigREADONLY (af) = { | |
986 | + | let ci = split(aY(az(af)), m) | |
987 | + | let an = ci[1] | |
988 | + | let ao = ci[2] | |
989 | + | let cz = split(aY(am(an, ao)), m) | |
990 | + | $Tuple2(nil, cz) | |
924 | 991 | } | |
925 | 992 | ||
926 | 993 | ||
927 | 994 | ||
928 | - | @Callable( | |
929 | - | func getPoolConfigByLpAssetIdREADONLY ( | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | $Tuple2(nil, | |
995 | + | @Callable(bD) | |
996 | + | func getPoolConfigByLpAssetIdREADONLY (dL) = { | |
997 | + | let ci = split(aY(at(dL)), m) | |
998 | + | let an = ci[1] | |
999 | + | let ao = ci[2] | |
1000 | + | let cz = split(aY(am(an, ao)), m) | |
1001 | + | $Tuple2(nil, cz) | |
935 | 1002 | } | |
936 | 1003 | ||
937 | 1004 | ||
938 | 1005 | ||
939 | - | @Callable( | |
940 | - | func poolExistsREADONLY ( | |
1006 | + | @Callable(bD) | |
1007 | + | func poolExistsREADONLY (aF,aG) = $Tuple2(nil, cw(aF, aG)) | |
941 | 1008 | ||
942 | 1009 | ||
943 | 1010 | ||
944 | - | @Callable( | |
945 | - | func skipOrderValidationREADONLY ( | |
1011 | + | @Callable(bD) | |
1012 | + | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aL(af)), false)) | |
946 | 1013 | ||
947 | 1014 | ||
948 | 1015 | ||
949 | - | @Callable( | |
950 | - | func getChangeAmpConfigREADONLY ( | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | $Tuple2(nil, [ | |
1016 | + | @Callable(bD) | |
1017 | + | func getChangeAmpConfigREADONLY (af) = { | |
1018 | + | let fl = getIntegerValue(aM(af)) | |
1019 | + | let fm = getIntegerValue(aN(af)) | |
1020 | + | let fn = getIntegerValue(aO(af)) | |
1021 | + | $Tuple2(nil, [fl, fm, fn]) | |
955 | 1022 | } | |
956 | 1023 | ||
957 | 1024 | ||
958 | 1025 | ||
959 | - | @Callable( | |
960 | - | func getPoolWeightREADONLY ( | |
961 | - | let | |
962 | - | let | |
963 | - | $Tuple2(nil, | |
1026 | + | @Callable(bD) | |
1027 | + | func getPoolWeightREADONLY (bV) = { | |
1028 | + | let af = aY(aD(bV)) | |
1029 | + | let fo = valueOrElse(getInteger(ae(af)), 0) | |
1030 | + | $Tuple2(nil, fo) | |
964 | 1031 | } | |
965 | 1032 | ||
966 | 1033 | ||
967 | - | @Verifier(eZ) | |
968 | - | func fa () = { | |
969 | - | let fb = { | |
970 | - | let ba = bt() | |
971 | - | if ($isInstanceOf(ba, "ByteVector")) | |
1034 | + | ||
1035 | + | @Callable(bD) | |
1036 | + | func deletePool (aA) = { | |
1037 | + | let dT = ch(aA) | |
1038 | + | let dm = if ((toString(bD.caller) == cD(aA))) | |
1039 | + | then if (cL(aA)) | |
1040 | + | then true | |
1041 | + | else K("Pool is not empty") | |
1042 | + | else bE(bD) | |
1043 | + | if ((dm == dm)) | |
1044 | + | then { | |
1045 | + | let fp = if ((valueOrElse(getInteger(ae(aA)), 0) == 0)) | |
1046 | + | then true | |
1047 | + | else K("Pool weight is not Zero") | |
1048 | + | if ((fp == fp)) | |
1049 | + | then { | |
1050 | + | let fq = if ((dT[w] == toString(r))) | |
1051 | + | then true | |
1052 | + | else K("Pool must be SHUTDOWN (4)") | |
1053 | + | if ((fq == fq)) | |
1054 | + | then { | |
1055 | + | let fr = cC(aA) | |
1056 | + | let aF = fr._1 | |
1057 | + | let aG = fr._2 | |
1058 | + | let bV = fr._3 | |
1059 | + | let an = fr._4 | |
1060 | + | let ao = fr._5 | |
1061 | + | let cF = addressFromStringValue(getStringValue(Z())) | |
1062 | + | let fs = invoke(cF, "deletePool", [aF, aG], nil) | |
1063 | + | if ((fs == fs)) | |
1064 | + | then { | |
1065 | + | let ds = addressFromStringValue(getStringValue(Y())) | |
1066 | + | let ft = invoke(ds, "deletePool", [aF, aG], nil) | |
1067 | + | if ((ft == ft)) | |
1068 | + | then { | |
1069 | + | let dr = addressFromStringValue(getStringValue(X())) | |
1070 | + | let fu = invoke(dr, "deletePool", [aF, aG], nil) | |
1071 | + | if ((fu == fu)) | |
1072 | + | then [DeleteEntry(aC(aA)), DeleteEntry(az(aA)), DeleteEntry(av(toString(an), toString(ao))), DeleteEntry(aB(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(at(bV)), DeleteEntry(aD(bV)), DeleteEntry(aE(aF, aG)), DeleteEntry(ae(aA)), DeleteEntry(ay(aA)), DeleteEntry(aH(aA)), DeleteEntry(aJ(aA)), DeleteEntry(aL(aA)), DeleteEntry(aM(aA)), DeleteEntry(aN(aA)), DeleteEntry(aO(aA))] | |
1073 | + | else throw("Strict value is not equal to itself.") | |
1074 | + | } | |
1075 | + | else throw("Strict value is not equal to itself.") | |
1076 | + | } | |
1077 | + | else throw("Strict value is not equal to itself.") | |
1078 | + | } | |
1079 | + | else throw("Strict value is not equal to itself.") | |
1080 | + | } | |
1081 | + | else throw("Strict value is not equal to itself.") | |
1082 | + | } | |
1083 | + | else throw("Strict value is not equal to itself.") | |
1084 | + | } | |
1085 | + | ||
1086 | + | ||
1087 | + | @Verifier(fv) | |
1088 | + | func fw () = { | |
1089 | + | let fx = { | |
1090 | + | let bf = by() | |
1091 | + | if ($isInstanceOf(bf, "ByteVector")) | |
972 | 1092 | then { | |
973 | - | let | |
974 | - | | |
1093 | + | let bF = bf | |
1094 | + | bF | |
975 | 1095 | } | |
976 | - | else if ($isInstanceOf( | |
977 | - | then | |
1096 | + | else if ($isInstanceOf(bf, "Unit")) | |
1097 | + | then fv.senderPublicKey | |
978 | 1098 | else throw("Match error") | |
979 | 1099 | } | |
980 | - | sigVerify( | |
1100 | + | sigVerify(fv.bodyBytes, fv.proofs[0], fx) | |
981 | 1101 | } | |
982 | 1102 |
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 = 1000000000000 | |
9 | 9 | ||
10 | 10 | let d = 18 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(1000000000000000000) | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = "GWXvirtualPOOL" | |
17 | 17 | ||
18 | 18 | let h = "POOLS_LP" | |
19 | 19 | ||
20 | 20 | let i = 2000000 | |
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = "factory_v2.ride" | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = ((100 * 1000) * 1000) | |
27 | 27 | ||
28 | - | let m = "" | |
28 | + | let m = "__" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = "" | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 1 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 2 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 3 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 4 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 1 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 2 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 3 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 1 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 2 | |
49 | 49 | ||
50 | - | let x = | |
50 | + | let x = 3 | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = 4 | |
53 | 53 | ||
54 | - | let z = | |
54 | + | let z = 5 | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = 6 | |
57 | 57 | ||
58 | - | let B = | |
58 | + | let B = 7 | |
59 | 59 | ||
60 | - | let C = | |
60 | + | let C = 8 | |
61 | 61 | ||
62 | - | let D = | |
62 | + | let D = 9 | |
63 | 63 | ||
64 | - | let E = | |
64 | + | let E = 10 | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = 11 | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = "WX_EMISSION" | |
69 | 69 | ||
70 | - | func H () = "%s__allowedLpScriptHash" | |
70 | + | let H = [G] | |
71 | + | ||
72 | + | func I (J) = makeString([k, ": ", J], "") | |
71 | 73 | ||
72 | 74 | ||
73 | - | func | |
75 | + | func K (J) = throw(I(J)) | |
74 | 76 | ||
75 | 77 | ||
76 | - | func | |
78 | + | func L () = "%s__allowedLpScriptHash" | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func M () = "%s__allowedLpStableScriptHash" | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
84 | + | func N () = "%s__swapContract" | |
83 | 85 | ||
84 | 86 | ||
85 | - | func | |
87 | + | func O () = "%s__factoryConfig" | |
86 | 88 | ||
87 | 89 | ||
88 | - | func | |
90 | + | func P () = "%s__lpTokensList" | |
89 | 91 | ||
90 | 92 | ||
91 | - | func | |
93 | + | func Q () = "%s%s__pool__scriptHash" | |
92 | 94 | ||
93 | 95 | ||
94 | - | func | |
96 | + | func R () = "%s%s__matcher__publicKey" | |
95 | 97 | ||
96 | 98 | ||
97 | - | func | |
99 | + | func S () = "%s__legacyFactoryContract" | |
98 | 100 | ||
99 | 101 | ||
100 | - | func | |
102 | + | func T () = "%s__legacyPools" | |
101 | 103 | ||
102 | 104 | ||
103 | - | func | |
105 | + | func U () = "%s__managerPublicKey" | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
108 | + | func V () = "%s__managerVaultAddress" | |
107 | 109 | ||
108 | 110 | ||
109 | - | func | |
111 | + | func W () = "%s__adminPubKeys" | |
110 | 112 | ||
111 | 113 | ||
112 | - | func | |
114 | + | func X () = "%s__assetsStoreContract" | |
113 | 115 | ||
114 | 116 | ||
115 | - | func | |
117 | + | func Y () = "%s__votingEmissionContract" | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func Z () = "%s__userPoolsContract" | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
123 | + | func aa () = makeString(["%s", "priceAssets"], m) | |
122 | 124 | ||
123 | 125 | ||
124 | - | func | |
126 | + | func ab () = "%s__priceDecimals" | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func ac () = "%s__shutdown" | |
128 | 130 | ||
129 | 131 | ||
130 | - | func ad ( | |
132 | + | func ad () = "%s__nextInternalAssetId" | |
131 | 133 | ||
132 | 134 | ||
133 | - | func | |
135 | + | func ae (af) = ("%s%s__poolWeight__" + af) | |
134 | 136 | ||
135 | 137 | ||
136 | - | func | |
138 | + | func ag (af,ah) = ((("%s%s__poolWeight__" + af) + "__") + toString(ah)) | |
137 | 139 | ||
138 | 140 | ||
139 | - | func ak (al) = { | |
140 | - | let am = al | |
141 | - | let ai = am._1 | |
142 | - | let aj = am._2 | |
143 | - | makeString(["%d%d%s", toString(ai), toString(aj), "oneTokenOperationsDisabled"], l) | |
141 | + | func ai (aj) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(aj)) | |
142 | + | ||
143 | + | ||
144 | + | func ak (al) = ("%s%s%s__mappings__baseAsset2internalId__" + al) | |
145 | + | ||
146 | + | ||
147 | + | func am (an,ao) = (((("%d%d%s__" + an) + "__") + ao) + "__config") | |
148 | + | ||
149 | + | ||
150 | + | func ap (aq) = { | |
151 | + | let ar = aq | |
152 | + | let an = ar._1 | |
153 | + | let ao = ar._2 | |
154 | + | makeString(["%d%d%s", toString(an), toString(ao), "oneTokenOperationsDisabled"], m) | |
144 | 155 | } | |
145 | 156 | ||
146 | 157 | ||
147 | - | func | |
158 | + | func as () = makeString(["%s", "oneTokenOperationsDisabled"], m) | |
148 | 159 | ||
149 | 160 | ||
150 | - | func | |
161 | + | func at (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2Pool") | |
151 | 162 | ||
152 | 163 | ||
153 | - | func | |
164 | + | func av (aw,ax) = (((("%d%d%s%s__" + aw) + "__") + ax) + "__mappings__PoolAssets2LpAsset") | |
154 | 165 | ||
155 | 166 | ||
156 | - | func | |
167 | + | func ay (af) = ("%s%s__spread__" + af) | |
157 | 168 | ||
158 | 169 | ||
159 | - | func | |
170 | + | func az (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2PoolAssets") | |
160 | 171 | ||
161 | 172 | ||
162 | - | func | |
173 | + | func aB (aw,ax) = (((("%d%d%s%s__" + toString(aw)) + "__") + toString(ax)) + "__mappings__poolAssets2PoolContract") | |
163 | 174 | ||
164 | 175 | ||
165 | - | func | |
176 | + | func aC (aA) = (("%s%s%s__" + aA) + "__mappings__poolContract2LpAsset") | |
166 | 177 | ||
167 | 178 | ||
168 | - | func | |
179 | + | func aD (au) = (("%s%s%s__" + au) + "__mappings__lpAsset2PoolContract") | |
169 | 180 | ||
170 | 181 | ||
171 | - | func | |
182 | + | func aE (aF,aG) = ((("%s%s%s__wxEmission__" + aF) + "__") + aG) | |
172 | 183 | ||
173 | 184 | ||
174 | - | func | |
185 | + | func aH (af) = ("%s%s__inFee__" + af) | |
175 | 186 | ||
176 | 187 | ||
177 | - | func | |
188 | + | func aI () = "%s__inFeeDefault" | |
178 | 189 | ||
179 | 190 | ||
180 | - | func | |
191 | + | func aJ (af) = ("%s%s__outFee__" + af) | |
181 | 192 | ||
182 | 193 | ||
183 | - | func | |
194 | + | func aK () = "%s__outFeeDefault" | |
184 | 195 | ||
185 | 196 | ||
186 | - | func | |
197 | + | func aL (af) = ("%s%s__skipOrderValidation__" + af) | |
187 | 198 | ||
188 | 199 | ||
189 | - | func | |
200 | + | func aM (af) = ("%s%s__changeAmpDelay__" + af) | |
190 | 201 | ||
191 | 202 | ||
192 | - | func | |
203 | + | func aN (af) = ("%s%s__changeAmpDelta__" + af) | |
193 | 204 | ||
194 | 205 | ||
195 | - | func | |
206 | + | func aO (af) = ("%s%s__changeAmpTarget__" + af) | |
196 | 207 | ||
197 | 208 | ||
198 | - | func | |
209 | + | func aP () = "%s__sWavesProxyAddress" | |
199 | 210 | ||
200 | 211 | ||
201 | - | func | |
212 | + | func aQ () = "%s__sWavesAssetId" | |
202 | 213 | ||
203 | 214 | ||
204 | - | func | |
215 | + | func aR () = "%s__stakingProfitAddress" | |
205 | 216 | ||
206 | 217 | ||
207 | - | func | |
218 | + | func aS (af,aT) = makeString(["%s%s%s", "leasedRatio", af, aT], m) | |
208 | 219 | ||
209 | 220 | ||
210 | - | func | |
221 | + | func aU (aT) = makeString(["%s%s", "leasedRatioDefault", aT], m) | |
211 | 222 | ||
212 | 223 | ||
213 | - | func | |
224 | + | func aV (af,aT) = makeString(["%s%s%s", "leasedRatioTolerance", af, aT], m) | |
214 | 225 | ||
215 | 226 | ||
216 | - | func | |
227 | + | func aW (af,aT) = makeString(["%s%s%s", "minBalance", af, aT], m) | |
217 | 228 | ||
218 | 229 | ||
219 | - | func | |
230 | + | func aX (aT) = makeString(["%s%s", "minBalanceDefault", aT], m) | |
220 | 231 | ||
221 | 232 | ||
222 | - | func | |
233 | + | func aY (aZ) = valueOrErrorMessage(getString(this, aZ), ("No data for this.key=" + aZ)) | |
223 | 234 | ||
224 | 235 | ||
225 | - | func | |
236 | + | func ba (aZ) = valueOrErrorMessage(getBoolean(this, aZ), ("No data for this.key=" + aZ)) | |
226 | 237 | ||
227 | 238 | ||
228 | - | func | |
239 | + | func bb (aZ) = valueOrErrorMessage(getInteger(this, aZ), ("No data for this.key=" + aZ)) | |
229 | 240 | ||
230 | 241 | ||
231 | - | func | |
242 | + | func bc (bd) = if ((bd == j)) | |
232 | 243 | then unit | |
233 | - | else fromBase58String( | |
244 | + | else fromBase58String(bd) | |
234 | 245 | ||
235 | 246 | ||
236 | - | func | |
237 | - | let | |
238 | - | if ($isInstanceOf( | |
247 | + | func be () = { | |
248 | + | let bf = getString(V()) | |
249 | + | if ($isInstanceOf(bf, "String")) | |
239 | 250 | then { | |
240 | - | let | |
241 | - | addressFromStringValue( | |
251 | + | let bg = bf | |
252 | + | addressFromStringValue(bg) | |
242 | 253 | } | |
243 | 254 | else this | |
244 | 255 | } | |
245 | 256 | ||
246 | 257 | ||
247 | - | let | |
258 | + | let bh = 1 | |
248 | 259 | ||
249 | - | let | |
260 | + | let bi = 2 | |
250 | 261 | ||
251 | - | let | |
262 | + | let bj = 3 | |
252 | 263 | ||
253 | - | let | |
264 | + | let bk = 4 | |
254 | 265 | ||
255 | - | let | |
266 | + | let bl = 5 | |
256 | 267 | ||
257 | - | let | |
268 | + | let bm = 6 | |
258 | 269 | ||
259 | - | let | |
270 | + | let bn = 7 | |
260 | 271 | ||
261 | - | let | |
272 | + | let bo = 8 | |
262 | 273 | ||
263 | - | let | |
274 | + | let bp = 9 | |
264 | 275 | ||
265 | - | let | |
276 | + | let bq = 10 | |
266 | 277 | ||
267 | - | let | |
278 | + | let br = 11 | |
268 | 279 | ||
269 | - | func | |
280 | + | func bs (bt) = addressFromStringValue(bt[bi]) | |
270 | 281 | ||
271 | 282 | ||
272 | - | func | |
283 | + | func bu (bt) = addressFromStringValue(bt[bl]) | |
273 | 284 | ||
274 | 285 | ||
275 | - | func | |
286 | + | func bv (bt) = addressFromStringValue(bt[bh]) | |
276 | 287 | ||
277 | 288 | ||
278 | - | func | |
289 | + | func bw (bt) = addressFromStringValue(bt[bq]) | |
279 | 290 | ||
280 | 291 | ||
281 | - | func | |
282 | - | let | |
283 | - | if ($isInstanceOf( | |
292 | + | func bx () = { | |
293 | + | let bf = getString(aa()) | |
294 | + | if ($isInstanceOf(bf, "String")) | |
284 | 295 | then { | |
285 | - | let | |
286 | - | if ((size( | |
296 | + | let bg = bf | |
297 | + | if ((size(bg) == 0)) | |
287 | 298 | then nil | |
288 | - | else split( | |
299 | + | else split(bg, m) | |
289 | 300 | } | |
290 | 301 | else nil | |
291 | 302 | } | |
292 | 303 | ||
293 | 304 | ||
294 | - | func | |
295 | - | let | |
296 | - | let | |
297 | - | if ($isInstanceOf( | |
305 | + | func by () = { | |
306 | + | let bz = be() | |
307 | + | let bf = getString(bz, U()) | |
308 | + | if ($isInstanceOf(bf, "String")) | |
298 | 309 | then { | |
299 | - | let | |
300 | - | fromBase58String( | |
310 | + | let bg = bf | |
311 | + | fromBase58String(bg) | |
301 | 312 | } | |
302 | - | else if ($isInstanceOf( | |
313 | + | else if ($isInstanceOf(bf, "Unit")) | |
303 | 314 | then unit | |
304 | 315 | else throw("Match error") | |
305 | 316 | } | |
306 | 317 | ||
307 | 318 | ||
308 | - | let | |
319 | + | let bA = K("Permission denied") | |
309 | 320 | ||
310 | - | let | |
321 | + | let bB = K("Test error here") | |
311 | 322 | ||
312 | - | func | |
323 | + | func bC (bD) = if ((bD.caller == this)) | |
313 | 324 | then true | |
314 | - | else | |
325 | + | else bA | |
315 | 326 | ||
316 | 327 | ||
317 | - | func | |
318 | - | let | |
319 | - | if ($isInstanceOf( | |
328 | + | func bE (bD) = { | |
329 | + | let bf = by() | |
330 | + | if ($isInstanceOf(bf, "ByteVector")) | |
320 | 331 | then { | |
321 | - | let | |
322 | - | if (( | |
332 | + | let bF = bf | |
333 | + | if ((bD.callerPublicKey == bF)) | |
323 | 334 | then true | |
324 | - | else | |
335 | + | else bA | |
325 | 336 | } | |
326 | - | else if ($isInstanceOf( | |
327 | - | then | |
337 | + | else if ($isInstanceOf(bf, "Unit")) | |
338 | + | then bC(bD) | |
328 | 339 | else throw("Match error") | |
329 | 340 | } | |
330 | 341 | ||
331 | 342 | ||
332 | - | func | |
343 | + | func bG (bH,bI,bJ,bK,bL,bM,bN,bO,bP,bQ,bR) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR], m) | |
333 | 344 | ||
334 | 345 | ||
335 | - | func | |
346 | + | func bS (bH,bI,bJ,bK,bL,bM,bN) = makeString(["%s%s%s%s%s%s", bH, bI, bJ, bK, bL, bM, bN], m) | |
336 | 347 | ||
337 | 348 | ||
338 | - | func | |
349 | + | func bT (af,bU,bV,bW,bX,bY,bZ,ca,cb,cc,cd) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", af, bU, bV, bW, bX, toString(bY), toString(bZ), toString(ca), toString(cb), toString(cc), cd], m) | |
339 | 350 | ||
340 | 351 | ||
341 | - | func | |
352 | + | func ce (cf,cg) = makeString(["%d%d", toString(cf), toString(cg)], m) | |
342 | 353 | ||
343 | 354 | ||
344 | - | func | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | split( | |
355 | + | func ch (af) = { | |
356 | + | let ci = split(aY(az(af)), m) | |
357 | + | let an = ci[1] | |
358 | + | let ao = ci[2] | |
359 | + | split(aY(am(an, ao)), m) | |
349 | 360 | } | |
350 | 361 | ||
351 | 362 | ||
352 | - | func | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
363 | + | func cj (ck,cl) = { | |
364 | + | let cm = valueOrElse(getInteger(this, ak(ck)), 0) | |
365 | + | let cn = valueOrElse(getInteger(this, ad()), 0) | |
366 | + | let co = if ((cm == 0)) | |
356 | 367 | then { | |
357 | - | let | |
358 | - | $Tuple3( | |
368 | + | let cp = (cn + cl) | |
369 | + | $Tuple3(cp, [IntegerEntry(ad(), cp), IntegerEntry(ak(ck), cp), StringEntry(ai(cp), ck)], true) | |
359 | 370 | } | |
360 | - | else $Tuple3( | |
361 | - | | |
371 | + | else $Tuple3(cm, nil, false) | |
372 | + | co | |
362 | 373 | } | |
363 | 374 | ||
364 | 375 | ||
365 | - | func | |
366 | - | let | |
367 | - | if (containsElement( | |
376 | + | func cq (bD) = { | |
377 | + | let cr = split(valueOrElse(getString(W()), n), m) | |
378 | + | if (containsElement(cr, toBase58String(bD.callerPublicKey))) | |
368 | 379 | then true | |
369 | 380 | else { | |
370 | - | let | |
371 | - | if (( | |
381 | + | let cs = bE(bD) | |
382 | + | if ((cs == cs)) | |
372 | 383 | then true | |
373 | 384 | else throw("Strict value is not equal to itself.") | |
374 | 385 | } | |
375 | 386 | } | |
376 | 387 | ||
377 | 388 | ||
378 | - | func | |
389 | + | func ct (aZ,cu,cv) = valueOrElse(getInteger(this, aZ), valueOrElse(getInteger(this, cu), cv)) | |
379 | 390 | ||
380 | 391 | ||
381 | - | func | |
382 | - | let | |
383 | - | let | |
384 | - | if (if (( | |
392 | + | func cw (aF,aG) = { | |
393 | + | let an = getInteger(ak(aF)) | |
394 | + | let ao = getInteger(ak(aG)) | |
395 | + | if (if ((an == unit)) | |
385 | 396 | then true | |
386 | - | else ( | |
397 | + | else (ao == unit)) | |
387 | 398 | then false | |
388 | 399 | else { | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
400 | + | let cx = toString(value(an)) | |
401 | + | let cy = toString(value(ao)) | |
402 | + | let cz = getString(am(cx, cy)) | |
403 | + | let cA = getString(am(cy, cx)) | |
404 | + | let cB = if ((cz != unit)) | |
394 | 405 | then true | |
395 | - | else ( | |
396 | - | | |
406 | + | else (cA != unit) | |
407 | + | cB | |
397 | 408 | } | |
398 | 409 | } | |
399 | 410 | ||
400 | 411 | ||
401 | - | @Callable(by) | |
402 | - | func getSwapContractREADONLY () = $Tuple2(nil, aT(J())) | |
412 | + | func cC (aA) = { | |
413 | + | let ci = { | |
414 | + | let bf = getString(az(aA)) | |
415 | + | if ($isInstanceOf(bf, "String")) | |
416 | + | then { | |
417 | + | let bg = bf | |
418 | + | split(bg, m) | |
419 | + | } | |
420 | + | else K(makeString([aA, "pool is not found"], " ")) | |
421 | + | } | |
422 | + | let an = parseIntValue(ci[1]) | |
423 | + | let ao = parseIntValue(ci[2]) | |
424 | + | let aF = getStringValue(ai(an)) | |
425 | + | let aG = getStringValue(ai(ao)) | |
426 | + | let bV = getStringValue(aC(aA)) | |
427 | + | $Tuple5(aF, aG, bV, an, ao) | |
428 | + | } | |
429 | + | ||
430 | + | ||
431 | + | func cD (aA) = { | |
432 | + | let cE = cC(aA) | |
433 | + | let aF = cE._1 | |
434 | + | let aG = cE._2 | |
435 | + | let bV = cE._3 | |
436 | + | let an = cE._4 | |
437 | + | let ao = cE._5 | |
438 | + | let cF = addressFromStringValue(getStringValue(Z())) | |
439 | + | let cG = invoke(cF, "getPoolCreatorREADONLY", [aF, aG], nil) | |
440 | + | cG | |
441 | + | } | |
442 | + | ||
443 | + | ||
444 | + | func cH (cI,cJ) = { | |
445 | + | let cK = addressFromStringValue(cI) | |
446 | + | if ((cJ == "WAVES")) | |
447 | + | then wavesBalance(cK).regular | |
448 | + | else { | |
449 | + | let aT = fromBase58String(cJ) | |
450 | + | assetBalance(cK, aT) | |
451 | + | } | |
452 | + | } | |
453 | + | ||
454 | + | ||
455 | + | func cL (aA) = { | |
456 | + | let cM = cC(aA) | |
457 | + | let aF = cM._1 | |
458 | + | let aG = cM._2 | |
459 | + | let bV = cM._3 | |
460 | + | let an = cM._4 | |
461 | + | let ao = cM._5 | |
462 | + | if ((cH(aA, aF) == 0)) | |
463 | + | then (cH(aA, aG) == 0) | |
464 | + | else false | |
465 | + | } | |
466 | + | ||
467 | + | ||
468 | + | @Callable(bD) | |
469 | + | func getSwapContractREADONLY () = $Tuple2(nil, aY(N())) | |
403 | 470 | ||
404 | 471 | ||
405 | 472 | ||
406 | - | @Callable( | |
407 | - | func getPoolLeaseConfigREADONLY ( | |
408 | - | let | |
409 | - | let | |
410 | - | if ($isInstanceOf( | |
473 | + | @Callable(bD) | |
474 | + | func getPoolLeaseConfigREADONLY (af,aT) = { | |
475 | + | let cN = { | |
476 | + | let bf = getInteger(this, aS(af, aT)) | |
477 | + | if ($isInstanceOf(bf, "Int")) | |
411 | 478 | then { | |
412 | - | let | |
413 | - | $Tuple2(true, min([100, max([0, | |
479 | + | let cO = bf | |
480 | + | $Tuple2(true, min([100, max([0, cO])])) | |
414 | 481 | } | |
415 | 482 | else { | |
416 | - | let | |
417 | - | if ($isInstanceOf( | |
483 | + | let cP = getInteger(this, aU(aT)) | |
484 | + | if ($isInstanceOf(cP, "Int")) | |
418 | 485 | then { | |
419 | - | let | |
420 | - | $Tuple2(true, min([100, max([0, | |
486 | + | let cQ = cP | |
487 | + | $Tuple2(true, min([100, max([0, cQ])])) | |
421 | 488 | } | |
422 | 489 | else $Tuple2(false, 0) | |
423 | 490 | } | |
424 | 491 | } | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | if ($isInstanceOf( | |
492 | + | let cR = cN._1 | |
493 | + | let cS = cN._2 | |
494 | + | let cT = { | |
495 | + | let bf = getInteger(this, aW(af, aT)) | |
496 | + | if ($isInstanceOf(bf, "Int")) | |
430 | 497 | then { | |
431 | - | let | |
432 | - | max([0, | |
498 | + | let cU = bf | |
499 | + | max([0, cU]) | |
433 | 500 | } | |
434 | 501 | else { | |
435 | - | let | |
436 | - | if ($isInstanceOf( | |
502 | + | let cP = getInteger(this, aX(aT)) | |
503 | + | if ($isInstanceOf(cP, "Int")) | |
437 | 504 | then { | |
438 | - | let | |
439 | - | max([0, | |
505 | + | let cV = cP | |
506 | + | max([0, cV]) | |
440 | 507 | } | |
441 | 508 | else 0 | |
442 | 509 | } | |
443 | 510 | } | |
444 | - | let | |
445 | - | then $Tuple3(valueOrElse(getString(this, | |
511 | + | let cW = if ((aT == "WAVES")) | |
512 | + | then $Tuple3(valueOrElse(getString(this, aP()), ""), getString(this, valueOrElse(aQ(), "")), c) | |
446 | 513 | else $Tuple3("", "", 0) | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | $Tuple2(nil, $Tuple7( | |
514 | + | let cX = cW._1 | |
515 | + | let cY = cW._2 | |
516 | + | let cZ = cW._3 | |
517 | + | let da = valueOrElse(getString(this, aR()), "") | |
518 | + | $Tuple2(nil, $Tuple7(cR, cS, cT, cX, cY, cZ, da)) | |
452 | 519 | } | |
453 | 520 | ||
454 | 521 | ||
455 | 522 | ||
456 | - | @Callable( | |
457 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
458 | - | then ( | |
523 | + | @Callable(bD) | |
524 | + | func getLpAssetFromPoolAssetsREADONLY (db,dc) = if (if ((db == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
525 | + | then (dc == "WAVES") | |
459 | 526 | else false) | |
460 | 527 | then $Tuple2(nil, unit) | |
461 | 528 | else { | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
529 | + | let dd = value(getInteger(this, ak(db))) | |
530 | + | let de = value(getInteger(this, ak(dc))) | |
531 | + | let df = getString(this, av(toString(dd), toString(de))) | |
532 | + | let dg = if ((df == unit)) | |
466 | 533 | then unit | |
467 | - | else drop(value( | |
468 | - | $Tuple2(nil, | |
534 | + | else drop(value(df), 4) | |
535 | + | $Tuple2(nil, dg) | |
469 | 536 | } | |
470 | 537 | ||
471 | 538 | ||
472 | 539 | ||
473 | - | @Callable( | |
474 | - | func getPoolAddressFromLpAssetREADONLY ( | |
540 | + | @Callable(bD) | |
541 | + | func getPoolAddressFromLpAssetREADONLY (dh) = $Tuple2(nil, valueOrElse(getString(this, aD(dh)), "")) | |
475 | 542 | ||
476 | 543 | ||
477 | 544 | ||
478 | - | @Callable( | |
479 | - | func constructor ( | |
480 | - | let | |
481 | - | if (( | |
482 | - | then [StringEntry( | |
545 | + | @Callable(bD) | |
546 | + | func constructor (di,dj,bJ,bK,bL,bM,dk,dl) = { | |
547 | + | let dm = bE(bD) | |
548 | + | if ((dm == dm)) | |
549 | + | then [StringEntry(O(), bS(di, dj, bJ, bK, bL, bM, dk)), IntegerEntry(ab(), dl)] | |
483 | 550 | else throw("Strict value is not equal to itself.") | |
484 | 551 | } | |
485 | 552 | ||
486 | 553 | ||
487 | 554 | ||
488 | - | @Callable( | |
489 | - | func constructorV2 ( | |
490 | - | let | |
491 | - | if (( | |
555 | + | @Callable(bD) | |
556 | + | func constructorV2 (dn) = { | |
557 | + | let dm = bE(bD) | |
558 | + | if ((dm == dm)) | |
492 | 559 | then { | |
493 | - | let | |
494 | - | if (( | |
495 | - | then [StringEntry( | |
560 | + | let do = addressFromPublicKey(fromBase58String(dn)) | |
561 | + | if ((do == do)) | |
562 | + | then [StringEntry(R(), dn)] | |
496 | 563 | else throw("Strict value is not equal to itself.") | |
497 | 564 | } | |
498 | 565 | else throw("Strict value is not equal to itself.") | |
499 | 566 | } | |
500 | 567 | ||
501 | 568 | ||
502 | 569 | ||
503 | - | @Callable( | |
504 | - | func constructorV3 ( | |
505 | - | let | |
506 | - | if (( | |
570 | + | @Callable(bD) | |
571 | + | func constructorV3 (bO,bP,bQ,bR) = { | |
572 | + | let dm = bE(bD) | |
573 | + | if ((dm == dm)) | |
507 | 574 | then { | |
508 | - | let | |
509 | - | [StringEntry( | |
575 | + | let bt = split(aY(O()), m) | |
576 | + | [StringEntry(O(), bG(bt[1], bt[2], bt[3], bt[4], bt[5], bt[6], bt[7], bO, bP, bQ, bR))] | |
510 | 577 | } | |
511 | 578 | else throw("Strict value is not equal to itself.") | |
512 | 579 | } | |
513 | 580 | ||
514 | 581 | ||
515 | 582 | ||
516 | - | @Callable( | |
517 | - | func constructorV4 ( | |
518 | - | let | |
519 | - | if (( | |
520 | - | then [StringEntry( | |
583 | + | @Callable(bD) | |
584 | + | func constructorV4 (dp,dq) = { | |
585 | + | let dm = bE(bD) | |
586 | + | if ((dm == dm)) | |
587 | + | then [StringEntry(S(), dp), StringEntry(T(), makeString(dq, m))] | |
521 | 588 | else throw("Strict value is not equal to itself.") | |
522 | 589 | } | |
523 | 590 | ||
524 | 591 | ||
525 | 592 | ||
526 | - | @Callable( | |
527 | - | func constructorV5 ( | |
528 | - | let | |
529 | - | if (( | |
530 | - | then [StringEntry( | |
593 | + | @Callable(bD) | |
594 | + | func constructorV5 (dr) = { | |
595 | + | let dm = bE(bD) | |
596 | + | if ((dm == dm)) | |
597 | + | then [StringEntry(X(), dr)] | |
531 | 598 | else throw("Strict value is not equal to itself.") | |
532 | 599 | } | |
533 | 600 | ||
534 | 601 | ||
535 | 602 | ||
536 | - | @Callable( | |
537 | - | func constructorV6 ( | |
538 | - | let | |
603 | + | @Callable(bD) | |
604 | + | func constructorV6 (ds,dt) = { | |
605 | + | let du = [bE(bD), if ((addressFromString(ds) != unit)) | |
539 | 606 | then true | |
540 | 607 | else "invalid voting emission contract address"] | |
541 | - | if (( | |
542 | - | then [StringEntry( | |
608 | + | if ((du == du)) | |
609 | + | then [StringEntry(Y(), ds), StringEntry(aa(), makeString(dt, m))] | |
543 | 610 | else throw("Strict value is not equal to itself.") | |
544 | 611 | } | |
545 | 612 | ||
546 | 613 | ||
547 | 614 | ||
548 | - | @Callable( | |
549 | - | func setAdmins ( | |
550 | - | let | |
551 | - | if (( | |
552 | - | then [StringEntry( | |
615 | + | @Callable(bD) | |
616 | + | func setAdmins (dv) = { | |
617 | + | let dm = bE(bD) | |
618 | + | if ((dm == dm)) | |
619 | + | then [StringEntry(W(), makeString(dv, m))] | |
553 | 620 | else throw("Strict value is not equal to itself.") | |
554 | 621 | } | |
555 | 622 | ||
556 | 623 | ||
557 | 624 | ||
558 | - | @Callable( | |
559 | - | func activateNewPool ( | |
560 | - | let | |
561 | - | if (( | |
562 | - | then if (isDefined(getString( | |
563 | - | then | |
625 | + | @Callable(bD) | |
626 | + | func activateNewPool (af,bW,bX,dw,dx,dy,cd,dz) = { | |
627 | + | let dm = cq(bD) | |
628 | + | if ((dm == dm)) | |
629 | + | then if (isDefined(getString(az(af)))) | |
630 | + | then K((("Pool address " + af) + " already registered.")) | |
564 | 631 | else { | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
632 | + | let dA = cj(bW, 1) | |
633 | + | let dB = dA._1 | |
634 | + | let dC = cj(bX, if (dA._3) | |
568 | 635 | then 2 | |
569 | 636 | else 1) | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | if ( | |
575 | - | then | |
637 | + | let dD = dC._1 | |
638 | + | let dE = valueOrErrorMessage(scriptHash(addressFromStringValue(af)), ("No script has been found on pool account " + af)) | |
639 | + | let dF = getBinaryValue(Q()) | |
640 | + | let dG = cw(bW, bX) | |
641 | + | if (dG) | |
642 | + | then K((((("Pool " + bW) + "/") + bX) + " has already been activated.")) | |
576 | 643 | else { | |
577 | - | let | |
578 | - | let | |
579 | - | then | |
580 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
581 | - | let | |
582 | - | then | |
583 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | if (( | |
589 | - | then if (( | |
590 | - | then | |
644 | + | let dH = value(getString(this, am(toString(dB), toString(dD)))) | |
645 | + | let dI = if ((bW == "WAVES")) | |
646 | + | then l | |
647 | + | else pow(10, 0, value(assetInfo(fromBase58String(bW))).decimals, 0, 0, DOWN) | |
648 | + | let dJ = if ((bX == "WAVES")) | |
649 | + | then l | |
650 | + | else pow(10, 0, value(assetInfo(fromBase58String(bX))).decimals, 0, 0, DOWN) | |
651 | + | let dK = Issue(dw, dx, 1, 8, true) | |
652 | + | let bV = calculateAssetId(dK) | |
653 | + | let dL = toBase58String(bV) | |
654 | + | let dM = invoke(addressFromStringValue(af), "activate", [bW, bX], nil) | |
655 | + | if ((dM == dM)) | |
656 | + | then if ((dM != "success")) | |
657 | + | then K("Pool initialisation error happened.") | |
591 | 658 | else { | |
592 | - | let | |
593 | - | let | |
594 | - | if (( | |
659 | + | let dr = addressFromStringValue(aY(X())) | |
660 | + | let dN = invoke(dr, "createOrUpdate", [dL, dw, false], nil) | |
661 | + | if ((dN == dN)) | |
595 | 662 | then { | |
596 | - | let | |
597 | - | if (( | |
663 | + | let dO = invoke(dr, "addLabel", [dL, h], nil) | |
664 | + | if ((dO == dO)) | |
598 | 665 | then { | |
599 | - | let | |
600 | - | if (( | |
666 | + | let dP = invoke(dr, "setLogo", [dL, dz], nil) | |
667 | + | if ((dP == dP)) | |
601 | 668 | then { | |
602 | - | let | |
603 | - | if (( | |
669 | + | let dQ = invoke(dr, "addAssetsLink", [bW, bX, dL], nil) | |
670 | + | if ((dQ == dQ)) | |
604 | 671 | then { | |
605 | - | let | |
606 | - | if (( | |
607 | - | then $Tuple2((( | |
672 | + | let dR = invoke(dr, "increaseAssetPoolsNumber", [bW], nil) | |
673 | + | if ((dR == dR)) | |
674 | + | then $Tuple2(((dA._2 ++ dC._2) ++ [dK, Burn(bV, 1), StringEntry(am(toString(dB), toString(dD)), bT(af, toString(o), dL, bW, bX, dI, dJ, dB, dD, l, cd)), StringEntry(at(dL), ce(dB, dD)), StringEntry(av(toString(dB), toString(dD)), ("%s__" + dL)), StringEntry(az(af), ce(dB, dD)), StringEntry(aB(dB, dD), af), StringEntry(aD(dL), af), StringEntry(aC(af), dL), IntegerEntry(ae(af), dy), IntegerEntry(ay(af), i)]), dL) | |
608 | 675 | else throw("Strict value is not equal to itself.") | |
609 | 676 | } | |
610 | 677 | else throw("Strict value is not equal to itself.") | |
611 | 678 | } | |
612 | 679 | else throw("Strict value is not equal to itself.") | |
613 | 680 | } | |
614 | 681 | else throw("Strict value is not equal to itself.") | |
615 | 682 | } | |
616 | 683 | else throw("Strict value is not equal to itself.") | |
617 | 684 | } | |
618 | 685 | else throw("Strict value is not equal to itself.") | |
619 | 686 | } | |
620 | 687 | } | |
621 | 688 | else throw("Strict value is not equal to itself.") | |
622 | 689 | } | |
623 | 690 | ||
624 | 691 | ||
625 | 692 | ||
626 | - | @Callable( | |
627 | - | func managePool ( | |
628 | - | let | |
629 | - | if (( | |
693 | + | @Callable(bD) | |
694 | + | func managePool (af,dS) = { | |
695 | + | let dm = bE(bD) | |
696 | + | if ((dm == dm)) | |
630 | 697 | then { | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | [StringEntry( | |
698 | + | let dT = ch(af) | |
699 | + | let bU = dT[w] | |
700 | + | let dL = dT[x] | |
701 | + | let bW = dT[y] | |
702 | + | let bX = dT[z] | |
703 | + | let dI = parseIntValue(dT[A]) | |
704 | + | let dJ = parseIntValue(dT[B]) | |
705 | + | let dB = parseIntValue(dT[C]) | |
706 | + | let dD = parseIntValue(dT[D]) | |
707 | + | let dU = parseIntValue(dT[E]) | |
708 | + | let cd = dT[F] | |
709 | + | [StringEntry(am(toString(dB), toString(dD)), bT(af, toString(dS), dL, bW, bX, dI, dJ, dB, dD, dU, cd))] | |
643 | 710 | } | |
644 | 711 | else throw("Strict value is not equal to itself.") | |
645 | 712 | } | |
646 | 713 | ||
647 | 714 | ||
648 | 715 | ||
649 | - | @Callable( | |
650 | - | func emit ( | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | if ((0 >= | |
716 | + | @Callable(bD) | |
717 | + | func emit (dV) = { | |
718 | + | let dW = bD.caller | |
719 | + | let dX = bD.originCaller | |
720 | + | let dY = valueOrErrorMessage(getString(aC(toString(dW))), "Invalid LP address called me.") | |
721 | + | let dZ = fromBase58String(dY) | |
722 | + | let dq = split(valueOrElse(getString(T()), n), m) | |
723 | + | let dp = addressFromStringValue(valueOrErrorMessage(getString(S()), "Legacy factory contract does not exists.")) | |
724 | + | if ((0 >= dV)) | |
658 | 725 | then nil | |
659 | - | else if (containsElement( | |
660 | - | then $Tuple2(nil, | |
661 | - | else $Tuple2([Reissue( | |
726 | + | else if (containsElement(dq, toString(dW))) | |
727 | + | then $Tuple2(nil, dp) | |
728 | + | else $Tuple2([Reissue(dZ, dV, true), ScriptTransfer(bD.caller, dV, dZ)], "success") | |
662 | 729 | } | |
663 | 730 | ||
664 | 731 | ||
665 | 732 | ||
666 | - | @Callable( | |
667 | - | func burn ( | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | if (( | |
675 | - | then | |
676 | - | else if (( | |
677 | - | then | |
733 | + | @Callable(bD) | |
734 | + | func burn (ea) = { | |
735 | + | let dW = bD.caller | |
736 | + | let dX = bD.originCaller | |
737 | + | let eb = value(bD.payments[0]) | |
738 | + | let ec = value(eb.amount) | |
739 | + | let ed = toBase58String(value(eb.assetId)) | |
740 | + | let ee = valueOrErrorMessage(getString(aC(toString(dW))), "Invalid LP address called me.") | |
741 | + | if ((ed != ee)) | |
742 | + | then K("Invalid asset passed.") | |
743 | + | else if ((ea != ec)) | |
744 | + | then K("Invalid amount passed.") | |
678 | 745 | else { | |
679 | - | let | |
680 | - | $Tuple2([Burn( | |
746 | + | let dZ = fromBase58String(ee) | |
747 | + | $Tuple2([Burn(dZ, ea)], "success") | |
681 | 748 | } | |
682 | 749 | } | |
683 | 750 | ||
684 | 751 | ||
685 | 752 | ||
686 | - | @Callable( | |
687 | - | func modifyWeight ( | |
688 | - | let | |
753 | + | @Callable(bD) | |
754 | + | func modifyWeight (bV,ef) = { | |
755 | + | let dm = if ((toBase58String(bD.caller.bytes) == valueOrElse(getString(this, Y()), ""))) | |
689 | 756 | then true | |
690 | - | else | |
691 | - | if (( | |
757 | + | else bE(bD) | |
758 | + | if ((dm == dm)) | |
692 | 759 | then { | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | if (( | |
760 | + | let aA = aY(aD(bV)) | |
761 | + | let eg = ae(aA) | |
762 | + | let eh = ae(g) | |
763 | + | let ei = valueOrElse(getInteger(eh), 0) | |
764 | + | let dy = valueOrElse(getInteger(eg), 0) | |
765 | + | let ej = ef | |
766 | + | let bt = split(aY(O()), m) | |
767 | + | let di = bv(bt) | |
768 | + | let ek = invoke(di, "onModifyWeight", [bV, aA], nil) | |
769 | + | if ((ek == ek)) | |
703 | 770 | then { | |
704 | - | let | |
771 | + | let el = if ((ei == 0)) | |
705 | 772 | then nil | |
706 | - | else [IntegerEntry( | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
773 | + | else [IntegerEntry(eh, 0)] | |
774 | + | let em = ag(aA, 0) | |
775 | + | let en = getInteger(em) | |
776 | + | let eo = if ((en == unit)) | |
710 | 777 | then nil | |
711 | - | else [DeleteEntry( | |
712 | - | (([IntegerEntry( | |
778 | + | else [DeleteEntry(em)] | |
779 | + | (([IntegerEntry(eg, ej)] ++ el) ++ eo) | |
713 | 780 | } | |
714 | 781 | else throw("Strict value is not equal to itself.") | |
715 | 782 | } | |
716 | 783 | else throw("Strict value is not equal to itself.") | |
717 | 784 | } | |
718 | 785 | ||
719 | 786 | ||
720 | 787 | ||
721 | - | @Callable( | |
722 | - | func modifyWeights ( | |
723 | - | let | |
724 | - | if (( | |
788 | + | @Callable(bD) | |
789 | + | func modifyWeights (ep,eq,er,es) = { | |
790 | + | let dm = bE(bD) | |
791 | + | if ((dm == dm)) | |
725 | 792 | then { | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | if ((0 >= | |
741 | - | then | |
742 | - | else if ((0 >= | |
743 | - | then | |
793 | + | let et = ((5 * f) / 100) | |
794 | + | let eu = ((5 * f) / 100) | |
795 | + | let ev = ((5 * f) / 100) | |
796 | + | let bt = split(aY(O()), m) | |
797 | + | let ew = bv(bt) | |
798 | + | let ex = bw(bt) | |
799 | + | let ey = ae(ep) | |
800 | + | let ez = ae(eq) | |
801 | + | let eA = ae(er) | |
802 | + | let eB = ae(es) | |
803 | + | let eC = bb(ey) | |
804 | + | let eD = bb(ez) | |
805 | + | let eE = (eC - ev) | |
806 | + | let eF = (eD - ev) | |
807 | + | if ((0 >= eE)) | |
808 | + | then K(("invalid btcWeightNew: " + toString(eE))) | |
809 | + | else if ((0 >= eF)) | |
810 | + | then K(("invalid ethWeightNew: " + toString(eF))) | |
744 | 811 | else { | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | if (( | |
812 | + | let eG = aY(aC(ep)) | |
813 | + | let eH = aY(aC(eq)) | |
814 | + | let eI = aY(aC(er)) | |
815 | + | let eJ = aY(aC(es)) | |
816 | + | let eK = invoke(ew, "onModifyWeight", [eG, ep], nil) | |
817 | + | if ((eK == eK)) | |
751 | 818 | then { | |
752 | - | let | |
753 | - | if (( | |
819 | + | let eL = invoke(ew, "onModifyWeight", [eH, eq], nil) | |
820 | + | if ((eL == eL)) | |
754 | 821 | then { | |
755 | - | let | |
756 | - | if (( | |
822 | + | let eM = invoke(ew, "onModifyWeight", [eI, er], nil) | |
823 | + | if ((eM == eM)) | |
757 | 824 | then { | |
758 | - | let | |
759 | - | if (( | |
760 | - | then [IntegerEntry( | |
825 | + | let eN = invoke(ew, "onModifyWeight", [eJ, es], nil) | |
826 | + | if ((eN == eN)) | |
827 | + | then [IntegerEntry(ey, eE), IntegerEntry(ez, eF), IntegerEntry(eA, et), IntegerEntry(eB, eu), IntegerEntry(ag(ep, 0), eC), IntegerEntry(ag(eq, 0), eD), IntegerEntry(ag(er, 0), et), IntegerEntry(ag(es, 0), eu)] | |
761 | 828 | else throw("Strict value is not equal to itself.") | |
762 | 829 | } | |
763 | 830 | else throw("Strict value is not equal to itself.") | |
764 | 831 | } | |
765 | 832 | else throw("Strict value is not equal to itself.") | |
766 | 833 | } | |
767 | 834 | else throw("Strict value is not equal to itself.") | |
768 | 835 | } | |
769 | 836 | } | |
770 | 837 | else throw("Strict value is not equal to itself.") | |
771 | 838 | } | |
772 | 839 | ||
773 | 840 | ||
774 | 841 | ||
775 | - | @Callable( | |
776 | - | func checkWxEmissionPoolLabel ( | |
777 | - | let | |
778 | - | let | |
779 | - | if ($isInstanceOf( | |
842 | + | @Callable(bD) | |
843 | + | func checkWxEmissionPoolLabel (aF,aG) = { | |
844 | + | let eO = { | |
845 | + | let bf = getBoolean(aE(aF, aG)) | |
846 | + | if ($isInstanceOf(bf, "Boolean")) | |
780 | 847 | then { | |
781 | - | let | |
782 | - | | |
848 | + | let cU = bf | |
849 | + | cU | |
783 | 850 | } | |
784 | 851 | else false | |
785 | 852 | } | |
786 | - | $Tuple2(nil, | |
853 | + | $Tuple2(nil, eO) | |
787 | 854 | } | |
788 | 855 | ||
789 | 856 | ||
790 | 857 | ||
791 | - | @Callable( | |
792 | - | func setWxEmissionPoolLabel ( | |
793 | - | let | |
794 | - | if (( | |
795 | - | then $Tuple2([BooleanEntry( | |
858 | + | @Callable(bD) | |
859 | + | func setWxEmissionPoolLabel (aF,aG) = { | |
860 | + | let dm = cq(bD) | |
861 | + | if ((dm == dm)) | |
862 | + | then $Tuple2([BooleanEntry(aE(aF, aG), true)], unit) | |
796 | 863 | else throw("Strict value is not equal to itself.") | |
797 | 864 | } | |
798 | 865 | ||
799 | 866 | ||
800 | 867 | ||
801 | - | @Callable( | |
802 | - | func deleteWxEmissionPoolLabel ( | |
803 | - | let | |
868 | + | @Callable(bD) | |
869 | + | func deleteWxEmissionPoolLabel (aF,aG) = { | |
870 | + | let dm = if ((bD.caller == this)) | |
804 | 871 | then true | |
805 | - | else | |
806 | - | if (( | |
807 | - | then $Tuple2([DeleteEntry( | |
872 | + | else cq(bD) | |
873 | + | if ((dm == dm)) | |
874 | + | then $Tuple2([DeleteEntry(aE(aF, aG))], unit) | |
808 | 875 | else throw("Strict value is not equal to itself.") | |
809 | 876 | } | |
810 | 877 | ||
811 | 878 | ||
812 | 879 | ||
813 | - | @Callable( | |
814 | - | func onVerificationLoss ( | |
815 | - | let | |
880 | + | @Callable(bD) | |
881 | + | func onVerificationLoss (aT) = { | |
882 | + | let dm = if ((toBase58String(bD.caller.bytes) == valueOrElse(getString(this, X()), ""))) | |
816 | 883 | then true | |
817 | - | else | |
818 | - | if (( | |
884 | + | else bE(bD) | |
885 | + | if ((dm == dm)) | |
819 | 886 | then { | |
820 | - | let | |
821 | - | let | |
887 | + | let dt = bx() | |
888 | + | let eP = if ((size(dt) > 0)) | |
822 | 889 | then true | |
823 | - | else | |
824 | - | if (( | |
890 | + | else K("invalid price assets") | |
891 | + | if ((eP == eP)) | |
825 | 892 | then { | |
826 | - | func | |
827 | - | let | |
828 | - | if (( | |
893 | + | func eQ (eR,eS) = { | |
894 | + | let cO = invoke(this, "deleteWxEmissionPoolLabel", [aT, eS], nil) | |
895 | + | if ((cO == cO)) | |
829 | 896 | then unit | |
830 | 897 | else throw("Strict value is not equal to itself.") | |
831 | 898 | } | |
832 | 899 | ||
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | func | |
838 | - | then | |
839 | - | else | |
900 | + | let eT = { | |
901 | + | let eU = dt | |
902 | + | let eV = size(eU) | |
903 | + | let eW = unit | |
904 | + | func eX (eY,eZ) = if ((eZ >= eV)) | |
905 | + | then eY | |
906 | + | else eQ(eY, eU[eZ]) | |
840 | 907 | ||
841 | - | func | |
842 | - | then | |
908 | + | func fa (eY,eZ) = if ((eZ >= eV)) | |
909 | + | then eY | |
843 | 910 | else throw("List size exceeds 11") | |
844 | 911 | ||
845 | - | | |
912 | + | fa(eX(eX(eX(eX(eX(eX(eX(eX(eX(eX(eX(eW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11) | |
846 | 913 | } | |
847 | - | if (( | |
914 | + | if ((eT == eT)) | |
848 | 915 | then $Tuple2(nil, unit) | |
849 | 916 | else throw("Strict value is not equal to itself.") | |
850 | 917 | } | |
851 | 918 | else throw("Strict value is not equal to itself.") | |
852 | 919 | } | |
853 | 920 | else throw("Strict value is not equal to itself.") | |
854 | 921 | } | |
855 | 922 | ||
856 | 923 | ||
857 | 924 | ||
858 | - | @Callable( | |
859 | - | func isPoolOneTokenOperationsDisabledREADONLY ( | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | $Tuple2(nil, if ( | |
925 | + | @Callable(bD) | |
926 | + | func isPoolOneTokenOperationsDisabledREADONLY (af) = { | |
927 | + | let dT = ch(af) | |
928 | + | let aq = $Tuple2(parseIntValue(dT[C]), parseIntValue(dT[D])) | |
929 | + | let fb = valueOrElse(getBoolean(ap(aq)), false) | |
930 | + | let fc = valueOrElse(getBoolean(as()), false) | |
931 | + | $Tuple2(nil, if (fc) | |
865 | 932 | then true | |
866 | - | else | |
933 | + | else fb) | |
867 | 934 | } | |
868 | 935 | ||
869 | 936 | ||
870 | 937 | ||
871 | - | @Callable( | |
872 | - | func getInFeeREADONLY ( | |
873 | - | let | |
874 | - | $Tuple2(nil, | |
938 | + | @Callable(bD) | |
939 | + | func getInFeeREADONLY (af) = { | |
940 | + | let fd = ct(aH(af), aI(), 0) | |
941 | + | $Tuple2(nil, fd) | |
875 | 942 | } | |
876 | 943 | ||
877 | 944 | ||
878 | 945 | ||
879 | - | @Callable( | |
880 | - | func getOutFeeREADONLY ( | |
881 | - | let | |
882 | - | $Tuple2(nil, | |
946 | + | @Callable(bD) | |
947 | + | func getOutFeeREADONLY (af) = { | |
948 | + | let fd = ct(aJ(af), aK(), fraction(10, b, 10000)) | |
949 | + | $Tuple2(nil, fd) | |
883 | 950 | } | |
884 | 951 | ||
885 | 952 | ||
886 | 953 | ||
887 | - | @Callable( | |
888 | - | func poolInfoREADONLY ( | |
889 | - | let | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | then isDefined( | |
954 | + | @Callable(bD) | |
955 | + | func poolInfoREADONLY (fe,ff) = { | |
956 | + | let fg = getInteger(this, ak(fe)) | |
957 | + | let fh = getInteger(this, ak(ff)) | |
958 | + | let fi = getString(this, aB(value(fg), value(fh))) | |
959 | + | let fj = getString(this, aC(value(fi))) | |
960 | + | let dG = if (if (isDefined(fg)) | |
961 | + | then isDefined(fh) | |
895 | 962 | else false) | |
896 | - | then isDefined( | |
963 | + | then isDefined(fi) | |
897 | 964 | else false | |
898 | - | let | |
899 | - | then $Tuple2(addressFromStringValue(value( | |
965 | + | let fk = if (dG) | |
966 | + | then $Tuple2(addressFromStringValue(value(fi)), bc(value(fj))) | |
900 | 967 | else unit | |
901 | - | $Tuple2(nil, | |
968 | + | $Tuple2(nil, fk) | |
902 | 969 | } | |
903 | 970 | ||
904 | 971 | ||
905 | 972 | ||
906 | - | @Callable( | |
907 | - | func getPoolStatusREADONLY ( | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | $Tuple2(nil, parseIntValue( | |
973 | + | @Callable(bD) | |
974 | + | func getPoolStatusREADONLY (af) = { | |
975 | + | let ci = split(aY(az(af)), m) | |
976 | + | let an = ci[1] | |
977 | + | let ao = ci[2] | |
978 | + | let cz = split(aY(am(an, ao)), m) | |
979 | + | $Tuple2(nil, parseIntValue(cz[w])) | |
913 | 980 | } | |
914 | 981 | ||
915 | 982 | ||
916 | 983 | ||
917 | - | @Callable( | |
918 | - | func getPoolConfigREADONLY ( | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | $Tuple2(nil, | |
984 | + | @Callable(bD) | |
985 | + | func getPoolConfigREADONLY (af) = { | |
986 | + | let ci = split(aY(az(af)), m) | |
987 | + | let an = ci[1] | |
988 | + | let ao = ci[2] | |
989 | + | let cz = split(aY(am(an, ao)), m) | |
990 | + | $Tuple2(nil, cz) | |
924 | 991 | } | |
925 | 992 | ||
926 | 993 | ||
927 | 994 | ||
928 | - | @Callable( | |
929 | - | func getPoolConfigByLpAssetIdREADONLY ( | |
930 | - | let | |
931 | - | let | |
932 | - | let | |
933 | - | let | |
934 | - | $Tuple2(nil, | |
995 | + | @Callable(bD) | |
996 | + | func getPoolConfigByLpAssetIdREADONLY (dL) = { | |
997 | + | let ci = split(aY(at(dL)), m) | |
998 | + | let an = ci[1] | |
999 | + | let ao = ci[2] | |
1000 | + | let cz = split(aY(am(an, ao)), m) | |
1001 | + | $Tuple2(nil, cz) | |
935 | 1002 | } | |
936 | 1003 | ||
937 | 1004 | ||
938 | 1005 | ||
939 | - | @Callable( | |
940 | - | func poolExistsREADONLY ( | |
1006 | + | @Callable(bD) | |
1007 | + | func poolExistsREADONLY (aF,aG) = $Tuple2(nil, cw(aF, aG)) | |
941 | 1008 | ||
942 | 1009 | ||
943 | 1010 | ||
944 | - | @Callable( | |
945 | - | func skipOrderValidationREADONLY ( | |
1011 | + | @Callable(bD) | |
1012 | + | func skipOrderValidationREADONLY (af) = $Tuple2(nil, valueOrElse(getBoolean(aL(af)), false)) | |
946 | 1013 | ||
947 | 1014 | ||
948 | 1015 | ||
949 | - | @Callable( | |
950 | - | func getChangeAmpConfigREADONLY ( | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | $Tuple2(nil, [ | |
1016 | + | @Callable(bD) | |
1017 | + | func getChangeAmpConfigREADONLY (af) = { | |
1018 | + | let fl = getIntegerValue(aM(af)) | |
1019 | + | let fm = getIntegerValue(aN(af)) | |
1020 | + | let fn = getIntegerValue(aO(af)) | |
1021 | + | $Tuple2(nil, [fl, fm, fn]) | |
955 | 1022 | } | |
956 | 1023 | ||
957 | 1024 | ||
958 | 1025 | ||
959 | - | @Callable( | |
960 | - | func getPoolWeightREADONLY ( | |
961 | - | let | |
962 | - | let | |
963 | - | $Tuple2(nil, | |
1026 | + | @Callable(bD) | |
1027 | + | func getPoolWeightREADONLY (bV) = { | |
1028 | + | let af = aY(aD(bV)) | |
1029 | + | let fo = valueOrElse(getInteger(ae(af)), 0) | |
1030 | + | $Tuple2(nil, fo) | |
964 | 1031 | } | |
965 | 1032 | ||
966 | 1033 | ||
967 | - | @Verifier(eZ) | |
968 | - | func fa () = { | |
969 | - | let fb = { | |
970 | - | let ba = bt() | |
971 | - | if ($isInstanceOf(ba, "ByteVector")) | |
1034 | + | ||
1035 | + | @Callable(bD) | |
1036 | + | func deletePool (aA) = { | |
1037 | + | let dT = ch(aA) | |
1038 | + | let dm = if ((toString(bD.caller) == cD(aA))) | |
1039 | + | then if (cL(aA)) | |
1040 | + | then true | |
1041 | + | else K("Pool is not empty") | |
1042 | + | else bE(bD) | |
1043 | + | if ((dm == dm)) | |
1044 | + | then { | |
1045 | + | let fp = if ((valueOrElse(getInteger(ae(aA)), 0) == 0)) | |
1046 | + | then true | |
1047 | + | else K("Pool weight is not Zero") | |
1048 | + | if ((fp == fp)) | |
1049 | + | then { | |
1050 | + | let fq = if ((dT[w] == toString(r))) | |
1051 | + | then true | |
1052 | + | else K("Pool must be SHUTDOWN (4)") | |
1053 | + | if ((fq == fq)) | |
1054 | + | then { | |
1055 | + | let fr = cC(aA) | |
1056 | + | let aF = fr._1 | |
1057 | + | let aG = fr._2 | |
1058 | + | let bV = fr._3 | |
1059 | + | let an = fr._4 | |
1060 | + | let ao = fr._5 | |
1061 | + | let cF = addressFromStringValue(getStringValue(Z())) | |
1062 | + | let fs = invoke(cF, "deletePool", [aF, aG], nil) | |
1063 | + | if ((fs == fs)) | |
1064 | + | then { | |
1065 | + | let ds = addressFromStringValue(getStringValue(Y())) | |
1066 | + | let ft = invoke(ds, "deletePool", [aF, aG], nil) | |
1067 | + | if ((ft == ft)) | |
1068 | + | then { | |
1069 | + | let dr = addressFromStringValue(getStringValue(X())) | |
1070 | + | let fu = invoke(dr, "deletePool", [aF, aG], nil) | |
1071 | + | if ((fu == fu)) | |
1072 | + | then [DeleteEntry(aC(aA)), DeleteEntry(az(aA)), DeleteEntry(av(toString(an), toString(ao))), DeleteEntry(aB(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(at(bV)), DeleteEntry(aD(bV)), DeleteEntry(aE(aF, aG)), DeleteEntry(ae(aA)), DeleteEntry(ay(aA)), DeleteEntry(aH(aA)), DeleteEntry(aJ(aA)), DeleteEntry(aL(aA)), DeleteEntry(aM(aA)), DeleteEntry(aN(aA)), DeleteEntry(aO(aA))] | |
1073 | + | else throw("Strict value is not equal to itself.") | |
1074 | + | } | |
1075 | + | else throw("Strict value is not equal to itself.") | |
1076 | + | } | |
1077 | + | else throw("Strict value is not equal to itself.") | |
1078 | + | } | |
1079 | + | else throw("Strict value is not equal to itself.") | |
1080 | + | } | |
1081 | + | else throw("Strict value is not equal to itself.") | |
1082 | + | } | |
1083 | + | else throw("Strict value is not equal to itself.") | |
1084 | + | } | |
1085 | + | ||
1086 | + | ||
1087 | + | @Verifier(fv) | |
1088 | + | func fw () = { | |
1089 | + | let fx = { | |
1090 | + | let bf = by() | |
1091 | + | if ($isInstanceOf(bf, "ByteVector")) | |
972 | 1092 | then { | |
973 | - | let | |
974 | - | | |
1093 | + | let bF = bf | |
1094 | + | bF | |
975 | 1095 | } | |
976 | - | else if ($isInstanceOf( | |
977 | - | then | |
1096 | + | else if ($isInstanceOf(bf, "Unit")) | |
1097 | + | then fv.senderPublicKey | |
978 | 1098 | else throw("Match error") | |
979 | 1099 | } | |
980 | - | sigVerify( | |
1100 | + | sigVerify(fv.bodyBytes, fv.proofs[0], fx) | |
981 | 1101 | } | |
982 | 1102 |
github/deemru/w8io/169f3d6 460.90 ms ◑