tx · JAwQ36TAVEGeSBJTSDiKfLbuDnJuXfkw2exo35WxApys

3N51zvBkohe4w8Qv4Vs8jV7NjhH6ovMjC4D:  -0.05000000 Waves

2023.04.25 16:41 [2550145] smart account 3N51zvBkohe4w8Qv4Vs8jV7NjhH6ovMjC4D > SELF 0.00000000 Waves

{ "type": 13, "id": "JAwQ36TAVEGeSBJTSDiKfLbuDnJuXfkw2exo35WxApys", "fee": 5000000, "feeAssetId": null, "timestamp": 1682430122175, "version": 2, "chainId": 84, "sender": "3N51zvBkohe4w8Qv4Vs8jV7NjhH6ovMjC4D", "senderPublicKey": "HjpyNjryY6QYJ3QC7p1wSk6zcB6rd51dCXKbu7A6k7rA", "proofs": [ "3dJ9bmuJ7Has7MVmSFndwdDgzm14afUHkDsJPkaFi9v72uAXNgx3dbWhxgxSETaSZvxhJifAEGyaVe4fhsJ9GSM1" ], "script": "base64:BgIXCAISBQoDCAgIEgASAwoBARIAEgMKAQh8AANTRVACAl9fAAVFTVBUWQIAAAlQUkVDSVNJT04AgKCUpY0dAAhERUNJTUFMUwCAwtcvABRERUZBVUxUX01BWF9TTElQUEFHRQkAaAIJAGkCBQlQUkVDSVNJT04AFAATAANEQVkJAGgCCQBoAgA8ADwAGAAEWUVBUgkAaAIFA0RBWQDtAgAPT1JBQ0xFX0RFQ0lNQUxTAMCEPQAISU5GSU5JVFkA//////////9/ABBNSU5fQU1PVU5UX0RFTFRBAOgHABVNQVhfUkFURV9IRUlHSFRfREVMVEEABQARTElRVUlEQVRJT05fQk9OVVMJAGgCCQBpAgUJUFJFQ0lTSU9OAGQABQAYTElRVUlEQVRJT05fUFJPVE9DT0xfRkVFCQBoAgkAaQIFCVBSRUNJU0lPTgBkAAIAFE1BWF9MSVFVSURBVElPTl9QQVJUCQBoAgkAaQIFCVBSRUNJU0lPTgBkADIADVNUQUJJTElUWV9GRUUJAGkCBQlQUkVDSVNJT04AZAAHRU5BQkxFRAIHRU5BQkxFRAAIRElTQUJMRUQCCERJU0FCTEV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VsZi4BaQEOd2l0aGRyYXdQcm9maXQBCF9hZGRyZXNzBAVjaGVjawkAzAgCCQEKbXVzdEFjdGl2ZQAJAMwIAgkBC211c3RCYWNrZW5kAQUBaQUDbmlsAwkAAAIFBWNoZWNrBQVjaGVjawQHZGV0YWlscwkA7wcBBQR0aGlzBApyZXdhcmRzQW10CAUHZGV0YWlscwlhdmFpbGFibGUJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQUIX2FkZHJlc3MFCnJld2FyZHNBbXQFBHVuaXQFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAJAQh2ZXJpZmllcgADCQABAgUHJG1hdGNoMAIGU3RyaW5nBAdhZGRyZXNzBQckbWF0Y2gwCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFB2FkZHJlc3MJAQlrZXlTaWduZWQCCQClCAEFBHRoaXMJANgEAQgFAnR4AmlkBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZZg3RA=", "height": 2550145, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "__"
5+
6+let b = ""
7+
8+let c = 1000000000000
9+
10+let d = 100000000
11+
12+let e = ((c / 20) * 19)
13+
14+let f = ((60 * 60) * 24)
15+
16+let g = (f * 365)
17+
18+let h = 1000000
19+
20+let i = 9223372036854775807
21+
22+let j = 1000
23+
24+let k = 5
25+
26+let l = ((c / 100) * 5)
27+
28+let m = ((c / 100) * 2)
29+
30+let n = ((c / 100) * 50)
31+
32+let o = (c / 100)
33+
34+let p = "ENABLED"
35+
36+let q = "DISABLED"
37+
38+let r = 1
39+
40+let s = 2
41+
42+let t = 3
43+
44+let u = 1
45+
46+let v = 2
47+
48+let w = 3
49+
50+let x = 4
51+
52+let y = 5
53+
54+let z = "Invocation error"
55+
56+func A (B,C) = fraction(B, d, C, HALFEVEN)
57+
58+
59+func D (B,C) = fraction(B, C, d, HALFEVEN)
60+
61+
62+func E (B,C) = fraction(B, c, C, HALFEVEN)
63+
64+
65+func F (B,C) = fraction(B, C, c, HALFEVEN)
66+
67+
68+func G (H) = makeString(H, a)
69+
70+
71+func I () = G(["%s", "initialized"])
72+
73+
74+func J () = G(["%s", "coordinatorAddress"])
75+
76+
77+func K () = G(["%s", "verifierAddress"])
78+
79+
80+func L () = G(["%s", "serviceAddress"])
81+
82+
83+func M () = G(["%s", "frontendAddress"])
84+
85+
86+func N () = G(["%s", "minterAddress"])
87+
88+
89+func O () = G(["%s", "treasuryAddress"])
90+
91+
92+func P () = G(["%s", "backendAddress"])
93+
94+
95+func Q () = G(["%s", "eastStakingAddress"])
96+
97+
98+func R () = G(["%s", "oracleAddress"])
99+
100+
101+func S () = G(["%s", "exchangeAddress"])
102+
103+
104+func T () = G(["%s", "eastAsset"])
105+
106+
107+func U () = G(["%s", "stEastAsset"])
108+
109+
110+func V () = "A_asset_balance"
111+
112+
113+func W () = "B_asset_balance"
114+
115+
116+func X (Y,Z) = G(["%s%s%s", "vault", Y, Z])
117+
118+
119+func aa (Y) = G(["%s%s", "vault", Y])
120+
121+
122+func ab () = G(["%s", "precision"])
123+
124+
125+func ac () = G(["%s", "backingRatio"])
126+
127+
128+func ad () = G(["%s", "liquidationRatio"])
129+
130+
131+func ae () = G(["%s", "liquidationBonus"])
132+
133+
134+func af () = G(["%s", "liquidationProtocolFee"])
135+
136+
137+func ag () = G(["%s", "stabilityFee"])
138+
139+
140+func ah () = G(["%s", "minAmountDelta"])
141+
142+
143+func ai () = G(["%s", "ticker"])
144+
145+
146+func aj () = G(["%s", "maxRateHeightDelta"])
147+
148+
149+func ak () = G(["%s", "contractAssetId"])
150+
151+
152+func al (am) = G(["%s%s", "price", am])
153+
154+
155+func an (am) = G(["%s%s", "lastHeight", am])
156+
157+
158+func ao (ap,aq) = G(["%s%s%s", "signed", ap, aq])
159+
160+
161+func ar () = G(["%s", "protocolActive"])
162+
163+
164+func as () = valueOrElse(getBoolean(this, I()), false)
165+
166+
167+func at () = if (!(as()))
168+ then throw("Not initialized")
169+ else unit
170+
171+
172+func au () = if (as())
173+ then throw("Already initialized")
174+ else unit
175+
176+
177+func av (aw) = if ((aw.caller != this))
178+ then throw("Only self invocation allowed.")
179+ else unit
180+
181+
182+func ax () = addressFromStringValue(valueOrErrorMessage(getString(J()), "Coordinator is not set"))
183+
184+
185+func ay () = {
186+ let az = getString(J())
187+ if ($isInstanceOf(az, "String"))
188+ then {
189+ let aA = az
190+ getString(addressFromStringValue(aA), K())
191+ }
192+ else if ($isInstanceOf(az, "Unit"))
193+ then unit
194+ else throw("Match error")
195+ }
196+
197+
198+func aB (aC,aD) = addressFromStringValue(valueOrErrorMessage(getString(ax(), aC), aD))
199+
200+
201+func aE () = aB(N(), "Minter is not set")
202+
203+
204+func aF () = aB(M(), "Frontend is not set")
205+
206+
207+func aG () = aB(O(), "Treasury is not set")
208+
209+
210+func aH () = aB(P(), "Backend is not set")
211+
212+
213+func aI () = aB(R(), "Oracle is not set")
214+
215+
216+func aJ () = aB(Q(), "East staking is not set")
217+
218+
219+func aK (aw) = (aw.caller != aG())
220+
221+
222+func aL () = valueOrElse(getInteger(ax(), ah()), j)
223+
224+
225+func aM () = valueOrElse(getInteger(ax(), aj()), k)
226+
227+
228+func aN () = valueOrElse(getInteger(ax(), ae()), l)
229+
230+
231+func aO () = valueOrElse(getInteger(ax(), af()), m)
232+
233+
234+func aP () = valueOrElse(getInteger(ax(), ag()), o)
235+
236+
237+func aQ () = getStringValue(ak())
238+
239+
240+func aR () = valueOrErrorMessage(getString(ax(), T()), "East asset is not set")
241+
242+
243+func aS () = fromBase58String(aR())
244+
245+
246+func aT () = valueOrElse(getBoolean(ax(), ar()), false)
247+
248+
249+func aU () = if (if (!(aT()))
250+ then true
251+ else !(as()))
252+ then throw("Protocol is disabled. Please contact support.")
253+ else unit
254+
255+
256+func aV (aw) = if ((aw.caller != aF()))
257+ then throw("Not allowed")
258+ else unit
259+
260+
261+func aW (aw) = if ((aw.caller != aH()))
262+ then throw("Not allowed")
263+ else unit
264+
265+
266+func aX (aw,Y) = if ((toBase58String(aw.caller.bytes) == Y))
267+ then throw("Self invocation not allowed.")
268+ else unit
269+
270+
271+func aY (aw) = if ((size(aw.payments) != 1))
272+ then throw("Only one payment allowed.")
273+ else unit
274+
275+
276+func aZ (aw) = if ((size(aw.payments) != 0))
277+ then throw("No payment allowed.")
278+ else unit
279+
280+
281+func ba (aw) = (size(aw.payments) == 1)
282+
283+
284+func bb (bc) = if ((0 >= bc))
285+ then throw("Attribute should be positive or zero.")
286+ else unit
287+
288+
289+func bd (bc) = if ((0 > bc))
290+ then throw("Attribute should be positive.")
291+ else unit
292+
293+
294+func be (Y,Z) = getString(X(Y, Z))
295+
296+
297+func bf (Y,Z) = valueOrErrorMessage(be(Y, Z), "Vault not exists")
298+
299+
300+func bg (bh) = {
301+ let az = bh.assetId
302+ if ($isInstanceOf(az, "ByteVector"))
303+ then {
304+ let bi = az
305+ toBase58String(bi)
306+ }
307+ else if ($isInstanceOf(az, "Unit"))
308+ then "WAVES"
309+ else throw("Match error")
310+ }
311+
312+
313+func bj (bi) = if ((bi == "WAVES"))
314+ then unit
315+ else fromBase58String(bi)
316+
317+
318+func bk (bh,bl) = {
319+ let bi = {
320+ let az = bl
321+ if ($isInstanceOf(az, "ByteVector"))
322+ then {
323+ let bm = az
324+ bm
325+ }
326+ else if ($isInstanceOf(az, "String"))
327+ then {
328+ let aA = az
329+ bj(aA)
330+ }
331+ else if ($isInstanceOf(az, "Unit"))
332+ then unit
333+ else throw("Match error")
334+ }
335+ let az = bi
336+ if ($isInstanceOf(az, "ByteVector"))
337+ then {
338+ let bm = az
339+ let bn = {
340+ let bo = assetInfo(bm)
341+ if ($isInstanceOf(bo, "Asset"))
342+ then {
343+ let Z = bo
344+ Z.name
345+ }
346+ else if ($isInstanceOf(bo, "Unit"))
347+ then throw(("Can't find asset " + toBase58String(bm)))
348+ else throw("Match error")
349+ }
350+ let aD = throw(("Attached payment asset is not " + bn))
351+ let bo = bh.assetId
352+ if ($isInstanceOf(bo, "ByteVector"))
353+ then {
354+ let bp = bo
355+ if ((bp != bi))
356+ then aD
357+ else unit
358+ }
359+ else if ($isInstanceOf(bo, "Unit"))
360+ then aD
361+ else throw("Match error")
362+ }
363+ else if ($isInstanceOf(az, "Unit"))
364+ then if ((bh.assetId != unit))
365+ then throw("Attached payment asset is not WAVES")
366+ else unit
367+ else throw("Match error")
368+ }
369+
370+
371+func bq () = valueOrErrorMessage(getInteger(ac()), "Backing ratio is not set")
372+
373+
374+func br () = valueOrErrorMessage(getInteger(ad()), "Liquidation ratio is not set")
375+
376+
377+func bs (ap) = {
378+ let az = addressFromString(ap)
379+ if ($isInstanceOf(az, "Address"))
380+ then {
381+ let Y = az
382+ true
383+ }
384+ else if ($isInstanceOf(az, "Unit"))
385+ then throw("Invalid address")
386+ else throw("Match error")
387+ }
388+
389+
390+func bt (bu) = (size(fromBase58String(bu)) == 32)
391+
392+
393+func bv () = (lastBlock.timestamp / 1000)
394+
395+
396+func bw (aw) = {
397+ let bx = aY(aw)
398+ if ((bx == bx))
399+ then {
400+ let by = aw.payments[0].assetId
401+ let az = by
402+ if ($isInstanceOf(az, "Unit"))
403+ then {
404+ let bz = az
405+ unit
406+ }
407+ else throw("Only WAVES accepted")
408+ }
409+ else throw("Strict value is not equal to itself.")
410+ }
411+
412+
413+func bA (bi) = {
414+ let az = bi
415+ if ($isInstanceOf(az, "ByteVector"))
416+ then {
417+ let bB = az
418+ let bC = toBase58String(bB)
419+ let bD = valueOrErrorMessage(assetInfo(bB), (("Asset " + bC) + " doesn't exist"))
420+ $Tuple3(bC, bD.name, bD.decimals)
421+ }
422+ else if ($isInstanceOf(az, "Unit"))
423+ then {
424+ let bE = az
425+ $Tuple3("WAVES", "WAVES", 8)
426+ }
427+ else throw("Match error")
428+ }
429+
430+
431+func bF (bG) = {
432+ let bH = aM()
433+ let bI = (lastBlock.height - bG)
434+ if ((bH >= bI))
435+ then unit
436+ else throw("Large price delta.")
437+ }
438+
439+
440+func bJ () = {
441+ let am = getStringValue(this, ai())
442+ let bK = aI()
443+ let bG = getIntegerValue(bK, an(am))
444+ let bL = bF(bG)
445+ if ((bL == bL))
446+ then {
447+ let bM = getIntegerValue(bK, al(am))
448+ fraction(bM, c, h)
449+ }
450+ else throw("Strict value is not equal to itself.")
451+ }
452+
453+
454+let bN = addressFromStringValue("3P68zNiufsu1viZpu1aY3cdahRRKcvV5N93")
455+
456+func bO () = G(["%s", "subvaultAddress"])
457+
458+
459+func bP () = G(["%d", "keyLeasedAmount"])
460+
461+
462+func bQ () = G(["%s", "leasingId"])
463+
464+
465+func bR () = G(["%s", "totalRewarded"])
466+
467+
468+func bS () = G(["%s", "totalProfitReceived"])
469+
470+
471+func bT (aw) = (toString(aw.caller) == bO())
472+
473+
474+func bU () = G(["%s", "leaseAddress"])
475+
476+
477+func bV () = G(["%b", "zeroLeasingState"])
478+
479+
480+func bW () = addressFromStringValue(getStringValue(bO()))
481+
482+
483+func bX () = getStringValue(bU())
484+
485+
486+func bY () = addressFromStringValue(bX())
487+
488+
489+func bZ () = valueOrElse(getInteger(bP()), 0)
490+
491+
492+func ca () = valueOrElse(getInteger(bR()), 0)
493+
494+
495+func cb () = valueOrElse(getInteger(bS()), 0)
496+
497+
498+func cc (cd) = if ((cd >= 0))
499+ then unit
500+ else throw(("Leasing balance too low: " + toString(cd)))
501+
502+
503+@Callable(aw)
504+func initialize (ce,cf,cg) = {
505+ let ch = [au(), bs(ce), bs(cf), bs(cg)]
506+ if ((ch == ch))
507+ then [StringEntry(J(), ce), StringEntry(bO(), cf), StringEntry(bU(), cg), BooleanEntry(bV(), true), BooleanEntry(I(), true)]
508+ else throw("Strict value is not equal to itself.")
509+ }
510+
511+
512+
513+@Callable(aw)
514+func stake () = {
515+ let ci = [aU(), bT(aw), bw(aw)]
516+ if ((ci == ci))
517+ then {
518+ let cj = aw.payments[0]
519+ let ck = getBinary(this, bQ())
520+ let cl = (bZ() + cj.amount)
521+ let cm = Lease(bY(), cl)
522+ let cn = calculateLeaseId(cm)
523+ let co = [cm, BinaryEntry(bQ(), cn), IntegerEntry(bP(), cl)]
524+ let cp = getBooleanValue(this, bV())
525+ let cq = if (cp)
526+ then (co :+ BooleanEntry(bV(), false))
527+ else co
528+ let az = ck
529+ if ($isInstanceOf(az, "ByteVector"))
530+ then {
531+ let cr = az
532+ if (cp)
533+ then cq
534+ else ([LeaseCancel(cr)] ++ cq)
535+ }
536+ else cq
537+ }
538+ else throw("Strict value is not equal to itself.")
539+ }
540+
541+
542+
543+@Callable(aw)
544+func unstake (cs) = {
545+ let ci = [aU(), bT(aw), bb(cs)]
546+ if ((ci == ci))
547+ then {
548+ let ct = bW()
549+ let cu = addressFromStringValue(getStringValue(this, bU()))
550+ let ck = getBinaryValue(this, bQ())
551+ let cl = (bZ() - cs)
552+ let cv = cc(cl)
553+ if ((cv == cv))
554+ then {
555+ let cp = getBooleanValue(this, bV())
556+ let cq = if (cp)
557+ then nil
558+ else {
559+ let cw = LeaseCancel(ck)
560+[cw]
561+ }
562+ let cx = if ((cl > 0))
563+ then {
564+ let cm = Lease(cu, cl)
565+ let cn = calculateLeaseId(cm)
566+ (cq ++ [cm, BinaryEntry(bQ(), cn)])
567+ }
568+ else (cq :+ BooleanEntry(bV(), true))
569+ (cx ++ [IntegerEntry(bP(), cl), ScriptTransfer(ct, cs, unit)])
570+ }
571+ else throw("Strict value is not equal to itself.")
572+ }
573+ else throw("Strict value is not equal to itself.")
574+ }
575+
576+
577+
578+@Callable(aw)
579+func exchangeAndReward () = {
580+ func cy () = 1
581+
582+ let cz = cy()
583+ let cA = invoke(bN, "swap", [1, aR(), toString(this)], [AttachedPayment(unit, cz)])
584+ if ((cA == cA))
585+ then {
586+ let cB = assetBalance(this, aS())
587+ let cC = invoke(aJ(), "addStakingRewards", nil, [AttachedPayment(aS(), cB)])
588+ if ((cC == cC))
589+ then {
590+ let cD = (cb() + cz)
591+ let cE = (ca() + cB)
592+[IntegerEntry(bS(), cD), IntegerEntry(bR(), cE)]
593+ }
594+ else throw("Strict value is not equal to itself.")
595+ }
596+ else throw("Strict value is not equal to itself.")
597+ }
598+
599+
600+
601+@Callable(aw)
602+func withdrawProfit (ap) = {
603+ let bx = [aU(), aW(aw)]
604+ if ((bx == bx))
605+ then {
606+ let cF = wavesBalance(this)
607+ let cG = cF.available
608+[ScriptTransfer(addressFromStringValue(ap), cG, unit)]
609+ }
610+ else throw("Strict value is not equal to itself.")
611+ }
612+
613+
614+@Verifier(cH)
615+func cI () = {
616+ let az = ay()
617+ if ($isInstanceOf(az, "String"))
618+ then {
619+ let Y = az
620+ valueOrElse(getBoolean(addressFromStringValue(Y), ao(toString(this), toBase58String(cH.id))), false)
621+ }
622+ else sigVerify(cH.bodyBytes, cH.proofs[0], cH.senderPublicKey)
623+ }
624+

github/deemru/w8io/026f985 
26.18 ms