tx · UjJCzcnHprUqHuKsr9t26qme7EGxkVFTk6RhRg3UjwU 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP: -0.03400000 Waves 2023.08.23 09:43 [2722925] smart account 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP > SELF 0.00000000 Waves
{ "type": 13, "id": "UjJCzcnHprUqHuKsr9t26qme7EGxkVFTk6RhRg3UjwU", "fee": 3400000, "feeAssetId": null, "timestamp": 1692773059004, "version": 1, "sender": "3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP", "senderPublicKey": "AoKo4segKHU4DeJnxXQYJj2u7J6XJeux6r8KLW52cd2Q", "proofs": [ "4BaZxHn9tJHbF84X6r6JYEbd19yGM2shQDCzKHTqMQJxRJNaSTwAnA9TBKtNi4hgGQn3Vb3cPSDA3iYkzKyGAC8L" ], "script": "base64:BwJHCAISABIDCgECEgcKBQIBAQEBEgYKBAEBAQESAwoBAhIDCgECEgQKAgICEgQKAgIIEgQKAgIYEgQKAgIIEgQKAgIYEgMKAQJAAANTRVACAl9fAA1DT05UUkFDVF9OQU1FAg9jYWxjdWxhdG9yLnJpZGUABlNDQUxFOACAwtcvAAdQRU5ESU5HAgdQRU5ESU5HAAVXQVZFUwIFV0FWRVMAHGJsb2Nrc1Byb2Nlc3NpbmdCYXRjaFNpemVNYXgACgEHd3JhcEVycgEBcwkArAICCQCsAgIFDUNPTlRSQUNUX05BTUUCAjogBQFzAQh0aHJvd0VycgEBcwkAAgEJAQd3cmFwRXJyAQUBcwEPYXNzZXRJZFRvU3RyaW5nAQdhc3NldElkBAckbWF0Y2gwBQdhc3NldElkAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAWIFByRtYXRjaDAJANgEAQUBYgMJAAECBQckbWF0Y2gwAgRVbml0BQVXQVZFUwkAAgECC01hdGNoIGVycm9yAQ9zdHJpbmdUb0Fzc2V0SWQBAXMDCQAAAgUBcwUFV0FWRVMFBHVuaXQJANkEAQUBcwEDYWJzA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CQEZZ2V0TWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQDcHViBQckbWF0Y2gwBQNwdWIIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXB1YmxpY0tleW96YJ0=", "chainId": 84, "height": 2722925, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CphUDDL8wy6DDW4P13GA5Up16NHqiMwP9TkSLAjEchGk Next: 3g5NWKChUxZLhL17CbHBmZMnV1BRvXJFmTcYPsH2vsiT Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | let e = "WAVES" | |
13 | 13 | ||
14 | - | func f (g) = ((b + ": ") + g) | |
14 | + | let f = 10 | |
15 | + | ||
16 | + | func g (h) = ((b + ": ") + h) | |
15 | 17 | ||
16 | 18 | ||
17 | - | func | |
19 | + | func i (h) = throw(g(h)) | |
18 | 20 | ||
19 | 21 | ||
20 | - | func | |
21 | - | let | |
22 | - | if ($isInstanceOf( | |
22 | + | func j (k) = { | |
23 | + | let l = k | |
24 | + | if ($isInstanceOf(l, "ByteVector")) | |
23 | 25 | then { | |
24 | - | let | |
25 | - | toBase58String( | |
26 | + | let m = l | |
27 | + | toBase58String(m) | |
26 | 28 | } | |
27 | - | else if ($isInstanceOf( | |
29 | + | else if ($isInstanceOf(l, "Unit")) | |
28 | 30 | then e | |
29 | 31 | else throw("Match error") | |
30 | 32 | } | |
31 | 33 | ||
32 | 34 | ||
33 | - | func | |
35 | + | func n (h) = if ((h == e)) | |
34 | 36 | then unit | |
35 | - | else fromBase58String( | |
37 | + | else fromBase58String(h) | |
36 | 38 | ||
37 | 39 | ||
38 | - | func | |
39 | - | then -( | |
40 | - | else | |
40 | + | func o (p) = if ((0 > p)) | |
41 | + | then -(p) | |
42 | + | else p | |
41 | 43 | ||
42 | 44 | ||
43 | - | func | |
45 | + | func q () = makeString(["%s", "factory"], a) | |
44 | 46 | ||
45 | 47 | ||
46 | - | func | |
48 | + | func r () = makeString(["%s", "managerPublicKey"], a) | |
47 | 49 | ||
48 | 50 | ||
49 | - | func | |
51 | + | func s () = makeString(["%s", "lpAssetId"], a) | |
50 | 52 | ||
51 | 53 | ||
52 | - | func | |
54 | + | func t () = makeString(["%s", "proxyTreasury"], a) | |
53 | 55 | ||
54 | 56 | ||
55 | - | func | |
57 | + | func u () = makeString(["%s", "mainTreasury"], a) | |
56 | 58 | ||
57 | 59 | ||
58 | - | func | |
60 | + | func v () = makeString(["%s", "businessTreasury"], a) | |
59 | 61 | ||
60 | 62 | ||
61 | - | func | |
63 | + | func w () = makeString(["%s", "businessTreasuryPart"], a) | |
62 | 64 | ||
63 | 65 | ||
64 | - | func | |
66 | + | func x () = makeString(["%s", "powerContract"], a) | |
65 | 67 | ||
66 | 68 | ||
67 | - | func | |
69 | + | func y () = makeString(["%s", "powerShareRatio"], a) | |
68 | 70 | ||
69 | 71 | ||
70 | - | func | |
72 | + | func z () = makeString(["%s", "powerAssetId"], a) | |
71 | 73 | ||
72 | 74 | ||
73 | - | func | |
75 | + | func A (k) = makeString(["%s%s", "invested", j(k)], a) | |
74 | 76 | ||
75 | 77 | ||
76 | - | func | |
78 | + | func B (k) = makeString(["%s%s", "donated", j(k)], a) | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func C (D) = makeString(["%s%s", "available", toString(D)], a) | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
84 | + | func E (D) = makeString(["%s%s", "claimed", toString(D)], a) | |
83 | 85 | ||
84 | 86 | ||
85 | - | func | |
87 | + | func F () = makeString(["%s", "currentPeriod"], a) | |
86 | 88 | ||
87 | 89 | ||
88 | - | func | |
90 | + | func G (H) = makeString(["%s%d", "price", toString(H)], a) | |
89 | 91 | ||
90 | 92 | ||
91 | - | func | |
93 | + | func I (H) = makeString(["%s%d", "startHeight", toString(H)], a) | |
92 | 94 | ||
93 | 95 | ||
94 | - | func | |
96 | + | func J (H) = makeString(["%s%d", "powerManagerBonus", toString(H)], a) | |
95 | 97 | ||
96 | 98 | ||
97 | - | func | |
99 | + | func K (H) = makeString(["%s%d", "claimWavesAmount", toString(H)], a) | |
98 | 100 | ||
99 | 101 | ||
100 | - | func | |
102 | + | func L () = "%s__periodLength" | |
101 | 103 | ||
102 | 104 | ||
103 | - | func | |
105 | + | func M () = "%s__investPeriodLength" | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
108 | + | func N () = "%s__blockProcessingReward" | |
107 | 109 | ||
108 | 110 | ||
109 | - | func | |
111 | + | func O () = "%s__nextBlockToProcess" | |
110 | 112 | ||
111 | 113 | ||
112 | - | func | |
114 | + | func P (Q) = makeString(["%s%d", "blockProcessed", toString(Q)], a) | |
113 | 115 | ||
114 | 116 | ||
115 | - | func | |
117 | + | func R () = "%s__withdrawal" | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func S (D,T) = makeString(["%s%s%s", "withdrawal", toString(D), toBase58String(T)], a) | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
122 | - | let | |
123 | - | let | |
124 | - | if ($isInstanceOf( | |
123 | + | func U (V,W,X,Y) = { | |
124 | + | let Z = { | |
125 | + | let l = Y | |
126 | + | if ($isInstanceOf(l, "ByteVector")) | |
125 | 127 | then { | |
126 | - | let | |
127 | - | toBase58String( | |
128 | + | let m = l | |
129 | + | toBase58String(m) | |
128 | 130 | } | |
129 | - | else if ($isInstanceOf( | |
131 | + | else if ($isInstanceOf(l, "Unit")) | |
130 | 132 | then "SOON" | |
131 | 133 | else throw("Match error") | |
132 | 134 | } | |
133 | - | makeString(["%s%d%d%s", | |
135 | + | makeString(["%s%d%d%s", V, toString(W), toString(X), Z], a) | |
134 | 136 | } | |
135 | 137 | ||
136 | 138 | ||
137 | - | func | |
139 | + | func aa (D,T) = makeString(["%s%s%s", "withdrawalHistory", toString(D), toBase58String(T)], a) | |
138 | 140 | ||
139 | 141 | ||
140 | - | func | |
142 | + | func ab (H) = makeString(["%s%d", "periodReward", toString(H)], a) | |
141 | 143 | ||
142 | 144 | ||
143 | - | func | |
145 | + | func ac (H) = makeString(["%s%d", "periodRewardAmount", toString(H)], a) | |
144 | 146 | ||
145 | 147 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ((size( | |
148 | + | func ad (h) = { | |
149 | + | let ae = split(h, a) | |
150 | + | if ((size(ae) == 5)) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | $Tuple4( | |
152 | + | let V = ae[1] | |
153 | + | let W = valueOrErrorMessage(parseInt(ae[2]), g("invalid lpAssetAmount")) | |
154 | + | let X = valueOrErrorMessage(parseInt(ae[3]), g("invalid targetPeriod")) | |
155 | + | let Y = ae[4] | |
156 | + | $Tuple4(V, W, X, Y) | |
155 | 157 | } | |
156 | - | else | |
158 | + | else i("invalid withdrawal request value") | |
157 | 159 | } | |
158 | 160 | ||
159 | 161 | ||
160 | - | let | |
161 | - | let | |
162 | - | if ($isInstanceOf( | |
162 | + | let af = { | |
163 | + | let l = getString(this, q()) | |
164 | + | if ($isInstanceOf(l, "String")) | |
163 | 165 | then { | |
164 | - | let | |
165 | - | addressFromString( | |
166 | + | let h = l | |
167 | + | addressFromString(h) | |
166 | 168 | } | |
167 | - | else if ($isInstanceOf( | |
169 | + | else if ($isInstanceOf(l, "Unit")) | |
168 | 170 | then unit | |
169 | 171 | else throw("Match error") | |
170 | 172 | } | |
171 | 173 | ||
172 | - | let | |
174 | + | let ag = valueOrErrorMessage(af, g("invalid factory address")) | |
173 | 175 | ||
174 | - | let | |
175 | - | let | |
176 | - | if ($isInstanceOf( | |
176 | + | let ah = { | |
177 | + | let l = af | |
178 | + | if ($isInstanceOf(l, "Address")) | |
177 | 179 | then { | |
178 | - | let | |
179 | - | let | |
180 | - | if ($isInstanceOf( | |
180 | + | let ai = l | |
181 | + | let aj = getString(ai, s()) | |
182 | + | if ($isInstanceOf(aj, "String")) | |
181 | 183 | then { | |
182 | - | let | |
183 | - | fromBase58String( | |
184 | + | let h = aj | |
185 | + | fromBase58String(h) | |
184 | 186 | } | |
185 | - | else if ($isInstanceOf( | |
187 | + | else if ($isInstanceOf(aj, "Unit")) | |
186 | 188 | then unit | |
187 | 189 | else throw("Match error") | |
188 | 190 | } | |
189 | - | else if ($isInstanceOf( | |
191 | + | else if ($isInstanceOf(l, "Unit")) | |
190 | 192 | then unit | |
191 | 193 | else throw("Match error") | |
192 | 194 | } | |
193 | 195 | ||
194 | - | let | |
196 | + | let ak = valueOrErrorMessage(ah, g("invalid lpAssetId")) | |
195 | 197 | ||
196 | - | let | |
197 | - | let | |
198 | - | if ($isInstanceOf( | |
198 | + | let al = { | |
199 | + | let l = af | |
200 | + | if ($isInstanceOf(l, "Address")) | |
199 | 201 | then { | |
200 | - | let | |
201 | - | let | |
202 | - | if ($isInstanceOf( | |
202 | + | let ai = l | |
203 | + | let aj = getString(ai, t()) | |
204 | + | if ($isInstanceOf(aj, "String")) | |
203 | 205 | then { | |
204 | - | let | |
205 | - | addressFromString( | |
206 | + | let h = aj | |
207 | + | addressFromString(h) | |
206 | 208 | } | |
207 | - | else if ($isInstanceOf( | |
209 | + | else if ($isInstanceOf(aj, "Unit")) | |
208 | 210 | then unit | |
209 | 211 | else throw("Match error") | |
210 | 212 | } | |
211 | - | else if ($isInstanceOf( | |
213 | + | else if ($isInstanceOf(l, "Unit")) | |
212 | 214 | then unit | |
213 | 215 | else throw("Match error") | |
214 | 216 | } | |
215 | 217 | ||
216 | - | let | |
218 | + | let am = valueOrErrorMessage(al, g("invalid proxy treasury address")) | |
217 | 219 | ||
218 | - | let | |
219 | - | let | |
220 | - | if ($isInstanceOf( | |
220 | + | let an = { | |
221 | + | let l = af | |
222 | + | if ($isInstanceOf(l, "Address")) | |
221 | 223 | then { | |
222 | - | let | |
223 | - | let | |
224 | - | if ($isInstanceOf( | |
224 | + | let ai = l | |
225 | + | let aj = getString(ai, u()) | |
226 | + | if ($isInstanceOf(aj, "String")) | |
225 | 227 | then { | |
226 | - | let | |
227 | - | addressFromString( | |
228 | + | let h = aj | |
229 | + | addressFromString(h) | |
228 | 230 | } | |
229 | - | else if ($isInstanceOf( | |
231 | + | else if ($isInstanceOf(aj, "Unit")) | |
230 | 232 | then unit | |
231 | 233 | else throw("Match error") | |
232 | 234 | } | |
233 | - | else if ($isInstanceOf( | |
235 | + | else if ($isInstanceOf(l, "Unit")) | |
234 | 236 | then unit | |
235 | 237 | else throw("Match error") | |
236 | 238 | } | |
237 | 239 | ||
238 | - | let | |
239 | - | let | |
240 | - | if ($isInstanceOf( | |
240 | + | let ao = { | |
241 | + | let l = af | |
242 | + | if ($isInstanceOf(l, "Address")) | |
241 | 243 | then { | |
242 | - | let | |
243 | - | let | |
244 | - | if ($isInstanceOf( | |
244 | + | let ai = l | |
245 | + | let aj = getString(ai, v()) | |
246 | + | if ($isInstanceOf(aj, "String")) | |
245 | 247 | then { | |
246 | - | let | |
247 | - | addressFromString( | |
248 | + | let h = aj | |
249 | + | addressFromString(h) | |
248 | 250 | } | |
249 | - | else if ($isInstanceOf( | |
251 | + | else if ($isInstanceOf(aj, "Unit")) | |
250 | 252 | then unit | |
251 | 253 | else throw("Match error") | |
252 | 254 | } | |
253 | - | else if ($isInstanceOf( | |
255 | + | else if ($isInstanceOf(l, "Unit")) | |
254 | 256 | then unit | |
255 | 257 | else throw("Match error") | |
256 | 258 | } | |
257 | 259 | ||
258 | - | let | |
260 | + | let ap = valueOrErrorMessage(an, g("invalid main treasury address")) | |
259 | 261 | ||
260 | - | let | |
262 | + | let aq = valueOrErrorMessage(ao, g("invalid business treasury address")) | |
261 | 263 | ||
262 | - | let | |
263 | - | let | |
264 | - | if ($isInstanceOf( | |
264 | + | let ar = { | |
265 | + | let l = af | |
266 | + | if ($isInstanceOf(l, "Address")) | |
265 | 267 | then { | |
266 | - | let | |
267 | - | let | |
268 | - | if ($isInstanceOf( | |
268 | + | let ai = l | |
269 | + | let aj = getString(ai, x()) | |
270 | + | if ($isInstanceOf(aj, "String")) | |
269 | 271 | then { | |
270 | - | let | |
271 | - | addressFromString( | |
272 | + | let h = aj | |
273 | + | addressFromString(h) | |
272 | 274 | } | |
273 | - | else if ($isInstanceOf( | |
275 | + | else if ($isInstanceOf(aj, "Unit")) | |
274 | 276 | then unit | |
275 | 277 | else throw("Match error") | |
276 | 278 | } | |
277 | - | else if ($isInstanceOf( | |
279 | + | else if ($isInstanceOf(l, "Unit")) | |
278 | 280 | then unit | |
279 | 281 | else throw("Match error") | |
280 | 282 | } | |
281 | 283 | ||
282 | - | let | |
284 | + | let as = valueOrErrorMessage(ar, g("invalid power contract address")) | |
283 | 285 | ||
284 | - | let | |
286 | + | let at = valueOrErrorMessage(getString(ag, z()), g("power asset id not found")) | |
285 | 287 | ||
286 | - | func | |
287 | - | let | |
288 | - | if ($isInstanceOf( | |
288 | + | func au () = { | |
289 | + | let l = af | |
290 | + | if ($isInstanceOf(l, "Address")) | |
289 | 291 | then { | |
290 | - | let | |
291 | - | let | |
292 | - | if ($isInstanceOf( | |
292 | + | let av = l | |
293 | + | let aj = getString(av, r()) | |
294 | + | if ($isInstanceOf(aj, "String")) | |
293 | 295 | then { | |
294 | - | let | |
295 | - | fromBase58String( | |
296 | + | let aw = aj | |
297 | + | fromBase58String(aw) | |
296 | 298 | } | |
297 | 299 | else unit | |
298 | 300 | } | |
300 | 302 | } | |
301 | 303 | ||
302 | 304 | ||
303 | - | func | |
305 | + | func ax (ay,az) = if ((ay.caller == az)) | |
304 | 306 | then true | |
305 | - | else | |
307 | + | else i("permission denied") | |
306 | 308 | ||
307 | 309 | ||
308 | - | func | |
310 | + | func aA (ay) = ax(ay, ag) | |
309 | 311 | ||
310 | 312 | ||
311 | - | func | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | if (if (( | |
323 | - | then ( | |
313 | + | func aB (aC,aD) = { | |
314 | + | let h = size(aC) | |
315 | + | let aE = aC[0] | |
316 | + | let aF = aE._1 | |
317 | + | let aG = aE._2 | |
318 | + | let aH = aC[1] | |
319 | + | let aI = aH._1 | |
320 | + | let aJ = aH._2 | |
321 | + | let aK = aC[2] | |
322 | + | let aL = aK._1 | |
323 | + | let aM = aK._2 | |
324 | + | if (if ((h > 0)) | |
325 | + | then (aF == aD) | |
324 | 326 | else false) | |
325 | - | then | |
326 | - | else if (if (( | |
327 | - | then ( | |
327 | + | then aG | |
328 | + | else if (if ((h > 1)) | |
329 | + | then (aI == aD) | |
328 | 330 | else false) | |
329 | - | then | |
330 | - | else if (if (( | |
331 | - | then ( | |
331 | + | then aJ | |
332 | + | else if (if ((h > 2)) | |
333 | + | then (aL == aD) | |
332 | 334 | else false) | |
333 | - | then | |
335 | + | then aM | |
334 | 336 | else unit | |
335 | 337 | } | |
336 | 338 | ||
337 | 339 | ||
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
340 | + | func aN (aO) = { | |
341 | + | let aP = valueOrElse(getInteger(ag, R()), 0) | |
342 | + | let aQ = valueOrErrorMessage(assetInfo(ak), g("invalid lpAsset info")).quantity | |
343 | + | let aR = fraction(aO, c, (aQ - aP)) | |
344 | + | let aS = if ((aR != 0)) | |
343 | 345 | then true | |
344 | - | else | |
345 | - | if (( | |
346 | + | else i("LP price cannot be 0") | |
347 | + | if ((aS == aS)) | |
346 | 348 | then { | |
347 | - | let | |
348 | - | $Tuple3( | |
349 | + | let aT = (aQ - aP) | |
350 | + | $Tuple3(aR, aP, aT) | |
349 | 351 | } | |
350 | 352 | else throw("Strict value is not equal to itself.") | |
351 | 353 | } | |
352 | 354 | ||
353 | 355 | ||
354 | - | func | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | if (( | |
364 | - | then | |
356 | + | func aU (aV,T) = { | |
357 | + | let D = Address(aV) | |
358 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
359 | + | let aX = valueOrErrorMessage(getString(ag, S(D, T)), g("invalid withdrawal request")) | |
360 | + | let aY = ad(aX) | |
361 | + | let V = aY._1 | |
362 | + | let W = aY._2 | |
363 | + | let X = aY._3 | |
364 | + | let Y = aY._4 | |
365 | + | if ((X > aW)) | |
366 | + | then i("invalid withdrawal request period") | |
365 | 367 | else { | |
366 | - | let | |
367 | - | let | |
368 | - | then fraction( | |
368 | + | let aZ = valueOrErrorMessage(getInteger(ag, G(X)), g("invalid price")) | |
369 | + | let ba = if ((aZ > 0)) | |
370 | + | then fraction(W, aZ, c) | |
369 | 371 | else 0 | |
370 | - | let | |
371 | - | let | |
372 | - | $Tuple6( | |
372 | + | let bb = getStringValue(ag, ab(aW)) | |
373 | + | let bc = getStringValue(ag, ac(aW)) | |
374 | + | $Tuple6(D, W, X, ba, bb, bc) | |
373 | 375 | } | |
374 | 376 | } | |
375 | 377 | ||
376 | 378 | ||
377 | - | func bc (aU,S) = { | |
378 | - | let bd = aT(aU, S) | |
379 | - | let C = bd._1 | |
380 | - | let V = bd._2 | |
381 | - | let W = bd._3 | |
382 | - | let aZ = bd._4 | |
383 | - | let ba = bd._5 | |
384 | - | let bb = bd._6 | |
385 | - | let be = makeString(removeByIndex(split_51C(ba, a), 0), ":") | |
379 | + | func bd (aV,T) = { | |
380 | + | let be = aU(aV, T) | |
381 | + | let D = be._1 | |
382 | + | let W = be._2 | |
383 | + | let X = be._3 | |
384 | + | let ba = be._4 | |
385 | + | let bb = be._5 | |
386 | + | let bc = be._6 | |
386 | 387 | let bf = makeString(removeByIndex(split_51C(bb, a), 0), ":") | |
387 | - | makeString(["%d%s%s", toString(aZ), be, bf], a) | |
388 | + | let bg = makeString(removeByIndex(split_51C(bc, a), 0), ":") | |
389 | + | makeString(["%d%s%s", toString(ba), bf, bg], a) | |
388 | 390 | } | |
389 | 391 | ||
390 | 392 | ||
391 | - | func | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | if (( | |
398 | - | then $Tuple3( | |
399 | - | else | |
393 | + | func bh (bi) = { | |
394 | + | let bj = max([0, min([valueOrElse(getInteger(ag, y()), 0), c])]) | |
395 | + | let bk = max([0, min([valueOrElse(getInteger(ag, w()), 0), c])]) | |
396 | + | let bl = fraction(bi, bj, c) | |
397 | + | let bm = fraction(bi, bk, c) | |
398 | + | let bn = ((bi - bl) - bm) | |
399 | + | if ((bn > 0)) | |
400 | + | then $Tuple3(bl, bm, bn) | |
401 | + | else i("amount to main treasury cannot be negative") | |
400 | 402 | } | |
401 | 403 | ||
402 | 404 | ||
403 | - | func bn (bo) = { | |
404 | - | let bp = 20 | |
405 | - | let bq = bg(bo) | |
406 | - | let bk = bq._1 | |
407 | - | let bl = bq._2 | |
408 | - | let bm = bq._3 | |
409 | - | let br = valueOrErrorMessage(getInteger(af, M()), f("invalid block processing reward")) | |
410 | - | let bs = (br / bp) | |
411 | - | let bt = (bm - br) | |
412 | - | $Tuple5(bk, bl, br, bt, bo) | |
405 | + | func bo (bp) = { | |
406 | + | let bq = bh(bp) | |
407 | + | let bl = bq._1 | |
408 | + | let bm = bq._2 | |
409 | + | let bn = bq._3 | |
410 | + | let br = valueOrErrorMessage(getInteger(ag, N()), g("invalid block processing reward")) | |
411 | + | let bs = (br / f) | |
412 | + | let bt = (bn - br) | |
413 | + | $Tuple5(bl, bm, br, bt, bp) | |
413 | 414 | } | |
414 | 415 | ||
415 | 416 | ||
416 | - | @Callable( | |
417 | + | @Callable(ay) | |
417 | 418 | func rewardSplitREADONLY () = { | |
418 | 419 | let bu = (height - 1) | |
419 | - | let bv = valueOrErrorMessage(blockInfoByHeight(bu), | |
420 | - | let bw = valueOrErrorMessage( | |
421 | - | $Tuple2(nil, | |
420 | + | let bv = valueOrErrorMessage(blockInfoByHeight(bu), g("invalid block info")) | |
421 | + | let bw = valueOrErrorMessage(aB(bv.rewards, am), g(("invalid treasury reward for height " + toString(bu)))) | |
422 | + | $Tuple2(nil, bo(bw)) | |
422 | 423 | } | |
423 | 424 | ||
424 | 425 | ||
425 | 426 | ||
426 | - | @Callable( | |
427 | - | func claimLP ( | |
428 | - | let bx = | |
427 | + | @Callable(ay) | |
428 | + | func claimLP (aV) = { | |
429 | + | let bx = aA(ay) | |
429 | 430 | if ((bx == bx)) | |
430 | 431 | then { | |
431 | - | let | |
432 | - | let by = valueOrElse(getInteger( | |
433 | - | let bz = valueOrElse(getInteger( | |
432 | + | let D = Address(aV) | |
433 | + | let by = valueOrElse(getInteger(ag, C(D)), 0) | |
434 | + | let bz = valueOrElse(getInteger(ag, E(D)), 0) | |
434 | 435 | let bA = if ((by > 0)) | |
435 | - | then [invoke( | |
436 | - | else | |
436 | + | then [invoke(ag, "transferAsset", [aV, by, ak], nil), invoke(ag, "integerEntry", [C(D), 0], nil), invoke(ag, "integerEntry", [E(D), (bz + by)], nil)] | |
437 | + | else i("nothing to claim") | |
437 | 438 | $Tuple2(nil, bA) | |
438 | 439 | } | |
439 | 440 | else throw("Strict value is not equal to itself.") | |
441 | 442 | ||
442 | 443 | ||
443 | 444 | ||
444 | - | @Callable( | |
445 | - | func finalize ( | |
446 | - | let bx = | |
445 | + | @Callable(ay) | |
446 | + | func finalize (aV,bB,aO,bC,bD) = { | |
447 | + | let bx = aA(ay) | |
447 | 448 | if ((bx == bx)) | |
448 | 449 | then { | |
449 | - | let | |
450 | - | let bE = valueOrErrorMessage(getInteger( | |
451 | - | let bF = valueOrErrorMessage(getInteger( | |
452 | - | let bG = valueOrErrorMessage(getInteger( | |
453 | - | let bH = valueOrErrorMessage(getInteger( | |
450 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
451 | + | let bE = valueOrErrorMessage(getInteger(ag, L()), g("invalid period length")) | |
452 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
453 | + | let bG = valueOrErrorMessage(getInteger(ag, G(aW)), g("invalid price")) | |
454 | + | let bH = valueOrErrorMessage(getInteger(ag, O()), g("invalid next block to process")) | |
454 | 455 | let bI = ((bF + bE) - 1) | |
455 | - | let bJ = [if (( | |
456 | + | let bJ = [if ((ay.originCaller == ap)) | |
456 | 457 | then true | |
457 | - | else | |
458 | + | else i("permission denied"), if ((bH > bI)) | |
458 | 459 | then true | |
459 | - | else | |
460 | + | else i("unprocessed blocks"), if ((bB >= 0)) | |
460 | 461 | then true | |
461 | - | else | |
462 | + | else i("invalid donation part"), if ((aO >= 0)) | |
462 | 463 | then true | |
463 | - | else | |
464 | + | else i("invalid lp part"), if ((bC >= 0)) | |
464 | 465 | then true | |
465 | - | else | |
466 | + | else i("invalid claim part"), if ((bD >= 0)) | |
466 | 467 | then true | |
467 | - | else | |
468 | + | else i("invalid PWR stake part")] | |
468 | 469 | if ((bJ == bJ)) | |
469 | 470 | then { | |
470 | - | let bK = | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let bL = ( | |
471 | + | let bK = aN(aO) | |
472 | + | let aR = bK._1 | |
473 | + | let aP = bK._2 | |
474 | + | let aT = bK._3 | |
475 | + | let bL = (aW + 1) | |
475 | 476 | func bM (bN,bO) = { | |
476 | 477 | let bP = bN | |
477 | 478 | let bQ = bP._1 | |
478 | 479 | let bR = bP._2 | |
479 | - | let | |
480 | + | let bc = bP._3 | |
480 | 481 | let bS = bO.amount | |
481 | 482 | let bT = bO.assetId | |
482 | - | let bU = ("%s" + makeString([bR, | |
483 | - | let bV = ("%d" + makeString([ | |
484 | - | let bW = ScriptTransfer( | |
483 | + | let bU = ("%s" + makeString([bR, j(bT)], a)) | |
484 | + | let bV = ("%d" + makeString([bc, toString(bS)], a)) | |
485 | + | let bW = ScriptTransfer(ag, bS, bT) | |
485 | 486 | $Tuple3((bQ :+ bW), bU, bV) | |
486 | 487 | } | |
487 | 488 | ||
488 | 489 | let bX = { | |
489 | - | let bY = | |
490 | + | let bY = ay.payments | |
490 | 491 | let bZ = size(bY) | |
491 | 492 | let ca = $Tuple3(nil, "", "") | |
492 | 493 | func cb (cc,cd) = if ((cd >= bZ)) | |
502 | 503 | let bQ = bX._1 | |
503 | 504 | let cf = bX._2 | |
504 | 505 | let cg = bX._3 | |
505 | - | let bA = [invoke( | |
506 | + | let bA = [invoke(ag, "integerEntry", [J(aW), bD], nil), invoke(ag, "integerEntry", [K(aW), bC], nil), invoke(ag, "integerEntry", [F(), bL], nil), invoke(ag, "integerEntry", [G(bL), aR], nil), invoke(ag, "integerEntry", [I(bL), (bI + 1)], nil), invoke(ag, "burn", [aP], nil), invoke(ag, "integerEntry", [R(), 0], nil), invoke(ag, "integerEntry", [A(unit), aO], nil), invoke(ag, "integerEntry", [B(unit), bB], nil), invoke(ag, "stringEntry", [ab(bL), cf], nil), invoke(ag, "stringEntry", [ac(bL), cg], nil)] | |
506 | 507 | $Tuple2(bQ, bA) | |
507 | 508 | } | |
508 | 509 | else throw("Strict value is not equal to itself.") | |
512 | 513 | ||
513 | 514 | ||
514 | 515 | ||
515 | - | @Callable( | |
516 | - | func finalizeREADONLY (bB, | |
517 | - | let | |
518 | - | let bE = valueOrErrorMessage(getInteger( | |
519 | - | let bF = valueOrErrorMessage(getInteger( | |
520 | - | let bG = valueOrErrorMessage(getInteger( | |
521 | - | let bH = valueOrErrorMessage(getInteger( | |
516 | + | @Callable(ay) | |
517 | + | func finalizeREADONLY (bB,aO,bC,bD) = { | |
518 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
519 | + | let bE = valueOrErrorMessage(getInteger(ag, L()), g("invalid period length")) | |
520 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
521 | + | let bG = valueOrErrorMessage(getInteger(ag, G(aW)), g("invalid price")) | |
522 | + | let bH = valueOrErrorMessage(getInteger(ag, O()), g("invalid next block to process")) | |
522 | 523 | let bI = ((bF + bE) - 1) | |
523 | 524 | let bJ = [if ((bH > bI)) | |
524 | 525 | then true | |
525 | - | else | |
526 | + | else i("unprocessed blocks"), if ((bB >= 0)) | |
526 | 527 | then true | |
527 | - | else | |
528 | + | else i("invalid donation part"), if ((aO >= 0)) | |
528 | 529 | then true | |
529 | - | else | |
530 | + | else i("invalid lp part"), if ((bC >= 0)) | |
530 | 531 | then true | |
531 | - | else | |
532 | + | else i("invalid claim part"), if ((bD >= 0)) | |
532 | 533 | then true | |
533 | - | else | |
534 | + | else i("invalid PWR stake part")] | |
534 | 535 | if ((bJ == bJ)) | |
535 | 536 | then { | |
536 | - | let ch = | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | $Tuple2(nil, $Tuple6(bC, | |
537 | + | let ch = aN(aO) | |
538 | + | let aR = ch._1 | |
539 | + | let aP = ch._2 | |
540 | + | let aT = ch._3 | |
541 | + | $Tuple2(nil, $Tuple6(bC, aO, bB, aR, aP, aT)) | |
541 | 542 | } | |
542 | 543 | else throw("Strict value is not equal to itself.") | |
543 | 544 | } | |
544 | 545 | ||
545 | 546 | ||
546 | 547 | ||
547 | - | @Callable( | |
548 | - | func invest ( | |
549 | - | let bx = | |
548 | + | @Callable(ay) | |
549 | + | func invest (aV) = { | |
550 | + | let bx = aA(ay) | |
550 | 551 | if ((bx == bx)) | |
551 | 552 | then { | |
552 | - | let | |
553 | - | let | |
554 | - | let bF = valueOrErrorMessage(getInteger( | |
555 | - | let ci = getIntegerValue( | |
553 | + | let D = Address(aV) | |
554 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
555 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
556 | + | let ci = getIntegerValue(ag, M()) | |
556 | 557 | let cj = if (((bF + ci) > height)) | |
557 | 558 | then true | |
558 | - | else | |
559 | + | else i("too late to invest in this period") | |
559 | 560 | if ((cj == cj)) | |
560 | 561 | then { | |
561 | - | let bG = valueOrErrorMessage(getInteger( | |
562 | - | let bO = if ((size( | |
563 | - | then | |
564 | - | else | |
562 | + | let bG = valueOrErrorMessage(getInteger(ag, G(aW)), g("invalid price")) | |
563 | + | let bO = if ((size(ay.payments) == 1)) | |
564 | + | then ay.payments[0] | |
565 | + | else i("invalid payments") | |
565 | 566 | let ck = if (if ((bO.assetId == unit)) | |
566 | 567 | then (bO.amount > 0) | |
567 | 568 | else false) | |
568 | 569 | then $Tuple2(bO.amount, bO.assetId) | |
569 | - | else | |
570 | + | else i("invalid payment amount") | |
570 | 571 | let bS = ck._1 | |
571 | 572 | let bT = ck._2 | |
572 | - | let cl = valueOrElse(getInteger( | |
573 | + | let cl = valueOrElse(getInteger(ag, w()), 0) | |
573 | 574 | let cm = fraction(bS, (c - cl), c) | |
574 | - | let | |
575 | + | let W = if ((bG > 0)) | |
575 | 576 | then fraction(cm, c, bG) | |
576 | 577 | else 0 | |
577 | - | let cn = valueOrElse(getInteger( | |
578 | - | let bN = [ScriptTransfer( | |
579 | - | let bA = [invoke( | |
578 | + | let cn = valueOrElse(getInteger(ag, A(unit)), 0) | |
579 | + | let bN = [ScriptTransfer(ap, cm, bT), ScriptTransfer(aq, cl, bT)] | |
580 | + | let bA = [invoke(ag, "integerEntry", [A(unit), (cn + cm)], nil), invoke(ag, "reissue", [W], nil), invoke(ag, "transferAsset", [aV, W, ak], nil)] | |
580 | 581 | $Tuple2(bN, bA) | |
581 | 582 | } | |
582 | 583 | else throw("Strict value is not equal to itself.") | |
586 | 587 | ||
587 | 588 | ||
588 | 589 | ||
589 | - | @Callable( | |
590 | - | func withdraw ( | |
591 | - | let bx = | |
590 | + | @Callable(ay) | |
591 | + | func withdraw (aV) = { | |
592 | + | let bx = aA(ay) | |
592 | 593 | if ((bx == bx)) | |
593 | 594 | then { | |
594 | - | let C = Address(aU) | |
595 | - | let aV = valueOrErrorMessage(getInteger(af, E()), f("invalid period")) | |
596 | - | let bO = if ((size(ax.payments) == 1)) | |
597 | - | then ax.payments[0] | |
598 | - | else h(f("invalid payments")) | |
599 | - | let bT = if ((bO.assetId == aj)) | |
600 | - | then aj | |
601 | - | else h("invalid payment asset") | |
602 | - | let bS = if ((bO.amount > 0)) | |
603 | - | then bO.amount | |
604 | - | else h("invalid payment amount") | |
605 | - | let co = valueOrElse(getInteger(af, Q()), 0) | |
606 | - | let bN = [ScriptTransfer(af, bS, bT)] | |
607 | - | let bA = [invoke(af, "integerEntry", [Q(), (co + bS)], nil), invoke(af, "stringEntry", [R(C, ax.transactionId), T(d, bS, (aV + 1), unit)], nil)] | |
608 | - | if ((bA == bA)) | |
609 | - | then $Tuple2(bN, bA) | |
610 | - | else throw("Strict value is not equal to itself.") | |
611 | - | } | |
612 | - | else throw("Strict value is not equal to itself.") | |
613 | - | } | |
614 | - | ||
615 | - | ||
616 | - | ||
617 | - | @Callable(ax) | |
618 | - | func cancelWithdraw (aU,S) = { | |
619 | - | let bx = az(ax) | |
620 | - | if ((bx == bx)) | |
621 | - | then { | |
622 | - | let C = Address(aU) | |
623 | - | let aW = valueOrErrorMessage(getString(af, R(C, S)), f("invalid withdrawal request")) | |
624 | - | let aV = valueOrErrorMessage(getInteger(af, E()), f("invalid period")) | |
625 | - | let cp = ac(aW) | |
626 | - | let U = cp._1 | |
627 | - | let V = cp._2 | |
628 | - | let W = cp._3 | |
629 | - | let X = cp._4 | |
630 | - | let bJ = [if ((U == d)) | |
595 | + | let D = Address(aV) | |
596 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
597 | + | let bE = valueOrErrorMessage(getInteger(ag, L()), g("invalid period length")) | |
598 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
599 | + | let cj = if (((bF + bE) > height)) | |
631 | 600 | then true | |
632 | - | else h("invalid withdrawal request status"), if ((W > aV)) | |
633 | - | then true | |
634 | - | else h("invalid withdrawal request period")] | |
635 | - | if ((bJ == bJ)) | |
601 | + | else i("too late to withdraw in this period") | |
602 | + | if ((cj == cj)) | |
636 | 603 | then { | |
637 | - | let co = valueOrErrorMessage(getInteger(af, Q()), f("invalid total withdrawal amount")) | |
638 | - | let bA = [invoke(af, "integerEntry", [Q(), if ((co >= V)) | |
639 | - | then (co - V) | |
640 | - | else h("invalid withdrawal amount")], nil), invoke(af, "deleteEntry", [R(C, S)], nil), invoke(af, "transferAsset", [aU, V, aj], nil)] | |
604 | + | let bO = if ((size(ay.payments) == 1)) | |
605 | + | then ay.payments[0] | |
606 | + | else i(g("invalid payments")) | |
607 | + | let bT = if ((bO.assetId == ak)) | |
608 | + | then ak | |
609 | + | else i("invalid payment asset") | |
610 | + | let bS = if ((bO.amount > 0)) | |
611 | + | then bO.amount | |
612 | + | else i("invalid payment amount") | |
613 | + | let co = valueOrElse(getInteger(ag, R()), 0) | |
614 | + | let bN = [ScriptTransfer(ag, bS, bT)] | |
615 | + | let bA = [invoke(ag, "integerEntry", [R(), (co + bS)], nil), invoke(ag, "stringEntry", [S(D, ay.transactionId), U(d, bS, (aW + 1), unit)], nil)] | |
641 | 616 | if ((bA == bA)) | |
642 | - | then $Tuple2( | |
617 | + | then $Tuple2(bN, bA) | |
643 | 618 | else throw("Strict value is not equal to itself.") | |
644 | 619 | } | |
645 | 620 | else throw("Strict value is not equal to itself.") | |
649 | 624 | ||
650 | 625 | ||
651 | 626 | ||
652 | - | @Callable(ax) | |
653 | - | func claimCollateral (aU,S) = { | |
654 | - | let bx = az(ax) | |
627 | + | @Callable(ay) | |
628 | + | func cancelWithdraw (aV,T) = { | |
629 | + | let bx = aA(ay) | |
630 | + | if ((bx == bx)) | |
631 | + | then i("cancelWithdraw is deprecated") | |
632 | + | else throw("Strict value is not equal to itself.") | |
633 | + | } | |
634 | + | ||
635 | + | ||
636 | + | ||
637 | + | @Callable(ay) | |
638 | + | func claimCollateral (aV,T) = { | |
639 | + | let bx = aA(ay) | |
655 | 640 | if ((bx == bx)) | |
656 | 641 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let bA = [invoke( | |
642 | + | let cp = aU(aV, fromBase58String(T)) | |
643 | + | let D = cp._1 | |
644 | + | let W = cp._2 | |
645 | + | let X = cp._3 | |
646 | + | let ba = cp._4 | |
647 | + | let bb = cp._5 | |
648 | + | let bc = cp._6 | |
649 | + | let cq = removeByIndex(split_51C(bb, a), 0) | |
650 | + | let cr = removeByIndex(split_51C(bc, a), 0) | |
651 | + | let bA = [invoke(ag, "deleteEntry", [S(D, fromBase58String(T))], nil), invoke(ag, "integerEntry", [aa(D, fromBase58String(T)), W], nil), invoke(ag, "transferAssets", [aV, cq, cr], nil)] | |
667 | 652 | $Tuple2(nil, bA) | |
668 | 653 | } | |
669 | 654 | else throw("Strict value is not equal to itself.") | |
671 | 656 | ||
672 | 657 | ||
673 | 658 | ||
674 | - | @Callable( | |
675 | - | func claimCollateralBulk ( | |
676 | - | let bx = | |
659 | + | @Callable(ay) | |
660 | + | func claimCollateralBulk (aV,cs) = { | |
661 | + | let bx = aA(ay) | |
677 | 662 | if ((bx == bx)) | |
678 | 663 | then { | |
679 | - | func bM ( | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | ( | |
664 | + | func bM (ct,T) = { | |
665 | + | let cu = aU(aV, fromBase58String(T)) | |
666 | + | let D = cu._1 | |
667 | + | let W = cu._2 | |
668 | + | let X = cu._3 | |
669 | + | let ba = cu._4 | |
670 | + | let bb = cu._5 | |
671 | + | let bc = cu._6 | |
672 | + | let cq = removeByIndex(split_51C(bb, a), 0) | |
673 | + | let cr = removeByIndex(split_51C(bc, a), 0) | |
674 | + | let cv = [invoke(ag, "deleteEntry", [S(D, fromBase58String(T))], nil), invoke(ag, "integerEntry", [aa(D, fromBase58String(T)), W], nil), invoke(ag, "transferAssets", [aV, cq, cr], nil)] | |
675 | + | (ct ++ cv) | |
691 | 676 | } | |
692 | 677 | ||
693 | - | let | |
694 | - | let bY = | |
678 | + | let cw = { | |
679 | + | let bY = cs | |
695 | 680 | let bZ = size(bY) | |
696 | 681 | let ca = nil | |
697 | 682 | func cb (cc,cd) = if ((cd >= bZ)) | |
704 | 689 | ||
705 | 690 | ce(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
706 | 691 | } | |
707 | - | $Tuple2(nil, | |
692 | + | $Tuple2(nil, cw) | |
708 | 693 | } | |
709 | 694 | else throw("Strict value is not equal to itself.") | |
710 | 695 | } | |
711 | 696 | ||
712 | 697 | ||
713 | 698 | ||
714 | - | @Callable( | |
715 | - | func claimCollateralREADONLY ( | |
716 | - | let | |
717 | - | $Tuple2(nil, | |
699 | + | @Callable(ay) | |
700 | + | func claimCollateralREADONLY (aV,T) = { | |
701 | + | let cx = bd(aV, fromBase58String(T)) | |
702 | + | $Tuple2(nil, cx) | |
718 | 703 | } | |
719 | 704 | ||
720 | 705 | ||
721 | 706 | ||
722 | - | @Callable( | |
723 | - | func claimCollateralBulkREADONLY ( | |
724 | - | func | |
725 | - | let | |
726 | - | ( | |
707 | + | @Callable(ay) | |
708 | + | func claimCollateralBulkREADONLY (aV,cs) = { | |
709 | + | func cy (ct,T) = { | |
710 | + | let cx = bd(aV, fromBase58String(T)) | |
711 | + | (ct :+ cx) | |
727 | 712 | } | |
728 | 713 | ||
729 | - | let | |
730 | - | let bY = | |
714 | + | let cz = { | |
715 | + | let bY = cs | |
731 | 716 | let bZ = size(bY) | |
732 | 717 | let ca = nil | |
733 | 718 | func cb (cc,cd) = if ((cd >= bZ)) | |
734 | 719 | then cc | |
735 | - | else | |
720 | + | else cy(cc, bY[cd]) | |
736 | 721 | ||
737 | 722 | func ce (cc,cd) = if ((cd >= bZ)) | |
738 | 723 | then cc | |
740 | 725 | ||
741 | 726 | ce(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
742 | 727 | } | |
743 | - | $Tuple2(nil, | |
728 | + | $Tuple2(nil, cz) | |
744 | 729 | } | |
745 | 730 | ||
746 | 731 | ||
747 | 732 | ||
748 | - | @Callable( | |
749 | - | func processBlocks ( | |
750 | - | let bx = | |
733 | + | @Callable(ay) | |
734 | + | func processBlocks (aV) = { | |
735 | + | let bx = aA(ay) | |
751 | 736 | if ((bx == bx)) | |
752 | 737 | then { | |
753 | - | let | |
754 | - | let | |
755 | - | let bE = valueOrErrorMessage(getInteger( | |
756 | - | let bF = valueOrErrorMessage(getInteger( | |
757 | - | let bG = valueOrErrorMessage(getInteger( | |
758 | - | let bH = valueOrErrorMessage(getInteger( | |
738 | + | let D = Address(aV) | |
739 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
740 | + | let bE = valueOrErrorMessage(getInteger(ag, L()), g("invalid period length")) | |
741 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
742 | + | let bG = valueOrErrorMessage(getInteger(ag, G(aW)), g("invalid price")) | |
743 | + | let bH = valueOrErrorMessage(getInteger(ag, O()), g("invalid next block to process")) | |
759 | 744 | let bI = ((bF + bE) - 1) | |
760 | - | let bp = 20 | |
761 | - | let cB = if (if (if ((height >= bH)) | |
745 | + | let cA = if (if (if ((height >= bH)) | |
762 | 746 | then if ((bH >= bF)) | |
763 | 747 | then true | |
764 | - | else ( | |
748 | + | else (aW == 0) | |
765 | 749 | else false) | |
766 | 750 | then (bI >= bH) | |
767 | 751 | else false) | |
768 | - | then min([((bI - bH) + 1), | |
769 | - | else | |
770 | - | let br = valueOrErrorMessage(getInteger( | |
771 | - | let bs = (br / | |
772 | - | let | |
773 | - | func | |
774 | - | then | |
752 | + | then min([((bI - bH) + 1), f]) | |
753 | + | else i(g("invalid target block")) | |
754 | + | let br = valueOrErrorMessage(getInteger(ag, N()), g("invalid block processing reward")) | |
755 | + | let bs = (br / cA) | |
756 | + | let cB = (br - (bs * cA)) | |
757 | + | func cC (cD,cE) = if ((cE >= cA)) | |
758 | + | then cD | |
775 | 759 | else { | |
776 | - | let bu = (bH + | |
777 | - | let bv = valueOrErrorMessage(blockInfoByHeight(bu), | |
778 | - | let bw = valueOrErrorMessage( | |
779 | - | let | |
780 | - | let by = valueOrElse(getInteger( | |
781 | - | let | |
782 | - | then (bs + | |
760 | + | let bu = (bH + cE) | |
761 | + | let bv = valueOrErrorMessage(blockInfoByHeight(bu), g("invalid block info")) | |
762 | + | let bw = valueOrErrorMessage(aB(bv.rewards, am), g(("invalid treasury reward for height " + toString(bu)))) | |
763 | + | let cF = bv.generator | |
764 | + | let by = valueOrElse(getInteger(ag, C(cF)), 0) | |
765 | + | let cG = if ((cE == (cA - 1))) | |
766 | + | then (bs + cB) | |
783 | 767 | else bs | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | then fraction(( | |
768 | + | let cH = bh(bw) | |
769 | + | let cI = cH._1 | |
770 | + | let bm = cH._2 | |
771 | + | let bn = cH._3 | |
772 | + | let W = if ((bG > 0)) | |
773 | + | then fraction((bn - cG), c, bG) | |
790 | 774 | else 0 | |
791 | - | let | |
792 | - | if (( | |
775 | + | let cJ = [invoke(ag, "stringEntry", [P(bu), makeString([toBase58String(ay.transactionId), toString(aW), toString(cF), toBase58String(aV), toString(bw), toString(cG), toString(W), toString(cI)], a)], nil), invoke(ag, "integerEntry", [C(cF), (by + W)], nil)] | |
776 | + | if ((cJ == cJ)) | |
793 | 777 | then { | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | $Tuple4((cM + | |
778 | + | let cK = cD | |
779 | + | let cL = cK._1 | |
780 | + | let cM = cK._2 | |
781 | + | let cN = cK._3 | |
782 | + | let cO = cK._4 | |
783 | + | let cP = cO | |
784 | + | let cQ = cP._1 | |
785 | + | let cR = cP._2 | |
786 | + | let cS = (cR :+ $Tuple2(toString(cF), cI)) | |
787 | + | $Tuple4((cL + W), (cM + bw), (cN + bm), $Tuple2((cQ + cI), cS)) | |
804 | 788 | } | |
805 | 789 | else throw("Strict value is not equal to itself.") | |
806 | 790 | } | |
807 | 791 | ||
808 | - | let | |
809 | - | let | |
810 | - | let bY = | |
792 | + | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
793 | + | let cU = { | |
794 | + | let bY = cT | |
811 | 795 | let bZ = size(bY) | |
812 | 796 | let ca = $Tuple4(0, 0, 0, $Tuple2(0, nil)) | |
813 | 797 | func cb (cc,cd) = if ((cd >= bZ)) | |
814 | 798 | then cc | |
815 | - | else | |
799 | + | else cC(cc, bY[cd]) | |
816 | 800 | ||
817 | 801 | func ce (cc,cd) = if ((cd >= bZ)) | |
818 | 802 | then cc | |
820 | 804 | ||
821 | 805 | ce(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
822 | 806 | } | |
823 | - | if (( | |
807 | + | if ((cU == cU)) | |
824 | 808 | then { | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | let cn = valueOrElse(getInteger( | |
834 | - | let | |
809 | + | let cO = cU._4 | |
810 | + | let cV = cU._3 | |
811 | + | let cW = cU._2 | |
812 | + | let cX = cU._1 | |
813 | + | let cY = cO | |
814 | + | let cZ = cY._1 | |
815 | + | let da = cY._2 | |
816 | + | let db = (((cW - cV) - br) - cZ) | |
817 | + | let cn = valueOrElse(getInteger(ag, A(unit)), 0) | |
818 | + | let dc = if ((cZ > 0)) | |
835 | 819 | then { | |
836 | - | let | |
837 | - | if (( | |
820 | + | let dd = [invoke(ag, "transferFromProxyTreasury", [ag.bytes, cZ], nil)] | |
821 | + | if ((dd == dd)) | |
838 | 822 | then { | |
839 | - | let | |
840 | - | if (( | |
823 | + | let de = invoke(ag, "swap", [at, e, cZ], nil) | |
824 | + | if ((de == de)) | |
841 | 825 | then { | |
842 | - | let | |
843 | - | let | |
844 | - | if ($isInstanceOf( | |
826 | + | let df = { | |
827 | + | let l = de | |
828 | + | if ($isInstanceOf(l, "Int")) | |
845 | 829 | then { | |
846 | - | let | |
847 | - | | |
830 | + | let dg = l | |
831 | + | dg | |
848 | 832 | } | |
849 | 833 | else 0 | |
850 | 834 | } | |
851 | - | func | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | if (( | |
835 | + | func dh (cD,di) = { | |
836 | + | let dj = di | |
837 | + | let cF = dj._1 | |
838 | + | let dk = dj._2 | |
839 | + | if ((cZ > 0)) | |
856 | 840 | then { | |
857 | - | let | |
858 | - | let | |
859 | - | if (( | |
841 | + | let dl = fraction(dk, df, cZ) | |
842 | + | let dm = invoke(ag, "powerStake", [fromBase58String(cF), fromBase58String(at), dl], nil) | |
843 | + | if ((dm == dm)) | |
860 | 844 | then nil | |
861 | 845 | else throw("Strict value is not equal to itself.") | |
862 | 846 | } | |
863 | 847 | else nil | |
864 | 848 | } | |
865 | 849 | ||
866 | - | let | |
867 | - | let bY = | |
850 | + | let dn = { | |
851 | + | let bY = da | |
868 | 852 | let bZ = size(bY) | |
869 | 853 | let ca = 0 | |
854 | + | func do (cc,cd) = if ((cd >= bZ)) | |
855 | + | then cc | |
856 | + | else dh(cc, bY[cd]) | |
857 | + | ||
870 | 858 | func dp (cc,cd) = if ((cd >= bZ)) | |
871 | - | then cc | |
872 | - | else di(cc, bY[cd]) | |
873 | - | ||
874 | - | func dq (cc,cd) = if ((cd >= bZ)) | |
875 | 859 | then cc | |
876 | 860 | else throw("List size exceeds 20") | |
877 | 861 | ||
878 | - | | |
862 | + | dp(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
879 | 863 | } | |
880 | - | if (( | |
864 | + | if ((dn == dn)) | |
881 | 865 | then nil | |
882 | 866 | else throw("Strict value is not equal to itself.") | |
883 | 867 | } | |
886 | 870 | else throw("Strict value is not equal to itself.") | |
887 | 871 | } | |
888 | 872 | else nil | |
889 | - | if (( | |
873 | + | if ((dc == dc)) | |
890 | 874 | then { | |
891 | - | let bN = [invoke( | |
875 | + | let bN = [invoke(ag, "reissue", [cX], nil), invoke(ag, "integerEntry", [O(), (bH + cA)], nil), invoke(ag, "transferFromProxyTreasury", [ap.bytes, db], nil), invoke(ag, "transferFromProxyTreasury", [aV, br], nil), invoke(ag, "transferFromProxyTreasury", [aq.bytes, cV], nil), invoke(ag, "integerEntry", [A(unit), (cn + db)], nil)] | |
892 | 876 | if ((bN == bN)) | |
893 | 877 | then $Tuple2(nil, unit) | |
894 | 878 | else throw("Strict value is not equal to itself.") | |
901 | 885 | } | |
902 | 886 | ||
903 | 887 | ||
904 | - | @Verifier( | |
905 | - | func | |
906 | - | let | |
907 | - | let | |
908 | - | if ($isInstanceOf( | |
888 | + | @Verifier(dq) | |
889 | + | func dr () = { | |
890 | + | let ds = { | |
891 | + | let l = au() | |
892 | + | if ($isInstanceOf(l, "ByteVector")) | |
909 | 893 | then { | |
910 | - | let | |
911 | - | | |
894 | + | let aw = l | |
895 | + | aw | |
912 | 896 | } | |
913 | - | else | |
897 | + | else dq.senderPublicKey | |
914 | 898 | } | |
915 | - | sigVerify( | |
899 | + | sigVerify(dq.bodyBytes, dq.proofs[0], ds) | |
916 | 900 | } | |
917 | 901 |
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 = "WAVES" | |
13 | 13 | ||
14 | - | func f (g) = ((b + ": ") + g) | |
14 | + | let f = 10 | |
15 | + | ||
16 | + | func g (h) = ((b + ": ") + h) | |
15 | 17 | ||
16 | 18 | ||
17 | - | func | |
19 | + | func i (h) = throw(g(h)) | |
18 | 20 | ||
19 | 21 | ||
20 | - | func | |
21 | - | let | |
22 | - | if ($isInstanceOf( | |
22 | + | func j (k) = { | |
23 | + | let l = k | |
24 | + | if ($isInstanceOf(l, "ByteVector")) | |
23 | 25 | then { | |
24 | - | let | |
25 | - | toBase58String( | |
26 | + | let m = l | |
27 | + | toBase58String(m) | |
26 | 28 | } | |
27 | - | else if ($isInstanceOf( | |
29 | + | else if ($isInstanceOf(l, "Unit")) | |
28 | 30 | then e | |
29 | 31 | else throw("Match error") | |
30 | 32 | } | |
31 | 33 | ||
32 | 34 | ||
33 | - | func | |
35 | + | func n (h) = if ((h == e)) | |
34 | 36 | then unit | |
35 | - | else fromBase58String( | |
37 | + | else fromBase58String(h) | |
36 | 38 | ||
37 | 39 | ||
38 | - | func | |
39 | - | then -( | |
40 | - | else | |
40 | + | func o (p) = if ((0 > p)) | |
41 | + | then -(p) | |
42 | + | else p | |
41 | 43 | ||
42 | 44 | ||
43 | - | func | |
45 | + | func q () = makeString(["%s", "factory"], a) | |
44 | 46 | ||
45 | 47 | ||
46 | - | func | |
48 | + | func r () = makeString(["%s", "managerPublicKey"], a) | |
47 | 49 | ||
48 | 50 | ||
49 | - | func | |
51 | + | func s () = makeString(["%s", "lpAssetId"], a) | |
50 | 52 | ||
51 | 53 | ||
52 | - | func | |
54 | + | func t () = makeString(["%s", "proxyTreasury"], a) | |
53 | 55 | ||
54 | 56 | ||
55 | - | func | |
57 | + | func u () = makeString(["%s", "mainTreasury"], a) | |
56 | 58 | ||
57 | 59 | ||
58 | - | func | |
60 | + | func v () = makeString(["%s", "businessTreasury"], a) | |
59 | 61 | ||
60 | 62 | ||
61 | - | func | |
63 | + | func w () = makeString(["%s", "businessTreasuryPart"], a) | |
62 | 64 | ||
63 | 65 | ||
64 | - | func | |
66 | + | func x () = makeString(["%s", "powerContract"], a) | |
65 | 67 | ||
66 | 68 | ||
67 | - | func | |
69 | + | func y () = makeString(["%s", "powerShareRatio"], a) | |
68 | 70 | ||
69 | 71 | ||
70 | - | func | |
72 | + | func z () = makeString(["%s", "powerAssetId"], a) | |
71 | 73 | ||
72 | 74 | ||
73 | - | func | |
75 | + | func A (k) = makeString(["%s%s", "invested", j(k)], a) | |
74 | 76 | ||
75 | 77 | ||
76 | - | func | |
78 | + | func B (k) = makeString(["%s%s", "donated", j(k)], a) | |
77 | 79 | ||
78 | 80 | ||
79 | - | func | |
81 | + | func C (D) = makeString(["%s%s", "available", toString(D)], a) | |
80 | 82 | ||
81 | 83 | ||
82 | - | func | |
84 | + | func E (D) = makeString(["%s%s", "claimed", toString(D)], a) | |
83 | 85 | ||
84 | 86 | ||
85 | - | func | |
87 | + | func F () = makeString(["%s", "currentPeriod"], a) | |
86 | 88 | ||
87 | 89 | ||
88 | - | func | |
90 | + | func G (H) = makeString(["%s%d", "price", toString(H)], a) | |
89 | 91 | ||
90 | 92 | ||
91 | - | func | |
93 | + | func I (H) = makeString(["%s%d", "startHeight", toString(H)], a) | |
92 | 94 | ||
93 | 95 | ||
94 | - | func | |
96 | + | func J (H) = makeString(["%s%d", "powerManagerBonus", toString(H)], a) | |
95 | 97 | ||
96 | 98 | ||
97 | - | func | |
99 | + | func K (H) = makeString(["%s%d", "claimWavesAmount", toString(H)], a) | |
98 | 100 | ||
99 | 101 | ||
100 | - | func | |
102 | + | func L () = "%s__periodLength" | |
101 | 103 | ||
102 | 104 | ||
103 | - | func | |
105 | + | func M () = "%s__investPeriodLength" | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
108 | + | func N () = "%s__blockProcessingReward" | |
107 | 109 | ||
108 | 110 | ||
109 | - | func | |
111 | + | func O () = "%s__nextBlockToProcess" | |
110 | 112 | ||
111 | 113 | ||
112 | - | func | |
114 | + | func P (Q) = makeString(["%s%d", "blockProcessed", toString(Q)], a) | |
113 | 115 | ||
114 | 116 | ||
115 | - | func | |
117 | + | func R () = "%s__withdrawal" | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func S (D,T) = makeString(["%s%s%s", "withdrawal", toString(D), toBase58String(T)], a) | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
122 | - | let | |
123 | - | let | |
124 | - | if ($isInstanceOf( | |
123 | + | func U (V,W,X,Y) = { | |
124 | + | let Z = { | |
125 | + | let l = Y | |
126 | + | if ($isInstanceOf(l, "ByteVector")) | |
125 | 127 | then { | |
126 | - | let | |
127 | - | toBase58String( | |
128 | + | let m = l | |
129 | + | toBase58String(m) | |
128 | 130 | } | |
129 | - | else if ($isInstanceOf( | |
131 | + | else if ($isInstanceOf(l, "Unit")) | |
130 | 132 | then "SOON" | |
131 | 133 | else throw("Match error") | |
132 | 134 | } | |
133 | - | makeString(["%s%d%d%s", | |
135 | + | makeString(["%s%d%d%s", V, toString(W), toString(X), Z], a) | |
134 | 136 | } | |
135 | 137 | ||
136 | 138 | ||
137 | - | func | |
139 | + | func aa (D,T) = makeString(["%s%s%s", "withdrawalHistory", toString(D), toBase58String(T)], a) | |
138 | 140 | ||
139 | 141 | ||
140 | - | func | |
142 | + | func ab (H) = makeString(["%s%d", "periodReward", toString(H)], a) | |
141 | 143 | ||
142 | 144 | ||
143 | - | func | |
145 | + | func ac (H) = makeString(["%s%d", "periodRewardAmount", toString(H)], a) | |
144 | 146 | ||
145 | 147 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ((size( | |
148 | + | func ad (h) = { | |
149 | + | let ae = split(h, a) | |
150 | + | if ((size(ae) == 5)) | |
149 | 151 | then { | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | $Tuple4( | |
152 | + | let V = ae[1] | |
153 | + | let W = valueOrErrorMessage(parseInt(ae[2]), g("invalid lpAssetAmount")) | |
154 | + | let X = valueOrErrorMessage(parseInt(ae[3]), g("invalid targetPeriod")) | |
155 | + | let Y = ae[4] | |
156 | + | $Tuple4(V, W, X, Y) | |
155 | 157 | } | |
156 | - | else | |
158 | + | else i("invalid withdrawal request value") | |
157 | 159 | } | |
158 | 160 | ||
159 | 161 | ||
160 | - | let | |
161 | - | let | |
162 | - | if ($isInstanceOf( | |
162 | + | let af = { | |
163 | + | let l = getString(this, q()) | |
164 | + | if ($isInstanceOf(l, "String")) | |
163 | 165 | then { | |
164 | - | let | |
165 | - | addressFromString( | |
166 | + | let h = l | |
167 | + | addressFromString(h) | |
166 | 168 | } | |
167 | - | else if ($isInstanceOf( | |
169 | + | else if ($isInstanceOf(l, "Unit")) | |
168 | 170 | then unit | |
169 | 171 | else throw("Match error") | |
170 | 172 | } | |
171 | 173 | ||
172 | - | let | |
174 | + | let ag = valueOrErrorMessage(af, g("invalid factory address")) | |
173 | 175 | ||
174 | - | let | |
175 | - | let | |
176 | - | if ($isInstanceOf( | |
176 | + | let ah = { | |
177 | + | let l = af | |
178 | + | if ($isInstanceOf(l, "Address")) | |
177 | 179 | then { | |
178 | - | let | |
179 | - | let | |
180 | - | if ($isInstanceOf( | |
180 | + | let ai = l | |
181 | + | let aj = getString(ai, s()) | |
182 | + | if ($isInstanceOf(aj, "String")) | |
181 | 183 | then { | |
182 | - | let | |
183 | - | fromBase58String( | |
184 | + | let h = aj | |
185 | + | fromBase58String(h) | |
184 | 186 | } | |
185 | - | else if ($isInstanceOf( | |
187 | + | else if ($isInstanceOf(aj, "Unit")) | |
186 | 188 | then unit | |
187 | 189 | else throw("Match error") | |
188 | 190 | } | |
189 | - | else if ($isInstanceOf( | |
191 | + | else if ($isInstanceOf(l, "Unit")) | |
190 | 192 | then unit | |
191 | 193 | else throw("Match error") | |
192 | 194 | } | |
193 | 195 | ||
194 | - | let | |
196 | + | let ak = valueOrErrorMessage(ah, g("invalid lpAssetId")) | |
195 | 197 | ||
196 | - | let | |
197 | - | let | |
198 | - | if ($isInstanceOf( | |
198 | + | let al = { | |
199 | + | let l = af | |
200 | + | if ($isInstanceOf(l, "Address")) | |
199 | 201 | then { | |
200 | - | let | |
201 | - | let | |
202 | - | if ($isInstanceOf( | |
202 | + | let ai = l | |
203 | + | let aj = getString(ai, t()) | |
204 | + | if ($isInstanceOf(aj, "String")) | |
203 | 205 | then { | |
204 | - | let | |
205 | - | addressFromString( | |
206 | + | let h = aj | |
207 | + | addressFromString(h) | |
206 | 208 | } | |
207 | - | else if ($isInstanceOf( | |
209 | + | else if ($isInstanceOf(aj, "Unit")) | |
208 | 210 | then unit | |
209 | 211 | else throw("Match error") | |
210 | 212 | } | |
211 | - | else if ($isInstanceOf( | |
213 | + | else if ($isInstanceOf(l, "Unit")) | |
212 | 214 | then unit | |
213 | 215 | else throw("Match error") | |
214 | 216 | } | |
215 | 217 | ||
216 | - | let | |
218 | + | let am = valueOrErrorMessage(al, g("invalid proxy treasury address")) | |
217 | 219 | ||
218 | - | let | |
219 | - | let | |
220 | - | if ($isInstanceOf( | |
220 | + | let an = { | |
221 | + | let l = af | |
222 | + | if ($isInstanceOf(l, "Address")) | |
221 | 223 | then { | |
222 | - | let | |
223 | - | let | |
224 | - | if ($isInstanceOf( | |
224 | + | let ai = l | |
225 | + | let aj = getString(ai, u()) | |
226 | + | if ($isInstanceOf(aj, "String")) | |
225 | 227 | then { | |
226 | - | let | |
227 | - | addressFromString( | |
228 | + | let h = aj | |
229 | + | addressFromString(h) | |
228 | 230 | } | |
229 | - | else if ($isInstanceOf( | |
231 | + | else if ($isInstanceOf(aj, "Unit")) | |
230 | 232 | then unit | |
231 | 233 | else throw("Match error") | |
232 | 234 | } | |
233 | - | else if ($isInstanceOf( | |
235 | + | else if ($isInstanceOf(l, "Unit")) | |
234 | 236 | then unit | |
235 | 237 | else throw("Match error") | |
236 | 238 | } | |
237 | 239 | ||
238 | - | let | |
239 | - | let | |
240 | - | if ($isInstanceOf( | |
240 | + | let ao = { | |
241 | + | let l = af | |
242 | + | if ($isInstanceOf(l, "Address")) | |
241 | 243 | then { | |
242 | - | let | |
243 | - | let | |
244 | - | if ($isInstanceOf( | |
244 | + | let ai = l | |
245 | + | let aj = getString(ai, v()) | |
246 | + | if ($isInstanceOf(aj, "String")) | |
245 | 247 | then { | |
246 | - | let | |
247 | - | addressFromString( | |
248 | + | let h = aj | |
249 | + | addressFromString(h) | |
248 | 250 | } | |
249 | - | else if ($isInstanceOf( | |
251 | + | else if ($isInstanceOf(aj, "Unit")) | |
250 | 252 | then unit | |
251 | 253 | else throw("Match error") | |
252 | 254 | } | |
253 | - | else if ($isInstanceOf( | |
255 | + | else if ($isInstanceOf(l, "Unit")) | |
254 | 256 | then unit | |
255 | 257 | else throw("Match error") | |
256 | 258 | } | |
257 | 259 | ||
258 | - | let | |
260 | + | let ap = valueOrErrorMessage(an, g("invalid main treasury address")) | |
259 | 261 | ||
260 | - | let | |
262 | + | let aq = valueOrErrorMessage(ao, g("invalid business treasury address")) | |
261 | 263 | ||
262 | - | let | |
263 | - | let | |
264 | - | if ($isInstanceOf( | |
264 | + | let ar = { | |
265 | + | let l = af | |
266 | + | if ($isInstanceOf(l, "Address")) | |
265 | 267 | then { | |
266 | - | let | |
267 | - | let | |
268 | - | if ($isInstanceOf( | |
268 | + | let ai = l | |
269 | + | let aj = getString(ai, x()) | |
270 | + | if ($isInstanceOf(aj, "String")) | |
269 | 271 | then { | |
270 | - | let | |
271 | - | addressFromString( | |
272 | + | let h = aj | |
273 | + | addressFromString(h) | |
272 | 274 | } | |
273 | - | else if ($isInstanceOf( | |
275 | + | else if ($isInstanceOf(aj, "Unit")) | |
274 | 276 | then unit | |
275 | 277 | else throw("Match error") | |
276 | 278 | } | |
277 | - | else if ($isInstanceOf( | |
279 | + | else if ($isInstanceOf(l, "Unit")) | |
278 | 280 | then unit | |
279 | 281 | else throw("Match error") | |
280 | 282 | } | |
281 | 283 | ||
282 | - | let | |
284 | + | let as = valueOrErrorMessage(ar, g("invalid power contract address")) | |
283 | 285 | ||
284 | - | let | |
286 | + | let at = valueOrErrorMessage(getString(ag, z()), g("power asset id not found")) | |
285 | 287 | ||
286 | - | func | |
287 | - | let | |
288 | - | if ($isInstanceOf( | |
288 | + | func au () = { | |
289 | + | let l = af | |
290 | + | if ($isInstanceOf(l, "Address")) | |
289 | 291 | then { | |
290 | - | let | |
291 | - | let | |
292 | - | if ($isInstanceOf( | |
292 | + | let av = l | |
293 | + | let aj = getString(av, r()) | |
294 | + | if ($isInstanceOf(aj, "String")) | |
293 | 295 | then { | |
294 | - | let | |
295 | - | fromBase58String( | |
296 | + | let aw = aj | |
297 | + | fromBase58String(aw) | |
296 | 298 | } | |
297 | 299 | else unit | |
298 | 300 | } | |
299 | 301 | else unit | |
300 | 302 | } | |
301 | 303 | ||
302 | 304 | ||
303 | - | func | |
305 | + | func ax (ay,az) = if ((ay.caller == az)) | |
304 | 306 | then true | |
305 | - | else | |
307 | + | else i("permission denied") | |
306 | 308 | ||
307 | 309 | ||
308 | - | func | |
310 | + | func aA (ay) = ax(ay, ag) | |
309 | 311 | ||
310 | 312 | ||
311 | - | func | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | if (if (( | |
323 | - | then ( | |
313 | + | func aB (aC,aD) = { | |
314 | + | let h = size(aC) | |
315 | + | let aE = aC[0] | |
316 | + | let aF = aE._1 | |
317 | + | let aG = aE._2 | |
318 | + | let aH = aC[1] | |
319 | + | let aI = aH._1 | |
320 | + | let aJ = aH._2 | |
321 | + | let aK = aC[2] | |
322 | + | let aL = aK._1 | |
323 | + | let aM = aK._2 | |
324 | + | if (if ((h > 0)) | |
325 | + | then (aF == aD) | |
324 | 326 | else false) | |
325 | - | then | |
326 | - | else if (if (( | |
327 | - | then ( | |
327 | + | then aG | |
328 | + | else if (if ((h > 1)) | |
329 | + | then (aI == aD) | |
328 | 330 | else false) | |
329 | - | then | |
330 | - | else if (if (( | |
331 | - | then ( | |
331 | + | then aJ | |
332 | + | else if (if ((h > 2)) | |
333 | + | then (aL == aD) | |
332 | 334 | else false) | |
333 | - | then | |
335 | + | then aM | |
334 | 336 | else unit | |
335 | 337 | } | |
336 | 338 | ||
337 | 339 | ||
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
340 | + | func aN (aO) = { | |
341 | + | let aP = valueOrElse(getInteger(ag, R()), 0) | |
342 | + | let aQ = valueOrErrorMessage(assetInfo(ak), g("invalid lpAsset info")).quantity | |
343 | + | let aR = fraction(aO, c, (aQ - aP)) | |
344 | + | let aS = if ((aR != 0)) | |
343 | 345 | then true | |
344 | - | else | |
345 | - | if (( | |
346 | + | else i("LP price cannot be 0") | |
347 | + | if ((aS == aS)) | |
346 | 348 | then { | |
347 | - | let | |
348 | - | $Tuple3( | |
349 | + | let aT = (aQ - aP) | |
350 | + | $Tuple3(aR, aP, aT) | |
349 | 351 | } | |
350 | 352 | else throw("Strict value is not equal to itself.") | |
351 | 353 | } | |
352 | 354 | ||
353 | 355 | ||
354 | - | func | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | if (( | |
364 | - | then | |
356 | + | func aU (aV,T) = { | |
357 | + | let D = Address(aV) | |
358 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
359 | + | let aX = valueOrErrorMessage(getString(ag, S(D, T)), g("invalid withdrawal request")) | |
360 | + | let aY = ad(aX) | |
361 | + | let V = aY._1 | |
362 | + | let W = aY._2 | |
363 | + | let X = aY._3 | |
364 | + | let Y = aY._4 | |
365 | + | if ((X > aW)) | |
366 | + | then i("invalid withdrawal request period") | |
365 | 367 | else { | |
366 | - | let | |
367 | - | let | |
368 | - | then fraction( | |
368 | + | let aZ = valueOrErrorMessage(getInteger(ag, G(X)), g("invalid price")) | |
369 | + | let ba = if ((aZ > 0)) | |
370 | + | then fraction(W, aZ, c) | |
369 | 371 | else 0 | |
370 | - | let | |
371 | - | let | |
372 | - | $Tuple6( | |
372 | + | let bb = getStringValue(ag, ab(aW)) | |
373 | + | let bc = getStringValue(ag, ac(aW)) | |
374 | + | $Tuple6(D, W, X, ba, bb, bc) | |
373 | 375 | } | |
374 | 376 | } | |
375 | 377 | ||
376 | 378 | ||
377 | - | func bc (aU,S) = { | |
378 | - | let bd = aT(aU, S) | |
379 | - | let C = bd._1 | |
380 | - | let V = bd._2 | |
381 | - | let W = bd._3 | |
382 | - | let aZ = bd._4 | |
383 | - | let ba = bd._5 | |
384 | - | let bb = bd._6 | |
385 | - | let be = makeString(removeByIndex(split_51C(ba, a), 0), ":") | |
379 | + | func bd (aV,T) = { | |
380 | + | let be = aU(aV, T) | |
381 | + | let D = be._1 | |
382 | + | let W = be._2 | |
383 | + | let X = be._3 | |
384 | + | let ba = be._4 | |
385 | + | let bb = be._5 | |
386 | + | let bc = be._6 | |
386 | 387 | let bf = makeString(removeByIndex(split_51C(bb, a), 0), ":") | |
387 | - | makeString(["%d%s%s", toString(aZ), be, bf], a) | |
388 | + | let bg = makeString(removeByIndex(split_51C(bc, a), 0), ":") | |
389 | + | makeString(["%d%s%s", toString(ba), bf, bg], a) | |
388 | 390 | } | |
389 | 391 | ||
390 | 392 | ||
391 | - | func | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | if (( | |
398 | - | then $Tuple3( | |
399 | - | else | |
393 | + | func bh (bi) = { | |
394 | + | let bj = max([0, min([valueOrElse(getInteger(ag, y()), 0), c])]) | |
395 | + | let bk = max([0, min([valueOrElse(getInteger(ag, w()), 0), c])]) | |
396 | + | let bl = fraction(bi, bj, c) | |
397 | + | let bm = fraction(bi, bk, c) | |
398 | + | let bn = ((bi - bl) - bm) | |
399 | + | if ((bn > 0)) | |
400 | + | then $Tuple3(bl, bm, bn) | |
401 | + | else i("amount to main treasury cannot be negative") | |
400 | 402 | } | |
401 | 403 | ||
402 | 404 | ||
403 | - | func bn (bo) = { | |
404 | - | let bp = 20 | |
405 | - | let bq = bg(bo) | |
406 | - | let bk = bq._1 | |
407 | - | let bl = bq._2 | |
408 | - | let bm = bq._3 | |
409 | - | let br = valueOrErrorMessage(getInteger(af, M()), f("invalid block processing reward")) | |
410 | - | let bs = (br / bp) | |
411 | - | let bt = (bm - br) | |
412 | - | $Tuple5(bk, bl, br, bt, bo) | |
405 | + | func bo (bp) = { | |
406 | + | let bq = bh(bp) | |
407 | + | let bl = bq._1 | |
408 | + | let bm = bq._2 | |
409 | + | let bn = bq._3 | |
410 | + | let br = valueOrErrorMessage(getInteger(ag, N()), g("invalid block processing reward")) | |
411 | + | let bs = (br / f) | |
412 | + | let bt = (bn - br) | |
413 | + | $Tuple5(bl, bm, br, bt, bp) | |
413 | 414 | } | |
414 | 415 | ||
415 | 416 | ||
416 | - | @Callable( | |
417 | + | @Callable(ay) | |
417 | 418 | func rewardSplitREADONLY () = { | |
418 | 419 | let bu = (height - 1) | |
419 | - | let bv = valueOrErrorMessage(blockInfoByHeight(bu), | |
420 | - | let bw = valueOrErrorMessage( | |
421 | - | $Tuple2(nil, | |
420 | + | let bv = valueOrErrorMessage(blockInfoByHeight(bu), g("invalid block info")) | |
421 | + | let bw = valueOrErrorMessage(aB(bv.rewards, am), g(("invalid treasury reward for height " + toString(bu)))) | |
422 | + | $Tuple2(nil, bo(bw)) | |
422 | 423 | } | |
423 | 424 | ||
424 | 425 | ||
425 | 426 | ||
426 | - | @Callable( | |
427 | - | func claimLP ( | |
428 | - | let bx = | |
427 | + | @Callable(ay) | |
428 | + | func claimLP (aV) = { | |
429 | + | let bx = aA(ay) | |
429 | 430 | if ((bx == bx)) | |
430 | 431 | then { | |
431 | - | let | |
432 | - | let by = valueOrElse(getInteger( | |
433 | - | let bz = valueOrElse(getInteger( | |
432 | + | let D = Address(aV) | |
433 | + | let by = valueOrElse(getInteger(ag, C(D)), 0) | |
434 | + | let bz = valueOrElse(getInteger(ag, E(D)), 0) | |
434 | 435 | let bA = if ((by > 0)) | |
435 | - | then [invoke( | |
436 | - | else | |
436 | + | then [invoke(ag, "transferAsset", [aV, by, ak], nil), invoke(ag, "integerEntry", [C(D), 0], nil), invoke(ag, "integerEntry", [E(D), (bz + by)], nil)] | |
437 | + | else i("nothing to claim") | |
437 | 438 | $Tuple2(nil, bA) | |
438 | 439 | } | |
439 | 440 | else throw("Strict value is not equal to itself.") | |
440 | 441 | } | |
441 | 442 | ||
442 | 443 | ||
443 | 444 | ||
444 | - | @Callable( | |
445 | - | func finalize ( | |
446 | - | let bx = | |
445 | + | @Callable(ay) | |
446 | + | func finalize (aV,bB,aO,bC,bD) = { | |
447 | + | let bx = aA(ay) | |
447 | 448 | if ((bx == bx)) | |
448 | 449 | then { | |
449 | - | let | |
450 | - | let bE = valueOrErrorMessage(getInteger( | |
451 | - | let bF = valueOrErrorMessage(getInteger( | |
452 | - | let bG = valueOrErrorMessage(getInteger( | |
453 | - | let bH = valueOrErrorMessage(getInteger( | |
450 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
451 | + | let bE = valueOrErrorMessage(getInteger(ag, L()), g("invalid period length")) | |
452 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
453 | + | let bG = valueOrErrorMessage(getInteger(ag, G(aW)), g("invalid price")) | |
454 | + | let bH = valueOrErrorMessage(getInteger(ag, O()), g("invalid next block to process")) | |
454 | 455 | let bI = ((bF + bE) - 1) | |
455 | - | let bJ = [if (( | |
456 | + | let bJ = [if ((ay.originCaller == ap)) | |
456 | 457 | then true | |
457 | - | else | |
458 | + | else i("permission denied"), if ((bH > bI)) | |
458 | 459 | then true | |
459 | - | else | |
460 | + | else i("unprocessed blocks"), if ((bB >= 0)) | |
460 | 461 | then true | |
461 | - | else | |
462 | + | else i("invalid donation part"), if ((aO >= 0)) | |
462 | 463 | then true | |
463 | - | else | |
464 | + | else i("invalid lp part"), if ((bC >= 0)) | |
464 | 465 | then true | |
465 | - | else | |
466 | + | else i("invalid claim part"), if ((bD >= 0)) | |
466 | 467 | then true | |
467 | - | else | |
468 | + | else i("invalid PWR stake part")] | |
468 | 469 | if ((bJ == bJ)) | |
469 | 470 | then { | |
470 | - | let bK = | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let bL = ( | |
471 | + | let bK = aN(aO) | |
472 | + | let aR = bK._1 | |
473 | + | let aP = bK._2 | |
474 | + | let aT = bK._3 | |
475 | + | let bL = (aW + 1) | |
475 | 476 | func bM (bN,bO) = { | |
476 | 477 | let bP = bN | |
477 | 478 | let bQ = bP._1 | |
478 | 479 | let bR = bP._2 | |
479 | - | let | |
480 | + | let bc = bP._3 | |
480 | 481 | let bS = bO.amount | |
481 | 482 | let bT = bO.assetId | |
482 | - | let bU = ("%s" + makeString([bR, | |
483 | - | let bV = ("%d" + makeString([ | |
484 | - | let bW = ScriptTransfer( | |
483 | + | let bU = ("%s" + makeString([bR, j(bT)], a)) | |
484 | + | let bV = ("%d" + makeString([bc, toString(bS)], a)) | |
485 | + | let bW = ScriptTransfer(ag, bS, bT) | |
485 | 486 | $Tuple3((bQ :+ bW), bU, bV) | |
486 | 487 | } | |
487 | 488 | ||
488 | 489 | let bX = { | |
489 | - | let bY = | |
490 | + | let bY = ay.payments | |
490 | 491 | let bZ = size(bY) | |
491 | 492 | let ca = $Tuple3(nil, "", "") | |
492 | 493 | func cb (cc,cd) = if ((cd >= bZ)) | |
493 | 494 | then cc | |
494 | 495 | else bM(cc, bY[cd]) | |
495 | 496 | ||
496 | 497 | func ce (cc,cd) = if ((cd >= bZ)) | |
497 | 498 | then cc | |
498 | 499 | else throw("List size exceeds 10") | |
499 | 500 | ||
500 | 501 | ce(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
501 | 502 | } | |
502 | 503 | let bQ = bX._1 | |
503 | 504 | let cf = bX._2 | |
504 | 505 | let cg = bX._3 | |
505 | - | let bA = [invoke( | |
506 | + | let bA = [invoke(ag, "integerEntry", [J(aW), bD], nil), invoke(ag, "integerEntry", [K(aW), bC], nil), invoke(ag, "integerEntry", [F(), bL], nil), invoke(ag, "integerEntry", [G(bL), aR], nil), invoke(ag, "integerEntry", [I(bL), (bI + 1)], nil), invoke(ag, "burn", [aP], nil), invoke(ag, "integerEntry", [R(), 0], nil), invoke(ag, "integerEntry", [A(unit), aO], nil), invoke(ag, "integerEntry", [B(unit), bB], nil), invoke(ag, "stringEntry", [ab(bL), cf], nil), invoke(ag, "stringEntry", [ac(bL), cg], nil)] | |
506 | 507 | $Tuple2(bQ, bA) | |
507 | 508 | } | |
508 | 509 | else throw("Strict value is not equal to itself.") | |
509 | 510 | } | |
510 | 511 | else throw("Strict value is not equal to itself.") | |
511 | 512 | } | |
512 | 513 | ||
513 | 514 | ||
514 | 515 | ||
515 | - | @Callable( | |
516 | - | func finalizeREADONLY (bB, | |
517 | - | let | |
518 | - | let bE = valueOrErrorMessage(getInteger( | |
519 | - | let bF = valueOrErrorMessage(getInteger( | |
520 | - | let bG = valueOrErrorMessage(getInteger( | |
521 | - | let bH = valueOrErrorMessage(getInteger( | |
516 | + | @Callable(ay) | |
517 | + | func finalizeREADONLY (bB,aO,bC,bD) = { | |
518 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
519 | + | let bE = valueOrErrorMessage(getInteger(ag, L()), g("invalid period length")) | |
520 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
521 | + | let bG = valueOrErrorMessage(getInteger(ag, G(aW)), g("invalid price")) | |
522 | + | let bH = valueOrErrorMessage(getInteger(ag, O()), g("invalid next block to process")) | |
522 | 523 | let bI = ((bF + bE) - 1) | |
523 | 524 | let bJ = [if ((bH > bI)) | |
524 | 525 | then true | |
525 | - | else | |
526 | + | else i("unprocessed blocks"), if ((bB >= 0)) | |
526 | 527 | then true | |
527 | - | else | |
528 | + | else i("invalid donation part"), if ((aO >= 0)) | |
528 | 529 | then true | |
529 | - | else | |
530 | + | else i("invalid lp part"), if ((bC >= 0)) | |
530 | 531 | then true | |
531 | - | else | |
532 | + | else i("invalid claim part"), if ((bD >= 0)) | |
532 | 533 | then true | |
533 | - | else | |
534 | + | else i("invalid PWR stake part")] | |
534 | 535 | if ((bJ == bJ)) | |
535 | 536 | then { | |
536 | - | let ch = | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | $Tuple2(nil, $Tuple6(bC, | |
537 | + | let ch = aN(aO) | |
538 | + | let aR = ch._1 | |
539 | + | let aP = ch._2 | |
540 | + | let aT = ch._3 | |
541 | + | $Tuple2(nil, $Tuple6(bC, aO, bB, aR, aP, aT)) | |
541 | 542 | } | |
542 | 543 | else throw("Strict value is not equal to itself.") | |
543 | 544 | } | |
544 | 545 | ||
545 | 546 | ||
546 | 547 | ||
547 | - | @Callable( | |
548 | - | func invest ( | |
549 | - | let bx = | |
548 | + | @Callable(ay) | |
549 | + | func invest (aV) = { | |
550 | + | let bx = aA(ay) | |
550 | 551 | if ((bx == bx)) | |
551 | 552 | then { | |
552 | - | let | |
553 | - | let | |
554 | - | let bF = valueOrErrorMessage(getInteger( | |
555 | - | let ci = getIntegerValue( | |
553 | + | let D = Address(aV) | |
554 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
555 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
556 | + | let ci = getIntegerValue(ag, M()) | |
556 | 557 | let cj = if (((bF + ci) > height)) | |
557 | 558 | then true | |
558 | - | else | |
559 | + | else i("too late to invest in this period") | |
559 | 560 | if ((cj == cj)) | |
560 | 561 | then { | |
561 | - | let bG = valueOrErrorMessage(getInteger( | |
562 | - | let bO = if ((size( | |
563 | - | then | |
564 | - | else | |
562 | + | let bG = valueOrErrorMessage(getInteger(ag, G(aW)), g("invalid price")) | |
563 | + | let bO = if ((size(ay.payments) == 1)) | |
564 | + | then ay.payments[0] | |
565 | + | else i("invalid payments") | |
565 | 566 | let ck = if (if ((bO.assetId == unit)) | |
566 | 567 | then (bO.amount > 0) | |
567 | 568 | else false) | |
568 | 569 | then $Tuple2(bO.amount, bO.assetId) | |
569 | - | else | |
570 | + | else i("invalid payment amount") | |
570 | 571 | let bS = ck._1 | |
571 | 572 | let bT = ck._2 | |
572 | - | let cl = valueOrElse(getInteger( | |
573 | + | let cl = valueOrElse(getInteger(ag, w()), 0) | |
573 | 574 | let cm = fraction(bS, (c - cl), c) | |
574 | - | let | |
575 | + | let W = if ((bG > 0)) | |
575 | 576 | then fraction(cm, c, bG) | |
576 | 577 | else 0 | |
577 | - | let cn = valueOrElse(getInteger( | |
578 | - | let bN = [ScriptTransfer( | |
579 | - | let bA = [invoke( | |
578 | + | let cn = valueOrElse(getInteger(ag, A(unit)), 0) | |
579 | + | let bN = [ScriptTransfer(ap, cm, bT), ScriptTransfer(aq, cl, bT)] | |
580 | + | let bA = [invoke(ag, "integerEntry", [A(unit), (cn + cm)], nil), invoke(ag, "reissue", [W], nil), invoke(ag, "transferAsset", [aV, W, ak], nil)] | |
580 | 581 | $Tuple2(bN, bA) | |
581 | 582 | } | |
582 | 583 | else throw("Strict value is not equal to itself.") | |
583 | 584 | } | |
584 | 585 | else throw("Strict value is not equal to itself.") | |
585 | 586 | } | |
586 | 587 | ||
587 | 588 | ||
588 | 589 | ||
589 | - | @Callable( | |
590 | - | func withdraw ( | |
591 | - | let bx = | |
590 | + | @Callable(ay) | |
591 | + | func withdraw (aV) = { | |
592 | + | let bx = aA(ay) | |
592 | 593 | if ((bx == bx)) | |
593 | 594 | then { | |
594 | - | let C = Address(aU) | |
595 | - | let aV = valueOrErrorMessage(getInteger(af, E()), f("invalid period")) | |
596 | - | let bO = if ((size(ax.payments) == 1)) | |
597 | - | then ax.payments[0] | |
598 | - | else h(f("invalid payments")) | |
599 | - | let bT = if ((bO.assetId == aj)) | |
600 | - | then aj | |
601 | - | else h("invalid payment asset") | |
602 | - | let bS = if ((bO.amount > 0)) | |
603 | - | then bO.amount | |
604 | - | else h("invalid payment amount") | |
605 | - | let co = valueOrElse(getInteger(af, Q()), 0) | |
606 | - | let bN = [ScriptTransfer(af, bS, bT)] | |
607 | - | let bA = [invoke(af, "integerEntry", [Q(), (co + bS)], nil), invoke(af, "stringEntry", [R(C, ax.transactionId), T(d, bS, (aV + 1), unit)], nil)] | |
608 | - | if ((bA == bA)) | |
609 | - | then $Tuple2(bN, bA) | |
610 | - | else throw("Strict value is not equal to itself.") | |
611 | - | } | |
612 | - | else throw("Strict value is not equal to itself.") | |
613 | - | } | |
614 | - | ||
615 | - | ||
616 | - | ||
617 | - | @Callable(ax) | |
618 | - | func cancelWithdraw (aU,S) = { | |
619 | - | let bx = az(ax) | |
620 | - | if ((bx == bx)) | |
621 | - | then { | |
622 | - | let C = Address(aU) | |
623 | - | let aW = valueOrErrorMessage(getString(af, R(C, S)), f("invalid withdrawal request")) | |
624 | - | let aV = valueOrErrorMessage(getInteger(af, E()), f("invalid period")) | |
625 | - | let cp = ac(aW) | |
626 | - | let U = cp._1 | |
627 | - | let V = cp._2 | |
628 | - | let W = cp._3 | |
629 | - | let X = cp._4 | |
630 | - | let bJ = [if ((U == d)) | |
595 | + | let D = Address(aV) | |
596 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
597 | + | let bE = valueOrErrorMessage(getInteger(ag, L()), g("invalid period length")) | |
598 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
599 | + | let cj = if (((bF + bE) > height)) | |
631 | 600 | then true | |
632 | - | else h("invalid withdrawal request status"), if ((W > aV)) | |
633 | - | then true | |
634 | - | else h("invalid withdrawal request period")] | |
635 | - | if ((bJ == bJ)) | |
601 | + | else i("too late to withdraw in this period") | |
602 | + | if ((cj == cj)) | |
636 | 603 | then { | |
637 | - | let co = valueOrErrorMessage(getInteger(af, Q()), f("invalid total withdrawal amount")) | |
638 | - | let bA = [invoke(af, "integerEntry", [Q(), if ((co >= V)) | |
639 | - | then (co - V) | |
640 | - | else h("invalid withdrawal amount")], nil), invoke(af, "deleteEntry", [R(C, S)], nil), invoke(af, "transferAsset", [aU, V, aj], nil)] | |
604 | + | let bO = if ((size(ay.payments) == 1)) | |
605 | + | then ay.payments[0] | |
606 | + | else i(g("invalid payments")) | |
607 | + | let bT = if ((bO.assetId == ak)) | |
608 | + | then ak | |
609 | + | else i("invalid payment asset") | |
610 | + | let bS = if ((bO.amount > 0)) | |
611 | + | then bO.amount | |
612 | + | else i("invalid payment amount") | |
613 | + | let co = valueOrElse(getInteger(ag, R()), 0) | |
614 | + | let bN = [ScriptTransfer(ag, bS, bT)] | |
615 | + | let bA = [invoke(ag, "integerEntry", [R(), (co + bS)], nil), invoke(ag, "stringEntry", [S(D, ay.transactionId), U(d, bS, (aW + 1), unit)], nil)] | |
641 | 616 | if ((bA == bA)) | |
642 | - | then $Tuple2( | |
617 | + | then $Tuple2(bN, bA) | |
643 | 618 | else throw("Strict value is not equal to itself.") | |
644 | 619 | } | |
645 | 620 | else throw("Strict value is not equal to itself.") | |
646 | 621 | } | |
647 | 622 | else throw("Strict value is not equal to itself.") | |
648 | 623 | } | |
649 | 624 | ||
650 | 625 | ||
651 | 626 | ||
652 | - | @Callable(ax) | |
653 | - | func claimCollateral (aU,S) = { | |
654 | - | let bx = az(ax) | |
627 | + | @Callable(ay) | |
628 | + | func cancelWithdraw (aV,T) = { | |
629 | + | let bx = aA(ay) | |
630 | + | if ((bx == bx)) | |
631 | + | then i("cancelWithdraw is deprecated") | |
632 | + | else throw("Strict value is not equal to itself.") | |
633 | + | } | |
634 | + | ||
635 | + | ||
636 | + | ||
637 | + | @Callable(ay) | |
638 | + | func claimCollateral (aV,T) = { | |
639 | + | let bx = aA(ay) | |
655 | 640 | if ((bx == bx)) | |
656 | 641 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let bA = [invoke( | |
642 | + | let cp = aU(aV, fromBase58String(T)) | |
643 | + | let D = cp._1 | |
644 | + | let W = cp._2 | |
645 | + | let X = cp._3 | |
646 | + | let ba = cp._4 | |
647 | + | let bb = cp._5 | |
648 | + | let bc = cp._6 | |
649 | + | let cq = removeByIndex(split_51C(bb, a), 0) | |
650 | + | let cr = removeByIndex(split_51C(bc, a), 0) | |
651 | + | let bA = [invoke(ag, "deleteEntry", [S(D, fromBase58String(T))], nil), invoke(ag, "integerEntry", [aa(D, fromBase58String(T)), W], nil), invoke(ag, "transferAssets", [aV, cq, cr], nil)] | |
667 | 652 | $Tuple2(nil, bA) | |
668 | 653 | } | |
669 | 654 | else throw("Strict value is not equal to itself.") | |
670 | 655 | } | |
671 | 656 | ||
672 | 657 | ||
673 | 658 | ||
674 | - | @Callable( | |
675 | - | func claimCollateralBulk ( | |
676 | - | let bx = | |
659 | + | @Callable(ay) | |
660 | + | func claimCollateralBulk (aV,cs) = { | |
661 | + | let bx = aA(ay) | |
677 | 662 | if ((bx == bx)) | |
678 | 663 | then { | |
679 | - | func bM ( | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | ( | |
664 | + | func bM (ct,T) = { | |
665 | + | let cu = aU(aV, fromBase58String(T)) | |
666 | + | let D = cu._1 | |
667 | + | let W = cu._2 | |
668 | + | let X = cu._3 | |
669 | + | let ba = cu._4 | |
670 | + | let bb = cu._5 | |
671 | + | let bc = cu._6 | |
672 | + | let cq = removeByIndex(split_51C(bb, a), 0) | |
673 | + | let cr = removeByIndex(split_51C(bc, a), 0) | |
674 | + | let cv = [invoke(ag, "deleteEntry", [S(D, fromBase58String(T))], nil), invoke(ag, "integerEntry", [aa(D, fromBase58String(T)), W], nil), invoke(ag, "transferAssets", [aV, cq, cr], nil)] | |
675 | + | (ct ++ cv) | |
691 | 676 | } | |
692 | 677 | ||
693 | - | let | |
694 | - | let bY = | |
678 | + | let cw = { | |
679 | + | let bY = cs | |
695 | 680 | let bZ = size(bY) | |
696 | 681 | let ca = nil | |
697 | 682 | func cb (cc,cd) = if ((cd >= bZ)) | |
698 | 683 | then cc | |
699 | 684 | else bM(cc, bY[cd]) | |
700 | 685 | ||
701 | 686 | func ce (cc,cd) = if ((cd >= bZ)) | |
702 | 687 | then cc | |
703 | 688 | else throw("List size exceeds 10") | |
704 | 689 | ||
705 | 690 | ce(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
706 | 691 | } | |
707 | - | $Tuple2(nil, | |
692 | + | $Tuple2(nil, cw) | |
708 | 693 | } | |
709 | 694 | else throw("Strict value is not equal to itself.") | |
710 | 695 | } | |
711 | 696 | ||
712 | 697 | ||
713 | 698 | ||
714 | - | @Callable( | |
715 | - | func claimCollateralREADONLY ( | |
716 | - | let | |
717 | - | $Tuple2(nil, | |
699 | + | @Callable(ay) | |
700 | + | func claimCollateralREADONLY (aV,T) = { | |
701 | + | let cx = bd(aV, fromBase58String(T)) | |
702 | + | $Tuple2(nil, cx) | |
718 | 703 | } | |
719 | 704 | ||
720 | 705 | ||
721 | 706 | ||
722 | - | @Callable( | |
723 | - | func claimCollateralBulkREADONLY ( | |
724 | - | func | |
725 | - | let | |
726 | - | ( | |
707 | + | @Callable(ay) | |
708 | + | func claimCollateralBulkREADONLY (aV,cs) = { | |
709 | + | func cy (ct,T) = { | |
710 | + | let cx = bd(aV, fromBase58String(T)) | |
711 | + | (ct :+ cx) | |
727 | 712 | } | |
728 | 713 | ||
729 | - | let | |
730 | - | let bY = | |
714 | + | let cz = { | |
715 | + | let bY = cs | |
731 | 716 | let bZ = size(bY) | |
732 | 717 | let ca = nil | |
733 | 718 | func cb (cc,cd) = if ((cd >= bZ)) | |
734 | 719 | then cc | |
735 | - | else | |
720 | + | else cy(cc, bY[cd]) | |
736 | 721 | ||
737 | 722 | func ce (cc,cd) = if ((cd >= bZ)) | |
738 | 723 | then cc | |
739 | 724 | else throw("List size exceeds 10") | |
740 | 725 | ||
741 | 726 | ce(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
742 | 727 | } | |
743 | - | $Tuple2(nil, | |
728 | + | $Tuple2(nil, cz) | |
744 | 729 | } | |
745 | 730 | ||
746 | 731 | ||
747 | 732 | ||
748 | - | @Callable( | |
749 | - | func processBlocks ( | |
750 | - | let bx = | |
733 | + | @Callable(ay) | |
734 | + | func processBlocks (aV) = { | |
735 | + | let bx = aA(ay) | |
751 | 736 | if ((bx == bx)) | |
752 | 737 | then { | |
753 | - | let | |
754 | - | let | |
755 | - | let bE = valueOrErrorMessage(getInteger( | |
756 | - | let bF = valueOrErrorMessage(getInteger( | |
757 | - | let bG = valueOrErrorMessage(getInteger( | |
758 | - | let bH = valueOrErrorMessage(getInteger( | |
738 | + | let D = Address(aV) | |
739 | + | let aW = valueOrErrorMessage(getInteger(ag, F()), g("invalid period")) | |
740 | + | let bE = valueOrErrorMessage(getInteger(ag, L()), g("invalid period length")) | |
741 | + | let bF = valueOrErrorMessage(getInteger(ag, I(aW)), g("invalid start height")) | |
742 | + | let bG = valueOrErrorMessage(getInteger(ag, G(aW)), g("invalid price")) | |
743 | + | let bH = valueOrErrorMessage(getInteger(ag, O()), g("invalid next block to process")) | |
759 | 744 | let bI = ((bF + bE) - 1) | |
760 | - | let bp = 20 | |
761 | - | let cB = if (if (if ((height >= bH)) | |
745 | + | let cA = if (if (if ((height >= bH)) | |
762 | 746 | then if ((bH >= bF)) | |
763 | 747 | then true | |
764 | - | else ( | |
748 | + | else (aW == 0) | |
765 | 749 | else false) | |
766 | 750 | then (bI >= bH) | |
767 | 751 | else false) | |
768 | - | then min([((bI - bH) + 1), | |
769 | - | else | |
770 | - | let br = valueOrErrorMessage(getInteger( | |
771 | - | let bs = (br / | |
772 | - | let | |
773 | - | func | |
774 | - | then | |
752 | + | then min([((bI - bH) + 1), f]) | |
753 | + | else i(g("invalid target block")) | |
754 | + | let br = valueOrErrorMessage(getInteger(ag, N()), g("invalid block processing reward")) | |
755 | + | let bs = (br / cA) | |
756 | + | let cB = (br - (bs * cA)) | |
757 | + | func cC (cD,cE) = if ((cE >= cA)) | |
758 | + | then cD | |
775 | 759 | else { | |
776 | - | let bu = (bH + | |
777 | - | let bv = valueOrErrorMessage(blockInfoByHeight(bu), | |
778 | - | let bw = valueOrErrorMessage( | |
779 | - | let | |
780 | - | let by = valueOrElse(getInteger( | |
781 | - | let | |
782 | - | then (bs + | |
760 | + | let bu = (bH + cE) | |
761 | + | let bv = valueOrErrorMessage(blockInfoByHeight(bu), g("invalid block info")) | |
762 | + | let bw = valueOrErrorMessage(aB(bv.rewards, am), g(("invalid treasury reward for height " + toString(bu)))) | |
763 | + | let cF = bv.generator | |
764 | + | let by = valueOrElse(getInteger(ag, C(cF)), 0) | |
765 | + | let cG = if ((cE == (cA - 1))) | |
766 | + | then (bs + cB) | |
783 | 767 | else bs | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | then fraction(( | |
768 | + | let cH = bh(bw) | |
769 | + | let cI = cH._1 | |
770 | + | let bm = cH._2 | |
771 | + | let bn = cH._3 | |
772 | + | let W = if ((bG > 0)) | |
773 | + | then fraction((bn - cG), c, bG) | |
790 | 774 | else 0 | |
791 | - | let | |
792 | - | if (( | |
775 | + | let cJ = [invoke(ag, "stringEntry", [P(bu), makeString([toBase58String(ay.transactionId), toString(aW), toString(cF), toBase58String(aV), toString(bw), toString(cG), toString(W), toString(cI)], a)], nil), invoke(ag, "integerEntry", [C(cF), (by + W)], nil)] | |
776 | + | if ((cJ == cJ)) | |
793 | 777 | then { | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | $Tuple4((cM + | |
778 | + | let cK = cD | |
779 | + | let cL = cK._1 | |
780 | + | let cM = cK._2 | |
781 | + | let cN = cK._3 | |
782 | + | let cO = cK._4 | |
783 | + | let cP = cO | |
784 | + | let cQ = cP._1 | |
785 | + | let cR = cP._2 | |
786 | + | let cS = (cR :+ $Tuple2(toString(cF), cI)) | |
787 | + | $Tuple4((cL + W), (cM + bw), (cN + bm), $Tuple2((cQ + cI), cS)) | |
804 | 788 | } | |
805 | 789 | else throw("Strict value is not equal to itself.") | |
806 | 790 | } | |
807 | 791 | ||
808 | - | let | |
809 | - | let | |
810 | - | let bY = | |
792 | + | let cT = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
793 | + | let cU = { | |
794 | + | let bY = cT | |
811 | 795 | let bZ = size(bY) | |
812 | 796 | let ca = $Tuple4(0, 0, 0, $Tuple2(0, nil)) | |
813 | 797 | func cb (cc,cd) = if ((cd >= bZ)) | |
814 | 798 | then cc | |
815 | - | else | |
799 | + | else cC(cc, bY[cd]) | |
816 | 800 | ||
817 | 801 | func ce (cc,cd) = if ((cd >= bZ)) | |
818 | 802 | then cc | |
819 | 803 | else throw("List size exceeds 20") | |
820 | 804 | ||
821 | 805 | ce(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(cb(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
822 | 806 | } | |
823 | - | if (( | |
807 | + | if ((cU == cU)) | |
824 | 808 | then { | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | let cn = valueOrElse(getInteger( | |
834 | - | let | |
809 | + | let cO = cU._4 | |
810 | + | let cV = cU._3 | |
811 | + | let cW = cU._2 | |
812 | + | let cX = cU._1 | |
813 | + | let cY = cO | |
814 | + | let cZ = cY._1 | |
815 | + | let da = cY._2 | |
816 | + | let db = (((cW - cV) - br) - cZ) | |
817 | + | let cn = valueOrElse(getInteger(ag, A(unit)), 0) | |
818 | + | let dc = if ((cZ > 0)) | |
835 | 819 | then { | |
836 | - | let | |
837 | - | if (( | |
820 | + | let dd = [invoke(ag, "transferFromProxyTreasury", [ag.bytes, cZ], nil)] | |
821 | + | if ((dd == dd)) | |
838 | 822 | then { | |
839 | - | let | |
840 | - | if (( | |
823 | + | let de = invoke(ag, "swap", [at, e, cZ], nil) | |
824 | + | if ((de == de)) | |
841 | 825 | then { | |
842 | - | let | |
843 | - | let | |
844 | - | if ($isInstanceOf( | |
826 | + | let df = { | |
827 | + | let l = de | |
828 | + | if ($isInstanceOf(l, "Int")) | |
845 | 829 | then { | |
846 | - | let | |
847 | - | | |
830 | + | let dg = l | |
831 | + | dg | |
848 | 832 | } | |
849 | 833 | else 0 | |
850 | 834 | } | |
851 | - | func | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | if (( | |
835 | + | func dh (cD,di) = { | |
836 | + | let dj = di | |
837 | + | let cF = dj._1 | |
838 | + | let dk = dj._2 | |
839 | + | if ((cZ > 0)) | |
856 | 840 | then { | |
857 | - | let | |
858 | - | let | |
859 | - | if (( | |
841 | + | let dl = fraction(dk, df, cZ) | |
842 | + | let dm = invoke(ag, "powerStake", [fromBase58String(cF), fromBase58String(at), dl], nil) | |
843 | + | if ((dm == dm)) | |
860 | 844 | then nil | |
861 | 845 | else throw("Strict value is not equal to itself.") | |
862 | 846 | } | |
863 | 847 | else nil | |
864 | 848 | } | |
865 | 849 | ||
866 | - | let | |
867 | - | let bY = | |
850 | + | let dn = { | |
851 | + | let bY = da | |
868 | 852 | let bZ = size(bY) | |
869 | 853 | let ca = 0 | |
854 | + | func do (cc,cd) = if ((cd >= bZ)) | |
855 | + | then cc | |
856 | + | else dh(cc, bY[cd]) | |
857 | + | ||
870 | 858 | func dp (cc,cd) = if ((cd >= bZ)) | |
871 | - | then cc | |
872 | - | else di(cc, bY[cd]) | |
873 | - | ||
874 | - | func dq (cc,cd) = if ((cd >= bZ)) | |
875 | 859 | then cc | |
876 | 860 | else throw("List size exceeds 20") | |
877 | 861 | ||
878 | - | | |
862 | + | dp(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(do(ca, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
879 | 863 | } | |
880 | - | if (( | |
864 | + | if ((dn == dn)) | |
881 | 865 | then nil | |
882 | 866 | else throw("Strict value is not equal to itself.") | |
883 | 867 | } | |
884 | 868 | else throw("Strict value is not equal to itself.") | |
885 | 869 | } | |
886 | 870 | else throw("Strict value is not equal to itself.") | |
887 | 871 | } | |
888 | 872 | else nil | |
889 | - | if (( | |
873 | + | if ((dc == dc)) | |
890 | 874 | then { | |
891 | - | let bN = [invoke( | |
875 | + | let bN = [invoke(ag, "reissue", [cX], nil), invoke(ag, "integerEntry", [O(), (bH + cA)], nil), invoke(ag, "transferFromProxyTreasury", [ap.bytes, db], nil), invoke(ag, "transferFromProxyTreasury", [aV, br], nil), invoke(ag, "transferFromProxyTreasury", [aq.bytes, cV], nil), invoke(ag, "integerEntry", [A(unit), (cn + db)], nil)] | |
892 | 876 | if ((bN == bN)) | |
893 | 877 | then $Tuple2(nil, unit) | |
894 | 878 | else throw("Strict value is not equal to itself.") | |
895 | 879 | } | |
896 | 880 | else throw("Strict value is not equal to itself.") | |
897 | 881 | } | |
898 | 882 | else throw("Strict value is not equal to itself.") | |
899 | 883 | } | |
900 | 884 | else throw("Strict value is not equal to itself.") | |
901 | 885 | } | |
902 | 886 | ||
903 | 887 | ||
904 | - | @Verifier( | |
905 | - | func | |
906 | - | let | |
907 | - | let | |
908 | - | if ($isInstanceOf( | |
888 | + | @Verifier(dq) | |
889 | + | func dr () = { | |
890 | + | let ds = { | |
891 | + | let l = au() | |
892 | + | if ($isInstanceOf(l, "ByteVector")) | |
909 | 893 | then { | |
910 | - | let | |
911 | - | | |
894 | + | let aw = l | |
895 | + | aw | |
912 | 896 | } | |
913 | - | else | |
897 | + | else dq.senderPublicKey | |
914 | 898 | } | |
915 | - | sigVerify( | |
899 | + | sigVerify(dq.bodyBytes, dq.proofs[0], ds) | |
916 | 900 | } | |
917 | 901 |
github/deemru/w8io/169f3d6 319.17 ms ◑