tx · 249zk6hPajqGoYiQbEsDaQaUu7P3iqTLugUMD9CeqYqb 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje: -0.02700000 Waves 2022.11.30 15:11 [2339818] smart account 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje > SELF 0.00000000 Waves
{ "type": 13, "id": "249zk6hPajqGoYiQbEsDaQaUu7P3iqTLugUMD9CeqYqb", "fee": 2700000, "feeAssetId": null, "timestamp": 1669810269349, "version": 1, "sender": "3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje", "senderPublicKey": "8JB75GXEKqxmpXc6KVtT9UNqJ3BBSUZDodYD4DU7CUUB", "proofs": [ "cZ8uqtRENNQQ7KncRm4dE6GDgKyKzbkQdm8sFtK917gCWrYnGxBWTz1ZQdrteACv8agjhxJW71oj71cUtzBDAQf" ], "script": "base64:AAIFAAAAAAAAD10IAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmljZUFzc2V0TXVsdC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2VyAwkAAAAAAAACBQAAAAJjWAUAAAACY1gEAAAAAmNZAwkAAAAAAAACCAUAAAACY2oAAAAPY2FsbGVyUHVibGljS2V5CQEAAAAFdmFsdWUAAAABBQAAAAJjVwYJAAACAAAAAQIAAAAbWW91IGFyZSBub3QgcGVuZGluZyBtYW5hZ2VyAwkAAAAAAAACBQAAAAJjWQUAAAACY1kJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAAmFCAAAAAAkAAlgAAAABCQEAAAAFdmFsdWUAAAABBQAAAAJjVwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAACYUMAAAAABQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACY1oBAAAAAmRhAAAAAAQAAAACZGIEAAAAAmNmCQEAAAACY2UAAAAAAwkAAAEAAAACBQAAAAJjZgIAAAAKQnl0ZVZlY3RvcgQAAAACY2wFAAAAAmNmBQAAAAJjbAMJAAABAAAAAgUAAAACY2YCAAAABFVuaXQIBQAAAAJjWgAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAmNaAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACY1oAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJkYigvVHc=", "chainId": 84, "height": 2339818, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6oMJyRJo7UsamLpt6rpiKxJnr69ecHkmka2zy44q453x Next: 6SWYDCccc9xoSNsEnhk9VzCL77LcF3M4mxoxRMFrmyxw Diff:
Old | New | Differences | |
---|---|---|---|
166 | 166 | let aW = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN)) | |
167 | 167 | let aX = ((X + aP[aL]) - aR) | |
168 | 168 | let aY = ((Y + aP[aM]) + aW) | |
169 | - | if ((0 > aT)) | |
170 | - | then f(makeString(["invalid math", toString(W), toString(aP[aK]), toString(aT), toString(aP[aJ])], " ")) | |
169 | + | let aZ = if ((0 > aT)) | |
170 | + | then { | |
171 | + | let ba = (aS - aX) | |
172 | + | StringEntry(b, aa(aS, ba, aX, aY, aQ)) | |
173 | + | } | |
171 | 174 | else StringEntry(b, aa(aS, aT, aX, aY, aQ)) | |
175 | + | aZ | |
172 | 176 | } | |
173 | 177 | ||
174 | 178 | ||
175 | - | func | |
179 | + | func bb (af,i,ac,bc) = StringEntry(ah("invest", af, toBase58String(bc)), ab(i, ac)) | |
176 | 180 | ||
177 | 181 | ||
178 | - | func | |
182 | + | func bd (af,i,ac,bc) = StringEntry(ah("claim", af, toBase58String(bc)), ab(i, ac)) | |
179 | 183 | ||
180 | 184 | ||
181 | - | func | |
185 | + | func be (bf,af,bc) = { | |
182 | 186 | let aU = aD() | |
183 | 187 | let F = parseIntValue(aU[t]) | |
184 | 188 | let G = parseIntValue(aU[u]) | |
185 | - | let | |
189 | + | let bg = (F + G) | |
186 | 190 | let k = parseIntValue(aU[v]) | |
187 | 191 | let H = parseIntValue(aU[w]) | |
188 | 192 | let I = aU[x] | |
189 | - | let | |
193 | + | let bh = fromBase58String(I) | |
190 | 194 | let J = parseIntValue(aU[y]) | |
191 | 195 | let K = aU[z] | |
192 | - | let | |
196 | + | let bi = fromBase58String(K) | |
193 | 197 | let L = parseIntValue(aU[A]) | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
198 | + | let bj = toString(af) | |
199 | + | let bk = aI(bj) | |
200 | + | let bl = parseIntValue(bk[P]) | |
201 | + | let bm = parseIntValue(bk[T]) | |
202 | + | let bn = if ((F >= bm)) | |
199 | 203 | then F | |
200 | - | else | |
201 | - | let | |
202 | - | then | |
204 | + | else bm | |
205 | + | let bo = if ((height > bg)) | |
206 | + | then bg | |
203 | 207 | else if ((F > height)) | |
204 | 208 | then F | |
205 | 209 | else height | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | let | |
212 | - | then | |
210 | + | let bp = (bo - bn) | |
211 | + | let bq = fraction(bl, bp, G) | |
212 | + | let br = h(bq, L, k, H, J) | |
213 | + | let bs = (bf == K) | |
214 | + | let bt = valueOrElse(getBoolean(ak()), false) | |
215 | + | let bu = [if (!(if (bs) | |
216 | + | then bt | |
213 | 217 | else false)) | |
214 | 218 | then true | |
215 | 219 | else throw("USDN claim is disabled")] | |
216 | - | if (( | |
217 | - | then if (( | |
218 | - | then $Tuple6([0, -( | |
219 | - | else if (( | |
220 | - | then $Tuple6([0, -( | |
221 | - | else throw(("unsupported assetId: " + | |
220 | + | if ((bu == bu)) | |
221 | + | then if ((bf == K)) | |
222 | + | then $Tuple6([0, -(bq), bq, 0], bq, bi, bk, bo, [bq, br]) | |
223 | + | else if ((bf == I)) | |
224 | + | then $Tuple6([0, -(bq), 0, br], br, bh, bk, bo, [bq, br]) | |
225 | + | else throw(("unsupported assetId: " + bf)) | |
222 | 226 | else throw("Strict value is not equal to itself.") | |
223 | 227 | } | |
224 | 228 | ||
225 | 229 | ||
226 | - | func | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
230 | + | func bv (K,bj,bw,bx) = { | |
231 | + | let by = value(getInteger(as(K))) | |
232 | + | let bz = value(getInteger(au(K))) | |
233 | + | let bA = value(getInteger(am())) | |
234 | + | let bB = valueOrElse(getInteger(an()), 0) | |
235 | + | let bC = isDefined(getInteger(aq(0))) | |
236 | + | let bD = if ((bB > 0)) | |
233 | 237 | then { | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
238 | + | let bE = value(getInteger(ao(bB))) | |
239 | + | let bF = value(getInteger(aq(bB))) | |
240 | + | let bG = if ((height > bF)) | |
237 | 241 | then { | |
238 | - | let | |
239 | - | let | |
242 | + | let bH = (bB + 1) | |
243 | + | let bI = if ((height > (bF + bA))) | |
240 | 244 | then { | |
241 | - | let | |
242 | - | if (( | |
243 | - | then ((height - | |
244 | - | else (height - | |
245 | + | let bJ = ((height - bF) % bA) | |
246 | + | if ((bJ == 0)) | |
247 | + | then ((height - bA) + 1) | |
248 | + | else (height - bJ) | |
245 | 249 | } | |
246 | - | else ( | |
247 | - | let | |
248 | - | $Tuple3( | |
250 | + | else (bF + 1) | |
251 | + | let bK = ((bI + bA) - 1) | |
252 | + | $Tuple3(bH, bI, bK) | |
249 | 253 | } | |
250 | - | else $Tuple3( | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | $Tuple3( | |
254 | + | else $Tuple3(bB, bE, bF) | |
255 | + | let bH = bG._1 | |
256 | + | let bI = bG._2 | |
257 | + | let bK = bG._3 | |
258 | + | $Tuple3(bH, bI, bK) | |
255 | 259 | } | |
256 | - | else if ( | |
260 | + | else if (bC) | |
257 | 261 | then { | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
262 | + | let bL = value(getInteger(ao(0))) | |
263 | + | let bM = value(getInteger(aq(0))) | |
264 | + | let bN = if ((height > bM)) | |
261 | 265 | then { | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | $Tuple3( | |
266 | + | let bH = (bB + 1) | |
267 | + | let bI = (bM + 1) | |
268 | + | let bK = ((bI + bA) - 1) | |
269 | + | $Tuple3(bH, bI, bK) | |
266 | 270 | } | |
267 | - | else $Tuple3( | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | $Tuple3( | |
271 | + | else $Tuple3(bB, bL, bM) | |
272 | + | let bH = bN._1 | |
273 | + | let bI = bN._2 | |
274 | + | let bK = bN._3 | |
275 | + | $Tuple3(bH, bI, bK) | |
272 | 276 | } | |
273 | - | else $Tuple3( | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let aR = valueOrElse(getInteger(az( | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | if ($isInstanceOf( | |
286 | - | then | |
277 | + | else $Tuple3(bB, valueOrElse(getInteger(ao(bB)), height), valueOrElse(getInteger(aq(bB)), ((height + bA) - 1))) | |
278 | + | let bH = bD._1 | |
279 | + | let bI = bD._2 | |
280 | + | let bK = bD._3 | |
281 | + | let bO = valueOrElse(getInteger(av(K, bH)), by) | |
282 | + | let bP = valueOrElse(getInteger(aw(K, bH, bj)), bz) | |
283 | + | let aR = valueOrElse(getInteger(az(bj)), 0) | |
284 | + | let bQ = min([(bw + aR), bO, bP]) | |
285 | + | let bR = value(getInteger(ar())) | |
286 | + | let bS = e | |
287 | + | let bT = { | |
288 | + | let bU = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bS, K], nil) | |
289 | + | if ($isInstanceOf(bU, "(Int, Int, Int)")) | |
290 | + | then bU | |
287 | 291 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
288 | 292 | } | |
289 | - | if (( | |
293 | + | if ((bT == bT)) | |
290 | 294 | then { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | if ($isInstanceOf( | |
298 | - | then | |
295 | + | let bV = bT._3 | |
296 | + | let bW = bT._2 | |
297 | + | let bX = bT._1 | |
298 | + | let bY = value(getString(ay())) | |
299 | + | let bZ = { | |
300 | + | let bU = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bY, bX], nil) | |
301 | + | if ($isInstanceOf(bU, "(Int, Int)")) | |
302 | + | then bU | |
299 | 303 | else throw("Couldn't cast Any to (Int, Int)") | |
300 | 304 | } | |
301 | - | if (( | |
305 | + | if ((bZ == bZ)) | |
302 | 306 | then { | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | $Tuple10( | |
307 | + | let ca = bZ._2 | |
308 | + | let cb = bZ._1 | |
309 | + | let cc = fraction(bS, e, cb) | |
310 | + | let cd = (bK - height) | |
311 | + | $Tuple10(bQ, bO, bP, bx, bR, cc, cd, bH, bI, bK) | |
308 | 312 | } | |
309 | 313 | else throw("Strict value is not equal to itself.") | |
310 | 314 | } | |
312 | 316 | } | |
313 | 317 | ||
314 | 318 | ||
315 | - | func | |
316 | - | let | |
317 | - | if ($isInstanceOf( | |
319 | + | func ce () = { | |
320 | + | let cf = getString(aB()) | |
321 | + | if ($isInstanceOf(cf, "String")) | |
318 | 322 | then { | |
319 | - | let | |
320 | - | fromBase58String( | |
323 | + | let cg = cf | |
324 | + | fromBase58String(cg) | |
321 | 325 | } | |
322 | - | else if ($isInstanceOf( | |
326 | + | else if ($isInstanceOf(cf, "Unit")) | |
323 | 327 | then unit | |
324 | 328 | else throw("Match error") | |
325 | 329 | } | |
326 | 330 | ||
327 | 331 | ||
328 | - | func | |
329 | - | let | |
330 | - | if ($isInstanceOf( | |
332 | + | func ch () = { | |
333 | + | let cf = getString(aC()) | |
334 | + | if ($isInstanceOf(cf, "String")) | |
331 | 335 | then { | |
332 | - | let | |
333 | - | fromBase58String( | |
336 | + | let cg = cf | |
337 | + | fromBase58String(cg) | |
334 | 338 | } | |
335 | - | else if ($isInstanceOf( | |
339 | + | else if ($isInstanceOf(cf, "Unit")) | |
336 | 340 | then unit | |
337 | 341 | else throw("Match error") | |
338 | 342 | } | |
339 | 343 | ||
340 | 344 | ||
341 | - | func | |
342 | - | let | |
343 | - | let | |
344 | - | if ($isInstanceOf( | |
345 | + | func ci (cj) = { | |
346 | + | let ck = throw("Permission denied") | |
347 | + | let cf = ce() | |
348 | + | if ($isInstanceOf(cf, "ByteVector")) | |
345 | 349 | then { | |
346 | - | let | |
347 | - | if (( | |
350 | + | let cl = cf | |
351 | + | if ((cj.callerPublicKey == cl)) | |
348 | 352 | then true | |
349 | - | else | |
353 | + | else ck | |
350 | 354 | } | |
351 | - | else if ($isInstanceOf( | |
352 | - | then if (( | |
355 | + | else if ($isInstanceOf(cf, "Unit")) | |
356 | + | then if ((cj.caller == this)) | |
353 | 357 | then true | |
354 | - | else | |
358 | + | else ck | |
355 | 359 | else throw("Match error") | |
356 | 360 | } | |
357 | 361 | ||
358 | 362 | ||
359 | - | @Callable( | |
363 | + | @Callable(cj) | |
360 | 364 | func constructor (D,E,F,G,k,K,M) = { | |
361 | 365 | let H = ((100 * 1000) * 1000) | |
362 | - | let | |
366 | + | let cm = (D + E) | |
363 | 367 | if (isDefined(getString(ad()))) | |
364 | 368 | then throw("already initialized") | |
365 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
369 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(cj.caller))) | |
366 | 370 | then throw("not authorized") | |
367 | - | else if ((size( | |
371 | + | else if ((size(cj.payments) != 1)) | |
368 | 372 | then throw("exactly 1 payment must be attached") | |
369 | - | else if (( | |
373 | + | else if ((cm >= F)) | |
370 | 374 | then throw("claimStart must be greater than idoEnd") | |
371 | 375 | else { | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let I = toBase58String( | |
376 | - | let J = pow(10, 0, | |
377 | - | let | |
378 | - | let | |
379 | - | let L = pow(10, 0, | |
380 | - | let | |
381 | - | let | |
382 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
376 | + | let cn = value(cj.payments[0]) | |
377 | + | let bh = value(cn.assetId) | |
378 | + | let co = valueOrErrorMessage(assetInfo(bh), "fail to load ido asset info") | |
379 | + | let I = toBase58String(bh) | |
380 | + | let J = pow(10, 0, co.decimals, 0, 0, DOWN) | |
381 | + | let bi = fromBase58String(K) | |
382 | + | let cp = valueOrErrorMessage(assetInfo(bi), "fail to load price asset info") | |
383 | + | let L = pow(10, 0, cp.decimals, 0, 0, DOWN) | |
384 | + | let cq = aG() | |
385 | + | let cr = [0, 0, 0, 0] | |
386 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cn.amount)), aN(ag(), cq, cr, F, 0)] | |
383 | 387 | } | |
384 | 388 | } | |
385 | 389 | ||
386 | 390 | ||
387 | 391 | ||
388 | - | @Callable( | |
392 | + | @Callable(cj) | |
389 | 393 | func invest () = { | |
390 | 394 | let aU = aD() | |
391 | 395 | let D = parseIntValue(aU[r]) | |
392 | 396 | let E = parseIntValue(aU[s]) | |
393 | - | let | |
397 | + | let cm = (D + E) | |
394 | 398 | let F = parseIntValue(aU[t]) | |
395 | 399 | let G = parseIntValue(aU[u]) | |
396 | 400 | let k = parseIntValue(aU[v]) | |
397 | 401 | let H = parseIntValue(aU[w]) | |
398 | 402 | let I = aU[x] | |
399 | - | let | |
403 | + | let bh = fromBase58String(I) | |
400 | 404 | let J = parseIntValue(aU[y]) | |
401 | 405 | let K = aU[z] | |
402 | - | let | |
406 | + | let bi = fromBase58String(K) | |
403 | 407 | let L = parseIntValue(aU[A]) | |
404 | - | let | |
405 | - | let af = toString( | |
408 | + | let cs = parseIntValue(aU[B]) | |
409 | + | let af = toString(cj.caller) | |
406 | 410 | if ((D > height)) | |
407 | 411 | then throw("ido has not been started yet") | |
408 | - | else if ((height > | |
412 | + | else if ((height > cm)) | |
409 | 413 | then throw("ido has been already ended") | |
410 | - | else if ((size( | |
414 | + | else if ((size(cj.payments) != 1)) | |
411 | 415 | then throw("exactly 1 payment is expected") | |
412 | 416 | else { | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | if (( | |
417 | - | then throw((("invalid payment asset id: " + toBase58String( | |
417 | + | let cn = value(cj.payments[0]) | |
418 | + | let ct = value(cn.assetId) | |
419 | + | let cu = cn.amount | |
420 | + | if ((ct != bi)) | |
421 | + | then throw((("invalid payment asset id: " + toBase58String(ct)) + " is expected")) | |
418 | 422 | else { | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | if (( | |
423 | + | let cv = aH(af) | |
424 | + | let cq = aG() | |
425 | + | let cw = (parseIntValue(cq[P]) + cu) | |
426 | + | let cx = (cw * 100) | |
427 | + | if ((cx > assetBalance(this, bh))) | |
424 | 428 | then throw("IDO asset has been - sold consider to use smaller payment") | |
425 | 429 | else { | |
426 | - | let | |
427 | - | [aN(ae(af), | |
430 | + | let cr = [cu, cu, 0, 0] | |
431 | + | [aN(ae(af), cv, cr, F, 0), aN(ag(), cq, cr, F, 0), bb(af, cu, 0, cj.transactionId)] | |
428 | 432 | } | |
429 | 433 | } | |
430 | 434 | } | |
432 | 436 | ||
433 | 437 | ||
434 | 438 | ||
435 | - | @Callable( | |
436 | - | func claim ( | |
437 | - | let | |
438 | - | if (( | |
439 | + | @Callable(cj) | |
440 | + | func claim (bf,bj) = { | |
441 | + | let cy = toString(cj.caller) | |
442 | + | if ((bj != cy)) | |
439 | 443 | then throw("not authorized") | |
440 | 444 | else { | |
441 | 445 | let aU = aD() | |
442 | 446 | let K = aU[z] | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let aR = valueOrElse(getInteger(az( | |
447 | + | let cz = be(bf, cj.caller, cj.transactionId) | |
448 | + | let cr = cz._1 | |
449 | + | let bw = cz._2 | |
450 | + | let cA = cz._3 | |
451 | + | let bk = cz._4 | |
452 | + | let bo = cz._5 | |
453 | + | let cB = cr[aL] | |
454 | + | let cC = cr[aM] | |
455 | + | let aR = valueOrElse(getInteger(az(bj)), 0) | |
452 | 456 | let aV = value(assetInfo(fromBase58String(K))).decimals | |
453 | - | let | |
457 | + | let aZ = if ((bf == K)) | |
454 | 458 | then { | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
459 | + | let cD = bv(K, bj, bw, cr[aL]) | |
460 | + | let bQ = cD._1 | |
461 | + | let bO = cD._2 | |
462 | + | let bP = cD._3 | |
463 | + | let bx = cD._4 | |
464 | + | let bR = cD._5 | |
465 | + | let cc = cD._6 | |
466 | + | let cd = cD._7 | |
467 | + | let bH = cD._8 | |
468 | + | let bI = cD._9 | |
469 | + | let bK = cD._10 | |
470 | + | let bu = [if ((bP > 0)) | |
467 | 471 | then true | |
468 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
472 | + | else f("unavailable to claim because user period allowance reached"), if ((bO > 0)) | |
469 | 473 | then true | |
470 | - | else f("unavailable to claim because total period allowance reached"), if (( | |
474 | + | else f("unavailable to claim because total period allowance reached"), if ((bQ > 0)) | |
471 | 475 | then true | |
472 | - | else f("nothing to claim"), if (( | |
476 | + | else f("nothing to claim"), if ((bR > cc)) | |
473 | 477 | then true | |
474 | 478 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
475 | - | if (( | |
479 | + | if ((bu == bu)) | |
476 | 480 | then { | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | then [ScriptTransfer( | |
481 | + | let cE = (bO - bQ) | |
482 | + | let cF = (bP - bQ) | |
483 | + | let aZ = if ((aR >= bQ)) | |
484 | + | then [ScriptTransfer(cj.caller, bQ, cA), IntegerEntry(az(bj), (aR - bQ))] | |
481 | 485 | else { | |
482 | - | let | |
483 | - | [ScriptTransfer( | |
486 | + | let cG = ((aR + bw) - bQ) | |
487 | + | [ScriptTransfer(cj.caller, bQ, cA), aN(ae(bj), bk, cr, bo, 0), aN(ag(), aG(), cr, bo, 0), IntegerEntry(az(bj), cG)] | |
484 | 488 | } | |
485 | - | $Tuple2(([IntegerEntry(an(), | |
489 | + | $Tuple2(([IntegerEntry(an(), bH), IntegerEntry(ao(bH), bI), IntegerEntry(aq(bH), bK), IntegerEntry(av(K, bH), cE), IntegerEntry(aw(K, bH, bj), cF), bd(bj, bQ, cC, cj.transactionId)] ++ aZ), unit) | |
486 | 490 | } | |
487 | 491 | else throw("Strict value is not equal to itself.") | |
488 | 492 | } | |
489 | 493 | else { | |
490 | - | let | |
491 | - | $Tuple2([ScriptTransfer( | |
494 | + | let cH = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN)) | |
495 | + | $Tuple2([ScriptTransfer(cj.caller, (bw + cH), cA), IntegerEntry(az(bj), 0), aN(ae(bj), bk, cr, bo, aR), aN(ag(), aG(), cr, bo, aR), bd(bj, cB, (cC + cH), cj.transactionId)], unit) | |
492 | 496 | } | |
493 | - | | |
497 | + | aZ | |
494 | 498 | } | |
495 | 499 | } | |
496 | 500 | ||
497 | 501 | ||
498 | 502 | ||
499 | - | @Callable( | |
500 | - | func claimREADONLY ( | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | $Tuple2(nil, makeString(["%s%d%d", | |
503 | + | @Callable(cj) | |
504 | + | func claimREADONLY (bf,bj) = { | |
505 | + | let cz = be(bf, addressFromStringValue(bj), fromBase58String("")) | |
506 | + | let cr = cz._1 | |
507 | + | let bw = cz._2 | |
508 | + | let cA = cz._3 | |
509 | + | let bk = cz._4 | |
510 | + | let bo = cz._5 | |
511 | + | let cI = cz._6 | |
512 | + | let cJ = cI[0] | |
513 | + | let cK = cI[1] | |
514 | + | $Tuple2(nil, makeString(["%s%d%d", bj, toString(cJ), toString(cK)], c)) | |
511 | 515 | } | |
512 | 516 | ||
513 | 517 | ||
514 | 518 | ||
515 | - | @Callable( | |
516 | - | func claimV2READONLY ( | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
519 | + | @Callable(cj) | |
520 | + | func claimV2READONLY (bf,bj) = { | |
521 | + | let cz = be(bf, addressFromStringValue(bj), fromBase58String("")) | |
522 | + | let cr = cz._1 | |
523 | + | let bw = cz._2 | |
524 | + | let cA = cz._3 | |
525 | + | let bk = cz._4 | |
526 | + | let bo = cz._5 | |
527 | + | let cI = cz._6 | |
528 | + | let cJ = cI[0] | |
529 | + | let cK = cI[1] | |
526 | 530 | let aU = aD() | |
527 | 531 | let K = aU[z] | |
528 | - | let aR = valueOrElse(getInteger(az( | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
532 | + | let aR = valueOrElse(getInteger(az(bj)), 0) | |
533 | + | let cH = (aR * 100) | |
534 | + | let cL = (cK + cH) | |
535 | + | let cM = bv(K, bj, bw, cr[aL]) | |
536 | + | let bQ = cM._1 | |
537 | + | let bO = cM._2 | |
538 | + | let bP = cM._3 | |
539 | + | let bx = cM._4 | |
540 | + | let bR = cM._5 | |
541 | + | let cc = cM._6 | |
542 | + | let cd = cM._7 | |
543 | + | let bH = cM._8 | |
544 | + | let bI = cM._9 | |
545 | + | let bK = cM._10 | |
546 | + | let cN = valueOrElse(getInteger(aq(bH)), 0) | |
547 | + | let cO = (parseIntValue(aI(bj)[R]) - aR) | |
548 | + | let cP = if ((height > cN)) | |
545 | 549 | then { | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | makeString(["%d%d%d%d%d%d", toString( | |
550 | + | let cQ = value(getInteger(am())) | |
551 | + | let cR = value(getInteger(au(K))) | |
552 | + | let cS = value(getInteger(as(K))) | |
553 | + | makeString(["%d%d%d%d%d%d", toString(cL), toString(cR), toString(cS), toString(bR), toString(cc), toString(cQ), toString(cO)], c) | |
550 | 554 | } | |
551 | - | else makeString(["%d%d%d%d%d%d", toString( | |
552 | - | $Tuple2(nil, | |
555 | + | else makeString(["%d%d%d%d%d%d", toString(cL), toString(bQ), toString(bO), toString(bR), toString(cc), toString(cd), toString(cO)], c) | |
556 | + | $Tuple2(nil, cP) | |
553 | 557 | } | |
554 | 558 | ||
555 | 559 | ||
556 | 560 | ||
557 | - | @Callable( | |
558 | - | func setManager ( | |
559 | - | let | |
560 | - | if (( | |
561 | + | @Callable(cj) | |
562 | + | func setManager (cT) = { | |
563 | + | let cU = ci(cj) | |
564 | + | if ((cU == cU)) | |
561 | 565 | then { | |
562 | - | let | |
563 | - | if (( | |
564 | - | then [StringEntry(aC(), | |
566 | + | let cV = fromBase58String(cT) | |
567 | + | if ((cV == cV)) | |
568 | + | then [StringEntry(aC(), cT)] | |
565 | 569 | else throw("Strict value is not equal to itself.") | |
566 | 570 | } | |
567 | 571 | else throw("Strict value is not equal to itself.") | |
569 | 573 | ||
570 | 574 | ||
571 | 575 | ||
572 | - | @Callable( | |
576 | + | @Callable(cj) | |
573 | 577 | func confirmManager () = { | |
574 | - | let | |
575 | - | let | |
578 | + | let cW = ch() | |
579 | + | let cX = if (isDefined(cW)) | |
576 | 580 | then true | |
577 | 581 | else throw("No pending manager") | |
578 | - | if (( | |
582 | + | if ((cX == cX)) | |
579 | 583 | then { | |
580 | - | let | |
584 | + | let cY = if ((cj.callerPublicKey == value(cW))) | |
581 | 585 | then true | |
582 | 586 | else throw("You are not pending manager") | |
583 | - | if (( | |
584 | - | then [StringEntry(aB(), toBase58String(value( | |
587 | + | if ((cY == cY)) | |
588 | + | then [StringEntry(aB(), toBase58String(value(cW))), DeleteEntry(aC())] | |
585 | 589 | else throw("Strict value is not equal to itself.") | |
586 | 590 | } | |
587 | 591 | else throw("Strict value is not equal to itself.") | |
588 | 592 | } | |
589 | 593 | ||
590 | 594 | ||
591 | - | @Verifier( | |
592 | - | func | |
593 | - | let | |
594 | - | let | |
595 | - | if ($isInstanceOf( | |
595 | + | @Verifier(cZ) | |
596 | + | func da () = { | |
597 | + | let db = { | |
598 | + | let cf = ce() | |
599 | + | if ($isInstanceOf(cf, "ByteVector")) | |
596 | 600 | then { | |
597 | - | let | |
598 | - | | |
601 | + | let cl = cf | |
602 | + | cl | |
599 | 603 | } | |
600 | - | else if ($isInstanceOf( | |
601 | - | then | |
604 | + | else if ($isInstanceOf(cf, "Unit")) | |
605 | + | then cZ.senderPublicKey | |
602 | 606 | else throw("Match error") | |
603 | 607 | } | |
604 | - | sigVerify( | |
608 | + | sigVerify(cZ.bodyBytes, cZ.proofs[0], db) | |
605 | 609 | } | |
606 | 610 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let c = "__" | |
8 | 8 | ||
9 | 9 | let d = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | let e = 100000000 | |
12 | 12 | ||
13 | 13 | func f (g) = throw(makeString(["ido.ride:", g], " ")) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func h (i,j,k,l,m) = { | |
17 | 17 | let n = toBigInt(j) | |
18 | 18 | let o = toBigInt(m) | |
19 | 19 | let p = fraction(toBigInt(i), d, n) | |
20 | 20 | let q = fraction(p, toBigInt(l), toBigInt(k)) | |
21 | 21 | toInt(fraction(q, toBigInt(m), d)) | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | let r = 1 | |
26 | 26 | ||
27 | 27 | let s = 2 | |
28 | 28 | ||
29 | 29 | let t = 3 | |
30 | 30 | ||
31 | 31 | let u = 4 | |
32 | 32 | ||
33 | 33 | let v = 5 | |
34 | 34 | ||
35 | 35 | let w = 6 | |
36 | 36 | ||
37 | 37 | let x = 7 | |
38 | 38 | ||
39 | 39 | let y = 8 | |
40 | 40 | ||
41 | 41 | let z = 9 | |
42 | 42 | ||
43 | 43 | let A = 10 | |
44 | 44 | ||
45 | 45 | let B = 11 | |
46 | 46 | ||
47 | 47 | func C (D,E,F,G,k,H,I,J,K,L,M,N) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", D, E, F, G, k, H, I, J, K, L, M, N], c) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func O (D,E,F,G,k,H,I,J,K,L,M,N) = C(toString(D), toString(E), toString(F), toString(G), toString(k), toString(H), I, toString(J), K, toString(L), toString(M), toString(N)) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | let P = 1 | |
54 | 54 | ||
55 | 55 | let Q = 2 | |
56 | 56 | ||
57 | 57 | let R = 3 | |
58 | 58 | ||
59 | 59 | let S = 4 | |
60 | 60 | ||
61 | 61 | let T = 5 | |
62 | 62 | ||
63 | 63 | func U (V,W,X,Y,Z) = makeString(["%d%d%d%d%d", V, W, X, Y, Z], c) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func aa (V,W,X,Y,Z) = U(toString(V), toString(W), toString(X), toString(Y), toString(Z)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func ab (i,ac) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(i), toString(ac)], c) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func ad () = "%s__config" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func ae (af) = ("%s__" + af) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func ag () = "%s__totals" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func ah (ai,af,aj) = makeString(["%s%s%s%s__history", ai, af, aj], c) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func ak () = "%s__usdnClaimDisabled" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func al () = "%s__usdnClaimEndHeight" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func am () = makeString(["%s", "periodLength"], c) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func an () = makeString(["%s", "currentPeriod"], c) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func ao (ap) = makeString(["%s%s", "periodStartHeight", toString(ap)], c) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func aq (ap) = makeString(["%s%s", "periodEndHeight", toString(ap)], c) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func ar () = makeString(["%s", "usdtPriceAssetAllowableRatio"], c) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func as (at) = makeString(["%s%s", "totalPeriodAllowance", at], c) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func au (at) = makeString(["%s%s", "userPeriodAllowance", at], c) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func av (at,ap) = makeString(["%s%s%s", "periodTotalAvailableToClaim", at, toString(ap)], c) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func aw (at,ap,af) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", at, toString(ap), af], c) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ax () = makeString(["%s", "usdtPriceAssetStablePool"], c) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ay () = makeString(["%s", "usdtAssetId"], c) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func az (aA) = makeString(["%s%s", "priceAssetBalance", aA], c) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func aB () = "%s__managerPublicKey" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func aC () = "%s__pendingManagerPublicKey" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func aD () = split(a(ad()), c) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func aE (aF) = split(valueOrElse(getString(aF), U("0", "0", "0", "0", "0")), c) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func aG () = aE(ag()) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aH (af) = aE(ae(af)) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aI (af) = split(a(ae(af)), c) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | let aJ = 0 | |
148 | 148 | ||
149 | 149 | let aK = 1 | |
150 | 150 | ||
151 | 151 | let aL = 2 | |
152 | 152 | ||
153 | 153 | let aM = 3 | |
154 | 154 | ||
155 | 155 | func aN (b,aO,aP,aQ,aR) = { | |
156 | 156 | let V = parseIntValue(aO[P]) | |
157 | 157 | let W = parseIntValue(aO[Q]) | |
158 | 158 | let X = parseIntValue(aO[R]) | |
159 | 159 | let Y = parseIntValue(aO[S]) | |
160 | 160 | let Z = parseIntValue(aO[T]) | |
161 | 161 | let aS = (V + aP[aJ]) | |
162 | 162 | let aT = (W + aP[aK]) | |
163 | 163 | let aU = aD() | |
164 | 164 | let K = aU[z] | |
165 | 165 | let aV = value(assetInfo(fromBase58String(K))).decimals | |
166 | 166 | let aW = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN)) | |
167 | 167 | let aX = ((X + aP[aL]) - aR) | |
168 | 168 | let aY = ((Y + aP[aM]) + aW) | |
169 | - | if ((0 > aT)) | |
170 | - | then f(makeString(["invalid math", toString(W), toString(aP[aK]), toString(aT), toString(aP[aJ])], " ")) | |
169 | + | let aZ = if ((0 > aT)) | |
170 | + | then { | |
171 | + | let ba = (aS - aX) | |
172 | + | StringEntry(b, aa(aS, ba, aX, aY, aQ)) | |
173 | + | } | |
171 | 174 | else StringEntry(b, aa(aS, aT, aX, aY, aQ)) | |
175 | + | aZ | |
172 | 176 | } | |
173 | 177 | ||
174 | 178 | ||
175 | - | func | |
179 | + | func bb (af,i,ac,bc) = StringEntry(ah("invest", af, toBase58String(bc)), ab(i, ac)) | |
176 | 180 | ||
177 | 181 | ||
178 | - | func | |
182 | + | func bd (af,i,ac,bc) = StringEntry(ah("claim", af, toBase58String(bc)), ab(i, ac)) | |
179 | 183 | ||
180 | 184 | ||
181 | - | func | |
185 | + | func be (bf,af,bc) = { | |
182 | 186 | let aU = aD() | |
183 | 187 | let F = parseIntValue(aU[t]) | |
184 | 188 | let G = parseIntValue(aU[u]) | |
185 | - | let | |
189 | + | let bg = (F + G) | |
186 | 190 | let k = parseIntValue(aU[v]) | |
187 | 191 | let H = parseIntValue(aU[w]) | |
188 | 192 | let I = aU[x] | |
189 | - | let | |
193 | + | let bh = fromBase58String(I) | |
190 | 194 | let J = parseIntValue(aU[y]) | |
191 | 195 | let K = aU[z] | |
192 | - | let | |
196 | + | let bi = fromBase58String(K) | |
193 | 197 | let L = parseIntValue(aU[A]) | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
198 | + | let bj = toString(af) | |
199 | + | let bk = aI(bj) | |
200 | + | let bl = parseIntValue(bk[P]) | |
201 | + | let bm = parseIntValue(bk[T]) | |
202 | + | let bn = if ((F >= bm)) | |
199 | 203 | then F | |
200 | - | else | |
201 | - | let | |
202 | - | then | |
204 | + | else bm | |
205 | + | let bo = if ((height > bg)) | |
206 | + | then bg | |
203 | 207 | else if ((F > height)) | |
204 | 208 | then F | |
205 | 209 | else height | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | let | |
212 | - | then | |
210 | + | let bp = (bo - bn) | |
211 | + | let bq = fraction(bl, bp, G) | |
212 | + | let br = h(bq, L, k, H, J) | |
213 | + | let bs = (bf == K) | |
214 | + | let bt = valueOrElse(getBoolean(ak()), false) | |
215 | + | let bu = [if (!(if (bs) | |
216 | + | then bt | |
213 | 217 | else false)) | |
214 | 218 | then true | |
215 | 219 | else throw("USDN claim is disabled")] | |
216 | - | if (( | |
217 | - | then if (( | |
218 | - | then $Tuple6([0, -( | |
219 | - | else if (( | |
220 | - | then $Tuple6([0, -( | |
221 | - | else throw(("unsupported assetId: " + | |
220 | + | if ((bu == bu)) | |
221 | + | then if ((bf == K)) | |
222 | + | then $Tuple6([0, -(bq), bq, 0], bq, bi, bk, bo, [bq, br]) | |
223 | + | else if ((bf == I)) | |
224 | + | then $Tuple6([0, -(bq), 0, br], br, bh, bk, bo, [bq, br]) | |
225 | + | else throw(("unsupported assetId: " + bf)) | |
222 | 226 | else throw("Strict value is not equal to itself.") | |
223 | 227 | } | |
224 | 228 | ||
225 | 229 | ||
226 | - | func | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
230 | + | func bv (K,bj,bw,bx) = { | |
231 | + | let by = value(getInteger(as(K))) | |
232 | + | let bz = value(getInteger(au(K))) | |
233 | + | let bA = value(getInteger(am())) | |
234 | + | let bB = valueOrElse(getInteger(an()), 0) | |
235 | + | let bC = isDefined(getInteger(aq(0))) | |
236 | + | let bD = if ((bB > 0)) | |
233 | 237 | then { | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
238 | + | let bE = value(getInteger(ao(bB))) | |
239 | + | let bF = value(getInteger(aq(bB))) | |
240 | + | let bG = if ((height > bF)) | |
237 | 241 | then { | |
238 | - | let | |
239 | - | let | |
242 | + | let bH = (bB + 1) | |
243 | + | let bI = if ((height > (bF + bA))) | |
240 | 244 | then { | |
241 | - | let | |
242 | - | if (( | |
243 | - | then ((height - | |
244 | - | else (height - | |
245 | + | let bJ = ((height - bF) % bA) | |
246 | + | if ((bJ == 0)) | |
247 | + | then ((height - bA) + 1) | |
248 | + | else (height - bJ) | |
245 | 249 | } | |
246 | - | else ( | |
247 | - | let | |
248 | - | $Tuple3( | |
250 | + | else (bF + 1) | |
251 | + | let bK = ((bI + bA) - 1) | |
252 | + | $Tuple3(bH, bI, bK) | |
249 | 253 | } | |
250 | - | else $Tuple3( | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | $Tuple3( | |
254 | + | else $Tuple3(bB, bE, bF) | |
255 | + | let bH = bG._1 | |
256 | + | let bI = bG._2 | |
257 | + | let bK = bG._3 | |
258 | + | $Tuple3(bH, bI, bK) | |
255 | 259 | } | |
256 | - | else if ( | |
260 | + | else if (bC) | |
257 | 261 | then { | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
262 | + | let bL = value(getInteger(ao(0))) | |
263 | + | let bM = value(getInteger(aq(0))) | |
264 | + | let bN = if ((height > bM)) | |
261 | 265 | then { | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | $Tuple3( | |
266 | + | let bH = (bB + 1) | |
267 | + | let bI = (bM + 1) | |
268 | + | let bK = ((bI + bA) - 1) | |
269 | + | $Tuple3(bH, bI, bK) | |
266 | 270 | } | |
267 | - | else $Tuple3( | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | $Tuple3( | |
271 | + | else $Tuple3(bB, bL, bM) | |
272 | + | let bH = bN._1 | |
273 | + | let bI = bN._2 | |
274 | + | let bK = bN._3 | |
275 | + | $Tuple3(bH, bI, bK) | |
272 | 276 | } | |
273 | - | else $Tuple3( | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let aR = valueOrElse(getInteger(az( | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | if ($isInstanceOf( | |
286 | - | then | |
277 | + | else $Tuple3(bB, valueOrElse(getInteger(ao(bB)), height), valueOrElse(getInteger(aq(bB)), ((height + bA) - 1))) | |
278 | + | let bH = bD._1 | |
279 | + | let bI = bD._2 | |
280 | + | let bK = bD._3 | |
281 | + | let bO = valueOrElse(getInteger(av(K, bH)), by) | |
282 | + | let bP = valueOrElse(getInteger(aw(K, bH, bj)), bz) | |
283 | + | let aR = valueOrElse(getInteger(az(bj)), 0) | |
284 | + | let bQ = min([(bw + aR), bO, bP]) | |
285 | + | let bR = value(getInteger(ar())) | |
286 | + | let bS = e | |
287 | + | let bT = { | |
288 | + | let bU = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bS, K], nil) | |
289 | + | if ($isInstanceOf(bU, "(Int, Int, Int)")) | |
290 | + | then bU | |
287 | 291 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
288 | 292 | } | |
289 | - | if (( | |
293 | + | if ((bT == bT)) | |
290 | 294 | then { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | if ($isInstanceOf( | |
298 | - | then | |
295 | + | let bV = bT._3 | |
296 | + | let bW = bT._2 | |
297 | + | let bX = bT._1 | |
298 | + | let bY = value(getString(ay())) | |
299 | + | let bZ = { | |
300 | + | let bU = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bY, bX], nil) | |
301 | + | if ($isInstanceOf(bU, "(Int, Int)")) | |
302 | + | then bU | |
299 | 303 | else throw("Couldn't cast Any to (Int, Int)") | |
300 | 304 | } | |
301 | - | if (( | |
305 | + | if ((bZ == bZ)) | |
302 | 306 | then { | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | $Tuple10( | |
307 | + | let ca = bZ._2 | |
308 | + | let cb = bZ._1 | |
309 | + | let cc = fraction(bS, e, cb) | |
310 | + | let cd = (bK - height) | |
311 | + | $Tuple10(bQ, bO, bP, bx, bR, cc, cd, bH, bI, bK) | |
308 | 312 | } | |
309 | 313 | else throw("Strict value is not equal to itself.") | |
310 | 314 | } | |
311 | 315 | else throw("Strict value is not equal to itself.") | |
312 | 316 | } | |
313 | 317 | ||
314 | 318 | ||
315 | - | func | |
316 | - | let | |
317 | - | if ($isInstanceOf( | |
319 | + | func ce () = { | |
320 | + | let cf = getString(aB()) | |
321 | + | if ($isInstanceOf(cf, "String")) | |
318 | 322 | then { | |
319 | - | let | |
320 | - | fromBase58String( | |
323 | + | let cg = cf | |
324 | + | fromBase58String(cg) | |
321 | 325 | } | |
322 | - | else if ($isInstanceOf( | |
326 | + | else if ($isInstanceOf(cf, "Unit")) | |
323 | 327 | then unit | |
324 | 328 | else throw("Match error") | |
325 | 329 | } | |
326 | 330 | ||
327 | 331 | ||
328 | - | func | |
329 | - | let | |
330 | - | if ($isInstanceOf( | |
332 | + | func ch () = { | |
333 | + | let cf = getString(aC()) | |
334 | + | if ($isInstanceOf(cf, "String")) | |
331 | 335 | then { | |
332 | - | let | |
333 | - | fromBase58String( | |
336 | + | let cg = cf | |
337 | + | fromBase58String(cg) | |
334 | 338 | } | |
335 | - | else if ($isInstanceOf( | |
339 | + | else if ($isInstanceOf(cf, "Unit")) | |
336 | 340 | then unit | |
337 | 341 | else throw("Match error") | |
338 | 342 | } | |
339 | 343 | ||
340 | 344 | ||
341 | - | func | |
342 | - | let | |
343 | - | let | |
344 | - | if ($isInstanceOf( | |
345 | + | func ci (cj) = { | |
346 | + | let ck = throw("Permission denied") | |
347 | + | let cf = ce() | |
348 | + | if ($isInstanceOf(cf, "ByteVector")) | |
345 | 349 | then { | |
346 | - | let | |
347 | - | if (( | |
350 | + | let cl = cf | |
351 | + | if ((cj.callerPublicKey == cl)) | |
348 | 352 | then true | |
349 | - | else | |
353 | + | else ck | |
350 | 354 | } | |
351 | - | else if ($isInstanceOf( | |
352 | - | then if (( | |
355 | + | else if ($isInstanceOf(cf, "Unit")) | |
356 | + | then if ((cj.caller == this)) | |
353 | 357 | then true | |
354 | - | else | |
358 | + | else ck | |
355 | 359 | else throw("Match error") | |
356 | 360 | } | |
357 | 361 | ||
358 | 362 | ||
359 | - | @Callable( | |
363 | + | @Callable(cj) | |
360 | 364 | func constructor (D,E,F,G,k,K,M) = { | |
361 | 365 | let H = ((100 * 1000) * 1000) | |
362 | - | let | |
366 | + | let cm = (D + E) | |
363 | 367 | if (isDefined(getString(ad()))) | |
364 | 368 | then throw("already initialized") | |
365 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
369 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(cj.caller))) | |
366 | 370 | then throw("not authorized") | |
367 | - | else if ((size( | |
371 | + | else if ((size(cj.payments) != 1)) | |
368 | 372 | then throw("exactly 1 payment must be attached") | |
369 | - | else if (( | |
373 | + | else if ((cm >= F)) | |
370 | 374 | then throw("claimStart must be greater than idoEnd") | |
371 | 375 | else { | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let I = toBase58String( | |
376 | - | let J = pow(10, 0, | |
377 | - | let | |
378 | - | let | |
379 | - | let L = pow(10, 0, | |
380 | - | let | |
381 | - | let | |
382 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
376 | + | let cn = value(cj.payments[0]) | |
377 | + | let bh = value(cn.assetId) | |
378 | + | let co = valueOrErrorMessage(assetInfo(bh), "fail to load ido asset info") | |
379 | + | let I = toBase58String(bh) | |
380 | + | let J = pow(10, 0, co.decimals, 0, 0, DOWN) | |
381 | + | let bi = fromBase58String(K) | |
382 | + | let cp = valueOrErrorMessage(assetInfo(bi), "fail to load price asset info") | |
383 | + | let L = pow(10, 0, cp.decimals, 0, 0, DOWN) | |
384 | + | let cq = aG() | |
385 | + | let cr = [0, 0, 0, 0] | |
386 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, cn.amount)), aN(ag(), cq, cr, F, 0)] | |
383 | 387 | } | |
384 | 388 | } | |
385 | 389 | ||
386 | 390 | ||
387 | 391 | ||
388 | - | @Callable( | |
392 | + | @Callable(cj) | |
389 | 393 | func invest () = { | |
390 | 394 | let aU = aD() | |
391 | 395 | let D = parseIntValue(aU[r]) | |
392 | 396 | let E = parseIntValue(aU[s]) | |
393 | - | let | |
397 | + | let cm = (D + E) | |
394 | 398 | let F = parseIntValue(aU[t]) | |
395 | 399 | let G = parseIntValue(aU[u]) | |
396 | 400 | let k = parseIntValue(aU[v]) | |
397 | 401 | let H = parseIntValue(aU[w]) | |
398 | 402 | let I = aU[x] | |
399 | - | let | |
403 | + | let bh = fromBase58String(I) | |
400 | 404 | let J = parseIntValue(aU[y]) | |
401 | 405 | let K = aU[z] | |
402 | - | let | |
406 | + | let bi = fromBase58String(K) | |
403 | 407 | let L = parseIntValue(aU[A]) | |
404 | - | let | |
405 | - | let af = toString( | |
408 | + | let cs = parseIntValue(aU[B]) | |
409 | + | let af = toString(cj.caller) | |
406 | 410 | if ((D > height)) | |
407 | 411 | then throw("ido has not been started yet") | |
408 | - | else if ((height > | |
412 | + | else if ((height > cm)) | |
409 | 413 | then throw("ido has been already ended") | |
410 | - | else if ((size( | |
414 | + | else if ((size(cj.payments) != 1)) | |
411 | 415 | then throw("exactly 1 payment is expected") | |
412 | 416 | else { | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | if (( | |
417 | - | then throw((("invalid payment asset id: " + toBase58String( | |
417 | + | let cn = value(cj.payments[0]) | |
418 | + | let ct = value(cn.assetId) | |
419 | + | let cu = cn.amount | |
420 | + | if ((ct != bi)) | |
421 | + | then throw((("invalid payment asset id: " + toBase58String(ct)) + " is expected")) | |
418 | 422 | else { | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | if (( | |
423 | + | let cv = aH(af) | |
424 | + | let cq = aG() | |
425 | + | let cw = (parseIntValue(cq[P]) + cu) | |
426 | + | let cx = (cw * 100) | |
427 | + | if ((cx > assetBalance(this, bh))) | |
424 | 428 | then throw("IDO asset has been - sold consider to use smaller payment") | |
425 | 429 | else { | |
426 | - | let | |
427 | - | [aN(ae(af), | |
430 | + | let cr = [cu, cu, 0, 0] | |
431 | + | [aN(ae(af), cv, cr, F, 0), aN(ag(), cq, cr, F, 0), bb(af, cu, 0, cj.transactionId)] | |
428 | 432 | } | |
429 | 433 | } | |
430 | 434 | } | |
431 | 435 | } | |
432 | 436 | ||
433 | 437 | ||
434 | 438 | ||
435 | - | @Callable( | |
436 | - | func claim ( | |
437 | - | let | |
438 | - | if (( | |
439 | + | @Callable(cj) | |
440 | + | func claim (bf,bj) = { | |
441 | + | let cy = toString(cj.caller) | |
442 | + | if ((bj != cy)) | |
439 | 443 | then throw("not authorized") | |
440 | 444 | else { | |
441 | 445 | let aU = aD() | |
442 | 446 | let K = aU[z] | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let aR = valueOrElse(getInteger(az( | |
447 | + | let cz = be(bf, cj.caller, cj.transactionId) | |
448 | + | let cr = cz._1 | |
449 | + | let bw = cz._2 | |
450 | + | let cA = cz._3 | |
451 | + | let bk = cz._4 | |
452 | + | let bo = cz._5 | |
453 | + | let cB = cr[aL] | |
454 | + | let cC = cr[aM] | |
455 | + | let aR = valueOrElse(getInteger(az(bj)), 0) | |
452 | 456 | let aV = value(assetInfo(fromBase58String(K))).decimals | |
453 | - | let | |
457 | + | let aZ = if ((bf == K)) | |
454 | 458 | then { | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
459 | + | let cD = bv(K, bj, bw, cr[aL]) | |
460 | + | let bQ = cD._1 | |
461 | + | let bO = cD._2 | |
462 | + | let bP = cD._3 | |
463 | + | let bx = cD._4 | |
464 | + | let bR = cD._5 | |
465 | + | let cc = cD._6 | |
466 | + | let cd = cD._7 | |
467 | + | let bH = cD._8 | |
468 | + | let bI = cD._9 | |
469 | + | let bK = cD._10 | |
470 | + | let bu = [if ((bP > 0)) | |
467 | 471 | then true | |
468 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
472 | + | else f("unavailable to claim because user period allowance reached"), if ((bO > 0)) | |
469 | 473 | then true | |
470 | - | else f("unavailable to claim because total period allowance reached"), if (( | |
474 | + | else f("unavailable to claim because total period allowance reached"), if ((bQ > 0)) | |
471 | 475 | then true | |
472 | - | else f("nothing to claim"), if (( | |
476 | + | else f("nothing to claim"), if ((bR > cc)) | |
473 | 477 | then true | |
474 | 478 | else f("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
475 | - | if (( | |
479 | + | if ((bu == bu)) | |
476 | 480 | then { | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | then [ScriptTransfer( | |
481 | + | let cE = (bO - bQ) | |
482 | + | let cF = (bP - bQ) | |
483 | + | let aZ = if ((aR >= bQ)) | |
484 | + | then [ScriptTransfer(cj.caller, bQ, cA), IntegerEntry(az(bj), (aR - bQ))] | |
481 | 485 | else { | |
482 | - | let | |
483 | - | [ScriptTransfer( | |
486 | + | let cG = ((aR + bw) - bQ) | |
487 | + | [ScriptTransfer(cj.caller, bQ, cA), aN(ae(bj), bk, cr, bo, 0), aN(ag(), aG(), cr, bo, 0), IntegerEntry(az(bj), cG)] | |
484 | 488 | } | |
485 | - | $Tuple2(([IntegerEntry(an(), | |
489 | + | $Tuple2(([IntegerEntry(an(), bH), IntegerEntry(ao(bH), bI), IntegerEntry(aq(bH), bK), IntegerEntry(av(K, bH), cE), IntegerEntry(aw(K, bH, bj), cF), bd(bj, bQ, cC, cj.transactionId)] ++ aZ), unit) | |
486 | 490 | } | |
487 | 491 | else throw("Strict value is not equal to itself.") | |
488 | 492 | } | |
489 | 493 | else { | |
490 | - | let | |
491 | - | $Tuple2([ScriptTransfer( | |
494 | + | let cH = fraction(aR, e, pow(10, 0, aV, 0, 0, DOWN)) | |
495 | + | $Tuple2([ScriptTransfer(cj.caller, (bw + cH), cA), IntegerEntry(az(bj), 0), aN(ae(bj), bk, cr, bo, aR), aN(ag(), aG(), cr, bo, aR), bd(bj, cB, (cC + cH), cj.transactionId)], unit) | |
492 | 496 | } | |
493 | - | | |
497 | + | aZ | |
494 | 498 | } | |
495 | 499 | } | |
496 | 500 | ||
497 | 501 | ||
498 | 502 | ||
499 | - | @Callable( | |
500 | - | func claimREADONLY ( | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | $Tuple2(nil, makeString(["%s%d%d", | |
503 | + | @Callable(cj) | |
504 | + | func claimREADONLY (bf,bj) = { | |
505 | + | let cz = be(bf, addressFromStringValue(bj), fromBase58String("")) | |
506 | + | let cr = cz._1 | |
507 | + | let bw = cz._2 | |
508 | + | let cA = cz._3 | |
509 | + | let bk = cz._4 | |
510 | + | let bo = cz._5 | |
511 | + | let cI = cz._6 | |
512 | + | let cJ = cI[0] | |
513 | + | let cK = cI[1] | |
514 | + | $Tuple2(nil, makeString(["%s%d%d", bj, toString(cJ), toString(cK)], c)) | |
511 | 515 | } | |
512 | 516 | ||
513 | 517 | ||
514 | 518 | ||
515 | - | @Callable( | |
516 | - | func claimV2READONLY ( | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
519 | + | @Callable(cj) | |
520 | + | func claimV2READONLY (bf,bj) = { | |
521 | + | let cz = be(bf, addressFromStringValue(bj), fromBase58String("")) | |
522 | + | let cr = cz._1 | |
523 | + | let bw = cz._2 | |
524 | + | let cA = cz._3 | |
525 | + | let bk = cz._4 | |
526 | + | let bo = cz._5 | |
527 | + | let cI = cz._6 | |
528 | + | let cJ = cI[0] | |
529 | + | let cK = cI[1] | |
526 | 530 | let aU = aD() | |
527 | 531 | let K = aU[z] | |
528 | - | let aR = valueOrElse(getInteger(az( | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
532 | + | let aR = valueOrElse(getInteger(az(bj)), 0) | |
533 | + | let cH = (aR * 100) | |
534 | + | let cL = (cK + cH) | |
535 | + | let cM = bv(K, bj, bw, cr[aL]) | |
536 | + | let bQ = cM._1 | |
537 | + | let bO = cM._2 | |
538 | + | let bP = cM._3 | |
539 | + | let bx = cM._4 | |
540 | + | let bR = cM._5 | |
541 | + | let cc = cM._6 | |
542 | + | let cd = cM._7 | |
543 | + | let bH = cM._8 | |
544 | + | let bI = cM._9 | |
545 | + | let bK = cM._10 | |
546 | + | let cN = valueOrElse(getInteger(aq(bH)), 0) | |
547 | + | let cO = (parseIntValue(aI(bj)[R]) - aR) | |
548 | + | let cP = if ((height > cN)) | |
545 | 549 | then { | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | makeString(["%d%d%d%d%d%d", toString( | |
550 | + | let cQ = value(getInteger(am())) | |
551 | + | let cR = value(getInteger(au(K))) | |
552 | + | let cS = value(getInteger(as(K))) | |
553 | + | makeString(["%d%d%d%d%d%d", toString(cL), toString(cR), toString(cS), toString(bR), toString(cc), toString(cQ), toString(cO)], c) | |
550 | 554 | } | |
551 | - | else makeString(["%d%d%d%d%d%d", toString( | |
552 | - | $Tuple2(nil, | |
555 | + | else makeString(["%d%d%d%d%d%d", toString(cL), toString(bQ), toString(bO), toString(bR), toString(cc), toString(cd), toString(cO)], c) | |
556 | + | $Tuple2(nil, cP) | |
553 | 557 | } | |
554 | 558 | ||
555 | 559 | ||
556 | 560 | ||
557 | - | @Callable( | |
558 | - | func setManager ( | |
559 | - | let | |
560 | - | if (( | |
561 | + | @Callable(cj) | |
562 | + | func setManager (cT) = { | |
563 | + | let cU = ci(cj) | |
564 | + | if ((cU == cU)) | |
561 | 565 | then { | |
562 | - | let | |
563 | - | if (( | |
564 | - | then [StringEntry(aC(), | |
566 | + | let cV = fromBase58String(cT) | |
567 | + | if ((cV == cV)) | |
568 | + | then [StringEntry(aC(), cT)] | |
565 | 569 | else throw("Strict value is not equal to itself.") | |
566 | 570 | } | |
567 | 571 | else throw("Strict value is not equal to itself.") | |
568 | 572 | } | |
569 | 573 | ||
570 | 574 | ||
571 | 575 | ||
572 | - | @Callable( | |
576 | + | @Callable(cj) | |
573 | 577 | func confirmManager () = { | |
574 | - | let | |
575 | - | let | |
578 | + | let cW = ch() | |
579 | + | let cX = if (isDefined(cW)) | |
576 | 580 | then true | |
577 | 581 | else throw("No pending manager") | |
578 | - | if (( | |
582 | + | if ((cX == cX)) | |
579 | 583 | then { | |
580 | - | let | |
584 | + | let cY = if ((cj.callerPublicKey == value(cW))) | |
581 | 585 | then true | |
582 | 586 | else throw("You are not pending manager") | |
583 | - | if (( | |
584 | - | then [StringEntry(aB(), toBase58String(value( | |
587 | + | if ((cY == cY)) | |
588 | + | then [StringEntry(aB(), toBase58String(value(cW))), DeleteEntry(aC())] | |
585 | 589 | else throw("Strict value is not equal to itself.") | |
586 | 590 | } | |
587 | 591 | else throw("Strict value is not equal to itself.") | |
588 | 592 | } | |
589 | 593 | ||
590 | 594 | ||
591 | - | @Verifier( | |
592 | - | func | |
593 | - | let | |
594 | - | let | |
595 | - | if ($isInstanceOf( | |
595 | + | @Verifier(cZ) | |
596 | + | func da () = { | |
597 | + | let db = { | |
598 | + | let cf = ce() | |
599 | + | if ($isInstanceOf(cf, "ByteVector")) | |
596 | 600 | then { | |
597 | - | let | |
598 | - | | |
601 | + | let cl = cf | |
602 | + | cl | |
599 | 603 | } | |
600 | - | else if ($isInstanceOf( | |
601 | - | then | |
604 | + | else if ($isInstanceOf(cf, "Unit")) | |
605 | + | then cZ.senderPublicKey | |
602 | 606 | else throw("Match error") | |
603 | 607 | } | |
604 | - | sigVerify( | |
608 | + | sigVerify(cZ.bodyBytes, cZ.proofs[0], db) | |
605 | 609 | } | |
606 | 610 |
github/deemru/w8io/169f3d6 170.06 ms ◑