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