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