tx · HFK32jWpBm6HZsmTJgfUj9RaqTVqitmSBjpN1eSexMcn

3MxeRF3ftegUMbmqm13EkRTrqnjVkh49SMa:  -0.03200000 Waves

2022.06.12 07:19 [2092670] smart account 3MxeRF3ftegUMbmqm13EkRTrqnjVkh49SMa > SELF 0.00000000 Waves

{ "type": 13, "id": "HFK32jWpBm6HZsmTJgfUj9RaqTVqitmSBjpN1eSexMcn", "fee": 3200000, "feeAssetId": null, "timestamp": 1655007581150, "version": 2, "chainId": 84, "sender": "3MxeRF3ftegUMbmqm13EkRTrqnjVkh49SMa", "senderPublicKey": "8d9ckzCDpkcf72f43uLHfpnQFCmJ6djbqHMCP9Teuxc7", "proofs": [ "3yXyf5JzxmRiUpobxmK2rZALwnFSkN4QN43XiCmBKdPfWmXqQfuUTsfSfHcgqVmqSfy2tjDFq8N1eUSGRD1M6n8U" ], "script": "base64:AAIFAAAAAAAAABIIAhIAEgMKAQESABIAEgMKAQgAAAAmAAAAAA1rX3RvdGFsU3VwcGx5AgAAAA1rX3RvdGFsU3VwcGx5AAAAABBrX2xhc3RVcGRhdGVUaW1lAgAAABBrX2xhc3RVcGRhdGVUaW1lAAAAABZrX3Jld2FyZFBlclRva2VuU3RvcmVkAgAAABZrX3Jld2FyZFBlclRva2VuU3RvcmVkAAAAAAxrX3Jld2FyZFJhdGUCAAAADGtfcmV3YXJkUmF0ZQAAAAAOa19wZXJpb2RGaW5pc2gCAAAADmtfcGVyaW9kRmluaXNoAAAAAAlrX2JhbGFuY2UCAAAACWtfYmFsYW5jZQAAAAAUa191c2VyUmV3YXJkUGVyVG9rZW4CAAAAFGtfdXNlclJld2FyZFBlclRva2VuAAAAAAxrX3VzZXJSZXdhcmQCAAAADGtfdXNlclJld2FyZAAAAAANQURNSU5fQUREUkVTUwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVHrAPVNoUoCtZb2tA75BLEcC+1CWS2lyZgAAAAAEVVNETgEAAAAg93bq9/eDymXbbhPuAjvPWCmVqcHRjfJL2m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ADHN0YWtlckVhcm5lZAgJAQAAAAx1cGRhdGVSZXdhcmQAAAACBQAAAAdfc3Rha2VyCQEAAAAJYmFsYW5jZU9mAAAAAQUAAAAHX3N0YWtlcgAAAAJfMwkAAAIAAAABCQABpAAAAAEFAAAADHN0YWtlckVhcm5lZAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5q0z4IQ==", "height": 2092670, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "k_totalSupply"
5+
6+let b = "k_lastUpdateTime"
7+
8+let c = "k_rewardPerTokenStored"
9+
10+let d = "k_rewardRate"
11+
12+let e = "k_periodFinish"
13+
14+let f = "k_balance"
15+
16+let g = "k_userRewardPerToken"
17+
18+let h = "k_userReward"
19+
20+let i = Address(base58'3N178WMxnGXoZqCdM4P2o9u4ut1YuY7g1gy')
21+
22+let j = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
23+
24+let k = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNY'
25+
26+let l = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
27+
28+let m = ((60 * 60) * 24)
29+
30+let n = ""
31+
32+let o = 0
33+
34+func p (q,r) = fraction(q, l, r, HALFEVEN)
35+
36+
37+func s (q,r) = fraction(q, r, l, HALFEVEN)
38+
39+
40+func t (q) = if ((q > 0))
41+ then q
42+ else -(q)
43+
44+
45+func u (v,w) = ((v + "_") + w)
46+
47+
48+func x (y) = valueOrErrorMessage(getInteger(this, y), ("no value for " + y))
49+
50+
51+func z (y) = valueOrElse(getInteger(this, y), 0)
52+
53+
54+func A () = z(a)
55+
56+
57+func B () = z(c)
58+
59+
60+func C () = z(b)
61+
62+
63+func D () = z(d)
64+
65+
66+func E () = z(e)
67+
68+
69+func F (G) = z(u(h, G))
70+
71+
72+func H (G) = z(u(g, G))
73+
74+
75+func I (G) = z(u(f, G))
76+
77+
78+func J (K) = [IntegerEntry(d, K)]
79+
80+
81+func L (M,N) = [IntegerEntry(b, M), IntegerEntry(e, N)]
82+
83+
84+func O (P) = [IntegerEntry(c, P)]
85+
86+
87+func Q (G,R,S) = [IntegerEntry(u(h, G), R), IntegerEntry(u(g, G), S)]
88+
89+
90+func T (G,U) = [IntegerEntry(u(f, G), (I(G) + U))]
91+
92+
93+func V () = (lastBlock.timestamp / 1000)
94+
95+
96+func W () = if ((A() == 0))
97+ then B()
98+ else (B() + (((V() - C()) * D()) / A()))
99+
100+
101+func X (G,Y) = {
102+ let Z = (W() - H(G))
103+ ((Y * Z) + F(G))
104+ }
105+
106+
107+func aa (G,Y) = {
108+ let ab = W()
109+ let ac = V()
110+ let ad = if ((G != ""))
111+ then $Tuple2(X(G, Y), ab)
112+ else $Tuple2(0, 0)
113+ let ae = ad._1
114+ let af = ad._2
115+ $Tuple4(ab, ac, ae, af)
116+ }
117+
118+
119+@Callable(ag)
120+func stake () = {
121+ let G = toString(ag.caller)
122+ let ah = ag.payments[0].amount
123+ if ((ag.payments[0].assetId != k))
124+ then throw("Invalid staking asset")
125+ else {
126+ let ai = aa(G, (I(G) + ah))
127+ let ab = ai._1
128+ let ac = ai._2
129+ let ae = ai._3
130+ let af = ai._4
131+ (((Q(G, 0, af) ++ O(ab)) ++ L(ac, E())) ++ T(G, ah))
132+ }
133+ }
134+
135+
136+
137+@Callable(ag)
138+func unStake (ah) = {
139+ let G = toString(ag.caller)
140+ if ((ah > I(G)))
141+ then throw("Invalid balance")
142+ else {
143+ let aj = aa(G, (I(G) - ah))
144+ let ab = aj._1
145+ let ac = aj._2
146+ let ae = aj._3
147+ let af = aj._4
148+ ((((Q(G, 0, af) ++ O(ab)) ++ L(ac, E())) ++ T(G, -(ah))) ++ [ScriptTransfer(ag.caller, ah, k)])
149+ }
150+ }
151+
152+
153+
154+@Callable(ag)
155+func withdrawRewards () = {
156+ let G = toString(ag.caller)
157+ let ak = aa(G, I(G))
158+ let ab = ak._1
159+ let ac = ak._2
160+ let ae = ak._3
161+ let af = ak._4
162+ if ((0 >= ae))
163+ then throw("No reward")
164+ else (((Q(G, 0, af) ++ O(ab)) ++ L(ac, E())) ++ [ScriptTransfer(ag.caller, ae, j)])
165+ }
166+
167+
168+
169+@Callable(ag)
170+func addRewards () = if ((ag.payments[0].assetId != j))
171+ then throw("Invaliid addRewards params")
172+ else {
173+ let R = ag.payments[0].amount
174+ let ab = aa(n, o)._1
175+ let al = V()
176+ let am = if ((al > E()))
177+ then (R / m)
178+ else {
179+ let an = (E() - al)
180+ let ao = (D() * an)
181+ ((R + ao) / m)
182+ }
183+ ((J(am) ++ O(ab)) ++ L(al, (al + m)))
184+ }
185+
186+
187+
188+@Callable(ag)
189+func view_reward (G) = {
190+ let ae = aa(G, I(G))._3
191+ throw(toString(ae))
192+ }
193+
194+
195+@Verifier(ap)
196+func aq () = sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey)
197+

github/deemru/w8io/169f3d6 
27.71 ms