tx · 5skf8CndkAFADhnL9cHsKLMtQSpeeYuqLowaanmBB4k9 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv: -0.02600000 Waves 2022.11.02 22:08 [2299895] smart account 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv > SELF 0.00000000 Waves
{ "type": 13, "id": "5skf8CndkAFADhnL9cHsKLMtQSpeeYuqLowaanmBB4k9", "fee": 2600000, "feeAssetId": null, "timestamp": 1667416174196, "version": 1, "sender": "3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv", "senderPublicKey": "39YkRD2qWXTcdNBr4CbDnm8g8SAB2FKVaDeGYahcFHHx", "proofs": [ "1z3BQUvgMMunds4YbDhH4PSjZpnCt7hV1BWy1WxiWqQRWcuPu4eVvvc2hJ85ukTPYyikpeRrwCZEYGLKwaWM349" ], "script": "base64:AAIFAAAAAAAADogIAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmljZUFzc2V0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YWdlcgMJAAAAAAAAAgUAAAACY1IFAAAAAmNSCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAAJhQgAAAAAJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQUAAAACY1AJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAAmFDAAAAAAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAmNTAQAAAAJjVAAAAAAEAAAAAmNVBAAAAAJjYQkBAAAAAmJaAAAAAAMJAAABAAAAAgUAAAACY2ECAAAACkJ5dGVWZWN0b3IEAAAAAmNnBQAAAAJjYQUAAAACY2cDCQAAAQAAAAIFAAAAAmNhAgAAAARVbml0CAUAAAACY1MAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJjUwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmNTAAAABnByb29mcwAAAAAAAAAAAAUAAAACY1Wk2t/W", "chainId": 84, "height": 2299895, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 59ScimVV9rdyddhpeKirTdauibTBLhEQFL2usea7BG5p Next: HfgW1eUAcygZBBWAFJ7YDE5gu44KCN8qU1NQB7AVn8US Diff:
Old | New | Differences | |
---|---|---|---|
204 | 204 | let bm = h(bl, L, k, H, J) | |
205 | 205 | let bn = (aZ == K) | |
206 | 206 | let bo = valueOrElse(getBoolean(ak()), false) | |
207 | - | let bp = { | |
208 | - | let bq = getInteger(al()) | |
209 | - | if ($isInstanceOf(bq, "Int")) | |
210 | - | then { | |
211 | - | let br = bq | |
212 | - | (height > br) | |
213 | - | } | |
214 | - | else if ($isInstanceOf(bq, "Unit")) | |
215 | - | then false | |
216 | - | else throw("Match error") | |
217 | - | } | |
218 | - | let bs = [if (!(if (bn) | |
207 | + | let bp = [if (!(if (bn) | |
219 | 208 | then bo | |
220 | 209 | else false)) | |
221 | 210 | then true | |
222 | - | else throw("USDN claim is disabled"), if (!(if (bn) | |
223 | - | then bp | |
224 | - | else false)) | |
225 | - | then true | |
226 | - | else throw("USDN claim is ended")] | |
227 | - | if ((bs == bs)) | |
211 | + | else throw("USDN claim is disabled")] | |
212 | + | if ((bp == bp)) | |
228 | 213 | then if ((aZ == K)) | |
229 | 214 | then $Tuple6([0, -(bl), bl, 0], bl, bd, bf, bj, [bl, bm]) | |
230 | 215 | else if ((aZ == I)) | |
234 | 219 | } | |
235 | 220 | ||
236 | 221 | ||
237 | - | func | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
222 | + | func bq (K,be,br,bs) = { | |
223 | + | let bt = value(getInteger(as(K))) | |
224 | + | let bu = value(getInteger(au(K))) | |
225 | + | let bv = value(getInteger(am())) | |
226 | + | let bw = valueOrElse(getInteger(an()), 0) | |
227 | + | let bx = isDefined(getInteger(aq(0))) | |
228 | + | let by = if ((bw > 0)) | |
244 | 229 | then { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
230 | + | let bz = value(getInteger(ao((bw - 1)))) | |
231 | + | let bA = value(getInteger(aq((bw - 1)))) | |
232 | + | let bB = if ((height > bA)) | |
248 | 233 | then { | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | $Tuple3( | |
234 | + | let bC = (bw + 1) | |
235 | + | let bD = (bA + 1) | |
236 | + | let bE = ((bD + bv) - 1) | |
237 | + | $Tuple3(bC, bD, bE) | |
253 | 238 | } | |
254 | - | else $Tuple3(bz, | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | $Tuple3( | |
239 | + | else $Tuple3(bw, bz, bA) | |
240 | + | let bC = bB._1 | |
241 | + | let bD = bB._2 | |
242 | + | let bE = bB._3 | |
243 | + | $Tuple3(bC, bD, bE) | |
259 | 244 | } | |
260 | - | else if ( | |
245 | + | else if (bx) | |
261 | 246 | then { | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
247 | + | let bF = value(getInteger(ao(0))) | |
248 | + | let bG = value(getInteger(aq(0))) | |
249 | + | let bH = if ((height > bG)) | |
265 | 250 | then { | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | $Tuple3( | |
251 | + | let bC = (bw + 1) | |
252 | + | let bD = (bG + 1) | |
253 | + | let bE = ((bD + bv) - 1) | |
254 | + | $Tuple3(bC, bD, bE) | |
270 | 255 | } | |
271 | - | else $Tuple3( | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | $Tuple3( | |
256 | + | else $Tuple3(bw, bF, bG) | |
257 | + | let bC = bH._1 | |
258 | + | let bD = bH._2 | |
259 | + | let bE = bH._3 | |
260 | + | $Tuple3(bC, bD, bE) | |
276 | 261 | } | |
277 | - | else $Tuple3( | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | if ($isInstanceOf( | |
290 | - | then | |
262 | + | else $Tuple3(bw, valueOrElse(getInteger(ao(bw)), height), valueOrElse(getInteger(aq(bw)), ((height + bv) - 1))) | |
263 | + | let bC = by._1 | |
264 | + | let bD = by._2 | |
265 | + | let bE = by._3 | |
266 | + | let bI = valueOrElse(getInteger(av(K, bC)), bt) | |
267 | + | let bJ = valueOrElse(getInteger(aw(K, bC, be)), bu) | |
268 | + | let bK = valueOrElse(getInteger(az(be)), 0) | |
269 | + | let bL = min([(br + bK), bI, bJ]) | |
270 | + | let bM = value(getInteger(ar())) | |
271 | + | let bN = e | |
272 | + | let bO = { | |
273 | + | let bP = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bN, K], nil) | |
274 | + | if ($isInstanceOf(bP, "(Int, Int, Int)")) | |
275 | + | then bP | |
291 | 276 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
292 | 277 | } | |
293 | - | if (( | |
278 | + | if ((bO == bO)) | |
294 | 279 | then { | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | if ($isInstanceOf( | |
302 | - | then | |
280 | + | let bQ = bO._3 | |
281 | + | let bR = bO._2 | |
282 | + | let bS = bO._1 | |
283 | + | let bT = value(getString(ay())) | |
284 | + | let bU = { | |
285 | + | let bP = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bT, bS], nil) | |
286 | + | if ($isInstanceOf(bP, "(Int, Int)")) | |
287 | + | then bP | |
303 | 288 | else throw("Couldn't cast Any to (Int, Int)") | |
304 | 289 | } | |
305 | - | if (( | |
290 | + | if ((bU == bU)) | |
306 | 291 | then { | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | $Tuple10( | |
292 | + | let bV = bU._2 | |
293 | + | let bW = bU._1 | |
294 | + | let bX = fraction(bW, bN, e) | |
295 | + | let bY = (bE - height) | |
296 | + | $Tuple10(bL, bI, bJ, bs, bM, bX, bY, bC, bD, bE) | |
312 | 297 | } | |
313 | 298 | else throw("Strict value is not equal to itself.") | |
314 | 299 | } | |
316 | 301 | } | |
317 | 302 | ||
318 | 303 | ||
319 | - | func | |
320 | - | let | |
321 | - | if ($isInstanceOf( | |
304 | + | func bZ () = { | |
305 | + | let ca = getString(aB()) | |
306 | + | if ($isInstanceOf(ca, "String")) | |
322 | 307 | then { | |
323 | - | let | |
324 | - | fromBase58String( | |
308 | + | let cb = ca | |
309 | + | fromBase58String(cb) | |
325 | 310 | } | |
326 | - | else if ($isInstanceOf( | |
311 | + | else if ($isInstanceOf(ca, "Unit")) | |
327 | 312 | then unit | |
328 | 313 | else throw("Match error") | |
329 | 314 | } | |
330 | 315 | ||
331 | 316 | ||
332 | - | func | |
333 | - | let | |
334 | - | if ($isInstanceOf( | |
317 | + | func cc () = { | |
318 | + | let ca = getString(aC()) | |
319 | + | if ($isInstanceOf(ca, "String")) | |
335 | 320 | then { | |
336 | - | let | |
337 | - | fromBase58String( | |
321 | + | let cb = ca | |
322 | + | fromBase58String(cb) | |
338 | 323 | } | |
339 | - | else if ($isInstanceOf( | |
324 | + | else if ($isInstanceOf(ca, "Unit")) | |
340 | 325 | then unit | |
341 | 326 | else throw("Match error") | |
342 | 327 | } | |
343 | 328 | ||
344 | 329 | ||
345 | - | func | |
346 | - | let | |
347 | - | let | |
348 | - | if ($isInstanceOf( | |
330 | + | func cd (ce) = { | |
331 | + | let cf = throw("Permission denied") | |
332 | + | let ca = bZ() | |
333 | + | if ($isInstanceOf(ca, "ByteVector")) | |
349 | 334 | then { | |
350 | - | let | |
351 | - | if (( | |
335 | + | let cg = ca | |
336 | + | if ((ce.callerPublicKey == cg)) | |
352 | 337 | then true | |
353 | - | else | |
338 | + | else cf | |
354 | 339 | } | |
355 | - | else if ($isInstanceOf( | |
356 | - | then if (( | |
340 | + | else if ($isInstanceOf(ca, "Unit")) | |
341 | + | then if ((ce.caller == this)) | |
357 | 342 | then true | |
358 | - | else | |
343 | + | else cf | |
359 | 344 | else throw("Match error") | |
360 | 345 | } | |
361 | 346 | ||
362 | 347 | ||
363 | - | @Callable( | |
348 | + | @Callable(ce) | |
364 | 349 | func constructor (D,E,F,G,k,K,M) = { | |
365 | 350 | let H = ((100 * 1000) * 1000) | |
366 | - | let | |
351 | + | let ch = (D + E) | |
367 | 352 | if (isDefined(getString(ad()))) | |
368 | 353 | then throw("already initialized") | |
369 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
354 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(ce.caller))) | |
370 | 355 | then throw("not authorized") | |
371 | - | else if ((size( | |
356 | + | else if ((size(ce.payments) != 1)) | |
372 | 357 | then throw("exactly 1 payment must be attached") | |
373 | - | else if (( | |
358 | + | else if ((ch >= F)) | |
374 | 359 | then throw("claimStart must be greater than idoEnd") | |
375 | 360 | else { | |
376 | - | let | |
377 | - | let bc = value( | |
378 | - | let | |
361 | + | let ci = value(ce.payments[0]) | |
362 | + | let bc = value(ci.assetId) | |
363 | + | let cj = valueOrErrorMessage(assetInfo(bc), "fail to load ido asset info") | |
379 | 364 | let I = toBase58String(bc) | |
380 | - | let J = pow(10, 0, | |
365 | + | let J = pow(10, 0, cj.decimals, 0, 0, DOWN) | |
381 | 366 | let bd = fromBase58String(K) | |
382 | - | let | |
383 | - | let L = pow(10, 0, | |
384 | - | let | |
385 | - | let | |
386 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
367 | + | let ck = valueOrErrorMessage(assetInfo(bd), "fail to load price asset info") | |
368 | + | let L = pow(10, 0, ck.decimals, 0, 0, DOWN) | |
369 | + | let cl = aG() | |
370 | + | let cm = [0, 0, 0, 0] | |
371 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, ci.amount)), aN(ag(), cl, cm, F)] | |
387 | 372 | } | |
388 | 373 | } | |
389 | 374 | ||
390 | 375 | ||
391 | 376 | ||
392 | - | @Callable( | |
377 | + | @Callable(ce) | |
393 | 378 | func invest () = { | |
394 | 379 | let ba = aD() | |
395 | 380 | let D = parseIntValue(ba[r]) | |
396 | 381 | let E = parseIntValue(ba[s]) | |
397 | - | let | |
382 | + | let ch = (D + E) | |
398 | 383 | let F = parseIntValue(ba[t]) | |
399 | 384 | let G = parseIntValue(ba[u]) | |
400 | 385 | let k = parseIntValue(ba[v]) | |
405 | 390 | let K = ba[z] | |
406 | 391 | let bd = fromBase58String(K) | |
407 | 392 | let L = parseIntValue(ba[A]) | |
408 | - | let | |
409 | - | let af = toString( | |
393 | + | let cn = parseIntValue(ba[B]) | |
394 | + | let af = toString(ce.caller) | |
410 | 395 | if ((D > height)) | |
411 | 396 | then throw("ido has not been started yet") | |
412 | - | else if ((height > | |
397 | + | else if ((height > ch)) | |
413 | 398 | then throw("ido has been already ended") | |
414 | - | else if ((size( | |
399 | + | else if ((size(ce.payments) != 1)) | |
415 | 400 | then throw("exactly 1 payment is expected") | |
416 | 401 | else { | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | if (( | |
421 | - | then throw((("invalid payment asset id: " + toBase58String( | |
402 | + | let ci = value(ce.payments[0]) | |
403 | + | let co = value(ci.assetId) | |
404 | + | let cp = ci.amount | |
405 | + | if ((co != bd)) | |
406 | + | then throw((("invalid payment asset id: " + toBase58String(co)) + " is expected")) | |
422 | 407 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | if (( | |
408 | + | let cq = aH(af) | |
409 | + | let cl = aG() | |
410 | + | let cr = (parseIntValue(cl[P]) + cp) | |
411 | + | let cs = (cr * 100) | |
412 | + | if ((cs > assetBalance(this, bc))) | |
428 | 413 | then throw("IDO asset has been - sold consider to use smaller payment") | |
429 | 414 | else { | |
430 | - | let | |
431 | - | [aN(ae(af), | |
415 | + | let cm = [cp, cp, 0, 0] | |
416 | + | [aN(ae(af), cq, cm, F), aN(ag(), cl, cm, F), aV(af, cp, 0, ce.transactionId)] | |
432 | 417 | } | |
433 | 418 | } | |
434 | 419 | } | |
436 | 421 | ||
437 | 422 | ||
438 | 423 | ||
439 | - | @Callable( | |
424 | + | @Callable(ce) | |
440 | 425 | func claim (aZ,be) = { | |
441 | - | let | |
442 | - | if ((be != | |
426 | + | let ct = toString(ce.caller) | |
427 | + | if ((be != ct)) | |
443 | 428 | then throw("not authorized") | |
444 | 429 | else { | |
445 | 430 | let ba = aD() | |
446 | 431 | let K = ba[z] | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let bf = | |
452 | - | let bj = | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
432 | + | let cu = aY(aZ, ce.caller, ce.transactionId) | |
433 | + | let cm = cu._1 | |
434 | + | let br = cu._2 | |
435 | + | let cv = cu._3 | |
436 | + | let bf = cu._4 | |
437 | + | let bj = cu._5 | |
438 | + | let cw = cm[aL] | |
439 | + | let cx = cm[aM] | |
440 | + | let cy = if ((aZ == K)) | |
456 | 441 | then { | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
442 | + | let cz = bq(K, be, br, cm[aL]) | |
443 | + | let bL = cz._1 | |
444 | + | let bI = cz._2 | |
445 | + | let bJ = cz._3 | |
446 | + | let bs = cz._4 | |
447 | + | let bM = cz._5 | |
448 | + | let bX = cz._6 | |
449 | + | let bY = cz._7 | |
450 | + | let bC = cz._8 | |
451 | + | let bD = cz._9 | |
452 | + | let bE = cz._10 | |
453 | + | let bp = [if ((bL > 0)) | |
469 | 454 | then true | |
470 | - | else f(makeString(["nothing to claim", toString( | |
455 | + | else f(makeString(["nothing to claim", toString(bL), toString(bI), toString(bJ), toString(bs), toString(bM), toString(bX), toString(bY), toString(bC), toString(bD), toString(bE)], c)), if ((bJ > 0)) | |
471 | 456 | then true | |
472 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
457 | + | else f("unavailable to claim because user period allowance reached"), if ((bI > 0)) | |
473 | 458 | then true | |
474 | - | else f("unavailable to claim because total period allowance reached"), if (( | |
459 | + | else f("unavailable to claim because total period allowance reached"), if ((bM > bX)) | |
475 | 460 | then true | |
476 | 461 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
477 | - | if (( | |
462 | + | if ((bp == bp)) | |
478 | 463 | then { | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | then [ScriptTransfer( | |
464 | + | let bK = valueOrElse(getInteger(az(be)), 0) | |
465 | + | let cA = (bI - bL) | |
466 | + | let cB = (bJ - bL) | |
467 | + | let cy = if ((bK >= bL)) | |
468 | + | then [ScriptTransfer(ce.caller, bL, cv), IntegerEntry(az(be), (bK - bL))] | |
484 | 469 | else { | |
485 | - | let | |
486 | - | [ScriptTransfer( | |
470 | + | let cC = ((bK + br) - bL) | |
471 | + | [ScriptTransfer(ce.caller, bL, cv), aN(ae(be), bf, cm, bj), aN(ag(), aG(), cm, bj), IntegerEntry(az(be), cC)] | |
487 | 472 | } | |
488 | - | $Tuple2(([IntegerEntry(an(), | |
473 | + | $Tuple2(([IntegerEntry(an(), bC), IntegerEntry(ao(bC), bD), IntegerEntry(aq(bC), bE), IntegerEntry(av(K, bC), cA), IntegerEntry(aw(K, bC, be), cB), aX(be, bL, cx, ce.transactionId)] ++ cy), unit) | |
489 | 474 | } | |
490 | 475 | else throw("Strict value is not equal to itself.") | |
491 | 476 | } | |
492 | - | else $Tuple2([ScriptTransfer( | |
493 | - | | |
477 | + | else $Tuple2([ScriptTransfer(ce.caller, br, cv), aN(ae(be), bf, cm, bj), aN(ag(), aG(), cm, bj), aX(be, cw, cx, ce.transactionId)], unit) | |
478 | + | cy | |
494 | 479 | } | |
495 | 480 | } | |
496 | 481 | ||
497 | 482 | ||
498 | 483 | ||
499 | - | @Callable( | |
484 | + | @Callable(ce) | |
500 | 485 | func claimREADONLY (aZ,be) = { | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let bf = | |
506 | - | let bj = | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | $Tuple2(nil, makeString(["%s%d%d", be, toString( | |
486 | + | let cu = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
487 | + | let cm = cu._1 | |
488 | + | let br = cu._2 | |
489 | + | let cv = cu._3 | |
490 | + | let bf = cu._4 | |
491 | + | let bj = cu._5 | |
492 | + | let cD = cu._6 | |
493 | + | let cE = cD[0] | |
494 | + | let cF = cD[1] | |
495 | + | $Tuple2(nil, makeString(["%s%d%d", be, toString(cE), toString(cF)], c)) | |
511 | 496 | } | |
512 | 497 | ||
513 | 498 | ||
514 | 499 | ||
515 | - | @Callable( | |
500 | + | @Callable(ce) | |
516 | 501 | func claimV2READONLY (aZ,be) = { | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let bf = | |
522 | - | let bj = | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
502 | + | let cu = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
503 | + | let cm = cu._1 | |
504 | + | let br = cu._2 | |
505 | + | let cv = cu._3 | |
506 | + | let bf = cu._4 | |
507 | + | let bj = cu._5 | |
508 | + | let cD = cu._6 | |
509 | + | let cE = cD[0] | |
510 | + | let cF = cD[1] | |
526 | 511 | let ba = aD() | |
527 | 512 | let K = ba[z] | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
513 | + | let cG = bq(K, be, br, cm[aL]) | |
514 | + | let bL = cG._1 | |
515 | + | let bI = cG._2 | |
516 | + | let bJ = cG._3 | |
517 | + | let bs = cG._4 | |
518 | + | let bM = cG._5 | |
519 | + | let bX = cG._6 | |
520 | + | let bY = cG._7 | |
521 | + | let bC = cG._8 | |
522 | + | let bD = cG._9 | |
523 | + | let bE = cG._10 | |
524 | + | let cH = value(getInteger(aq(bC))) | |
525 | + | let cI = if ((height > cH)) | |
541 | 526 | then { | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | makeString(["%d%d%d%d%d%d", toString( | |
527 | + | let cJ = value(getInteger(am())) | |
528 | + | let cK = value(getInteger(au(K))) | |
529 | + | let cL = value(getInteger(as(K))) | |
530 | + | makeString(["%d%d%d%d%d%d", toString(cF), toString(cK), toString(cL), toString(bM), toString(bX), toString(cJ)], c) | |
546 | 531 | } | |
547 | - | else makeString(["%d%d%d%d%d%d", toString( | |
548 | - | $Tuple2(nil, | |
532 | + | else makeString(["%d%d%d%d%d%d", toString(cF), toString(bL), toString(bI), toString(bM), toString(bX), toString(bY)], c) | |
533 | + | $Tuple2(nil, cI) | |
549 | 534 | } | |
550 | 535 | ||
551 | 536 | ||
552 | 537 | ||
553 | - | @Callable( | |
554 | - | func setManager ( | |
555 | - | let | |
556 | - | if (( | |
538 | + | @Callable(ce) | |
539 | + | func setManager (cM) = { | |
540 | + | let cN = cd(ce) | |
541 | + | if ((cN == cN)) | |
557 | 542 | then { | |
558 | - | let | |
559 | - | if (( | |
560 | - | then [StringEntry(aC(), | |
543 | + | let cO = fromBase58String(cM) | |
544 | + | if ((cO == cO)) | |
545 | + | then [StringEntry(aC(), cM)] | |
561 | 546 | else throw("Strict value is not equal to itself.") | |
562 | 547 | } | |
563 | 548 | else throw("Strict value is not equal to itself.") | |
565 | 550 | ||
566 | 551 | ||
567 | 552 | ||
568 | - | @Callable( | |
553 | + | @Callable(ce) | |
569 | 554 | func confirmManager () = { | |
570 | - | let | |
571 | - | let | |
555 | + | let cP = cc() | |
556 | + | let cQ = if (isDefined(cP)) | |
572 | 557 | then true | |
573 | 558 | else throw("No pending manager") | |
574 | - | if (( | |
559 | + | if ((cQ == cQ)) | |
575 | 560 | then { | |
576 | - | let | |
561 | + | let cR = if ((ce.callerPublicKey == value(cP))) | |
577 | 562 | then true | |
578 | 563 | else throw("You are not pending manager") | |
579 | - | if (( | |
580 | - | then [StringEntry(aB(), toBase58String(value( | |
564 | + | if ((cR == cR)) | |
565 | + | then [StringEntry(aB(), toBase58String(value(cP))), DeleteEntry(aC())] | |
581 | 566 | else throw("Strict value is not equal to itself.") | |
582 | 567 | } | |
583 | 568 | else throw("Strict value is not equal to itself.") | |
584 | 569 | } | |
585 | 570 | ||
586 | 571 | ||
587 | - | @Verifier( | |
588 | - | func | |
589 | - | let | |
590 | - | let | |
591 | - | if ($isInstanceOf( | |
572 | + | @Verifier(cS) | |
573 | + | func cT () = { | |
574 | + | let cU = { | |
575 | + | let ca = bZ() | |
576 | + | if ($isInstanceOf(ca, "ByteVector")) | |
592 | 577 | then { | |
593 | - | let | |
594 | - | | |
578 | + | let cg = ca | |
579 | + | cg | |
595 | 580 | } | |
596 | - | else if ($isInstanceOf( | |
597 | - | then | |
581 | + | else if ($isInstanceOf(ca, "Unit")) | |
582 | + | then cS.senderPublicKey | |
598 | 583 | else throw("Match error") | |
599 | 584 | } | |
600 | - | sigVerify( | |
585 | + | sigVerify(cS.bodyBytes, cS.proofs[0], cU) | |
601 | 586 | } | |
602 | 587 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let c = "__" | |
8 | 8 | ||
9 | 9 | let d = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | let e = 100000000 | |
12 | 12 | ||
13 | 13 | func f (g) = throw(makeString(["ido.ride:", g], " ")) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func h (i,j,k,l,m) = { | |
17 | 17 | let n = toBigInt(j) | |
18 | 18 | let o = toBigInt(m) | |
19 | 19 | let p = fraction(toBigInt(i), d, n) | |
20 | 20 | let q = fraction(p, toBigInt(l), toBigInt(k)) | |
21 | 21 | toInt(fraction(q, toBigInt(m), d)) | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | let r = 1 | |
26 | 26 | ||
27 | 27 | let s = 2 | |
28 | 28 | ||
29 | 29 | let t = 3 | |
30 | 30 | ||
31 | 31 | let u = 4 | |
32 | 32 | ||
33 | 33 | let v = 5 | |
34 | 34 | ||
35 | 35 | let w = 6 | |
36 | 36 | ||
37 | 37 | let x = 7 | |
38 | 38 | ||
39 | 39 | let y = 8 | |
40 | 40 | ||
41 | 41 | let z = 9 | |
42 | 42 | ||
43 | 43 | let A = 10 | |
44 | 44 | ||
45 | 45 | let B = 11 | |
46 | 46 | ||
47 | 47 | func C (D,E,F,G,k,H,I,J,K,L,M,N) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", D, E, F, G, k, H, I, J, K, L, M, N], c) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func O (D,E,F,G,k,H,I,J,K,L,M,N) = C(toString(D), toString(E), toString(F), toString(G), toString(k), toString(H), I, toString(J), K, toString(L), toString(M), toString(N)) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | let P = 1 | |
54 | 54 | ||
55 | 55 | let Q = 2 | |
56 | 56 | ||
57 | 57 | let R = 3 | |
58 | 58 | ||
59 | 59 | let S = 4 | |
60 | 60 | ||
61 | 61 | let T = 5 | |
62 | 62 | ||
63 | 63 | func U (V,W,X,Y,Z) = makeString(["%d%d%d%d%d", V, W, X, Y, Z], c) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func aa (V,W,X,Y,Z) = U(toString(V), toString(W), toString(X), toString(Y), toString(Z)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func ab (i,ac) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(i), toString(ac)], c) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func ad () = "%s__config" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func ae (af) = ("%s__" + af) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func ag () = "%s__totals" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func ah (ai,af,aj) = makeString(["%s%s%s%s__history", ai, af, aj], c) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func ak () = "%s__usdnClaimDisabled" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func al () = "%s__usdnClaimEndHeight" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func am () = makeString(["%s", "periodLength"], c) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func an () = makeString(["%s", "currentPeriod"], c) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func ao (ap) = makeString(["%s%s", "periodStartHeight", toString(ap)], c) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func aq (ap) = makeString(["%s%s", "periodEndHeight", toString(ap)], c) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func ar () = makeString(["%s", "usdtPriceAssetAllowableRatio"], c) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func as (at) = makeString(["%s%s", "totalPeriodAllowance", at], c) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func au (at) = makeString(["%s%s", "userPeriodAllowance", at], c) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func av (at,ap) = makeString(["%s%s%s", "periodTotalAvailableToClaim", at, toString(ap)], c) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func aw (at,ap,af) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", at, toString(ap), af], c) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ax () = makeString(["%s", "usdtPriceAssetStablePool"], c) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ay () = makeString(["%s", "usdtAssetId"], c) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func az (aA) = makeString(["%s%s", "priceAssetBalance", aA], c) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func aB () = "%s__managerPublicKey" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func aC () = "%s__pendingManagerPublicKey" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func aD () = split(a(ad()), c) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func aE (aF) = split(valueOrElse(getString(aF), U("0", "0", "0", "0", "0")), c) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func aG () = aE(ag()) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aH (af) = aE(ae(af)) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aI (af) = split(a(ae(af)), c) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | let aJ = 0 | |
148 | 148 | ||
149 | 149 | let aK = 1 | |
150 | 150 | ||
151 | 151 | let aL = 2 | |
152 | 152 | ||
153 | 153 | let aM = 3 | |
154 | 154 | ||
155 | 155 | func aN (b,aO,aP,aQ) = { | |
156 | 156 | let V = parseIntValue(aO[P]) | |
157 | 157 | let W = parseIntValue(aO[Q]) | |
158 | 158 | let X = parseIntValue(aO[R]) | |
159 | 159 | let Y = parseIntValue(aO[S]) | |
160 | 160 | let Z = parseIntValue(aO[T]) | |
161 | 161 | let aR = (V + aP[aJ]) | |
162 | 162 | let aS = (W + aP[aK]) | |
163 | 163 | let aT = (X + aP[aL]) | |
164 | 164 | let aU = (Y + aP[aM]) | |
165 | 165 | if ((0 > aS)) | |
166 | 166 | then throw("invalid math") | |
167 | 167 | else StringEntry(b, aa(aR, aS, aT, aU, aQ)) | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aV (af,i,ac,aW) = StringEntry(ah("invest", af, toBase58String(aW)), ab(i, ac)) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aX (af,i,ac,aW) = StringEntry(ah("claim", af, toBase58String(aW)), ab(i, ac)) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aY (aZ,af,aW) = { | |
178 | 178 | let ba = aD() | |
179 | 179 | let F = parseIntValue(ba[t]) | |
180 | 180 | let G = parseIntValue(ba[u]) | |
181 | 181 | let bb = (F + G) | |
182 | 182 | let k = parseIntValue(ba[v]) | |
183 | 183 | let H = parseIntValue(ba[w]) | |
184 | 184 | let I = ba[x] | |
185 | 185 | let bc = fromBase58String(I) | |
186 | 186 | let J = parseIntValue(ba[y]) | |
187 | 187 | let K = ba[z] | |
188 | 188 | let bd = fromBase58String(K) | |
189 | 189 | let L = parseIntValue(ba[A]) | |
190 | 190 | let be = toString(af) | |
191 | 191 | let bf = aI(be) | |
192 | 192 | let bg = parseIntValue(bf[P]) | |
193 | 193 | let bh = parseIntValue(bf[T]) | |
194 | 194 | let bi = if ((F >= bh)) | |
195 | 195 | then F | |
196 | 196 | else bh | |
197 | 197 | let bj = if ((height > bb)) | |
198 | 198 | then bb | |
199 | 199 | else if ((F > height)) | |
200 | 200 | then F | |
201 | 201 | else height | |
202 | 202 | let bk = (bj - bi) | |
203 | 203 | let bl = fraction(bg, bk, G) | |
204 | 204 | let bm = h(bl, L, k, H, J) | |
205 | 205 | let bn = (aZ == K) | |
206 | 206 | let bo = valueOrElse(getBoolean(ak()), false) | |
207 | - | let bp = { | |
208 | - | let bq = getInteger(al()) | |
209 | - | if ($isInstanceOf(bq, "Int")) | |
210 | - | then { | |
211 | - | let br = bq | |
212 | - | (height > br) | |
213 | - | } | |
214 | - | else if ($isInstanceOf(bq, "Unit")) | |
215 | - | then false | |
216 | - | else throw("Match error") | |
217 | - | } | |
218 | - | let bs = [if (!(if (bn) | |
207 | + | let bp = [if (!(if (bn) | |
219 | 208 | then bo | |
220 | 209 | else false)) | |
221 | 210 | then true | |
222 | - | else throw("USDN claim is disabled"), if (!(if (bn) | |
223 | - | then bp | |
224 | - | else false)) | |
225 | - | then true | |
226 | - | else throw("USDN claim is ended")] | |
227 | - | if ((bs == bs)) | |
211 | + | else throw("USDN claim is disabled")] | |
212 | + | if ((bp == bp)) | |
228 | 213 | then if ((aZ == K)) | |
229 | 214 | then $Tuple6([0, -(bl), bl, 0], bl, bd, bf, bj, [bl, bm]) | |
230 | 215 | else if ((aZ == I)) | |
231 | 216 | then $Tuple6([0, -(bl), 0, bm], bm, bc, bf, bj, [bl, bm]) | |
232 | 217 | else throw(("unsupported assetId: " + aZ)) | |
233 | 218 | else throw("Strict value is not equal to itself.") | |
234 | 219 | } | |
235 | 220 | ||
236 | 221 | ||
237 | - | func | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
222 | + | func bq (K,be,br,bs) = { | |
223 | + | let bt = value(getInteger(as(K))) | |
224 | + | let bu = value(getInteger(au(K))) | |
225 | + | let bv = value(getInteger(am())) | |
226 | + | let bw = valueOrElse(getInteger(an()), 0) | |
227 | + | let bx = isDefined(getInteger(aq(0))) | |
228 | + | let by = if ((bw > 0)) | |
244 | 229 | then { | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
230 | + | let bz = value(getInteger(ao((bw - 1)))) | |
231 | + | let bA = value(getInteger(aq((bw - 1)))) | |
232 | + | let bB = if ((height > bA)) | |
248 | 233 | then { | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | $Tuple3( | |
234 | + | let bC = (bw + 1) | |
235 | + | let bD = (bA + 1) | |
236 | + | let bE = ((bD + bv) - 1) | |
237 | + | $Tuple3(bC, bD, bE) | |
253 | 238 | } | |
254 | - | else $Tuple3(bz, | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | $Tuple3( | |
239 | + | else $Tuple3(bw, bz, bA) | |
240 | + | let bC = bB._1 | |
241 | + | let bD = bB._2 | |
242 | + | let bE = bB._3 | |
243 | + | $Tuple3(bC, bD, bE) | |
259 | 244 | } | |
260 | - | else if ( | |
245 | + | else if (bx) | |
261 | 246 | then { | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
247 | + | let bF = value(getInteger(ao(0))) | |
248 | + | let bG = value(getInteger(aq(0))) | |
249 | + | let bH = if ((height > bG)) | |
265 | 250 | then { | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | $Tuple3( | |
251 | + | let bC = (bw + 1) | |
252 | + | let bD = (bG + 1) | |
253 | + | let bE = ((bD + bv) - 1) | |
254 | + | $Tuple3(bC, bD, bE) | |
270 | 255 | } | |
271 | - | else $Tuple3( | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | $Tuple3( | |
256 | + | else $Tuple3(bw, bF, bG) | |
257 | + | let bC = bH._1 | |
258 | + | let bD = bH._2 | |
259 | + | let bE = bH._3 | |
260 | + | $Tuple3(bC, bD, bE) | |
276 | 261 | } | |
277 | - | else $Tuple3( | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | if ($isInstanceOf( | |
290 | - | then | |
262 | + | else $Tuple3(bw, valueOrElse(getInteger(ao(bw)), height), valueOrElse(getInteger(aq(bw)), ((height + bv) - 1))) | |
263 | + | let bC = by._1 | |
264 | + | let bD = by._2 | |
265 | + | let bE = by._3 | |
266 | + | let bI = valueOrElse(getInteger(av(K, bC)), bt) | |
267 | + | let bJ = valueOrElse(getInteger(aw(K, bC, be)), bu) | |
268 | + | let bK = valueOrElse(getInteger(az(be)), 0) | |
269 | + | let bL = min([(br + bK), bI, bJ]) | |
270 | + | let bM = value(getInteger(ar())) | |
271 | + | let bN = e | |
272 | + | let bO = { | |
273 | + | let bP = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bN, K], nil) | |
274 | + | if ($isInstanceOf(bP, "(Int, Int, Int)")) | |
275 | + | then bP | |
291 | 276 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
292 | 277 | } | |
293 | - | if (( | |
278 | + | if ((bO == bO)) | |
294 | 279 | then { | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | if ($isInstanceOf( | |
302 | - | then | |
280 | + | let bQ = bO._3 | |
281 | + | let bR = bO._2 | |
282 | + | let bS = bO._1 | |
283 | + | let bT = value(getString(ay())) | |
284 | + | let bU = { | |
285 | + | let bP = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bT, bS], nil) | |
286 | + | if ($isInstanceOf(bP, "(Int, Int)")) | |
287 | + | then bP | |
303 | 288 | else throw("Couldn't cast Any to (Int, Int)") | |
304 | 289 | } | |
305 | - | if (( | |
290 | + | if ((bU == bU)) | |
306 | 291 | then { | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | $Tuple10( | |
292 | + | let bV = bU._2 | |
293 | + | let bW = bU._1 | |
294 | + | let bX = fraction(bW, bN, e) | |
295 | + | let bY = (bE - height) | |
296 | + | $Tuple10(bL, bI, bJ, bs, bM, bX, bY, bC, bD, bE) | |
312 | 297 | } | |
313 | 298 | else throw("Strict value is not equal to itself.") | |
314 | 299 | } | |
315 | 300 | else throw("Strict value is not equal to itself.") | |
316 | 301 | } | |
317 | 302 | ||
318 | 303 | ||
319 | - | func | |
320 | - | let | |
321 | - | if ($isInstanceOf( | |
304 | + | func bZ () = { | |
305 | + | let ca = getString(aB()) | |
306 | + | if ($isInstanceOf(ca, "String")) | |
322 | 307 | then { | |
323 | - | let | |
324 | - | fromBase58String( | |
308 | + | let cb = ca | |
309 | + | fromBase58String(cb) | |
325 | 310 | } | |
326 | - | else if ($isInstanceOf( | |
311 | + | else if ($isInstanceOf(ca, "Unit")) | |
327 | 312 | then unit | |
328 | 313 | else throw("Match error") | |
329 | 314 | } | |
330 | 315 | ||
331 | 316 | ||
332 | - | func | |
333 | - | let | |
334 | - | if ($isInstanceOf( | |
317 | + | func cc () = { | |
318 | + | let ca = getString(aC()) | |
319 | + | if ($isInstanceOf(ca, "String")) | |
335 | 320 | then { | |
336 | - | let | |
337 | - | fromBase58String( | |
321 | + | let cb = ca | |
322 | + | fromBase58String(cb) | |
338 | 323 | } | |
339 | - | else if ($isInstanceOf( | |
324 | + | else if ($isInstanceOf(ca, "Unit")) | |
340 | 325 | then unit | |
341 | 326 | else throw("Match error") | |
342 | 327 | } | |
343 | 328 | ||
344 | 329 | ||
345 | - | func | |
346 | - | let | |
347 | - | let | |
348 | - | if ($isInstanceOf( | |
330 | + | func cd (ce) = { | |
331 | + | let cf = throw("Permission denied") | |
332 | + | let ca = bZ() | |
333 | + | if ($isInstanceOf(ca, "ByteVector")) | |
349 | 334 | then { | |
350 | - | let | |
351 | - | if (( | |
335 | + | let cg = ca | |
336 | + | if ((ce.callerPublicKey == cg)) | |
352 | 337 | then true | |
353 | - | else | |
338 | + | else cf | |
354 | 339 | } | |
355 | - | else if ($isInstanceOf( | |
356 | - | then if (( | |
340 | + | else if ($isInstanceOf(ca, "Unit")) | |
341 | + | then if ((ce.caller == this)) | |
357 | 342 | then true | |
358 | - | else | |
343 | + | else cf | |
359 | 344 | else throw("Match error") | |
360 | 345 | } | |
361 | 346 | ||
362 | 347 | ||
363 | - | @Callable( | |
348 | + | @Callable(ce) | |
364 | 349 | func constructor (D,E,F,G,k,K,M) = { | |
365 | 350 | let H = ((100 * 1000) * 1000) | |
366 | - | let | |
351 | + | let ch = (D + E) | |
367 | 352 | if (isDefined(getString(ad()))) | |
368 | 353 | then throw("already initialized") | |
369 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
354 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(ce.caller))) | |
370 | 355 | then throw("not authorized") | |
371 | - | else if ((size( | |
356 | + | else if ((size(ce.payments) != 1)) | |
372 | 357 | then throw("exactly 1 payment must be attached") | |
373 | - | else if (( | |
358 | + | else if ((ch >= F)) | |
374 | 359 | then throw("claimStart must be greater than idoEnd") | |
375 | 360 | else { | |
376 | - | let | |
377 | - | let bc = value( | |
378 | - | let | |
361 | + | let ci = value(ce.payments[0]) | |
362 | + | let bc = value(ci.assetId) | |
363 | + | let cj = valueOrErrorMessage(assetInfo(bc), "fail to load ido asset info") | |
379 | 364 | let I = toBase58String(bc) | |
380 | - | let J = pow(10, 0, | |
365 | + | let J = pow(10, 0, cj.decimals, 0, 0, DOWN) | |
381 | 366 | let bd = fromBase58String(K) | |
382 | - | let | |
383 | - | let L = pow(10, 0, | |
384 | - | let | |
385 | - | let | |
386 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
367 | + | let ck = valueOrErrorMessage(assetInfo(bd), "fail to load price asset info") | |
368 | + | let L = pow(10, 0, ck.decimals, 0, 0, DOWN) | |
369 | + | let cl = aG() | |
370 | + | let cm = [0, 0, 0, 0] | |
371 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, ci.amount)), aN(ag(), cl, cm, F)] | |
387 | 372 | } | |
388 | 373 | } | |
389 | 374 | ||
390 | 375 | ||
391 | 376 | ||
392 | - | @Callable( | |
377 | + | @Callable(ce) | |
393 | 378 | func invest () = { | |
394 | 379 | let ba = aD() | |
395 | 380 | let D = parseIntValue(ba[r]) | |
396 | 381 | let E = parseIntValue(ba[s]) | |
397 | - | let | |
382 | + | let ch = (D + E) | |
398 | 383 | let F = parseIntValue(ba[t]) | |
399 | 384 | let G = parseIntValue(ba[u]) | |
400 | 385 | let k = parseIntValue(ba[v]) | |
401 | 386 | let H = parseIntValue(ba[w]) | |
402 | 387 | let I = ba[x] | |
403 | 388 | let bc = fromBase58String(I) | |
404 | 389 | let J = parseIntValue(ba[y]) | |
405 | 390 | let K = ba[z] | |
406 | 391 | let bd = fromBase58String(K) | |
407 | 392 | let L = parseIntValue(ba[A]) | |
408 | - | let | |
409 | - | let af = toString( | |
393 | + | let cn = parseIntValue(ba[B]) | |
394 | + | let af = toString(ce.caller) | |
410 | 395 | if ((D > height)) | |
411 | 396 | then throw("ido has not been started yet") | |
412 | - | else if ((height > | |
397 | + | else if ((height > ch)) | |
413 | 398 | then throw("ido has been already ended") | |
414 | - | else if ((size( | |
399 | + | else if ((size(ce.payments) != 1)) | |
415 | 400 | then throw("exactly 1 payment is expected") | |
416 | 401 | else { | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | if (( | |
421 | - | then throw((("invalid payment asset id: " + toBase58String( | |
402 | + | let ci = value(ce.payments[0]) | |
403 | + | let co = value(ci.assetId) | |
404 | + | let cp = ci.amount | |
405 | + | if ((co != bd)) | |
406 | + | then throw((("invalid payment asset id: " + toBase58String(co)) + " is expected")) | |
422 | 407 | else { | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | if (( | |
408 | + | let cq = aH(af) | |
409 | + | let cl = aG() | |
410 | + | let cr = (parseIntValue(cl[P]) + cp) | |
411 | + | let cs = (cr * 100) | |
412 | + | if ((cs > assetBalance(this, bc))) | |
428 | 413 | then throw("IDO asset has been - sold consider to use smaller payment") | |
429 | 414 | else { | |
430 | - | let | |
431 | - | [aN(ae(af), | |
415 | + | let cm = [cp, cp, 0, 0] | |
416 | + | [aN(ae(af), cq, cm, F), aN(ag(), cl, cm, F), aV(af, cp, 0, ce.transactionId)] | |
432 | 417 | } | |
433 | 418 | } | |
434 | 419 | } | |
435 | 420 | } | |
436 | 421 | ||
437 | 422 | ||
438 | 423 | ||
439 | - | @Callable( | |
424 | + | @Callable(ce) | |
440 | 425 | func claim (aZ,be) = { | |
441 | - | let | |
442 | - | if ((be != | |
426 | + | let ct = toString(ce.caller) | |
427 | + | if ((be != ct)) | |
443 | 428 | then throw("not authorized") | |
444 | 429 | else { | |
445 | 430 | let ba = aD() | |
446 | 431 | let K = ba[z] | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let bf = | |
452 | - | let bj = | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
432 | + | let cu = aY(aZ, ce.caller, ce.transactionId) | |
433 | + | let cm = cu._1 | |
434 | + | let br = cu._2 | |
435 | + | let cv = cu._3 | |
436 | + | let bf = cu._4 | |
437 | + | let bj = cu._5 | |
438 | + | let cw = cm[aL] | |
439 | + | let cx = cm[aM] | |
440 | + | let cy = if ((aZ == K)) | |
456 | 441 | then { | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
442 | + | let cz = bq(K, be, br, cm[aL]) | |
443 | + | let bL = cz._1 | |
444 | + | let bI = cz._2 | |
445 | + | let bJ = cz._3 | |
446 | + | let bs = cz._4 | |
447 | + | let bM = cz._5 | |
448 | + | let bX = cz._6 | |
449 | + | let bY = cz._7 | |
450 | + | let bC = cz._8 | |
451 | + | let bD = cz._9 | |
452 | + | let bE = cz._10 | |
453 | + | let bp = [if ((bL > 0)) | |
469 | 454 | then true | |
470 | - | else f(makeString(["nothing to claim", toString( | |
455 | + | else f(makeString(["nothing to claim", toString(bL), toString(bI), toString(bJ), toString(bs), toString(bM), toString(bX), toString(bY), toString(bC), toString(bD), toString(bE)], c)), if ((bJ > 0)) | |
471 | 456 | then true | |
472 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
457 | + | else f("unavailable to claim because user period allowance reached"), if ((bI > 0)) | |
473 | 458 | then true | |
474 | - | else f("unavailable to claim because total period allowance reached"), if (( | |
459 | + | else f("unavailable to claim because total period allowance reached"), if ((bM > bX)) | |
475 | 460 | then true | |
476 | 461 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
477 | - | if (( | |
462 | + | if ((bp == bp)) | |
478 | 463 | then { | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | then [ScriptTransfer( | |
464 | + | let bK = valueOrElse(getInteger(az(be)), 0) | |
465 | + | let cA = (bI - bL) | |
466 | + | let cB = (bJ - bL) | |
467 | + | let cy = if ((bK >= bL)) | |
468 | + | then [ScriptTransfer(ce.caller, bL, cv), IntegerEntry(az(be), (bK - bL))] | |
484 | 469 | else { | |
485 | - | let | |
486 | - | [ScriptTransfer( | |
470 | + | let cC = ((bK + br) - bL) | |
471 | + | [ScriptTransfer(ce.caller, bL, cv), aN(ae(be), bf, cm, bj), aN(ag(), aG(), cm, bj), IntegerEntry(az(be), cC)] | |
487 | 472 | } | |
488 | - | $Tuple2(([IntegerEntry(an(), | |
473 | + | $Tuple2(([IntegerEntry(an(), bC), IntegerEntry(ao(bC), bD), IntegerEntry(aq(bC), bE), IntegerEntry(av(K, bC), cA), IntegerEntry(aw(K, bC, be), cB), aX(be, bL, cx, ce.transactionId)] ++ cy), unit) | |
489 | 474 | } | |
490 | 475 | else throw("Strict value is not equal to itself.") | |
491 | 476 | } | |
492 | - | else $Tuple2([ScriptTransfer( | |
493 | - | | |
477 | + | else $Tuple2([ScriptTransfer(ce.caller, br, cv), aN(ae(be), bf, cm, bj), aN(ag(), aG(), cm, bj), aX(be, cw, cx, ce.transactionId)], unit) | |
478 | + | cy | |
494 | 479 | } | |
495 | 480 | } | |
496 | 481 | ||
497 | 482 | ||
498 | 483 | ||
499 | - | @Callable( | |
484 | + | @Callable(ce) | |
500 | 485 | func claimREADONLY (aZ,be) = { | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let bf = | |
506 | - | let bj = | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | $Tuple2(nil, makeString(["%s%d%d", be, toString( | |
486 | + | let cu = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
487 | + | let cm = cu._1 | |
488 | + | let br = cu._2 | |
489 | + | let cv = cu._3 | |
490 | + | let bf = cu._4 | |
491 | + | let bj = cu._5 | |
492 | + | let cD = cu._6 | |
493 | + | let cE = cD[0] | |
494 | + | let cF = cD[1] | |
495 | + | $Tuple2(nil, makeString(["%s%d%d", be, toString(cE), toString(cF)], c)) | |
511 | 496 | } | |
512 | 497 | ||
513 | 498 | ||
514 | 499 | ||
515 | - | @Callable( | |
500 | + | @Callable(ce) | |
516 | 501 | func claimV2READONLY (aZ,be) = { | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let bf = | |
522 | - | let bj = | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
502 | + | let cu = aY(aZ, addressFromStringValue(be), fromBase58String("")) | |
503 | + | let cm = cu._1 | |
504 | + | let br = cu._2 | |
505 | + | let cv = cu._3 | |
506 | + | let bf = cu._4 | |
507 | + | let bj = cu._5 | |
508 | + | let cD = cu._6 | |
509 | + | let cE = cD[0] | |
510 | + | let cF = cD[1] | |
526 | 511 | let ba = aD() | |
527 | 512 | let K = ba[z] | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
513 | + | let cG = bq(K, be, br, cm[aL]) | |
514 | + | let bL = cG._1 | |
515 | + | let bI = cG._2 | |
516 | + | let bJ = cG._3 | |
517 | + | let bs = cG._4 | |
518 | + | let bM = cG._5 | |
519 | + | let bX = cG._6 | |
520 | + | let bY = cG._7 | |
521 | + | let bC = cG._8 | |
522 | + | let bD = cG._9 | |
523 | + | let bE = cG._10 | |
524 | + | let cH = value(getInteger(aq(bC))) | |
525 | + | let cI = if ((height > cH)) | |
541 | 526 | then { | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | makeString(["%d%d%d%d%d%d", toString( | |
527 | + | let cJ = value(getInteger(am())) | |
528 | + | let cK = value(getInteger(au(K))) | |
529 | + | let cL = value(getInteger(as(K))) | |
530 | + | makeString(["%d%d%d%d%d%d", toString(cF), toString(cK), toString(cL), toString(bM), toString(bX), toString(cJ)], c) | |
546 | 531 | } | |
547 | - | else makeString(["%d%d%d%d%d%d", toString( | |
548 | - | $Tuple2(nil, | |
532 | + | else makeString(["%d%d%d%d%d%d", toString(cF), toString(bL), toString(bI), toString(bM), toString(bX), toString(bY)], c) | |
533 | + | $Tuple2(nil, cI) | |
549 | 534 | } | |
550 | 535 | ||
551 | 536 | ||
552 | 537 | ||
553 | - | @Callable( | |
554 | - | func setManager ( | |
555 | - | let | |
556 | - | if (( | |
538 | + | @Callable(ce) | |
539 | + | func setManager (cM) = { | |
540 | + | let cN = cd(ce) | |
541 | + | if ((cN == cN)) | |
557 | 542 | then { | |
558 | - | let | |
559 | - | if (( | |
560 | - | then [StringEntry(aC(), | |
543 | + | let cO = fromBase58String(cM) | |
544 | + | if ((cO == cO)) | |
545 | + | then [StringEntry(aC(), cM)] | |
561 | 546 | else throw("Strict value is not equal to itself.") | |
562 | 547 | } | |
563 | 548 | else throw("Strict value is not equal to itself.") | |
564 | 549 | } | |
565 | 550 | ||
566 | 551 | ||
567 | 552 | ||
568 | - | @Callable( | |
553 | + | @Callable(ce) | |
569 | 554 | func confirmManager () = { | |
570 | - | let | |
571 | - | let | |
555 | + | let cP = cc() | |
556 | + | let cQ = if (isDefined(cP)) | |
572 | 557 | then true | |
573 | 558 | else throw("No pending manager") | |
574 | - | if (( | |
559 | + | if ((cQ == cQ)) | |
575 | 560 | then { | |
576 | - | let | |
561 | + | let cR = if ((ce.callerPublicKey == value(cP))) | |
577 | 562 | then true | |
578 | 563 | else throw("You are not pending manager") | |
579 | - | if (( | |
580 | - | then [StringEntry(aB(), toBase58String(value( | |
564 | + | if ((cR == cR)) | |
565 | + | then [StringEntry(aB(), toBase58String(value(cP))), DeleteEntry(aC())] | |
581 | 566 | else throw("Strict value is not equal to itself.") | |
582 | 567 | } | |
583 | 568 | else throw("Strict value is not equal to itself.") | |
584 | 569 | } | |
585 | 570 | ||
586 | 571 | ||
587 | - | @Verifier( | |
588 | - | func | |
589 | - | let | |
590 | - | let | |
591 | - | if ($isInstanceOf( | |
572 | + | @Verifier(cS) | |
573 | + | func cT () = { | |
574 | + | let cU = { | |
575 | + | let ca = bZ() | |
576 | + | if ($isInstanceOf(ca, "ByteVector")) | |
592 | 577 | then { | |
593 | - | let | |
594 | - | | |
578 | + | let cg = ca | |
579 | + | cg | |
595 | 580 | } | |
596 | - | else if ($isInstanceOf( | |
597 | - | then | |
581 | + | else if ($isInstanceOf(ca, "Unit")) | |
582 | + | then cS.senderPublicKey | |
598 | 583 | else throw("Match error") | |
599 | 584 | } | |
600 | - | sigVerify( | |
585 | + | sigVerify(cS.bodyBytes, cS.proofs[0], cU) | |
601 | 586 | } | |
602 | 587 |
github/deemru/w8io/026f985 148.92 ms ◑