tx · 2ZcMt7cwgMM14AL65mfXEuTRnvj4PrjaLMXSMNDHKsiM 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.02900000 Waves 2022.08.29 15:26 [2205735] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "2ZcMt7cwgMM14AL65mfXEuTRnvj4PrjaLMXSMNDHKsiM", "fee": 2900000, "feeAssetId": null, "timestamp": 1661775957978, "version": 2, "chainId": 84, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "5UAN1vh8DSeqA4cbpAjEz25mEBqd9nqBhsDbzLi6P3wDtxvD8yHaPMVCs8gKXSXwHvNuMGVjPa6wdX7sRAFfwBN9" ], "script": "base64:BgJ/CAISAwoBCBIDCgEIEgASBAoCAQQSBwoFAQEBAQQSAwoBARIAEgcKBQEBAQgBEgQKAgEBEgMKAQESBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCFEABnNjYWxlOACAwtcvAAxzY2FsZThCaWdJbnQJALYCAQCAwtcvAAdzY2FsZTE4CQC2AgEAgICQu7rWrfANAAh0aG91c2FuZADoBwAKemVyb0JpZ0ludAkAtgIBAAAACW9uZUJpZ0ludAkAtgIBAAEACnNsaXBwYWdlNEQJALYCAQkAZQIFBnNjYWxlOAkAaQIJAGgCBQZzY2FsZTgAAQUGc2NhbGU4AAVBbXVsdAIDMTAwAAVEY29udgIBMQADU0VQAgJfXwAFRU1QVFkCAAAKUG9vbEFjdGl2ZQABAApQb29sUHV0RGlzAAIADlBvb2xNYXRjaGVyRGlzAAMADFBvb2xTaHV0ZG93bgAEAA5pZHhQb29sQWRkcmVzcwABAAlpZHhQb29sU3QAAgAJaWR4TFBBc0lkAAMACWlkeEFtQXNJZAAEA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tZsWA1RybVwhozFSRrwWsPfxSw8 Next: CieraDHKh9CkRCKxksgAMzUDpRrAbu8hqNqmhznwuH9T Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
123 | 123 | func al () = "%s__shutdown" | |
124 | 124 | ||
125 | 125 | ||
126 | - | func am ( | |
126 | + | func am () = "%s__allowedLpStableScriptHash" | |
127 | 127 | ||
128 | 128 | ||
129 | - | func aq (G) = { | |
130 | - | let ar = G | |
131 | - | if ($isInstanceOf(ar, "String")) | |
129 | + | func an (ao,ap,aq) = throw(((((("Failed: ordValid=" + toString(ao)) + " sndrValid=") + toString(ap)) + " mtchrValid=") + toString(aq))) | |
130 | + | ||
131 | + | ||
132 | + | func ar (G) = { | |
133 | + | let as = G | |
134 | + | if ($isInstanceOf(as, "String")) | |
132 | 135 | then { | |
133 | - | let | |
134 | - | | |
136 | + | let at = as | |
137 | + | at | |
135 | 138 | } | |
136 | 139 | else throw("fail cast to String") | |
137 | 140 | } | |
138 | 141 | ||
139 | 142 | ||
140 | - | func | |
143 | + | func au (av,aw) = valueOrErrorMessage(getString(av, aw), makeString(["mandatory ", toString(av), ".", aw, " not defined"], "")) | |
141 | 144 | ||
142 | 145 | ||
143 | - | func | |
146 | + | func ax (av,aw) = valueOrErrorMessage(getInteger(av, aw), makeString(["mandatory ", toString(av), ".", aw, " not defined"], "")) | |
144 | 147 | ||
145 | 148 | ||
146 | - | let | |
149 | + | let ay = addressFromStringValue(au(this, N())) | |
147 | 150 | ||
148 | - | let | |
151 | + | let az = au(this, aa()) | |
149 | 152 | ||
150 | - | func | |
153 | + | func aA () = valueOrElse(getBoolean(ay, al()), false) | |
151 | 154 | ||
152 | 155 | ||
153 | - | func | |
156 | + | func aB () = fromBase58String(au(ay, af())) | |
154 | 157 | ||
155 | 158 | ||
156 | - | let | |
159 | + | let aC = addressFromPublicKey(aB()) | |
157 | 160 | ||
158 | - | func | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | let ah = | |
163 | - | split( | |
161 | + | func aD () = { | |
162 | + | let aE = au(this, Y()) | |
163 | + | let aF = au(this, Z()) | |
164 | + | let aG = ax(ay, aj(aF)) | |
165 | + | let ah = ax(ay, aj(aE)) | |
166 | + | split(au(ay, ag(toString(ah), toString(aG))), j) | |
164 | 167 | } | |
165 | 168 | ||
166 | 169 | ||
167 | - | func | |
170 | + | func aH () = split(au(ay, ae()), j) | |
168 | 171 | ||
169 | 172 | ||
170 | - | func | |
173 | + | func aI (aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aJ), toString(aK), toString(aL), toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(aS)], j) | |
171 | 174 | ||
172 | 175 | ||
173 | - | func | |
176 | + | func aT (aU,aV,aW,aM,aP,aQ) = makeString(["%d%d%d%d%d%d", toString(aU), toString(aV), toString(aW), toString(aM), toString(aP), toString(aQ)], j) | |
174 | 177 | ||
175 | 178 | ||
176 | - | func | |
179 | + | func aX (aY) = if ((aY == "WAVES")) | |
177 | 180 | then wavesBalance(this).available | |
178 | - | else assetBalance(this, fromBase58String( | |
181 | + | else assetBalance(this, fromBase58String(aY)) | |
179 | 182 | ||
180 | 183 | ||
181 | - | func | |
184 | + | func aZ (ba,bb) = fraction(ba, c, bb) | |
182 | 185 | ||
183 | 186 | ||
184 | - | func | |
185 | - | let | |
186 | - | let | |
187 | - | if (!( | |
188 | - | then throw(("Big slpg: " + toString( | |
189 | - | else $Tuple2( | |
187 | + | func bc (bd,be,bf) = { | |
188 | + | let bg = fraction((bd - be), b, be) | |
189 | + | let bh = ((bf - M(bg)) > e) | |
190 | + | if (!(bh)) | |
191 | + | then throw(("Big slpg: " + toString(bg))) | |
192 | + | else $Tuple2(bh, min([bd, be])) | |
190 | 193 | } | |
191 | 194 | ||
192 | 195 | ||
193 | - | func | |
194 | - | let | |
195 | - | let | |
196 | - | if (if ( | |
196 | + | func bi (bj,bk,bl) = { | |
197 | + | let bg = fraction(bk, b, bj) | |
198 | + | let bm = (bl > bg) | |
199 | + | if (if (bm) | |
197 | 200 | then true | |
198 | - | else ( | |
199 | - | then throw(((((((toString( | |
200 | - | else | |
201 | + | else (bk > bj)) | |
202 | + | then throw(((((((toString(bk) + " ") + toString(bj)) + " ") + toString(bg)) + " ") + toString(bl))) | |
203 | + | else bm | |
201 | 204 | } | |
202 | 205 | ||
203 | 206 | ||
204 | - | func bm (bn,bo,bp,bq) = { | |
205 | - | let br = C(bp, bn) | |
207 | + | func bn (bo,bp,bq,br) = { | |
206 | 208 | let bs = C(bq, bo) | |
207 | - | aY(bs, br) | |
209 | + | let bt = C(br, bp) | |
210 | + | aZ(bt, bs) | |
208 | 211 | } | |
209 | 212 | ||
210 | 213 | ||
211 | - | func | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | [ | |
214 | + | func bu (bq,br,bv) = { | |
215 | + | let bw = aD() | |
216 | + | let bx = parseIntValue(bw[u]) | |
217 | + | let by = parseIntValue(bw[v]) | |
218 | + | let bz = bn(bx, by, bq, br) | |
219 | + | let bb = C(bq, bx) | |
220 | + | let ba = C(br, by) | |
221 | + | let bA = C(bv, a) | |
222 | + | let bB = aZ(bb, bA) | |
223 | + | let bC = aZ(ba, bA) | |
224 | + | [bz, bB, bC] | |
222 | 225 | } | |
223 | 226 | ||
224 | 227 | ||
225 | - | func | |
226 | - | let | |
227 | - | [F( | |
228 | + | func bD (bq,br,bv) = { | |
229 | + | let bE = bu(bq, br, bv) | |
230 | + | [F(bE[0], a), F(bE[1], a), F(bE[2], a)] | |
228 | 231 | } | |
229 | 232 | ||
230 | 233 | ||
231 | - | func | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | if (( | |
234 | + | func bF (bG,bH,bI,bJ) = { | |
235 | + | let bw = aD() | |
236 | + | let bK = bw[r] | |
237 | + | let bL = bw[s] | |
238 | + | let bM = bw[t] | |
239 | + | let bN = parseIntValue(bw[u]) | |
240 | + | let bO = parseIntValue(bw[v]) | |
241 | + | let bP = bw[q] | |
242 | + | let bQ = valueOrErrorMessage(assetInfo(fromBase58String(bK)), "Wrong LP id").quantity | |
243 | + | if ((bK != bH)) | |
241 | 244 | then throw("Wrong pmt asset") | |
242 | 245 | else { | |
243 | - | let bQ = aW(bK) | |
244 | - | let bR = C(bQ, bM) | |
245 | - | let bS = aW(bL) | |
246 | - | let bT = C(bS, bN) | |
247 | - | let bU = aY(bT, bR) | |
248 | - | let bV = F(bU, a) | |
249 | - | let bW = C(bH, a) | |
250 | - | let bX = C(bP, a) | |
251 | - | let bY = fraction(bR, bW, bX) | |
252 | - | let bZ = fraction(bT, bW, bX) | |
253 | - | let ca = F(bY, bM) | |
246 | + | let bR = aX(bL) | |
247 | + | let bS = C(bR, bN) | |
248 | + | let bT = aX(bM) | |
249 | + | let bU = C(bT, bO) | |
250 | + | let bV = aZ(bU, bS) | |
251 | + | let bW = F(bV, a) | |
252 | + | let bX = C(bI, a) | |
253 | + | let bY = C(bQ, a) | |
254 | + | let bZ = fraction(bS, bX, bY) | |
255 | + | let ca = fraction(bU, bX, bY) | |
254 | 256 | let cb = F(bZ, bN) | |
255 | - | let cc = if ((bF == "")) | |
257 | + | let cc = F(ca, bO) | |
258 | + | let cd = if ((bG == "")) | |
256 | 259 | then nil | |
257 | - | else [ScriptTransfer( | |
260 | + | else [ScriptTransfer(bJ, cb, if ((bL == "WAVES")) | |
258 | 261 | then unit | |
259 | - | else fromBase58String( | |
262 | + | else fromBase58String(bL)), ScriptTransfer(bJ, cc, if ((bM == "WAVES")) | |
260 | 263 | then unit | |
261 | - | else fromBase58String( | |
262 | - | $Tuple10( | |
264 | + | else fromBase58String(bM)), StringEntry(X(toString(bJ), bG), aT(cb, cc, bI, bW, height, lastBlock.timestamp)), IntegerEntry(Q(), bW), IntegerEntry(R(height, lastBlock.timestamp), bW)] | |
265 | + | $Tuple10(cb, cc, bL, bM, bR, bT, bQ, bV, bP, cd) | |
263 | 266 | } | |
264 | 267 | } | |
265 | 268 | ||
266 | 269 | ||
267 | - | func | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | then | |
280 | - | else if (if ( | |
281 | - | then ( | |
270 | + | func ce (bG,bf,cf,cg,ch,ci,bJ,cj,ck,cl,cm,cn) = { | |
271 | + | let bw = aD() | |
272 | + | let bK = fromBase58String(bw[r]) | |
273 | + | let co = bw[s] | |
274 | + | let cp = bw[t] | |
275 | + | let cq = bw[w] | |
276 | + | let cr = bw[x] | |
277 | + | let cs = parseIntValue(bw[u]) | |
278 | + | let ct = parseIntValue(bw[v]) | |
279 | + | let bP = bw[q] | |
280 | + | let cu = valueOrErrorMessage(assetInfo(bK), "Wr lp as").quantity | |
281 | + | let bR = if (cj) | |
282 | + | then aX(co) | |
283 | + | else if (if (cl) | |
284 | + | then (cn == co) | |
282 | 285 | else false) | |
283 | - | then ( | |
284 | - | else if ( | |
285 | - | then | |
286 | - | else ( | |
287 | - | let | |
288 | - | then | |
289 | - | else if (if ( | |
290 | - | then ( | |
286 | + | then (aX(co) - cm) | |
287 | + | else if (cl) | |
288 | + | then aX(co) | |
289 | + | else (aX(co) - cf) | |
290 | + | let bT = if (cj) | |
291 | + | then aX(cp) | |
292 | + | else if (if (cl) | |
293 | + | then (cn == cp) | |
291 | 294 | else false) | |
292 | - | then ( | |
293 | - | else if ( | |
294 | - | then | |
295 | - | else ( | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
295 | + | then (aX(cp) - cm) | |
296 | + | else if (cl) | |
297 | + | then aX(cp) | |
298 | + | else (aX(cp) - ch) | |
299 | + | let cv = C(cf, cs) | |
300 | + | let cw = C(ch, ct) | |
301 | + | let cx = aZ(cw, cv) | |
302 | + | let bS = C(bR, cs) | |
303 | + | let bU = C(bT, ct) | |
304 | + | let cy = if ((cu == 0)) | |
302 | 305 | then { | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | $Tuple5(F( | |
306 | + | let bV = e | |
307 | + | let cz = e | |
308 | + | let bA = pow((cv * cw), 0, toBigInt(5), 1, 0, DOWN) | |
309 | + | $Tuple5(F(bA, a), F(cv, cs), F(cw, ct), aZ((bU + cw), (bS + cv)), cz) | |
307 | 310 | } | |
308 | 311 | else { | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | if (if (( | |
313 | - | then ( | |
312 | + | let bV = aZ(bU, bS) | |
313 | + | let cA = fraction(M((bV - cx)), c, bV) | |
314 | + | let cz = C(bf, a) | |
315 | + | if (if ((bV != e)) | |
316 | + | then (cA > cz) | |
314 | 317 | else false) | |
315 | - | then throw(((("Price slippage " + toString( | |
318 | + | then throw(((("Price slippage " + toString(cA)) + " > ") + toString(cz))) | |
316 | 319 | else { | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | then $Tuple2( | |
322 | - | else $Tuple2( | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | $Tuple5(F( | |
320 | + | let cB = C(cu, a) | |
321 | + | let cC = fraction(cv, bV, c) | |
322 | + | let cD = fraction(cw, c, bV) | |
323 | + | let cE = if ((cC > cw)) | |
324 | + | then $Tuple2(cD, cw) | |
325 | + | else $Tuple2(cv, cC) | |
326 | + | let cF = cE._1 | |
327 | + | let cG = cE._2 | |
328 | + | let bA = fraction(cB, cG, bU) | |
329 | + | $Tuple5(F(bA, a), F(cF, cs), F(cG, ct), bV, cz) | |
327 | 330 | } | |
328 | 331 | } | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | if ((0 >= | |
332 | + | let cH = cy._1 | |
333 | + | let cI = cy._2 | |
334 | + | let cJ = cy._3 | |
335 | + | let bW = F(cy._4, a) | |
336 | + | let cK = F(cy._5, a) | |
337 | + | if ((0 >= cH)) | |
335 | 338 | then throw("LP <= 0") | |
336 | 339 | else { | |
337 | - | let | |
340 | + | let cL = if (!(ck)) | |
338 | 341 | then 0 | |
339 | - | else | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | then ( | |
342 | + | else cH | |
343 | + | let cM = (cf - cI) | |
344 | + | let cN = (ch - cJ) | |
345 | + | let cO = if (if (cl) | |
346 | + | then (cn == co) | |
344 | 347 | else false) | |
345 | - | then $Tuple2( | |
346 | - | else if (if ( | |
347 | - | then ( | |
348 | + | then $Tuple2(cm, 0) | |
349 | + | else if (if (cl) | |
350 | + | then (cn == cp) | |
348 | 351 | else false) | |
349 | - | then $Tuple2(0, | |
350 | - | else $Tuple2( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | $Tuple13( | |
352 | + | then $Tuple2(0, cm) | |
353 | + | else $Tuple2(cI, cJ) | |
354 | + | let cP = cO._1 | |
355 | + | let cQ = cO._2 | |
356 | + | let cR = [IntegerEntry(Q(), bW), IntegerEntry(R(height, lastBlock.timestamp), bW), StringEntry(U(bJ, bG), aI(cP, cQ, cL, bW, bf, cK, height, lastBlock.timestamp, cM, cN))] | |
357 | + | $Tuple13(cH, cL, bW, bR, bT, cu, bK, bP, cR, cM, cN, cg, ci) | |
355 | 358 | } | |
356 | 359 | } | |
357 | 360 | ||
358 | 361 | ||
359 | - | func | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | then | |
370 | - | else | |
371 | - | let | |
372 | - | if (if (if ( | |
362 | + | func cS (cT) = { | |
363 | + | let bw = aD() | |
364 | + | let cU = bw[s] | |
365 | + | let cV = bw[t] | |
366 | + | let bP = parseIntValue(bw[q]) | |
367 | + | let bx = parseIntValue(bw[u]) | |
368 | + | let by = parseIntValue(bw[v]) | |
369 | + | let cW = aX(cU) | |
370 | + | let cX = aX(cV) | |
371 | + | let bV = if ((cT.orderType == Buy)) | |
372 | + | then bn(bx, by, (cW + cT.amount), cX) | |
373 | + | else bn(bx, by, (cW - cT.amount), cX) | |
374 | + | let bW = F(bV, a) | |
375 | + | if (if (if (aA()) | |
373 | 376 | then true | |
374 | - | else ( | |
377 | + | else (bP == n)) | |
375 | 378 | then true | |
376 | - | else ( | |
379 | + | else (bP == o)) | |
377 | 380 | then throw("Admin blocked") | |
378 | 381 | else { | |
379 | - | let | |
380 | - | let | |
382 | + | let cY = cT.assetPair.amountAsset | |
383 | + | let cZ = if ((cY == unit)) | |
381 | 384 | then "WAVES" | |
382 | - | else toBase58String(value( | |
383 | - | let | |
384 | - | let | |
385 | + | else toBase58String(value(cY)) | |
386 | + | let da = cT.assetPair.priceAsset | |
387 | + | let db = if ((da == unit)) | |
385 | 388 | then "WAVES" | |
386 | - | else toBase58String(value( | |
387 | - | if (if (( | |
389 | + | else toBase58String(value(da)) | |
390 | + | if (if ((cZ != cU)) | |
388 | 391 | then true | |
389 | - | else ( | |
392 | + | else (db != cV)) | |
390 | 393 | then throw("Wr assets") | |
391 | 394 | else { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | then ( | |
397 | - | else ( | |
395 | + | let dc = cT.price | |
396 | + | let ct = fraction(a, by, bx) | |
397 | + | let dd = I(dc, a, ct) | |
398 | + | let de = if ((cT.orderType == Buy)) | |
399 | + | then (bW >= dd) | |
400 | + | else (dd >= bW) | |
398 | 401 | true | |
399 | 402 | } | |
400 | 403 | } | |
401 | 404 | } | |
402 | 405 | ||
403 | 406 | ||
404 | - | func | |
407 | + | func df (dg) = if ((size(dg.payments) != 1)) | |
405 | 408 | then throw("1 pmnt exp") | |
406 | 409 | else { | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | if (if ( | |
410 | + | let dh = value(dg.payments[0]) | |
411 | + | let bH = value(dh.assetId) | |
412 | + | let cm = dh.amount | |
413 | + | let cy = bF(toBase58String(dg.transactionId), toBase58String(bH), cm, dg.caller) | |
414 | + | let cb = cy._1 | |
415 | + | let cc = cy._2 | |
416 | + | let bP = parseIntValue(cy._9) | |
417 | + | let cd = cy._10 | |
418 | + | if (if (aA()) | |
416 | 419 | then true | |
417 | - | else ( | |
418 | - | then throw(("Admin blocked: " + toString( | |
419 | - | else $Tuple5( | |
420 | + | else (bP == o)) | |
421 | + | then throw(("Admin blocked: " + toString(bP))) | |
422 | + | else $Tuple5(cb, cc, cm, bH, cd) | |
420 | 423 | } | |
421 | 424 | ||
422 | 425 | ||
423 | - | func | |
424 | - | let | |
425 | - | let | |
426 | - | if (if (if ( | |
426 | + | func di (dj,W,dk,dl,bf,ck,cl,cm,cn) = { | |
427 | + | let cy = ce(W, bf, value(dk).amount, value(dk).assetId, value(dl).amount, value(dl).assetId, dj, false, ck, cl, cm, cn) | |
428 | + | let bP = parseIntValue(cy._8) | |
429 | + | if (if (if (aA()) | |
427 | 430 | then true | |
428 | - | else ( | |
431 | + | else (bP == m)) | |
429 | 432 | then true | |
430 | - | else ( | |
431 | - | then throw(("Blocked:" + toString( | |
432 | - | else | |
433 | + | else (bP == o)) | |
434 | + | then throw(("Blocked:" + toString(bP))) | |
435 | + | else cy | |
433 | 436 | } | |
434 | 437 | ||
435 | 438 | ||
436 | - | func | |
437 | - | let | |
438 | - | $Tuple2(( | |
439 | + | func dm (dn) = { | |
440 | + | let do = fraction(dn, ad, d) | |
441 | + | $Tuple2((dn - do), do) | |
439 | 442 | } | |
440 | 443 | ||
441 | 444 | ||
442 | - | func | |
443 | - | let | |
444 | - | if ($isInstanceOf( | |
445 | + | func dp () = { | |
446 | + | let as = getString(O()) | |
447 | + | if ($isInstanceOf(as, "String")) | |
445 | 448 | then { | |
446 | - | let | |
447 | - | fromBase58String( | |
449 | + | let dq = as | |
450 | + | fromBase58String(dq) | |
448 | 451 | } | |
449 | - | else if ($isInstanceOf( | |
452 | + | else if ($isInstanceOf(as, "Unit")) | |
450 | 453 | then unit | |
451 | 454 | else throw("Match error") | |
452 | 455 | } | |
453 | 456 | ||
454 | 457 | ||
455 | - | func | |
456 | - | let | |
457 | - | if ($isInstanceOf( | |
458 | + | func dr () = { | |
459 | + | let as = getString(P()) | |
460 | + | if ($isInstanceOf(as, "String")) | |
458 | 461 | then { | |
459 | - | let | |
460 | - | fromBase58String( | |
462 | + | let dq = as | |
463 | + | fromBase58String(dq) | |
461 | 464 | } | |
462 | - | else if ($isInstanceOf( | |
465 | + | else if ($isInstanceOf(as, "Unit")) | |
463 | 466 | then unit | |
464 | 467 | else throw("Match error") | |
465 | 468 | } | |
466 | 469 | ||
467 | 470 | ||
468 | - | let | |
471 | + | let ds = throw("Permission denied") | |
469 | 472 | ||
470 | - | func | |
471 | - | let | |
472 | - | if ($isInstanceOf( | |
473 | + | func dt (dg) = { | |
474 | + | let as = dp() | |
475 | + | if ($isInstanceOf(as, "ByteVector")) | |
473 | 476 | then { | |
474 | - | let | |
475 | - | if (( | |
477 | + | let du = as | |
478 | + | if ((dg.callerPublicKey == du)) | |
476 | 479 | then true | |
477 | - | else | |
480 | + | else ds | |
478 | 481 | } | |
479 | - | else if ($isInstanceOf( | |
480 | - | then if (( | |
482 | + | else if ($isInstanceOf(as, "Unit")) | |
483 | + | then if ((dg.caller == this)) | |
481 | 484 | then true | |
482 | - | else | |
485 | + | else ds | |
483 | 486 | else throw("Match error") | |
484 | 487 | } | |
485 | 488 | ||
486 | 489 | ||
487 | - | @Callable( | |
490 | + | @Callable(dg) | |
488 | 491 | func constructor (N) = { | |
489 | - | let | |
490 | - | if (( | |
492 | + | let dv = dt(dg) | |
493 | + | if ((dv == dv)) | |
491 | 494 | then [StringEntry(N(), N)] | |
492 | 495 | else throw("Strict value is not equal to itself.") | |
493 | 496 | } | |
494 | 497 | ||
495 | 498 | ||
496 | 499 | ||
497 | - | @Callable( | |
498 | - | func setManager ( | |
499 | - | let | |
500 | - | if (( | |
500 | + | @Callable(dg) | |
501 | + | func setManager (dw) = { | |
502 | + | let dv = dt(dg) | |
503 | + | if ((dv == dv)) | |
501 | 504 | then { | |
502 | - | let | |
503 | - | if (( | |
504 | - | then [StringEntry(P(), | |
505 | + | let dx = fromBase58String(dw) | |
506 | + | if ((dx == dx)) | |
507 | + | then [StringEntry(P(), dw)] | |
505 | 508 | else throw("Strict value is not equal to itself.") | |
506 | 509 | } | |
507 | 510 | else throw("Strict value is not equal to itself.") | |
509 | 512 | ||
510 | 513 | ||
511 | 514 | ||
512 | - | @Callable( | |
515 | + | @Callable(dg) | |
513 | 516 | func confirmManager () = { | |
514 | - | let | |
515 | - | let | |
517 | + | let bE = dr() | |
518 | + | let dy = if (isDefined(bE)) | |
516 | 519 | then true | |
517 | 520 | else throw("No pending manager") | |
518 | - | if (( | |
521 | + | if ((dy == dy)) | |
519 | 522 | then { | |
520 | - | let | |
523 | + | let dz = if ((dg.callerPublicKey == value(bE))) | |
521 | 524 | then true | |
522 | 525 | else throw("You are not pending manager") | |
523 | - | if (( | |
524 | - | then [StringEntry(O(), toBase58String(value( | |
526 | + | if ((dz == dz)) | |
527 | + | then [StringEntry(O(), toBase58String(value(bE))), DeleteEntry(P())] | |
525 | 528 | else throw("Strict value is not equal to itself.") | |
526 | 529 | } | |
527 | 530 | else throw("Strict value is not equal to itself.") | |
529 | 532 | ||
530 | 533 | ||
531 | 534 | ||
532 | - | @Callable( | |
533 | - | func put ( | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | if ((0 > | |
535 | + | @Callable(dg) | |
536 | + | func put (dA,dB) = { | |
537 | + | let dC = aH() | |
538 | + | let dD = valueOrErrorMessage(addressFromString(dC[y]), "Wr st addr") | |
539 | + | let dE = valueOrErrorMessage(addressFromString(dC[z]), "Wr sl addr") | |
540 | + | if ((0 > dA)) | |
538 | 541 | then throw("Wrong slippage") | |
539 | - | else if ((size( | |
542 | + | else if ((size(dg.payments) != 2)) | |
540 | 543 | then throw("2 pmnts expd") | |
541 | 544 | else { | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | if (( | |
545 | + | let dF = di(toString(dg.caller), toBase58String(dg.transactionId), AttachedPayment(value(dg.payments[0]).assetId, value(dg.payments[0]).amount), dg.payments[1], dA, true, false, 0, "") | |
546 | + | let cL = dF._2 | |
547 | + | let dG = dF._7 | |
548 | + | let cd = dF._9 | |
549 | + | let cM = dF._10 | |
550 | + | let cN = dF._11 | |
551 | + | let bL = dF._12 | |
552 | + | let bM = dF._13 | |
553 | + | let cy = invoke(ay, "emit", [cL], nil) | |
554 | + | if ((cy == cy)) | |
552 | 555 | then { | |
553 | - | let | |
554 | - | let | |
555 | - | if ($isInstanceOf( | |
556 | + | let dH = { | |
557 | + | let as = cy | |
558 | + | if ($isInstanceOf(as, "Address")) | |
556 | 559 | then { | |
557 | - | let | |
558 | - | invoke( | |
560 | + | let dI = as | |
561 | + | invoke(dI, "emit", [cL], nil) | |
559 | 562 | } | |
560 | 563 | else unit | |
561 | 564 | } | |
562 | - | if (( | |
565 | + | if ((dH == dH)) | |
563 | 566 | then { | |
564 | - | let | |
565 | - | then invoke( | |
567 | + | let dJ = if ((cM > 0)) | |
568 | + | then invoke(dE, "put", nil, [AttachedPayment(bL, cM)]) | |
566 | 569 | else nil | |
567 | - | if (( | |
570 | + | if ((dJ == dJ)) | |
568 | 571 | then { | |
569 | - | let | |
570 | - | then invoke( | |
572 | + | let dK = if ((cN > 0)) | |
573 | + | then invoke(dE, "put", nil, [AttachedPayment(bM, cN)]) | |
571 | 574 | else nil | |
572 | - | if (( | |
575 | + | if ((dK == dK)) | |
573 | 576 | then { | |
574 | - | let | |
577 | + | let dL = if (dB) | |
575 | 578 | then { | |
576 | - | let | |
577 | - | if (( | |
579 | + | let dM = invoke(dD, "stake", nil, [AttachedPayment(dG, cL)]) | |
580 | + | if ((dM == dM)) | |
578 | 581 | then nil | |
579 | 582 | else throw("Strict value is not equal to itself.") | |
580 | 583 | } | |
581 | - | else [ScriptTransfer( | |
582 | - | ( | |
584 | + | else [ScriptTransfer(dg.caller, cL, dG)] | |
585 | + | (cd ++ dL) | |
583 | 586 | } | |
584 | 587 | else throw("Strict value is not equal to itself.") | |
585 | 588 | } | |
593 | 596 | ||
594 | 597 | ||
595 | 598 | ||
596 | - | @Callable(df) | |
597 | - | func putOneTkn (dM,dN,dO,be,dA) = { | |
598 | - | let bv = aG() | |
599 | - | let dC = valueOrErrorMessage(addressFromString(bv[y]), "Wr st addr") | |
600 | - | let dD = valueOrErrorMessage(addressFromString(bv[z]), "Wr sl addr") | |
601 | - | let dP = valueOrErrorMessage(addressFromString(bv[A]), "Wr gwx addr") | |
602 | - | let dQ = aC() | |
603 | - | let bK = dQ[s] | |
604 | - | let bL = dQ[t] | |
605 | - | let bM = parseIntValue(dQ[u]) | |
606 | - | let bN = parseIntValue(dQ[v]) | |
607 | - | let dR = valueOrElse(getString(this, ab()), "") | |
608 | - | let bI = if ((dR == toString(df.caller))) | |
609 | - | then df.originCaller | |
610 | - | else df.caller | |
611 | - | if (if (if (if ((0 >= be)) | |
612 | - | then true | |
613 | - | else (0 >= dM)) | |
599 | + | @Callable(dg) | |
600 | + | func putOneTkn (dN,dO,dP,bf,dB) = { | |
601 | + | let bw = aH() | |
602 | + | let dD = valueOrErrorMessage(addressFromString(bw[y]), "Wr st addr") | |
603 | + | let dE = valueOrErrorMessage(addressFromString(bw[z]), "Wr sl addr") | |
604 | + | let dQ = valueOrErrorMessage(addressFromString(bw[A]), "Wr gwx addr") | |
605 | + | let dR = aD() | |
606 | + | let bL = dR[s] | |
607 | + | let bM = dR[t] | |
608 | + | let bN = parseIntValue(dR[u]) | |
609 | + | let bO = parseIntValue(dR[v]) | |
610 | + | let dS = valueOrElse(getString(this, ab()), "") | |
611 | + | let bJ = if ((dS == toString(dg.caller))) | |
612 | + | then dg.originCaller | |
613 | + | else dg.caller | |
614 | + | if (if (if (if ((0 >= bf)) | |
614 | 615 | then true | |
615 | 616 | else (0 >= dN)) | |
616 | 617 | then true | |
617 | 618 | else (0 >= dO)) | |
619 | + | then true | |
620 | + | else (0 >= dP)) | |
618 | 621 | then throw("Wrong params") | |
619 | - | else if ((size( | |
622 | + | else if ((size(dg.payments) != 1)) | |
620 | 623 | then throw("1 pmnt expd") | |
621 | 624 | else { | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | if ((10000000 > | |
625 | + | let dh = value(dg.payments[0]) | |
626 | + | let bH = toBase58String(value(dh.assetId)) | |
627 | + | let dT = dh.amount | |
628 | + | let dU = dm(dT) | |
629 | + | let cm = dU._1 | |
630 | + | let dV = dU._2 | |
631 | + | if ((10000000 > dT)) | |
629 | 632 | then throw("Wrong pmt amt") | |
630 | 633 | else { | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | then if (if (( | |
634 | + | let bR = aX(bL) | |
635 | + | let bT = aX(bM) | |
636 | + | let dW = if ((bH == bL)) | |
637 | + | then if (if ((cm > bR)) | |
635 | 638 | then true | |
636 | - | else ( | |
639 | + | else (dN > cm)) | |
637 | 640 | then throw("invalid payment amount") | |
638 | - | else $Tuple6(( | |
639 | - | else if (( | |
640 | - | then if (if (( | |
641 | + | else $Tuple6((bR - cm), bT, (cm - dN), dO, 0, 0) | |
642 | + | else if ((bH == bM)) | |
643 | + | then if (if ((cm > bT)) | |
641 | 644 | then true | |
642 | - | else ( | |
645 | + | else (dO > cm)) | |
643 | 646 | then throw("invalid payment amount") | |
644 | - | else $Tuple6( | |
647 | + | else $Tuple6(bR, (bT - cm), 0, 0, (cm - dO), dN) | |
645 | 648 | else throw("wrong pmtAssetId") | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | if (( | |
649 | + | let dX = dW._1 | |
650 | + | let dY = dW._2 | |
651 | + | let dZ = dW._3 | |
652 | + | let ea = dW._4 | |
653 | + | let eb = dW._5 | |
654 | + | let ec = dW._6 | |
655 | + | let bk = invoke(dQ, "calcD", [toString(dX), toString(dY), az, h, i], nil) | |
656 | + | let bj = invoke(dQ, "calcD", [toString(toBigInt(((dX + dZ) - ec))), toString(toBigInt(((dY + eb) - ea))), az, h, i], nil) | |
657 | + | let ed = bi(parseBigIntValue(ar(bj)), parseBigIntValue(ar(bk)), g) | |
658 | + | if ((ed == ed)) | |
656 | 659 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | if (( | |
660 | + | let ee = di(toString(dg.caller), toBase58String(dg.transactionId), AttachedPayment(fromBase58String(bL), dN), AttachedPayment(fromBase58String(bM), dO), bf, true, true, cm, bH) | |
661 | + | let ef = ee._2 | |
662 | + | let dG = ee._7 | |
663 | + | let cd = ee._9 | |
664 | + | let cM = ee._10 | |
665 | + | let cN = ee._11 | |
666 | + | let eg = bc(toBigInt(ef), toBigInt(dP), toBigInt(bf)) | |
667 | + | let cL = toInt(eg._2) | |
668 | + | let dF = invoke(ay, "emit", [cL], nil) | |
669 | + | if ((dF == dF)) | |
667 | 670 | then { | |
668 | - | let | |
669 | - | let | |
670 | - | if ($isInstanceOf( | |
671 | + | let dH = { | |
672 | + | let as = dF | |
673 | + | if ($isInstanceOf(as, "Address")) | |
671 | 674 | then { | |
672 | - | let | |
673 | - | invoke( | |
675 | + | let dI = as | |
676 | + | invoke(dI, "emit", [cL], nil) | |
674 | 677 | } | |
675 | 678 | else unit | |
676 | 679 | } | |
677 | - | if (( | |
680 | + | if ((dH == dH)) | |
678 | 681 | then { | |
679 | - | let | |
680 | - | then invoke( | |
682 | + | let dJ = if ((cM > 0)) | |
683 | + | then invoke(dE, "put", nil, [AttachedPayment(fromBase58String(bL), cM)]) | |
681 | 684 | else nil | |
682 | - | if (( | |
685 | + | if ((dJ == dJ)) | |
683 | 686 | then { | |
684 | - | let | |
685 | - | then invoke( | |
687 | + | let dK = if ((cN > 0)) | |
688 | + | then invoke(dE, "put", nil, [AttachedPayment(fromBase58String(bM), cN)]) | |
686 | 689 | else nil | |
687 | - | if (( | |
690 | + | if ((dK == dK)) | |
688 | 691 | then { | |
689 | - | let | |
692 | + | let dL = if (dB) | |
690 | 693 | then { | |
691 | - | let | |
692 | - | if (( | |
694 | + | let dM = invoke(dD, "stake", nil, [AttachedPayment(dG, cL)]) | |
695 | + | if ((dM == dM)) | |
693 | 696 | then nil | |
694 | 697 | else throw("Strict value is not equal to itself.") | |
695 | 698 | } | |
696 | - | else [ScriptTransfer( | |
697 | - | let | |
698 | - | then [ScriptTransfer( | |
699 | + | else [ScriptTransfer(dg.caller, cL, dG)] | |
700 | + | let eh = if ((dV > 0)) | |
701 | + | then [ScriptTransfer(aC, dV, fromBase58String(bH))] | |
699 | 702 | else nil | |
700 | - | (( | |
703 | + | ((cd ++ dL) ++ eh) | |
701 | 704 | } | |
702 | 705 | else throw("Strict value is not equal to itself.") | |
703 | 706 | } | |
714 | 717 | ||
715 | 718 | ||
716 | 719 | ||
717 | - | @Callable( | |
718 | - | func putForFree ( | |
720 | + | @Callable(dg) | |
721 | + | func putForFree (ei) = if ((0 > ei)) | |
719 | 722 | then throw("Wrong slpg") | |
720 | - | else if ((size( | |
723 | + | else if ((size(dg.payments) != 2)) | |
721 | 724 | then throw("2 pmnts expd") | |
722 | 725 | else { | |
723 | - | let | |
724 | - | | |
726 | + | let ee = di(toString(dg.caller), toBase58String(dg.transactionId), AttachedPayment(value(dg.payments[0]).assetId, value(dg.payments[0]).amount), dg.payments[1], ei, false, false, 0, "") | |
727 | + | ee._9 | |
725 | 728 | } | |
726 | 729 | ||
727 | 730 | ||
728 | 731 | ||
729 | - | @Callable( | |
732 | + | @Callable(dg) | |
730 | 733 | func get () = { | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | if (( | |
739 | - | then | |
734 | + | let cy = df(dg) | |
735 | + | let ej = cy._1 | |
736 | + | let cc = cy._2 | |
737 | + | let cm = cy._3 | |
738 | + | let bH = cy._4 | |
739 | + | let cd = cy._5 | |
740 | + | let ek = invoke(ay, "burn", [cm], [AttachedPayment(bH, cm)]) | |
741 | + | if ((ek == ek)) | |
742 | + | then cd | |
740 | 743 | else throw("Strict value is not equal to itself.") | |
741 | 744 | } | |
742 | 745 | ||
743 | 746 | ||
744 | 747 | ||
745 | - | @Callable( | |
746 | - | func getOneTkn ( | |
748 | + | @Callable(dg) | |
749 | + | func getOneTkn (el,em,en,eo,bf) = if ((size(dg.payments) != 1)) | |
747 | 750 | then throw("1 pmnt expd") | |
748 | 751 | else { | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | then | |
762 | - | else | |
763 | - | let | |
764 | - | let | |
765 | - | let | |
766 | - | if ((1000000000 > | |
752 | + | let bw = aD() | |
753 | + | let bK = bw[r] | |
754 | + | let bL = bw[s] | |
755 | + | let bM = bw[t] | |
756 | + | let bN = parseIntValue(bw[u]) | |
757 | + | let bO = parseIntValue(bw[v]) | |
758 | + | let bP = bw[q] | |
759 | + | let dC = aH() | |
760 | + | let dQ = valueOrErrorMessage(addressFromString(dC[A]), "Wr sl addr") | |
761 | + | let dh = value(dg.payments[0]) | |
762 | + | let dS = valueOrElse(getString(this, ab()), "") | |
763 | + | let bJ = if ((dS == toString(dg.caller))) | |
764 | + | then dg.originCaller | |
765 | + | else dg.caller | |
766 | + | let bG = toBase58String(dg.transactionId) | |
767 | + | let bH = value(dh.assetId) | |
768 | + | let cm = dh.amount | |
769 | + | if ((1000000000 > cm)) | |
767 | 770 | then throw("Min pmt 10 LP") | |
768 | - | else if (if (if ((0 > | |
771 | + | else if (if (if ((0 > bf)) | |
769 | 772 | then true | |
770 | - | else (0 > | |
773 | + | else (0 > el)) | |
771 | 774 | then true | |
772 | - | else (0 > | |
775 | + | else (0 > en)) | |
773 | 776 | then throw("Wrong params") | |
774 | - | else if (( | |
777 | + | else if ((bK != toBase58String(bH))) | |
775 | 778 | then throw("Wrong LP") | |
776 | 779 | else { | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | then $Tuple7(( | |
784 | - | else if (( | |
785 | - | then $Tuple7(( | |
780 | + | let cy = bF(toBase58String(dg.transactionId), toBase58String(bH), cm, dg.caller) | |
781 | + | let ep = cy._1 | |
782 | + | let eq = cy._2 | |
783 | + | let bR = aX(bL) | |
784 | + | let bT = aX(bM) | |
785 | + | let er = if ((eo == bL)) | |
786 | + | then $Tuple7((bR - ep), (bT - eq), el, eq, 0, 0, (ep + el)) | |
787 | + | else if ((eo == bM)) | |
788 | + | then $Tuple7((bR - ep), (bT - eq), 0, 0, el, ep, (eq + el)) | |
786 | 789 | else throw("wrong outAssetId") | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | if (if ((0 > | |
790 | + | let dX = er._1 | |
791 | + | let dY = er._2 | |
792 | + | let dZ = er._3 | |
793 | + | let ea = er._4 | |
794 | + | let eb = er._5 | |
795 | + | let ec = er._6 | |
796 | + | let es = er._7 | |
797 | + | if (if ((0 > dZ)) | |
795 | 798 | then true | |
796 | - | else (0 > | |
799 | + | else (0 > eb)) | |
797 | 800 | then throw("Wrong calc") | |
798 | 801 | else { | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | if (( | |
802 | + | let bk = invoke(dQ, "calcD", [toString(dX), toString(dY), az, h, i], nil) | |
803 | + | let bj = invoke(dQ, "calcD", [toString(((dX - dZ) + ec)), toString(((dY + ea) - eb)), az, h, i], nil) | |
804 | + | let ed = bi(parseBigIntValue(ar(bj)), parseBigIntValue(ar(bk)), g) | |
805 | + | if ((ed == ed)) | |
803 | 806 | then { | |
804 | - | let | |
805 | - | let | |
806 | - | if (( | |
807 | + | let et = dm(es)._1 | |
808 | + | let eu = bc(toBigInt(et), toBigInt(en), toBigInt(bf)) | |
809 | + | if ((eu == eu)) | |
807 | 810 | then { | |
808 | - | let | |
809 | - | then $Tuple2(toInt( | |
810 | - | else $Tuple2(0, toInt( | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
811 | + | let ev = if ((eo == bL)) | |
812 | + | then $Tuple2(toInt(eu._2), 0) | |
813 | + | else $Tuple2(0, toInt(eu._2)) | |
814 | + | let ew = ev._1 | |
815 | + | let ex = ev._2 | |
816 | + | let ey = (ew + ex) | |
817 | + | let dV = (es - et) | |
818 | + | let ez = if ((eo == "WAVES")) | |
816 | 819 | then unit | |
817 | - | else fromBase58String( | |
818 | - | let | |
819 | - | then [ScriptTransfer( | |
820 | + | else fromBase58String(eo) | |
821 | + | let eh = if ((dV > 0)) | |
822 | + | then [ScriptTransfer(aC, dV, ez)] | |
820 | 823 | else nil | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | if (( | |
824 | + | let eA = aZ(C(bT, bO), C(bR, bN)) | |
825 | + | let eB = F(eA, a) | |
826 | + | let cd = [ScriptTransfer(bJ, ey, ez), StringEntry(X(toString(bJ), bG), aT(ew, ex, cm, eB, height, lastBlock.timestamp)), IntegerEntry(Q(), eB), IntegerEntry(R(height, lastBlock.timestamp), eB)] | |
827 | + | if ((cd == cd)) | |
825 | 828 | then { | |
826 | - | let | |
827 | - | if (( | |
828 | - | then ( | |
829 | + | let eC = invoke(ay, "burn", [cm], [AttachedPayment(bH, cm)]) | |
830 | + | if ((eC == eC)) | |
831 | + | then (cd ++ eh) | |
829 | 832 | else throw("Strict value is not equal to itself.") | |
830 | 833 | } | |
831 | 834 | else throw("Strict value is not equal to itself.") | |
839 | 842 | ||
840 | 843 | ||
841 | 844 | ||
842 | - | @Callable( | |
843 | - | func getNoLess ( | |
844 | - | let | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | if (( | |
851 | - | then throw(((("Failed: " + toString( | |
852 | - | else if (( | |
853 | - | then throw(((("Failed: " + toString( | |
845 | + | @Callable(dg) | |
846 | + | func getNoLess (eD,eE) = { | |
847 | + | let cy = df(dg) | |
848 | + | let cb = cy._1 | |
849 | + | let cc = cy._2 | |
850 | + | let cm = cy._3 | |
851 | + | let bH = cy._4 | |
852 | + | let cd = cy._5 | |
853 | + | if ((eD > cb)) | |
854 | + | then throw(((("Failed: " + toString(cb)) + " < ") + toString(eD))) | |
855 | + | else if ((eE > cc)) | |
856 | + | then throw(((("Failed: " + toString(cc)) + " < ") + toString(eE))) | |
854 | 857 | else { | |
855 | - | let | |
856 | - | if (( | |
857 | - | then | |
858 | + | let eF = invoke(ay, "burn", [cm], [AttachedPayment(bH, cm)]) | |
859 | + | if ((eF == eF)) | |
860 | + | then cd | |
858 | 861 | else throw("Strict value is not equal to itself.") | |
859 | 862 | } | |
860 | 863 | } | |
861 | 864 | ||
862 | 865 | ||
863 | 866 | ||
864 | - | @Callable( | |
865 | - | func unstakeAndGet ( | |
866 | - | let | |
867 | + | @Callable(dg) | |
868 | + | func unstakeAndGet (dn) = { | |
869 | + | let eG = if ((size(dg.payments) != 0)) | |
867 | 870 | then throw("No pmnts expd") | |
868 | 871 | else true | |
869 | - | if (( | |
872 | + | if ((eG == eG)) | |
870 | 873 | then { | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | if (( | |
874 | + | let bw = aD() | |
875 | + | let eH = aH() | |
876 | + | let dG = fromBase58String(bw[r]) | |
877 | + | let eI = valueOrErrorMessage(addressFromString(eH[y]), "Wr st addr") | |
878 | + | let eJ = invoke(eI, "unstake", [toBase58String(dG), dn], nil) | |
879 | + | if ((eJ == eJ)) | |
877 | 880 | then { | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | let | |
881 | + | let cy = bF(toBase58String(dg.transactionId), toBase58String(dG), dn, dg.caller) | |
882 | + | let bP = parseIntValue(cy._9) | |
883 | + | let cd = cy._10 | |
884 | + | let eK = if (if (aA()) | |
882 | 885 | then true | |
883 | - | else ( | |
884 | - | then throw(("Blocked: " + toString( | |
886 | + | else (bP == o)) | |
887 | + | then throw(("Blocked: " + toString(bP))) | |
885 | 888 | else true | |
886 | - | if (( | |
889 | + | if ((eK == eK)) | |
887 | 890 | then { | |
888 | - | let | |
889 | - | if (( | |
890 | - | then | |
891 | + | let eL = invoke(ay, "burn", [dn], [AttachedPayment(dG, dn)]) | |
892 | + | if ((eL == eL)) | |
893 | + | then cd | |
891 | 894 | else throw("Strict value is not equal to itself.") | |
892 | 895 | } | |
893 | 896 | else throw("Strict value is not equal to itself.") | |
899 | 902 | ||
900 | 903 | ||
901 | 904 | ||
902 | - | @Callable( | |
903 | - | func activate ( | |
905 | + | @Callable(dg) | |
906 | + | func activate (eM,eN) = if ((toString(dg.caller) != toString(ay))) | |
904 | 907 | then throw("denied") | |
905 | - | else $Tuple2([StringEntry(Y(), | |
908 | + | else $Tuple2([StringEntry(Y(), eM), StringEntry(Z(), eN)], "success") | |
906 | 909 | ||
907 | 910 | ||
908 | 911 | ||
909 | - | @Callable( | |
910 | - | func setS ( | |
911 | - | then | |
912 | - | else [StringEntry( | |
912 | + | @Callable(dg) | |
913 | + | func setS (eO,eK) = if ((toString(dg.caller) != au(this, ab()))) | |
914 | + | then ds | |
915 | + | else [StringEntry(eO, eK)] | |
913 | 916 | ||
914 | 917 | ||
915 | 918 | ||
916 | - | @Callable( | |
917 | - | func setI ( | |
918 | - | then | |
919 | - | else [IntegerEntry( | |
919 | + | @Callable(dg) | |
920 | + | func setI (eO,eK) = if ((toString(dg.caller) != au(this, ab()))) | |
921 | + | then ds | |
922 | + | else [IntegerEntry(eO, eK)] | |
920 | 923 | ||
921 | 924 | ||
922 | 925 | ||
923 | - | @Callable( | |
924 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
926 | + | @Callable(dg) | |
927 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aD()) | |
925 | 928 | ||
926 | 929 | ||
927 | 930 | ||
928 | - | @Callable( | |
929 | - | func getAccBalanceWrapperREADONLY ( | |
931 | + | @Callable(dg) | |
932 | + | func getAccBalanceWrapperREADONLY (aY) = $Tuple2(nil, aX(aY)) | |
930 | 933 | ||
931 | 934 | ||
932 | 935 | ||
933 | - | @Callable( | |
934 | - | func calcPricesWrapperREADONLY ( | |
935 | - | let | |
936 | - | $Tuple2(nil, [toString( | |
936 | + | @Callable(dg) | |
937 | + | func calcPricesWrapperREADONLY (bq,br,bv) = { | |
938 | + | let eP = bu(bq, br, bv) | |
939 | + | $Tuple2(nil, [toString(eP[0]), toString(eP[1]), toString(eP[2])]) | |
937 | 940 | } | |
938 | 941 | ||
939 | 942 | ||
940 | 943 | ||
941 | - | @Callable( | |
942 | - | func fromX18WrapperREADONLY (G, | |
944 | + | @Callable(dg) | |
945 | + | func fromX18WrapperREADONLY (G,eQ) = $Tuple2(nil, F(parseBigIntValue(G), eQ)) | |
943 | 946 | ||
944 | 947 | ||
945 | 948 | ||
946 | - | @Callable( | |
949 | + | @Callable(dg) | |
947 | 950 | func toX18WrapperREADONLY (D,E) = $Tuple2(nil, toString(C(D, E))) | |
948 | 951 | ||
949 | 952 | ||
950 | 953 | ||
951 | - | @Callable( | |
952 | - | func calcPriceBigIntWrapperREADONLY ( | |
954 | + | @Callable(dg) | |
955 | + | func calcPriceBigIntWrapperREADONLY (ba,bb) = $Tuple2(nil, toString(aZ(parseBigIntValue(ba), parseBigIntValue(bb)))) | |
953 | 956 | ||
954 | 957 | ||
955 | 958 | ||
956 | - | @Callable( | |
957 | - | func estimatePutOperationWrapperREADONLY ( | |
959 | + | @Callable(dg) | |
960 | + | func estimatePutOperationWrapperREADONLY (bG,bf,cf,cg,ch,ci,eR,cj,ck) = $Tuple2(nil, ce(bG, bf, cf, cg, ch, ci, eR, cj, ck, false, 0, "")) | |
958 | 961 | ||
959 | 962 | ||
960 | 963 | ||
961 | - | @Callable( | |
962 | - | func estimateGetOperationWrapperREADONLY ( | |
963 | - | let | |
964 | - | $Tuple2(nil, $Tuple10( | |
964 | + | @Callable(dg) | |
965 | + | func estimateGetOperationWrapperREADONLY (bG,eS,bI,eR) = { | |
966 | + | let cy = bF(bG, eS, bI, addressFromStringValue(eR)) | |
967 | + | $Tuple2(nil, $Tuple10(cy._1, cy._2, cy._3, cy._4, cy._5, cy._6, cy._7, toString(cy._8), cy._9, cy._10)) | |
965 | 968 | } | |
966 | 969 | ||
967 | 970 | ||
968 | - | @Verifier(eS) | |
969 | - | func eT () = { | |
970 | - | let ar = eS | |
971 | - | if ($isInstanceOf(ar, "Order")) | |
971 | + | @Verifier(eT) | |
972 | + | func eU () = { | |
973 | + | let eV = { | |
974 | + | let as = dp() | |
975 | + | if ($isInstanceOf(as, "ByteVector")) | |
976 | + | then { | |
977 | + | let du = as | |
978 | + | du | |
979 | + | } | |
980 | + | else if ($isInstanceOf(as, "Unit")) | |
981 | + | then eT.senderPublicKey | |
982 | + | else throw("Match error") | |
983 | + | } | |
984 | + | let as = eT | |
985 | + | if ($isInstanceOf(as, "Order")) | |
972 | 986 | then { | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | if (if (if ( | |
979 | - | then | |
987 | + | let cT = as | |
988 | + | let eW = aB() | |
989 | + | let eX = cS(cT) | |
990 | + | let eY = sigVerify(cT.bodyBytes, cT.proofs[0], cT.senderPublicKey) | |
991 | + | let eZ = sigVerify(cT.bodyBytes, cT.proofs[1], eW) | |
992 | + | if (if (if (eX) | |
993 | + | then eY | |
980 | 994 | else false) | |
981 | - | then | |
995 | + | then eZ | |
982 | 996 | else false) | |
983 | 997 | then true | |
984 | - | else | |
998 | + | else an(eX, eY, eZ) | |
985 | 999 | } | |
986 | - | else | |
987 | - | | |
988 | - | let | |
989 | - | | |
990 | - | | |
991 | - | ||
992 | - | | |
993 | - | | |
994 | - | else | |
995 | - | ||
996 | - | ||
1000 | + | else if ($isInstanceOf(as, "SetScriptTransaction")) | |
1001 | + | then { | |
1002 | + | let dq = as | |
1003 | + | let fa = blake2b256(value(dq.script)) | |
1004 | + | let fb = fromBase64String(value(getString(ay, am()))) | |
1005 | + | let fc = scriptHash(this) | |
1006 | + | if (if ((fb == fa)) | |
1007 | + | then (fc != fa) | |
1008 | + | else false) | |
1009 | + | then true | |
1010 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], eV) | |
997 | 1011 | } | |
998 | - | sigVerify(eS.bodyBytes, eS.proofs[0], eX) | |
999 | - | } | |
1012 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], eV) | |
1000 | 1013 | } | |
1001 | 1014 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = 1000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1) | |
15 | 15 | ||
16 | 16 | let g = toBigInt((a - ((a * 1) / a))) | |
17 | 17 | ||
18 | 18 | let h = "100" | |
19 | 19 | ||
20 | 20 | let i = "1" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = "" | |
25 | 25 | ||
26 | 26 | let l = 1 | |
27 | 27 | ||
28 | 28 | let m = 2 | |
29 | 29 | ||
30 | 30 | let n = 3 | |
31 | 31 | ||
32 | 32 | let o = 4 | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 5 | |
43 | 43 | ||
44 | 44 | let u = 6 | |
45 | 45 | ||
46 | 46 | let v = 7 | |
47 | 47 | ||
48 | 48 | let w = 8 | |
49 | 49 | ||
50 | 50 | let x = 9 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 7 | |
55 | 55 | ||
56 | 56 | let A = 10 | |
57 | 57 | ||
58 | 58 | let B = 0 | |
59 | 59 | ||
60 | 60 | func C (D,E) = fraction(toBigInt(D), c, toBigInt(E)) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func F (G,H) = toInt(fraction(G, toBigInt(H), c)) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func I (J,K,L) = fraction(J, K, L) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func M (G) = if ((e > G)) | |
70 | 70 | then -(G) | |
71 | 71 | else G | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func N () = "%s__factoryContract" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func O () = "%s__managerPublicKey" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func P () = "%s__pendingManagerPublicKey" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func Q () = "%s%s__price__last" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func R (S,T) = makeString(["%s%s%d%d__price__history", toString(S), toString(T)], j) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func U (V,W) = ((("%s%s%s__P__" + V) + "__") + W) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func X (V,W) = ((("%s%s%s__G__" + V) + "__") + W) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func Y () = "%s__amountAsset" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func Z () = "%s__priceAsset" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func aa () = "%s__amp" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func ab () = "%s__addonAddr" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | let ac = "%s__feePermille" | |
108 | 108 | ||
109 | 109 | let ad = valueOrElse(getInteger(this, ac), B) | |
110 | 110 | ||
111 | 111 | func ae () = "%s__factoryConfig" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func af () = "%s%s__matcher__publicKey" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ag (ah,ai) = (((("%d%d%s__" + ah) + "__") + ai) + "__config") | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aj (ak) = ("%s%s%s__mappings__baseAsset2internalId__" + ak) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func al () = "%s__shutdown" | |
124 | 124 | ||
125 | 125 | ||
126 | - | func am ( | |
126 | + | func am () = "%s__allowedLpStableScriptHash" | |
127 | 127 | ||
128 | 128 | ||
129 | - | func aq (G) = { | |
130 | - | let ar = G | |
131 | - | if ($isInstanceOf(ar, "String")) | |
129 | + | func an (ao,ap,aq) = throw(((((("Failed: ordValid=" + toString(ao)) + " sndrValid=") + toString(ap)) + " mtchrValid=") + toString(aq))) | |
130 | + | ||
131 | + | ||
132 | + | func ar (G) = { | |
133 | + | let as = G | |
134 | + | if ($isInstanceOf(as, "String")) | |
132 | 135 | then { | |
133 | - | let | |
134 | - | | |
136 | + | let at = as | |
137 | + | at | |
135 | 138 | } | |
136 | 139 | else throw("fail cast to String") | |
137 | 140 | } | |
138 | 141 | ||
139 | 142 | ||
140 | - | func | |
143 | + | func au (av,aw) = valueOrErrorMessage(getString(av, aw), makeString(["mandatory ", toString(av), ".", aw, " not defined"], "")) | |
141 | 144 | ||
142 | 145 | ||
143 | - | func | |
146 | + | func ax (av,aw) = valueOrErrorMessage(getInteger(av, aw), makeString(["mandatory ", toString(av), ".", aw, " not defined"], "")) | |
144 | 147 | ||
145 | 148 | ||
146 | - | let | |
149 | + | let ay = addressFromStringValue(au(this, N())) | |
147 | 150 | ||
148 | - | let | |
151 | + | let az = au(this, aa()) | |
149 | 152 | ||
150 | - | func | |
153 | + | func aA () = valueOrElse(getBoolean(ay, al()), false) | |
151 | 154 | ||
152 | 155 | ||
153 | - | func | |
156 | + | func aB () = fromBase58String(au(ay, af())) | |
154 | 157 | ||
155 | 158 | ||
156 | - | let | |
159 | + | let aC = addressFromPublicKey(aB()) | |
157 | 160 | ||
158 | - | func | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | let ah = | |
163 | - | split( | |
161 | + | func aD () = { | |
162 | + | let aE = au(this, Y()) | |
163 | + | let aF = au(this, Z()) | |
164 | + | let aG = ax(ay, aj(aF)) | |
165 | + | let ah = ax(ay, aj(aE)) | |
166 | + | split(au(ay, ag(toString(ah), toString(aG))), j) | |
164 | 167 | } | |
165 | 168 | ||
166 | 169 | ||
167 | - | func | |
170 | + | func aH () = split(au(ay, ae()), j) | |
168 | 171 | ||
169 | 172 | ||
170 | - | func | |
173 | + | func aI (aJ,aK,aL,aM,aN,aO,aP,aQ,aR,aS) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aJ), toString(aK), toString(aL), toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(aS)], j) | |
171 | 174 | ||
172 | 175 | ||
173 | - | func | |
176 | + | func aT (aU,aV,aW,aM,aP,aQ) = makeString(["%d%d%d%d%d%d", toString(aU), toString(aV), toString(aW), toString(aM), toString(aP), toString(aQ)], j) | |
174 | 177 | ||
175 | 178 | ||
176 | - | func | |
179 | + | func aX (aY) = if ((aY == "WAVES")) | |
177 | 180 | then wavesBalance(this).available | |
178 | - | else assetBalance(this, fromBase58String( | |
181 | + | else assetBalance(this, fromBase58String(aY)) | |
179 | 182 | ||
180 | 183 | ||
181 | - | func | |
184 | + | func aZ (ba,bb) = fraction(ba, c, bb) | |
182 | 185 | ||
183 | 186 | ||
184 | - | func | |
185 | - | let | |
186 | - | let | |
187 | - | if (!( | |
188 | - | then throw(("Big slpg: " + toString( | |
189 | - | else $Tuple2( | |
187 | + | func bc (bd,be,bf) = { | |
188 | + | let bg = fraction((bd - be), b, be) | |
189 | + | let bh = ((bf - M(bg)) > e) | |
190 | + | if (!(bh)) | |
191 | + | then throw(("Big slpg: " + toString(bg))) | |
192 | + | else $Tuple2(bh, min([bd, be])) | |
190 | 193 | } | |
191 | 194 | ||
192 | 195 | ||
193 | - | func | |
194 | - | let | |
195 | - | let | |
196 | - | if (if ( | |
196 | + | func bi (bj,bk,bl) = { | |
197 | + | let bg = fraction(bk, b, bj) | |
198 | + | let bm = (bl > bg) | |
199 | + | if (if (bm) | |
197 | 200 | then true | |
198 | - | else ( | |
199 | - | then throw(((((((toString( | |
200 | - | else | |
201 | + | else (bk > bj)) | |
202 | + | then throw(((((((toString(bk) + " ") + toString(bj)) + " ") + toString(bg)) + " ") + toString(bl))) | |
203 | + | else bm | |
201 | 204 | } | |
202 | 205 | ||
203 | 206 | ||
204 | - | func bm (bn,bo,bp,bq) = { | |
205 | - | let br = C(bp, bn) | |
207 | + | func bn (bo,bp,bq,br) = { | |
206 | 208 | let bs = C(bq, bo) | |
207 | - | aY(bs, br) | |
209 | + | let bt = C(br, bp) | |
210 | + | aZ(bt, bs) | |
208 | 211 | } | |
209 | 212 | ||
210 | 213 | ||
211 | - | func | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | [ | |
214 | + | func bu (bq,br,bv) = { | |
215 | + | let bw = aD() | |
216 | + | let bx = parseIntValue(bw[u]) | |
217 | + | let by = parseIntValue(bw[v]) | |
218 | + | let bz = bn(bx, by, bq, br) | |
219 | + | let bb = C(bq, bx) | |
220 | + | let ba = C(br, by) | |
221 | + | let bA = C(bv, a) | |
222 | + | let bB = aZ(bb, bA) | |
223 | + | let bC = aZ(ba, bA) | |
224 | + | [bz, bB, bC] | |
222 | 225 | } | |
223 | 226 | ||
224 | 227 | ||
225 | - | func | |
226 | - | let | |
227 | - | [F( | |
228 | + | func bD (bq,br,bv) = { | |
229 | + | let bE = bu(bq, br, bv) | |
230 | + | [F(bE[0], a), F(bE[1], a), F(bE[2], a)] | |
228 | 231 | } | |
229 | 232 | ||
230 | 233 | ||
231 | - | func | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | if (( | |
234 | + | func bF (bG,bH,bI,bJ) = { | |
235 | + | let bw = aD() | |
236 | + | let bK = bw[r] | |
237 | + | let bL = bw[s] | |
238 | + | let bM = bw[t] | |
239 | + | let bN = parseIntValue(bw[u]) | |
240 | + | let bO = parseIntValue(bw[v]) | |
241 | + | let bP = bw[q] | |
242 | + | let bQ = valueOrErrorMessage(assetInfo(fromBase58String(bK)), "Wrong LP id").quantity | |
243 | + | if ((bK != bH)) | |
241 | 244 | then throw("Wrong pmt asset") | |
242 | 245 | else { | |
243 | - | let bQ = aW(bK) | |
244 | - | let bR = C(bQ, bM) | |
245 | - | let bS = aW(bL) | |
246 | - | let bT = C(bS, bN) | |
247 | - | let bU = aY(bT, bR) | |
248 | - | let bV = F(bU, a) | |
249 | - | let bW = C(bH, a) | |
250 | - | let bX = C(bP, a) | |
251 | - | let bY = fraction(bR, bW, bX) | |
252 | - | let bZ = fraction(bT, bW, bX) | |
253 | - | let ca = F(bY, bM) | |
246 | + | let bR = aX(bL) | |
247 | + | let bS = C(bR, bN) | |
248 | + | let bT = aX(bM) | |
249 | + | let bU = C(bT, bO) | |
250 | + | let bV = aZ(bU, bS) | |
251 | + | let bW = F(bV, a) | |
252 | + | let bX = C(bI, a) | |
253 | + | let bY = C(bQ, a) | |
254 | + | let bZ = fraction(bS, bX, bY) | |
255 | + | let ca = fraction(bU, bX, bY) | |
254 | 256 | let cb = F(bZ, bN) | |
255 | - | let cc = if ((bF == "")) | |
257 | + | let cc = F(ca, bO) | |
258 | + | let cd = if ((bG == "")) | |
256 | 259 | then nil | |
257 | - | else [ScriptTransfer( | |
260 | + | else [ScriptTransfer(bJ, cb, if ((bL == "WAVES")) | |
258 | 261 | then unit | |
259 | - | else fromBase58String( | |
262 | + | else fromBase58String(bL)), ScriptTransfer(bJ, cc, if ((bM == "WAVES")) | |
260 | 263 | then unit | |
261 | - | else fromBase58String( | |
262 | - | $Tuple10( | |
264 | + | else fromBase58String(bM)), StringEntry(X(toString(bJ), bG), aT(cb, cc, bI, bW, height, lastBlock.timestamp)), IntegerEntry(Q(), bW), IntegerEntry(R(height, lastBlock.timestamp), bW)] | |
265 | + | $Tuple10(cb, cc, bL, bM, bR, bT, bQ, bV, bP, cd) | |
263 | 266 | } | |
264 | 267 | } | |
265 | 268 | ||
266 | 269 | ||
267 | - | func | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | then | |
280 | - | else if (if ( | |
281 | - | then ( | |
270 | + | func ce (bG,bf,cf,cg,ch,ci,bJ,cj,ck,cl,cm,cn) = { | |
271 | + | let bw = aD() | |
272 | + | let bK = fromBase58String(bw[r]) | |
273 | + | let co = bw[s] | |
274 | + | let cp = bw[t] | |
275 | + | let cq = bw[w] | |
276 | + | let cr = bw[x] | |
277 | + | let cs = parseIntValue(bw[u]) | |
278 | + | let ct = parseIntValue(bw[v]) | |
279 | + | let bP = bw[q] | |
280 | + | let cu = valueOrErrorMessage(assetInfo(bK), "Wr lp as").quantity | |
281 | + | let bR = if (cj) | |
282 | + | then aX(co) | |
283 | + | else if (if (cl) | |
284 | + | then (cn == co) | |
282 | 285 | else false) | |
283 | - | then ( | |
284 | - | else if ( | |
285 | - | then | |
286 | - | else ( | |
287 | - | let | |
288 | - | then | |
289 | - | else if (if ( | |
290 | - | then ( | |
286 | + | then (aX(co) - cm) | |
287 | + | else if (cl) | |
288 | + | then aX(co) | |
289 | + | else (aX(co) - cf) | |
290 | + | let bT = if (cj) | |
291 | + | then aX(cp) | |
292 | + | else if (if (cl) | |
293 | + | then (cn == cp) | |
291 | 294 | else false) | |
292 | - | then ( | |
293 | - | else if ( | |
294 | - | then | |
295 | - | else ( | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
295 | + | then (aX(cp) - cm) | |
296 | + | else if (cl) | |
297 | + | then aX(cp) | |
298 | + | else (aX(cp) - ch) | |
299 | + | let cv = C(cf, cs) | |
300 | + | let cw = C(ch, ct) | |
301 | + | let cx = aZ(cw, cv) | |
302 | + | let bS = C(bR, cs) | |
303 | + | let bU = C(bT, ct) | |
304 | + | let cy = if ((cu == 0)) | |
302 | 305 | then { | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | $Tuple5(F( | |
306 | + | let bV = e | |
307 | + | let cz = e | |
308 | + | let bA = pow((cv * cw), 0, toBigInt(5), 1, 0, DOWN) | |
309 | + | $Tuple5(F(bA, a), F(cv, cs), F(cw, ct), aZ((bU + cw), (bS + cv)), cz) | |
307 | 310 | } | |
308 | 311 | else { | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | if (if (( | |
313 | - | then ( | |
312 | + | let bV = aZ(bU, bS) | |
313 | + | let cA = fraction(M((bV - cx)), c, bV) | |
314 | + | let cz = C(bf, a) | |
315 | + | if (if ((bV != e)) | |
316 | + | then (cA > cz) | |
314 | 317 | else false) | |
315 | - | then throw(((("Price slippage " + toString( | |
318 | + | then throw(((("Price slippage " + toString(cA)) + " > ") + toString(cz))) | |
316 | 319 | else { | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | then $Tuple2( | |
322 | - | else $Tuple2( | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | $Tuple5(F( | |
320 | + | let cB = C(cu, a) | |
321 | + | let cC = fraction(cv, bV, c) | |
322 | + | let cD = fraction(cw, c, bV) | |
323 | + | let cE = if ((cC > cw)) | |
324 | + | then $Tuple2(cD, cw) | |
325 | + | else $Tuple2(cv, cC) | |
326 | + | let cF = cE._1 | |
327 | + | let cG = cE._2 | |
328 | + | let bA = fraction(cB, cG, bU) | |
329 | + | $Tuple5(F(bA, a), F(cF, cs), F(cG, ct), bV, cz) | |
327 | 330 | } | |
328 | 331 | } | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | if ((0 >= | |
332 | + | let cH = cy._1 | |
333 | + | let cI = cy._2 | |
334 | + | let cJ = cy._3 | |
335 | + | let bW = F(cy._4, a) | |
336 | + | let cK = F(cy._5, a) | |
337 | + | if ((0 >= cH)) | |
335 | 338 | then throw("LP <= 0") | |
336 | 339 | else { | |
337 | - | let | |
340 | + | let cL = if (!(ck)) | |
338 | 341 | then 0 | |
339 | - | else | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | then ( | |
342 | + | else cH | |
343 | + | let cM = (cf - cI) | |
344 | + | let cN = (ch - cJ) | |
345 | + | let cO = if (if (cl) | |
346 | + | then (cn == co) | |
344 | 347 | else false) | |
345 | - | then $Tuple2( | |
346 | - | else if (if ( | |
347 | - | then ( | |
348 | + | then $Tuple2(cm, 0) | |
349 | + | else if (if (cl) | |
350 | + | then (cn == cp) | |
348 | 351 | else false) | |
349 | - | then $Tuple2(0, | |
350 | - | else $Tuple2( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | $Tuple13( | |
352 | + | then $Tuple2(0, cm) | |
353 | + | else $Tuple2(cI, cJ) | |
354 | + | let cP = cO._1 | |
355 | + | let cQ = cO._2 | |
356 | + | let cR = [IntegerEntry(Q(), bW), IntegerEntry(R(height, lastBlock.timestamp), bW), StringEntry(U(bJ, bG), aI(cP, cQ, cL, bW, bf, cK, height, lastBlock.timestamp, cM, cN))] | |
357 | + | $Tuple13(cH, cL, bW, bR, bT, cu, bK, bP, cR, cM, cN, cg, ci) | |
355 | 358 | } | |
356 | 359 | } | |
357 | 360 | ||
358 | 361 | ||
359 | - | func | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | then | |
370 | - | else | |
371 | - | let | |
372 | - | if (if (if ( | |
362 | + | func cS (cT) = { | |
363 | + | let bw = aD() | |
364 | + | let cU = bw[s] | |
365 | + | let cV = bw[t] | |
366 | + | let bP = parseIntValue(bw[q]) | |
367 | + | let bx = parseIntValue(bw[u]) | |
368 | + | let by = parseIntValue(bw[v]) | |
369 | + | let cW = aX(cU) | |
370 | + | let cX = aX(cV) | |
371 | + | let bV = if ((cT.orderType == Buy)) | |
372 | + | then bn(bx, by, (cW + cT.amount), cX) | |
373 | + | else bn(bx, by, (cW - cT.amount), cX) | |
374 | + | let bW = F(bV, a) | |
375 | + | if (if (if (aA()) | |
373 | 376 | then true | |
374 | - | else ( | |
377 | + | else (bP == n)) | |
375 | 378 | then true | |
376 | - | else ( | |
379 | + | else (bP == o)) | |
377 | 380 | then throw("Admin blocked") | |
378 | 381 | else { | |
379 | - | let | |
380 | - | let | |
382 | + | let cY = cT.assetPair.amountAsset | |
383 | + | let cZ = if ((cY == unit)) | |
381 | 384 | then "WAVES" | |
382 | - | else toBase58String(value( | |
383 | - | let | |
384 | - | let | |
385 | + | else toBase58String(value(cY)) | |
386 | + | let da = cT.assetPair.priceAsset | |
387 | + | let db = if ((da == unit)) | |
385 | 388 | then "WAVES" | |
386 | - | else toBase58String(value( | |
387 | - | if (if (( | |
389 | + | else toBase58String(value(da)) | |
390 | + | if (if ((cZ != cU)) | |
388 | 391 | then true | |
389 | - | else ( | |
392 | + | else (db != cV)) | |
390 | 393 | then throw("Wr assets") | |
391 | 394 | else { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | then ( | |
397 | - | else ( | |
395 | + | let dc = cT.price | |
396 | + | let ct = fraction(a, by, bx) | |
397 | + | let dd = I(dc, a, ct) | |
398 | + | let de = if ((cT.orderType == Buy)) | |
399 | + | then (bW >= dd) | |
400 | + | else (dd >= bW) | |
398 | 401 | true | |
399 | 402 | } | |
400 | 403 | } | |
401 | 404 | } | |
402 | 405 | ||
403 | 406 | ||
404 | - | func | |
407 | + | func df (dg) = if ((size(dg.payments) != 1)) | |
405 | 408 | then throw("1 pmnt exp") | |
406 | 409 | else { | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | if (if ( | |
410 | + | let dh = value(dg.payments[0]) | |
411 | + | let bH = value(dh.assetId) | |
412 | + | let cm = dh.amount | |
413 | + | let cy = bF(toBase58String(dg.transactionId), toBase58String(bH), cm, dg.caller) | |
414 | + | let cb = cy._1 | |
415 | + | let cc = cy._2 | |
416 | + | let bP = parseIntValue(cy._9) | |
417 | + | let cd = cy._10 | |
418 | + | if (if (aA()) | |
416 | 419 | then true | |
417 | - | else ( | |
418 | - | then throw(("Admin blocked: " + toString( | |
419 | - | else $Tuple5( | |
420 | + | else (bP == o)) | |
421 | + | then throw(("Admin blocked: " + toString(bP))) | |
422 | + | else $Tuple5(cb, cc, cm, bH, cd) | |
420 | 423 | } | |
421 | 424 | ||
422 | 425 | ||
423 | - | func | |
424 | - | let | |
425 | - | let | |
426 | - | if (if (if ( | |
426 | + | func di (dj,W,dk,dl,bf,ck,cl,cm,cn) = { | |
427 | + | let cy = ce(W, bf, value(dk).amount, value(dk).assetId, value(dl).amount, value(dl).assetId, dj, false, ck, cl, cm, cn) | |
428 | + | let bP = parseIntValue(cy._8) | |
429 | + | if (if (if (aA()) | |
427 | 430 | then true | |
428 | - | else ( | |
431 | + | else (bP == m)) | |
429 | 432 | then true | |
430 | - | else ( | |
431 | - | then throw(("Blocked:" + toString( | |
432 | - | else | |
433 | + | else (bP == o)) | |
434 | + | then throw(("Blocked:" + toString(bP))) | |
435 | + | else cy | |
433 | 436 | } | |
434 | 437 | ||
435 | 438 | ||
436 | - | func | |
437 | - | let | |
438 | - | $Tuple2(( | |
439 | + | func dm (dn) = { | |
440 | + | let do = fraction(dn, ad, d) | |
441 | + | $Tuple2((dn - do), do) | |
439 | 442 | } | |
440 | 443 | ||
441 | 444 | ||
442 | - | func | |
443 | - | let | |
444 | - | if ($isInstanceOf( | |
445 | + | func dp () = { | |
446 | + | let as = getString(O()) | |
447 | + | if ($isInstanceOf(as, "String")) | |
445 | 448 | then { | |
446 | - | let | |
447 | - | fromBase58String( | |
449 | + | let dq = as | |
450 | + | fromBase58String(dq) | |
448 | 451 | } | |
449 | - | else if ($isInstanceOf( | |
452 | + | else if ($isInstanceOf(as, "Unit")) | |
450 | 453 | then unit | |
451 | 454 | else throw("Match error") | |
452 | 455 | } | |
453 | 456 | ||
454 | 457 | ||
455 | - | func | |
456 | - | let | |
457 | - | if ($isInstanceOf( | |
458 | + | func dr () = { | |
459 | + | let as = getString(P()) | |
460 | + | if ($isInstanceOf(as, "String")) | |
458 | 461 | then { | |
459 | - | let | |
460 | - | fromBase58String( | |
462 | + | let dq = as | |
463 | + | fromBase58String(dq) | |
461 | 464 | } | |
462 | - | else if ($isInstanceOf( | |
465 | + | else if ($isInstanceOf(as, "Unit")) | |
463 | 466 | then unit | |
464 | 467 | else throw("Match error") | |
465 | 468 | } | |
466 | 469 | ||
467 | 470 | ||
468 | - | let | |
471 | + | let ds = throw("Permission denied") | |
469 | 472 | ||
470 | - | func | |
471 | - | let | |
472 | - | if ($isInstanceOf( | |
473 | + | func dt (dg) = { | |
474 | + | let as = dp() | |
475 | + | if ($isInstanceOf(as, "ByteVector")) | |
473 | 476 | then { | |
474 | - | let | |
475 | - | if (( | |
477 | + | let du = as | |
478 | + | if ((dg.callerPublicKey == du)) | |
476 | 479 | then true | |
477 | - | else | |
480 | + | else ds | |
478 | 481 | } | |
479 | - | else if ($isInstanceOf( | |
480 | - | then if (( | |
482 | + | else if ($isInstanceOf(as, "Unit")) | |
483 | + | then if ((dg.caller == this)) | |
481 | 484 | then true | |
482 | - | else | |
485 | + | else ds | |
483 | 486 | else throw("Match error") | |
484 | 487 | } | |
485 | 488 | ||
486 | 489 | ||
487 | - | @Callable( | |
490 | + | @Callable(dg) | |
488 | 491 | func constructor (N) = { | |
489 | - | let | |
490 | - | if (( | |
492 | + | let dv = dt(dg) | |
493 | + | if ((dv == dv)) | |
491 | 494 | then [StringEntry(N(), N)] | |
492 | 495 | else throw("Strict value is not equal to itself.") | |
493 | 496 | } | |
494 | 497 | ||
495 | 498 | ||
496 | 499 | ||
497 | - | @Callable( | |
498 | - | func setManager ( | |
499 | - | let | |
500 | - | if (( | |
500 | + | @Callable(dg) | |
501 | + | func setManager (dw) = { | |
502 | + | let dv = dt(dg) | |
503 | + | if ((dv == dv)) | |
501 | 504 | then { | |
502 | - | let | |
503 | - | if (( | |
504 | - | then [StringEntry(P(), | |
505 | + | let dx = fromBase58String(dw) | |
506 | + | if ((dx == dx)) | |
507 | + | then [StringEntry(P(), dw)] | |
505 | 508 | else throw("Strict value is not equal to itself.") | |
506 | 509 | } | |
507 | 510 | else throw("Strict value is not equal to itself.") | |
508 | 511 | } | |
509 | 512 | ||
510 | 513 | ||
511 | 514 | ||
512 | - | @Callable( | |
515 | + | @Callable(dg) | |
513 | 516 | func confirmManager () = { | |
514 | - | let | |
515 | - | let | |
517 | + | let bE = dr() | |
518 | + | let dy = if (isDefined(bE)) | |
516 | 519 | then true | |
517 | 520 | else throw("No pending manager") | |
518 | - | if (( | |
521 | + | if ((dy == dy)) | |
519 | 522 | then { | |
520 | - | let | |
523 | + | let dz = if ((dg.callerPublicKey == value(bE))) | |
521 | 524 | then true | |
522 | 525 | else throw("You are not pending manager") | |
523 | - | if (( | |
524 | - | then [StringEntry(O(), toBase58String(value( | |
526 | + | if ((dz == dz)) | |
527 | + | then [StringEntry(O(), toBase58String(value(bE))), DeleteEntry(P())] | |
525 | 528 | else throw("Strict value is not equal to itself.") | |
526 | 529 | } | |
527 | 530 | else throw("Strict value is not equal to itself.") | |
528 | 531 | } | |
529 | 532 | ||
530 | 533 | ||
531 | 534 | ||
532 | - | @Callable( | |
533 | - | func put ( | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | if ((0 > | |
535 | + | @Callable(dg) | |
536 | + | func put (dA,dB) = { | |
537 | + | let dC = aH() | |
538 | + | let dD = valueOrErrorMessage(addressFromString(dC[y]), "Wr st addr") | |
539 | + | let dE = valueOrErrorMessage(addressFromString(dC[z]), "Wr sl addr") | |
540 | + | if ((0 > dA)) | |
538 | 541 | then throw("Wrong slippage") | |
539 | - | else if ((size( | |
542 | + | else if ((size(dg.payments) != 2)) | |
540 | 543 | then throw("2 pmnts expd") | |
541 | 544 | else { | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | if (( | |
545 | + | let dF = di(toString(dg.caller), toBase58String(dg.transactionId), AttachedPayment(value(dg.payments[0]).assetId, value(dg.payments[0]).amount), dg.payments[1], dA, true, false, 0, "") | |
546 | + | let cL = dF._2 | |
547 | + | let dG = dF._7 | |
548 | + | let cd = dF._9 | |
549 | + | let cM = dF._10 | |
550 | + | let cN = dF._11 | |
551 | + | let bL = dF._12 | |
552 | + | let bM = dF._13 | |
553 | + | let cy = invoke(ay, "emit", [cL], nil) | |
554 | + | if ((cy == cy)) | |
552 | 555 | then { | |
553 | - | let | |
554 | - | let | |
555 | - | if ($isInstanceOf( | |
556 | + | let dH = { | |
557 | + | let as = cy | |
558 | + | if ($isInstanceOf(as, "Address")) | |
556 | 559 | then { | |
557 | - | let | |
558 | - | invoke( | |
560 | + | let dI = as | |
561 | + | invoke(dI, "emit", [cL], nil) | |
559 | 562 | } | |
560 | 563 | else unit | |
561 | 564 | } | |
562 | - | if (( | |
565 | + | if ((dH == dH)) | |
563 | 566 | then { | |
564 | - | let | |
565 | - | then invoke( | |
567 | + | let dJ = if ((cM > 0)) | |
568 | + | then invoke(dE, "put", nil, [AttachedPayment(bL, cM)]) | |
566 | 569 | else nil | |
567 | - | if (( | |
570 | + | if ((dJ == dJ)) | |
568 | 571 | then { | |
569 | - | let | |
570 | - | then invoke( | |
572 | + | let dK = if ((cN > 0)) | |
573 | + | then invoke(dE, "put", nil, [AttachedPayment(bM, cN)]) | |
571 | 574 | else nil | |
572 | - | if (( | |
575 | + | if ((dK == dK)) | |
573 | 576 | then { | |
574 | - | let | |
577 | + | let dL = if (dB) | |
575 | 578 | then { | |
576 | - | let | |
577 | - | if (( | |
579 | + | let dM = invoke(dD, "stake", nil, [AttachedPayment(dG, cL)]) | |
580 | + | if ((dM == dM)) | |
578 | 581 | then nil | |
579 | 582 | else throw("Strict value is not equal to itself.") | |
580 | 583 | } | |
581 | - | else [ScriptTransfer( | |
582 | - | ( | |
584 | + | else [ScriptTransfer(dg.caller, cL, dG)] | |
585 | + | (cd ++ dL) | |
583 | 586 | } | |
584 | 587 | else throw("Strict value is not equal to itself.") | |
585 | 588 | } | |
586 | 589 | else throw("Strict value is not equal to itself.") | |
587 | 590 | } | |
588 | 591 | else throw("Strict value is not equal to itself.") | |
589 | 592 | } | |
590 | 593 | else throw("Strict value is not equal to itself.") | |
591 | 594 | } | |
592 | 595 | } | |
593 | 596 | ||
594 | 597 | ||
595 | 598 | ||
596 | - | @Callable(df) | |
597 | - | func putOneTkn (dM,dN,dO,be,dA) = { | |
598 | - | let bv = aG() | |
599 | - | let dC = valueOrErrorMessage(addressFromString(bv[y]), "Wr st addr") | |
600 | - | let dD = valueOrErrorMessage(addressFromString(bv[z]), "Wr sl addr") | |
601 | - | let dP = valueOrErrorMessage(addressFromString(bv[A]), "Wr gwx addr") | |
602 | - | let dQ = aC() | |
603 | - | let bK = dQ[s] | |
604 | - | let bL = dQ[t] | |
605 | - | let bM = parseIntValue(dQ[u]) | |
606 | - | let bN = parseIntValue(dQ[v]) | |
607 | - | let dR = valueOrElse(getString(this, ab()), "") | |
608 | - | let bI = if ((dR == toString(df.caller))) | |
609 | - | then df.originCaller | |
610 | - | else df.caller | |
611 | - | if (if (if (if ((0 >= be)) | |
612 | - | then true | |
613 | - | else (0 >= dM)) | |
599 | + | @Callable(dg) | |
600 | + | func putOneTkn (dN,dO,dP,bf,dB) = { | |
601 | + | let bw = aH() | |
602 | + | let dD = valueOrErrorMessage(addressFromString(bw[y]), "Wr st addr") | |
603 | + | let dE = valueOrErrorMessage(addressFromString(bw[z]), "Wr sl addr") | |
604 | + | let dQ = valueOrErrorMessage(addressFromString(bw[A]), "Wr gwx addr") | |
605 | + | let dR = aD() | |
606 | + | let bL = dR[s] | |
607 | + | let bM = dR[t] | |
608 | + | let bN = parseIntValue(dR[u]) | |
609 | + | let bO = parseIntValue(dR[v]) | |
610 | + | let dS = valueOrElse(getString(this, ab()), "") | |
611 | + | let bJ = if ((dS == toString(dg.caller))) | |
612 | + | then dg.originCaller | |
613 | + | else dg.caller | |
614 | + | if (if (if (if ((0 >= bf)) | |
614 | 615 | then true | |
615 | 616 | else (0 >= dN)) | |
616 | 617 | then true | |
617 | 618 | else (0 >= dO)) | |
619 | + | then true | |
620 | + | else (0 >= dP)) | |
618 | 621 | then throw("Wrong params") | |
619 | - | else if ((size( | |
622 | + | else if ((size(dg.payments) != 1)) | |
620 | 623 | then throw("1 pmnt expd") | |
621 | 624 | else { | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | if ((10000000 > | |
625 | + | let dh = value(dg.payments[0]) | |
626 | + | let bH = toBase58String(value(dh.assetId)) | |
627 | + | let dT = dh.amount | |
628 | + | let dU = dm(dT) | |
629 | + | let cm = dU._1 | |
630 | + | let dV = dU._2 | |
631 | + | if ((10000000 > dT)) | |
629 | 632 | then throw("Wrong pmt amt") | |
630 | 633 | else { | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | then if (if (( | |
634 | + | let bR = aX(bL) | |
635 | + | let bT = aX(bM) | |
636 | + | let dW = if ((bH == bL)) | |
637 | + | then if (if ((cm > bR)) | |
635 | 638 | then true | |
636 | - | else ( | |
639 | + | else (dN > cm)) | |
637 | 640 | then throw("invalid payment amount") | |
638 | - | else $Tuple6(( | |
639 | - | else if (( | |
640 | - | then if (if (( | |
641 | + | else $Tuple6((bR - cm), bT, (cm - dN), dO, 0, 0) | |
642 | + | else if ((bH == bM)) | |
643 | + | then if (if ((cm > bT)) | |
641 | 644 | then true | |
642 | - | else ( | |
645 | + | else (dO > cm)) | |
643 | 646 | then throw("invalid payment amount") | |
644 | - | else $Tuple6( | |
647 | + | else $Tuple6(bR, (bT - cm), 0, 0, (cm - dO), dN) | |
645 | 648 | else throw("wrong pmtAssetId") | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | if (( | |
649 | + | let dX = dW._1 | |
650 | + | let dY = dW._2 | |
651 | + | let dZ = dW._3 | |
652 | + | let ea = dW._4 | |
653 | + | let eb = dW._5 | |
654 | + | let ec = dW._6 | |
655 | + | let bk = invoke(dQ, "calcD", [toString(dX), toString(dY), az, h, i], nil) | |
656 | + | let bj = invoke(dQ, "calcD", [toString(toBigInt(((dX + dZ) - ec))), toString(toBigInt(((dY + eb) - ea))), az, h, i], nil) | |
657 | + | let ed = bi(parseBigIntValue(ar(bj)), parseBigIntValue(ar(bk)), g) | |
658 | + | if ((ed == ed)) | |
656 | 659 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | if (( | |
660 | + | let ee = di(toString(dg.caller), toBase58String(dg.transactionId), AttachedPayment(fromBase58String(bL), dN), AttachedPayment(fromBase58String(bM), dO), bf, true, true, cm, bH) | |
661 | + | let ef = ee._2 | |
662 | + | let dG = ee._7 | |
663 | + | let cd = ee._9 | |
664 | + | let cM = ee._10 | |
665 | + | let cN = ee._11 | |
666 | + | let eg = bc(toBigInt(ef), toBigInt(dP), toBigInt(bf)) | |
667 | + | let cL = toInt(eg._2) | |
668 | + | let dF = invoke(ay, "emit", [cL], nil) | |
669 | + | if ((dF == dF)) | |
667 | 670 | then { | |
668 | - | let | |
669 | - | let | |
670 | - | if ($isInstanceOf( | |
671 | + | let dH = { | |
672 | + | let as = dF | |
673 | + | if ($isInstanceOf(as, "Address")) | |
671 | 674 | then { | |
672 | - | let | |
673 | - | invoke( | |
675 | + | let dI = as | |
676 | + | invoke(dI, "emit", [cL], nil) | |
674 | 677 | } | |
675 | 678 | else unit | |
676 | 679 | } | |
677 | - | if (( | |
680 | + | if ((dH == dH)) | |
678 | 681 | then { | |
679 | - | let | |
680 | - | then invoke( | |
682 | + | let dJ = if ((cM > 0)) | |
683 | + | then invoke(dE, "put", nil, [AttachedPayment(fromBase58String(bL), cM)]) | |
681 | 684 | else nil | |
682 | - | if (( | |
685 | + | if ((dJ == dJ)) | |
683 | 686 | then { | |
684 | - | let | |
685 | - | then invoke( | |
687 | + | let dK = if ((cN > 0)) | |
688 | + | then invoke(dE, "put", nil, [AttachedPayment(fromBase58String(bM), cN)]) | |
686 | 689 | else nil | |
687 | - | if (( | |
690 | + | if ((dK == dK)) | |
688 | 691 | then { | |
689 | - | let | |
692 | + | let dL = if (dB) | |
690 | 693 | then { | |
691 | - | let | |
692 | - | if (( | |
694 | + | let dM = invoke(dD, "stake", nil, [AttachedPayment(dG, cL)]) | |
695 | + | if ((dM == dM)) | |
693 | 696 | then nil | |
694 | 697 | else throw("Strict value is not equal to itself.") | |
695 | 698 | } | |
696 | - | else [ScriptTransfer( | |
697 | - | let | |
698 | - | then [ScriptTransfer( | |
699 | + | else [ScriptTransfer(dg.caller, cL, dG)] | |
700 | + | let eh = if ((dV > 0)) | |
701 | + | then [ScriptTransfer(aC, dV, fromBase58String(bH))] | |
699 | 702 | else nil | |
700 | - | (( | |
703 | + | ((cd ++ dL) ++ eh) | |
701 | 704 | } | |
702 | 705 | else throw("Strict value is not equal to itself.") | |
703 | 706 | } | |
704 | 707 | else throw("Strict value is not equal to itself.") | |
705 | 708 | } | |
706 | 709 | else throw("Strict value is not equal to itself.") | |
707 | 710 | } | |
708 | 711 | else throw("Strict value is not equal to itself.") | |
709 | 712 | } | |
710 | 713 | else throw("Strict value is not equal to itself.") | |
711 | 714 | } | |
712 | 715 | } | |
713 | 716 | } | |
714 | 717 | ||
715 | 718 | ||
716 | 719 | ||
717 | - | @Callable( | |
718 | - | func putForFree ( | |
720 | + | @Callable(dg) | |
721 | + | func putForFree (ei) = if ((0 > ei)) | |
719 | 722 | then throw("Wrong slpg") | |
720 | - | else if ((size( | |
723 | + | else if ((size(dg.payments) != 2)) | |
721 | 724 | then throw("2 pmnts expd") | |
722 | 725 | else { | |
723 | - | let | |
724 | - | | |
726 | + | let ee = di(toString(dg.caller), toBase58String(dg.transactionId), AttachedPayment(value(dg.payments[0]).assetId, value(dg.payments[0]).amount), dg.payments[1], ei, false, false, 0, "") | |
727 | + | ee._9 | |
725 | 728 | } | |
726 | 729 | ||
727 | 730 | ||
728 | 731 | ||
729 | - | @Callable( | |
732 | + | @Callable(dg) | |
730 | 733 | func get () = { | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | if (( | |
739 | - | then | |
734 | + | let cy = df(dg) | |
735 | + | let ej = cy._1 | |
736 | + | let cc = cy._2 | |
737 | + | let cm = cy._3 | |
738 | + | let bH = cy._4 | |
739 | + | let cd = cy._5 | |
740 | + | let ek = invoke(ay, "burn", [cm], [AttachedPayment(bH, cm)]) | |
741 | + | if ((ek == ek)) | |
742 | + | then cd | |
740 | 743 | else throw("Strict value is not equal to itself.") | |
741 | 744 | } | |
742 | 745 | ||
743 | 746 | ||
744 | 747 | ||
745 | - | @Callable( | |
746 | - | func getOneTkn ( | |
748 | + | @Callable(dg) | |
749 | + | func getOneTkn (el,em,en,eo,bf) = if ((size(dg.payments) != 1)) | |
747 | 750 | then throw("1 pmnt expd") | |
748 | 751 | else { | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | then | |
762 | - | else | |
763 | - | let | |
764 | - | let | |
765 | - | let | |
766 | - | if ((1000000000 > | |
752 | + | let bw = aD() | |
753 | + | let bK = bw[r] | |
754 | + | let bL = bw[s] | |
755 | + | let bM = bw[t] | |
756 | + | let bN = parseIntValue(bw[u]) | |
757 | + | let bO = parseIntValue(bw[v]) | |
758 | + | let bP = bw[q] | |
759 | + | let dC = aH() | |
760 | + | let dQ = valueOrErrorMessage(addressFromString(dC[A]), "Wr sl addr") | |
761 | + | let dh = value(dg.payments[0]) | |
762 | + | let dS = valueOrElse(getString(this, ab()), "") | |
763 | + | let bJ = if ((dS == toString(dg.caller))) | |
764 | + | then dg.originCaller | |
765 | + | else dg.caller | |
766 | + | let bG = toBase58String(dg.transactionId) | |
767 | + | let bH = value(dh.assetId) | |
768 | + | let cm = dh.amount | |
769 | + | if ((1000000000 > cm)) | |
767 | 770 | then throw("Min pmt 10 LP") | |
768 | - | else if (if (if ((0 > | |
771 | + | else if (if (if ((0 > bf)) | |
769 | 772 | then true | |
770 | - | else (0 > | |
773 | + | else (0 > el)) | |
771 | 774 | then true | |
772 | - | else (0 > | |
775 | + | else (0 > en)) | |
773 | 776 | then throw("Wrong params") | |
774 | - | else if (( | |
777 | + | else if ((bK != toBase58String(bH))) | |
775 | 778 | then throw("Wrong LP") | |
776 | 779 | else { | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | then $Tuple7(( | |
784 | - | else if (( | |
785 | - | then $Tuple7(( | |
780 | + | let cy = bF(toBase58String(dg.transactionId), toBase58String(bH), cm, dg.caller) | |
781 | + | let ep = cy._1 | |
782 | + | let eq = cy._2 | |
783 | + | let bR = aX(bL) | |
784 | + | let bT = aX(bM) | |
785 | + | let er = if ((eo == bL)) | |
786 | + | then $Tuple7((bR - ep), (bT - eq), el, eq, 0, 0, (ep + el)) | |
787 | + | else if ((eo == bM)) | |
788 | + | then $Tuple7((bR - ep), (bT - eq), 0, 0, el, ep, (eq + el)) | |
786 | 789 | else throw("wrong outAssetId") | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | if (if ((0 > | |
790 | + | let dX = er._1 | |
791 | + | let dY = er._2 | |
792 | + | let dZ = er._3 | |
793 | + | let ea = er._4 | |
794 | + | let eb = er._5 | |
795 | + | let ec = er._6 | |
796 | + | let es = er._7 | |
797 | + | if (if ((0 > dZ)) | |
795 | 798 | then true | |
796 | - | else (0 > | |
799 | + | else (0 > eb)) | |
797 | 800 | then throw("Wrong calc") | |
798 | 801 | else { | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | if (( | |
802 | + | let bk = invoke(dQ, "calcD", [toString(dX), toString(dY), az, h, i], nil) | |
803 | + | let bj = invoke(dQ, "calcD", [toString(((dX - dZ) + ec)), toString(((dY + ea) - eb)), az, h, i], nil) | |
804 | + | let ed = bi(parseBigIntValue(ar(bj)), parseBigIntValue(ar(bk)), g) | |
805 | + | if ((ed == ed)) | |
803 | 806 | then { | |
804 | - | let | |
805 | - | let | |
806 | - | if (( | |
807 | + | let et = dm(es)._1 | |
808 | + | let eu = bc(toBigInt(et), toBigInt(en), toBigInt(bf)) | |
809 | + | if ((eu == eu)) | |
807 | 810 | then { | |
808 | - | let | |
809 | - | then $Tuple2(toInt( | |
810 | - | else $Tuple2(0, toInt( | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
811 | + | let ev = if ((eo == bL)) | |
812 | + | then $Tuple2(toInt(eu._2), 0) | |
813 | + | else $Tuple2(0, toInt(eu._2)) | |
814 | + | let ew = ev._1 | |
815 | + | let ex = ev._2 | |
816 | + | let ey = (ew + ex) | |
817 | + | let dV = (es - et) | |
818 | + | let ez = if ((eo == "WAVES")) | |
816 | 819 | then unit | |
817 | - | else fromBase58String( | |
818 | - | let | |
819 | - | then [ScriptTransfer( | |
820 | + | else fromBase58String(eo) | |
821 | + | let eh = if ((dV > 0)) | |
822 | + | then [ScriptTransfer(aC, dV, ez)] | |
820 | 823 | else nil | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | if (( | |
824 | + | let eA = aZ(C(bT, bO), C(bR, bN)) | |
825 | + | let eB = F(eA, a) | |
826 | + | let cd = [ScriptTransfer(bJ, ey, ez), StringEntry(X(toString(bJ), bG), aT(ew, ex, cm, eB, height, lastBlock.timestamp)), IntegerEntry(Q(), eB), IntegerEntry(R(height, lastBlock.timestamp), eB)] | |
827 | + | if ((cd == cd)) | |
825 | 828 | then { | |
826 | - | let | |
827 | - | if (( | |
828 | - | then ( | |
829 | + | let eC = invoke(ay, "burn", [cm], [AttachedPayment(bH, cm)]) | |
830 | + | if ((eC == eC)) | |
831 | + | then (cd ++ eh) | |
829 | 832 | else throw("Strict value is not equal to itself.") | |
830 | 833 | } | |
831 | 834 | else throw("Strict value is not equal to itself.") | |
832 | 835 | } | |
833 | 836 | else throw("Strict value is not equal to itself.") | |
834 | 837 | } | |
835 | 838 | else throw("Strict value is not equal to itself.") | |
836 | 839 | } | |
837 | 840 | } | |
838 | 841 | } | |
839 | 842 | ||
840 | 843 | ||
841 | 844 | ||
842 | - | @Callable( | |
843 | - | func getNoLess ( | |
844 | - | let | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | if (( | |
851 | - | then throw(((("Failed: " + toString( | |
852 | - | else if (( | |
853 | - | then throw(((("Failed: " + toString( | |
845 | + | @Callable(dg) | |
846 | + | func getNoLess (eD,eE) = { | |
847 | + | let cy = df(dg) | |
848 | + | let cb = cy._1 | |
849 | + | let cc = cy._2 | |
850 | + | let cm = cy._3 | |
851 | + | let bH = cy._4 | |
852 | + | let cd = cy._5 | |
853 | + | if ((eD > cb)) | |
854 | + | then throw(((("Failed: " + toString(cb)) + " < ") + toString(eD))) | |
855 | + | else if ((eE > cc)) | |
856 | + | then throw(((("Failed: " + toString(cc)) + " < ") + toString(eE))) | |
854 | 857 | else { | |
855 | - | let | |
856 | - | if (( | |
857 | - | then | |
858 | + | let eF = invoke(ay, "burn", [cm], [AttachedPayment(bH, cm)]) | |
859 | + | if ((eF == eF)) | |
860 | + | then cd | |
858 | 861 | else throw("Strict value is not equal to itself.") | |
859 | 862 | } | |
860 | 863 | } | |
861 | 864 | ||
862 | 865 | ||
863 | 866 | ||
864 | - | @Callable( | |
865 | - | func unstakeAndGet ( | |
866 | - | let | |
867 | + | @Callable(dg) | |
868 | + | func unstakeAndGet (dn) = { | |
869 | + | let eG = if ((size(dg.payments) != 0)) | |
867 | 870 | then throw("No pmnts expd") | |
868 | 871 | else true | |
869 | - | if (( | |
872 | + | if ((eG == eG)) | |
870 | 873 | then { | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | if (( | |
874 | + | let bw = aD() | |
875 | + | let eH = aH() | |
876 | + | let dG = fromBase58String(bw[r]) | |
877 | + | let eI = valueOrErrorMessage(addressFromString(eH[y]), "Wr st addr") | |
878 | + | let eJ = invoke(eI, "unstake", [toBase58String(dG), dn], nil) | |
879 | + | if ((eJ == eJ)) | |
877 | 880 | then { | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | let | |
881 | + | let cy = bF(toBase58String(dg.transactionId), toBase58String(dG), dn, dg.caller) | |
882 | + | let bP = parseIntValue(cy._9) | |
883 | + | let cd = cy._10 | |
884 | + | let eK = if (if (aA()) | |
882 | 885 | then true | |
883 | - | else ( | |
884 | - | then throw(("Blocked: " + toString( | |
886 | + | else (bP == o)) | |
887 | + | then throw(("Blocked: " + toString(bP))) | |
885 | 888 | else true | |
886 | - | if (( | |
889 | + | if ((eK == eK)) | |
887 | 890 | then { | |
888 | - | let | |
889 | - | if (( | |
890 | - | then | |
891 | + | let eL = invoke(ay, "burn", [dn], [AttachedPayment(dG, dn)]) | |
892 | + | if ((eL == eL)) | |
893 | + | then cd | |
891 | 894 | else throw("Strict value is not equal to itself.") | |
892 | 895 | } | |
893 | 896 | else throw("Strict value is not equal to itself.") | |
894 | 897 | } | |
895 | 898 | else throw("Strict value is not equal to itself.") | |
896 | 899 | } | |
897 | 900 | else throw("Strict value is not equal to itself.") | |
898 | 901 | } | |
899 | 902 | ||
900 | 903 | ||
901 | 904 | ||
902 | - | @Callable( | |
903 | - | func activate ( | |
905 | + | @Callable(dg) | |
906 | + | func activate (eM,eN) = if ((toString(dg.caller) != toString(ay))) | |
904 | 907 | then throw("denied") | |
905 | - | else $Tuple2([StringEntry(Y(), | |
908 | + | else $Tuple2([StringEntry(Y(), eM), StringEntry(Z(), eN)], "success") | |
906 | 909 | ||
907 | 910 | ||
908 | 911 | ||
909 | - | @Callable( | |
910 | - | func setS ( | |
911 | - | then | |
912 | - | else [StringEntry( | |
912 | + | @Callable(dg) | |
913 | + | func setS (eO,eK) = if ((toString(dg.caller) != au(this, ab()))) | |
914 | + | then ds | |
915 | + | else [StringEntry(eO, eK)] | |
913 | 916 | ||
914 | 917 | ||
915 | 918 | ||
916 | - | @Callable( | |
917 | - | func setI ( | |
918 | - | then | |
919 | - | else [IntegerEntry( | |
919 | + | @Callable(dg) | |
920 | + | func setI (eO,eK) = if ((toString(dg.caller) != au(this, ab()))) | |
921 | + | then ds | |
922 | + | else [IntegerEntry(eO, eK)] | |
920 | 923 | ||
921 | 924 | ||
922 | 925 | ||
923 | - | @Callable( | |
924 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
926 | + | @Callable(dg) | |
927 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aD()) | |
925 | 928 | ||
926 | 929 | ||
927 | 930 | ||
928 | - | @Callable( | |
929 | - | func getAccBalanceWrapperREADONLY ( | |
931 | + | @Callable(dg) | |
932 | + | func getAccBalanceWrapperREADONLY (aY) = $Tuple2(nil, aX(aY)) | |
930 | 933 | ||
931 | 934 | ||
932 | 935 | ||
933 | - | @Callable( | |
934 | - | func calcPricesWrapperREADONLY ( | |
935 | - | let | |
936 | - | $Tuple2(nil, [toString( | |
936 | + | @Callable(dg) | |
937 | + | func calcPricesWrapperREADONLY (bq,br,bv) = { | |
938 | + | let eP = bu(bq, br, bv) | |
939 | + | $Tuple2(nil, [toString(eP[0]), toString(eP[1]), toString(eP[2])]) | |
937 | 940 | } | |
938 | 941 | ||
939 | 942 | ||
940 | 943 | ||
941 | - | @Callable( | |
942 | - | func fromX18WrapperREADONLY (G, | |
944 | + | @Callable(dg) | |
945 | + | func fromX18WrapperREADONLY (G,eQ) = $Tuple2(nil, F(parseBigIntValue(G), eQ)) | |
943 | 946 | ||
944 | 947 | ||
945 | 948 | ||
946 | - | @Callable( | |
949 | + | @Callable(dg) | |
947 | 950 | func toX18WrapperREADONLY (D,E) = $Tuple2(nil, toString(C(D, E))) | |
948 | 951 | ||
949 | 952 | ||
950 | 953 | ||
951 | - | @Callable( | |
952 | - | func calcPriceBigIntWrapperREADONLY ( | |
954 | + | @Callable(dg) | |
955 | + | func calcPriceBigIntWrapperREADONLY (ba,bb) = $Tuple2(nil, toString(aZ(parseBigIntValue(ba), parseBigIntValue(bb)))) | |
953 | 956 | ||
954 | 957 | ||
955 | 958 | ||
956 | - | @Callable( | |
957 | - | func estimatePutOperationWrapperREADONLY ( | |
959 | + | @Callable(dg) | |
960 | + | func estimatePutOperationWrapperREADONLY (bG,bf,cf,cg,ch,ci,eR,cj,ck) = $Tuple2(nil, ce(bG, bf, cf, cg, ch, ci, eR, cj, ck, false, 0, "")) | |
958 | 961 | ||
959 | 962 | ||
960 | 963 | ||
961 | - | @Callable( | |
962 | - | func estimateGetOperationWrapperREADONLY ( | |
963 | - | let | |
964 | - | $Tuple2(nil, $Tuple10( | |
964 | + | @Callable(dg) | |
965 | + | func estimateGetOperationWrapperREADONLY (bG,eS,bI,eR) = { | |
966 | + | let cy = bF(bG, eS, bI, addressFromStringValue(eR)) | |
967 | + | $Tuple2(nil, $Tuple10(cy._1, cy._2, cy._3, cy._4, cy._5, cy._6, cy._7, toString(cy._8), cy._9, cy._10)) | |
965 | 968 | } | |
966 | 969 | ||
967 | 970 | ||
968 | - | @Verifier(eS) | |
969 | - | func eT () = { | |
970 | - | let ar = eS | |
971 | - | if ($isInstanceOf(ar, "Order")) | |
971 | + | @Verifier(eT) | |
972 | + | func eU () = { | |
973 | + | let eV = { | |
974 | + | let as = dp() | |
975 | + | if ($isInstanceOf(as, "ByteVector")) | |
976 | + | then { | |
977 | + | let du = as | |
978 | + | du | |
979 | + | } | |
980 | + | else if ($isInstanceOf(as, "Unit")) | |
981 | + | then eT.senderPublicKey | |
982 | + | else throw("Match error") | |
983 | + | } | |
984 | + | let as = eT | |
985 | + | if ($isInstanceOf(as, "Order")) | |
972 | 986 | then { | |
973 | - | let | |
974 | - | let | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | if (if (if ( | |
979 | - | then | |
987 | + | let cT = as | |
988 | + | let eW = aB() | |
989 | + | let eX = cS(cT) | |
990 | + | let eY = sigVerify(cT.bodyBytes, cT.proofs[0], cT.senderPublicKey) | |
991 | + | let eZ = sigVerify(cT.bodyBytes, cT.proofs[1], eW) | |
992 | + | if (if (if (eX) | |
993 | + | then eY | |
980 | 994 | else false) | |
981 | - | then | |
995 | + | then eZ | |
982 | 996 | else false) | |
983 | 997 | then true | |
984 | - | else | |
998 | + | else an(eX, eY, eZ) | |
985 | 999 | } | |
986 | - | else | |
987 | - | | |
988 | - | let | |
989 | - | | |
990 | - | | |
991 | - | ||
992 | - | | |
993 | - | | |
994 | - | else | |
995 | - | ||
996 | - | ||
1000 | + | else if ($isInstanceOf(as, "SetScriptTransaction")) | |
1001 | + | then { | |
1002 | + | let dq = as | |
1003 | + | let fa = blake2b256(value(dq.script)) | |
1004 | + | let fb = fromBase64String(value(getString(ay, am()))) | |
1005 | + | let fc = scriptHash(this) | |
1006 | + | if (if ((fb == fa)) | |
1007 | + | then (fc != fa) | |
1008 | + | else false) | |
1009 | + | then true | |
1010 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], eV) | |
997 | 1011 | } | |
998 | - | sigVerify(eS.bodyBytes, eS.proofs[0], eX) | |
999 | - | } | |
1012 | + | else sigVerify(eT.bodyBytes, eT.proofs[0], eV) | |
1000 | 1013 | } | |
1001 | 1014 |
github/deemru/w8io/169f3d6 354.63 ms ◑