tx · H8kkox836HAEzoz5veDTdsgn3zraMnVuebgCNHmJjTsg 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA: -0.02000000 Waves 2023.07.04 17:29 [2651278] smart account 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA > SELF 0.00000000 Waves
{ "type": 13, "id": "H8kkox836HAEzoz5veDTdsgn3zraMnVuebgCNHmJjTsg", "fee": 2000000, "feeAssetId": null, "timestamp": 1688480965733, "version": 1, "sender": "3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA", "senderPublicKey": "8nr9XxGKmrRg6E6Zss6YPynBYEFbCf39Z2D9WvVuUgzY", "proofs": [ "2PWcQKpXp8Q3FyMM3wcdAiFkM12yv4DENDesr7mXHDQWNPPfUDzG2YP19hBFfej3HMTBnDJzQtechRzivtX4ph4r" ], "script": "base64:BwIqCAISAwoBAhIGCgQCAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECKgADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgEDYWJzAQFuAwkAZgIAAAUBbgkBAS0BBQFuBQFuARFrZXlGYWN0b3J5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgdmYWN0b3J5BQNuaWwFA1NFUAETa2V5TWFuYWdlclB1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tYXRjaDAJARlnZXRNYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBANwdWIFByRtYXRjaDAFA3B1YggFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJcHVibGljS2V5WUHQag==", "chainId": 84, "height": 2651278, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 44m9yjWpS7gNhmv6EENXArPuAkciZcSLmL6kCRfkzgjP Next: 6V5NjdS5m2hEkJJMi5ymcKJDFwHGbqYuxh5DL8xVcwGS Diff:
Old | New | Differences | |
---|---|---|---|
40 | 40 | func p () = makeString(["%s", "factory"], a) | |
41 | 41 | ||
42 | 42 | ||
43 | - | func q () = makeString(["%s", " | |
43 | + | func q () = makeString(["%s", "managerPublicKey"], a) | |
44 | 44 | ||
45 | 45 | ||
46 | - | func r () = makeString(["%s", " | |
46 | + | func r () = makeString(["%s", "lpAssetId"], a) | |
47 | 47 | ||
48 | 48 | ||
49 | - | func s () = makeString(["%s", " | |
49 | + | func s () = makeString(["%s", "proxyTreasury"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | - | func t ( | |
52 | + | func t () = makeString(["%s", "mainTreasury"], a) | |
53 | 53 | ||
54 | 54 | ||
55 | - | func u (k) = makeString(["%s%s", " | |
55 | + | func u (k) = makeString(["%s%s", "invested", j(k)], a) | |
56 | 56 | ||
57 | 57 | ||
58 | - | func v ( | |
58 | + | func v (k) = makeString(["%s%s", "donated", j(k)], a) | |
59 | 59 | ||
60 | 60 | ||
61 | - | func | |
61 | + | func w (x) = makeString(["%s%s", "available", toString(x)], a) | |
62 | 62 | ||
63 | 63 | ||
64 | - | func y () = makeString(["%s", " | |
64 | + | func y (x) = makeString(["%s%s", "claimed", toString(x)], a) | |
65 | 65 | ||
66 | 66 | ||
67 | - | func z ( | |
67 | + | func z () = makeString(["%s", "currentPeriod"], a) | |
68 | 68 | ||
69 | 69 | ||
70 | - | func | |
70 | + | func A (B) = makeString(["%s%d", "price", toString(B)], a) | |
71 | 71 | ||
72 | 72 | ||
73 | - | func C () = "%s | |
73 | + | func C (B) = makeString(["%s%d", "startHeight", toString(B)], a) | |
74 | 74 | ||
75 | 75 | ||
76 | - | func D () = "%s__ | |
76 | + | func D () = "%s__periodLength" | |
77 | 77 | ||
78 | 78 | ||
79 | - | func E () = "%s__ | |
79 | + | func E () = "%s__blockProcessingReward" | |
80 | 80 | ||
81 | 81 | ||
82 | - | func F ( | |
82 | + | func F () = "%s__nextBlockToProcess" | |
83 | 83 | ||
84 | 84 | ||
85 | - | func | |
85 | + | func G (H) = makeString(["%s%d", "blockProcessed", toString(H)], a) | |
86 | 86 | ||
87 | 87 | ||
88 | - | func I ( | |
88 | + | func I () = "%s__withdrawal" | |
89 | 89 | ||
90 | 90 | ||
91 | - | func K (L,M,N,O) = { | |
92 | - | let P = { | |
93 | - | let l = O | |
91 | + | func J (x,K) = makeString(["%s%s%s", "withdrawal", toString(x), toBase58String(K)], a) | |
92 | + | ||
93 | + | ||
94 | + | func L (M,N,O,P) = { | |
95 | + | let Q = { | |
96 | + | let l = P | |
94 | 97 | if ($isInstanceOf(l, "ByteVector")) | |
95 | 98 | then { | |
96 | 99 | let m = l | |
100 | 103 | then "SOON" | |
101 | 104 | else throw("Match error") | |
102 | 105 | } | |
103 | - | makeString(["%s%d%d%s", | |
106 | + | makeString(["%s%d%d%s", M, toString(N), toString(O), Q], a) | |
104 | 107 | } | |
105 | 108 | ||
106 | 109 | ||
107 | - | func | |
108 | - | let | |
109 | - | if ((size( | |
110 | + | func R (h) = { | |
111 | + | let S = split(h, a) | |
112 | + | if ((size(S) == 5)) | |
110 | 113 | then { | |
111 | - | let | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | $Tuple4( | |
114 | + | let M = S[1] | |
115 | + | let N = valueOrErrorMessage(parseInt(S[2]), g("invalid lpAssetAmount")) | |
116 | + | let O = valueOrErrorMessage(parseInt(S[3]), g("invalid targetPeriod")) | |
117 | + | let P = S[4] | |
118 | + | $Tuple4(M, N, O, P) | |
116 | 119 | } | |
117 | 120 | else i("invalid withdrawal request value") | |
118 | 121 | } | |
119 | 122 | ||
120 | 123 | ||
121 | - | let | |
124 | + | let T = { | |
122 | 125 | let l = getString(this, p()) | |
123 | 126 | if ($isInstanceOf(l, "String")) | |
124 | 127 | then { | |
130 | 133 | else throw("Match error") | |
131 | 134 | } | |
132 | 135 | ||
133 | - | let | |
136 | + | let U = valueOrErrorMessage(T, g("invalid factory address")) | |
134 | 137 | ||
135 | - | let | |
136 | - | let l = | |
138 | + | let V = { | |
139 | + | let l = T | |
137 | 140 | if ($isInstanceOf(l, "Address")) | |
138 | 141 | then { | |
139 | - | let | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
142 | + | let W = l | |
143 | + | let X = getString(W, r()) | |
144 | + | if ($isInstanceOf(X, "String")) | |
142 | 145 | then { | |
143 | - | let h = | |
146 | + | let h = X | |
144 | 147 | fromBase58String(h) | |
145 | 148 | } | |
146 | - | else if ($isInstanceOf( | |
149 | + | else if ($isInstanceOf(X, "Unit")) | |
147 | 150 | then unit | |
148 | 151 | else throw("Match error") | |
149 | 152 | } | |
152 | 155 | else throw("Match error") | |
153 | 156 | } | |
154 | 157 | ||
155 | - | let | |
158 | + | let Y = valueOrErrorMessage(V, g("invalid lpAssetId")) | |
156 | 159 | ||
157 | - | let | |
158 | - | let l = | |
160 | + | let Z = { | |
161 | + | let l = T | |
159 | 162 | if ($isInstanceOf(l, "Address")) | |
160 | 163 | then { | |
161 | - | let | |
162 | - | let | |
163 | - | if ($isInstanceOf( | |
164 | + | let W = l | |
165 | + | let X = getString(W, s()) | |
166 | + | if ($isInstanceOf(X, "String")) | |
164 | 167 | then { | |
165 | - | let h = | |
168 | + | let h = X | |
166 | 169 | addressFromString(h) | |
167 | 170 | } | |
168 | - | else if ($isInstanceOf( | |
171 | + | else if ($isInstanceOf(X, "Unit")) | |
169 | 172 | then unit | |
170 | 173 | else throw("Match error") | |
171 | 174 | } | |
174 | 177 | else throw("Match error") | |
175 | 178 | } | |
176 | 179 | ||
177 | - | let | |
180 | + | let aa = valueOrErrorMessage(Z, g("invalid proxy treasury address")) | |
178 | 181 | ||
179 | - | let | |
180 | - | let l = | |
182 | + | let ab = { | |
183 | + | let l = T | |
181 | 184 | if ($isInstanceOf(l, "Address")) | |
182 | 185 | then { | |
183 | - | let | |
184 | - | let | |
185 | - | if ($isInstanceOf( | |
186 | + | let W = l | |
187 | + | let X = getString(W, t()) | |
188 | + | if ($isInstanceOf(X, "String")) | |
186 | 189 | then { | |
187 | - | let h = | |
190 | + | let h = X | |
188 | 191 | addressFromString(h) | |
189 | 192 | } | |
190 | - | else if ($isInstanceOf( | |
193 | + | else if ($isInstanceOf(X, "Unit")) | |
191 | 194 | then unit | |
192 | 195 | else throw("Match error") | |
193 | 196 | } | |
196 | 199 | else throw("Match error") | |
197 | 200 | } | |
198 | 201 | ||
199 | - | let | |
202 | + | let ac = valueOrErrorMessage(ab, g("invalid main treasury address")) | |
200 | 203 | ||
201 | - | func ac (ad,ae) = if ((ad.caller == ae)) | |
204 | + | func ad () = { | |
205 | + | let l = T | |
206 | + | if ($isInstanceOf(l, "Address")) | |
207 | + | then { | |
208 | + | let ae = l | |
209 | + | let X = getString(ae, q()) | |
210 | + | if ($isInstanceOf(X, "String")) | |
211 | + | then { | |
212 | + | let af = X | |
213 | + | fromBase58String(af) | |
214 | + | } | |
215 | + | else unit | |
216 | + | } | |
217 | + | else unit | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | func ag (ah,ai) = if ((ah.caller == ai)) | |
202 | 222 | then true | |
203 | 223 | else i("permission denied") | |
204 | 224 | ||
205 | 225 | ||
206 | - | func | |
226 | + | func aj (ah) = ag(ah, U) | |
207 | 227 | ||
208 | 228 | ||
209 | - | func | |
210 | - | let h = size( | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
229 | + | func ak (al,am) = { | |
230 | + | let h = size(al) | |
231 | + | let an = al[0] | |
232 | + | let ao = an._1 | |
233 | + | let ap = an._2 | |
234 | + | let aq = al[1] | |
235 | + | let ar = aq._1 | |
236 | + | let as = aq._2 | |
237 | + | let at = al[2] | |
238 | + | let au = at._1 | |
239 | + | let av = at._2 | |
220 | 240 | if (if ((h > 0)) | |
221 | - | then ( | |
241 | + | then (ao == am) | |
222 | 242 | else false) | |
223 | - | then | |
243 | + | then ap | |
224 | 244 | else if (if ((h > 1)) | |
225 | - | then ( | |
245 | + | then (ar == am) | |
226 | 246 | else false) | |
227 | - | then | |
247 | + | then as | |
228 | 248 | else if (if ((h > 2)) | |
229 | - | then ( | |
249 | + | then (au == am) | |
230 | 250 | else false) | |
231 | - | then | |
251 | + | then av | |
232 | 252 | else unit | |
233 | 253 | } | |
234 | 254 | ||
235 | 255 | ||
236 | - | @Callable( | |
237 | - | func claimLP ( | |
238 | - | let | |
239 | - | if (( | |
256 | + | @Callable(ah) | |
257 | + | func claimLP (aw) = { | |
258 | + | let ax = aj(ah) | |
259 | + | if ((ax == ax)) | |
240 | 260 | then { | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | then [invoke( | |
261 | + | let x = Address(aw) | |
262 | + | let ay = valueOrElse(getInteger(U, w(x)), 0) | |
263 | + | let az = valueOrElse(getInteger(U, y(x)), 0) | |
264 | + | let aA = if ((ay > 0)) | |
265 | + | then [invoke(U, "transferAsset", [aw, ay, Y], nil), invoke(U, "integerEntry", [w(x), 0], nil), invoke(U, "integerEntry", [y(x), (az + ay)], nil)] | |
246 | 266 | else i("nothing to claim") | |
247 | - | $Tuple2(nil, | |
267 | + | $Tuple2(nil, aA) | |
248 | 268 | } | |
249 | 269 | else throw("Strict value is not equal to itself.") | |
250 | 270 | } | |
251 | 271 | ||
252 | 272 | ||
253 | 273 | ||
254 | - | @Callable( | |
255 | - | func finalize ( | |
256 | - | let | |
257 | - | if (( | |
274 | + | @Callable(ah) | |
275 | + | func finalize (aw,aB,aC,aD) = { | |
276 | + | let ax = aj(ah) | |
277 | + | if ((ax == ax)) | |
258 | 278 | then { | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
279 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
280 | + | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
281 | + | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
282 | + | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
283 | + | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
284 | + | let aJ = ((aG + aF) - 1) | |
285 | + | let aK = [if ((ah.originCaller == ac)) | |
266 | 286 | then true | |
267 | - | else i("permission denied"), if (( | |
287 | + | else i("permission denied"), if ((aI > aJ)) | |
268 | 288 | then true | |
269 | - | else i("unprocessed blocks"), if (( | |
289 | + | else i("unprocessed blocks"), if ((aB >= 0)) | |
270 | 290 | then true | |
271 | - | else i("invalid new treasury volume"), if (( | |
291 | + | else i("invalid new treasury volume"), if ((aC >= 0)) | |
272 | 292 | then true | |
273 | - | else i("invalid PWR managers bonus"), if (if (( | |
274 | - | then (c >= | |
293 | + | else i("invalid PWR managers bonus"), if (if ((aD >= -(c))) | |
294 | + | then (c >= aD) | |
275 | 295 | else false) | |
276 | 296 | then true | |
277 | 297 | else i("invalid treasury volume diff allocation coefficient")] | |
278 | - | if (( | |
298 | + | if ((aK == aK)) | |
279 | 299 | then { | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | then ( | |
300 | + | let aL = valueOrElse(getInteger(U, v(unit)), 0) | |
301 | + | let aM = valueOrElse(getInteger(U, u(unit)), 0) | |
302 | + | let aN = (aL + aM) | |
303 | + | let aO = (aB - aN) | |
304 | + | let aP = if (if ((aO > 0)) | |
305 | + | then (aO >= aC) | |
286 | 306 | else false) | |
287 | - | then | |
307 | + | then aC | |
288 | 308 | else 0 | |
289 | - | let | |
290 | - | let | |
291 | - | then fraction( | |
309 | + | let aQ = (aO - aP) | |
310 | + | let aR = if ((aN > 0)) | |
311 | + | then fraction(aL, c, aN) | |
292 | 312 | else 0 | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | then | |
313 | + | let aS = fraction(aQ, aR, c) | |
314 | + | let aT = (aQ - aS) | |
315 | + | let aU = n(aD) | |
316 | + | let aV = fraction(aT, if ((0 > aD)) | |
317 | + | then aU | |
298 | 318 | else 0, c) | |
299 | - | let | |
300 | - | then | |
319 | + | let aW = fraction(aS, if ((aD > 0)) | |
320 | + | then aU | |
301 | 321 | else 0, c) | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | then | |
322 | + | let aX = ((aS - aW) + aV) | |
323 | + | let aY = ((aT - aV) + aW) | |
324 | + | let aZ = (aM + aY) | |
325 | + | let ba = (aE + 1) | |
326 | + | let bb = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
327 | + | let bc = fraction(aZ, c, bb) | |
328 | + | let bd = valueOrElse(getInteger(U, I()), 0) | |
329 | + | let be = (bb - bd) | |
330 | + | let bf = max([0, fraction(be, bc, c)]) | |
331 | + | let bg = max([0, fraction(bd, bc, c)]) | |
332 | + | let bh = if ((size(ah.payments) > 0)) | |
333 | + | then ah.payments[0] | |
314 | 334 | else unit | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
335 | + | let bi = value(bh).amount | |
336 | + | let bj = value(bh).assetId | |
337 | + | let bk = if (if ((bg == 0)) | |
318 | 338 | then true | |
319 | - | else if (if (( | |
320 | - | then ( | |
339 | + | else if (if ((bh != unit)) | |
340 | + | then (bj == unit) | |
321 | 341 | else false) | |
322 | - | then ( | |
342 | + | then (bi >= bg) | |
323 | 343 | else false) | |
324 | 344 | then true | |
325 | - | else i(("invalid payments, payment amount min: " + toString( | |
326 | - | if (( | |
345 | + | else i(("invalid payments, payment amount min: " + toString(bg))) | |
346 | + | if ((bk == bk)) | |
327 | 347 | then { | |
328 | - | let | |
329 | - | then [ScriptTransfer( | |
348 | + | let bl = if ((bh != unit)) | |
349 | + | then [ScriptTransfer(U, bi, bj)] | |
330 | 350 | else nil | |
331 | - | let | |
332 | - | $Tuple2( | |
351 | + | let aA = [invoke(U, "integerEntry", [z(), ba], nil), invoke(U, "integerEntry", [A(ba), bc], nil), invoke(U, "integerEntry", [C(ba), (aJ + 1)], nil), invoke(U, "burn", [bd], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), bf], nil)] | |
352 | + | $Tuple2(bl, aA) | |
333 | 353 | } | |
334 | 354 | else throw("Strict value is not equal to itself.") | |
335 | 355 | } | |
340 | 360 | ||
341 | 361 | ||
342 | 362 | ||
343 | - | @Callable( | |
344 | - | func invest ( | |
345 | - | let | |
346 | - | if (( | |
363 | + | @Callable(ah) | |
364 | + | func invest (aw) = { | |
365 | + | let ax = aj(ah) | |
366 | + | if ((ax == ax)) | |
347 | 367 | then { | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | then | |
368 | + | let x = Address(aw) | |
369 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
370 | + | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
371 | + | let bm = if ((size(ah.payments) == 1)) | |
372 | + | then ah.payments[0] | |
353 | 373 | else i("invalid payments") | |
354 | - | let | |
355 | - | then ( | |
374 | + | let bn = if (if ((bm.assetId == unit)) | |
375 | + | then (bm.amount > 0) | |
356 | 376 | else false) | |
357 | - | then $Tuple2( | |
377 | + | then $Tuple2(bm.amount, bm.assetId) | |
358 | 378 | else i("invalid payment amount") | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | then fraction( | |
379 | + | let bi = bn._1 | |
380 | + | let bj = bn._2 | |
381 | + | let N = if ((aH > 0)) | |
382 | + | then fraction(bi, c, aH) | |
363 | 383 | else 0 | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | $Tuple2( | |
384 | + | let bo = valueOrElse(getInteger(U, u(unit)), 0) | |
385 | + | let bl = [ScriptTransfer(ac, bi, bj)] | |
386 | + | let aA = [invoke(U, "integerEntry", [u(unit), (bo + bi)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
387 | + | $Tuple2(bl, aA) | |
368 | 388 | } | |
369 | 389 | else throw("Strict value is not equal to itself.") | |
370 | 390 | } | |
371 | 391 | ||
372 | 392 | ||
373 | 393 | ||
374 | - | @Callable( | |
375 | - | func withdraw ( | |
376 | - | let | |
377 | - | if (( | |
394 | + | @Callable(ah) | |
395 | + | func withdraw (aw) = { | |
396 | + | let ax = aj(ah) | |
397 | + | if ((ax == ax)) | |
378 | 398 | then { | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | then | |
399 | + | let x = Address(aw) | |
400 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
401 | + | let bm = if ((size(ah.payments) == 1)) | |
402 | + | then ah.payments[0] | |
383 | 403 | else i(g("invalid payments")) | |
384 | - | let | |
385 | - | then | |
404 | + | let bj = if ((bm.assetId == Y)) | |
405 | + | then Y | |
386 | 406 | else i("invalid payment asset") | |
387 | - | let | |
388 | - | then | |
407 | + | let bi = if ((bm.amount > 0)) | |
408 | + | then bm.amount | |
389 | 409 | else i("invalid payment amount") | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | if (( | |
394 | - | then $Tuple2( | |
410 | + | let bp = valueOrElse(getInteger(U, I()), 0) | |
411 | + | let bl = [ScriptTransfer(U, bi, bj)] | |
412 | + | let aA = [invoke(U, "integerEntry", [I(), (bp + bi)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bi, (aE + 1), unit)], nil)] | |
413 | + | if ((aA == aA)) | |
414 | + | then $Tuple2(bl, aA) | |
395 | 415 | else throw("Strict value is not equal to itself.") | |
396 | 416 | } | |
397 | 417 | else throw("Strict value is not equal to itself.") | |
399 | 419 | ||
400 | 420 | ||
401 | 421 | ||
402 | - | @Callable( | |
403 | - | func cancelWithdraw ( | |
404 | - | let | |
405 | - | if (( | |
422 | + | @Callable(ah) | |
423 | + | func cancelWithdraw (aw,K) = { | |
424 | + | let ax = aj(ah) | |
425 | + | if ((ax == ax)) | |
406 | 426 | then { | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
427 | + | let x = Address(aw) | |
428 | + | let bq = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
429 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
430 | + | let br = R(bq) | |
431 | + | let M = br._1 | |
432 | + | let N = br._2 | |
433 | + | let O = br._3 | |
434 | + | let P = br._4 | |
435 | + | let aK = [if ((M == d)) | |
416 | 436 | then true | |
417 | - | else i("invalid withdrawal request status"), if (( | |
437 | + | else i("invalid withdrawal request status"), if ((O > aE)) | |
418 | 438 | then true | |
419 | 439 | else i("invalid withdrawal request period")] | |
420 | - | if (( | |
440 | + | if ((aK == aK)) | |
421 | 441 | then { | |
422 | - | let | |
423 | - | let | |
424 | - | then ( | |
425 | - | else i("invalid withdrawal amount")], nil), invoke( | |
426 | - | if (( | |
427 | - | then $Tuple2(nil, | |
442 | + | let bp = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount")) | |
443 | + | let aA = [invoke(U, "integerEntry", [I(), if ((bp >= N)) | |
444 | + | then (bp - N) | |
445 | + | else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
446 | + | if ((aA == aA)) | |
447 | + | then $Tuple2(nil, aA) | |
428 | 448 | else throw("Strict value is not equal to itself.") | |
429 | 449 | } | |
430 | 450 | else throw("Strict value is not equal to itself.") | |
434 | 454 | ||
435 | 455 | ||
436 | 456 | ||
437 | - | @Callable( | |
438 | - | func claimWaves ( | |
439 | - | let | |
440 | - | if (( | |
457 | + | @Callable(ah) | |
458 | + | func claimWaves (aw,K) = { | |
459 | + | let ax = aj(ah) | |
460 | + | if ((ax == ax)) | |
441 | 461 | then { | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | if (( | |
462 | + | let x = Address(aw) | |
463 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
464 | + | let bq = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
465 | + | let bs = R(bq) | |
466 | + | let M = bs._1 | |
467 | + | let N = bs._2 | |
468 | + | let O = bs._3 | |
469 | + | let P = bs._4 | |
470 | + | if ((M == e)) | |
451 | 471 | then i("invalid withdrawal request status") | |
452 | - | else if (( | |
472 | + | else if ((O > aE)) | |
453 | 473 | then i("invalid withdrawal request period") | |
454 | 474 | else { | |
455 | - | let | |
456 | - | let | |
457 | - | then fraction( | |
475 | + | let bt = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price")) | |
476 | + | let bu = if ((bt > 0)) | |
477 | + | then fraction(N, bt, c) | |
458 | 478 | else 0 | |
459 | - | let | |
460 | - | $Tuple2(nil, | |
479 | + | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bu], nil)] | |
480 | + | $Tuple2(nil, aA) | |
461 | 481 | } | |
462 | 482 | } | |
463 | 483 | else throw("Strict value is not equal to itself.") | |
465 | 485 | ||
466 | 486 | ||
467 | 487 | ||
468 | - | @Callable( | |
469 | - | func processBlocks ( | |
470 | - | let | |
471 | - | if (( | |
488 | + | @Callable(ah) | |
489 | + | func processBlocks (aw) = { | |
490 | + | let ax = aj(ah) | |
491 | + | if ((ax == ax)) | |
472 | 492 | then { | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | then if (( | |
493 | + | let x = Address(aw) | |
494 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
495 | + | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
496 | + | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
497 | + | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
498 | + | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
499 | + | let aJ = ((aG + aF) - 1) | |
500 | + | let bv = 40 | |
501 | + | let bw = if (if (if ((height >= aI)) | |
502 | + | then if ((aI >= aG)) | |
483 | 503 | then true | |
484 | - | else ( | |
504 | + | else (aE == 0) | |
485 | 505 | else false) | |
486 | - | then ( | |
506 | + | then (aJ >= aI) | |
487 | 507 | else false) | |
488 | - | then min([(( | |
508 | + | then min([((aJ - aI) + 1), bv]) | |
489 | 509 | else i(g("invalid target block")) | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | func | |
494 | - | then | |
510 | + | let bx = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward")) | |
511 | + | let by = (bx / bw) | |
512 | + | let bz = (bx - (by * bw)) | |
513 | + | func bA (bB,bC) = if ((bC >= bw)) | |
514 | + | then bB | |
495 | 515 | else { | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | then ( | |
503 | - | else | |
504 | - | let | |
505 | - | then fraction(( | |
516 | + | let bD = (aI + bC) | |
517 | + | let bE = valueOrErrorMessage(blockInfoByHeight(bD), g("invalid block info")) | |
518 | + | let bF = valueOrErrorMessage(ak(bE.rewards, aa), g(("invalid treasury reward for height " + toString(bD)))) | |
519 | + | let bG = bE.generator | |
520 | + | let ay = valueOrElse(getInteger(U, w(bG)), 0) | |
521 | + | let bH = if ((bC == (bw - 1))) | |
522 | + | then (by + bz) | |
523 | + | else by | |
524 | + | let N = if ((aH > 0)) | |
525 | + | then fraction((bF - bH), c, aH) | |
506 | 526 | else 0 | |
507 | - | let | |
508 | - | if (( | |
527 | + | let bI = [invoke(U, "stringEntry", [G(bD), makeString([toBase58String(ah.transactionId), toString(aE), toString(bG), toBase58String(aw), toString(bF), toString(bH), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bG), (ay + N)], nil)] | |
528 | + | if ((bI == bI)) | |
509 | 529 | then { | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | $Tuple2(( | |
530 | + | let bJ = bB | |
531 | + | let bK = bJ._1 | |
532 | + | let bL = bJ._2 | |
533 | + | $Tuple2((bK + N), (bL + bF)) | |
514 | 534 | } | |
515 | 535 | else throw("Strict value is not equal to itself.") | |
516 | 536 | } | |
517 | 537 | ||
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | func | |
524 | - | then | |
525 | - | else | |
538 | + | let bM = [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] | |
539 | + | let bN = { | |
540 | + | let bO = bM | |
541 | + | let bP = size(bO) | |
542 | + | let bQ = $Tuple2(0, 0) | |
543 | + | func bR (bS,bT) = if ((bT >= bP)) | |
544 | + | then bS | |
545 | + | else bA(bS, bO[bT]) | |
526 | 546 | ||
527 | - | func | |
528 | - | then | |
547 | + | func bU (bS,bT) = if ((bT >= bP)) | |
548 | + | then bS | |
529 | 549 | else throw("List size exceeds 40") | |
530 | 550 | ||
531 | - | bQ | |
551 | + | bU(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bQ, 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) | |
532 | 552 | } | |
533 | - | if (( | |
553 | + | if ((bN == bN)) | |
534 | 554 | then { | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | if (( | |
555 | + | let bV = bN._2 | |
556 | + | let bW = bN._1 | |
557 | + | let bX = (bV - bx) | |
558 | + | let bo = valueOrElse(getInteger(U, u(unit)), 0) | |
559 | + | let bl = [invoke(U, "reissue", [bW], nil), invoke(U, "integerEntry", [F(), (aI + bw)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, bX], nil), invoke(U, "transferFromProxyTreasury", [aw, bx], nil), invoke(U, "integerEntry", [u(unit), (bo + bX)], nil)] | |
560 | + | if ((bl == bl)) | |
541 | 561 | then $Tuple2(nil, unit) | |
542 | 562 | else throw("Strict value is not equal to itself.") | |
543 | 563 | } | |
547 | 567 | } | |
548 | 568 | ||
549 | 569 | ||
550 | - | @Verifier(bU) | |
551 | - | func bV () = sigVerify(bU.bodyBytes, bU.proofs[0], bU.senderPublicKey) | |
570 | + | @Verifier(bY) | |
571 | + | func bZ () = { | |
572 | + | let ca = { | |
573 | + | let l = ad() | |
574 | + | if ($isInstanceOf(l, "ByteVector")) | |
575 | + | then { | |
576 | + | let af = l | |
577 | + | af | |
578 | + | } | |
579 | + | else bY.senderPublicKey | |
580 | + | } | |
581 | + | sigVerify(bY.bodyBytes, bY.proofs[0], ca) | |
582 | + | } | |
552 | 583 |
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 | let f = "WAVES" | |
15 | 15 | ||
16 | 16 | func g (h) = ((b + ": ") + h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (k) = { | |
23 | 23 | let l = k | |
24 | 24 | if ($isInstanceOf(l, "ByteVector")) | |
25 | 25 | then { | |
26 | 26 | let m = l | |
27 | 27 | toBase58String(m) | |
28 | 28 | } | |
29 | 29 | else if ($isInstanceOf(l, "Unit")) | |
30 | 30 | then f | |
31 | 31 | else throw("Match error") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func n (o) = if ((0 > o)) | |
36 | 36 | then -(o) | |
37 | 37 | else o | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func p () = makeString(["%s", "factory"], a) | |
41 | 41 | ||
42 | 42 | ||
43 | - | func q () = makeString(["%s", " | |
43 | + | func q () = makeString(["%s", "managerPublicKey"], a) | |
44 | 44 | ||
45 | 45 | ||
46 | - | func r () = makeString(["%s", " | |
46 | + | func r () = makeString(["%s", "lpAssetId"], a) | |
47 | 47 | ||
48 | 48 | ||
49 | - | func s () = makeString(["%s", " | |
49 | + | func s () = makeString(["%s", "proxyTreasury"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | - | func t ( | |
52 | + | func t () = makeString(["%s", "mainTreasury"], a) | |
53 | 53 | ||
54 | 54 | ||
55 | - | func u (k) = makeString(["%s%s", " | |
55 | + | func u (k) = makeString(["%s%s", "invested", j(k)], a) | |
56 | 56 | ||
57 | 57 | ||
58 | - | func v ( | |
58 | + | func v (k) = makeString(["%s%s", "donated", j(k)], a) | |
59 | 59 | ||
60 | 60 | ||
61 | - | func | |
61 | + | func w (x) = makeString(["%s%s", "available", toString(x)], a) | |
62 | 62 | ||
63 | 63 | ||
64 | - | func y () = makeString(["%s", " | |
64 | + | func y (x) = makeString(["%s%s", "claimed", toString(x)], a) | |
65 | 65 | ||
66 | 66 | ||
67 | - | func z ( | |
67 | + | func z () = makeString(["%s", "currentPeriod"], a) | |
68 | 68 | ||
69 | 69 | ||
70 | - | func | |
70 | + | func A (B) = makeString(["%s%d", "price", toString(B)], a) | |
71 | 71 | ||
72 | 72 | ||
73 | - | func C () = "%s | |
73 | + | func C (B) = makeString(["%s%d", "startHeight", toString(B)], a) | |
74 | 74 | ||
75 | 75 | ||
76 | - | func D () = "%s__ | |
76 | + | func D () = "%s__periodLength" | |
77 | 77 | ||
78 | 78 | ||
79 | - | func E () = "%s__ | |
79 | + | func E () = "%s__blockProcessingReward" | |
80 | 80 | ||
81 | 81 | ||
82 | - | func F ( | |
82 | + | func F () = "%s__nextBlockToProcess" | |
83 | 83 | ||
84 | 84 | ||
85 | - | func | |
85 | + | func G (H) = makeString(["%s%d", "blockProcessed", toString(H)], a) | |
86 | 86 | ||
87 | 87 | ||
88 | - | func I ( | |
88 | + | func I () = "%s__withdrawal" | |
89 | 89 | ||
90 | 90 | ||
91 | - | func K (L,M,N,O) = { | |
92 | - | let P = { | |
93 | - | let l = O | |
91 | + | func J (x,K) = makeString(["%s%s%s", "withdrawal", toString(x), toBase58String(K)], a) | |
92 | + | ||
93 | + | ||
94 | + | func L (M,N,O,P) = { | |
95 | + | let Q = { | |
96 | + | let l = P | |
94 | 97 | if ($isInstanceOf(l, "ByteVector")) | |
95 | 98 | then { | |
96 | 99 | let m = l | |
97 | 100 | toBase58String(m) | |
98 | 101 | } | |
99 | 102 | else if ($isInstanceOf(l, "Unit")) | |
100 | 103 | then "SOON" | |
101 | 104 | else throw("Match error") | |
102 | 105 | } | |
103 | - | makeString(["%s%d%d%s", | |
106 | + | makeString(["%s%d%d%s", M, toString(N), toString(O), Q], a) | |
104 | 107 | } | |
105 | 108 | ||
106 | 109 | ||
107 | - | func | |
108 | - | let | |
109 | - | if ((size( | |
110 | + | func R (h) = { | |
111 | + | let S = split(h, a) | |
112 | + | if ((size(S) == 5)) | |
110 | 113 | then { | |
111 | - | let | |
112 | - | let | |
113 | - | let | |
114 | - | let | |
115 | - | $Tuple4( | |
114 | + | let M = S[1] | |
115 | + | let N = valueOrErrorMessage(parseInt(S[2]), g("invalid lpAssetAmount")) | |
116 | + | let O = valueOrErrorMessage(parseInt(S[3]), g("invalid targetPeriod")) | |
117 | + | let P = S[4] | |
118 | + | $Tuple4(M, N, O, P) | |
116 | 119 | } | |
117 | 120 | else i("invalid withdrawal request value") | |
118 | 121 | } | |
119 | 122 | ||
120 | 123 | ||
121 | - | let | |
124 | + | let T = { | |
122 | 125 | let l = getString(this, p()) | |
123 | 126 | if ($isInstanceOf(l, "String")) | |
124 | 127 | then { | |
125 | 128 | let h = l | |
126 | 129 | addressFromString(h) | |
127 | 130 | } | |
128 | 131 | else if ($isInstanceOf(l, "Unit")) | |
129 | 132 | then unit | |
130 | 133 | else throw("Match error") | |
131 | 134 | } | |
132 | 135 | ||
133 | - | let | |
136 | + | let U = valueOrErrorMessage(T, g("invalid factory address")) | |
134 | 137 | ||
135 | - | let | |
136 | - | let l = | |
138 | + | let V = { | |
139 | + | let l = T | |
137 | 140 | if ($isInstanceOf(l, "Address")) | |
138 | 141 | then { | |
139 | - | let | |
140 | - | let | |
141 | - | if ($isInstanceOf( | |
142 | + | let W = l | |
143 | + | let X = getString(W, r()) | |
144 | + | if ($isInstanceOf(X, "String")) | |
142 | 145 | then { | |
143 | - | let h = | |
146 | + | let h = X | |
144 | 147 | fromBase58String(h) | |
145 | 148 | } | |
146 | - | else if ($isInstanceOf( | |
149 | + | else if ($isInstanceOf(X, "Unit")) | |
147 | 150 | then unit | |
148 | 151 | else throw("Match error") | |
149 | 152 | } | |
150 | 153 | else if ($isInstanceOf(l, "Unit")) | |
151 | 154 | then unit | |
152 | 155 | else throw("Match error") | |
153 | 156 | } | |
154 | 157 | ||
155 | - | let | |
158 | + | let Y = valueOrErrorMessage(V, g("invalid lpAssetId")) | |
156 | 159 | ||
157 | - | let | |
158 | - | let l = | |
160 | + | let Z = { | |
161 | + | let l = T | |
159 | 162 | if ($isInstanceOf(l, "Address")) | |
160 | 163 | then { | |
161 | - | let | |
162 | - | let | |
163 | - | if ($isInstanceOf( | |
164 | + | let W = l | |
165 | + | let X = getString(W, s()) | |
166 | + | if ($isInstanceOf(X, "String")) | |
164 | 167 | then { | |
165 | - | let h = | |
168 | + | let h = X | |
166 | 169 | addressFromString(h) | |
167 | 170 | } | |
168 | - | else if ($isInstanceOf( | |
171 | + | else if ($isInstanceOf(X, "Unit")) | |
169 | 172 | then unit | |
170 | 173 | else throw("Match error") | |
171 | 174 | } | |
172 | 175 | else if ($isInstanceOf(l, "Unit")) | |
173 | 176 | then unit | |
174 | 177 | else throw("Match error") | |
175 | 178 | } | |
176 | 179 | ||
177 | - | let | |
180 | + | let aa = valueOrErrorMessage(Z, g("invalid proxy treasury address")) | |
178 | 181 | ||
179 | - | let | |
180 | - | let l = | |
182 | + | let ab = { | |
183 | + | let l = T | |
181 | 184 | if ($isInstanceOf(l, "Address")) | |
182 | 185 | then { | |
183 | - | let | |
184 | - | let | |
185 | - | if ($isInstanceOf( | |
186 | + | let W = l | |
187 | + | let X = getString(W, t()) | |
188 | + | if ($isInstanceOf(X, "String")) | |
186 | 189 | then { | |
187 | - | let h = | |
190 | + | let h = X | |
188 | 191 | addressFromString(h) | |
189 | 192 | } | |
190 | - | else if ($isInstanceOf( | |
193 | + | else if ($isInstanceOf(X, "Unit")) | |
191 | 194 | then unit | |
192 | 195 | else throw("Match error") | |
193 | 196 | } | |
194 | 197 | else if ($isInstanceOf(l, "Unit")) | |
195 | 198 | then unit | |
196 | 199 | else throw("Match error") | |
197 | 200 | } | |
198 | 201 | ||
199 | - | let | |
202 | + | let ac = valueOrErrorMessage(ab, g("invalid main treasury address")) | |
200 | 203 | ||
201 | - | func ac (ad,ae) = if ((ad.caller == ae)) | |
204 | + | func ad () = { | |
205 | + | let l = T | |
206 | + | if ($isInstanceOf(l, "Address")) | |
207 | + | then { | |
208 | + | let ae = l | |
209 | + | let X = getString(ae, q()) | |
210 | + | if ($isInstanceOf(X, "String")) | |
211 | + | then { | |
212 | + | let af = X | |
213 | + | fromBase58String(af) | |
214 | + | } | |
215 | + | else unit | |
216 | + | } | |
217 | + | else unit | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | func ag (ah,ai) = if ((ah.caller == ai)) | |
202 | 222 | then true | |
203 | 223 | else i("permission denied") | |
204 | 224 | ||
205 | 225 | ||
206 | - | func | |
226 | + | func aj (ah) = ag(ah, U) | |
207 | 227 | ||
208 | 228 | ||
209 | - | func | |
210 | - | let h = size( | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
229 | + | func ak (al,am) = { | |
230 | + | let h = size(al) | |
231 | + | let an = al[0] | |
232 | + | let ao = an._1 | |
233 | + | let ap = an._2 | |
234 | + | let aq = al[1] | |
235 | + | let ar = aq._1 | |
236 | + | let as = aq._2 | |
237 | + | let at = al[2] | |
238 | + | let au = at._1 | |
239 | + | let av = at._2 | |
220 | 240 | if (if ((h > 0)) | |
221 | - | then ( | |
241 | + | then (ao == am) | |
222 | 242 | else false) | |
223 | - | then | |
243 | + | then ap | |
224 | 244 | else if (if ((h > 1)) | |
225 | - | then ( | |
245 | + | then (ar == am) | |
226 | 246 | else false) | |
227 | - | then | |
247 | + | then as | |
228 | 248 | else if (if ((h > 2)) | |
229 | - | then ( | |
249 | + | then (au == am) | |
230 | 250 | else false) | |
231 | - | then | |
251 | + | then av | |
232 | 252 | else unit | |
233 | 253 | } | |
234 | 254 | ||
235 | 255 | ||
236 | - | @Callable( | |
237 | - | func claimLP ( | |
238 | - | let | |
239 | - | if (( | |
256 | + | @Callable(ah) | |
257 | + | func claimLP (aw) = { | |
258 | + | let ax = aj(ah) | |
259 | + | if ((ax == ax)) | |
240 | 260 | then { | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | then [invoke( | |
261 | + | let x = Address(aw) | |
262 | + | let ay = valueOrElse(getInteger(U, w(x)), 0) | |
263 | + | let az = valueOrElse(getInteger(U, y(x)), 0) | |
264 | + | let aA = if ((ay > 0)) | |
265 | + | then [invoke(U, "transferAsset", [aw, ay, Y], nil), invoke(U, "integerEntry", [w(x), 0], nil), invoke(U, "integerEntry", [y(x), (az + ay)], nil)] | |
246 | 266 | else i("nothing to claim") | |
247 | - | $Tuple2(nil, | |
267 | + | $Tuple2(nil, aA) | |
248 | 268 | } | |
249 | 269 | else throw("Strict value is not equal to itself.") | |
250 | 270 | } | |
251 | 271 | ||
252 | 272 | ||
253 | 273 | ||
254 | - | @Callable( | |
255 | - | func finalize ( | |
256 | - | let | |
257 | - | if (( | |
274 | + | @Callable(ah) | |
275 | + | func finalize (aw,aB,aC,aD) = { | |
276 | + | let ax = aj(ah) | |
277 | + | if ((ax == ax)) | |
258 | 278 | then { | |
259 | - | let | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
279 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
280 | + | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
281 | + | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
282 | + | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
283 | + | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
284 | + | let aJ = ((aG + aF) - 1) | |
285 | + | let aK = [if ((ah.originCaller == ac)) | |
266 | 286 | then true | |
267 | - | else i("permission denied"), if (( | |
287 | + | else i("permission denied"), if ((aI > aJ)) | |
268 | 288 | then true | |
269 | - | else i("unprocessed blocks"), if (( | |
289 | + | else i("unprocessed blocks"), if ((aB >= 0)) | |
270 | 290 | then true | |
271 | - | else i("invalid new treasury volume"), if (( | |
291 | + | else i("invalid new treasury volume"), if ((aC >= 0)) | |
272 | 292 | then true | |
273 | - | else i("invalid PWR managers bonus"), if (if (( | |
274 | - | then (c >= | |
293 | + | else i("invalid PWR managers bonus"), if (if ((aD >= -(c))) | |
294 | + | then (c >= aD) | |
275 | 295 | else false) | |
276 | 296 | then true | |
277 | 297 | else i("invalid treasury volume diff allocation coefficient")] | |
278 | - | if (( | |
298 | + | if ((aK == aK)) | |
279 | 299 | then { | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | then ( | |
300 | + | let aL = valueOrElse(getInteger(U, v(unit)), 0) | |
301 | + | let aM = valueOrElse(getInteger(U, u(unit)), 0) | |
302 | + | let aN = (aL + aM) | |
303 | + | let aO = (aB - aN) | |
304 | + | let aP = if (if ((aO > 0)) | |
305 | + | then (aO >= aC) | |
286 | 306 | else false) | |
287 | - | then | |
307 | + | then aC | |
288 | 308 | else 0 | |
289 | - | let | |
290 | - | let | |
291 | - | then fraction( | |
309 | + | let aQ = (aO - aP) | |
310 | + | let aR = if ((aN > 0)) | |
311 | + | then fraction(aL, c, aN) | |
292 | 312 | else 0 | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | then | |
313 | + | let aS = fraction(aQ, aR, c) | |
314 | + | let aT = (aQ - aS) | |
315 | + | let aU = n(aD) | |
316 | + | let aV = fraction(aT, if ((0 > aD)) | |
317 | + | then aU | |
298 | 318 | else 0, c) | |
299 | - | let | |
300 | - | then | |
319 | + | let aW = fraction(aS, if ((aD > 0)) | |
320 | + | then aU | |
301 | 321 | else 0, c) | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | then | |
322 | + | let aX = ((aS - aW) + aV) | |
323 | + | let aY = ((aT - aV) + aW) | |
324 | + | let aZ = (aM + aY) | |
325 | + | let ba = (aE + 1) | |
326 | + | let bb = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
327 | + | let bc = fraction(aZ, c, bb) | |
328 | + | let bd = valueOrElse(getInteger(U, I()), 0) | |
329 | + | let be = (bb - bd) | |
330 | + | let bf = max([0, fraction(be, bc, c)]) | |
331 | + | let bg = max([0, fraction(bd, bc, c)]) | |
332 | + | let bh = if ((size(ah.payments) > 0)) | |
333 | + | then ah.payments[0] | |
314 | 334 | else unit | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
335 | + | let bi = value(bh).amount | |
336 | + | let bj = value(bh).assetId | |
337 | + | let bk = if (if ((bg == 0)) | |
318 | 338 | then true | |
319 | - | else if (if (( | |
320 | - | then ( | |
339 | + | else if (if ((bh != unit)) | |
340 | + | then (bj == unit) | |
321 | 341 | else false) | |
322 | - | then ( | |
342 | + | then (bi >= bg) | |
323 | 343 | else false) | |
324 | 344 | then true | |
325 | - | else i(("invalid payments, payment amount min: " + toString( | |
326 | - | if (( | |
345 | + | else i(("invalid payments, payment amount min: " + toString(bg))) | |
346 | + | if ((bk == bk)) | |
327 | 347 | then { | |
328 | - | let | |
329 | - | then [ScriptTransfer( | |
348 | + | let bl = if ((bh != unit)) | |
349 | + | then [ScriptTransfer(U, bi, bj)] | |
330 | 350 | else nil | |
331 | - | let | |
332 | - | $Tuple2( | |
351 | + | let aA = [invoke(U, "integerEntry", [z(), ba], nil), invoke(U, "integerEntry", [A(ba), bc], nil), invoke(U, "integerEntry", [C(ba), (aJ + 1)], nil), invoke(U, "burn", [bd], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), bf], nil)] | |
352 | + | $Tuple2(bl, aA) | |
333 | 353 | } | |
334 | 354 | else throw("Strict value is not equal to itself.") | |
335 | 355 | } | |
336 | 356 | else throw("Strict value is not equal to itself.") | |
337 | 357 | } | |
338 | 358 | else throw("Strict value is not equal to itself.") | |
339 | 359 | } | |
340 | 360 | ||
341 | 361 | ||
342 | 362 | ||
343 | - | @Callable( | |
344 | - | func invest ( | |
345 | - | let | |
346 | - | if (( | |
363 | + | @Callable(ah) | |
364 | + | func invest (aw) = { | |
365 | + | let ax = aj(ah) | |
366 | + | if ((ax == ax)) | |
347 | 367 | then { | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | then | |
368 | + | let x = Address(aw) | |
369 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
370 | + | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
371 | + | let bm = if ((size(ah.payments) == 1)) | |
372 | + | then ah.payments[0] | |
353 | 373 | else i("invalid payments") | |
354 | - | let | |
355 | - | then ( | |
374 | + | let bn = if (if ((bm.assetId == unit)) | |
375 | + | then (bm.amount > 0) | |
356 | 376 | else false) | |
357 | - | then $Tuple2( | |
377 | + | then $Tuple2(bm.amount, bm.assetId) | |
358 | 378 | else i("invalid payment amount") | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | then fraction( | |
379 | + | let bi = bn._1 | |
380 | + | let bj = bn._2 | |
381 | + | let N = if ((aH > 0)) | |
382 | + | then fraction(bi, c, aH) | |
363 | 383 | else 0 | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | $Tuple2( | |
384 | + | let bo = valueOrElse(getInteger(U, u(unit)), 0) | |
385 | + | let bl = [ScriptTransfer(ac, bi, bj)] | |
386 | + | let aA = [invoke(U, "integerEntry", [u(unit), (bo + bi)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
387 | + | $Tuple2(bl, aA) | |
368 | 388 | } | |
369 | 389 | else throw("Strict value is not equal to itself.") | |
370 | 390 | } | |
371 | 391 | ||
372 | 392 | ||
373 | 393 | ||
374 | - | @Callable( | |
375 | - | func withdraw ( | |
376 | - | let | |
377 | - | if (( | |
394 | + | @Callable(ah) | |
395 | + | func withdraw (aw) = { | |
396 | + | let ax = aj(ah) | |
397 | + | if ((ax == ax)) | |
378 | 398 | then { | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | then | |
399 | + | let x = Address(aw) | |
400 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
401 | + | let bm = if ((size(ah.payments) == 1)) | |
402 | + | then ah.payments[0] | |
383 | 403 | else i(g("invalid payments")) | |
384 | - | let | |
385 | - | then | |
404 | + | let bj = if ((bm.assetId == Y)) | |
405 | + | then Y | |
386 | 406 | else i("invalid payment asset") | |
387 | - | let | |
388 | - | then | |
407 | + | let bi = if ((bm.amount > 0)) | |
408 | + | then bm.amount | |
389 | 409 | else i("invalid payment amount") | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | if (( | |
394 | - | then $Tuple2( | |
410 | + | let bp = valueOrElse(getInteger(U, I()), 0) | |
411 | + | let bl = [ScriptTransfer(U, bi, bj)] | |
412 | + | let aA = [invoke(U, "integerEntry", [I(), (bp + bi)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bi, (aE + 1), unit)], nil)] | |
413 | + | if ((aA == aA)) | |
414 | + | then $Tuple2(bl, aA) | |
395 | 415 | else throw("Strict value is not equal to itself.") | |
396 | 416 | } | |
397 | 417 | else throw("Strict value is not equal to itself.") | |
398 | 418 | } | |
399 | 419 | ||
400 | 420 | ||
401 | 421 | ||
402 | - | @Callable( | |
403 | - | func cancelWithdraw ( | |
404 | - | let | |
405 | - | if (( | |
422 | + | @Callable(ah) | |
423 | + | func cancelWithdraw (aw,K) = { | |
424 | + | let ax = aj(ah) | |
425 | + | if ((ax == ax)) | |
406 | 426 | then { | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
427 | + | let x = Address(aw) | |
428 | + | let bq = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
429 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
430 | + | let br = R(bq) | |
431 | + | let M = br._1 | |
432 | + | let N = br._2 | |
433 | + | let O = br._3 | |
434 | + | let P = br._4 | |
435 | + | let aK = [if ((M == d)) | |
416 | 436 | then true | |
417 | - | else i("invalid withdrawal request status"), if (( | |
437 | + | else i("invalid withdrawal request status"), if ((O > aE)) | |
418 | 438 | then true | |
419 | 439 | else i("invalid withdrawal request period")] | |
420 | - | if (( | |
440 | + | if ((aK == aK)) | |
421 | 441 | then { | |
422 | - | let | |
423 | - | let | |
424 | - | then ( | |
425 | - | else i("invalid withdrawal amount")], nil), invoke( | |
426 | - | if (( | |
427 | - | then $Tuple2(nil, | |
442 | + | let bp = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount")) | |
443 | + | let aA = [invoke(U, "integerEntry", [I(), if ((bp >= N)) | |
444 | + | then (bp - N) | |
445 | + | else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
446 | + | if ((aA == aA)) | |
447 | + | then $Tuple2(nil, aA) | |
428 | 448 | else throw("Strict value is not equal to itself.") | |
429 | 449 | } | |
430 | 450 | else throw("Strict value is not equal to itself.") | |
431 | 451 | } | |
432 | 452 | else throw("Strict value is not equal to itself.") | |
433 | 453 | } | |
434 | 454 | ||
435 | 455 | ||
436 | 456 | ||
437 | - | @Callable( | |
438 | - | func claimWaves ( | |
439 | - | let | |
440 | - | if (( | |
457 | + | @Callable(ah) | |
458 | + | func claimWaves (aw,K) = { | |
459 | + | let ax = aj(ah) | |
460 | + | if ((ax == ax)) | |
441 | 461 | then { | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | if (( | |
462 | + | let x = Address(aw) | |
463 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
464 | + | let bq = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
465 | + | let bs = R(bq) | |
466 | + | let M = bs._1 | |
467 | + | let N = bs._2 | |
468 | + | let O = bs._3 | |
469 | + | let P = bs._4 | |
470 | + | if ((M == e)) | |
451 | 471 | then i("invalid withdrawal request status") | |
452 | - | else if (( | |
472 | + | else if ((O > aE)) | |
453 | 473 | then i("invalid withdrawal request period") | |
454 | 474 | else { | |
455 | - | let | |
456 | - | let | |
457 | - | then fraction( | |
475 | + | let bt = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price")) | |
476 | + | let bu = if ((bt > 0)) | |
477 | + | then fraction(N, bt, c) | |
458 | 478 | else 0 | |
459 | - | let | |
460 | - | $Tuple2(nil, | |
479 | + | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bu], nil)] | |
480 | + | $Tuple2(nil, aA) | |
461 | 481 | } | |
462 | 482 | } | |
463 | 483 | else throw("Strict value is not equal to itself.") | |
464 | 484 | } | |
465 | 485 | ||
466 | 486 | ||
467 | 487 | ||
468 | - | @Callable( | |
469 | - | func processBlocks ( | |
470 | - | let | |
471 | - | if (( | |
488 | + | @Callable(ah) | |
489 | + | func processBlocks (aw) = { | |
490 | + | let ax = aj(ah) | |
491 | + | if ((ax == ax)) | |
472 | 492 | then { | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | then if (( | |
493 | + | let x = Address(aw) | |
494 | + | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
495 | + | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
496 | + | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
497 | + | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
498 | + | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
499 | + | let aJ = ((aG + aF) - 1) | |
500 | + | let bv = 40 | |
501 | + | let bw = if (if (if ((height >= aI)) | |
502 | + | then if ((aI >= aG)) | |
483 | 503 | then true | |
484 | - | else ( | |
504 | + | else (aE == 0) | |
485 | 505 | else false) | |
486 | - | then ( | |
506 | + | then (aJ >= aI) | |
487 | 507 | else false) | |
488 | - | then min([(( | |
508 | + | then min([((aJ - aI) + 1), bv]) | |
489 | 509 | else i(g("invalid target block")) | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | func | |
494 | - | then | |
510 | + | let bx = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward")) | |
511 | + | let by = (bx / bw) | |
512 | + | let bz = (bx - (by * bw)) | |
513 | + | func bA (bB,bC) = if ((bC >= bw)) | |
514 | + | then bB | |
495 | 515 | else { | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | then ( | |
503 | - | else | |
504 | - | let | |
505 | - | then fraction(( | |
516 | + | let bD = (aI + bC) | |
517 | + | let bE = valueOrErrorMessage(blockInfoByHeight(bD), g("invalid block info")) | |
518 | + | let bF = valueOrErrorMessage(ak(bE.rewards, aa), g(("invalid treasury reward for height " + toString(bD)))) | |
519 | + | let bG = bE.generator | |
520 | + | let ay = valueOrElse(getInteger(U, w(bG)), 0) | |
521 | + | let bH = if ((bC == (bw - 1))) | |
522 | + | then (by + bz) | |
523 | + | else by | |
524 | + | let N = if ((aH > 0)) | |
525 | + | then fraction((bF - bH), c, aH) | |
506 | 526 | else 0 | |
507 | - | let | |
508 | - | if (( | |
527 | + | let bI = [invoke(U, "stringEntry", [G(bD), makeString([toBase58String(ah.transactionId), toString(aE), toString(bG), toBase58String(aw), toString(bF), toString(bH), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bG), (ay + N)], nil)] | |
528 | + | if ((bI == bI)) | |
509 | 529 | then { | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | $Tuple2(( | |
530 | + | let bJ = bB | |
531 | + | let bK = bJ._1 | |
532 | + | let bL = bJ._2 | |
533 | + | $Tuple2((bK + N), (bL + bF)) | |
514 | 534 | } | |
515 | 535 | else throw("Strict value is not equal to itself.") | |
516 | 536 | } | |
517 | 537 | ||
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | func | |
524 | - | then | |
525 | - | else | |
538 | + | let bM = [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] | |
539 | + | let bN = { | |
540 | + | let bO = bM | |
541 | + | let bP = size(bO) | |
542 | + | let bQ = $Tuple2(0, 0) | |
543 | + | func bR (bS,bT) = if ((bT >= bP)) | |
544 | + | then bS | |
545 | + | else bA(bS, bO[bT]) | |
526 | 546 | ||
527 | - | func | |
528 | - | then | |
547 | + | func bU (bS,bT) = if ((bT >= bP)) | |
548 | + | then bS | |
529 | 549 | else throw("List size exceeds 40") | |
530 | 550 | ||
531 | - | bQ | |
551 | + | bU(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bR(bQ, 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) | |
532 | 552 | } | |
533 | - | if (( | |
553 | + | if ((bN == bN)) | |
534 | 554 | then { | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | if (( | |
555 | + | let bV = bN._2 | |
556 | + | let bW = bN._1 | |
557 | + | let bX = (bV - bx) | |
558 | + | let bo = valueOrElse(getInteger(U, u(unit)), 0) | |
559 | + | let bl = [invoke(U, "reissue", [bW], nil), invoke(U, "integerEntry", [F(), (aI + bw)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, bX], nil), invoke(U, "transferFromProxyTreasury", [aw, bx], nil), invoke(U, "integerEntry", [u(unit), (bo + bX)], nil)] | |
560 | + | if ((bl == bl)) | |
541 | 561 | then $Tuple2(nil, unit) | |
542 | 562 | else throw("Strict value is not equal to itself.") | |
543 | 563 | } | |
544 | 564 | else throw("Strict value is not equal to itself.") | |
545 | 565 | } | |
546 | 566 | else throw("Strict value is not equal to itself.") | |
547 | 567 | } | |
548 | 568 | ||
549 | 569 | ||
550 | - | @Verifier(bU) | |
551 | - | func bV () = sigVerify(bU.bodyBytes, bU.proofs[0], bU.senderPublicKey) | |
570 | + | @Verifier(bY) | |
571 | + | func bZ () = { | |
572 | + | let ca = { | |
573 | + | let l = ad() | |
574 | + | if ($isInstanceOf(l, "ByteVector")) | |
575 | + | then { | |
576 | + | let af = l | |
577 | + | af | |
578 | + | } | |
579 | + | else bY.senderPublicKey | |
580 | + | } | |
581 | + | sigVerify(bY.bodyBytes, bY.proofs[0], ca) | |
582 | + | } | |
552 | 583 |
github/deemru/w8io/169f3d6 234.61 ms ◑