tx · 377x4yecqvuktXAa5BGAUtrrJNRaJqc93KCvepJKKJcD

3Ms55mqQSo1riWWrhTouAn8PYMDgtiHujPk:  -0.05000000 Waves

2022.12.10 22:49 [2354665] smart account 3Ms55mqQSo1riWWrhTouAn8PYMDgtiHujPk > SELF 0.00000000 Waves

{ "type": 13, "id": "377x4yecqvuktXAa5BGAUtrrJNRaJqc93KCvepJKKJcD", "fee": 5000000, "feeAssetId": null, "timestamp": 1670701859542, "version": 2, "chainId": 84, "sender": "3Ms55mqQSo1riWWrhTouAn8PYMDgtiHujPk", "senderPublicKey": "4VJsPVXAMUc6D6GkVJTfJp54UbarRxV34BMVthnHyFuv", "proofs": [ "SwKsz6kyq8iyLBAsxCMTJqtNxpUQpecyUExWKgB2Zojqa4rCfafSwCdWfcfX7SXPGWbiKgK4LfoF2Cdiy9QE4jY" ], "script": "base64:AAIFAAAAAAAAAA0IAhIDCgEIEgASABIAAAAAMwAAAAAJUFJFQ0lTSU9OAAAjhvJvwQAAAAAAAAhEVVJBVElPTgkAAGgAAAACCQAAaAAAAAIAAAAAAAAAADwAAAAAAAAAADwAAAAAAAAAABgAAAAACERFQ0lNQUxTAAAAAAAF9eEAAAAAABJrX2xhc3RDb21wb3VuZFRpbWUCAAAAEmtfbGFzdENvbXBvdW5kVGltZQAAAAAOa19wZXJpb2RGaW5pc2gCAAAADmtfcGVyaW9kRmluaXNoAAAAAAprX2xhc3RSYXRlAgAAAAprX2xhc3RSYXRlAAAAAAxrX2dyb3d0aFJhdGUCAAAADGtfZ3Jvd3RoUmF0ZQAAAAAJa19iYWxhbmNlAgAAAAlrX2JhbGFuY2UAAAAACWtfbGVhc2VJZAIAAAAJa19sZWFzZUlkAAAAAA1rX2luaXRpYWxpemVkAgAAAA1rX2luaXRpYWxpemVkAAAAABBrX2FkbWluUHVibGljS2V5AgAAABBrX2FkbWluUHVibGljS2V5AAAAAA5rX2FkbWluQWRkcmVzcwIAAAAOa19hZG1pbkFkZHJlc3MAAAAADmtfbWluZ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tXYXZlcwAAAAEIBQAAAAdwYXltZW50AAAABmFtb3VudAkBAAAACXNlbmRXYXZlcwAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAOdHJhbnNmZXJBbW91bnQJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmc4pVd", "height": 2354665, "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 = 10000000000000000
5+
6+let b = ((60 * 60) * 24)
7+
8+let c = 100000000
9+
10+let d = "k_lastCompoundTime"
11+
12+let e = "k_periodFinish"
13+
14+let f = "k_lastRate"
15+
16+let g = "k_growthRate"
17+
18+let h = "k_balance"
19+
20+let i = "k_leaseId"
21+
22+let j = "k_initialized"
23+
24+let k = "k_adminPublicKey"
25+
26+let l = "k_adminAddress"
27+
28+let m = "k_minerAddress"
29+
30+let n = "k_stkWavesAssetId"
31+
32+func o (p,q) = fraction(p, c, q, HALFEVEN)
33+
34+
35+func r (p,q) = fraction(p, q, c, HALFEVEN)
36+
37+
38+func s (p,q) = fraction(p, a, q, HALFEVEN)
39+
40+
41+func t (p,q) = fraction(p, q, a, HALFEVEN)
42+
43+
44+func u (p) = if ((p > 0))
45+ then p
46+ else -(p)
47+
48+
49+func v (p,q) = if ((p > q))
50+ then q
51+ else p
52+
53+
54+func w (x,y) = ((x + "_") + y)
55+
56+
57+func z () = addressFromString(getStringValue(this, l))
58+
59+
60+func A () = fromBase58String(getStringValue(this, k))
61+
62+
63+func B () = valueOrErrorMessage(addressFromString(getStringValue(this, m)), "Invalid miner address is not set")
64+
65+
66+func C () = fromBase58String(getStringValue(this, n))
67+
68+
69+func D () = valueOrElse(getBoolean(this, j), false)
70+
71+
72+func E (F) = valueOrErrorMessage(getInteger(this, F), ("No value for " + F))
73+
74+
75+func G (F) = valueOrElse(getInteger(this, F), 0)
76+
77+
78+func H () = G(d)
79+
80+
81+func I () = G(g)
82+
83+
84+func J () = G(h)
85+
86+
87+func K () = E(f)
88+
89+
90+func L () = G(e)
91+
92+
93+func M () = {
94+ let N = getString(this, k)
95+ if ($isInstanceOf(N, "String"))
96+ then {
97+ let O = N
98+ fromBase58String(O)
99+ }
100+ else if ($isInstanceOf(N, "Unit"))
101+ then unit
102+ else throw("Match error")
103+ }
104+
105+
106+func P (Q) = {
107+ let R = throw("permission denied")
108+ let N = M()
109+ if ($isInstanceOf(N, "ByteVector"))
110+ then {
111+ let S = N
112+ if ((Q.callerPublicKey == S))
113+ then true
114+ else R
115+ }
116+ else if ($isInstanceOf(N, "Unit"))
117+ then if ((Q.caller == this))
118+ then true
119+ else R
120+ else throw("Match error")
121+ }
122+
123+
124+func T () = (lastBlock.timestamp / 1000)
125+
126+
127+func U () = if ((L() > T()))
128+ then (T() - H())
129+ else b
130+
131+
132+func V () = {
133+ let N = getBinary(i)
134+ if ($isInstanceOf(N, "ByteVector"))
135+ then {
136+ let W = N
137+[LeaseCancel(W), DeleteEntry(i)]
138+ }
139+ else if ($isInstanceOf(N, "Unit"))
140+ then nil
141+ else throw("Match error")
142+ }
143+
144+
145+func X (Y) = [IntegerEntry(h, Y)]
146+
147+
148+func Z (aa,ab) = [IntegerEntry(d, aa), IntegerEntry(e, ab)]
149+
150+
151+func ac (ad,ae) = [IntegerEntry(f, ad), IntegerEntry(g, ae)]
152+
153+
154+func af (Y) = if ((Y > 0))
155+ then {
156+ let ag = Lease(B(), Y)
157+ let ah = calculateLeaseId(ag)
158+[ag, BinaryEntry(i, ah)]
159+ }
160+ else nil
161+
162+
163+func ai (Y) = if ((Y == 0))
164+ then nil
165+ else {
166+ let aj = (J() + Y)
167+ ((V() ++ af(aj)) ++ X(aj))
168+ }
169+
170+
171+func ak (Y) = [Reissue(C(), Y, true)]
172+
173+
174+func al (Y) = [Burn(C(), Y)]
175+
176+
177+func am (an,Y) = [ScriptTransfer(an, Y, C())]
178+
179+
180+func ao (an,Y) = [ScriptTransfer(an, Y, unit)]
181+
182+
183+func ap () = {
184+ let N = assetInfo(C())
185+ if ($isInstanceOf(N, "Asset"))
186+ then {
187+ let aq = N
188+ aq.quantity
189+ }
190+ else throw("Can't find asset")
191+ }
192+
193+
194+func ar () = wavesBalance(B()).regular
195+
196+
197+func as () = {
198+ let at = invoke(B(), "withdraw", nil, nil)
199+ if ((at == at))
200+ then at
201+ else throw("Strict value is not equal to itself.")
202+ }
203+
204+
205+func au () = (K() + (I() * U()))
206+
207+
208+@Callable(Q)
209+func init (av) = {
210+ let aw = P(Q)
211+ if ((aw == aw))
212+ then if (D())
213+ then throw("Already initialized")
214+ else {
215+ let ax = Issue("stkWaves", "", 0, 8, true, unit, 0)
216+ let ay = calculateAssetId(ax)
217+[BooleanEntry(j, true), StringEntry(n, toBase58String(ay)), StringEntry(m, av), IntegerEntry(f, a), IntegerEntry(g, 0), IntegerEntry(d, 0), ax]
218+ }
219+ else throw("Strict value is not equal to itself.")
220+ }
221+
222+
223+
224+@Callable(Q)
225+func compound () = if ((size(Q.payments) != 0))
226+ then throw("No payments allowed")
227+ else {
228+ let az = ar()
229+ if ((az == az))
230+ then if (((1 * c) > az))
231+ then nil
232+ else {
233+ let aA = as()
234+ if ((aA == aA))
235+ then {
236+ let aB = au()
237+ let aC = T()
238+ let aD = if ((aC > L()))
239+ then (s(az, c) / b)
240+ else {
241+ let aE = (L() - aC)
242+ let aF = (I() * aE)
243+ (s((az + aF), c) / b)
244+ }
245+ ((ai(az) ++ ac(aB, aD)) ++ Z(aC, (aC + b)))
246+ }
247+ else throw("Strict value is not equal to itself.")
248+ }
249+ else throw("Strict value is not equal to itself.")
250+ }
251+
252+
253+
254+@Callable(Q)
255+func stake () = {
256+ let aG = invoke(this, "compound", nil, nil)
257+ if ((aG == aG))
258+ then {
259+ let aH = au()
260+ let aI = Q.payments[0]
261+ if ((aI.assetId != unit))
262+ then throw("Only WAVES supported")
263+ else if ((size(Q.payments) != 1))
264+ then throw("Wrong payments amount")
265+ else {
266+ let aJ = s(aI.amount, aH)
267+ ((ai(aI.amount) ++ ak(aJ)) ++ am(Q.caller, aJ))
268+ }
269+ }
270+ else throw("Strict value is not equal to itself.")
271+ }
272+
273+
274+
275+@Callable(Q)
276+func unstake () = {
277+ let aG = invoke(this, "compound", nil, nil)
278+ if ((aG == aG))
279+ then {
280+ let aH = au()
281+ let aI = Q.payments[0]
282+ if ((aI.assetId != C()))
283+ then throw("Only stkWaves supported")
284+ else if ((size(Q.payments) != 1))
285+ then throw("Wrong payments amount")
286+ else {
287+ let aK = t(aI.amount, aH)
288+ ((ai(-(aK)) ++ al(aI.amount)) ++ ao(Q.caller, aK))
289+ }
290+ }
291+ else throw("Strict value is not equal to itself.")
292+ }
293+
294+
295+@Verifier(aL)
296+func aM () = sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
297+

github/deemru/w8io/169f3d6 
21.09 ms