tx · 6iV3BznxN69QxSQQDgHEKRrCMxdc7TuKURpiSd1ynXJg

3MsuJjWaUiQct9ZQMW7oKpN929KyhZgAdVt:  -0.03400000 Waves

2022.08.16 10:39 [2186723] smart account 3MsuJjWaUiQct9ZQMW7oKpN929KyhZgAdVt > SELF 0.00000000 Waves

{ "type": 13, "id": "6iV3BznxN69QxSQQDgHEKRrCMxdc7TuKURpiSd1ynXJg", "fee": 3400000, "feeAssetId": null, "timestamp": 1660635561549, "version": 2, "chainId": 84, "sender": "3MsuJjWaUiQct9ZQMW7oKpN929KyhZgAdVt", "senderPublicKey": "FfwSmMLJHdDoBTLxW13hi9KKmzXTKxnAyaiEswmGQXGi", "proofs": [ "5TCvtoJ7tK36CUGqpkmzUQaFYrUH3upK6rxgq83YGGs8fy81xqjUPCXEMNhPSazZpmM8tLHK2SNznqJVyQDv3FAj" ], "script": "base64:BgI9CAISBAoCCAgSAwoBCBIFCgMICAESBgoECAgIARIFCgMICAgSBAoCCAgSBgoECAgBARIECgIIARIECgIIAUkAE2tfdG90YWxGZWVzSW5QZXJpb2QCE2tfdG90YWxGZWVzSW5QZXJpb2QAFGtfdHJhZGVyRmVlc0luUGVyaW9kAhRrX3RyYWRlckZlZXNJblBlcmlvZAAOa19sYXN0Tm90aW9uYWwCDmtfbGFzdE5vdGlvbmFsABRrX3RvdGFsU2NvcmVJblBlcmlvZAIUa190b3RhbFNjb3JlSW5QZXJpb2QAFWtfdHJhZGVyU2NvcmVJblBlcmlvZAIVa190cmFkZXJTY29yZUluUGVyaW9kAB9rX3RyYWRlckF2ZXJhZ2VOb3Rpb25hbEluUGVyaW9kAh9rX3RyYWRlckF2ZXJhZ2VOb3Rpb25hbEluUGVyaW9kAA9rX2FtbVJld2FyZFJhdGUCD2tfYW1tUmV3YXJkUmF0ZQAXa19hbW1NYXhBbW91bnRQZXJQZXJpb2QCF2tfYW1tTWF4QW1vdW50UGVyUGVyaW9kABBrX3Jld2FyZEFzc2V0SWRzAhBrX3Jld2FyZ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dwkBBG11bGQCBQxsYXN0Tm90aW9uYWwFAXcEEW5ld1RyYWRlckFtbVNjb3JlCQEEbXVsZAIJAQRwb3dkAgUEZmVlcwUBQQkBBHBvd2QCBRFuZXdSdW5uaW5nQXZlcmFnZQkAZQIFDERFQ0lNQUxfVU5JVAUBQQQYbmV3VG90YWxBbW1TY29yZUluUGVyaW9kCQBkAgkAZQIFEG9sZFRvdGFsQW1tU2NvcmUFEW9sZFRyYWRlckFtbVNjb3JlBRFuZXdUcmFkZXJBbW1TY29yZQkBDXVwZGF0ZUFtbURhdGEHBQNhbW0FB190cmFkZXIFBndlZWtJZAURbmV3UnVubmluZ0F2ZXJhZ2UFDmFjdHVhbE5vdGlvbmFsBRFuZXdUcmFkZXJBbW1TY29yZQUYbmV3VG90YWxBbW1TY29yZUluUGVyaW9kAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkBDmFkbWluUHVibGljS2V5ANJswHw=", "height": 2186723, "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 = "k_totalFeesInPeriod"
5+
6+let b = "k_traderFeesInPeriod"
7+
8+let c = "k_lastNotional"
9+
10+let d = "k_totalScoreInPeriod"
11+
12+let e = "k_traderScoreInPeriod"
13+
14+let f = "k_traderAverageNotionalInPeriod"
15+
16+let g = "k_ammRewardRate"
17+
18+let h = "k_ammMaxAmountPerPeriod"
19+
20+let i = "k_rewardAssetIds"
21+
22+let j = "k_amms"
23+
24+let k = "k_claimedAssetAndPeriod"
25+
26+let l = "k_oracleAddress"
27+
28+let m = "price"
29+
30+let n = "k_totalClaimedForTraderAndAsset"
31+
32+let o = "k_initialized"
33+
34+let p = "k_coordinatorAddress"
35+
36+let q = "k_gov_asset"
37+
38+let r = "k_quote_asset"
39+
40+let s = "k_admin_public_key"
41+
42+let t = "k_admin_address"
43+
44+let u = "k_amm"
45+
46+let v = (1 * (((((((10 * 10) * 10) * 10) * 10) * 10) * 10) * 10))
47+
48+let w = 70000000
49+
50+let x = (1000 * 604800)
51+
52+func y (z) = {
53+ func A (B,C) = ((B + C) + ",")
54+
55+ let D = {
56+ let E = z
57+ let F = size(E)
58+ let G = ""
59+ func H (I,J) = if ((J >= F))
60+ then I
61+ else A(I, E[J])
62+
63+ func K (I,J) = if ((J >= F))
64+ then I
65+ else throw("List size exceeds 100")
66+
67+ K(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(G, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
68+ }
69+ let L = dropRight(D, 1)
70+ let M = if ((take(L, 1) == ","))
71+ then drop(L, 1)
72+ else L
73+ M
74+ }
75+
76+
77+func N (O) = if ((O == ""))
78+ then nil
79+ else split(O, ",")
80+
81+
82+func P (Q,R) = fraction(Q, v, R, HALFEVEN)
83+
84+
85+func S (Q,R) = fraction(Q, R, v, HALFEVEN)
86+
87+
88+func T (Q,R) = pow(Q, 8, R, 8, 8, HALFEVEN)
89+
90+
91+func U (Q) = if ((Q > 0))
92+ then Q
93+ else -(Q)
94+
95+
96+func V (Q,R) = if ((Q > R))
97+ then R
98+ else Q
99+
100+
101+func W (X,Y) = ((X + "_") + Y)
102+
103+
104+func Z () = valueOrErrorMessage(addressFromString(getStringValue(this, p)), "Coordinator not set")
105+
106+
107+func aa () = fromBase58String(getStringValue(Z(), s))
108+
109+
110+func ab () = addressFromString(getStringValue(Z(), t))
111+
112+
113+func ac (Y) = valueOrElse(getBoolean(Z(), W(u, Y)), false)
114+
115+
116+func ad (ae) = valueOrErrorMessage(getInteger(this, ae), ("no value for " + ae))
117+
118+
119+func af (ae) = valueOrElse(getInteger(this, ae), 0)
120+
121+
122+func ag () = valueOrElse(getBoolean(this, o), false)
123+
124+
125+func ah (ai,aj,ak) = ((((((b + "_") + ai) + "_") + aj) + "_") + toString(ak))
126+
127+
128+func al (ai,ak) = ((((a + "_") + ai) + "_") + toString(ak))
129+
130+
131+func am (ai,aj) = ((((c + "_") + ai) + "_") + aj)
132+
133+
134+func an (ai,aj,ak) = ((((((e + "_") + ai) + "_") + aj) + "_") + toString(ak))
135+
136+
137+func ao (ai,ak) = ((((d + "_") + ai) + "_") + toString(ak))
138+
139+
140+func ap (ai,aj,ak) = ((((((f + "_") + ai) + "_") + aj) + "_") + toString(ak))
141+
142+
143+func aq (ai,ar) = ((((g + "_") + ai) + "_") + ar)
144+
145+
146+func as (ai,ar) = ((((h + "_") + ai) + "_") + ar)
147+
148+
149+func at (aj,ar,au) = ((((((k + "_") + aj) + "_") + ar) + "_") + toString(au))
150+
151+
152+func av (ar,au) = ((((m + "_") + toString(au)) + "_") + ar)
153+
154+
155+func aw (aj,ar) = ((((n + "_") + aj) + "_") + ar)
156+
157+
158+func ax (ai,aj,ak,ay,az) = {
159+ let aA = ah(ai, aj, ak)
160+ let aB = al(ai, ak)
161+[IntegerEntry(aA, ay), IntegerEntry(aB, az)]
162+ }
163+
164+
165+func aC (ai,aj,ak,aD,aE,aF,aG) = {
166+ let aH = ao(ai, ak)
167+ let aI = an(ai, aj, ak)
168+ let aJ = am(ai, aj)
169+ let aK = ap(ai, aj, ak)
170+[IntegerEntry(aH, aG), IntegerEntry(aI, aF), IntegerEntry(aJ, aE), IntegerEntry(aK, aD)]
171+ }
172+
173+
174+func aL (aM) = (aM * 100)
175+
176+
177+func aN (ak) = (ak * x)
178+
179+
180+func aO (ak) = ((ak + 1) * x)
181+
182+
183+func aP (aQ) = (aQ / x)
184+
185+
186+func aR (ai,aj,ak) = {
187+ let aS = ah(ai, aj, ak)
188+ valueOrElse(getInteger(this, aS), 0)
189+ }
190+
191+
192+func aT (ai,ak) = {
193+ let aS = al(ai, ak)
194+ valueOrElse(getInteger(this, aS), 0)
195+ }
196+
197+
198+func aU (ai,aj) = {
199+ let aS = am(ai, aj)
200+ valueOrElse(getInteger(this, aS), 0)
201+ }
202+
203+
204+func aV (ai,aj,ak) = {
205+ let aS = an(ai, aj, ak)
206+ valueOrElse(getInteger(this, aS), 0)
207+ }
208+
209+
210+func aW (ai,ak) = {
211+ let aS = ao(ai, ak)
212+ valueOrElse(getInteger(this, aS), 0)
213+ }
214+
215+
216+func aX () = N(valueOrElse(getString(this, j), ""))
217+
218+
219+func aY () = N(valueOrElse(getString(this, i), ""))
220+
221+
222+func aZ (ai,ar) = {
223+ let aS = aq(ai, ar)
224+ valueOrElse(getInteger(this, aS), 0)
225+ }
226+
227+
228+func ba (ai,ar) = {
229+ let aS = as(ai, ar)
230+ valueOrElse(getInteger(this, aS), 0)
231+ }
232+
233+
234+func bb (aj,ar) = {
235+ let aS = aw(aj, ar)
236+ valueOrElse(getInteger(this, aS), 0)
237+ }
238+
239+
240+func bc (ar,ak) = {
241+ let bd = valueOrErrorMessage(getString(this, l), "Oracle not set")
242+ let be = valueOrErrorMessage(addressFromString(bd), "Invalid oracle address")
243+ let bf = av(ar, ak)
244+ aL(valueOrErrorMessage(getInteger(be, bf), ((("No oracle price for asset " + ar) + " period ") + toString(ak))))
245+ }
246+
247+
248+func bg (ai,aj,ar,ak) = {
249+ let bh = aZ(ai, ar)
250+ if ((bh == 0))
251+ then 0
252+ else {
253+ let bi = aT(ai, ak)
254+ let bj = bc(ar, ak)
255+ let bk = ba(ai, ar)
256+ let bl = aV(ai, aj, ak)
257+ let bm = aW(ai, ak)
258+ if ((bm == 0))
259+ then 0
260+ else {
261+ let bn = S(P(bi, bj), bh)
262+ let bo = V(bn, bk)
263+ let bp = P(S(bo, bl), bm)
264+ bp
265+ }
266+ }
267+ }
268+
269+
270+func bq (aj,ar,ak) = {
271+ let br = aX()
272+ func bs (bt,ai) = (bt + bg(ai, aj, ar, ak))
273+
274+ let E = br
275+ let F = size(E)
276+ let G = 0
277+ func H (I,J) = if ((J >= F))
278+ then I
279+ else bs(I, E[J])
280+
281+ func K (I,J) = if ((J >= F))
282+ then I
283+ else throw("List size exceeds 20")
284+
285+ K(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(G, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
286+ }
287+
288+
289+func bu (aj,ar,bv) = {
290+ func bs (bt,ak) = (bt + bq(aj, ar, ak))
291+
292+ let E = bv
293+ let F = size(E)
294+ let G = 0
295+ func H (I,J) = if ((J >= F))
296+ then I
297+ else bs(I, E[J])
298+
299+ func K (I,J) = if ((J >= F))
300+ then I
301+ else throw("List size exceeds 18")
302+
303+ K(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(G, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18)
304+ }
305+
306+
307+func bw (ai,aj,ak,bx) = {
308+ let aS = ap(ai, aj, ak)
309+ valueOrElse(getInteger(this, aS), bx)
310+ }
311+
312+
313+func by (aj,ar,au) = {
314+ let aS = at(aj, ar, au)
315+ valueOrElse(getBoolean(this, aS), false)
316+ }
317+
318+
319+func bz (aj,ar,bv) = {
320+ let bA = N(bv)
321+ func bB (bt,bC) = {
322+ let bD = valueOrErrorMessage(parseInt(bC), ("Invalid period: " + bC))
323+ if (if (containsElement(bt, bD))
324+ then true
325+ else by(aj, ar, bD))
326+ then bt
327+ else (bt :+ bD)
328+ }
329+
330+ let bE = {
331+ let E = bA
332+ let F = size(E)
333+ let G = nil
334+ func H (I,J) = if ((J >= F))
335+ then I
336+ else bB(I, E[J])
337+
338+ func K (I,J) = if ((J >= F))
339+ then I
340+ else throw("List size exceeds 18")
341+
342+ K(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(G, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18)
343+ }
344+ func bF (bt,au) = (bt :+ BooleanEntry(at(aj, ar, au), true))
345+
346+ let bG = {
347+ let E = bE
348+ let F = size(E)
349+ let G = nil
350+ func bH (I,J) = if ((J >= F))
351+ then I
352+ else bF(I, E[J])
353+
354+ func bI (I,J) = if ((J >= F))
355+ then I
356+ else throw("List size exceeds 18")
357+
358+ bI(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(G, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18)
359+ }
360+ let bJ = bu(aj, ar, bE)
361+ $Tuple2(bJ, ([ScriptTransfer(addressFromStringValue(aj), bJ, fromBase58String(ar)), IntegerEntry(aw(aj, ar), (bb(aj, ar) + bJ))] ++ bG))
362+ }
363+
364+
365+@Callable(bK)
366+func initialize (bL,bM) = if (ag())
367+ then throw("Already initialized")
368+ else [StringEntry(p, bL), StringEntry(l, bM), BooleanEntry(o, true)]
369+
370+
371+
372+@Callable(bK)
373+func setOracleAddress (bM) = if (if (!(ag()))
374+ then true
375+ else (bK.caller != ab()))
376+ then throw("Invalid setOracleAddress parameters")
377+ else [StringEntry(l, bM)]
378+
379+
380+
381+@Callable(bK)
382+func view_claimRewards (aj,ar,au) = throw(toString(bu(aj, ar, [au])))
383+
384+
385+
386+@Callable(bK)
387+func view_calcReward (aj,ai,ar,au) = throw(toString(bg(ai, ar, aj, au)))
388+
389+
390+
391+@Callable(bK)
392+func view_claimAllRewards (aj,ar,bv) = {
393+ let bN = bz(aj, ar, bv)
394+ throw(((toString(bN._1) + ",") + toString(bb(aj, ar))))
395+ }
396+
397+
398+
399+@Callable(bK)
400+func claimAllRewards (ar,bv) = {
401+ let bO = toString(bK.caller)
402+ let bP = bz(bO, ar, bv)
403+ let bJ = bP._1
404+ let bN = bP._2
405+ if ((bJ == 0))
406+ then throw("Nothing to claim")
407+ else bN
408+ }
409+
410+
411+
412+@Callable(bK)
413+func attachRewards (ai,ar,bQ,bR) = if (if (!(ag()))
414+ then true
415+ else (bK.caller != ab()))
416+ then throw("Invalid attachRewards params")
417+ else {
418+ let br = aX()
419+ let bS = aY()
420+ let bT = if (containsElement(br, ai))
421+ then br
422+ else (br :+ ai)
423+ let bU = if (containsElement(bS, ar))
424+ then bS
425+ else (bS :+ ar)
426+[IntegerEntry(aq(ai, ar), bR), IntegerEntry(as(ai, ar), bQ), StringEntry(j, y(bT)), StringEntry(i, y(bU))]
427+ }
428+
429+
430+
431+@Callable(bK)
432+func notifyFees (aj,bV) = {
433+ let bW = toString(bK.caller)
434+ if (if (!(ac(bW)))
435+ then true
436+ else !(ag()))
437+ then throw("Invalid notifyFees params")
438+ else {
439+ let bX = aL(bV)
440+ let bY = lastBlock.timestamp
441+ let bZ = aP(bY)
442+ let ca = aR(bW, aj, bZ)
443+ let bi = aT(bW, bZ)
444+ let cb = (ca + bX)
445+ let cc = (bi + bX)
446+ ax(bW, aj, bZ, cb, cc)
447+ }
448+ }
449+
450+
451+
452+@Callable(bK)
453+func notifyNotional (aj,cd) = {
454+ let bW = toString(bK.caller)
455+ if (if (!(ac(bW)))
456+ then true
457+ else !(ag()))
458+ then throw("Invalid notifyNotional params")
459+ else {
460+ let ce = aL(cd)
461+ let bY = lastBlock.timestamp
462+ let cf = aU(bW, aj)
463+ let bZ = aP(bY)
464+ let cg = aN(bZ)
465+ let ch = aO(bZ)
466+ let ci = (ch - cg)
467+ let cj = bw(bW, aj, bZ, cf)
468+ let ck = P((ch - bY), ci)
469+ let cl = aV(bW, aj, bZ)
470+ let cm = aW(bW, bZ)
471+ let cn = aR(bW, aj, bZ)
472+ let co = ((cj + S(ce, ck)) - S(cf, ck))
473+ let cp = S(T(cn, w), T(co, (v - w)))
474+ let cq = ((cm - cl) + cp)
475+ aC(bW, aj, bZ, co, ce, cp, cq)
476+ }
477+ }
478+
479+
480+@Verifier(cr)
481+func cs () = sigVerify(cr.bodyBytes, cr.proofs[0], aa())
482+

github/deemru/w8io/169f3d6 
41.22 ms