tx · CKkwi7yBMG3vR6gukP36EGLGECHdvYDJYSCAuzoanvs6

3N4K4ukh4HyveM6cWycWuqBXhX2RiB3dnqA:  -1.20000000 Waves

2022.11.15 18:41 [2318429] smart account 3N4K4ukh4HyveM6cWycWuqBXhX2RiB3dnqA > SELF 0.00000000 Waves

{ "type": 13, "id": "CKkwi7yBMG3vR6gukP36EGLGECHdvYDJYSCAuzoanvs6", "fee": 120000000, "feeAssetId": null, "timestamp": 1668526914681, "version": 2, "chainId": 84, "sender": "3N4K4ukh4HyveM6cWycWuqBXhX2RiB3dnqA", "senderPublicKey": "EP5yf1KBDh49tx1BycFQHTXmGqabtxd2BRmiPZGBg5WR", "proofs": [ "3xV1SVeL8KCdYm5nxEFg91WoF4sygp65h2QdHcSCPiXKrhCRHZJa87tcenXeJwrQDDnxecAqZkSVjJMLe75qdsBN" ], "script": "base64:AAIFAAAAAAAAAA0IAhIDCgEIEgASABIAAAAAMwAAAAAJUFJFQ0lTSU9OAA3gtrOnZAAAAAAAAAhEVVJBVElPTgkAAGgAAAACCQAAaAAAAAIAAAAAAAAAADwAAAAAAAAAADwAAAAAAAAAABgAAAAACERFQ0lNQUxTAAAAAAAF9eEAAAAAABJrX2xhc3RDb21wb3VuZFRpbWUCAAAAEmtfbGFzdENvbXBvdW5kVGltZQAAAAAOa19wZXJpb2RGaW5pc2gCAAAADmtfcGVyaW9kRmluaXNoAAAAAAprX2xhc3RSYXRlAgAAAAprX2xhc3RSYXRlAAAAAAxrX2dyb3d0aFJhdGUCAAAADGtfZ3Jvd3RoUmF0ZQAAAAAJa19iYWxhbmNlAgAAAAlrX2JhbGFuY2UAAAAACWtfbGVhc2VJZAIAAAAJa19sZWFzZUlkAAAAAA1rX2luaXRpYWxpemVkAgAAAA1rX2luaXRpYWxpemVkAAAAABBrX2FkbWluUHVibGljS2V5AgAAABBrX2FkbWluUHVibGljS2V5AAAAAA5rX2FkbWluQWRkcmVzcwIAAAAOa19hZG1pbkFkZHJlc3MAAAAADmtfb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d", "height": 2318429, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4MJiJqHb1Mq7J9SqpyWQ3nt9ES7GBTtmTsaAxhwGN2Gg Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1000000000000000000
55
66 let b = ((60 * 60) * 24)
77
88 let c = 100000000
99
1010 let d = "k_lastCompoundTime"
1111
1212 let e = "k_periodFinish"
1313
1414 let f = "k_lastRate"
1515
1616 let g = "k_growthRate"
1717
1818 let h = "k_balance"
1919
2020 let i = "k_leaseId"
2121
2222 let j = "k_initialized"
2323
2424 let k = "k_adminPublicKey"
2525
2626 let l = "k_adminAddress"
2727
2828 let m = "k_minerAddress"
2929
3030 let n = "k_sWavesAssetId"
3131
3232 func o (p,q) = fraction(p, c, q, HALFEVEN)
3333
3434
3535 func r (p,q) = fraction(p, q, c, HALFEVEN)
3636
3737
3838 func s (p,q) = fraction(p, a, q, HALFEVEN)
3939
4040
4141 func t (p,q) = fraction(p, q, a, HALFEVEN)
4242
4343
4444 func u (p) = if ((p > 0))
4545 then p
4646 else -(p)
4747
4848
4949 func v (p,q) = if ((p > q))
5050 then q
5151 else p
5252
5353
5454 func w (x,y) = ((x + "_") + y)
5555
5656
5757 func z () = addressFromString(getStringValue(this, l))
5858
5959
6060 func A () = fromBase58String(getStringValue(this, k))
6161
6262
6363 func B () = valueOrErrorMessage(addressFromString(getStringValue(this, m)), "Invalid miner address is not set")
6464
6565
6666 func C () = fromBase58String(getStringValue(this, n))
6767
6868
6969 func D () = valueOrElse(getBoolean(this, j), false)
7070
7171
7272 func E (F) = valueOrErrorMessage(getInteger(this, F), ("No value for " + F))
7373
7474
7575 func G (F) = valueOrElse(getInteger(this, F), 0)
7676
7777
7878 func H () = G(d)
7979
8080
8181 func I () = G(g)
8282
8383
8484 func J () = G(h)
8585
8686
8787 func K () = E(f)
8888
8989
9090 func L () = G(e)
9191
9292
9393 func M () = {
9494 let N = getString(this, k)
9595 if ($isInstanceOf(N, "String"))
9696 then {
9797 let O = N
9898 fromBase58String(O)
9999 }
100100 else if ($isInstanceOf(N, "Unit"))
101101 then unit
102102 else throw("Match error")
103103 }
104104
105105
106106 func P (Q) = {
107107 let R = throw("permission denied")
108108 let N = M()
109109 if ($isInstanceOf(N, "ByteVector"))
110110 then {
111111 let S = N
112112 if ((Q.callerPublicKey == S))
113113 then true
114114 else R
115115 }
116116 else if ($isInstanceOf(N, "Unit"))
117117 then if ((Q.caller == this))
118118 then true
119119 else R
120120 else throw("Match error")
121121 }
122122
123123
124124 func T () = (lastBlock.timestamp / 1000)
125125
126126
127127 func U () = v(T(), L())
128128
129129
130130 func V () = {
131131 let N = getBinary(i)
132132 if ($isInstanceOf(N, "ByteVector"))
133133 then {
134134 let W = N
135135 [LeaseCancel(W), DeleteEntry(i)]
136136 }
137137 else if ($isInstanceOf(N, "Unit"))
138138 then nil
139139 else throw("Match error")
140140 }
141141
142142
143143 func X (Y) = [IntegerEntry(h, Y)]
144144
145145
146146 func Z (aa,ab) = [IntegerEntry(d, aa), IntegerEntry(e, ab)]
147147
148148
149149 func ac (ad,ae) = [IntegerEntry(f, ad), IntegerEntry(g, ae)]
150150
151151
152152 func af (Y) = if ((Y > 0))
153153 then {
154154 let ag = Lease(B(), Y)
155155 let ah = calculateLeaseId(ag)
156156 [ag, BinaryEntry(i, ah)]
157157 }
158158 else nil
159159
160160
161161 func ai (Y) = if ((Y == 0))
162162 then nil
163163 else {
164164 let aj = (J() + Y)
165165 ((V() ++ af(aj)) ++ X(aj))
166166 }
167167
168168
169169 func ak (Y) = [Reissue(C(), Y, true)]
170170
171171
172172 func al (Y) = [Burn(C(), Y)]
173173
174174
175175 func am (an,Y) = [ScriptTransfer(an, Y, C())]
176176
177177
178178 func ao (an,Y) = [ScriptTransfer(an, Y, unit)]
179179
180180
181181 func ap () = {
182182 let N = assetInfo(C())
183183 if ($isInstanceOf(N, "Asset"))
184184 then {
185185 let aq = N
186186 aq.quantity
187187 }
188188 else throw("Can't find asset")
189189 }
190190
191191
192192 func ar () = wavesBalance(B()).regular
193193
194194
195195 func as () = {
196196 let at = invoke(B(), "withdraw", nil, nil)
197197 if ((at == at))
198198 then at
199199 else throw("Strict value is not equal to itself.")
200200 }
201201
202202
203203 func au () = (K() + (I() * U()))
204204
205205
206206 @Callable(Q)
207207 func init (av) = {
208208 let aw = P(Q)
209209 if ((aw == aw))
210210 then if (D())
211211 then throw("Already initialized")
212212 else {
213213 let ax = Issue("sWaves", "", 0, 8, true, unit, 0)
214214 let ay = calculateAssetId(ax)
215215 [BooleanEntry(j, true), StringEntry(n, toBase58String(ay)), StringEntry(m, av), IntegerEntry(f, a), ax]
216216 }
217217 else throw("Strict value is not equal to itself.")
218218 }
219219
220220
221221
222222 @Callable(Q)
223223 func compound () = if ((size(Q.payments) != 0))
224224 then throw("No payments allowed")
225225 else {
226226 let az = ar()
227227 if ((az == az))
228228 then if (((1 * c) > az))
229229 then nil
230230 else {
231231 let aA = as()
232232 if ((aA == aA))
233233 then {
234234 let aB = au()
235235 let aC = T()
236236 let aD = if ((aC > L()))
237237 then (s(az, c) / b)
238238 else {
239239 let aE = (L() - aC)
240240 let aF = (I() * aE)
241241 (s((az + aF), c) / b)
242242 }
243243 ((ai(az) ++ ac(aB, aD)) ++ Z(aC, (aC + b)))
244244 }
245245 else throw("Strict value is not equal to itself.")
246246 }
247247 else throw("Strict value is not equal to itself.")
248248 }
249249
250250
251251
252252 @Callable(Q)
253253 func stake () = {
254254 let aG = invoke(this, "compound", nil, nil)
255255 if ((aG == aG))
256256 then {
257257 let aH = Q.payments[0]
258258 if ((aH.assetId != unit))
259259 then throw("Only WAVES supported")
260260 else if ((size(Q.payments) != 1))
261261 then throw("Wrong payments amount")
262262 else {
263263 let aI = au()
264264 let aJ = s(aH.amount, aI)
265265 ((ai(aH.amount) ++ ak(aJ)) ++ am(Q.caller, aJ))
266266 }
267267 }
268268 else throw("Strict value is not equal to itself.")
269269 }
270270
271271
272272
273273 @Callable(Q)
274274 func unstake () = {
275275 let aG = invoke(this, "compound", nil, nil)
276276 if ((aG == aG))
277277 then {
278278 let aH = Q.payments[0]
279279 if ((aH.assetId != C()))
280280 then throw("Only sWAVES supported")
281281 else if ((size(Q.payments) != 1))
282282 then throw("Wrong payments amount")
283283 else {
284284 let aI = au()
285285 let aK = t(aH.amount, aI)
286286 ((ai(-(aK)) ++ al(aH.amount)) ++ ao(Q.caller, aK))
287287 }
288288 }
289289 else throw("Strict value is not equal to itself.")
290290 }
291291
292292
293293 @Verifier(aL)
294294 func aM () = sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
295295

github/deemru/w8io/169f3d6 
41.83 ms