tx · 4KCq3DJDXS3JC2Yjw5ygS9nK9YtTP3eJouE1x76vHZaM 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP: -0.01500000 Waves 2023.06.09 18:03 [2615284] smart account 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP > SELF 0.00000000 Waves
{ "type": 13, "id": "4KCq3DJDXS3JC2Yjw5ygS9nK9YtTP3eJouE1x76vHZaM", "fee": 1500000, "feeAssetId": null, "timestamp": 1686323049875, "version": 2, "chainId": 84, "sender": "3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP", "senderPublicKey": "AoKo4segKHU4DeJnxXQYJj2u7J6XJeux6r8KLW52cd2Q", "proofs": [ "3qFzMVU3k14RsxnoeowY7MkVYTRfdz4f9z9QFQCBkYpqPpnxoRNqjist7VN9TC2xMQe8DpVGDmXUardkqaUWVQzN" ], "script": "base64:BwIqCAISAwoBAhIGCgQBAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECHwADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUNQ09OVFJBQ1RfTkFNRQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzARFrZXlGYWN0b3J5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgdmYWN0b3J5BQNuaWwFA1NFUAEMa2V5THBBc3NldElkAAkAuQkCCQDMCAICAiVzCQDMCAICCWxwQXNzZXRJZAUDbmlsBQNTRVABEmtleVRyZWFzdXJ5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgh0cmVhc3VyeQUDbmlsBQNTRVABDGtleUF2YWlsYWJsZQELdXNlckFkZHJlc3MJALkJAgkAzAgCAgQlcyVzCQDMCAICCWF2YWlsYWJsZQkAzAgCCQClC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c3NPckZhaWwCDXRyYW5zZmVyV2F2ZXMJAMwIAgUQdXNlckFkZHJlc3NCeXRlcwkAzAgCBQxjYWxsZXJSZXdhcmQFA25pbAUDbmlsCQDMCAIJAPwHBAUUZmFjdG9yeUFkZHJlc3NPckZhaWwCDGludGVnZXJFbnRyeQkAzAgCCQEVa2V5TmV4dEJsb2NrVG9Qcm9jZXNzAAkAzAgCCQBkAgUSbmV4dEJsb2NrVG9Qcm9jZXNzBRlibG9ja3NQcm9jZXNzaW5nQmF0Y2hTaXplBQNuaWwFA25pbAUDbmlsAwkAAAIFB2FjdGlvbnMFB2FjdGlvbnMJAJQKAgUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tledfjCME=", "height": 2615284, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G3AFXw36cGdNo4g61Ds1njQrrZrhGSA1VScd5uaThvJF Next: CvnY1vTbUp4gwZNxTZg7RLxp17EYtPb2AtY7DxKzepZz Diff:
Old | New | Differences | |
---|---|---|---|
350 | 350 | let av = valueOrErrorMessage(getInteger(K, p(ar)), f("invalid price")) | |
351 | 351 | let aF = valueOrErrorMessage(getInteger(K, u()), f("invalid next block to process")) | |
352 | 352 | let aG = ((aE + aD) - 1) | |
353 | - | let aH = | |
353 | + | let aH = 50 | |
354 | 354 | let aI = if (if (if ((height >= aF)) | |
355 | 355 | then if ((aF >= aE)) | |
356 | 356 | then true | |
374 | 374 | let B = if ((av > 0)) | |
375 | 375 | then fraction((aR - aK), c, av) | |
376 | 376 | else 0 | |
377 | - | let aT = [invoke(K, "integerEntry", [v(aP), B], nil), invoke(K, "integerEntry", [l(aS), (aj + B)], nil)] | |
378 | - | if ((aT == aT)) | |
379 | - | then { | |
380 | - | let aU = if ((aO == (aI - 1))) | |
381 | - | then (aK + aL) | |
382 | - | else aK | |
383 | - | (aN + aU) | |
384 | - | } | |
377 | + | let aT = if ((aO == (aI - 1))) | |
378 | + | then (aK + aL) | |
379 | + | else aK | |
380 | + | let aU = [invoke(K, "integerEntry", [v(aP), makeString([toBase58String(S.transactionId), toBase58String(ah), toString(aR), toString(aT), toString(B)], a)], nil), invoke(K, "integerEntry", [l(aS), (aj + B)], nil)] | |
381 | + | if ((aU == aU)) | |
382 | + | then (aN + aT) | |
385 | 383 | else throw("Strict value is not equal to itself.") | |
386 | 384 | } | |
387 | 385 | ||
388 | - | let aU = { | |
389 | - | let aV = [0, 1, 2, 3, 4] | |
390 | - | let aW = size(aV) | |
391 | - | let aX = 0 | |
392 | - | func aY (aZ,ba) = if ((ba >= aW)) | |
393 | - | then aZ | |
394 | - | else aM(aZ, aV[ba]) | |
386 | + | let aV = [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] | |
387 | + | let aT = { | |
388 | + | let aW = aV | |
389 | + | let aX = size(aW) | |
390 | + | let aY = 0 | |
391 | + | func aZ (ba,bb) = if ((bb >= aX)) | |
392 | + | then ba | |
393 | + | else aM(ba, aW[bb]) | |
395 | 394 | ||
396 | - | func | |
397 | - | then | |
398 | - | else throw("List size exceeds | |
395 | + | func bc (ba,bb) = if ((bb >= aX)) | |
396 | + | then ba | |
397 | + | else throw("List size exceeds 50") | |
399 | 398 | ||
400 | - | | |
399 | + | bc(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aY, 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) | |
401 | 400 | } | |
402 | - | if (( | |
401 | + | if ((aT == aT)) | |
403 | 402 | then { | |
404 | - | let | |
405 | - | if (( | |
403 | + | let bd = [invoke(K, "transferWaves", [ah, aT], nil), invoke(K, "integerEntry", [u(), (aF + aI)], nil)] | |
404 | + | if ((bd == bd)) | |
406 | 405 | then $Tuple2(nil, unit) | |
407 | 406 | else throw("Strict value is not equal to itself.") | |
408 | 407 | } | |
412 | 411 | } | |
413 | 412 | ||
414 | 413 | ||
415 | - | @Verifier( | |
416 | - | func | |
414 | + | @Verifier(be) | |
415 | + | func bf () = sigVerify(be.bodyBytes, be.proofs[0], be.senderPublicKey) | |
417 | 416 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "calculator.ride" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = "PENDING" | |
11 | 11 | ||
12 | 12 | let e = "FINISHED" | |
13 | 13 | ||
14 | 14 | func f (g) = ((b + ": ") + g) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func h (g) = throw(f(g)) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func i () = makeString(["%s", "factory"], a) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func j () = makeString(["%s", "lpAssetId"], a) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func k () = makeString(["%s", "treasury"], a) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func l (m) = makeString(["%s%s", "available", toString(m)], a) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func n (m) = makeString(["%s%s", "claimed", toString(m)], a) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o () = makeString(["%s", "currentPeriod"], a) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func p (q) = makeString(["%s%d", "price", toString(q)], a) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func r (q) = makeString(["%s%d", "startHeight", toString(q)], a) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func s () = "%s__periodLength" | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func t () = "%s__blockProcessingReward" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func u () = "%s__nextBlockToProcess" | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func v (w) = makeString(["%s%d", "blockProcessed", toString(w)], a) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func x (m,y) = makeString(["%s%s%s", "withdrawal", toString(m), toBase58String(y)], a) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func z (A,B,C,D) = { | |
60 | 60 | let E = { | |
61 | 61 | let F = D | |
62 | 62 | if ($isInstanceOf(F, "ByteVector")) | |
63 | 63 | then { | |
64 | 64 | let G = F | |
65 | 65 | toBase58String(G) | |
66 | 66 | } | |
67 | 67 | else if ($isInstanceOf(F, "Unit")) | |
68 | 68 | then "SOON" | |
69 | 69 | else throw("Match error") | |
70 | 70 | } | |
71 | 71 | makeString(["%s%d%d%s", A, toString(B), toString(C), E], a) | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func H (g) = { | |
76 | 76 | let I = split(g, a) | |
77 | 77 | if ((size(I) == 5)) | |
78 | 78 | then { | |
79 | 79 | let A = I[1] | |
80 | 80 | let B = valueOrErrorMessage(parseInt(I[2]), f("invalid lpAssetAmount")) | |
81 | 81 | let C = valueOrErrorMessage(parseInt(I[3]), f("invalid targetPeriod")) | |
82 | 82 | let D = I[4] | |
83 | 83 | $Tuple4(A, B, C, D) | |
84 | 84 | } | |
85 | 85 | else h("invalid withdrawal request value") | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | let J = { | |
90 | 90 | let F = getString(this, i()) | |
91 | 91 | if ($isInstanceOf(F, "String")) | |
92 | 92 | then { | |
93 | 93 | let g = F | |
94 | 94 | addressFromString(g) | |
95 | 95 | } | |
96 | 96 | else if ($isInstanceOf(F, "Unit")) | |
97 | 97 | then unit | |
98 | 98 | else throw("Match error") | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | let K = valueOrErrorMessage(J, f("invalid factory address")) | |
102 | 102 | ||
103 | 103 | let L = { | |
104 | 104 | let F = J | |
105 | 105 | if ($isInstanceOf(F, "Address")) | |
106 | 106 | then { | |
107 | 107 | let M = F | |
108 | 108 | let N = getString(M, j()) | |
109 | 109 | if ($isInstanceOf(N, "String")) | |
110 | 110 | then { | |
111 | 111 | let g = N | |
112 | 112 | fromBase58String(g) | |
113 | 113 | } | |
114 | 114 | else if ($isInstanceOf(N, "Unit")) | |
115 | 115 | then unit | |
116 | 116 | else throw("Match error") | |
117 | 117 | } | |
118 | 118 | else if ($isInstanceOf(F, "Unit")) | |
119 | 119 | then unit | |
120 | 120 | else throw("Match error") | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | let O = valueOrErrorMessage(L, f("invalid lpAssetId")) | |
124 | 124 | ||
125 | 125 | let P = { | |
126 | 126 | let F = J | |
127 | 127 | if ($isInstanceOf(F, "Address")) | |
128 | 128 | then { | |
129 | 129 | let M = F | |
130 | 130 | let N = getString(M, k()) | |
131 | 131 | if ($isInstanceOf(N, "String")) | |
132 | 132 | then { | |
133 | 133 | let g = N | |
134 | 134 | addressFromString(g) | |
135 | 135 | } | |
136 | 136 | else if ($isInstanceOf(N, "Unit")) | |
137 | 137 | then unit | |
138 | 138 | else throw("Match error") | |
139 | 139 | } | |
140 | 140 | else if ($isInstanceOf(F, "Unit")) | |
141 | 141 | then unit | |
142 | 142 | else throw("Match error") | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | let Q = valueOrErrorMessage(P, f("invalid treasury address")) | |
146 | 146 | ||
147 | 147 | func R (S,T) = if ((S.caller == T)) | |
148 | 148 | then true | |
149 | 149 | else h("permission denied") | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func U (S) = R(S, K) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func V (W,X) = { | |
156 | 156 | let g = size(W) | |
157 | 157 | let Y = W[0] | |
158 | 158 | let Z = Y._1 | |
159 | 159 | let aa = Y._2 | |
160 | 160 | let ab = W[1] | |
161 | 161 | let ac = ab._1 | |
162 | 162 | let ad = ab._2 | |
163 | 163 | let ae = W[2] | |
164 | 164 | let af = ae._1 | |
165 | 165 | let ag = ae._2 | |
166 | 166 | if (if ((g > 0)) | |
167 | 167 | then (Z == X) | |
168 | 168 | else false) | |
169 | 169 | then aa | |
170 | 170 | else if (if ((g > 1)) | |
171 | 171 | then (ac == X) | |
172 | 172 | else false) | |
173 | 173 | then ad | |
174 | 174 | else if (if ((g > 2)) | |
175 | 175 | then (af == X) | |
176 | 176 | else false) | |
177 | 177 | then ag | |
178 | 178 | else unit | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | @Callable(S) | |
183 | 183 | func claimLP (ah) = { | |
184 | 184 | let ai = U(S) | |
185 | 185 | if ((ai == ai)) | |
186 | 186 | then { | |
187 | 187 | let m = Address(ah) | |
188 | 188 | let aj = valueOrElse(getInteger(K, l(m)), 0) | |
189 | 189 | let ak = valueOrElse(getInteger(K, n(m)), 0) | |
190 | 190 | let al = if ((aj > 0)) | |
191 | 191 | then [invoke(K, "transferAsset", [ah, aj, O], nil), invoke(K, "integerEntry", [l(m), 0], nil), invoke(K, "stringEntry", [n(m), (ak + aj)], nil)] | |
192 | 192 | else h("nothing to claim") | |
193 | 193 | $Tuple2(nil, al) | |
194 | 194 | } | |
195 | 195 | else throw("Strict value is not equal to itself.") | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(S) | |
201 | 201 | func finalize (am,an,ao,ap) = { | |
202 | 202 | let aq = [if ((S.originCaller == K)) | |
203 | 203 | then true | |
204 | 204 | else h("permission denied"), if ((am >= 0)) | |
205 | 205 | then true | |
206 | 206 | else h("invalid new treasury volume"), if ((an >= 0)) | |
207 | 207 | then true | |
208 | 208 | else h("invalid XTN price"), if (if ((ao >= 0)) | |
209 | 209 | then (c >= ao) | |
210 | 210 | else false) | |
211 | 211 | then true | |
212 | 212 | else h("invalid PWR managers bonus"), if (if ((ap >= -(c))) | |
213 | 213 | then (c >= ap) | |
214 | 214 | else false) | |
215 | 215 | then true | |
216 | 216 | else h("invalid treasury volume diff allocation coefficient")] | |
217 | 217 | if ((aq == aq)) | |
218 | 218 | then { | |
219 | 219 | let ar = valueOrErrorMessage(getInteger(K, o()), f("invalid period")) | |
220 | 220 | let as = (ar + 1) | |
221 | 221 | let at = c | |
222 | 222 | let au = 0 | |
223 | 223 | let al = [invoke(K, "integerEntry", [o(), as], nil), invoke(K, "integerEntry", [p(as), at], nil), invoke(K, "burn", [au], nil)] | |
224 | 224 | $Tuple2(nil, al) | |
225 | 225 | } | |
226 | 226 | else throw("Strict value is not equal to itself.") | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | ||
231 | 231 | @Callable(S) | |
232 | 232 | func invest (ah) = { | |
233 | 233 | let ai = U(S) | |
234 | 234 | if ((ai == ai)) | |
235 | 235 | then { | |
236 | 236 | let m = Address(ah) | |
237 | 237 | let ar = valueOrErrorMessage(getInteger(K, o()), f("invalid period")) | |
238 | 238 | let av = valueOrErrorMessage(getInteger(K, p(ar)), f("invalid price")) | |
239 | 239 | let aw = if ((size(S.payments) == 1)) | |
240 | 240 | then S.payments[0] | |
241 | 241 | else h("invalid payments") | |
242 | 242 | let ax = if (if ((aw.assetId == unit)) | |
243 | 243 | then (aw.amount > 0) | |
244 | 244 | else false) | |
245 | 245 | then aw.amount | |
246 | 246 | else h("invalid payment amount") | |
247 | 247 | let B = if ((av > 0)) | |
248 | 248 | then fraction(ax, c, av) | |
249 | 249 | else 0 | |
250 | 250 | let al = [invoke(K, "integerEntry", ["invested__WAVES", 0], nil), invoke(K, "reissue", [B], nil), invoke(K, "transferAsset", [ah, B, O], nil), invoke(K, "transferWaves", [Q.bytes, ax], [AttachedPayment(unit, ax)])] | |
251 | 251 | $Tuple2(nil, al) | |
252 | 252 | } | |
253 | 253 | else throw("Strict value is not equal to itself.") | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(S) | |
259 | 259 | func withdraw (ah) = { | |
260 | 260 | let ai = U(S) | |
261 | 261 | if ((ai == ai)) | |
262 | 262 | then { | |
263 | 263 | let m = Address(ah) | |
264 | 264 | let ar = valueOrErrorMessage(getInteger(K, o()), f("invalid period")) | |
265 | 265 | let aw = if ((size(S.payments) == 1)) | |
266 | 266 | then S.payments[0] | |
267 | 267 | else h(f("invalid payments")) | |
268 | 268 | let ay = if ((aw.assetId == O)) | |
269 | 269 | then O | |
270 | 270 | else h("invalid payment asset") | |
271 | 271 | let ax = if ((aw.amount > 0)) | |
272 | 272 | then aw.amount | |
273 | 273 | else h("invalid payment amount") | |
274 | 274 | let al = [invoke(K, "stringEntry", [x(m, S.transactionId), z(d, ax, (ar + 1), unit)], nil)] | |
275 | 275 | if ((al == al)) | |
276 | 276 | then $Tuple2([ScriptTransfer(K, ax, ay)], al) | |
277 | 277 | else throw("Strict value is not equal to itself.") | |
278 | 278 | } | |
279 | 279 | else throw("Strict value is not equal to itself.") | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | ||
284 | 284 | @Callable(S) | |
285 | 285 | func cancelWithdraw (ah,y) = { | |
286 | 286 | let ai = U(S) | |
287 | 287 | if ((ai == ai)) | |
288 | 288 | then { | |
289 | 289 | let m = Address(ah) | |
290 | 290 | let az = valueOrErrorMessage(getString(K, x(m, y)), f("invalid withdrawal request")) | |
291 | 291 | let aA = H(az) | |
292 | 292 | let A = aA._1 | |
293 | 293 | let B = aA._2 | |
294 | 294 | let C = aA._3 | |
295 | 295 | let D = aA._4 | |
296 | 296 | if ((A == d)) | |
297 | 297 | then { | |
298 | 298 | let al = [invoke(K, "deleteEntry", [x(m, y)], nil), invoke(K, "transferAsset", [ah, B, O], nil)] | |
299 | 299 | if ((al == al)) | |
300 | 300 | then $Tuple2(nil, al) | |
301 | 301 | else throw("Strict value is not equal to itself.") | |
302 | 302 | } | |
303 | 303 | else h("invalid withdrawal request status") | |
304 | 304 | } | |
305 | 305 | else throw("Strict value is not equal to itself.") | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(S) | |
311 | 311 | func claimWaves (ah,y) = { | |
312 | 312 | let ai = U(S) | |
313 | 313 | if ((ai == ai)) | |
314 | 314 | then { | |
315 | 315 | let m = Address(ah) | |
316 | 316 | let ar = valueOrErrorMessage(getInteger(K, o()), f("invalid period")) | |
317 | 317 | let az = valueOrErrorMessage(getString(K, x(m, y)), f("invalid withdrawal request")) | |
318 | 318 | let aB = H(az) | |
319 | 319 | let A = aB._1 | |
320 | 320 | let B = aB._2 | |
321 | 321 | let C = aB._3 | |
322 | 322 | let D = aB._4 | |
323 | 323 | if ((A == e)) | |
324 | 324 | then h("invalid withdrawal request status") | |
325 | 325 | else if ((C > ar)) | |
326 | 326 | then h("invalid withdrawal request period") | |
327 | 327 | else { | |
328 | 328 | let av = valueOrErrorMessage(getInteger(K, p(ar)), f("invalid price")) | |
329 | 329 | let aC = if ((av > 0)) | |
330 | 330 | then fraction(B, av, c) | |
331 | 331 | else 0 | |
332 | 332 | let al = [invoke(K, "stringEntry", [x(m, y), z(e, B, C, S.transactionId)], nil), invoke(K, "burn", [B], nil), invoke(K, "transferWaves", [ah, aC], nil)] | |
333 | 333 | $Tuple2(nil, al) | |
334 | 334 | } | |
335 | 335 | } | |
336 | 336 | else throw("Strict value is not equal to itself.") | |
337 | 337 | } | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | ||
341 | 341 | @Callable(S) | |
342 | 342 | func processBlocks (ah) = { | |
343 | 343 | let ai = U(S) | |
344 | 344 | if ((ai == ai)) | |
345 | 345 | then { | |
346 | 346 | let m = Address(ah) | |
347 | 347 | let ar = valueOrErrorMessage(getInteger(K, o()), f("invalid period")) | |
348 | 348 | let aD = valueOrErrorMessage(getInteger(K, s()), f("invalid period length")) | |
349 | 349 | let aE = valueOrErrorMessage(getInteger(K, r(ar)), f("invalid start height")) | |
350 | 350 | let av = valueOrErrorMessage(getInteger(K, p(ar)), f("invalid price")) | |
351 | 351 | let aF = valueOrErrorMessage(getInteger(K, u()), f("invalid next block to process")) | |
352 | 352 | let aG = ((aE + aD) - 1) | |
353 | - | let aH = | |
353 | + | let aH = 50 | |
354 | 354 | let aI = if (if (if ((height >= aF)) | |
355 | 355 | then if ((aF >= aE)) | |
356 | 356 | then true | |
357 | 357 | else (ar == 0) | |
358 | 358 | else false) | |
359 | 359 | then (aG >= aF) | |
360 | 360 | else false) | |
361 | 361 | then min([((aG - aF) + 1), aH]) | |
362 | 362 | else h(f("invalid target block")) | |
363 | 363 | let aJ = valueOrErrorMessage(getInteger(K, t()), f("invalid block processing reward")) | |
364 | 364 | let aK = (aJ / aI) | |
365 | 365 | let aL = (aJ - (aK * aI)) | |
366 | 366 | func aM (aN,aO) = if ((aO >= aI)) | |
367 | 367 | then aN | |
368 | 368 | else { | |
369 | 369 | let aP = (aF + aO) | |
370 | 370 | let aQ = valueOrErrorMessage(blockInfoByHeight(aP), f("invalid block info")) | |
371 | 371 | let aR = valueOrErrorMessage(V(aQ.rewards, Q), f(("invalid treasury reward for height " + toString(aP)))) | |
372 | 372 | let aS = aQ.generator | |
373 | 373 | let aj = valueOrElse(getInteger(K, l(aS)), 0) | |
374 | 374 | let B = if ((av > 0)) | |
375 | 375 | then fraction((aR - aK), c, av) | |
376 | 376 | else 0 | |
377 | - | let aT = [invoke(K, "integerEntry", [v(aP), B], nil), invoke(K, "integerEntry", [l(aS), (aj + B)], nil)] | |
378 | - | if ((aT == aT)) | |
379 | - | then { | |
380 | - | let aU = if ((aO == (aI - 1))) | |
381 | - | then (aK + aL) | |
382 | - | else aK | |
383 | - | (aN + aU) | |
384 | - | } | |
377 | + | let aT = if ((aO == (aI - 1))) | |
378 | + | then (aK + aL) | |
379 | + | else aK | |
380 | + | let aU = [invoke(K, "integerEntry", [v(aP), makeString([toBase58String(S.transactionId), toBase58String(ah), toString(aR), toString(aT), toString(B)], a)], nil), invoke(K, "integerEntry", [l(aS), (aj + B)], nil)] | |
381 | + | if ((aU == aU)) | |
382 | + | then (aN + aT) | |
385 | 383 | else throw("Strict value is not equal to itself.") | |
386 | 384 | } | |
387 | 385 | ||
388 | - | let aU = { | |
389 | - | let aV = [0, 1, 2, 3, 4] | |
390 | - | let aW = size(aV) | |
391 | - | let aX = 0 | |
392 | - | func aY (aZ,ba) = if ((ba >= aW)) | |
393 | - | then aZ | |
394 | - | else aM(aZ, aV[ba]) | |
386 | + | let aV = [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] | |
387 | + | let aT = { | |
388 | + | let aW = aV | |
389 | + | let aX = size(aW) | |
390 | + | let aY = 0 | |
391 | + | func aZ (ba,bb) = if ((bb >= aX)) | |
392 | + | then ba | |
393 | + | else aM(ba, aW[bb]) | |
395 | 394 | ||
396 | - | func | |
397 | - | then | |
398 | - | else throw("List size exceeds | |
395 | + | func bc (ba,bb) = if ((bb >= aX)) | |
396 | + | then ba | |
397 | + | else throw("List size exceeds 50") | |
399 | 398 | ||
400 | - | | |
399 | + | bc(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aZ(aY, 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) | |
401 | 400 | } | |
402 | - | if (( | |
401 | + | if ((aT == aT)) | |
403 | 402 | then { | |
404 | - | let | |
405 | - | if (( | |
403 | + | let bd = [invoke(K, "transferWaves", [ah, aT], nil), invoke(K, "integerEntry", [u(), (aF + aI)], nil)] | |
404 | + | if ((bd == bd)) | |
406 | 405 | then $Tuple2(nil, unit) | |
407 | 406 | else throw("Strict value is not equal to itself.") | |
408 | 407 | } | |
409 | 408 | else throw("Strict value is not equal to itself.") | |
410 | 409 | } | |
411 | 410 | else throw("Strict value is not equal to itself.") | |
412 | 411 | } | |
413 | 412 | ||
414 | 413 | ||
415 | - | @Verifier( | |
416 | - | func | |
414 | + | @Verifier(be) | |
415 | + | func bf () = sigVerify(be.bodyBytes, be.proofs[0], be.senderPublicKey) | |
417 | 416 |
github/deemru/w8io/169f3d6 59.73 ms ◑