tx · CuUYw6PJCBBr1dKsewN5kL8QhQkrRxeRsPVQvDTeVeTc

3MtB5xQ3A5n3KiEdtxQW5C7B1i1WgbxWDV2:  -0.03400000 Waves

2022.08.02 14:09 [2166792] smart account 3MtB5xQ3A5n3KiEdtxQW5C7B1i1WgbxWDV2 > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
28.43 ms