tx · 4HRzwe8P96dfp9NAgksqBUxYLMMC77YmuFdv3uRLSoT7 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH: -0.02500000 Waves 2023.03.20 18:16 [2498495] smart account 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH > SELF 0.00000000 Waves
{ "type": 13, "id": "4HRzwe8P96dfp9NAgksqBUxYLMMC77YmuFdv3uRLSoT7", "fee": 2500000, "feeAssetId": null, "timestamp": 1679325381427, "version": 2, "chainId": 84, "sender": "3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH", "senderPublicKey": "5JqBVJpMCyD7dJLJttqYjL6CmJc4zahBHSFjFb7qQTga", "proofs": [ "4wdRANejfHnctL7SJgm7J19t2D1Kq7ajbsBbEse2g9KFA5wVewbRVV538RVE5JVR7i9sAxBhtBi6aQEXFWewuNWT" ], "script": "base64:BgIhCAISBAoCAQESBgoECAgICBIDCgEYEgASAwoBCBIDCgEBRQADU0VQAgFfAA5fbWluTG9ja3BlcmlvZAABAA1fdW5pdERlY2ltYWxzAIDC1y8ADl9taW5Mb2NrQW1vdW50CQBoAgABBQ1fdW5pdERlY2ltYWxzAA5fbWF4TG9ja0Ftb3VudAkAaAIA6AcFDV91bml0RGVjaW1hbHMAA19EdACAuJkpAQRfUHB5AQpsb2NrUGVyaW9kCQBrAwUNX3VuaXREZWNpbWFscwDtAgUKbG9ja1BlcmlvZAANX2luY3JlbWVudFJlZgkAaAIAwIQ9BQ1fdW5pdERlY2ltYWxzAA5fcGVyY2VudGFnZUZlZQkAawMFDV91bml0RGVjaW1hbHMACgBkABpfcGVyY2VudGFnZVJlZHVjdGlvbkZhY3RvcgIpQ3VycmVudF9QZXJjZW50YWdlUmVkdWN0aW9uX0ZhY3Rvcl9Gb3JfTXIAA19NcgIMTWludGluZ19SYXRlAAxfc3Rhd0Fzc2V0SWQCDFN0YXdfQXNzZXRJZAAIX21hbmFnZXICB21hbmFnZXIABF9EZngCA0RmeAAVX2NpcmN1b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XdQTAUJbmV3X2luZGV4CAUNdG90YWxTdGF3TWludAJfMgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAwOtdg", "height": 2498495, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CrLHGCTHCs8B1kLdTHnpggzop83EfsPc2aa7vffZznjj Next: EUKnu2SVoYaqHEyVi9PTZsGtbJZ2i6DbdNaKpxusjn1w Diff:
Old | New | Differences | |
---|---|---|---|
74 | 74 | ||
75 | 75 | let K = "IndexCount" | |
76 | 76 | ||
77 | - | func L (M) = getInteger(this, M) | |
77 | + | let L = "DaysAfterLockPeriodElasped" | |
78 | + | ||
79 | + | func M (N) = getInteger(this, N) | |
78 | 80 | ||
79 | 81 | ||
80 | - | func | |
82 | + | func O (N) = getString(this, N) | |
81 | 83 | ||
82 | 84 | ||
83 | - | func | |
85 | + | func P (N) = getBoolean(this, N) | |
84 | 86 | ||
85 | 87 | ||
86 | - | func | |
88 | + | func Q (N) = value(getBoolean(this, N)) | |
87 | 89 | ||
88 | 90 | ||
89 | - | func | |
91 | + | func R (N) = value(getInteger(this, N)) | |
90 | 92 | ||
91 | 93 | ||
92 | - | func | |
94 | + | func S (N) = value(getString(this, N)) | |
93 | 95 | ||
94 | 96 | ||
95 | - | func | |
96 | - | let | |
97 | - | if ($isInstanceOf( | |
97 | + | func T (N,U) = { | |
98 | + | let V = U | |
99 | + | if ($isInstanceOf(V, "String")) | |
98 | 100 | then { | |
99 | - | let | |
100 | - | if (isDefined(N | |
101 | - | then | |
102 | - | else | |
101 | + | let U = V | |
102 | + | if (isDefined(O(N))) | |
103 | + | then S(N) | |
104 | + | else U | |
103 | 105 | } | |
104 | - | else if ($isInstanceOf( | |
106 | + | else if ($isInstanceOf(V, "Int")) | |
105 | 107 | then { | |
106 | - | let | |
107 | - | if (isDefined( | |
108 | - | then | |
109 | - | else | |
108 | + | let U = V | |
109 | + | if (isDefined(M(N))) | |
110 | + | then R(N) | |
111 | + | else U | |
110 | 112 | } | |
111 | - | else if ($isInstanceOf( | |
113 | + | else if ($isInstanceOf(V, "Boolean")) | |
112 | 114 | then { | |
113 | - | let | |
114 | - | if (isDefined( | |
115 | - | then | |
116 | - | else | |
115 | + | let U = V | |
116 | + | if (isDefined(P(N))) | |
117 | + | then Q(N) | |
118 | + | else U | |
117 | 119 | } | |
118 | - | else throw(("value type not supported for " + | |
120 | + | else throw(("value type not supported for " + N)) | |
119 | 121 | } | |
120 | 122 | ||
121 | 123 | ||
122 | - | func | |
123 | - | let | |
124 | - | if ($isInstanceOf( | |
124 | + | func W (X,Y) = { | |
125 | + | let V = X | |
126 | + | if ($isInstanceOf(V, "String")) | |
125 | 127 | then { | |
126 | - | let | |
127 | - | | |
128 | + | let X = V | |
129 | + | X | |
128 | 130 | } | |
129 | - | else throw( | |
131 | + | else throw(Y) | |
130 | 132 | } | |
131 | 133 | ||
132 | 134 | ||
133 | - | func | |
134 | - | let | |
135 | - | if ($isInstanceOf( | |
135 | + | func Z (X,Y) = { | |
136 | + | let V = X | |
137 | + | if ($isInstanceOf(V, "Int")) | |
136 | 138 | then { | |
137 | - | let | |
138 | - | | |
139 | + | let X = V | |
140 | + | X | |
139 | 141 | } | |
140 | - | else throw( | |
142 | + | else throw(Y) | |
141 | 143 | } | |
142 | 144 | ||
143 | 145 | ||
144 | - | func | |
145 | - | let | |
146 | - | if ($isInstanceOf( | |
146 | + | func aa (X,Y) = { | |
147 | + | let V = X | |
148 | + | if ($isInstanceOf(V, "Boolean")) | |
147 | 149 | then { | |
148 | - | let | |
149 | - | | |
150 | + | let X = V | |
151 | + | X | |
150 | 152 | } | |
151 | - | else throw( | |
153 | + | else throw(Y) | |
152 | 154 | } | |
153 | 155 | ||
154 | 156 | ||
155 | - | func | |
156 | - | then throw(((("writing negative value " + toString( | |
157 | - | else IntegerEntry( | |
157 | + | func ab (N,ac) = if ((0 > ac)) | |
158 | + | then throw(((("writing negative value " + toString(ac)) + " for key ") + N)) | |
159 | + | else IntegerEntry(N, ac) | |
158 | 160 | ||
159 | 161 | ||
160 | - | func | |
161 | - | then throw(("writing an empty string " + | |
162 | - | else StringEntry( | |
162 | + | func ad (N,ac) = if ((" " == ac)) | |
163 | + | then throw(("writing an empty string " + ac)) | |
164 | + | else StringEntry(N, ac) | |
163 | 165 | ||
164 | 166 | ||
165 | - | func | |
166 | - | then throw( | |
167 | + | func ae (af,Y) = if (af) | |
168 | + | then throw(Y) | |
167 | 169 | else true | |
168 | 170 | ||
169 | 171 | ||
170 | - | func | |
171 | - | let | |
172 | - | if ($isInstanceOf( | |
172 | + | func ag (N,ah) = { | |
173 | + | let V = ah | |
174 | + | if ($isInstanceOf(V, "Int")) | |
173 | 175 | then { | |
174 | - | let | |
175 | - | let | |
176 | - | | |
176 | + | let ah = V | |
177 | + | let ai = makeString(["%d", toString(ah)], a) | |
178 | + | ad(N, ai) | |
177 | 179 | } | |
178 | - | else if ($isInstanceOf( | |
180 | + | else if ($isInstanceOf(V, "String")) | |
179 | 181 | then { | |
180 | - | let | |
181 | - | let | |
182 | - | | |
182 | + | let ah = V | |
183 | + | let ai = makeString(["%s", ah], a) | |
184 | + | ad(N, ai) | |
183 | 185 | } | |
184 | - | else if ($isInstanceOf( | |
186 | + | else if ($isInstanceOf(V, "Boolean")) | |
185 | 187 | then { | |
186 | - | let | |
187 | - | let | |
188 | - | | |
188 | + | let ah = V | |
189 | + | let ai = makeString(["%b", toString(ah)], a) | |
190 | + | ad(N, ai) | |
189 | 191 | } | |
190 | 192 | else throw("type not supported") | |
191 | 193 | } | |
192 | 194 | ||
193 | 195 | ||
194 | - | func | |
195 | - | let | |
196 | - | if (( | |
196 | + | func aj (N) = { | |
197 | + | let ak = W(O(N), ("entry not found for " + N)) | |
198 | + | if ((ak == ak)) | |
197 | 199 | then { | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | then | |
203 | - | else if (( | |
204 | - | then parseIntValue( | |
205 | - | else if (( | |
206 | - | then fromBase58String( | |
207 | - | else throw(("could not parse registry value for " + | |
208 | - | | |
200 | + | let al = split(ak, a) | |
201 | + | let am = takeRight(al[0], 1) | |
202 | + | let an = al[(size(al) - 1)] | |
203 | + | let ah = if ((am == "s")) | |
204 | + | then an | |
205 | + | else if ((am == "d")) | |
206 | + | then parseIntValue(an) | |
207 | + | else if ((am == "b")) | |
208 | + | then fromBase58String(an) | |
209 | + | else throw(("could not parse registry value for " + N)) | |
210 | + | ah | |
209 | 211 | } | |
210 | 212 | else throw("Strict value is not equal to itself.") | |
211 | 213 | } | |
212 | 214 | ||
213 | 215 | ||
214 | - | func | |
215 | - | let | |
216 | - | if (( | |
217 | - | then ( | |
216 | + | func ao (ap) = { | |
217 | + | let aq = ae((0 >= ap), "invalid locking days!") | |
218 | + | if ((aq == aq)) | |
219 | + | then (ap * f) | |
218 | 220 | else throw("Strict value is not equal to itself.") | |
219 | 221 | } | |
220 | 222 | ||
221 | 223 | ||
222 | - | func | |
223 | - | then | |
224 | - | else throw(("entry already initialized: " + | |
224 | + | func ar (N,ac) = if (!(isDefined(O(N)))) | |
225 | + | then ad(N, ac) | |
226 | + | else throw(("entry already initialized: " + N)) | |
225 | 227 | ||
226 | 228 | ||
227 | - | func | |
228 | - | then | |
229 | - | else throw((" entry already initialized: " + | |
229 | + | func as (N,ac) = if (!(isDefined(O(N)))) | |
230 | + | then ab(N, ac) | |
231 | + | else throw((" entry already initialized: " + N)) | |
230 | 232 | ||
231 | 233 | ||
232 | - | func | |
233 | - | let | |
234 | - | let | |
235 | - | if ($isInstanceOf( | |
234 | + | func at (au) = { | |
235 | + | let av = { | |
236 | + | let V = aj(n) | |
237 | + | if ($isInstanceOf(V, "String")) | |
236 | 238 | then { | |
237 | - | let | |
238 | - | | |
239 | + | let X = V | |
240 | + | X | |
239 | 241 | } | |
240 | 242 | else "failed to get manager" | |
241 | 243 | } | |
242 | - | if (( | |
243 | - | then | |
244 | + | if ((av == av)) | |
245 | + | then ae((toBase58String(au.caller.bytes) != av), "address not authorized") | |
244 | 246 | else throw("Strict value is not equal to itself.") | |
245 | 247 | } | |
246 | 248 | ||
247 | 249 | ||
248 | - | func | |
249 | - | then -( | |
250 | - | else | |
250 | + | func aw (X) = if ((0 > X)) | |
251 | + | then -(X) | |
252 | + | else X | |
251 | 253 | ||
252 | 254 | ||
253 | - | func | |
254 | - | let | |
255 | - | if ($isInstanceOf( | |
255 | + | func ax (ay,az) = { | |
256 | + | let V = ay | |
257 | + | if ($isInstanceOf(V, "String")) | |
256 | 258 | then { | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
259 | + | let ay = V | |
260 | + | let aA = addressFromString(ay) | |
261 | + | let aB = aA | |
262 | + | if ($isInstanceOf(aB, "Address")) | |
261 | 263 | then { | |
262 | - | let | |
264 | + | let aA = aB | |
263 | 265 | true | |
264 | 266 | } | |
265 | 267 | else { | |
266 | - | let | |
267 | - | if ($isInstanceOf( | |
268 | + | let aC = az | |
269 | + | if ($isInstanceOf(aC, "String")) | |
268 | 270 | then { | |
269 | - | let | |
270 | - | throw( | |
271 | + | let aD = aC | |
272 | + | throw(aD) | |
271 | 273 | } | |
272 | 274 | else false | |
273 | 275 | } | |
274 | 276 | } | |
275 | - | else if ($isInstanceOf( | |
277 | + | else if ($isInstanceOf(V, "ByteVector")) | |
276 | 278 | then { | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | if ($isInstanceOf( | |
279 | + | let ay = V | |
280 | + | let aA = addressFromPublicKey(ay) | |
281 | + | let aB = aA | |
282 | + | if ($isInstanceOf(aB, "Address")) | |
281 | 283 | then { | |
282 | - | let | |
284 | + | let aA = aB | |
283 | 285 | true | |
284 | 286 | } | |
285 | 287 | else { | |
286 | - | let | |
287 | - | if ($isInstanceOf( | |
288 | + | let aC = az | |
289 | + | if ($isInstanceOf(aC, "String")) | |
288 | 290 | then { | |
289 | - | let | |
290 | - | throw( | |
291 | + | let aD = aC | |
292 | + | throw(aD) | |
291 | 293 | } | |
292 | 294 | else false | |
293 | 295 | } | |
296 | 298 | } | |
297 | 299 | ||
298 | 300 | ||
299 | - | func | |
300 | - | let | |
301 | - | if ($isInstanceOf( | |
301 | + | func aE (aF,az) = { | |
302 | + | let V = assetInfo(fromBase58String(aF)) | |
303 | + | if ($isInstanceOf(V, "Asset")) | |
302 | 304 | then { | |
303 | - | let | |
305 | + | let aG = V | |
304 | 306 | true | |
305 | 307 | } | |
306 | 308 | else { | |
307 | - | let | |
308 | - | if ($isInstanceOf( | |
309 | + | let aB = az | |
310 | + | if ($isInstanceOf(aB, "String")) | |
309 | 311 | then { | |
310 | - | let | |
311 | - | throw( | |
312 | + | let aD = aB | |
313 | + | throw(aD) | |
312 | 314 | } | |
313 | 315 | else false | |
314 | 316 | } | |
315 | 317 | } | |
316 | 318 | ||
317 | 319 | ||
318 | - | func | |
319 | - | let | |
320 | - | let | |
321 | - | if ($isInstanceOf( | |
320 | + | func aH () = { | |
321 | + | let aI = { | |
322 | + | let V = aj(p) | |
323 | + | if ($isInstanceOf(V, "Int")) | |
322 | 324 | then { | |
323 | - | let | |
324 | - | | |
325 | + | let aJ = V | |
326 | + | aJ | |
325 | 327 | } | |
326 | 328 | else throw("circulation index not previously defined") | |
327 | 329 | } | |
328 | - | if (( | |
330 | + | if ((aI == aI)) | |
329 | 331 | then { | |
330 | - | let | |
331 | - | let | |
332 | - | if ($isInstanceOf( | |
332 | + | let aK = { | |
333 | + | let V = aj(m) | |
334 | + | if ($isInstanceOf(V, "String")) | |
333 | 335 | then { | |
334 | - | let | |
335 | - | | |
336 | + | let aJ = V | |
337 | + | aJ | |
336 | 338 | } | |
337 | 339 | else throw("asset id not previously defined") | |
338 | 340 | } | |
339 | - | if (( | |
341 | + | if ((aK == aK)) | |
340 | 342 | then { | |
341 | - | let | |
342 | - | let | |
343 | - | if ($isInstanceOf( | |
343 | + | let aL = { | |
344 | + | let V = assetInfo(fromBase58String(aK)) | |
345 | + | if ($isInstanceOf(V, "Asset")) | |
344 | 346 | then { | |
345 | - | let | |
346 | - | | |
347 | + | let aG = V | |
348 | + | aG.quantity | |
347 | 349 | } | |
348 | - | else throw(("asset not found for " + | |
350 | + | else throw(("asset not found for " + aK)) | |
349 | 351 | } | |
350 | - | let | |
351 | - | let | |
352 | - | then ( | |
353 | - | else | |
354 | - | let | |
355 | - | let | |
356 | - | if ($isInstanceOf( | |
352 | + | let aM = (aw((aL - i)) / i) | |
353 | + | let aN = if ((aM > aI)) | |
354 | + | then (aM + aI) | |
355 | + | else aI | |
356 | + | let aO = { | |
357 | + | let V = aj(l) | |
358 | + | if ($isInstanceOf(V, "Int")) | |
357 | 359 | then { | |
358 | - | let | |
359 | - | | |
360 | + | let aJ = V | |
361 | + | aJ | |
360 | 362 | } | |
361 | 363 | else throw("failed to get miniting rate") | |
362 | 364 | } | |
363 | - | if (( | |
364 | - | then $Tuple2( | |
365 | + | if ((aN == aI)) | |
366 | + | then $Tuple2(aO, nil) | |
365 | 367 | else { | |
366 | - | let | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
368 | + | let aP = { | |
369 | + | let V = aj(k) | |
370 | + | if ($isInstanceOf(V, "Int")) | |
369 | 371 | then { | |
370 | - | let | |
371 | - | | |
372 | + | let aJ = V | |
373 | + | aJ | |
372 | 374 | } | |
373 | 375 | else throw("failed to get percentage reduction factor") | |
374 | 376 | } | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | $Tuple2( | |
377 | + | let aQ = (aO - fraction(aO, aP, 100)) | |
378 | + | let aR = ag(l, aQ) | |
379 | + | let aS = ag(k, aP) | |
380 | + | let aT = ag(p, aN) | |
381 | + | $Tuple2(aQ, [aR, aS, aT]) | |
380 | 382 | } | |
381 | 383 | } | |
382 | 384 | else throw("Strict value is not equal to itself.") | |
385 | 387 | } | |
386 | 388 | ||
387 | 389 | ||
388 | - | func | |
389 | - | let | |
390 | - | let | |
391 | - | if ($isInstanceOf( | |
390 | + | func aU (aV,aW,aX,aY) = { | |
391 | + | let aZ = { | |
392 | + | let V = aj(I) | |
393 | + | if ($isInstanceOf(V, "Int")) | |
392 | 394 | then { | |
393 | - | let | |
394 | - | ( | |
395 | + | let aJ = V | |
396 | + | (aJ + aV) | |
395 | 397 | } | |
396 | 398 | else throw("failed to get global total waves") | |
397 | 399 | } | |
398 | - | if (( | |
400 | + | if ((aZ == aZ)) | |
399 | 401 | then { | |
400 | - | let | |
401 | - | let | |
402 | - | if ($isInstanceOf( | |
402 | + | let ba = { | |
403 | + | let V = aj(H) | |
404 | + | if ($isInstanceOf(V, "Int")) | |
403 | 405 | then { | |
404 | - | let | |
405 | - | ( | |
406 | + | let aJ = V | |
407 | + | (aJ + aW) | |
406 | 408 | } | |
407 | 409 | else throw("failed to get global total staw minted") | |
408 | 410 | } | |
409 | - | if (( | |
411 | + | if ((ba == ba)) | |
410 | 412 | then { | |
411 | - | let | |
412 | - | let | |
413 | - | if ($isInstanceOf( | |
413 | + | let bb = { | |
414 | + | let V = aj(J) | |
415 | + | if ($isInstanceOf(V, "Int")) | |
414 | 416 | then { | |
415 | - | let | |
416 | - | ( | |
417 | + | let aJ = V | |
418 | + | (aJ + aX) | |
417 | 419 | } | |
418 | 420 | else throw("failed to get global total stawpl") | |
419 | 421 | } | |
420 | - | if (( | |
422 | + | if ((bb == bb)) | |
421 | 423 | then { | |
422 | - | let | |
423 | - | let | |
424 | - | if ($isInstanceOf( | |
424 | + | let bc = { | |
425 | + | let V = aj(K) | |
426 | + | if ($isInstanceOf(V, "Int")) | |
425 | 427 | then { | |
426 | - | let | |
427 | - | ( | |
428 | + | let aJ = V | |
429 | + | (aJ + aY) | |
428 | 430 | } | |
429 | 431 | else throw("failed to get global index count") | |
430 | 432 | } | |
431 | - | if (( | |
432 | - | then [ | |
433 | + | if ((bc == bc)) | |
434 | + | then [ag(I, aZ), ag(H, ba), ag(J, bb), ag(K, bc)] | |
433 | 435 | else throw("Strict value is not equal to itself.") | |
434 | 436 | } | |
435 | 437 | else throw("Strict value is not equal to itself.") | |
440 | 442 | } | |
441 | 443 | ||
442 | 444 | ||
443 | - | func bc (bd,be,bf,bg,bh,aU,aV,bi,bj,bk,bl,bm,bn) = { | |
444 | - | let bo = makeString([be, bd, C], a) | |
445 | - | let bp = makeString([be, bd, w], a) | |
446 | - | let bq = makeString([be, bd, x], a) | |
447 | - | let br = makeString([be, bd, z], a) | |
448 | - | let bs = makeString([be, bd, A], a) | |
449 | - | let bt = makeString([be, bd, B], a) | |
450 | - | let bu = makeString([be, bd, D], a) | |
451 | - | let bv = makeString([be, bd, y], a) | |
452 | - | let bw = makeString([be, v], a) | |
453 | - | let bx = makeString([be, u], a) | |
454 | - | let by = makeString([be, bd, E], a) | |
455 | - | let bz = makeString([be, bd, F], a) | |
456 | - | let bA = makeString([be, bd, G], a) | |
457 | - | let bB = makeString(["%s", bd], a) | |
458 | - | let bC = makeString(["%d", toString(bf)], a) | |
459 | - | let bD = makeString(["%d", toString(bh)], a) | |
460 | - | let bE = makeString(["%d", toString(aU)], a) | |
445 | + | func bd (be,bf,bg,bh,bi,aV,aW,bj,bk,bl,bm,bn,bo) = { | |
446 | + | let bp = makeString([bf, be, C], a) | |
447 | + | let bq = makeString([bf, be, w], a) | |
448 | + | let br = makeString([bf, be, x], a) | |
449 | + | let bs = makeString([bf, be, z], a) | |
450 | + | let bt = makeString([bf, be, A], a) | |
451 | + | let bu = makeString([bf, be, B], a) | |
452 | + | let bv = makeString([bf, be, D], a) | |
453 | + | let bw = makeString([bf, be, y], a) | |
454 | + | let bx = makeString([bf, v], a) | |
455 | + | let by = makeString([bf, u], a) | |
456 | + | let bz = makeString([bf, be, E], a) | |
457 | + | let bA = makeString([bf, be, F], a) | |
458 | + | let bB = makeString([bf, be, G], a) | |
459 | + | let bC = makeString(["%s", be], a) | |
460 | + | let bD = makeString(["%d", toString(bg)], a) | |
461 | + | let bE = makeString(["%d", toString(bi)], a) | |
461 | 462 | let bF = makeString(["%d", toString(aV)], a) | |
462 | - | let bG = makeString(["%d", toString( | |
463 | + | let bG = makeString(["%d", toString(aW)], a) | |
463 | 464 | let bH = makeString(["%d", toString(bj)], a) | |
464 | - | let bI = makeString(["% | |
465 | - | let bJ = makeString(["% | |
465 | + | let bI = makeString(["%d", toString(bk)], a) | |
466 | + | let bJ = makeString(["%b", bl], a) | |
466 | 467 | let bK = makeString(["%d", toString(bm)], a) | |
467 | - | let bL = makeString(["%d", toString(bg)], a) | |
468 | - | let bM = makeString(["%d", toString(0)], a) | |
469 | - | let bN = makeString(["%s", bn], a) | |
470 | - | [aq(bo, bB), aq(bq, bD), ac(bx, bK), ac(bw, bJ), aq(bp, bC), aq(by, bL), aq(br, bE), aq(bs, bF), ac(bt, bG), ac(bz, bM), aq(bu, bH), aq(bv, bI), ac(bA, bN)] | |
468 | + | let bL = makeString(["%d", toString(bn)], a) | |
469 | + | let bM = makeString(["%d", toString(bh)], a) | |
470 | + | let bN = makeString(["%d", toString(0)], a) | |
471 | + | let bO = makeString(["%s", bo], a) | |
472 | + | [ar(bp, bC), ar(br, bE), ad(by, bL), ad(bx, bK), ar(bq, bD), ar(bz, bM), ar(bs, bF), ar(bt, bG), ad(bu, bH), ad(bA, bN), ar(bv, bI), ar(bw, bJ), ad(bB, bO)] | |
471 | 473 | } | |
472 | 474 | ||
473 | 475 | ||
474 | - | func | |
475 | - | let | |
476 | - | let | |
477 | - | if ((size( | |
478 | - | then $Tuple2( | |
479 | - | else $Tuple2( | |
476 | + | func bP (h,bQ) = { | |
477 | + | let bR = aH() | |
478 | + | let bS = fraction(bQ, (f * bR._1), g(h)) | |
479 | + | if ((size(bR._2) == 0)) | |
480 | + | then $Tuple2(bS, nil) | |
481 | + | else $Tuple2(bS, bR._2) | |
480 | 482 | } | |
481 | 483 | ||
482 | 484 | ||
483 | - | func | |
484 | - | let | |
485 | - | fraction( | |
485 | + | func bT (h,bU) = { | |
486 | + | let bV = fraction(h, 15, 10) | |
487 | + | fraction(bU, ((h * bV) - h), f) | |
486 | 488 | } | |
487 | 489 | ||
488 | 490 | ||
489 | - | func | |
490 | - | let | |
491 | - | [ | |
491 | + | func bW (bX) = { | |
492 | + | let bY = Z(M(J), "could not get the running StawLP") | |
493 | + | [ab(J, (bY + bX))] | |
492 | 494 | } | |
493 | 495 | ||
494 | 496 | ||
495 | - | func | |
496 | - | let | |
497 | - | [ | |
497 | + | func bZ (bX) = { | |
498 | + | let bY = Z(M(J), "could not get the running StawLP") | |
499 | + | [ab(J, (bY - bX))] | |
498 | 500 | } | |
499 | 501 | ||
500 | 502 | ||
501 | - | func | |
502 | - | let | |
503 | - | [ | |
503 | + | func ca (bX) = { | |
504 | + | let cb = Z(M(I), "could not get total locked waves") | |
505 | + | [ab(I, (cb + bX))] | |
504 | 506 | } | |
505 | 507 | ||
506 | 508 | ||
507 | - | func | |
508 | - | let | |
509 | - | [ | |
509 | + | func cc (bX) = { | |
510 | + | let cb = Z(M(I), "could not get total locked waves") | |
511 | + | [ab(I, (cb - bX))] | |
510 | 512 | } | |
511 | 513 | ||
512 | 514 | ||
513 | - | func | |
514 | - | let | |
515 | - | let | |
516 | - | if ($isInstanceOf( | |
515 | + | func cd (ce) = { | |
516 | + | let cf = { | |
517 | + | let V = blockInfoByHeight(ce) | |
518 | + | if ($isInstanceOf(V, "BlockInfo")) | |
517 | 519 | then { | |
518 | - | let | |
519 | - | | |
520 | + | let cg = V | |
521 | + | cg.timestamp | |
520 | 522 | } | |
521 | 523 | else throw("counld get timestamp") | |
522 | 524 | } | |
523 | - | | |
525 | + | cf | |
524 | 526 | } | |
525 | 527 | ||
526 | 528 | ||
527 | - | @Callable( | |
528 | - | func getEmission (h, | |
529 | - | let | |
530 | - | if (( | |
531 | - | then $Tuple2(nil, | |
529 | + | @Callable(au) | |
530 | + | func getEmission (h,bU) = { | |
531 | + | let ch = at(au) | |
532 | + | if ((ch == ch)) | |
533 | + | then $Tuple2(nil, bT(h, bU)) | |
532 | 534 | else throw("Strict value is not equal to itself.") | |
533 | 535 | } | |
534 | 536 | ||
535 | 537 | ||
536 | 538 | ||
537 | - | @Callable( | |
538 | - | func init ( | |
539 | - | let | |
540 | - | then | |
539 | + | @Callable(au) | |
540 | + | func init (av,ci,aF,cj) = { | |
541 | + | let ck = if (isDefined(O(n))) | |
542 | + | then at(au) | |
541 | 543 | else true | |
542 | - | if (( | |
544 | + | if ((ck == ck)) | |
543 | 545 | then { | |
544 | - | let | |
545 | - | if (( | |
546 | + | let ch = ax(av, "invalid address") | |
547 | + | if ((ch == ch)) | |
546 | 548 | then { | |
547 | - | let | |
548 | - | if (( | |
549 | + | let cl = ax(ci, "invalid address") | |
550 | + | if ((cl == cl)) | |
549 | 551 | then { | |
550 | - | let | |
551 | - | if (( | |
552 | + | let cm = ax(cj, "invalid address") | |
553 | + | if ((cm == cm)) | |
552 | 554 | then { | |
553 | - | let | |
555 | + | let cn = if (aE(aF, "invalid asset")) | |
554 | 556 | then true | |
555 | 557 | else throw("invalid asset Id") | |
556 | - | if (( | |
558 | + | if ((cn == cn)) | |
557 | 559 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | [ | |
560 | + | let co = T(p, 0) | |
561 | + | let cp = T(k, 0) | |
562 | + | let cq = T(l, c) | |
563 | + | let cr = T(H, 0) | |
564 | + | let cs = T(J, 0) | |
565 | + | let ct = T(K, 0) | |
566 | + | let cu = T(I, 0) | |
567 | + | [ag(n, av), ag(o, ci), ag(m, aF), ag(q, cj), ag(p, co), ag(l, cq), ag(k, cp), ag(I, cu), ag(J, cs), ag(H, cr), ag(K, ct)] | |
566 | 568 | } | |
567 | 569 | else throw("Strict value is not equal to itself.") | |
568 | 570 | } | |
577 | 579 | ||
578 | 580 | ||
579 | 581 | ||
580 | - | @Callable( | |
581 | - | func modifyGlobalParams ( | |
582 | - | let | |
583 | - | if (( | |
582 | + | @Callable(au) | |
583 | + | func modifyGlobalParams (X) = { | |
584 | + | let ch = at(au) | |
585 | + | if ((ch == ch)) | |
584 | 586 | then { | |
585 | - | let | |
586 | - | let | |
587 | - | if (( | |
587 | + | let az = makeString(["got", "list size of", toString(size(X)), "but expected [global_key, value] pair"], " ") | |
588 | + | let cl = ae((size(X) != 2), az) | |
589 | + | if ((cl == cl)) | |
588 | 590 | then { | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | if ($isInstanceOf( | |
591 | + | let N = X[0] | |
592 | + | let cv = parseInt(X[1]) | |
593 | + | let V = cv | |
594 | + | if ($isInstanceOf(V, "Int")) | |
593 | 595 | then { | |
594 | - | let | |
595 | - | let | |
596 | - | if (( | |
596 | + | let al = V | |
597 | + | let cw = ae((O(N) == unit), (("key " + N) + " not recognized")) | |
598 | + | if ((cw == cw)) | |
597 | 599 | then { | |
598 | - | let | |
599 | - | let | |
600 | - | if ($isInstanceOf( | |
600 | + | let cx = { | |
601 | + | let aB = aj(N) | |
602 | + | if ($isInstanceOf(aB, "Int")) | |
601 | 603 | then { | |
602 | - | let | |
604 | + | let aJ = aB | |
603 | 605 | true | |
604 | 606 | } | |
605 | 607 | else throw("invalid key-value pair") | |
606 | 608 | } | |
607 | - | if (( | |
608 | - | then [ | |
609 | + | if ((cx == cx)) | |
610 | + | then [ag(N, al)] | |
609 | 611 | else throw("Strict value is not equal to itself.") | |
610 | 612 | } | |
611 | 613 | else throw("Strict value is not equal to itself.") | |
612 | 614 | } | |
613 | - | else if ($isInstanceOf( | |
615 | + | else if ($isInstanceOf(V, "Unit")) | |
614 | 616 | then { | |
615 | - | let | |
616 | - | let | |
617 | - | if (( | |
617 | + | let al = V | |
618 | + | let cw = ae((O(N) == unit), (("key " + N) + " not recognized")) | |
619 | + | if ((cw == cw)) | |
618 | 620 | then { | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | if ($isInstanceOf( | |
621 | + | let cy = X[1] | |
622 | + | let cz = aj(n) | |
623 | + | let cn = { | |
624 | + | let aB = cz | |
625 | + | if ($isInstanceOf(aB, "String")) | |
624 | 626 | then { | |
625 | - | let | |
626 | - | if ((size( | |
627 | - | then | |
628 | - | else | |
627 | + | let cA = aB | |
628 | + | if ((size(cA) == size(cy))) | |
629 | + | then ax(cy, "string type for value not supported") | |
630 | + | else aE(cy, "string type for value not supported") | |
629 | 631 | } | |
630 | 632 | else false | |
631 | 633 | } | |
632 | - | if (( | |
633 | - | then [ | |
634 | + | if ((cn == cn)) | |
635 | + | then [ag(N, cy)] | |
634 | 636 | else throw("Strict value is not equal to itself.") | |
635 | 637 | } | |
636 | 638 | else throw("Strict value is not equal to itself.") | |
637 | 639 | } | |
638 | - | else throw(("failed to modify " + | |
640 | + | else throw(("failed to modify " + X[0])) | |
639 | 641 | } | |
640 | 642 | else throw("Strict value is not equal to itself.") | |
641 | 643 | } | |
644 | 646 | ||
645 | 647 | ||
646 | 648 | ||
647 | - | @Callable( | |
649 | + | @Callable(au) | |
648 | 650 | func revokeLock () = { | |
649 | - | let | |
650 | - | if (( | |
651 | + | let ch = at(au) | |
652 | + | if ((ch == ch)) | |
651 | 653 | then nil | |
652 | 654 | else throw("Strict value is not equal to itself.") | |
653 | 655 | } | |
654 | 656 | ||
655 | 657 | ||
656 | 658 | ||
657 | - | @Callable(at) | |
658 | - | func claim (bd) = { | |
659 | - | let cA = toBase58String(at.caller.bytes) | |
660 | - | let cB = makeString([cA, bd, z], a) | |
661 | - | let cC = makeString([cA, bd, w], a) | |
662 | - | let cD = makeString([cA, bd, y], a) | |
663 | - | let cE = makeString([cA, bd, E], a) | |
664 | - | let cF = makeString([cA, bd, F], a) | |
665 | - | let cG = makeString([cA, bd, B], a) | |
666 | - | let cH = makeString([cA, bd, z], a) | |
667 | - | let cI = makeString([cA, v], a) | |
668 | - | let cJ = makeString([cA, bd, G], a) | |
669 | - | let cK = makeString([cA, bd, G], a) | |
670 | - | let cL = { | |
671 | - | let U = ai(I) | |
672 | - | if ($isInstanceOf(U, "Int")) | |
659 | + | @Callable(au) | |
660 | + | func claim (be) = { | |
661 | + | let cB = toBase58String(au.caller.bytes) | |
662 | + | let cC = makeString([cB, be, z], a) | |
663 | + | let cD = makeString([cB, be, w], a) | |
664 | + | let cE = makeString([cB, be, y], a) | |
665 | + | let cF = makeString([cB, be, E], a) | |
666 | + | let cG = makeString([cB, be, F], a) | |
667 | + | let cH = makeString([cB, be, B], a) | |
668 | + | let cI = makeString([cB, be, z], a) | |
669 | + | let cJ = makeString([cB, v], a) | |
670 | + | let cK = makeString([cB, be, G], a) | |
671 | + | let cL = makeString([cB, be, G], a) | |
672 | + | let cM = makeString([cB, be, L], a) | |
673 | + | let cN = { | |
674 | + | let V = aj(I) | |
675 | + | if ($isInstanceOf(V, "Int")) | |
673 | 676 | then { | |
674 | - | let | |
675 | - | | |
677 | + | let aJ = V | |
678 | + | aJ | |
676 | 679 | } | |
677 | 680 | else throw("failed to get global total waves") | |
678 | 681 | } | |
679 | - | if (( | |
682 | + | if ((cN == cN)) | |
680 | 683 | then { | |
681 | - | let | |
682 | - | let | |
683 | - | if ($isInstanceOf( | |
684 | + | let cO = { | |
685 | + | let V = aj(J) | |
686 | + | if ($isInstanceOf(V, "Int")) | |
684 | 687 | then { | |
685 | - | let | |
686 | - | | |
688 | + | let aJ = V | |
689 | + | aJ | |
687 | 690 | } | |
688 | 691 | else throw("failed to get global total waves") | |
689 | 692 | } | |
690 | - | if (( | |
693 | + | if ((cO == cO)) | |
691 | 694 | then { | |
692 | - | let | |
693 | - | let | |
694 | - | if ($isInstanceOf( | |
695 | + | let bl = { | |
696 | + | let V = aj(cE) | |
697 | + | if ($isInstanceOf(V, "ByteVector")) | |
695 | 698 | then { | |
696 | - | let | |
697 | - | | |
699 | + | let aJ = V | |
700 | + | aJ | |
698 | 701 | } | |
699 | 702 | else throw("failed to get lease id") | |
700 | 703 | } | |
701 | - | if (( | |
704 | + | if ((bl == bl)) | |
702 | 705 | then { | |
703 | - | let | |
704 | - | let | |
705 | - | if ($isInstanceOf( | |
706 | + | let cP = { | |
707 | + | let V = aj(cJ) | |
708 | + | if ($isInstanceOf(V, "Int")) | |
706 | 709 | then { | |
707 | - | let | |
708 | - | | |
710 | + | let aJ = V | |
711 | + | aJ | |
709 | 712 | } | |
710 | 713 | else throw("failed to get total waves locked by this address") | |
711 | 714 | } | |
712 | - | if (( | |
715 | + | if ((cP == cP)) | |
713 | 716 | then { | |
714 | - | let | |
715 | - | let | |
716 | - | if ($isInstanceOf( | |
717 | + | let aV = { | |
718 | + | let V = aj(cI) | |
719 | + | if ($isInstanceOf(V, "Int")) | |
717 | 720 | then { | |
718 | - | let | |
719 | - | | |
721 | + | let aJ = V | |
722 | + | aJ | |
720 | 723 | } | |
721 | 724 | else throw("failed to get total waves locked") | |
722 | 725 | } | |
723 | - | if (( | |
726 | + | if ((aV == aV)) | |
724 | 727 | then { | |
725 | - | let | |
726 | - | let | |
727 | - | if ($isInstanceOf( | |
728 | + | let cQ = { | |
729 | + | let V = aj(cG) | |
730 | + | if ($isInstanceOf(V, "Int")) | |
728 | 731 | then { | |
729 | - | let | |
730 | - | | |
732 | + | let aJ = V | |
733 | + | aJ | |
731 | 734 | } | |
732 | 735 | else throw("failed to get total waves claimed") | |
733 | 736 | } | |
734 | - | if (( | |
737 | + | if ((cQ == cQ)) | |
735 | 738 | then { | |
736 | - | let | |
737 | - | let | |
738 | - | if ($isInstanceOf( | |
739 | + | let bj = { | |
740 | + | let V = aj(cH) | |
741 | + | if ($isInstanceOf(V, "Int")) | |
739 | 742 | then { | |
740 | - | let | |
741 | - | | |
743 | + | let aJ = V | |
744 | + | aJ | |
742 | 745 | } | |
743 | 746 | else throw("failed to get stawPL") | |
744 | 747 | } | |
745 | - | if (( | |
748 | + | if ((bj == bj)) | |
746 | 749 | then { | |
747 | - | let | |
748 | - | let | |
749 | - | if ($isInstanceOf( | |
750 | + | let cR = { | |
751 | + | let V = aj(cF) | |
752 | + | if ($isInstanceOf(V, "Int")) | |
750 | 753 | then { | |
751 | - | let | |
752 | - | | |
754 | + | let aJ = V | |
755 | + | aJ | |
753 | 756 | } | |
754 | 757 | else throw("failed to get lock period timespam") | |
755 | 758 | } | |
756 | - | if (( | |
759 | + | if ((cR == cR)) | |
757 | 760 | then { | |
758 | - | let | |
759 | - | let | |
760 | - | if ($isInstanceOf( | |
761 | + | let cS = { | |
762 | + | let V = cd(height) | |
763 | + | if ($isInstanceOf(V, "Int")) | |
761 | 764 | then { | |
762 | - | let | |
763 | - | | |
765 | + | let aJ = V | |
766 | + | aJ | |
764 | 767 | } | |
765 | 768 | else throw("failed to get current timestamp") | |
766 | 769 | } | |
767 | - | if (( | |
770 | + | if ((cS == cS)) | |
768 | 771 | then { | |
769 | - | let | |
770 | - | let | |
771 | - | if ($isInstanceOf( | |
772 | + | let bU = { | |
773 | + | let V = aj(cC) | |
774 | + | if ($isInstanceOf(V, "Int")) | |
772 | 775 | then { | |
773 | - | let | |
774 | - | | |
776 | + | let aJ = V | |
777 | + | aJ | |
775 | 778 | } | |
776 | 779 | else throw("failed to get collateral") | |
777 | 780 | } | |
778 | - | if (( | |
781 | + | if ((bU == bU)) | |
779 | 782 | then { | |
780 | 783 | let h = { | |
781 | - | let | |
782 | - | if ($isInstanceOf( | |
784 | + | let V = aj(cD) | |
785 | + | if ($isInstanceOf(V, "Int")) | |
783 | 786 | then { | |
784 | - | let | |
785 | - | | |
787 | + | let aJ = V | |
788 | + | aJ | |
786 | 789 | } | |
787 | 790 | else throw("failed to get lockPeriod") | |
788 | 791 | } | |
789 | 792 | if ((h == h)) | |
790 | 793 | then { | |
791 | - | let | |
792 | - | let | |
793 | - | if ($isInstanceOf( | |
794 | + | let cT = { | |
795 | + | let V = aj(cK) | |
796 | + | if ($isInstanceOf(V, "String")) | |
794 | 797 | then { | |
795 | - | let | |
796 | - | | |
798 | + | let aJ = V | |
799 | + | aJ | |
797 | 800 | } | |
798 | 801 | else throw("failed to get lease state") | |
799 | 802 | } | |
800 | - | if (( | |
803 | + | if ((cT == cT)) | |
801 | 804 | then { | |
802 | - | let | |
803 | - | let | |
804 | - | if ($isInstanceOf( | |
805 | + | let bo = { | |
806 | + | let V = aj(cL) | |
807 | + | if ($isInstanceOf(V, "String")) | |
805 | 808 | then { | |
806 | - | let | |
807 | - | | |
809 | + | let aJ = V | |
810 | + | aJ | |
808 | 811 | } | |
809 | 812 | else throw("failed to get lease state for user") | |
810 | 813 | } | |
811 | - | if (( | |
814 | + | if ((bo == bo)) | |
812 | 815 | then { | |
813 | - | let cg = ad((cP > cQ), "lock period for this entry has not elapsed") | |
814 | - | if ((cg == cg)) | |
816 | + | let cU = { | |
817 | + | let V = O(cM) | |
818 | + | if ($isInstanceOf(V, "String")) | |
819 | + | then { | |
820 | + | let aJ = V | |
821 | + | let aB = aj(cM) | |
822 | + | if ($isInstanceOf(aB, "Int")) | |
823 | + | then { | |
824 | + | let cV = aB | |
825 | + | cV | |
826 | + | } | |
827 | + | else 0 | |
828 | + | } | |
829 | + | else 0 | |
830 | + | } | |
831 | + | if ((cU == cU)) | |
815 | 832 | then { | |
816 | - | let cS = if ((cR == "leased")) | |
817 | - | then $Tuple2(LeaseCancel(bk), ac(cJ, "cancelled")) | |
818 | - | else $Tuple2(ac(cJ, "cancelled"), ac(cJ, "cancelled")) | |
819 | - | if ((cS == cS)) | |
833 | + | let ch = ae((cR > cS), "lock period for this entry has not elapsed") | |
834 | + | if ((ch == ch)) | |
820 | 835 | then { | |
821 | - | let ck = ad(if ((0 == aU)) | |
836 | + | let cW = if ((cT == "leased")) | |
837 | + | then $Tuple2(LeaseCancel(bl), ad(cK, "cancelled")) | |
838 | + | else $Tuple2(ad(cK, "cancelled"), ad(cK, "cancelled")) | |
839 | + | let cl = ae(if ((0 == aV)) | |
822 | 840 | then true | |
823 | - | else (0 == | |
824 | - | if (( | |
841 | + | else (0 == bj), "all claims exhausted for this trx") | |
842 | + | if ((cl == cl)) | |
825 | 843 | then { | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | if (( | |
844 | + | let cX = (bT(h, bU) * f) | |
845 | + | let cY = { | |
846 | + | let cZ = (cS - cR) | |
847 | + | let da = (cZ / f) | |
848 | + | if ((cU == 0)) | |
831 | 849 | then throw("less than 24hrs before first claim") | |
832 | - | else if (((cV % f) != 0)) | |
833 | - | then throw("already claimed or less than 24hrs before next claim") | |
834 | - | else if ((cW > h)) | |
835 | - | then throw("all claims exhausted") | |
836 | - | else { | |
837 | - | let cX = (cW * cT) | |
838 | - | let cY = ad((cX == cO), "can only claim once in 24hrs") | |
839 | - | if ((cY == cY)) | |
840 | - | then { | |
841 | - | let cZ = ad(((cX + cO) > aU), "all claims exhausted") | |
842 | - | if ((cZ == cZ)) | |
843 | - | then { | |
844 | - | let da = if ((cW == 1)) | |
845 | - | then cX | |
846 | - | else (cX - cO) | |
847 | - | let db = cX | |
848 | - | let dc = if ((cW == 1)) | |
849 | - | then (aU - cX) | |
850 | - | else (aU - (cX - cO)) | |
851 | - | let dd = if ((cW == 1)) | |
852 | - | then (bi - cX) | |
853 | - | else (bi - (cX - cO)) | |
854 | - | let de = (cL - dc) | |
855 | - | let df = (cM - dd) | |
856 | - | let dg = (cN - da) | |
857 | - | let bE = makeString(["%d", toString(dc)], a) | |
858 | - | let bG = makeString(["%d", toString(dd)], a) | |
859 | - | let bM = makeString(["%d", toString(db)], a) | |
860 | - | let dh = makeString(["%d", toString(dg)], a) | |
861 | - | [cS._1, cS._2, ac(cH, bE), ac(cG, bG), ac(cF, bM), ac(cI, dh), af(I, de), af(J, df), ScriptTransfer(Address(at.caller.bytes), da, unit)] | |
862 | - | } | |
863 | - | else throw("Strict value is not equal to itself.") | |
864 | - | } | |
865 | - | else throw("Strict value is not equal to itself.") | |
866 | - | } | |
850 | + | else if ((cU >= da)) | |
851 | + | then throw("24hrs or less before next claim") | |
852 | + | else { | |
853 | + | let db = (cU * cX) | |
854 | + | let dc = ae((db == cQ), "can only claim once in 24hrs") | |
855 | + | if ((dc == dc)) | |
856 | + | then { | |
857 | + | let dd = ae(((db + cQ) > aV), "all claims exhausted") | |
858 | + | if ((dd == dd)) | |
859 | + | then { | |
860 | + | let de = if ((cU == 1)) | |
861 | + | then db | |
862 | + | else (db - cQ) | |
863 | + | let df = db | |
864 | + | let dg = if ((cU == 1)) | |
865 | + | then (aV - db) | |
866 | + | else (aV - (db - cQ)) | |
867 | + | let dh = if ((cU == 1)) | |
868 | + | then (bj - db) | |
869 | + | else (bj - (db - cQ)) | |
870 | + | let di = (cN - dg) | |
871 | + | let dj = (cO - dh) | |
872 | + | let dk = (cP - de) | |
873 | + | let bF = makeString(["%d", toString(dg)], a) | |
874 | + | let bH = makeString(["%d", toString(dh)], a) | |
875 | + | let bN = makeString(["%d", toString(df)], a) | |
876 | + | let dl = makeString(["%d", toString(dk)], a) | |
877 | + | let dm = makeString(["%d", toString(cU)], a) | |
878 | + | [cW._1, cW._2, ad(cI, bF), ad(cH, bH), ad(cG, bN), ad(cJ, dl), ad(cM, dm), ag(I, di), ag(J, dj), ScriptTransfer(Address(au.caller.bytes), de, unit)] | |
879 | + | } | |
880 | + | else throw("Strict value is not equal to itself.") | |
881 | + | } | |
882 | + | else throw("Strict value is not equal to itself.") | |
883 | + | } | |
867 | 884 | } | |
868 | - | if (( | |
869 | - | then | |
885 | + | if ((cY == cY)) | |
886 | + | then cY | |
870 | 887 | else throw("Strict value is not equal to itself.") | |
871 | 888 | } | |
872 | 889 | else throw("Strict value is not equal to itself.") | |
904 | 921 | ||
905 | 922 | ||
906 | 923 | ||
907 | - | @Callable( | |
924 | + | @Callable(au) | |
908 | 925 | func mintStaw (h) = { | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | if (( | |
926 | + | let cB = toBase58String(au.caller.bytes) | |
927 | + | let dn = toBase58String(au.transactionId) | |
928 | + | let ch = ae((1 != size(au.payments)), "no payments attached") | |
929 | + | if ((ch == ch)) | |
913 | 930 | then { | |
914 | - | let | |
931 | + | let cl = if (isDefined(au.payments[0].assetId)) | |
915 | 932 | then throw("only waves supported") | |
916 | 933 | else true | |
917 | - | if (( | |
934 | + | if ((cl == cl)) | |
918 | 935 | then { | |
919 | - | let | |
920 | - | let | |
936 | + | let do = au.payments[0].amount | |
937 | + | let cm = if (if ((d > do)) | |
921 | 938 | then true | |
922 | - | else ( | |
939 | + | else (do > e)) | |
923 | 940 | then throw("lock amount out of range, minimum: 1 waves, maximum: 1000 waves") | |
924 | 941 | else true | |
925 | - | if (( | |
942 | + | if ((cm == cm)) | |
926 | 943 | then { | |
927 | - | let | |
944 | + | let cn = if ((b > h)) | |
928 | 945 | then throw("minimum of 14 days lock period") | |
929 | 946 | else true | |
930 | - | if (( | |
947 | + | if ((cn == cn)) | |
931 | 948 | then { | |
932 | - | let | |
933 | - | let | |
934 | - | let | |
935 | - | let | |
936 | - | let | |
937 | - | if (( | |
949 | + | let dp = bP(h, do) | |
950 | + | let aX = do | |
951 | + | let dq = fraction(dp._1, 10, 100) | |
952 | + | let dr = (dp._1 - dq) | |
953 | + | let ds = (cd(height) + ao(h)) | |
954 | + | if ((ds == ds)) | |
938 | 955 | then { | |
939 | - | let | |
940 | - | let | |
941 | - | if ($isInstanceOf( | |
956 | + | let dt = { | |
957 | + | let V = aj(K) | |
958 | + | if ($isInstanceOf(V, "Int")) | |
942 | 959 | then { | |
943 | - | let | |
944 | - | ( | |
960 | + | let aJ = V | |
961 | + | (aJ + 1) | |
945 | 962 | } | |
946 | 963 | else throw("failed to get current global index count") | |
947 | 964 | } | |
948 | - | if (( | |
965 | + | if ((dt == dt)) | |
949 | 966 | then { | |
950 | - | let | |
951 | - | let | |
952 | - | if ($isInstanceOf( | |
967 | + | let du = { | |
968 | + | let V = aj(o) | |
969 | + | if ($isInstanceOf(V, "String")) | |
953 | 970 | then { | |
954 | - | let | |
955 | - | Address(fromBase58String( | |
971 | + | let aJ = V | |
972 | + | Address(fromBase58String(aJ)) | |
956 | 973 | } | |
957 | 974 | else throw("failed to get dfx address") | |
958 | 975 | } | |
959 | - | if (( | |
976 | + | if ((du == du)) | |
960 | 977 | then { | |
961 | - | let | |
962 | - | let | |
963 | - | if ($isInstanceOf( | |
978 | + | let aK = { | |
979 | + | let V = aj(m) | |
980 | + | if ($isInstanceOf(V, "String")) | |
964 | 981 | then { | |
965 | - | let | |
966 | - | fromBase58String( | |
982 | + | let aJ = V | |
983 | + | fromBase58String(aJ) | |
967 | 984 | } | |
968 | 985 | else throw("failed to get asset id") | |
969 | 986 | } | |
970 | - | if (( | |
987 | + | if ((aK == aK)) | |
971 | 988 | then { | |
972 | - | let | |
973 | - | let | |
974 | - | if ($isInstanceOf( | |
989 | + | let dv = { | |
990 | + | let V = aj(q) | |
991 | + | if ($isInstanceOf(V, "String")) | |
975 | 992 | then { | |
976 | - | let | |
977 | - | Address(fromBase58String( | |
993 | + | let aJ = V | |
994 | + | Address(fromBase58String(aJ)) | |
978 | 995 | } | |
979 | 996 | else throw("failed to get lease node address") | |
980 | 997 | } | |
981 | - | if (( | |
998 | + | if ((dv == dv)) | |
982 | 999 | then { | |
983 | - | let | |
984 | - | let | |
985 | - | let | |
986 | - | let | |
987 | - | if ($isInstanceOf( | |
1000 | + | let dw = makeString([cB, u], a) | |
1001 | + | let dx = makeString([cB, v], a) | |
1002 | + | let dy = { | |
1003 | + | let V = O(dw) | |
1004 | + | if ($isInstanceOf(V, "String")) | |
988 | 1005 | then { | |
989 | - | let | |
990 | - | let | |
991 | - | if ($isInstanceOf( | |
1006 | + | let al = V | |
1007 | + | let aB = aj(dw) | |
1008 | + | if ($isInstanceOf(aB, "Int")) | |
992 | 1009 | then { | |
993 | - | let | |
994 | - | ( | |
1010 | + | let aJ = aB | |
1011 | + | (aJ + 1) | |
995 | 1012 | } | |
996 | 1013 | else 0 | |
997 | 1014 | } | |
998 | 1015 | else 0 | |
999 | 1016 | } | |
1000 | - | if (( | |
1017 | + | if ((dy == dy)) | |
1001 | 1018 | then { | |
1002 | - | let | |
1003 | - | let | |
1004 | - | if ($isInstanceOf( | |
1019 | + | let dz = { | |
1020 | + | let V = O(dx) | |
1021 | + | if ($isInstanceOf(V, "String")) | |
1005 | 1022 | then { | |
1006 | - | let | |
1007 | - | let | |
1008 | - | if ($isInstanceOf( | |
1023 | + | let al = V | |
1024 | + | let aB = aj(dx) | |
1025 | + | if ($isInstanceOf(aB, "Int")) | |
1009 | 1026 | then { | |
1010 | - | let | |
1011 | - | ( | |
1027 | + | let aJ = aB | |
1028 | + | (aJ + do) | |
1012 | 1029 | } | |
1013 | - | else | |
1030 | + | else do | |
1014 | 1031 | } | |
1015 | - | else | |
1032 | + | else do | |
1016 | 1033 | } | |
1017 | - | if (( | |
1034 | + | if ((dz == dz)) | |
1018 | 1035 | then { | |
1019 | - | let | |
1020 | - | let | |
1021 | - | ((([ | |
1036 | + | let dA = Lease(dv, do) | |
1037 | + | let dB = toBase58String(calculateLeaseId(dA)) | |
1038 | + | ((([dA, ScriptTransfer(du, dq, aK), ScriptTransfer(Address(au.caller.bytes), dr, aK)] ++ bd(dn, cB, h, ds, dt, do, dr, aX, height, dB, dz, dy, "leased")) ++ aU(do, dp._1, aX, dt)) ++ dp._2) | |
1022 | 1039 | } | |
1023 | 1040 | else throw("Strict value is not equal to itself.") | |
1024 | 1041 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_" | |
5 | 5 | ||
6 | 6 | let b = 1 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = (1 * c) | |
11 | 11 | ||
12 | 12 | let e = (1000 * c) | |
13 | 13 | ||
14 | 14 | let f = 86400000 | |
15 | 15 | ||
16 | 16 | func g (h) = fraction(c, 365, h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | let i = (1000000 * c) | |
20 | 20 | ||
21 | 21 | let j = fraction(c, 10, 100) | |
22 | 22 | ||
23 | 23 | let k = "Current_PercentageReduction_Factor_For_Mr" | |
24 | 24 | ||
25 | 25 | let l = "Minting_Rate" | |
26 | 26 | ||
27 | 27 | let m = "Staw_AssetId" | |
28 | 28 | ||
29 | 29 | let n = "manager" | |
30 | 30 | ||
31 | 31 | let o = "Dfx" | |
32 | 32 | ||
33 | 33 | let p = "CirculationIncrementIndex" | |
34 | 34 | ||
35 | 35 | let q = "LeaseNode" | |
36 | 36 | ||
37 | 37 | let r = "EmissionAmountClaimed" | |
38 | 38 | ||
39 | 39 | let s = "CanClaimEmissionAmount" | |
40 | 40 | ||
41 | 41 | let t = "WalletAddress" | |
42 | 42 | ||
43 | 43 | let u = "TotalEntryIndexCount" | |
44 | 44 | ||
45 | 45 | let v = "TotalLocked" | |
46 | 46 | ||
47 | 47 | let w = "LockDuration" | |
48 | 48 | ||
49 | 49 | let x = "GlobalLockIndex" | |
50 | 50 | ||
51 | 51 | let y = "LockIdentifier" | |
52 | 52 | ||
53 | 53 | let z = "AmountInWaves" | |
54 | 54 | ||
55 | 55 | let A = "AmountInStaw" | |
56 | 56 | ||
57 | 57 | let B = "AmountInStawLP" | |
58 | 58 | ||
59 | 59 | let C = "TXID" | |
60 | 60 | ||
61 | 61 | let D = "LockAtHeight" | |
62 | 62 | ||
63 | 63 | let E = "LocKPeriodInMilliSec" | |
64 | 64 | ||
65 | 65 | let F = "TotalWavesClaimed" | |
66 | 66 | ||
67 | 67 | let G = "LeaseState" | |
68 | 68 | ||
69 | 69 | let H = "TotalStawMinted" | |
70 | 70 | ||
71 | 71 | let I = "TotalWavesLocked" | |
72 | 72 | ||
73 | 73 | let J = "TotalStawLP" | |
74 | 74 | ||
75 | 75 | let K = "IndexCount" | |
76 | 76 | ||
77 | - | func L (M) = getInteger(this, M) | |
77 | + | let L = "DaysAfterLockPeriodElasped" | |
78 | + | ||
79 | + | func M (N) = getInteger(this, N) | |
78 | 80 | ||
79 | 81 | ||
80 | - | func | |
82 | + | func O (N) = getString(this, N) | |
81 | 83 | ||
82 | 84 | ||
83 | - | func | |
85 | + | func P (N) = getBoolean(this, N) | |
84 | 86 | ||
85 | 87 | ||
86 | - | func | |
88 | + | func Q (N) = value(getBoolean(this, N)) | |
87 | 89 | ||
88 | 90 | ||
89 | - | func | |
91 | + | func R (N) = value(getInteger(this, N)) | |
90 | 92 | ||
91 | 93 | ||
92 | - | func | |
94 | + | func S (N) = value(getString(this, N)) | |
93 | 95 | ||
94 | 96 | ||
95 | - | func | |
96 | - | let | |
97 | - | if ($isInstanceOf( | |
97 | + | func T (N,U) = { | |
98 | + | let V = U | |
99 | + | if ($isInstanceOf(V, "String")) | |
98 | 100 | then { | |
99 | - | let | |
100 | - | if (isDefined(N | |
101 | - | then | |
102 | - | else | |
101 | + | let U = V | |
102 | + | if (isDefined(O(N))) | |
103 | + | then S(N) | |
104 | + | else U | |
103 | 105 | } | |
104 | - | else if ($isInstanceOf( | |
106 | + | else if ($isInstanceOf(V, "Int")) | |
105 | 107 | then { | |
106 | - | let | |
107 | - | if (isDefined( | |
108 | - | then | |
109 | - | else | |
108 | + | let U = V | |
109 | + | if (isDefined(M(N))) | |
110 | + | then R(N) | |
111 | + | else U | |
110 | 112 | } | |
111 | - | else if ($isInstanceOf( | |
113 | + | else if ($isInstanceOf(V, "Boolean")) | |
112 | 114 | then { | |
113 | - | let | |
114 | - | if (isDefined( | |
115 | - | then | |
116 | - | else | |
115 | + | let U = V | |
116 | + | if (isDefined(P(N))) | |
117 | + | then Q(N) | |
118 | + | else U | |
117 | 119 | } | |
118 | - | else throw(("value type not supported for " + | |
120 | + | else throw(("value type not supported for " + N)) | |
119 | 121 | } | |
120 | 122 | ||
121 | 123 | ||
122 | - | func | |
123 | - | let | |
124 | - | if ($isInstanceOf( | |
124 | + | func W (X,Y) = { | |
125 | + | let V = X | |
126 | + | if ($isInstanceOf(V, "String")) | |
125 | 127 | then { | |
126 | - | let | |
127 | - | | |
128 | + | let X = V | |
129 | + | X | |
128 | 130 | } | |
129 | - | else throw( | |
131 | + | else throw(Y) | |
130 | 132 | } | |
131 | 133 | ||
132 | 134 | ||
133 | - | func | |
134 | - | let | |
135 | - | if ($isInstanceOf( | |
135 | + | func Z (X,Y) = { | |
136 | + | let V = X | |
137 | + | if ($isInstanceOf(V, "Int")) | |
136 | 138 | then { | |
137 | - | let | |
138 | - | | |
139 | + | let X = V | |
140 | + | X | |
139 | 141 | } | |
140 | - | else throw( | |
142 | + | else throw(Y) | |
141 | 143 | } | |
142 | 144 | ||
143 | 145 | ||
144 | - | func | |
145 | - | let | |
146 | - | if ($isInstanceOf( | |
146 | + | func aa (X,Y) = { | |
147 | + | let V = X | |
148 | + | if ($isInstanceOf(V, "Boolean")) | |
147 | 149 | then { | |
148 | - | let | |
149 | - | | |
150 | + | let X = V | |
151 | + | X | |
150 | 152 | } | |
151 | - | else throw( | |
153 | + | else throw(Y) | |
152 | 154 | } | |
153 | 155 | ||
154 | 156 | ||
155 | - | func | |
156 | - | then throw(((("writing negative value " + toString( | |
157 | - | else IntegerEntry( | |
157 | + | func ab (N,ac) = if ((0 > ac)) | |
158 | + | then throw(((("writing negative value " + toString(ac)) + " for key ") + N)) | |
159 | + | else IntegerEntry(N, ac) | |
158 | 160 | ||
159 | 161 | ||
160 | - | func | |
161 | - | then throw(("writing an empty string " + | |
162 | - | else StringEntry( | |
162 | + | func ad (N,ac) = if ((" " == ac)) | |
163 | + | then throw(("writing an empty string " + ac)) | |
164 | + | else StringEntry(N, ac) | |
163 | 165 | ||
164 | 166 | ||
165 | - | func | |
166 | - | then throw( | |
167 | + | func ae (af,Y) = if (af) | |
168 | + | then throw(Y) | |
167 | 169 | else true | |
168 | 170 | ||
169 | 171 | ||
170 | - | func | |
171 | - | let | |
172 | - | if ($isInstanceOf( | |
172 | + | func ag (N,ah) = { | |
173 | + | let V = ah | |
174 | + | if ($isInstanceOf(V, "Int")) | |
173 | 175 | then { | |
174 | - | let | |
175 | - | let | |
176 | - | | |
176 | + | let ah = V | |
177 | + | let ai = makeString(["%d", toString(ah)], a) | |
178 | + | ad(N, ai) | |
177 | 179 | } | |
178 | - | else if ($isInstanceOf( | |
180 | + | else if ($isInstanceOf(V, "String")) | |
179 | 181 | then { | |
180 | - | let | |
181 | - | let | |
182 | - | | |
182 | + | let ah = V | |
183 | + | let ai = makeString(["%s", ah], a) | |
184 | + | ad(N, ai) | |
183 | 185 | } | |
184 | - | else if ($isInstanceOf( | |
186 | + | else if ($isInstanceOf(V, "Boolean")) | |
185 | 187 | then { | |
186 | - | let | |
187 | - | let | |
188 | - | | |
188 | + | let ah = V | |
189 | + | let ai = makeString(["%b", toString(ah)], a) | |
190 | + | ad(N, ai) | |
189 | 191 | } | |
190 | 192 | else throw("type not supported") | |
191 | 193 | } | |
192 | 194 | ||
193 | 195 | ||
194 | - | func | |
195 | - | let | |
196 | - | if (( | |
196 | + | func aj (N) = { | |
197 | + | let ak = W(O(N), ("entry not found for " + N)) | |
198 | + | if ((ak == ak)) | |
197 | 199 | then { | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | then | |
203 | - | else if (( | |
204 | - | then parseIntValue( | |
205 | - | else if (( | |
206 | - | then fromBase58String( | |
207 | - | else throw(("could not parse registry value for " + | |
208 | - | | |
200 | + | let al = split(ak, a) | |
201 | + | let am = takeRight(al[0], 1) | |
202 | + | let an = al[(size(al) - 1)] | |
203 | + | let ah = if ((am == "s")) | |
204 | + | then an | |
205 | + | else if ((am == "d")) | |
206 | + | then parseIntValue(an) | |
207 | + | else if ((am == "b")) | |
208 | + | then fromBase58String(an) | |
209 | + | else throw(("could not parse registry value for " + N)) | |
210 | + | ah | |
209 | 211 | } | |
210 | 212 | else throw("Strict value is not equal to itself.") | |
211 | 213 | } | |
212 | 214 | ||
213 | 215 | ||
214 | - | func | |
215 | - | let | |
216 | - | if (( | |
217 | - | then ( | |
216 | + | func ao (ap) = { | |
217 | + | let aq = ae((0 >= ap), "invalid locking days!") | |
218 | + | if ((aq == aq)) | |
219 | + | then (ap * f) | |
218 | 220 | else throw("Strict value is not equal to itself.") | |
219 | 221 | } | |
220 | 222 | ||
221 | 223 | ||
222 | - | func | |
223 | - | then | |
224 | - | else throw(("entry already initialized: " + | |
224 | + | func ar (N,ac) = if (!(isDefined(O(N)))) | |
225 | + | then ad(N, ac) | |
226 | + | else throw(("entry already initialized: " + N)) | |
225 | 227 | ||
226 | 228 | ||
227 | - | func | |
228 | - | then | |
229 | - | else throw((" entry already initialized: " + | |
229 | + | func as (N,ac) = if (!(isDefined(O(N)))) | |
230 | + | then ab(N, ac) | |
231 | + | else throw((" entry already initialized: " + N)) | |
230 | 232 | ||
231 | 233 | ||
232 | - | func | |
233 | - | let | |
234 | - | let | |
235 | - | if ($isInstanceOf( | |
234 | + | func at (au) = { | |
235 | + | let av = { | |
236 | + | let V = aj(n) | |
237 | + | if ($isInstanceOf(V, "String")) | |
236 | 238 | then { | |
237 | - | let | |
238 | - | | |
239 | + | let X = V | |
240 | + | X | |
239 | 241 | } | |
240 | 242 | else "failed to get manager" | |
241 | 243 | } | |
242 | - | if (( | |
243 | - | then | |
244 | + | if ((av == av)) | |
245 | + | then ae((toBase58String(au.caller.bytes) != av), "address not authorized") | |
244 | 246 | else throw("Strict value is not equal to itself.") | |
245 | 247 | } | |
246 | 248 | ||
247 | 249 | ||
248 | - | func | |
249 | - | then -( | |
250 | - | else | |
250 | + | func aw (X) = if ((0 > X)) | |
251 | + | then -(X) | |
252 | + | else X | |
251 | 253 | ||
252 | 254 | ||
253 | - | func | |
254 | - | let | |
255 | - | if ($isInstanceOf( | |
255 | + | func ax (ay,az) = { | |
256 | + | let V = ay | |
257 | + | if ($isInstanceOf(V, "String")) | |
256 | 258 | then { | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
259 | + | let ay = V | |
260 | + | let aA = addressFromString(ay) | |
261 | + | let aB = aA | |
262 | + | if ($isInstanceOf(aB, "Address")) | |
261 | 263 | then { | |
262 | - | let | |
264 | + | let aA = aB | |
263 | 265 | true | |
264 | 266 | } | |
265 | 267 | else { | |
266 | - | let | |
267 | - | if ($isInstanceOf( | |
268 | + | let aC = az | |
269 | + | if ($isInstanceOf(aC, "String")) | |
268 | 270 | then { | |
269 | - | let | |
270 | - | throw( | |
271 | + | let aD = aC | |
272 | + | throw(aD) | |
271 | 273 | } | |
272 | 274 | else false | |
273 | 275 | } | |
274 | 276 | } | |
275 | - | else if ($isInstanceOf( | |
277 | + | else if ($isInstanceOf(V, "ByteVector")) | |
276 | 278 | then { | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | if ($isInstanceOf( | |
279 | + | let ay = V | |
280 | + | let aA = addressFromPublicKey(ay) | |
281 | + | let aB = aA | |
282 | + | if ($isInstanceOf(aB, "Address")) | |
281 | 283 | then { | |
282 | - | let | |
284 | + | let aA = aB | |
283 | 285 | true | |
284 | 286 | } | |
285 | 287 | else { | |
286 | - | let | |
287 | - | if ($isInstanceOf( | |
288 | + | let aC = az | |
289 | + | if ($isInstanceOf(aC, "String")) | |
288 | 290 | then { | |
289 | - | let | |
290 | - | throw( | |
291 | + | let aD = aC | |
292 | + | throw(aD) | |
291 | 293 | } | |
292 | 294 | else false | |
293 | 295 | } | |
294 | 296 | } | |
295 | 297 | else throw("invalid input type") | |
296 | 298 | } | |
297 | 299 | ||
298 | 300 | ||
299 | - | func | |
300 | - | let | |
301 | - | if ($isInstanceOf( | |
301 | + | func aE (aF,az) = { | |
302 | + | let V = assetInfo(fromBase58String(aF)) | |
303 | + | if ($isInstanceOf(V, "Asset")) | |
302 | 304 | then { | |
303 | - | let | |
305 | + | let aG = V | |
304 | 306 | true | |
305 | 307 | } | |
306 | 308 | else { | |
307 | - | let | |
308 | - | if ($isInstanceOf( | |
309 | + | let aB = az | |
310 | + | if ($isInstanceOf(aB, "String")) | |
309 | 311 | then { | |
310 | - | let | |
311 | - | throw( | |
312 | + | let aD = aB | |
313 | + | throw(aD) | |
312 | 314 | } | |
313 | 315 | else false | |
314 | 316 | } | |
315 | 317 | } | |
316 | 318 | ||
317 | 319 | ||
318 | - | func | |
319 | - | let | |
320 | - | let | |
321 | - | if ($isInstanceOf( | |
320 | + | func aH () = { | |
321 | + | let aI = { | |
322 | + | let V = aj(p) | |
323 | + | if ($isInstanceOf(V, "Int")) | |
322 | 324 | then { | |
323 | - | let | |
324 | - | | |
325 | + | let aJ = V | |
326 | + | aJ | |
325 | 327 | } | |
326 | 328 | else throw("circulation index not previously defined") | |
327 | 329 | } | |
328 | - | if (( | |
330 | + | if ((aI == aI)) | |
329 | 331 | then { | |
330 | - | let | |
331 | - | let | |
332 | - | if ($isInstanceOf( | |
332 | + | let aK = { | |
333 | + | let V = aj(m) | |
334 | + | if ($isInstanceOf(V, "String")) | |
333 | 335 | then { | |
334 | - | let | |
335 | - | | |
336 | + | let aJ = V | |
337 | + | aJ | |
336 | 338 | } | |
337 | 339 | else throw("asset id not previously defined") | |
338 | 340 | } | |
339 | - | if (( | |
341 | + | if ((aK == aK)) | |
340 | 342 | then { | |
341 | - | let | |
342 | - | let | |
343 | - | if ($isInstanceOf( | |
343 | + | let aL = { | |
344 | + | let V = assetInfo(fromBase58String(aK)) | |
345 | + | if ($isInstanceOf(V, "Asset")) | |
344 | 346 | then { | |
345 | - | let | |
346 | - | | |
347 | + | let aG = V | |
348 | + | aG.quantity | |
347 | 349 | } | |
348 | - | else throw(("asset not found for " + | |
350 | + | else throw(("asset not found for " + aK)) | |
349 | 351 | } | |
350 | - | let | |
351 | - | let | |
352 | - | then ( | |
353 | - | else | |
354 | - | let | |
355 | - | let | |
356 | - | if ($isInstanceOf( | |
352 | + | let aM = (aw((aL - i)) / i) | |
353 | + | let aN = if ((aM > aI)) | |
354 | + | then (aM + aI) | |
355 | + | else aI | |
356 | + | let aO = { | |
357 | + | let V = aj(l) | |
358 | + | if ($isInstanceOf(V, "Int")) | |
357 | 359 | then { | |
358 | - | let | |
359 | - | | |
360 | + | let aJ = V | |
361 | + | aJ | |
360 | 362 | } | |
361 | 363 | else throw("failed to get miniting rate") | |
362 | 364 | } | |
363 | - | if (( | |
364 | - | then $Tuple2( | |
365 | + | if ((aN == aI)) | |
366 | + | then $Tuple2(aO, nil) | |
365 | 367 | else { | |
366 | - | let | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
368 | + | let aP = { | |
369 | + | let V = aj(k) | |
370 | + | if ($isInstanceOf(V, "Int")) | |
369 | 371 | then { | |
370 | - | let | |
371 | - | | |
372 | + | let aJ = V | |
373 | + | aJ | |
372 | 374 | } | |
373 | 375 | else throw("failed to get percentage reduction factor") | |
374 | 376 | } | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | $Tuple2( | |
377 | + | let aQ = (aO - fraction(aO, aP, 100)) | |
378 | + | let aR = ag(l, aQ) | |
379 | + | let aS = ag(k, aP) | |
380 | + | let aT = ag(p, aN) | |
381 | + | $Tuple2(aQ, [aR, aS, aT]) | |
380 | 382 | } | |
381 | 383 | } | |
382 | 384 | else throw("Strict value is not equal to itself.") | |
383 | 385 | } | |
384 | 386 | else throw("Strict value is not equal to itself.") | |
385 | 387 | } | |
386 | 388 | ||
387 | 389 | ||
388 | - | func | |
389 | - | let | |
390 | - | let | |
391 | - | if ($isInstanceOf( | |
390 | + | func aU (aV,aW,aX,aY) = { | |
391 | + | let aZ = { | |
392 | + | let V = aj(I) | |
393 | + | if ($isInstanceOf(V, "Int")) | |
392 | 394 | then { | |
393 | - | let | |
394 | - | ( | |
395 | + | let aJ = V | |
396 | + | (aJ + aV) | |
395 | 397 | } | |
396 | 398 | else throw("failed to get global total waves") | |
397 | 399 | } | |
398 | - | if (( | |
400 | + | if ((aZ == aZ)) | |
399 | 401 | then { | |
400 | - | let | |
401 | - | let | |
402 | - | if ($isInstanceOf( | |
402 | + | let ba = { | |
403 | + | let V = aj(H) | |
404 | + | if ($isInstanceOf(V, "Int")) | |
403 | 405 | then { | |
404 | - | let | |
405 | - | ( | |
406 | + | let aJ = V | |
407 | + | (aJ + aW) | |
406 | 408 | } | |
407 | 409 | else throw("failed to get global total staw minted") | |
408 | 410 | } | |
409 | - | if (( | |
411 | + | if ((ba == ba)) | |
410 | 412 | then { | |
411 | - | let | |
412 | - | let | |
413 | - | if ($isInstanceOf( | |
413 | + | let bb = { | |
414 | + | let V = aj(J) | |
415 | + | if ($isInstanceOf(V, "Int")) | |
414 | 416 | then { | |
415 | - | let | |
416 | - | ( | |
417 | + | let aJ = V | |
418 | + | (aJ + aX) | |
417 | 419 | } | |
418 | 420 | else throw("failed to get global total stawpl") | |
419 | 421 | } | |
420 | - | if (( | |
422 | + | if ((bb == bb)) | |
421 | 423 | then { | |
422 | - | let | |
423 | - | let | |
424 | - | if ($isInstanceOf( | |
424 | + | let bc = { | |
425 | + | let V = aj(K) | |
426 | + | if ($isInstanceOf(V, "Int")) | |
425 | 427 | then { | |
426 | - | let | |
427 | - | ( | |
428 | + | let aJ = V | |
429 | + | (aJ + aY) | |
428 | 430 | } | |
429 | 431 | else throw("failed to get global index count") | |
430 | 432 | } | |
431 | - | if (( | |
432 | - | then [ | |
433 | + | if ((bc == bc)) | |
434 | + | then [ag(I, aZ), ag(H, ba), ag(J, bb), ag(K, bc)] | |
433 | 435 | else throw("Strict value is not equal to itself.") | |
434 | 436 | } | |
435 | 437 | else throw("Strict value is not equal to itself.") | |
436 | 438 | } | |
437 | 439 | else throw("Strict value is not equal to itself.") | |
438 | 440 | } | |
439 | 441 | else throw("Strict value is not equal to itself.") | |
440 | 442 | } | |
441 | 443 | ||
442 | 444 | ||
443 | - | func bc (bd,be,bf,bg,bh,aU,aV,bi,bj,bk,bl,bm,bn) = { | |
444 | - | let bo = makeString([be, bd, C], a) | |
445 | - | let bp = makeString([be, bd, w], a) | |
446 | - | let bq = makeString([be, bd, x], a) | |
447 | - | let br = makeString([be, bd, z], a) | |
448 | - | let bs = makeString([be, bd, A], a) | |
449 | - | let bt = makeString([be, bd, B], a) | |
450 | - | let bu = makeString([be, bd, D], a) | |
451 | - | let bv = makeString([be, bd, y], a) | |
452 | - | let bw = makeString([be, v], a) | |
453 | - | let bx = makeString([be, u], a) | |
454 | - | let by = makeString([be, bd, E], a) | |
455 | - | let bz = makeString([be, bd, F], a) | |
456 | - | let bA = makeString([be, bd, G], a) | |
457 | - | let bB = makeString(["%s", bd], a) | |
458 | - | let bC = makeString(["%d", toString(bf)], a) | |
459 | - | let bD = makeString(["%d", toString(bh)], a) | |
460 | - | let bE = makeString(["%d", toString(aU)], a) | |
445 | + | func bd (be,bf,bg,bh,bi,aV,aW,bj,bk,bl,bm,bn,bo) = { | |
446 | + | let bp = makeString([bf, be, C], a) | |
447 | + | let bq = makeString([bf, be, w], a) | |
448 | + | let br = makeString([bf, be, x], a) | |
449 | + | let bs = makeString([bf, be, z], a) | |
450 | + | let bt = makeString([bf, be, A], a) | |
451 | + | let bu = makeString([bf, be, B], a) | |
452 | + | let bv = makeString([bf, be, D], a) | |
453 | + | let bw = makeString([bf, be, y], a) | |
454 | + | let bx = makeString([bf, v], a) | |
455 | + | let by = makeString([bf, u], a) | |
456 | + | let bz = makeString([bf, be, E], a) | |
457 | + | let bA = makeString([bf, be, F], a) | |
458 | + | let bB = makeString([bf, be, G], a) | |
459 | + | let bC = makeString(["%s", be], a) | |
460 | + | let bD = makeString(["%d", toString(bg)], a) | |
461 | + | let bE = makeString(["%d", toString(bi)], a) | |
461 | 462 | let bF = makeString(["%d", toString(aV)], a) | |
462 | - | let bG = makeString(["%d", toString( | |
463 | + | let bG = makeString(["%d", toString(aW)], a) | |
463 | 464 | let bH = makeString(["%d", toString(bj)], a) | |
464 | - | let bI = makeString(["% | |
465 | - | let bJ = makeString(["% | |
465 | + | let bI = makeString(["%d", toString(bk)], a) | |
466 | + | let bJ = makeString(["%b", bl], a) | |
466 | 467 | let bK = makeString(["%d", toString(bm)], a) | |
467 | - | let bL = makeString(["%d", toString(bg)], a) | |
468 | - | let bM = makeString(["%d", toString(0)], a) | |
469 | - | let bN = makeString(["%s", bn], a) | |
470 | - | [aq(bo, bB), aq(bq, bD), ac(bx, bK), ac(bw, bJ), aq(bp, bC), aq(by, bL), aq(br, bE), aq(bs, bF), ac(bt, bG), ac(bz, bM), aq(bu, bH), aq(bv, bI), ac(bA, bN)] | |
468 | + | let bL = makeString(["%d", toString(bn)], a) | |
469 | + | let bM = makeString(["%d", toString(bh)], a) | |
470 | + | let bN = makeString(["%d", toString(0)], a) | |
471 | + | let bO = makeString(["%s", bo], a) | |
472 | + | [ar(bp, bC), ar(br, bE), ad(by, bL), ad(bx, bK), ar(bq, bD), ar(bz, bM), ar(bs, bF), ar(bt, bG), ad(bu, bH), ad(bA, bN), ar(bv, bI), ar(bw, bJ), ad(bB, bO)] | |
471 | 473 | } | |
472 | 474 | ||
473 | 475 | ||
474 | - | func | |
475 | - | let | |
476 | - | let | |
477 | - | if ((size( | |
478 | - | then $Tuple2( | |
479 | - | else $Tuple2( | |
476 | + | func bP (h,bQ) = { | |
477 | + | let bR = aH() | |
478 | + | let bS = fraction(bQ, (f * bR._1), g(h)) | |
479 | + | if ((size(bR._2) == 0)) | |
480 | + | then $Tuple2(bS, nil) | |
481 | + | else $Tuple2(bS, bR._2) | |
480 | 482 | } | |
481 | 483 | ||
482 | 484 | ||
483 | - | func | |
484 | - | let | |
485 | - | fraction( | |
485 | + | func bT (h,bU) = { | |
486 | + | let bV = fraction(h, 15, 10) | |
487 | + | fraction(bU, ((h * bV) - h), f) | |
486 | 488 | } | |
487 | 489 | ||
488 | 490 | ||
489 | - | func | |
490 | - | let | |
491 | - | [ | |
491 | + | func bW (bX) = { | |
492 | + | let bY = Z(M(J), "could not get the running StawLP") | |
493 | + | [ab(J, (bY + bX))] | |
492 | 494 | } | |
493 | 495 | ||
494 | 496 | ||
495 | - | func | |
496 | - | let | |
497 | - | [ | |
497 | + | func bZ (bX) = { | |
498 | + | let bY = Z(M(J), "could not get the running StawLP") | |
499 | + | [ab(J, (bY - bX))] | |
498 | 500 | } | |
499 | 501 | ||
500 | 502 | ||
501 | - | func | |
502 | - | let | |
503 | - | [ | |
503 | + | func ca (bX) = { | |
504 | + | let cb = Z(M(I), "could not get total locked waves") | |
505 | + | [ab(I, (cb + bX))] | |
504 | 506 | } | |
505 | 507 | ||
506 | 508 | ||
507 | - | func | |
508 | - | let | |
509 | - | [ | |
509 | + | func cc (bX) = { | |
510 | + | let cb = Z(M(I), "could not get total locked waves") | |
511 | + | [ab(I, (cb - bX))] | |
510 | 512 | } | |
511 | 513 | ||
512 | 514 | ||
513 | - | func | |
514 | - | let | |
515 | - | let | |
516 | - | if ($isInstanceOf( | |
515 | + | func cd (ce) = { | |
516 | + | let cf = { | |
517 | + | let V = blockInfoByHeight(ce) | |
518 | + | if ($isInstanceOf(V, "BlockInfo")) | |
517 | 519 | then { | |
518 | - | let | |
519 | - | | |
520 | + | let cg = V | |
521 | + | cg.timestamp | |
520 | 522 | } | |
521 | 523 | else throw("counld get timestamp") | |
522 | 524 | } | |
523 | - | | |
525 | + | cf | |
524 | 526 | } | |
525 | 527 | ||
526 | 528 | ||
527 | - | @Callable( | |
528 | - | func getEmission (h, | |
529 | - | let | |
530 | - | if (( | |
531 | - | then $Tuple2(nil, | |
529 | + | @Callable(au) | |
530 | + | func getEmission (h,bU) = { | |
531 | + | let ch = at(au) | |
532 | + | if ((ch == ch)) | |
533 | + | then $Tuple2(nil, bT(h, bU)) | |
532 | 534 | else throw("Strict value is not equal to itself.") | |
533 | 535 | } | |
534 | 536 | ||
535 | 537 | ||
536 | 538 | ||
537 | - | @Callable( | |
538 | - | func init ( | |
539 | - | let | |
540 | - | then | |
539 | + | @Callable(au) | |
540 | + | func init (av,ci,aF,cj) = { | |
541 | + | let ck = if (isDefined(O(n))) | |
542 | + | then at(au) | |
541 | 543 | else true | |
542 | - | if (( | |
544 | + | if ((ck == ck)) | |
543 | 545 | then { | |
544 | - | let | |
545 | - | if (( | |
546 | + | let ch = ax(av, "invalid address") | |
547 | + | if ((ch == ch)) | |
546 | 548 | then { | |
547 | - | let | |
548 | - | if (( | |
549 | + | let cl = ax(ci, "invalid address") | |
550 | + | if ((cl == cl)) | |
549 | 551 | then { | |
550 | - | let | |
551 | - | if (( | |
552 | + | let cm = ax(cj, "invalid address") | |
553 | + | if ((cm == cm)) | |
552 | 554 | then { | |
553 | - | let | |
555 | + | let cn = if (aE(aF, "invalid asset")) | |
554 | 556 | then true | |
555 | 557 | else throw("invalid asset Id") | |
556 | - | if (( | |
558 | + | if ((cn == cn)) | |
557 | 559 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | [ | |
560 | + | let co = T(p, 0) | |
561 | + | let cp = T(k, 0) | |
562 | + | let cq = T(l, c) | |
563 | + | let cr = T(H, 0) | |
564 | + | let cs = T(J, 0) | |
565 | + | let ct = T(K, 0) | |
566 | + | let cu = T(I, 0) | |
567 | + | [ag(n, av), ag(o, ci), ag(m, aF), ag(q, cj), ag(p, co), ag(l, cq), ag(k, cp), ag(I, cu), ag(J, cs), ag(H, cr), ag(K, ct)] | |
566 | 568 | } | |
567 | 569 | else throw("Strict value is not equal to itself.") | |
568 | 570 | } | |
569 | 571 | else throw("Strict value is not equal to itself.") | |
570 | 572 | } | |
571 | 573 | else throw("Strict value is not equal to itself.") | |
572 | 574 | } | |
573 | 575 | else throw("Strict value is not equal to itself.") | |
574 | 576 | } | |
575 | 577 | else throw("Strict value is not equal to itself.") | |
576 | 578 | } | |
577 | 579 | ||
578 | 580 | ||
579 | 581 | ||
580 | - | @Callable( | |
581 | - | func modifyGlobalParams ( | |
582 | - | let | |
583 | - | if (( | |
582 | + | @Callable(au) | |
583 | + | func modifyGlobalParams (X) = { | |
584 | + | let ch = at(au) | |
585 | + | if ((ch == ch)) | |
584 | 586 | then { | |
585 | - | let | |
586 | - | let | |
587 | - | if (( | |
587 | + | let az = makeString(["got", "list size of", toString(size(X)), "but expected [global_key, value] pair"], " ") | |
588 | + | let cl = ae((size(X) != 2), az) | |
589 | + | if ((cl == cl)) | |
588 | 590 | then { | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | if ($isInstanceOf( | |
591 | + | let N = X[0] | |
592 | + | let cv = parseInt(X[1]) | |
593 | + | let V = cv | |
594 | + | if ($isInstanceOf(V, "Int")) | |
593 | 595 | then { | |
594 | - | let | |
595 | - | let | |
596 | - | if (( | |
596 | + | let al = V | |
597 | + | let cw = ae((O(N) == unit), (("key " + N) + " not recognized")) | |
598 | + | if ((cw == cw)) | |
597 | 599 | then { | |
598 | - | let | |
599 | - | let | |
600 | - | if ($isInstanceOf( | |
600 | + | let cx = { | |
601 | + | let aB = aj(N) | |
602 | + | if ($isInstanceOf(aB, "Int")) | |
601 | 603 | then { | |
602 | - | let | |
604 | + | let aJ = aB | |
603 | 605 | true | |
604 | 606 | } | |
605 | 607 | else throw("invalid key-value pair") | |
606 | 608 | } | |
607 | - | if (( | |
608 | - | then [ | |
609 | + | if ((cx == cx)) | |
610 | + | then [ag(N, al)] | |
609 | 611 | else throw("Strict value is not equal to itself.") | |
610 | 612 | } | |
611 | 613 | else throw("Strict value is not equal to itself.") | |
612 | 614 | } | |
613 | - | else if ($isInstanceOf( | |
615 | + | else if ($isInstanceOf(V, "Unit")) | |
614 | 616 | then { | |
615 | - | let | |
616 | - | let | |
617 | - | if (( | |
617 | + | let al = V | |
618 | + | let cw = ae((O(N) == unit), (("key " + N) + " not recognized")) | |
619 | + | if ((cw == cw)) | |
618 | 620 | then { | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | if ($isInstanceOf( | |
621 | + | let cy = X[1] | |
622 | + | let cz = aj(n) | |
623 | + | let cn = { | |
624 | + | let aB = cz | |
625 | + | if ($isInstanceOf(aB, "String")) | |
624 | 626 | then { | |
625 | - | let | |
626 | - | if ((size( | |
627 | - | then | |
628 | - | else | |
627 | + | let cA = aB | |
628 | + | if ((size(cA) == size(cy))) | |
629 | + | then ax(cy, "string type for value not supported") | |
630 | + | else aE(cy, "string type for value not supported") | |
629 | 631 | } | |
630 | 632 | else false | |
631 | 633 | } | |
632 | - | if (( | |
633 | - | then [ | |
634 | + | if ((cn == cn)) | |
635 | + | then [ag(N, cy)] | |
634 | 636 | else throw("Strict value is not equal to itself.") | |
635 | 637 | } | |
636 | 638 | else throw("Strict value is not equal to itself.") | |
637 | 639 | } | |
638 | - | else throw(("failed to modify " + | |
640 | + | else throw(("failed to modify " + X[0])) | |
639 | 641 | } | |
640 | 642 | else throw("Strict value is not equal to itself.") | |
641 | 643 | } | |
642 | 644 | else throw("Strict value is not equal to itself.") | |
643 | 645 | } | |
644 | 646 | ||
645 | 647 | ||
646 | 648 | ||
647 | - | @Callable( | |
649 | + | @Callable(au) | |
648 | 650 | func revokeLock () = { | |
649 | - | let | |
650 | - | if (( | |
651 | + | let ch = at(au) | |
652 | + | if ((ch == ch)) | |
651 | 653 | then nil | |
652 | 654 | else throw("Strict value is not equal to itself.") | |
653 | 655 | } | |
654 | 656 | ||
655 | 657 | ||
656 | 658 | ||
657 | - | @Callable(at) | |
658 | - | func claim (bd) = { | |
659 | - | let cA = toBase58String(at.caller.bytes) | |
660 | - | let cB = makeString([cA, bd, z], a) | |
661 | - | let cC = makeString([cA, bd, w], a) | |
662 | - | let cD = makeString([cA, bd, y], a) | |
663 | - | let cE = makeString([cA, bd, E], a) | |
664 | - | let cF = makeString([cA, bd, F], a) | |
665 | - | let cG = makeString([cA, bd, B], a) | |
666 | - | let cH = makeString([cA, bd, z], a) | |
667 | - | let cI = makeString([cA, v], a) | |
668 | - | let cJ = makeString([cA, bd, G], a) | |
669 | - | let cK = makeString([cA, bd, G], a) | |
670 | - | let cL = { | |
671 | - | let U = ai(I) | |
672 | - | if ($isInstanceOf(U, "Int")) | |
659 | + | @Callable(au) | |
660 | + | func claim (be) = { | |
661 | + | let cB = toBase58String(au.caller.bytes) | |
662 | + | let cC = makeString([cB, be, z], a) | |
663 | + | let cD = makeString([cB, be, w], a) | |
664 | + | let cE = makeString([cB, be, y], a) | |
665 | + | let cF = makeString([cB, be, E], a) | |
666 | + | let cG = makeString([cB, be, F], a) | |
667 | + | let cH = makeString([cB, be, B], a) | |
668 | + | let cI = makeString([cB, be, z], a) | |
669 | + | let cJ = makeString([cB, v], a) | |
670 | + | let cK = makeString([cB, be, G], a) | |
671 | + | let cL = makeString([cB, be, G], a) | |
672 | + | let cM = makeString([cB, be, L], a) | |
673 | + | let cN = { | |
674 | + | let V = aj(I) | |
675 | + | if ($isInstanceOf(V, "Int")) | |
673 | 676 | then { | |
674 | - | let | |
675 | - | | |
677 | + | let aJ = V | |
678 | + | aJ | |
676 | 679 | } | |
677 | 680 | else throw("failed to get global total waves") | |
678 | 681 | } | |
679 | - | if (( | |
682 | + | if ((cN == cN)) | |
680 | 683 | then { | |
681 | - | let | |
682 | - | let | |
683 | - | if ($isInstanceOf( | |
684 | + | let cO = { | |
685 | + | let V = aj(J) | |
686 | + | if ($isInstanceOf(V, "Int")) | |
684 | 687 | then { | |
685 | - | let | |
686 | - | | |
688 | + | let aJ = V | |
689 | + | aJ | |
687 | 690 | } | |
688 | 691 | else throw("failed to get global total waves") | |
689 | 692 | } | |
690 | - | if (( | |
693 | + | if ((cO == cO)) | |
691 | 694 | then { | |
692 | - | let | |
693 | - | let | |
694 | - | if ($isInstanceOf( | |
695 | + | let bl = { | |
696 | + | let V = aj(cE) | |
697 | + | if ($isInstanceOf(V, "ByteVector")) | |
695 | 698 | then { | |
696 | - | let | |
697 | - | | |
699 | + | let aJ = V | |
700 | + | aJ | |
698 | 701 | } | |
699 | 702 | else throw("failed to get lease id") | |
700 | 703 | } | |
701 | - | if (( | |
704 | + | if ((bl == bl)) | |
702 | 705 | then { | |
703 | - | let | |
704 | - | let | |
705 | - | if ($isInstanceOf( | |
706 | + | let cP = { | |
707 | + | let V = aj(cJ) | |
708 | + | if ($isInstanceOf(V, "Int")) | |
706 | 709 | then { | |
707 | - | let | |
708 | - | | |
710 | + | let aJ = V | |
711 | + | aJ | |
709 | 712 | } | |
710 | 713 | else throw("failed to get total waves locked by this address") | |
711 | 714 | } | |
712 | - | if (( | |
715 | + | if ((cP == cP)) | |
713 | 716 | then { | |
714 | - | let | |
715 | - | let | |
716 | - | if ($isInstanceOf( | |
717 | + | let aV = { | |
718 | + | let V = aj(cI) | |
719 | + | if ($isInstanceOf(V, "Int")) | |
717 | 720 | then { | |
718 | - | let | |
719 | - | | |
721 | + | let aJ = V | |
722 | + | aJ | |
720 | 723 | } | |
721 | 724 | else throw("failed to get total waves locked") | |
722 | 725 | } | |
723 | - | if (( | |
726 | + | if ((aV == aV)) | |
724 | 727 | then { | |
725 | - | let | |
726 | - | let | |
727 | - | if ($isInstanceOf( | |
728 | + | let cQ = { | |
729 | + | let V = aj(cG) | |
730 | + | if ($isInstanceOf(V, "Int")) | |
728 | 731 | then { | |
729 | - | let | |
730 | - | | |
732 | + | let aJ = V | |
733 | + | aJ | |
731 | 734 | } | |
732 | 735 | else throw("failed to get total waves claimed") | |
733 | 736 | } | |
734 | - | if (( | |
737 | + | if ((cQ == cQ)) | |
735 | 738 | then { | |
736 | - | let | |
737 | - | let | |
738 | - | if ($isInstanceOf( | |
739 | + | let bj = { | |
740 | + | let V = aj(cH) | |
741 | + | if ($isInstanceOf(V, "Int")) | |
739 | 742 | then { | |
740 | - | let | |
741 | - | | |
743 | + | let aJ = V | |
744 | + | aJ | |
742 | 745 | } | |
743 | 746 | else throw("failed to get stawPL") | |
744 | 747 | } | |
745 | - | if (( | |
748 | + | if ((bj == bj)) | |
746 | 749 | then { | |
747 | - | let | |
748 | - | let | |
749 | - | if ($isInstanceOf( | |
750 | + | let cR = { | |
751 | + | let V = aj(cF) | |
752 | + | if ($isInstanceOf(V, "Int")) | |
750 | 753 | then { | |
751 | - | let | |
752 | - | | |
754 | + | let aJ = V | |
755 | + | aJ | |
753 | 756 | } | |
754 | 757 | else throw("failed to get lock period timespam") | |
755 | 758 | } | |
756 | - | if (( | |
759 | + | if ((cR == cR)) | |
757 | 760 | then { | |
758 | - | let | |
759 | - | let | |
760 | - | if ($isInstanceOf( | |
761 | + | let cS = { | |
762 | + | let V = cd(height) | |
763 | + | if ($isInstanceOf(V, "Int")) | |
761 | 764 | then { | |
762 | - | let | |
763 | - | | |
765 | + | let aJ = V | |
766 | + | aJ | |
764 | 767 | } | |
765 | 768 | else throw("failed to get current timestamp") | |
766 | 769 | } | |
767 | - | if (( | |
770 | + | if ((cS == cS)) | |
768 | 771 | then { | |
769 | - | let | |
770 | - | let | |
771 | - | if ($isInstanceOf( | |
772 | + | let bU = { | |
773 | + | let V = aj(cC) | |
774 | + | if ($isInstanceOf(V, "Int")) | |
772 | 775 | then { | |
773 | - | let | |
774 | - | | |
776 | + | let aJ = V | |
777 | + | aJ | |
775 | 778 | } | |
776 | 779 | else throw("failed to get collateral") | |
777 | 780 | } | |
778 | - | if (( | |
781 | + | if ((bU == bU)) | |
779 | 782 | then { | |
780 | 783 | let h = { | |
781 | - | let | |
782 | - | if ($isInstanceOf( | |
784 | + | let V = aj(cD) | |
785 | + | if ($isInstanceOf(V, "Int")) | |
783 | 786 | then { | |
784 | - | let | |
785 | - | | |
787 | + | let aJ = V | |
788 | + | aJ | |
786 | 789 | } | |
787 | 790 | else throw("failed to get lockPeriod") | |
788 | 791 | } | |
789 | 792 | if ((h == h)) | |
790 | 793 | then { | |
791 | - | let | |
792 | - | let | |
793 | - | if ($isInstanceOf( | |
794 | + | let cT = { | |
795 | + | let V = aj(cK) | |
796 | + | if ($isInstanceOf(V, "String")) | |
794 | 797 | then { | |
795 | - | let | |
796 | - | | |
798 | + | let aJ = V | |
799 | + | aJ | |
797 | 800 | } | |
798 | 801 | else throw("failed to get lease state") | |
799 | 802 | } | |
800 | - | if (( | |
803 | + | if ((cT == cT)) | |
801 | 804 | then { | |
802 | - | let | |
803 | - | let | |
804 | - | if ($isInstanceOf( | |
805 | + | let bo = { | |
806 | + | let V = aj(cL) | |
807 | + | if ($isInstanceOf(V, "String")) | |
805 | 808 | then { | |
806 | - | let | |
807 | - | | |
809 | + | let aJ = V | |
810 | + | aJ | |
808 | 811 | } | |
809 | 812 | else throw("failed to get lease state for user") | |
810 | 813 | } | |
811 | - | if (( | |
814 | + | if ((bo == bo)) | |
812 | 815 | then { | |
813 | - | let cg = ad((cP > cQ), "lock period for this entry has not elapsed") | |
814 | - | if ((cg == cg)) | |
816 | + | let cU = { | |
817 | + | let V = O(cM) | |
818 | + | if ($isInstanceOf(V, "String")) | |
819 | + | then { | |
820 | + | let aJ = V | |
821 | + | let aB = aj(cM) | |
822 | + | if ($isInstanceOf(aB, "Int")) | |
823 | + | then { | |
824 | + | let cV = aB | |
825 | + | cV | |
826 | + | } | |
827 | + | else 0 | |
828 | + | } | |
829 | + | else 0 | |
830 | + | } | |
831 | + | if ((cU == cU)) | |
815 | 832 | then { | |
816 | - | let cS = if ((cR == "leased")) | |
817 | - | then $Tuple2(LeaseCancel(bk), ac(cJ, "cancelled")) | |
818 | - | else $Tuple2(ac(cJ, "cancelled"), ac(cJ, "cancelled")) | |
819 | - | if ((cS == cS)) | |
833 | + | let ch = ae((cR > cS), "lock period for this entry has not elapsed") | |
834 | + | if ((ch == ch)) | |
820 | 835 | then { | |
821 | - | let ck = ad(if ((0 == aU)) | |
836 | + | let cW = if ((cT == "leased")) | |
837 | + | then $Tuple2(LeaseCancel(bl), ad(cK, "cancelled")) | |
838 | + | else $Tuple2(ad(cK, "cancelled"), ad(cK, "cancelled")) | |
839 | + | let cl = ae(if ((0 == aV)) | |
822 | 840 | then true | |
823 | - | else (0 == | |
824 | - | if (( | |
841 | + | else (0 == bj), "all claims exhausted for this trx") | |
842 | + | if ((cl == cl)) | |
825 | 843 | then { | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | if (( | |
844 | + | let cX = (bT(h, bU) * f) | |
845 | + | let cY = { | |
846 | + | let cZ = (cS - cR) | |
847 | + | let da = (cZ / f) | |
848 | + | if ((cU == 0)) | |
831 | 849 | then throw("less than 24hrs before first claim") | |
832 | - | else if (((cV % f) != 0)) | |
833 | - | then throw("already claimed or less than 24hrs before next claim") | |
834 | - | else if ((cW > h)) | |
835 | - | then throw("all claims exhausted") | |
836 | - | else { | |
837 | - | let cX = (cW * cT) | |
838 | - | let cY = ad((cX == cO), "can only claim once in 24hrs") | |
839 | - | if ((cY == cY)) | |
840 | - | then { | |
841 | - | let cZ = ad(((cX + cO) > aU), "all claims exhausted") | |
842 | - | if ((cZ == cZ)) | |
843 | - | then { | |
844 | - | let da = if ((cW == 1)) | |
845 | - | then cX | |
846 | - | else (cX - cO) | |
847 | - | let db = cX | |
848 | - | let dc = if ((cW == 1)) | |
849 | - | then (aU - cX) | |
850 | - | else (aU - (cX - cO)) | |
851 | - | let dd = if ((cW == 1)) | |
852 | - | then (bi - cX) | |
853 | - | else (bi - (cX - cO)) | |
854 | - | let de = (cL - dc) | |
855 | - | let df = (cM - dd) | |
856 | - | let dg = (cN - da) | |
857 | - | let bE = makeString(["%d", toString(dc)], a) | |
858 | - | let bG = makeString(["%d", toString(dd)], a) | |
859 | - | let bM = makeString(["%d", toString(db)], a) | |
860 | - | let dh = makeString(["%d", toString(dg)], a) | |
861 | - | [cS._1, cS._2, ac(cH, bE), ac(cG, bG), ac(cF, bM), ac(cI, dh), af(I, de), af(J, df), ScriptTransfer(Address(at.caller.bytes), da, unit)] | |
862 | - | } | |
863 | - | else throw("Strict value is not equal to itself.") | |
864 | - | } | |
865 | - | else throw("Strict value is not equal to itself.") | |
866 | - | } | |
850 | + | else if ((cU >= da)) | |
851 | + | then throw("24hrs or less before next claim") | |
852 | + | else { | |
853 | + | let db = (cU * cX) | |
854 | + | let dc = ae((db == cQ), "can only claim once in 24hrs") | |
855 | + | if ((dc == dc)) | |
856 | + | then { | |
857 | + | let dd = ae(((db + cQ) > aV), "all claims exhausted") | |
858 | + | if ((dd == dd)) | |
859 | + | then { | |
860 | + | let de = if ((cU == 1)) | |
861 | + | then db | |
862 | + | else (db - cQ) | |
863 | + | let df = db | |
864 | + | let dg = if ((cU == 1)) | |
865 | + | then (aV - db) | |
866 | + | else (aV - (db - cQ)) | |
867 | + | let dh = if ((cU == 1)) | |
868 | + | then (bj - db) | |
869 | + | else (bj - (db - cQ)) | |
870 | + | let di = (cN - dg) | |
871 | + | let dj = (cO - dh) | |
872 | + | let dk = (cP - de) | |
873 | + | let bF = makeString(["%d", toString(dg)], a) | |
874 | + | let bH = makeString(["%d", toString(dh)], a) | |
875 | + | let bN = makeString(["%d", toString(df)], a) | |
876 | + | let dl = makeString(["%d", toString(dk)], a) | |
877 | + | let dm = makeString(["%d", toString(cU)], a) | |
878 | + | [cW._1, cW._2, ad(cI, bF), ad(cH, bH), ad(cG, bN), ad(cJ, dl), ad(cM, dm), ag(I, di), ag(J, dj), ScriptTransfer(Address(au.caller.bytes), de, unit)] | |
879 | + | } | |
880 | + | else throw("Strict value is not equal to itself.") | |
881 | + | } | |
882 | + | else throw("Strict value is not equal to itself.") | |
883 | + | } | |
867 | 884 | } | |
868 | - | if (( | |
869 | - | then | |
885 | + | if ((cY == cY)) | |
886 | + | then cY | |
870 | 887 | else throw("Strict value is not equal to itself.") | |
871 | 888 | } | |
872 | 889 | else throw("Strict value is not equal to itself.") | |
873 | 890 | } | |
874 | 891 | else throw("Strict value is not equal to itself.") | |
875 | 892 | } | |
876 | 893 | else throw("Strict value is not equal to itself.") | |
877 | 894 | } | |
878 | 895 | else throw("Strict value is not equal to itself.") | |
879 | 896 | } | |
880 | 897 | else throw("Strict value is not equal to itself.") | |
881 | 898 | } | |
882 | 899 | else throw("Strict value is not equal to itself.") | |
883 | 900 | } | |
884 | 901 | else throw("Strict value is not equal to itself.") | |
885 | 902 | } | |
886 | 903 | else throw("Strict value is not equal to itself.") | |
887 | 904 | } | |
888 | 905 | else throw("Strict value is not equal to itself.") | |
889 | 906 | } | |
890 | 907 | else throw("Strict value is not equal to itself.") | |
891 | 908 | } | |
892 | 909 | else throw("Strict value is not equal to itself.") | |
893 | 910 | } | |
894 | 911 | else throw("Strict value is not equal to itself.") | |
895 | 912 | } | |
896 | 913 | else throw("Strict value is not equal to itself.") | |
897 | 914 | } | |
898 | 915 | else throw("Strict value is not equal to itself.") | |
899 | 916 | } | |
900 | 917 | else throw("Strict value is not equal to itself.") | |
901 | 918 | } | |
902 | 919 | else throw("Strict value is not equal to itself.") | |
903 | 920 | } | |
904 | 921 | ||
905 | 922 | ||
906 | 923 | ||
907 | - | @Callable( | |
924 | + | @Callable(au) | |
908 | 925 | func mintStaw (h) = { | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | if (( | |
926 | + | let cB = toBase58String(au.caller.bytes) | |
927 | + | let dn = toBase58String(au.transactionId) | |
928 | + | let ch = ae((1 != size(au.payments)), "no payments attached") | |
929 | + | if ((ch == ch)) | |
913 | 930 | then { | |
914 | - | let | |
931 | + | let cl = if (isDefined(au.payments[0].assetId)) | |
915 | 932 | then throw("only waves supported") | |
916 | 933 | else true | |
917 | - | if (( | |
934 | + | if ((cl == cl)) | |
918 | 935 | then { | |
919 | - | let | |
920 | - | let | |
936 | + | let do = au.payments[0].amount | |
937 | + | let cm = if (if ((d > do)) | |
921 | 938 | then true | |
922 | - | else ( | |
939 | + | else (do > e)) | |
923 | 940 | then throw("lock amount out of range, minimum: 1 waves, maximum: 1000 waves") | |
924 | 941 | else true | |
925 | - | if (( | |
942 | + | if ((cm == cm)) | |
926 | 943 | then { | |
927 | - | let | |
944 | + | let cn = if ((b > h)) | |
928 | 945 | then throw("minimum of 14 days lock period") | |
929 | 946 | else true | |
930 | - | if (( | |
947 | + | if ((cn == cn)) | |
931 | 948 | then { | |
932 | - | let | |
933 | - | let | |
934 | - | let | |
935 | - | let | |
936 | - | let | |
937 | - | if (( | |
949 | + | let dp = bP(h, do) | |
950 | + | let aX = do | |
951 | + | let dq = fraction(dp._1, 10, 100) | |
952 | + | let dr = (dp._1 - dq) | |
953 | + | let ds = (cd(height) + ao(h)) | |
954 | + | if ((ds == ds)) | |
938 | 955 | then { | |
939 | - | let | |
940 | - | let | |
941 | - | if ($isInstanceOf( | |
956 | + | let dt = { | |
957 | + | let V = aj(K) | |
958 | + | if ($isInstanceOf(V, "Int")) | |
942 | 959 | then { | |
943 | - | let | |
944 | - | ( | |
960 | + | let aJ = V | |
961 | + | (aJ + 1) | |
945 | 962 | } | |
946 | 963 | else throw("failed to get current global index count") | |
947 | 964 | } | |
948 | - | if (( | |
965 | + | if ((dt == dt)) | |
949 | 966 | then { | |
950 | - | let | |
951 | - | let | |
952 | - | if ($isInstanceOf( | |
967 | + | let du = { | |
968 | + | let V = aj(o) | |
969 | + | if ($isInstanceOf(V, "String")) | |
953 | 970 | then { | |
954 | - | let | |
955 | - | Address(fromBase58String( | |
971 | + | let aJ = V | |
972 | + | Address(fromBase58String(aJ)) | |
956 | 973 | } | |
957 | 974 | else throw("failed to get dfx address") | |
958 | 975 | } | |
959 | - | if (( | |
976 | + | if ((du == du)) | |
960 | 977 | then { | |
961 | - | let | |
962 | - | let | |
963 | - | if ($isInstanceOf( | |
978 | + | let aK = { | |
979 | + | let V = aj(m) | |
980 | + | if ($isInstanceOf(V, "String")) | |
964 | 981 | then { | |
965 | - | let | |
966 | - | fromBase58String( | |
982 | + | let aJ = V | |
983 | + | fromBase58String(aJ) | |
967 | 984 | } | |
968 | 985 | else throw("failed to get asset id") | |
969 | 986 | } | |
970 | - | if (( | |
987 | + | if ((aK == aK)) | |
971 | 988 | then { | |
972 | - | let | |
973 | - | let | |
974 | - | if ($isInstanceOf( | |
989 | + | let dv = { | |
990 | + | let V = aj(q) | |
991 | + | if ($isInstanceOf(V, "String")) | |
975 | 992 | then { | |
976 | - | let | |
977 | - | Address(fromBase58String( | |
993 | + | let aJ = V | |
994 | + | Address(fromBase58String(aJ)) | |
978 | 995 | } | |
979 | 996 | else throw("failed to get lease node address") | |
980 | 997 | } | |
981 | - | if (( | |
998 | + | if ((dv == dv)) | |
982 | 999 | then { | |
983 | - | let | |
984 | - | let | |
985 | - | let | |
986 | - | let | |
987 | - | if ($isInstanceOf( | |
1000 | + | let dw = makeString([cB, u], a) | |
1001 | + | let dx = makeString([cB, v], a) | |
1002 | + | let dy = { | |
1003 | + | let V = O(dw) | |
1004 | + | if ($isInstanceOf(V, "String")) | |
988 | 1005 | then { | |
989 | - | let | |
990 | - | let | |
991 | - | if ($isInstanceOf( | |
1006 | + | let al = V | |
1007 | + | let aB = aj(dw) | |
1008 | + | if ($isInstanceOf(aB, "Int")) | |
992 | 1009 | then { | |
993 | - | let | |
994 | - | ( | |
1010 | + | let aJ = aB | |
1011 | + | (aJ + 1) | |
995 | 1012 | } | |
996 | 1013 | else 0 | |
997 | 1014 | } | |
998 | 1015 | else 0 | |
999 | 1016 | } | |
1000 | - | if (( | |
1017 | + | if ((dy == dy)) | |
1001 | 1018 | then { | |
1002 | - | let | |
1003 | - | let | |
1004 | - | if ($isInstanceOf( | |
1019 | + | let dz = { | |
1020 | + | let V = O(dx) | |
1021 | + | if ($isInstanceOf(V, "String")) | |
1005 | 1022 | then { | |
1006 | - | let | |
1007 | - | let | |
1008 | - | if ($isInstanceOf( | |
1023 | + | let al = V | |
1024 | + | let aB = aj(dx) | |
1025 | + | if ($isInstanceOf(aB, "Int")) | |
1009 | 1026 | then { | |
1010 | - | let | |
1011 | - | ( | |
1027 | + | let aJ = aB | |
1028 | + | (aJ + do) | |
1012 | 1029 | } | |
1013 | - | else | |
1030 | + | else do | |
1014 | 1031 | } | |
1015 | - | else | |
1032 | + | else do | |
1016 | 1033 | } | |
1017 | - | if (( | |
1034 | + | if ((dz == dz)) | |
1018 | 1035 | then { | |
1019 | - | let | |
1020 | - | let | |
1021 | - | ((([ | |
1036 | + | let dA = Lease(dv, do) | |
1037 | + | let dB = toBase58String(calculateLeaseId(dA)) | |
1038 | + | ((([dA, ScriptTransfer(du, dq, aK), ScriptTransfer(Address(au.caller.bytes), dr, aK)] ++ bd(dn, cB, h, ds, dt, do, dr, aX, height, dB, dz, dy, "leased")) ++ aU(do, dp._1, aX, dt)) ++ dp._2) | |
1022 | 1039 | } | |
1023 | 1040 | else throw("Strict value is not equal to itself.") | |
1024 | 1041 | } | |
1025 | 1042 | else throw("Strict value is not equal to itself.") | |
1026 | 1043 | } | |
1027 | 1044 | else throw("Strict value is not equal to itself.") | |
1028 | 1045 | } | |
1029 | 1046 | else throw("Strict value is not equal to itself.") | |
1030 | 1047 | } | |
1031 | 1048 | else throw("Strict value is not equal to itself.") | |
1032 | 1049 | } | |
1033 | 1050 | else throw("Strict value is not equal to itself.") | |
1034 | 1051 | } | |
1035 | 1052 | else throw("Strict value is not equal to itself.") | |
1036 | 1053 | } | |
1037 | 1054 | else throw("Strict value is not equal to itself.") | |
1038 | 1055 | } | |
1039 | 1056 | else throw("Strict value is not equal to itself.") | |
1040 | 1057 | } | |
1041 | 1058 | else throw("Strict value is not equal to itself.") | |
1042 | 1059 | } | |
1043 | 1060 | else throw("Strict value is not equal to itself.") | |
1044 | 1061 | } | |
1045 | 1062 | ||
1046 | 1063 |
github/deemru/w8io/169f3d6 475.98 ms ◑