tx · 7qFDXcHWAiZ2sArHHUKhCP5jESgXKc85pWWV1Cjphwmi

3MrfwTQPjiMpon8KZcJjatDLHbWNwVyadKE:  -0.02600000 Waves

2022.11.03 20:32 [2301229] smart account 3MrfwTQPjiMpon8KZcJjatDLHbWNwVyadKE > SELF 0.00000000 Waves

{ "type": 13, "id": "7qFDXcHWAiZ2sArHHUKhCP5jESgXKc85pWWV1Cjphwmi", "fee": 2600000, "feeAssetId": null, "timestamp": 1667496783693, "version": 1, "sender": "3MrfwTQPjiMpon8KZcJjatDLHbWNwVyadKE", "senderPublicKey": "6bj3L3GyaTejhux59f2iQkvXJZ9hAukkWN67hi3X8ND4", "proofs": [ "2ZYKvzwTnHJU7TdoTcbi3ofZAudVua69Vt29zV5k7wZJeNw5GbdUXLJLbXwKPMmxavZtgBbUkBMtgcuuRfuSYy4F" ], "script": "base64:AAIFAAAAAAAAD0QIAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmljZUFzc2V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ALU3RyaW5nRW50cnkAAAACCQEAAAACYUIAAAAACQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEFAAAAAmNWCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAJhQwAAAAAFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJjWQEAAAACY1oAAAAABAAAAAJkYQQAAAACY2QJAQAAAAJjYwAAAAADCQAAAQAAAAIFAAAAAmNkAgAAAApCeXRlVmVjdG9yBAAAAAJjagUAAAACY2QFAAAAAmNqAwkAAAEAAAACBQAAAAJjZAIAAAAEVW5pdAgFAAAAAmNZAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACY1kAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJjWQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmRhySuB/A==", "chainId": 84, "height": 2301229, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AqDVioR45UBkR19ZdTuh7LWhP5CxejjGpWaVmaJA1yhX Next: Ff5XqoKG2NoK8jnrHmyPLbrJ4Shnw3Uo8J6XAj5pFDRD Diff:
OldNewDifferences
160160 let Z = parseIntValue(aO[T])
161161 let aS = (V + aP[aJ])
162162 let aT = (W + aP[aK])
163- let aU = ((X + aP[aL]) - aR)
164- let aV = ((Y + aP[aM]) + aR)
163+ let aU = aD()
164+ let K = aU[z]
165+ let aV = value(assetInfo(fromBase58String(K))).decimals
166+ let aW = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN))
167+ let aX = ((X + aP[aL]) - aR)
168+ let aY = ((Y + aP[aM]) + aW)
165169 if ((0 > aT))
166170 then throw("invalid math")
167- else StringEntry(b, aa(aS, aT, aU, aV, aQ))
171+ else StringEntry(b, aa(aS, aT, aX, aY, aQ))
168172 }
169173
170174
171-func aW (af,i,ac,aX) = StringEntry(ah("invest", af, toBase58String(aX)), ab(i, ac))
175+func aZ (af,i,ac,ba) = StringEntry(ah("invest", af, toBase58String(ba)), ab(i, ac))
172176
173177
174-func aY (af,i,ac,aX) = StringEntry(ah("claim", af, toBase58String(aX)), ab(i, ac))
178+func bb (af,i,ac,ba) = StringEntry(ah("claim", af, toBase58String(ba)), ab(i, ac))
175179
176180
177-func aZ (ba,af,aX) = {
178- let bb = aD()
179- let F = parseIntValue(bb[t])
180- let G = parseIntValue(bb[u])
181- let bc = (F + G)
182- let k = parseIntValue(bb[v])
183- let H = parseIntValue(bb[w])
184- let I = bb[x]
185- let bd = fromBase58String(I)
186- let J = parseIntValue(bb[y])
187- let K = bb[z]
188- let be = fromBase58String(K)
189- let L = parseIntValue(bb[A])
190- let bf = toString(af)
191- let bg = aI(bf)
192- let bh = parseIntValue(bg[P])
193- let bi = parseIntValue(bg[T])
194- let bj = if ((F >= bi))
181+func bc (bd,af,ba) = {
182+ let aU = aD()
183+ let F = parseIntValue(aU[t])
184+ let G = parseIntValue(aU[u])
185+ let be = (F + G)
186+ let k = parseIntValue(aU[v])
187+ let H = parseIntValue(aU[w])
188+ let I = aU[x]
189+ let bf = fromBase58String(I)
190+ let J = parseIntValue(aU[y])
191+ let K = aU[z]
192+ let bg = fromBase58String(K)
193+ let L = parseIntValue(aU[A])
194+ let bh = toString(af)
195+ let bi = aI(bh)
196+ let bj = parseIntValue(bi[P])
197+ let bk = parseIntValue(bi[T])
198+ let bl = if ((F >= bk))
195199 then F
196- else bi
197- let bk = if ((height > bc))
198- then bc
200+ else bk
201+ let bm = if ((height > be))
202+ then be
199203 else if ((F > height))
200204 then F
201205 else height
202- let bl = (bk - bj)
203- let bm = fraction(bh, bl, G)
204- let bn = h(bm, L, k, H, J)
205- let bo = (ba == K)
206- let bp = valueOrElse(getBoolean(ak()), false)
207- let bq = [if (!(if (bo)
208- then bp
206+ let bn = (bm - bl)
207+ let bo = fraction(bj, bn, G)
208+ let bp = h(bo, L, k, H, J)
209+ let bq = (bd == K)
210+ let br = valueOrElse(getBoolean(ak()), false)
211+ let bs = [if (!(if (bq)
212+ then br
209213 else false))
210214 then true
211215 else throw("USDN claim is disabled")]
212- if ((bq == bq))
213- then if ((ba == K))
214- then $Tuple6([0, -(bm), bm, 0], bm, be, bg, bk, [bm, bn])
215- else if ((ba == I))
216- then $Tuple6([0, -(bm), 0, bn], bn, bd, bg, bk, [bm, bn])
217- else throw(("unsupported assetId: " + ba))
216+ if ((bs == bs))
217+ then if ((bd == K))
218+ then $Tuple6([0, -(bo), bo, 0], bo, bg, bi, bm, [bo, bp])
219+ else if ((bd == I))
220+ then $Tuple6([0, -(bo), 0, bp], bp, bf, bi, bm, [bo, bp])
221+ else throw(("unsupported assetId: " + bd))
218222 else throw("Strict value is not equal to itself.")
219223 }
220224
221225
222-func br (K,bf,bs,bt) = {
223- let bu = value(getInteger(as(K)))
224- let bv = value(getInteger(au(K)))
225- let bw = value(getInteger(am()))
226- let bx = valueOrElse(getInteger(an()), 0)
227- let by = isDefined(getInteger(aq(0)))
228- let bz = if ((bx > 0))
226+func bt (K,bh,bu,bv) = {
227+ let bw = value(getInteger(as(K)))
228+ let bx = value(getInteger(au(K)))
229+ let by = value(getInteger(am()))
230+ let bz = valueOrElse(getInteger(an()), 0)
231+ let bA = isDefined(getInteger(aq(0)))
232+ let bB = if ((bz > 0))
229233 then {
230- let bA = value(getInteger(ao(bx)))
231- let bB = value(getInteger(aq(bx)))
232- let bC = if ((height > bB))
234+ let bC = value(getInteger(ao(bz)))
235+ let bD = value(getInteger(aq(bz)))
236+ let bE = if ((height > bD))
233237 then {
234- let bD = (bx + 1)
235- let bE = if ((height > (bB + bw)))
238+ let bF = (bz + 1)
239+ let bG = if ((height > (bD + by)))
236240 then {
237- let bF = ((height - bB) % bw)
238- if ((bF == 0))
239- then ((height - bw) + 1)
240- else (height - bF)
241+ let bH = ((height - bD) % by)
242+ if ((bH == 0))
243+ then ((height - by) + 1)
244+ else (height - bH)
241245 }
242- else (bB + 1)
243- let bG = ((bE + bw) - 1)
244- $Tuple3(bD, bE, bG)
246+ else (bD + 1)
247+ let bI = ((bG + by) - 1)
248+ $Tuple3(bF, bG, bI)
245249 }
246- else $Tuple3(bx, bA, bB)
247- let bD = bC._1
248- let bE = bC._2
249- let bG = bC._3
250- $Tuple3(bD, bE, bG)
250+ else $Tuple3(bz, bC, bD)
251+ let bF = bE._1
252+ let bG = bE._2
253+ let bI = bE._3
254+ $Tuple3(bF, bG, bI)
251255 }
252- else if (by)
256+ else if (bA)
253257 then {
254- let bH = value(getInteger(ao(0)))
255- let bI = value(getInteger(aq(0)))
256- let bJ = if ((height > bI))
258+ let bJ = value(getInteger(ao(0)))
259+ let bK = value(getInteger(aq(0)))
260+ let bL = if ((height > bK))
257261 then {
258- let bD = (bx + 1)
259- let bE = (bI + 1)
260- let bG = ((bE + bw) - 1)
261- $Tuple3(bD, bE, bG)
262+ let bF = (bz + 1)
263+ let bG = (bK + 1)
264+ let bI = ((bG + by) - 1)
265+ $Tuple3(bF, bG, bI)
262266 }
263- else $Tuple3(bx, bH, bI)
264- let bD = bJ._1
265- let bE = bJ._2
266- let bG = bJ._3
267- $Tuple3(bD, bE, bG)
267+ else $Tuple3(bz, bJ, bK)
268+ let bF = bL._1
269+ let bG = bL._2
270+ let bI = bL._3
271+ $Tuple3(bF, bG, bI)
268272 }
269- else $Tuple3(bx, valueOrElse(getInteger(ao(bx)), height), valueOrElse(getInteger(aq(bx)), ((height + bw) - 1)))
270- let bD = bz._1
271- let bE = bz._2
272- let bG = bz._3
273- let bK = valueOrElse(getInteger(av(K, bD)), bu)
274- let bL = valueOrElse(getInteger(aw(K, bD, bf)), bv)
275- let aR = valueOrElse(getInteger(az(bf)), 0)
276- let bM = min([(bs + aR), bK, bL])
277- let bN = value(getInteger(ar()))
278- let bO = e
279- let bP = {
280- let bQ = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bO, K], nil)
281- if ($isInstanceOf(bQ, "(Int, Int, Int)"))
282- then bQ
273+ else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1)))
274+ let bF = bB._1
275+ let bG = bB._2
276+ let bI = bB._3
277+ let bM = valueOrElse(getInteger(av(K, bF)), bw)
278+ let bN = valueOrElse(getInteger(aw(K, bF, bh)), bx)
279+ let aR = valueOrElse(getInteger(az(bh)), 0)
280+ let bO = min([(bu + aR), bM, bN])
281+ let bP = value(getInteger(ar()))
282+ let bQ = e
283+ let bR = {
284+ let bS = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bQ, K], nil)
285+ if ($isInstanceOf(bS, "(Int, Int, Int)"))
286+ then bS
283287 else throw("Couldn't cast Any to (Int, Int, Int)")
284288 }
285- if ((bP == bP))
289+ if ((bR == bR))
286290 then {
287- let bR = bP._3
288- let bS = bP._2
289- let bT = bP._1
290- let bU = value(getString(ay()))
291- let bV = {
292- let bQ = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bU, bT], nil)
293- if ($isInstanceOf(bQ, "(Int, Int)"))
294- then bQ
291+ let bT = bR._3
292+ let bU = bR._2
293+ let bV = bR._1
294+ let bW = value(getString(ay()))
295+ let bX = {
296+ let bS = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bW, bV], nil)
297+ if ($isInstanceOf(bS, "(Int, Int)"))
298+ then bS
295299 else throw("Couldn't cast Any to (Int, Int)")
296300 }
297- if ((bV == bV))
301+ if ((bX == bX))
298302 then {
299- let bW = bV._2
300- let bX = bV._1
301- let bY = fraction(bX, bO, e)
302- let bZ = (bG - height)
303- $Tuple10(bM, bK, bL, bt, bN, bY, bZ, bD, bE, bG)
303+ let bY = bX._2
304+ let bZ = bX._1
305+ let ca = fraction(bZ, bQ, e)
306+ let cb = (bI - height)
307+ $Tuple10(bO, bM, bN, bv, bP, ca, cb, bF, bG, bI)
304308 }
305309 else throw("Strict value is not equal to itself.")
306310 }
308312 }
309313
310314
311-func ca () = {
312- let cb = getString(aB())
313- if ($isInstanceOf(cb, "String"))
315+func cc () = {
316+ let cd = getString(aB())
317+ if ($isInstanceOf(cd, "String"))
314318 then {
315- let cc = cb
316- fromBase58String(cc)
319+ let ce = cd
320+ fromBase58String(ce)
317321 }
318- else if ($isInstanceOf(cb, "Unit"))
322+ else if ($isInstanceOf(cd, "Unit"))
319323 then unit
320324 else throw("Match error")
321325 }
322326
323327
324-func cd () = {
325- let cb = getString(aC())
326- if ($isInstanceOf(cb, "String"))
328+func cf () = {
329+ let cd = getString(aC())
330+ if ($isInstanceOf(cd, "String"))
327331 then {
328- let cc = cb
329- fromBase58String(cc)
332+ let ce = cd
333+ fromBase58String(ce)
330334 }
331- else if ($isInstanceOf(cb, "Unit"))
335+ else if ($isInstanceOf(cd, "Unit"))
332336 then unit
333337 else throw("Match error")
334338 }
335339
336340
337-func ce (cf) = {
338- let cg = throw("Permission denied")
339- let cb = ca()
340- if ($isInstanceOf(cb, "ByteVector"))
341+func cg (ch) = {
342+ let ci = throw("Permission denied")
343+ let cd = cc()
344+ if ($isInstanceOf(cd, "ByteVector"))
341345 then {
342- let ch = cb
343- if ((cf.callerPublicKey == ch))
346+ let cj = cd
347+ if ((ch.callerPublicKey == cj))
344348 then true
345- else cg
349+ else ci
346350 }
347- else if ($isInstanceOf(cb, "Unit"))
348- then if ((cf.caller == this))
351+ else if ($isInstanceOf(cd, "Unit"))
352+ then if ((ch.caller == this))
349353 then true
350- else cg
354+ else ci
351355 else throw("Match error")
352356 }
353357
354358
355-@Callable(cf)
359+@Callable(ch)
356360 func constructor (D,E,F,G,k,K,M) = {
357361 let H = ((100 * 1000) * 1000)
358- let ci = (D + E)
362+ let ck = (D + E)
359363 if (isDefined(getString(ad())))
360364 then throw("already initialized")
361- else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(cf.caller)))
365+ else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(ch.caller)))
362366 then throw("not authorized")
363- else if ((size(cf.payments) != 1))
367+ else if ((size(ch.payments) != 1))
364368 then throw("exactly 1 payment must be attached")
365- else if ((ci >= F))
369+ else if ((ck >= F))
366370 then throw("claimStart must be greater than idoEnd")
367371 else {
368- let cj = value(cf.payments[0])
369- let bd = value(cj.assetId)
370- let ck = valueOrErrorMessage(assetInfo(bd), "fail to load ido asset info")
371- let I = toBase58String(bd)
372- let J = pow(10, 0, ck.decimals, 0, 0, DOWN)
373- let be = fromBase58String(K)
374- let cl = valueOrErrorMessage(assetInfo(be), "fail to load price asset info")
375- let L = pow(10, 0, cl.decimals, 0, 0, DOWN)
376- let cm = aG()
377- let cn = [0, 0, 0, 0]
378-[StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cj.amount)), aN(ag(), cm, cn, F, 0)]
372+ let cl = value(ch.payments[0])
373+ let bf = value(cl.assetId)
374+ let cm = valueOrErrorMessage(assetInfo(bf), "fail to load ido asset info")
375+ let I = toBase58String(bf)
376+ let J = pow(10, 0, cm.decimals, 0, 0, DOWN)
377+ let bg = fromBase58String(K)
378+ let cn = valueOrErrorMessage(assetInfo(bg), "fail to load price asset info")
379+ let L = pow(10, 0, cn.decimals, 0, 0, DOWN)
380+ let co = aG()
381+ let cp = [0, 0, 0, 0]
382+[StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cl.amount)), aN(ag(), co, cp, F, 0)]
379383 }
380384 }
381385
382386
383387
384-@Callable(cf)
388+@Callable(ch)
385389 func invest () = {
386- let bb = aD()
387- let D = parseIntValue(bb[r])
388- let E = parseIntValue(bb[s])
389- let ci = (D + E)
390- let F = parseIntValue(bb[t])
391- let G = parseIntValue(bb[u])
392- let k = parseIntValue(bb[v])
393- let H = parseIntValue(bb[w])
394- let I = bb[x]
395- let bd = fromBase58String(I)
396- let J = parseIntValue(bb[y])
397- let K = bb[z]
398- let be = fromBase58String(K)
399- let L = parseIntValue(bb[A])
400- let co = parseIntValue(bb[B])
401- let af = toString(cf.caller)
390+ let aU = aD()
391+ let D = parseIntValue(aU[r])
392+ let E = parseIntValue(aU[s])
393+ let ck = (D + E)
394+ let F = parseIntValue(aU[t])
395+ let G = parseIntValue(aU[u])
396+ let k = parseIntValue(aU[v])
397+ let H = parseIntValue(aU[w])
398+ let I = aU[x]
399+ let bf = fromBase58String(I)
400+ let J = parseIntValue(aU[y])
401+ let K = aU[z]
402+ let bg = fromBase58String(K)
403+ let L = parseIntValue(aU[A])
404+ let cq = parseIntValue(aU[B])
405+ let af = toString(ch.caller)
402406 if ((D > height))
403407 then throw("ido has not been started yet")
404- else if ((height > ci))
408+ else if ((height > ck))
405409 then throw("ido has been already ended")
406- else if ((size(cf.payments) != 1))
410+ else if ((size(ch.payments) != 1))
407411 then throw("exactly 1 payment is expected")
408412 else {
409- let cj = value(cf.payments[0])
410- let cp = value(cj.assetId)
411- let cq = cj.amount
412- if ((cp != be))
413- then throw((("invalid payment asset id: " + toBase58String(cp)) + " is expected"))
413+ let cl = value(ch.payments[0])
414+ let cr = value(cl.assetId)
415+ let cs = cl.amount
416+ if ((cr != bg))
417+ then throw((("invalid payment asset id: " + toBase58String(cr)) + " is expected"))
414418 else {
415- let cr = aH(af)
416- let cm = aG()
417- let cs = (parseIntValue(cm[P]) + cq)
418- let ct = (cs * 100)
419- if ((ct > assetBalance(this, bd)))
419+ let ct = aH(af)
420+ let co = aG()
421+ let cu = (parseIntValue(co[P]) + cs)
422+ let cv = (cu * 100)
423+ if ((cv > assetBalance(this, bf)))
420424 then throw("IDO asset has been - sold consider to use smaller payment")
421425 else {
422- let cn = [cq, cq, 0, 0]
423-[aN(ae(af), cr, cn, F, 0), aN(ag(), cm, cn, F, 0), aW(af, cq, 0, cf.transactionId)]
426+ let cp = [cs, cs, 0, 0]
427+[aN(ae(af), ct, cp, F, 0), aN(ag(), co, cp, F, 0), aZ(af, cs, 0, ch.transactionId)]
424428 }
425429 }
426430 }
428432
429433
430434
431-@Callable(cf)
432-func claim (ba,bf) = {
433- let cu = toString(cf.caller)
434- if ((bf != cu))
435+@Callable(ch)
436+func claim (bd,bh) = {
437+ let cw = toString(ch.caller)
438+ if ((bh != cw))
435439 then throw("not authorized")
436440 else {
437- let bb = aD()
438- let K = bb[z]
439- let cv = aZ(ba, cf.caller, cf.transactionId)
440- let cn = cv._1
441- let bs = cv._2
442- let cw = cv._3
443- let bg = cv._4
444- let bk = cv._5
445- let cx = cn[aL]
446- let cy = cn[aM]
447- let aR = valueOrElse(getInteger(az(bf)), 0)
448- let cz = if ((ba == K))
441+ let aU = aD()
442+ let K = aU[z]
443+ let cx = bc(bd, ch.caller, ch.transactionId)
444+ let cp = cx._1
445+ let bu = cx._2
446+ let cy = cx._3
447+ let bi = cx._4
448+ let bm = cx._5
449+ let cz = cp[aL]
450+ let cA = cp[aM]
451+ let aR = valueOrElse(getInteger(az(bh)), 0)
452+ let cB = if ((bd == K))
449453 then {
450- let cA = br(K, bf, bs, cn[aL])
451- let bM = cA._1
452- let bK = cA._2
453- let bL = cA._3
454- let bt = cA._4
455- let bN = cA._5
456- let bY = cA._6
457- let bZ = cA._7
458- let bD = cA._8
459- let bE = cA._9
460- let bG = cA._10
461- let bq = [if ((bL > 0))
454+ let cC = bt(K, bh, bu, cp[aL])
455+ let bO = cC._1
456+ let bM = cC._2
457+ let bN = cC._3
458+ let bv = cC._4
459+ let bP = cC._5
460+ let ca = cC._6
461+ let cb = cC._7
462+ let bF = cC._8
463+ let bG = cC._9
464+ let bI = cC._10
465+ let bs = [if ((bN > 0))
462466 then true
463- else f("unavailable to claim because user period allowance reached"), if ((bK > 0))
467+ else f("unavailable to claim because user period allowance reached"), if ((bM > 0))
464468 then true
465- else f("unavailable to claim because total period allowance reached"), if ((bM > 0))
469+ else f("unavailable to claim because total period allowance reached"), if ((bO > 0))
466470 then true
467- else f("nothing to claim"), if ((bN > bY))
471+ else f("nothing to claim"), if ((bP > ca))
468472 then true
469473 else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")]
470- if ((bq == bq))
474+ if ((bs == bs))
471475 then {
472- let cB = (bK - bM)
473- let cC = (bL - bM)
474- let cz = if ((aR >= bM))
475- then [ScriptTransfer(cf.caller, bM, cw), IntegerEntry(az(bf), (aR - bM))]
476+ let cD = (bM - bO)
477+ let cE = (bN - bO)
478+ let cB = if ((aR >= bO))
479+ then [ScriptTransfer(ch.caller, bO, cy), IntegerEntry(az(bh), (aR - bO))]
476480 else {
477- let cD = ((aR + bs) - bM)
478-[ScriptTransfer(cf.caller, bM, cw), aN(ae(bf), bg, cn, bk, 0), aN(ag(), aG(), cn, bk, 0), IntegerEntry(az(bf), cD)]
481+ let cF = ((aR + bu) - bO)
482+[ScriptTransfer(ch.caller, bO, cy), aN(ae(bh), bi, cp, bm, 0), aN(ag(), aG(), cp, bm, 0), IntegerEntry(az(bh), cF)]
479483 }
480- $Tuple2(([IntegerEntry(an(), bD), IntegerEntry(ao(bD), bE), IntegerEntry(aq(bD), bG), IntegerEntry(av(K, bD), cB), IntegerEntry(aw(K, bD, bf), cC), aY(bf, bM, cy, cf.transactionId)] ++ cz), unit)
484+ $Tuple2(([IntegerEntry(an(), bF), IntegerEntry(ao(bF), bG), IntegerEntry(aq(bF), bI), IntegerEntry(av(K, bF), cD), IntegerEntry(aw(K, bF, bh), cE), bb(bh, bO, cA, ch.transactionId)] ++ cB), unit)
481485 }
482486 else throw("Strict value is not equal to itself.")
483487 }
484- else $Tuple2([ScriptTransfer(cf.caller, (bs + aR), cw), IntegerEntry(az(bf), 0), aN(ae(bf), bg, cn, bk, aR), aN(ag(), aG(), cn, bk, aR), aY(bf, (cx + aR), cy, cf.transactionId)], unit)
485- cz
488+ else $Tuple2([ScriptTransfer(ch.caller, (bu + aR), cy), IntegerEntry(az(bh), 0), aN(ae(bh), bi, cp, bm, aR), aN(ag(), aG(), cp, bm, aR), bb(bh, (cz + aR), cA, ch.transactionId)], unit)
489+ cB
486490 }
487491 }
488492
489493
490494
491-@Callable(cf)
492-func claimREADONLY (ba,bf) = {
493- let cv = aZ(ba, addressFromStringValue(bf), fromBase58String(""))
494- let cn = cv._1
495- let bs = cv._2
496- let cw = cv._3
497- let bg = cv._4
498- let bk = cv._5
499- let cE = cv._6
500- let cF = cE[0]
501- let cG = cE[1]
502- $Tuple2(nil, makeString(["%s%d%d", bf, toString(cF), toString(cG)], c))
495+@Callable(ch)
496+func claimREADONLY (bd,bh) = {
497+ let cx = bc(bd, addressFromStringValue(bh), fromBase58String(""))
498+ let cp = cx._1
499+ let bu = cx._2
500+ let cy = cx._3
501+ let bi = cx._4
502+ let bm = cx._5
503+ let cG = cx._6
504+ let cH = cG[0]
505+ let cI = cG[1]
506+ $Tuple2(nil, makeString(["%s%d%d", bh, toString(cH), toString(cI)], c))
503507 }
504508
505509
506510
507-@Callable(cf)
508-func claimV2READONLY (ba,bf) = {
509- let cv = aZ(ba, addressFromStringValue(bf), fromBase58String(""))
510- let cn = cv._1
511- let bs = cv._2
512- let cw = cv._3
513- let bg = cv._4
514- let bk = cv._5
515- let cE = cv._6
516- let cF = cE[0]
517- let cG = cE[1]
518- let bb = aD()
519- let K = bb[z]
520- let aR = valueOrElse(getInteger(az(bf)), 0)
521- let cH = (aR * 100)
522- let cI = (cG + cH)
523- let cJ = br(K, bf, bs, cn[aL])
524- let bM = cJ._1
525- let bK = cJ._2
526- let bL = cJ._3
527- let bt = cJ._4
528- let bN = cJ._5
529- let bY = cJ._6
530- let bZ = cJ._7
531- let bD = cJ._8
532- let bE = cJ._9
533- let bG = cJ._10
534- let cK = valueOrElse(getInteger(aq(bD)), 0)
535- let cL = (parseIntValue(aI(bf)[R]) - aR)
536- let cM = if ((height > cK))
511+@Callable(ch)
512+func claimV2READONLY (bd,bh) = {
513+ let cx = bc(bd, addressFromStringValue(bh), fromBase58String(""))
514+ let cp = cx._1
515+ let bu = cx._2
516+ let cy = cx._3
517+ let bi = cx._4
518+ let bm = cx._5
519+ let cG = cx._6
520+ let cH = cG[0]
521+ let cI = cG[1]
522+ let aU = aD()
523+ let K = aU[z]
524+ let aR = valueOrElse(getInteger(az(bh)), 0)
525+ let cJ = (aR * 100)
526+ let cK = (cI + cJ)
527+ let cL = bt(K, bh, bu, cp[aL])
528+ let bO = cL._1
529+ let bM = cL._2
530+ let bN = cL._3
531+ let bv = cL._4
532+ let bP = cL._5
533+ let ca = cL._6
534+ let cb = cL._7
535+ let bF = cL._8
536+ let bG = cL._9
537+ let bI = cL._10
538+ let cM = valueOrElse(getInteger(aq(bF)), 0)
539+ let cN = (parseIntValue(aI(bh)[R]) - aR)
540+ let cO = if ((height > cM))
537541 then {
538- let cN = value(getInteger(am()))
539- let cO = value(getInteger(au(K)))
540- let cP = value(getInteger(as(K)))
541- makeString(["%d%d%d%d%d%d", toString(cI), toString(cO), toString(cP), toString(bN), toString(bY), toString(cN), toString(cL)], c)
542+ let cP = value(getInteger(am()))
543+ let cQ = value(getInteger(au(K)))
544+ let cR = value(getInteger(as(K)))
545+ makeString(["%d%d%d%d%d%d", toString(cK), toString(cQ), toString(cR), toString(bP), toString(ca), toString(cP), toString(cN)], c)
542546 }
543- else makeString(["%d%d%d%d%d%d", toString(cI), toString(bM), toString(bK), toString(bN), toString(bY), toString(bZ), toString(cL)], c)
544- $Tuple2(nil, cM)
547+ else makeString(["%d%d%d%d%d%d", toString(cK), toString(bO), toString(bM), toString(bP), toString(ca), toString(cb), toString(cN)], c)
548+ $Tuple2(nil, cO)
545549 }
546550
547551
548552
549-@Callable(cf)
550-func setManager (cQ) = {
551- let cR = ce(cf)
552- if ((cR == cR))
553+@Callable(ch)
554+func setManager (cS) = {
555+ let cT = cg(ch)
556+ if ((cT == cT))
553557 then {
554- let cS = fromBase58String(cQ)
555- if ((cS == cS))
556- then [StringEntry(aC(), cQ)]
558+ let cU = fromBase58String(cS)
559+ if ((cU == cU))
560+ then [StringEntry(aC(), cS)]
557561 else throw("Strict value is not equal to itself.")
558562 }
559563 else throw("Strict value is not equal to itself.")
561565
562566
563567
564-@Callable(cf)
568+@Callable(ch)
565569 func confirmManager () = {
566- let cT = cd()
567- let cU = if (isDefined(cT))
570+ let cV = cf()
571+ let cW = if (isDefined(cV))
568572 then true
569573 else throw("No pending manager")
570- if ((cU == cU))
574+ if ((cW == cW))
571575 then {
572- let cV = if ((cf.callerPublicKey == value(cT)))
576+ let cX = if ((ch.callerPublicKey == value(cV)))
573577 then true
574578 else throw("You are not pending manager")
575- if ((cV == cV))
576- then [StringEntry(aB(), toBase58String(value(cT))), DeleteEntry(aC())]
579+ if ((cX == cX))
580+ then [StringEntry(aB(), toBase58String(value(cV))), DeleteEntry(aC())]
577581 else throw("Strict value is not equal to itself.")
578582 }
579583 else throw("Strict value is not equal to itself.")
580584 }
581585
582586
583-@Verifier(cW)
584-func cX () = {
585- let cY = {
586- let cb = ca()
587- if ($isInstanceOf(cb, "ByteVector"))
587+@Verifier(cY)
588+func cZ () = {
589+ let da = {
590+ let cd = cc()
591+ if ($isInstanceOf(cd, "ByteVector"))
588592 then {
589- let ch = cb
590- ch
593+ let cj = cd
594+ cj
591595 }
592- else if ($isInstanceOf(cb, "Unit"))
593- then cW.senderPublicKey
596+ else if ($isInstanceOf(cd, "Unit"))
597+ then cY.senderPublicKey
594598 else throw("Match error")
595599 }
596- sigVerify(cW.bodyBytes, cW.proofs[0], cY)
600+ sigVerify(cY.bodyBytes, cY.proofs[0], da)
597601 }
598602
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined"))
55
66
77 let c = "__"
88
99 let d = toBigInt(1000000000000000000)
1010
1111 let e = 100000000
1212
1313 func f (g) = throw(makeString(["ido.ride:", g], " "))
1414
1515
1616 func h (i,j,k,l,m) = {
1717 let n = toBigInt(j)
1818 let o = toBigInt(m)
1919 let p = fraction(toBigInt(i), d, n)
2020 let q = fraction(p, toBigInt(l), toBigInt(k))
2121 toInt(fraction(q, toBigInt(m), d))
2222 }
2323
2424
2525 let r = 1
2626
2727 let s = 2
2828
2929 let t = 3
3030
3131 let u = 4
3232
3333 let v = 5
3434
3535 let w = 6
3636
3737 let x = 7
3838
3939 let y = 8
4040
4141 let z = 9
4242
4343 let A = 10
4444
4545 let B = 11
4646
4747 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)
4848
4949
5050 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))
5151
5252
5353 let P = 1
5454
5555 let Q = 2
5656
5757 let R = 3
5858
5959 let S = 4
6060
6161 let T = 5
6262
6363 func U (V,W,X,Y,Z) = makeString(["%d%d%d%d%d", V, W, X, Y, Z], c)
6464
6565
6666 func aa (V,W,X,Y,Z) = U(toString(V), toString(W), toString(X), toString(Y), toString(Z))
6767
6868
6969 func ab (i,ac) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(i), toString(ac)], c)
7070
7171
7272 func ad () = "%s__config"
7373
7474
7575 func ae (af) = ("%s__" + af)
7676
7777
7878 func ag () = "%s__totals"
7979
8080
8181 func ah (ai,af,aj) = makeString(["%s%s%s%s__history", ai, af, aj], c)
8282
8383
8484 func ak () = "%s__usdnClaimDisabled"
8585
8686
8787 func al () = "%s__usdnClaimEndHeight"
8888
8989
9090 func am () = makeString(["%s", "periodLength"], c)
9191
9292
9393 func an () = makeString(["%s", "currentPeriod"], c)
9494
9595
9696 func ao (ap) = makeString(["%s%s", "periodStartHeight", toString(ap)], c)
9797
9898
9999 func aq (ap) = makeString(["%s%s", "periodEndHeight", toString(ap)], c)
100100
101101
102102 func ar () = makeString(["%s", "usdtPriceAssetAllowableRatio"], c)
103103
104104
105105 func as (at) = makeString(["%s%s", "totalPeriodAllowance", at], c)
106106
107107
108108 func au (at) = makeString(["%s%s", "userPeriodAllowance", at], c)
109109
110110
111111 func av (at,ap) = makeString(["%s%s%s", "periodTotalAvailableToClaim", at, toString(ap)], c)
112112
113113
114114 func aw (at,ap,af) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", at, toString(ap), af], c)
115115
116116
117117 func ax () = makeString(["%s", "usdtPriceAssetStablePool"], c)
118118
119119
120120 func ay () = makeString(["%s", "usdtAssetId"], c)
121121
122122
123123 func az (aA) = makeString(["%s%s", "priceAssetBalance", aA], c)
124124
125125
126126 func aB () = "%s__managerPublicKey"
127127
128128
129129 func aC () = "%s__pendingManagerPublicKey"
130130
131131
132132 func aD () = split(a(ad()), c)
133133
134134
135135 func aE (aF) = split(valueOrElse(getString(aF), U("0", "0", "0", "0", "0")), c)
136136
137137
138138 func aG () = aE(ag())
139139
140140
141141 func aH (af) = aE(ae(af))
142142
143143
144144 func aI (af) = split(a(ae(af)), c)
145145
146146
147147 let aJ = 0
148148
149149 let aK = 1
150150
151151 let aL = 2
152152
153153 let aM = 3
154154
155155 func aN (b,aO,aP,aQ,aR) = {
156156 let V = parseIntValue(aO[P])
157157 let W = parseIntValue(aO[Q])
158158 let X = parseIntValue(aO[R])
159159 let Y = parseIntValue(aO[S])
160160 let Z = parseIntValue(aO[T])
161161 let aS = (V + aP[aJ])
162162 let aT = (W + aP[aK])
163- let aU = ((X + aP[aL]) - aR)
164- let aV = ((Y + aP[aM]) + aR)
163+ let aU = aD()
164+ let K = aU[z]
165+ let aV = value(assetInfo(fromBase58String(K))).decimals
166+ let aW = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN))
167+ let aX = ((X + aP[aL]) - aR)
168+ let aY = ((Y + aP[aM]) + aW)
165169 if ((0 > aT))
166170 then throw("invalid math")
167- else StringEntry(b, aa(aS, aT, aU, aV, aQ))
171+ else StringEntry(b, aa(aS, aT, aX, aY, aQ))
168172 }
169173
170174
171-func aW (af,i,ac,aX) = StringEntry(ah("invest", af, toBase58String(aX)), ab(i, ac))
175+func aZ (af,i,ac,ba) = StringEntry(ah("invest", af, toBase58String(ba)), ab(i, ac))
172176
173177
174-func aY (af,i,ac,aX) = StringEntry(ah("claim", af, toBase58String(aX)), ab(i, ac))
178+func bb (af,i,ac,ba) = StringEntry(ah("claim", af, toBase58String(ba)), ab(i, ac))
175179
176180
177-func aZ (ba,af,aX) = {
178- let bb = aD()
179- let F = parseIntValue(bb[t])
180- let G = parseIntValue(bb[u])
181- let bc = (F + G)
182- let k = parseIntValue(bb[v])
183- let H = parseIntValue(bb[w])
184- let I = bb[x]
185- let bd = fromBase58String(I)
186- let J = parseIntValue(bb[y])
187- let K = bb[z]
188- let be = fromBase58String(K)
189- let L = parseIntValue(bb[A])
190- let bf = toString(af)
191- let bg = aI(bf)
192- let bh = parseIntValue(bg[P])
193- let bi = parseIntValue(bg[T])
194- let bj = if ((F >= bi))
181+func bc (bd,af,ba) = {
182+ let aU = aD()
183+ let F = parseIntValue(aU[t])
184+ let G = parseIntValue(aU[u])
185+ let be = (F + G)
186+ let k = parseIntValue(aU[v])
187+ let H = parseIntValue(aU[w])
188+ let I = aU[x]
189+ let bf = fromBase58String(I)
190+ let J = parseIntValue(aU[y])
191+ let K = aU[z]
192+ let bg = fromBase58String(K)
193+ let L = parseIntValue(aU[A])
194+ let bh = toString(af)
195+ let bi = aI(bh)
196+ let bj = parseIntValue(bi[P])
197+ let bk = parseIntValue(bi[T])
198+ let bl = if ((F >= bk))
195199 then F
196- else bi
197- let bk = if ((height > bc))
198- then bc
200+ else bk
201+ let bm = if ((height > be))
202+ then be
199203 else if ((F > height))
200204 then F
201205 else height
202- let bl = (bk - bj)
203- let bm = fraction(bh, bl, G)
204- let bn = h(bm, L, k, H, J)
205- let bo = (ba == K)
206- let bp = valueOrElse(getBoolean(ak()), false)
207- let bq = [if (!(if (bo)
208- then bp
206+ let bn = (bm - bl)
207+ let bo = fraction(bj, bn, G)
208+ let bp = h(bo, L, k, H, J)
209+ let bq = (bd == K)
210+ let br = valueOrElse(getBoolean(ak()), false)
211+ let bs = [if (!(if (bq)
212+ then br
209213 else false))
210214 then true
211215 else throw("USDN claim is disabled")]
212- if ((bq == bq))
213- then if ((ba == K))
214- then $Tuple6([0, -(bm), bm, 0], bm, be, bg, bk, [bm, bn])
215- else if ((ba == I))
216- then $Tuple6([0, -(bm), 0, bn], bn, bd, bg, bk, [bm, bn])
217- else throw(("unsupported assetId: " + ba))
216+ if ((bs == bs))
217+ then if ((bd == K))
218+ then $Tuple6([0, -(bo), bo, 0], bo, bg, bi, bm, [bo, bp])
219+ else if ((bd == I))
220+ then $Tuple6([0, -(bo), 0, bp], bp, bf, bi, bm, [bo, bp])
221+ else throw(("unsupported assetId: " + bd))
218222 else throw("Strict value is not equal to itself.")
219223 }
220224
221225
222-func br (K,bf,bs,bt) = {
223- let bu = value(getInteger(as(K)))
224- let bv = value(getInteger(au(K)))
225- let bw = value(getInteger(am()))
226- let bx = valueOrElse(getInteger(an()), 0)
227- let by = isDefined(getInteger(aq(0)))
228- let bz = if ((bx > 0))
226+func bt (K,bh,bu,bv) = {
227+ let bw = value(getInteger(as(K)))
228+ let bx = value(getInteger(au(K)))
229+ let by = value(getInteger(am()))
230+ let bz = valueOrElse(getInteger(an()), 0)
231+ let bA = isDefined(getInteger(aq(0)))
232+ let bB = if ((bz > 0))
229233 then {
230- let bA = value(getInteger(ao(bx)))
231- let bB = value(getInteger(aq(bx)))
232- let bC = if ((height > bB))
234+ let bC = value(getInteger(ao(bz)))
235+ let bD = value(getInteger(aq(bz)))
236+ let bE = if ((height > bD))
233237 then {
234- let bD = (bx + 1)
235- let bE = if ((height > (bB + bw)))
238+ let bF = (bz + 1)
239+ let bG = if ((height > (bD + by)))
236240 then {
237- let bF = ((height - bB) % bw)
238- if ((bF == 0))
239- then ((height - bw) + 1)
240- else (height - bF)
241+ let bH = ((height - bD) % by)
242+ if ((bH == 0))
243+ then ((height - by) + 1)
244+ else (height - bH)
241245 }
242- else (bB + 1)
243- let bG = ((bE + bw) - 1)
244- $Tuple3(bD, bE, bG)
246+ else (bD + 1)
247+ let bI = ((bG + by) - 1)
248+ $Tuple3(bF, bG, bI)
245249 }
246- else $Tuple3(bx, bA, bB)
247- let bD = bC._1
248- let bE = bC._2
249- let bG = bC._3
250- $Tuple3(bD, bE, bG)
250+ else $Tuple3(bz, bC, bD)
251+ let bF = bE._1
252+ let bG = bE._2
253+ let bI = bE._3
254+ $Tuple3(bF, bG, bI)
251255 }
252- else if (by)
256+ else if (bA)
253257 then {
254- let bH = value(getInteger(ao(0)))
255- let bI = value(getInteger(aq(0)))
256- let bJ = if ((height > bI))
258+ let bJ = value(getInteger(ao(0)))
259+ let bK = value(getInteger(aq(0)))
260+ let bL = if ((height > bK))
257261 then {
258- let bD = (bx + 1)
259- let bE = (bI + 1)
260- let bG = ((bE + bw) - 1)
261- $Tuple3(bD, bE, bG)
262+ let bF = (bz + 1)
263+ let bG = (bK + 1)
264+ let bI = ((bG + by) - 1)
265+ $Tuple3(bF, bG, bI)
262266 }
263- else $Tuple3(bx, bH, bI)
264- let bD = bJ._1
265- let bE = bJ._2
266- let bG = bJ._3
267- $Tuple3(bD, bE, bG)
267+ else $Tuple3(bz, bJ, bK)
268+ let bF = bL._1
269+ let bG = bL._2
270+ let bI = bL._3
271+ $Tuple3(bF, bG, bI)
268272 }
269- else $Tuple3(bx, valueOrElse(getInteger(ao(bx)), height), valueOrElse(getInteger(aq(bx)), ((height + bw) - 1)))
270- let bD = bz._1
271- let bE = bz._2
272- let bG = bz._3
273- let bK = valueOrElse(getInteger(av(K, bD)), bu)
274- let bL = valueOrElse(getInteger(aw(K, bD, bf)), bv)
275- let aR = valueOrElse(getInteger(az(bf)), 0)
276- let bM = min([(bs + aR), bK, bL])
277- let bN = value(getInteger(ar()))
278- let bO = e
279- let bP = {
280- let bQ = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bO, K], nil)
281- if ($isInstanceOf(bQ, "(Int, Int, Int)"))
282- then bQ
273+ else $Tuple3(bz, valueOrElse(getInteger(ao(bz)), height), valueOrElse(getInteger(aq(bz)), ((height + by) - 1)))
274+ let bF = bB._1
275+ let bG = bB._2
276+ let bI = bB._3
277+ let bM = valueOrElse(getInteger(av(K, bF)), bw)
278+ let bN = valueOrElse(getInteger(aw(K, bF, bh)), bx)
279+ let aR = valueOrElse(getInteger(az(bh)), 0)
280+ let bO = min([(bu + aR), bM, bN])
281+ let bP = value(getInteger(ar()))
282+ let bQ = e
283+ let bR = {
284+ let bS = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bQ, K], nil)
285+ if ($isInstanceOf(bS, "(Int, Int, Int)"))
286+ then bS
283287 else throw("Couldn't cast Any to (Int, Int, Int)")
284288 }
285- if ((bP == bP))
289+ if ((bR == bR))
286290 then {
287- let bR = bP._3
288- let bS = bP._2
289- let bT = bP._1
290- let bU = value(getString(ay()))
291- let bV = {
292- let bQ = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bU, bT], nil)
293- if ($isInstanceOf(bQ, "(Int, Int)"))
294- then bQ
291+ let bT = bR._3
292+ let bU = bR._2
293+ let bV = bR._1
294+ let bW = value(getString(ay()))
295+ let bX = {
296+ let bS = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bW, bV], nil)
297+ if ($isInstanceOf(bS, "(Int, Int)"))
298+ then bS
295299 else throw("Couldn't cast Any to (Int, Int)")
296300 }
297- if ((bV == bV))
301+ if ((bX == bX))
298302 then {
299- let bW = bV._2
300- let bX = bV._1
301- let bY = fraction(bX, bO, e)
302- let bZ = (bG - height)
303- $Tuple10(bM, bK, bL, bt, bN, bY, bZ, bD, bE, bG)
303+ let bY = bX._2
304+ let bZ = bX._1
305+ let ca = fraction(bZ, bQ, e)
306+ let cb = (bI - height)
307+ $Tuple10(bO, bM, bN, bv, bP, ca, cb, bF, bG, bI)
304308 }
305309 else throw("Strict value is not equal to itself.")
306310 }
307311 else throw("Strict value is not equal to itself.")
308312 }
309313
310314
311-func ca () = {
312- let cb = getString(aB())
313- if ($isInstanceOf(cb, "String"))
315+func cc () = {
316+ let cd = getString(aB())
317+ if ($isInstanceOf(cd, "String"))
314318 then {
315- let cc = cb
316- fromBase58String(cc)
319+ let ce = cd
320+ fromBase58String(ce)
317321 }
318- else if ($isInstanceOf(cb, "Unit"))
322+ else if ($isInstanceOf(cd, "Unit"))
319323 then unit
320324 else throw("Match error")
321325 }
322326
323327
324-func cd () = {
325- let cb = getString(aC())
326- if ($isInstanceOf(cb, "String"))
328+func cf () = {
329+ let cd = getString(aC())
330+ if ($isInstanceOf(cd, "String"))
327331 then {
328- let cc = cb
329- fromBase58String(cc)
332+ let ce = cd
333+ fromBase58String(ce)
330334 }
331- else if ($isInstanceOf(cb, "Unit"))
335+ else if ($isInstanceOf(cd, "Unit"))
332336 then unit
333337 else throw("Match error")
334338 }
335339
336340
337-func ce (cf) = {
338- let cg = throw("Permission denied")
339- let cb = ca()
340- if ($isInstanceOf(cb, "ByteVector"))
341+func cg (ch) = {
342+ let ci = throw("Permission denied")
343+ let cd = cc()
344+ if ($isInstanceOf(cd, "ByteVector"))
341345 then {
342- let ch = cb
343- if ((cf.callerPublicKey == ch))
346+ let cj = cd
347+ if ((ch.callerPublicKey == cj))
344348 then true
345- else cg
349+ else ci
346350 }
347- else if ($isInstanceOf(cb, "Unit"))
348- then if ((cf.caller == this))
351+ else if ($isInstanceOf(cd, "Unit"))
352+ then if ((ch.caller == this))
349353 then true
350- else cg
354+ else ci
351355 else throw("Match error")
352356 }
353357
354358
355-@Callable(cf)
359+@Callable(ch)
356360 func constructor (D,E,F,G,k,K,M) = {
357361 let H = ((100 * 1000) * 1000)
358- let ci = (D + E)
362+ let ck = (D + E)
359363 if (isDefined(getString(ad())))
360364 then throw("already initialized")
361- else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(cf.caller)))
365+ else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(ch.caller)))
362366 then throw("not authorized")
363- else if ((size(cf.payments) != 1))
367+ else if ((size(ch.payments) != 1))
364368 then throw("exactly 1 payment must be attached")
365- else if ((ci >= F))
369+ else if ((ck >= F))
366370 then throw("claimStart must be greater than idoEnd")
367371 else {
368- let cj = value(cf.payments[0])
369- let bd = value(cj.assetId)
370- let ck = valueOrErrorMessage(assetInfo(bd), "fail to load ido asset info")
371- let I = toBase58String(bd)
372- let J = pow(10, 0, ck.decimals, 0, 0, DOWN)
373- let be = fromBase58String(K)
374- let cl = valueOrErrorMessage(assetInfo(be), "fail to load price asset info")
375- let L = pow(10, 0, cl.decimals, 0, 0, DOWN)
376- let cm = aG()
377- let cn = [0, 0, 0, 0]
378-[StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cj.amount)), aN(ag(), cm, cn, F, 0)]
372+ let cl = value(ch.payments[0])
373+ let bf = value(cl.assetId)
374+ let cm = valueOrErrorMessage(assetInfo(bf), "fail to load ido asset info")
375+ let I = toBase58String(bf)
376+ let J = pow(10, 0, cm.decimals, 0, 0, DOWN)
377+ let bg = fromBase58String(K)
378+ let cn = valueOrErrorMessage(assetInfo(bg), "fail to load price asset info")
379+ let L = pow(10, 0, cn.decimals, 0, 0, DOWN)
380+ let co = aG()
381+ let cp = [0, 0, 0, 0]
382+[StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cl.amount)), aN(ag(), co, cp, F, 0)]
379383 }
380384 }
381385
382386
383387
384-@Callable(cf)
388+@Callable(ch)
385389 func invest () = {
386- let bb = aD()
387- let D = parseIntValue(bb[r])
388- let E = parseIntValue(bb[s])
389- let ci = (D + E)
390- let F = parseIntValue(bb[t])
391- let G = parseIntValue(bb[u])
392- let k = parseIntValue(bb[v])
393- let H = parseIntValue(bb[w])
394- let I = bb[x]
395- let bd = fromBase58String(I)
396- let J = parseIntValue(bb[y])
397- let K = bb[z]
398- let be = fromBase58String(K)
399- let L = parseIntValue(bb[A])
400- let co = parseIntValue(bb[B])
401- let af = toString(cf.caller)
390+ let aU = aD()
391+ let D = parseIntValue(aU[r])
392+ let E = parseIntValue(aU[s])
393+ let ck = (D + E)
394+ let F = parseIntValue(aU[t])
395+ let G = parseIntValue(aU[u])
396+ let k = parseIntValue(aU[v])
397+ let H = parseIntValue(aU[w])
398+ let I = aU[x]
399+ let bf = fromBase58String(I)
400+ let J = parseIntValue(aU[y])
401+ let K = aU[z]
402+ let bg = fromBase58String(K)
403+ let L = parseIntValue(aU[A])
404+ let cq = parseIntValue(aU[B])
405+ let af = toString(ch.caller)
402406 if ((D > height))
403407 then throw("ido has not been started yet")
404- else if ((height > ci))
408+ else if ((height > ck))
405409 then throw("ido has been already ended")
406- else if ((size(cf.payments) != 1))
410+ else if ((size(ch.payments) != 1))
407411 then throw("exactly 1 payment is expected")
408412 else {
409- let cj = value(cf.payments[0])
410- let cp = value(cj.assetId)
411- let cq = cj.amount
412- if ((cp != be))
413- then throw((("invalid payment asset id: " + toBase58String(cp)) + " is expected"))
413+ let cl = value(ch.payments[0])
414+ let cr = value(cl.assetId)
415+ let cs = cl.amount
416+ if ((cr != bg))
417+ then throw((("invalid payment asset id: " + toBase58String(cr)) + " is expected"))
414418 else {
415- let cr = aH(af)
416- let cm = aG()
417- let cs = (parseIntValue(cm[P]) + cq)
418- let ct = (cs * 100)
419- if ((ct > assetBalance(this, bd)))
419+ let ct = aH(af)
420+ let co = aG()
421+ let cu = (parseIntValue(co[P]) + cs)
422+ let cv = (cu * 100)
423+ if ((cv > assetBalance(this, bf)))
420424 then throw("IDO asset has been - sold consider to use smaller payment")
421425 else {
422- let cn = [cq, cq, 0, 0]
423-[aN(ae(af), cr, cn, F, 0), aN(ag(), cm, cn, F, 0), aW(af, cq, 0, cf.transactionId)]
426+ let cp = [cs, cs, 0, 0]
427+[aN(ae(af), ct, cp, F, 0), aN(ag(), co, cp, F, 0), aZ(af, cs, 0, ch.transactionId)]
424428 }
425429 }
426430 }
427431 }
428432
429433
430434
431-@Callable(cf)
432-func claim (ba,bf) = {
433- let cu = toString(cf.caller)
434- if ((bf != cu))
435+@Callable(ch)
436+func claim (bd,bh) = {
437+ let cw = toString(ch.caller)
438+ if ((bh != cw))
435439 then throw("not authorized")
436440 else {
437- let bb = aD()
438- let K = bb[z]
439- let cv = aZ(ba, cf.caller, cf.transactionId)
440- let cn = cv._1
441- let bs = cv._2
442- let cw = cv._3
443- let bg = cv._4
444- let bk = cv._5
445- let cx = cn[aL]
446- let cy = cn[aM]
447- let aR = valueOrElse(getInteger(az(bf)), 0)
448- let cz = if ((ba == K))
441+ let aU = aD()
442+ let K = aU[z]
443+ let cx = bc(bd, ch.caller, ch.transactionId)
444+ let cp = cx._1
445+ let bu = cx._2
446+ let cy = cx._3
447+ let bi = cx._4
448+ let bm = cx._5
449+ let cz = cp[aL]
450+ let cA = cp[aM]
451+ let aR = valueOrElse(getInteger(az(bh)), 0)
452+ let cB = if ((bd == K))
449453 then {
450- let cA = br(K, bf, bs, cn[aL])
451- let bM = cA._1
452- let bK = cA._2
453- let bL = cA._3
454- let bt = cA._4
455- let bN = cA._5
456- let bY = cA._6
457- let bZ = cA._7
458- let bD = cA._8
459- let bE = cA._9
460- let bG = cA._10
461- let bq = [if ((bL > 0))
454+ let cC = bt(K, bh, bu, cp[aL])
455+ let bO = cC._1
456+ let bM = cC._2
457+ let bN = cC._3
458+ let bv = cC._4
459+ let bP = cC._5
460+ let ca = cC._6
461+ let cb = cC._7
462+ let bF = cC._8
463+ let bG = cC._9
464+ let bI = cC._10
465+ let bs = [if ((bN > 0))
462466 then true
463- else f("unavailable to claim because user period allowance reached"), if ((bK > 0))
467+ else f("unavailable to claim because user period allowance reached"), if ((bM > 0))
464468 then true
465- else f("unavailable to claim because total period allowance reached"), if ((bM > 0))
469+ else f("unavailable to claim because total period allowance reached"), if ((bO > 0))
466470 then true
467- else f("nothing to claim"), if ((bN > bY))
471+ else f("nothing to claim"), if ((bP > ca))
468472 then true
469473 else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")]
470- if ((bq == bq))
474+ if ((bs == bs))
471475 then {
472- let cB = (bK - bM)
473- let cC = (bL - bM)
474- let cz = if ((aR >= bM))
475- then [ScriptTransfer(cf.caller, bM, cw), IntegerEntry(az(bf), (aR - bM))]
476+ let cD = (bM - bO)
477+ let cE = (bN - bO)
478+ let cB = if ((aR >= bO))
479+ then [ScriptTransfer(ch.caller, bO, cy), IntegerEntry(az(bh), (aR - bO))]
476480 else {
477- let cD = ((aR + bs) - bM)
478-[ScriptTransfer(cf.caller, bM, cw), aN(ae(bf), bg, cn, bk, 0), aN(ag(), aG(), cn, bk, 0), IntegerEntry(az(bf), cD)]
481+ let cF = ((aR + bu) - bO)
482+[ScriptTransfer(ch.caller, bO, cy), aN(ae(bh), bi, cp, bm, 0), aN(ag(), aG(), cp, bm, 0), IntegerEntry(az(bh), cF)]
479483 }
480- $Tuple2(([IntegerEntry(an(), bD), IntegerEntry(ao(bD), bE), IntegerEntry(aq(bD), bG), IntegerEntry(av(K, bD), cB), IntegerEntry(aw(K, bD, bf), cC), aY(bf, bM, cy, cf.transactionId)] ++ cz), unit)
484+ $Tuple2(([IntegerEntry(an(), bF), IntegerEntry(ao(bF), bG), IntegerEntry(aq(bF), bI), IntegerEntry(av(K, bF), cD), IntegerEntry(aw(K, bF, bh), cE), bb(bh, bO, cA, ch.transactionId)] ++ cB), unit)
481485 }
482486 else throw("Strict value is not equal to itself.")
483487 }
484- else $Tuple2([ScriptTransfer(cf.caller, (bs + aR), cw), IntegerEntry(az(bf), 0), aN(ae(bf), bg, cn, bk, aR), aN(ag(), aG(), cn, bk, aR), aY(bf, (cx + aR), cy, cf.transactionId)], unit)
485- cz
488+ else $Tuple2([ScriptTransfer(ch.caller, (bu + aR), cy), IntegerEntry(az(bh), 0), aN(ae(bh), bi, cp, bm, aR), aN(ag(), aG(), cp, bm, aR), bb(bh, (cz + aR), cA, ch.transactionId)], unit)
489+ cB
486490 }
487491 }
488492
489493
490494
491-@Callable(cf)
492-func claimREADONLY (ba,bf) = {
493- let cv = aZ(ba, addressFromStringValue(bf), fromBase58String(""))
494- let cn = cv._1
495- let bs = cv._2
496- let cw = cv._3
497- let bg = cv._4
498- let bk = cv._5
499- let cE = cv._6
500- let cF = cE[0]
501- let cG = cE[1]
502- $Tuple2(nil, makeString(["%s%d%d", bf, toString(cF), toString(cG)], c))
495+@Callable(ch)
496+func claimREADONLY (bd,bh) = {
497+ let cx = bc(bd, addressFromStringValue(bh), fromBase58String(""))
498+ let cp = cx._1
499+ let bu = cx._2
500+ let cy = cx._3
501+ let bi = cx._4
502+ let bm = cx._5
503+ let cG = cx._6
504+ let cH = cG[0]
505+ let cI = cG[1]
506+ $Tuple2(nil, makeString(["%s%d%d", bh, toString(cH), toString(cI)], c))
503507 }
504508
505509
506510
507-@Callable(cf)
508-func claimV2READONLY (ba,bf) = {
509- let cv = aZ(ba, addressFromStringValue(bf), fromBase58String(""))
510- let cn = cv._1
511- let bs = cv._2
512- let cw = cv._3
513- let bg = cv._4
514- let bk = cv._5
515- let cE = cv._6
516- let cF = cE[0]
517- let cG = cE[1]
518- let bb = aD()
519- let K = bb[z]
520- let aR = valueOrElse(getInteger(az(bf)), 0)
521- let cH = (aR * 100)
522- let cI = (cG + cH)
523- let cJ = br(K, bf, bs, cn[aL])
524- let bM = cJ._1
525- let bK = cJ._2
526- let bL = cJ._3
527- let bt = cJ._4
528- let bN = cJ._5
529- let bY = cJ._6
530- let bZ = cJ._7
531- let bD = cJ._8
532- let bE = cJ._9
533- let bG = cJ._10
534- let cK = valueOrElse(getInteger(aq(bD)), 0)
535- let cL = (parseIntValue(aI(bf)[R]) - aR)
536- let cM = if ((height > cK))
511+@Callable(ch)
512+func claimV2READONLY (bd,bh) = {
513+ let cx = bc(bd, addressFromStringValue(bh), fromBase58String(""))
514+ let cp = cx._1
515+ let bu = cx._2
516+ let cy = cx._3
517+ let bi = cx._4
518+ let bm = cx._5
519+ let cG = cx._6
520+ let cH = cG[0]
521+ let cI = cG[1]
522+ let aU = aD()
523+ let K = aU[z]
524+ let aR = valueOrElse(getInteger(az(bh)), 0)
525+ let cJ = (aR * 100)
526+ let cK = (cI + cJ)
527+ let cL = bt(K, bh, bu, cp[aL])
528+ let bO = cL._1
529+ let bM = cL._2
530+ let bN = cL._3
531+ let bv = cL._4
532+ let bP = cL._5
533+ let ca = cL._6
534+ let cb = cL._7
535+ let bF = cL._8
536+ let bG = cL._9
537+ let bI = cL._10
538+ let cM = valueOrElse(getInteger(aq(bF)), 0)
539+ let cN = (parseIntValue(aI(bh)[R]) - aR)
540+ let cO = if ((height > cM))
537541 then {
538- let cN = value(getInteger(am()))
539- let cO = value(getInteger(au(K)))
540- let cP = value(getInteger(as(K)))
541- makeString(["%d%d%d%d%d%d", toString(cI), toString(cO), toString(cP), toString(bN), toString(bY), toString(cN), toString(cL)], c)
542+ let cP = value(getInteger(am()))
543+ let cQ = value(getInteger(au(K)))
544+ let cR = value(getInteger(as(K)))
545+ makeString(["%d%d%d%d%d%d", toString(cK), toString(cQ), toString(cR), toString(bP), toString(ca), toString(cP), toString(cN)], c)
542546 }
543- else makeString(["%d%d%d%d%d%d", toString(cI), toString(bM), toString(bK), toString(bN), toString(bY), toString(bZ), toString(cL)], c)
544- $Tuple2(nil, cM)
547+ else makeString(["%d%d%d%d%d%d", toString(cK), toString(bO), toString(bM), toString(bP), toString(ca), toString(cb), toString(cN)], c)
548+ $Tuple2(nil, cO)
545549 }
546550
547551
548552
549-@Callable(cf)
550-func setManager (cQ) = {
551- let cR = ce(cf)
552- if ((cR == cR))
553+@Callable(ch)
554+func setManager (cS) = {
555+ let cT = cg(ch)
556+ if ((cT == cT))
553557 then {
554- let cS = fromBase58String(cQ)
555- if ((cS == cS))
556- then [StringEntry(aC(), cQ)]
558+ let cU = fromBase58String(cS)
559+ if ((cU == cU))
560+ then [StringEntry(aC(), cS)]
557561 else throw("Strict value is not equal to itself.")
558562 }
559563 else throw("Strict value is not equal to itself.")
560564 }
561565
562566
563567
564-@Callable(cf)
568+@Callable(ch)
565569 func confirmManager () = {
566- let cT = cd()
567- let cU = if (isDefined(cT))
570+ let cV = cf()
571+ let cW = if (isDefined(cV))
568572 then true
569573 else throw("No pending manager")
570- if ((cU == cU))
574+ if ((cW == cW))
571575 then {
572- let cV = if ((cf.callerPublicKey == value(cT)))
576+ let cX = if ((ch.callerPublicKey == value(cV)))
573577 then true
574578 else throw("You are not pending manager")
575- if ((cV == cV))
576- then [StringEntry(aB(), toBase58String(value(cT))), DeleteEntry(aC())]
579+ if ((cX == cX))
580+ then [StringEntry(aB(), toBase58String(value(cV))), DeleteEntry(aC())]
577581 else throw("Strict value is not equal to itself.")
578582 }
579583 else throw("Strict value is not equal to itself.")
580584 }
581585
582586
583-@Verifier(cW)
584-func cX () = {
585- let cY = {
586- let cb = ca()
587- if ($isInstanceOf(cb, "ByteVector"))
587+@Verifier(cY)
588+func cZ () = {
589+ let da = {
590+ let cd = cc()
591+ if ($isInstanceOf(cd, "ByteVector"))
588592 then {
589- let ch = cb
590- ch
593+ let cj = cd
594+ cj
591595 }
592- else if ($isInstanceOf(cb, "Unit"))
593- then cW.senderPublicKey
596+ else if ($isInstanceOf(cd, "Unit"))
597+ then cY.senderPublicKey
594598 else throw("Match error")
595599 }
596- sigVerify(cW.bodyBytes, cW.proofs[0], cY)
600+ sigVerify(cY.bodyBytes, cY.proofs[0], da)
597601 }
598602

github/deemru/w8io/169f3d6 
175.34 ms