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