tx · Bxh9Rh2sPfYDeNWvgBwxtDUcL8kKmerQQsLKuSJfWYEJ 3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj: -0.01400000 Waves 2021.04.11 12:59 [1477648] smart account 3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj > SELF 0.00000000 Waves
{ "type": 13, "id": "Bxh9Rh2sPfYDeNWvgBwxtDUcL8kKmerQQsLKuSJfWYEJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1618135272590, "version": 1, "sender": "3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj", "senderPublicKey": "9G5zT9Cpjk5h2JSGhccak7GEhvBeeVYy2gPnafgTp7As", "proofs": [ "4C692obVcoUzJq5jJbZyXvUNspvcetyC9KVfhgtVGA3Kiqvcj3yhuDCwGkGobQtgeJwWdRxU78voednoWD2dPGU3" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAALwAAAAAMYWRtaW5QdWJLZXkxAQAAACC6Cdc7iVmk0V2g//G7M9Cq4TlpD8vivZHWO+5PXqjgEwAAAAAMYWRtaW5QdWJLZXkyAQAAACDCkUSZs9KwtA0ipZFYvYi8oTe7CMv/3YzmlO9bFg5+QAAAAAAMYWRtaW5QdWJLZXkzAQAAACCOHhcueLEHO/RITnozKGB2KHf8meWSMKMgws+oq+kOVQAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIM5ZDtzqs16jrhv9V17n63kRNSl0RjKbPBVfPAUbKGF7AAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAAA9rZXlMYXN0SW50ZXJlc3QCAAAADWxhc3RfaW50ZXJlc3QAAAAAE2tleVVzZXJMYXN0SW50ZXJlc3QCAAAADl9sYXN0X2ludGVyZXN0AAAAABFrZXlVc2VyU1dPUExvY2tlZAIAAAAMX1NXT1BfYW1vdW50AAAAAB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AAIFAAAADGFkbWluUHViS2V5MwkABEwAAAACBQAAABRhZG1pblB1YktleVN0YXJ0U3RvcAUAAAADbmlsCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAAhT25seSBhZG1pbiBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uCQEAAAAHc3VzcGVuZAAAAAECAAAAD1BhdXNlZCBieSBhZG1pbgAAAAFpAQAAAAhhY3RpdmF0ZQAAAAADBQAAAAhpc0FjdGl2ZQkAAAIAAAABAgAAABZEQXBwIGlzIGFscmVhZHkgYWN0aXZlAwkBAAAAASEAAAABCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgkABEwAAAACBQAAAAxhZG1pblB1YktleTEJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkyCQAETAAAAAIFAAAADGFkbWluUHViS2V5MwkABEwAAAACBQAAABRhZG1pblB1YktleVN0YXJ0U3RvcAUAAAADbmlsCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAAhT25seSBhZG1pbiBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAAlrZXlBY3RpdmUGCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAACGtleUNhdXNlBQAAAANuaWwAAAAAt1XqGQ==", "chainId": 84, "height": 1477648, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ESFYt7EvZEn4Vrs58RgZxe9s92Kuj65UTv6xkc9VFAtW Next: 9pGGupLcQQAi7RBGQuj3js9yVQRY6eHPora2u3DxMEpY Diff:
Old | New | Differences | |
---|---|---|---|
191 | 191 | let userSWOPLocked = $t060266108._2 | |
192 | 192 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
193 | 193 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
194 | + | let userNewInterest = lastInterest | |
195 | + | let totalSWOPLocked = getTotalSWOPLocked() | |
196 | + | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
197 | + | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
198 | + | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
194 | 199 | if (true) | |
195 | - | then throw(toString(claimAmount)) | |
196 | - | else { | |
197 | - | let userNewInterest = lastInterest | |
198 | - | let totalSWOPLocked = getTotalSWOPLocked() | |
199 | - | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
200 | - | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
201 | - | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
202 | - | [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPLockedNew), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
203 | - | } | |
200 | + | then throw(toString(userSWOPLockedNew)) | |
201 | + | else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPLockedNew), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
204 | 202 | } | |
205 | 203 | } | |
206 | 204 | ||
212 | 210 | else { | |
213 | 211 | let totalSWOPLocked = getTotalSWOPLocked() | |
214 | 212 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
215 | - | let $ | |
216 | - | let userNewInterest = $ | |
217 | - | let claimAmount = $ | |
213 | + | let $t072507305 = claimCalc(i.caller) | |
214 | + | let userNewInterest = $t072507305._1 | |
215 | + | let claimAmount = $t072507305._2 | |
218 | 216 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
219 | 217 | let availableFund = (userSWOPLocked - userVoteAmount) | |
220 | 218 | if ((withdrawAmount > availableFund)) | |
235 | 233 | then throw("DApp is inactive at this moment") | |
236 | 234 | else { | |
237 | 235 | let lastInterest = getLastInterestInfo() | |
238 | - | let $ | |
239 | - | let userNewInterest = $ | |
240 | - | let claimAmount = $ | |
236 | + | let $t084178472 = claimCalc(i.caller) | |
237 | + | let userNewInterest = $t084178472._1 | |
238 | + | let claimAmount = $t084178472._2 | |
241 | 239 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
242 | 240 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
243 | 241 | if ((claimAmount == 0)) | |
254 | 252 | let totalSWOPLocked = getTotalSWOPLocked() | |
255 | 253 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
256 | 254 | let lastInterest = getLastInterestInfo() | |
257 | - | let $ | |
258 | - | let userNewInterest = $ | |
259 | - | let claimAmount = $ | |
255 | + | let $t092519306 = claimCalc(i.caller) | |
256 | + | let userNewInterest = $t092519306._1 | |
257 | + | let claimAmount = $t092519306._2 | |
260 | 258 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
261 | 259 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
262 | 260 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
287 | 285 | } | |
288 | 286 | ||
289 | 287 | let sumRewardPrevious = { | |
290 | - | let $ | |
291 | - | let $ | |
292 | - | let $ | |
293 | - | if (($ | |
294 | - | then $ | |
288 | + | let $list1107911112 = previousRewards | |
289 | + | let $size1107911112 = size($list1107911112) | |
290 | + | let $acc01107911112 = 0 | |
291 | + | if (($size1107911112 == 0)) | |
292 | + | then $acc01107911112 | |
295 | 293 | else { | |
296 | - | let $ | |
297 | - | if (($ | |
298 | - | then $ | |
294 | + | let $acc11107911112 = sum($acc01107911112, $list1107911112[0]) | |
295 | + | if (($size1107911112 == 1)) | |
296 | + | then $acc11107911112 | |
299 | 297 | else { | |
300 | - | let $ | |
301 | - | if (($ | |
302 | - | then $ | |
298 | + | let $acc21107911112 = sum($acc11107911112, $list1107911112[1]) | |
299 | + | if (($size1107911112 == 2)) | |
300 | + | then $acc21107911112 | |
303 | 301 | else { | |
304 | - | let $ | |
305 | - | if (($ | |
306 | - | then $ | |
302 | + | let $acc31107911112 = sum($acc21107911112, $list1107911112[2]) | |
303 | + | if (($size1107911112 == 3)) | |
304 | + | then $acc31107911112 | |
307 | 305 | else { | |
308 | - | let $ | |
309 | - | if (($ | |
310 | - | then $ | |
306 | + | let $acc41107911112 = sum($acc31107911112, $list1107911112[3]) | |
307 | + | if (($size1107911112 == 4)) | |
308 | + | then $acc41107911112 | |
311 | 309 | else { | |
312 | - | let $ | |
313 | - | if (($ | |
314 | - | then $ | |
310 | + | let $acc51107911112 = sum($acc41107911112, $list1107911112[4]) | |
311 | + | if (($size1107911112 == 5)) | |
312 | + | then $acc51107911112 | |
315 | 313 | else { | |
316 | - | let $ | |
317 | - | if (($ | |
318 | - | then $ | |
314 | + | let $acc61107911112 = sum($acc51107911112, $list1107911112[5]) | |
315 | + | if (($size1107911112 == 6)) | |
316 | + | then $acc61107911112 | |
319 | 317 | else { | |
320 | - | let $ | |
321 | - | if (($ | |
322 | - | then $ | |
318 | + | let $acc71107911112 = sum($acc61107911112, $list1107911112[6]) | |
319 | + | if (($size1107911112 == 7)) | |
320 | + | then $acc71107911112 | |
323 | 321 | else { | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
322 | + | let $acc81107911112 = sum($acc71107911112, $list1107911112[7]) | |
323 | + | if (($size1107911112 == 8)) | |
324 | + | then $acc81107911112 | |
327 | 325 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
326 | + | let $acc91107911112 = sum($acc81107911112, $list1107911112[8]) | |
327 | + | if (($size1107911112 == 9)) | |
328 | + | then $acc91107911112 | |
331 | 329 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
330 | + | let $acc101107911112 = sum($acc91107911112, $list1107911112[9]) | |
331 | + | if (($size1107911112 == 10)) | |
332 | + | then $acc101107911112 | |
335 | 333 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
334 | + | let $acc111107911112 = sum($acc101107911112, $list1107911112[10]) | |
335 | + | if (($size1107911112 == 11)) | |
336 | + | then $acc111107911112 | |
339 | 337 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
338 | + | let $acc121107911112 = sum($acc111107911112, $list1107911112[11]) | |
339 | + | if (($size1107911112 == 12)) | |
340 | + | then $acc121107911112 | |
343 | 341 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
342 | + | let $acc131107911112 = sum($acc121107911112, $list1107911112[12]) | |
343 | + | if (($size1107911112 == 13)) | |
344 | + | then $acc131107911112 | |
347 | 345 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
346 | + | let $acc141107911112 = sum($acc131107911112, $list1107911112[13]) | |
347 | + | if (($size1107911112 == 14)) | |
348 | + | then $acc141107911112 | |
351 | 349 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
350 | + | let $acc151107911112 = sum($acc141107911112, $list1107911112[14]) | |
351 | + | if (($size1107911112 == 15)) | |
352 | + | then $acc151107911112 | |
355 | 353 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
354 | + | let $acc161107911112 = sum($acc151107911112, $list1107911112[15]) | |
355 | + | if (($size1107911112 == 16)) | |
356 | + | then $acc161107911112 | |
359 | 357 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
358 | + | let $acc171107911112 = sum($acc161107911112, $list1107911112[16]) | |
359 | + | if (($size1107911112 == 17)) | |
360 | + | then $acc171107911112 | |
363 | 361 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
362 | + | let $acc181107911112 = sum($acc171107911112, $list1107911112[17]) | |
363 | + | if (($size1107911112 == 18)) | |
364 | + | then $acc181107911112 | |
367 | 365 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
366 | + | let $acc191107911112 = sum($acc181107911112, $list1107911112[18]) | |
367 | + | if (($size1107911112 == 19)) | |
368 | + | then $acc191107911112 | |
371 | 369 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
370 | + | let $acc201107911112 = sum($acc191107911112, $list1107911112[19]) | |
371 | + | if (($size1107911112 == 20)) | |
372 | + | then $acc201107911112 | |
375 | 373 | else { | |
376 | - | let $ | |
374 | + | let $acc211107911112 = sum($acc201107911112, $list1107911112[20]) | |
377 | 375 | throw("List size exceed 20") | |
378 | 376 | } | |
379 | 377 | } | |
398 | 396 | } | |
399 | 397 | } | |
400 | 398 | let sumRewardCurrent = { | |
401 | - | let $ | |
402 | - | let $ | |
403 | - | let $ | |
404 | - | if (($ | |
405 | - | then $ | |
399 | + | let $list1114111173 = currentRewards | |
400 | + | let $size1114111173 = size($list1114111173) | |
401 | + | let $acc01114111173 = 0 | |
402 | + | if (($size1114111173 == 0)) | |
403 | + | then $acc01114111173 | |
406 | 404 | else { | |
407 | - | let $ | |
408 | - | if (($ | |
409 | - | then $ | |
405 | + | let $acc11114111173 = sum($acc01114111173, $list1114111173[0]) | |
406 | + | if (($size1114111173 == 1)) | |
407 | + | then $acc11114111173 | |
410 | 408 | else { | |
411 | - | let $ | |
412 | - | if (($ | |
413 | - | then $ | |
409 | + | let $acc21114111173 = sum($acc11114111173, $list1114111173[1]) | |
410 | + | if (($size1114111173 == 2)) | |
411 | + | then $acc21114111173 | |
414 | 412 | else { | |
415 | - | let $ | |
416 | - | if (($ | |
417 | - | then $ | |
413 | + | let $acc31114111173 = sum($acc21114111173, $list1114111173[2]) | |
414 | + | if (($size1114111173 == 3)) | |
415 | + | then $acc31114111173 | |
418 | 416 | else { | |
419 | - | let $ | |
420 | - | if (($ | |
421 | - | then $ | |
417 | + | let $acc41114111173 = sum($acc31114111173, $list1114111173[3]) | |
418 | + | if (($size1114111173 == 4)) | |
419 | + | then $acc41114111173 | |
422 | 420 | else { | |
423 | - | let $ | |
424 | - | if (($ | |
425 | - | then $ | |
421 | + | let $acc51114111173 = sum($acc41114111173, $list1114111173[4]) | |
422 | + | if (($size1114111173 == 5)) | |
423 | + | then $acc51114111173 | |
426 | 424 | else { | |
427 | - | let $ | |
428 | - | if (($ | |
429 | - | then $ | |
425 | + | let $acc61114111173 = sum($acc51114111173, $list1114111173[5]) | |
426 | + | if (($size1114111173 == 6)) | |
427 | + | then $acc61114111173 | |
430 | 428 | else { | |
431 | - | let $ | |
432 | - | if (($ | |
433 | - | then $ | |
429 | + | let $acc71114111173 = sum($acc61114111173, $list1114111173[6]) | |
430 | + | if (($size1114111173 == 7)) | |
431 | + | then $acc71114111173 | |
434 | 432 | else { | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
433 | + | let $acc81114111173 = sum($acc71114111173, $list1114111173[7]) | |
434 | + | if (($size1114111173 == 8)) | |
435 | + | then $acc81114111173 | |
438 | 436 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
437 | + | let $acc91114111173 = sum($acc81114111173, $list1114111173[8]) | |
438 | + | if (($size1114111173 == 9)) | |
439 | + | then $acc91114111173 | |
442 | 440 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
441 | + | let $acc101114111173 = sum($acc91114111173, $list1114111173[9]) | |
442 | + | if (($size1114111173 == 10)) | |
443 | + | then $acc101114111173 | |
446 | 444 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
445 | + | let $acc111114111173 = sum($acc101114111173, $list1114111173[10]) | |
446 | + | if (($size1114111173 == 11)) | |
447 | + | then $acc111114111173 | |
450 | 448 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
449 | + | let $acc121114111173 = sum($acc111114111173, $list1114111173[11]) | |
450 | + | if (($size1114111173 == 12)) | |
451 | + | then $acc121114111173 | |
454 | 452 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
453 | + | let $acc131114111173 = sum($acc121114111173, $list1114111173[12]) | |
454 | + | if (($size1114111173 == 13)) | |
455 | + | then $acc131114111173 | |
458 | 456 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
457 | + | let $acc141114111173 = sum($acc131114111173, $list1114111173[13]) | |
458 | + | if (($size1114111173 == 14)) | |
459 | + | then $acc141114111173 | |
462 | 460 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
461 | + | let $acc151114111173 = sum($acc141114111173, $list1114111173[14]) | |
462 | + | if (($size1114111173 == 15)) | |
463 | + | then $acc151114111173 | |
466 | 464 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
465 | + | let $acc161114111173 = sum($acc151114111173, $list1114111173[15]) | |
466 | + | if (($size1114111173 == 16)) | |
467 | + | then $acc161114111173 | |
470 | 468 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
469 | + | let $acc171114111173 = sum($acc161114111173, $list1114111173[16]) | |
470 | + | if (($size1114111173 == 17)) | |
471 | + | then $acc171114111173 | |
474 | 472 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
473 | + | let $acc181114111173 = sum($acc171114111173, $list1114111173[17]) | |
474 | + | if (($size1114111173 == 18)) | |
475 | + | then $acc181114111173 | |
478 | 476 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
477 | + | let $acc191114111173 = sum($acc181114111173, $list1114111173[18]) | |
478 | + | if (($size1114111173 == 19)) | |
479 | + | then $acc191114111173 | |
482 | 480 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
481 | + | let $acc201114111173 = sum($acc191114111173, $list1114111173[19]) | |
482 | + | if (($size1114111173 == 20)) | |
483 | + | then $acc201114111173 | |
486 | 484 | else { | |
487 | - | let $ | |
485 | + | let $acc211114111173 = sum($acc201114111173, $list1114111173[20]) | |
488 | 486 | throw("List size exceed 20") | |
489 | 487 | } | |
490 | 488 | } | |
516 | 514 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
517 | 515 | else { | |
518 | 516 | let previousRewardEntryNew = { | |
519 | - | let $ | |
520 | - | let $ | |
521 | - | let $ | |
522 | - | if (($ | |
523 | - | then $ | |
517 | + | let $list1148911537 = previousPools | |
518 | + | let $size1148911537 = size($list1148911537) | |
519 | + | let $acc01148911537 = nil | |
520 | + | if (($size1148911537 == 0)) | |
521 | + | then $acc01148911537 | |
524 | 522 | else { | |
525 | - | let $ | |
526 | - | if (($ | |
527 | - | then $ | |
523 | + | let $acc11148911537 = PreviousRewardEntry($acc01148911537, $list1148911537[0]) | |
524 | + | if (($size1148911537 == 1)) | |
525 | + | then $acc11148911537 | |
528 | 526 | else { | |
529 | - | let $ | |
530 | - | if (($ | |
531 | - | then $ | |
527 | + | let $acc21148911537 = PreviousRewardEntry($acc11148911537, $list1148911537[1]) | |
528 | + | if (($size1148911537 == 2)) | |
529 | + | then $acc21148911537 | |
532 | 530 | else { | |
533 | - | let $ | |
534 | - | if (($ | |
535 | - | then $ | |
531 | + | let $acc31148911537 = PreviousRewardEntry($acc21148911537, $list1148911537[2]) | |
532 | + | if (($size1148911537 == 3)) | |
533 | + | then $acc31148911537 | |
536 | 534 | else { | |
537 | - | let $ | |
538 | - | if (($ | |
539 | - | then $ | |
535 | + | let $acc41148911537 = PreviousRewardEntry($acc31148911537, $list1148911537[3]) | |
536 | + | if (($size1148911537 == 4)) | |
537 | + | then $acc41148911537 | |
540 | 538 | else { | |
541 | - | let $ | |
542 | - | if (($ | |
543 | - | then $ | |
539 | + | let $acc51148911537 = PreviousRewardEntry($acc41148911537, $list1148911537[4]) | |
540 | + | if (($size1148911537 == 5)) | |
541 | + | then $acc51148911537 | |
544 | 542 | else { | |
545 | - | let $ | |
546 | - | if (($ | |
547 | - | then $ | |
543 | + | let $acc61148911537 = PreviousRewardEntry($acc51148911537, $list1148911537[5]) | |
544 | + | if (($size1148911537 == 6)) | |
545 | + | then $acc61148911537 | |
548 | 546 | else { | |
549 | - | let $ | |
550 | - | if (($ | |
551 | - | then $ | |
547 | + | let $acc71148911537 = PreviousRewardEntry($acc61148911537, $list1148911537[6]) | |
548 | + | if (($size1148911537 == 7)) | |
549 | + | then $acc71148911537 | |
552 | 550 | else { | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
551 | + | let $acc81148911537 = PreviousRewardEntry($acc71148911537, $list1148911537[7]) | |
552 | + | if (($size1148911537 == 8)) | |
553 | + | then $acc81148911537 | |
556 | 554 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
555 | + | let $acc91148911537 = PreviousRewardEntry($acc81148911537, $list1148911537[8]) | |
556 | + | if (($size1148911537 == 9)) | |
557 | + | then $acc91148911537 | |
560 | 558 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
559 | + | let $acc101148911537 = PreviousRewardEntry($acc91148911537, $list1148911537[9]) | |
560 | + | if (($size1148911537 == 10)) | |
561 | + | then $acc101148911537 | |
564 | 562 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
563 | + | let $acc111148911537 = PreviousRewardEntry($acc101148911537, $list1148911537[10]) | |
564 | + | if (($size1148911537 == 11)) | |
565 | + | then $acc111148911537 | |
568 | 566 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
567 | + | let $acc121148911537 = PreviousRewardEntry($acc111148911537, $list1148911537[11]) | |
568 | + | if (($size1148911537 == 12)) | |
569 | + | then $acc121148911537 | |
572 | 570 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
571 | + | let $acc131148911537 = PreviousRewardEntry($acc121148911537, $list1148911537[12]) | |
572 | + | if (($size1148911537 == 13)) | |
573 | + | then $acc131148911537 | |
576 | 574 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
575 | + | let $acc141148911537 = PreviousRewardEntry($acc131148911537, $list1148911537[13]) | |
576 | + | if (($size1148911537 == 14)) | |
577 | + | then $acc141148911537 | |
580 | 578 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
579 | + | let $acc151148911537 = PreviousRewardEntry($acc141148911537, $list1148911537[14]) | |
580 | + | if (($size1148911537 == 15)) | |
581 | + | then $acc151148911537 | |
584 | 582 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
583 | + | let $acc161148911537 = PreviousRewardEntry($acc151148911537, $list1148911537[15]) | |
584 | + | if (($size1148911537 == 16)) | |
585 | + | then $acc161148911537 | |
588 | 586 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
587 | + | let $acc171148911537 = PreviousRewardEntry($acc161148911537, $list1148911537[16]) | |
588 | + | if (($size1148911537 == 17)) | |
589 | + | then $acc171148911537 | |
592 | 590 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
591 | + | let $acc181148911537 = PreviousRewardEntry($acc171148911537, $list1148911537[17]) | |
592 | + | if (($size1148911537 == 18)) | |
593 | + | then $acc181148911537 | |
596 | 594 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
595 | + | let $acc191148911537 = PreviousRewardEntry($acc181148911537, $list1148911537[18]) | |
596 | + | if (($size1148911537 == 19)) | |
597 | + | then $acc191148911537 | |
600 | 598 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
599 | + | let $acc201148911537 = PreviousRewardEntry($acc191148911537, $list1148911537[19]) | |
600 | + | if (($size1148911537 == 20)) | |
601 | + | then $acc201148911537 | |
604 | 602 | else { | |
605 | - | let $ | |
603 | + | let $acc211148911537 = PreviousRewardEntry($acc201148911537, $list1148911537[20]) | |
606 | 604 | throw("List size exceed 20") | |
607 | 605 | } | |
608 | 606 | } | |
627 | 625 | } | |
628 | 626 | } | |
629 | 627 | let currentRewardEntryNew = { | |
630 | - | let $ | |
631 | - | let $ | |
632 | - | let $ | |
633 | - | if (($ | |
634 | - | then $ | |
628 | + | let $list1157011616 = currentPools | |
629 | + | let $size1157011616 = size($list1157011616) | |
630 | + | let $acc01157011616 = nil | |
631 | + | if (($size1157011616 == 0)) | |
632 | + | then $acc01157011616 | |
635 | 633 | else { | |
636 | - | let $ | |
637 | - | if (($ | |
638 | - | then $ | |
634 | + | let $acc11157011616 = CurrentRewardEntry($acc01157011616, $list1157011616[0]) | |
635 | + | if (($size1157011616 == 1)) | |
636 | + | then $acc11157011616 | |
639 | 637 | else { | |
640 | - | let $ | |
641 | - | if (($ | |
642 | - | then $ | |
638 | + | let $acc21157011616 = CurrentRewardEntry($acc11157011616, $list1157011616[1]) | |
639 | + | if (($size1157011616 == 2)) | |
640 | + | then $acc21157011616 | |
643 | 641 | else { | |
644 | - | let $ | |
645 | - | if (($ | |
646 | - | then $ | |
642 | + | let $acc31157011616 = CurrentRewardEntry($acc21157011616, $list1157011616[2]) | |
643 | + | if (($size1157011616 == 3)) | |
644 | + | then $acc31157011616 | |
647 | 645 | else { | |
648 | - | let $ | |
649 | - | if (($ | |
650 | - | then $ | |
646 | + | let $acc41157011616 = CurrentRewardEntry($acc31157011616, $list1157011616[3]) | |
647 | + | if (($size1157011616 == 4)) | |
648 | + | then $acc41157011616 | |
651 | 649 | else { | |
652 | - | let $ | |
653 | - | if (($ | |
654 | - | then $ | |
650 | + | let $acc51157011616 = CurrentRewardEntry($acc41157011616, $list1157011616[4]) | |
651 | + | if (($size1157011616 == 5)) | |
652 | + | then $acc51157011616 | |
655 | 653 | else { | |
656 | - | let $ | |
657 | - | if (($ | |
658 | - | then $ | |
654 | + | let $acc61157011616 = CurrentRewardEntry($acc51157011616, $list1157011616[5]) | |
655 | + | if (($size1157011616 == 6)) | |
656 | + | then $acc61157011616 | |
659 | 657 | else { | |
660 | - | let $ | |
661 | - | if (($ | |
662 | - | then $ | |
658 | + | let $acc71157011616 = CurrentRewardEntry($acc61157011616, $list1157011616[6]) | |
659 | + | if (($size1157011616 == 7)) | |
660 | + | then $acc71157011616 | |
663 | 661 | else { | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
662 | + | let $acc81157011616 = CurrentRewardEntry($acc71157011616, $list1157011616[7]) | |
663 | + | if (($size1157011616 == 8)) | |
664 | + | then $acc81157011616 | |
667 | 665 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
666 | + | let $acc91157011616 = CurrentRewardEntry($acc81157011616, $list1157011616[8]) | |
667 | + | if (($size1157011616 == 9)) | |
668 | + | then $acc91157011616 | |
671 | 669 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
670 | + | let $acc101157011616 = CurrentRewardEntry($acc91157011616, $list1157011616[9]) | |
671 | + | if (($size1157011616 == 10)) | |
672 | + | then $acc101157011616 | |
675 | 673 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
674 | + | let $acc111157011616 = CurrentRewardEntry($acc101157011616, $list1157011616[10]) | |
675 | + | if (($size1157011616 == 11)) | |
676 | + | then $acc111157011616 | |
679 | 677 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
678 | + | let $acc121157011616 = CurrentRewardEntry($acc111157011616, $list1157011616[11]) | |
679 | + | if (($size1157011616 == 12)) | |
680 | + | then $acc121157011616 | |
683 | 681 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
682 | + | let $acc131157011616 = CurrentRewardEntry($acc121157011616, $list1157011616[12]) | |
683 | + | if (($size1157011616 == 13)) | |
684 | + | then $acc131157011616 | |
687 | 685 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
686 | + | let $acc141157011616 = CurrentRewardEntry($acc131157011616, $list1157011616[13]) | |
687 | + | if (($size1157011616 == 14)) | |
688 | + | then $acc141157011616 | |
691 | 689 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
690 | + | let $acc151157011616 = CurrentRewardEntry($acc141157011616, $list1157011616[14]) | |
691 | + | if (($size1157011616 == 15)) | |
692 | + | then $acc151157011616 | |
695 | 693 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
694 | + | let $acc161157011616 = CurrentRewardEntry($acc151157011616, $list1157011616[15]) | |
695 | + | if (($size1157011616 == 16)) | |
696 | + | then $acc161157011616 | |
699 | 697 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
698 | + | let $acc171157011616 = CurrentRewardEntry($acc161157011616, $list1157011616[16]) | |
699 | + | if (($size1157011616 == 17)) | |
700 | + | then $acc171157011616 | |
703 | 701 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
702 | + | let $acc181157011616 = CurrentRewardEntry($acc171157011616, $list1157011616[17]) | |
703 | + | if (($size1157011616 == 18)) | |
704 | + | then $acc181157011616 | |
707 | 705 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
706 | + | let $acc191157011616 = CurrentRewardEntry($acc181157011616, $list1157011616[18]) | |
707 | + | if (($size1157011616 == 19)) | |
708 | + | then $acc191157011616 | |
711 | 709 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
710 | + | let $acc201157011616 = CurrentRewardEntry($acc191157011616, $list1157011616[19]) | |
711 | + | if (($size1157011616 == 20)) | |
712 | + | then $acc201157011616 | |
715 | 713 | else { | |
716 | - | let $ | |
714 | + | let $acc211157011616 = CurrentRewardEntry($acc201157011616, $list1157011616[20]) | |
717 | 715 | throw("List size exceed 20") | |
718 | 716 | } | |
719 | 717 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
9 | 9 | ||
10 | 10 | let adminPubKeyStartStop = base58'EtVkT6ed8GtbUiVVEqdmEqsp2J4qbb3rre2HFgxeVYdg' | |
11 | 11 | ||
12 | 12 | let keyActive = "active" | |
13 | 13 | ||
14 | 14 | let keyCause = "shutdown_cause" | |
15 | 15 | ||
16 | 16 | let keyLastInterest = "last_interest" | |
17 | 17 | ||
18 | 18 | let keyUserLastInterest = "_last_interest" | |
19 | 19 | ||
20 | 20 | let keyUserSWOPLocked = "_SWOP_amount" | |
21 | 21 | ||
22 | 22 | let keyUserGetBackHeight = "_getBackHeight" | |
23 | 23 | ||
24 | 24 | let keyTotalSWOPLocked = "total_SWOP_amount" | |
25 | 25 | ||
26 | 26 | let kUserTotalVoteSWOP = "_user_total_SWOP_vote" | |
27 | 27 | ||
28 | 28 | let keyUserVoteOptionAmount = "_SWOP_option_amount" | |
29 | 29 | ||
30 | 30 | let keyTotalVoteOptionAmount = "total_SWOP_option_amount" | |
31 | 31 | ||
32 | 32 | let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount" | |
33 | 33 | ||
34 | 34 | let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount" | |
35 | 35 | ||
36 | 36 | let keyVoteName = "vote_name" | |
37 | 37 | ||
38 | 38 | let keyOptionName = "_option_name" | |
39 | 39 | ||
40 | 40 | let keyVotingStartHeight = "_startHeight" | |
41 | 41 | ||
42 | 42 | let keyVoteDuration = "_vote_duration" | |
43 | 43 | ||
44 | 44 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
45 | 45 | ||
46 | 46 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
47 | 47 | ||
48 | 48 | let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
49 | 49 | ||
50 | 50 | let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
51 | 51 | ||
52 | 52 | let keyRewardUpdateHeight = "reward_update_height" | |
53 | 53 | ||
54 | 54 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
55 | 55 | ||
56 | 56 | let farmingSWOPAddress = Address(base58'3N8DpPzjqS5qQkKRL5kmbTt3c4MdxefVhc5') | |
57 | 57 | ||
58 | 58 | let votingLiteContract = Address(base58'3MzESVPKwN6LKK5J6RFLcZ4yYhDsCFCEShP') | |
59 | 59 | ||
60 | 60 | let keySWOPid = "SWOP_id" | |
61 | 61 | ||
62 | 62 | let SWOP = fromBase58String(getStringValue(farmingSWOPAddress, keySWOPid)) | |
63 | 63 | ||
64 | 64 | let scaleValue = 100000000 | |
65 | 65 | ||
66 | 66 | let totalVoteShare = 10000000000 | |
67 | 67 | ||
68 | 68 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount") | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getLastInterestInfo () = { | |
75 | 75 | let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0) | |
76 | 76 | lastInterest | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getUserSWOPLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPLocked)), 0) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getUserSWOPClaimedAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPClaimedAmount)), 0) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getUserInterestInfo (user,lastInterest) = { | |
87 | 87 | let userSWOPAmount = getUserSWOPLocked(user) | |
88 | 88 | let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest)) | |
89 | 89 | let userLastInterestValue = match userLastInterest { | |
90 | 90 | case userLastInterest: Int => | |
91 | 91 | userLastInterest | |
92 | 92 | case _ => | |
93 | 93 | lastInterest | |
94 | 94 | } | |
95 | 95 | $Tuple2(userLastInterestValue, userSWOPAmount) | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func getUserTotalVoteAmount (user) = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func getVoteOptionAmount (user,voteName,option) = { | |
112 | 112 | let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount)) | |
113 | 113 | let uvoa = match userVoteOptionAmount { | |
114 | 114 | case uvoa: Int => | |
115 | 115 | uvoa | |
116 | 116 | case uvoa: Unit => | |
117 | 117 | 0 | |
118 | 118 | case _ => | |
119 | 119 | throw("Match error") | |
120 | 120 | } | |
121 | 121 | valueOrErrorMessage(uvoa, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount)) | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func getTotalVoteOptionAmount (voteName,option) = { | |
129 | 129 | let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount)) | |
130 | 130 | let tvoa = match totalVoteOptionAmount { | |
131 | 131 | case tvoa: Int => | |
132 | 132 | tvoa | |
133 | 133 | case tvoa: Unit => | |
134 | 134 | 0 | |
135 | 135 | case _ => | |
136 | 136 | throw("Match error") | |
137 | 137 | } | |
138 | 138 | tvoa | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = { | |
143 | 143 | let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight)) | |
144 | 144 | valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key)) | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func claimCalc (caller) = { | |
149 | 149 | let lastInterest = getLastInterestInfo() | |
150 | 150 | let $t049765056 = getUserInterestInfo(caller, lastInterest) | |
151 | 151 | let userLastInterest = $t049765056._1 | |
152 | 152 | let userSWOPLocked = $t049765056._2 | |
153 | 153 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
154 | 154 | let userNewInterest = lastInterest | |
155 | 155 | $Tuple2(userNewInterest, claimAmount) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(i) | |
160 | 160 | func airDrop () = if (!(isActive)) | |
161 | 161 | then throw("DApp is inactive at this moment") | |
162 | 162 | else { | |
163 | 163 | let $t053215396 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
164 | 164 | let pmtAmount = $t053215396._1 | |
165 | 165 | let pmtAssetId = $t053215396._2 | |
166 | 166 | if ((pmtAssetId != SWOP)) | |
167 | 167 | then throw("Incorrect pmtAssetId") | |
168 | 168 | else { | |
169 | 169 | let totalSWOPLocked = getTotalSWOPLocked() | |
170 | 170 | let lastInterest = getLastInterestInfo() | |
171 | 171 | let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPLocked)) | |
172 | 172 | [IntegerEntry(keyLastInterest, interestNew)] | |
173 | 173 | } | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(i) | |
179 | 179 | func lockSWOP () = if (!(isActive)) | |
180 | 180 | then throw("DApp is inactive at this moment") | |
181 | 181 | else { | |
182 | 182 | let $t058345909 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
183 | 183 | let pmtAmount = $t058345909._1 | |
184 | 184 | let pmtAssetId = $t058345909._2 | |
185 | 185 | if ((pmtAssetId != SWOP)) | |
186 | 186 | then throw("Incorrect pmtAssetId") | |
187 | 187 | else { | |
188 | 188 | let lastInterest = getLastInterestInfo() | |
189 | 189 | let $t060266108 = getUserInterestInfo(i.caller, lastInterest) | |
190 | 190 | let userLastInterest = $t060266108._1 | |
191 | 191 | let userSWOPLocked = $t060266108._2 | |
192 | 192 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
193 | 193 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
194 | + | let userNewInterest = lastInterest | |
195 | + | let totalSWOPLocked = getTotalSWOPLocked() | |
196 | + | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
197 | + | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
198 | + | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
194 | 199 | if (true) | |
195 | - | then throw(toString(claimAmount)) | |
196 | - | else { | |
197 | - | let userNewInterest = lastInterest | |
198 | - | let totalSWOPLocked = getTotalSWOPLocked() | |
199 | - | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
200 | - | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
201 | - | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
202 | - | [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPLockedNew), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
203 | - | } | |
200 | + | then throw(toString(userSWOPLockedNew)) | |
201 | + | else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPLockedNew), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
204 | 202 | } | |
205 | 203 | } | |
206 | 204 | ||
207 | 205 | ||
208 | 206 | ||
209 | 207 | @Callable(i) | |
210 | 208 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
211 | 209 | then throw("DApp is inactive at this moment") | |
212 | 210 | else { | |
213 | 211 | let totalSWOPLocked = getTotalSWOPLocked() | |
214 | 212 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
215 | - | let $ | |
216 | - | let userNewInterest = $ | |
217 | - | let claimAmount = $ | |
213 | + | let $t072507305 = claimCalc(i.caller) | |
214 | + | let userNewInterest = $t072507305._1 | |
215 | + | let claimAmount = $t072507305._2 | |
218 | 216 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
219 | 217 | let availableFund = (userSWOPLocked - userVoteAmount) | |
220 | 218 | if ((withdrawAmount > availableFund)) | |
221 | 219 | then throw("withdrawAmount > availableFund") | |
222 | 220 | else { | |
223 | 221 | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
224 | 222 | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
225 | 223 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
226 | 224 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
227 | 225 | [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPamountNew), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), ScriptTransfer(i.caller, withdrawAmount, SWOP), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
228 | 226 | } | |
229 | 227 | } | |
230 | 228 | ||
231 | 229 | ||
232 | 230 | ||
233 | 231 | @Callable(i) | |
234 | 232 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
235 | 233 | then throw("DApp is inactive at this moment") | |
236 | 234 | else { | |
237 | 235 | let lastInterest = getLastInterestInfo() | |
238 | - | let $ | |
239 | - | let userNewInterest = $ | |
240 | - | let claimAmount = $ | |
236 | + | let $t084178472 = claimCalc(i.caller) | |
237 | + | let userNewInterest = $t084178472._1 | |
238 | + | let claimAmount = $t084178472._2 | |
241 | 239 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
242 | 240 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
243 | 241 | if ((claimAmount == 0)) | |
244 | 242 | then throw("You have 0 available SWOP") | |
245 | 243 | else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, claimAmount, SWOP)] | |
246 | 244 | } | |
247 | 245 | ||
248 | 246 | ||
249 | 247 | ||
250 | 248 | @Callable(i) | |
251 | 249 | func claimAndStakeSWOP () = if (!(isActive)) | |
252 | 250 | then throw("DApp is inactive at this moment") | |
253 | 251 | else { | |
254 | 252 | let totalSWOPLocked = getTotalSWOPLocked() | |
255 | 253 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
256 | 254 | let lastInterest = getLastInterestInfo() | |
257 | - | let $ | |
258 | - | let userNewInterest = $ | |
259 | - | let claimAmount = $ | |
255 | + | let $t092519306 = claimCalc(i.caller) | |
256 | + | let userNewInterest = $t092519306._1 | |
257 | + | let claimAmount = $t092519306._2 | |
260 | 258 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
261 | 259 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
262 | 260 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
263 | 261 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
264 | 262 | if ((claimAmount == 0)) | |
265 | 263 | then throw("You have 0 available SWOP") | |
266 | 264 | else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
267 | 265 | } | |
268 | 266 | ||
269 | 267 | ||
270 | 268 | ||
271 | 269 | @Callable(i) | |
272 | 270 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
273 | 271 | then throw("DApp is inactive at this moment") | |
274 | 272 | else { | |
275 | 273 | func sum (a,b) = (a + b) | |
276 | 274 | ||
277 | 275 | func PreviousRewardEntry (accumulated,pool) = { | |
278 | 276 | let poolIndex = value(indexOf(previousPools, pool)) | |
279 | 277 | let poolReward = previousRewards[poolIndex] | |
280 | 278 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
281 | 279 | } | |
282 | 280 | ||
283 | 281 | func CurrentRewardEntry (accumulated,pool) = { | |
284 | 282 | let poolIndex = value(indexOf(currentPools, pool)) | |
285 | 283 | let poolReward = currentRewards[poolIndex] | |
286 | 284 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
287 | 285 | } | |
288 | 286 | ||
289 | 287 | let sumRewardPrevious = { | |
290 | - | let $ | |
291 | - | let $ | |
292 | - | let $ | |
293 | - | if (($ | |
294 | - | then $ | |
288 | + | let $list1107911112 = previousRewards | |
289 | + | let $size1107911112 = size($list1107911112) | |
290 | + | let $acc01107911112 = 0 | |
291 | + | if (($size1107911112 == 0)) | |
292 | + | then $acc01107911112 | |
295 | 293 | else { | |
296 | - | let $ | |
297 | - | if (($ | |
298 | - | then $ | |
294 | + | let $acc11107911112 = sum($acc01107911112, $list1107911112[0]) | |
295 | + | if (($size1107911112 == 1)) | |
296 | + | then $acc11107911112 | |
299 | 297 | else { | |
300 | - | let $ | |
301 | - | if (($ | |
302 | - | then $ | |
298 | + | let $acc21107911112 = sum($acc11107911112, $list1107911112[1]) | |
299 | + | if (($size1107911112 == 2)) | |
300 | + | then $acc21107911112 | |
303 | 301 | else { | |
304 | - | let $ | |
305 | - | if (($ | |
306 | - | then $ | |
302 | + | let $acc31107911112 = sum($acc21107911112, $list1107911112[2]) | |
303 | + | if (($size1107911112 == 3)) | |
304 | + | then $acc31107911112 | |
307 | 305 | else { | |
308 | - | let $ | |
309 | - | if (($ | |
310 | - | then $ | |
306 | + | let $acc41107911112 = sum($acc31107911112, $list1107911112[3]) | |
307 | + | if (($size1107911112 == 4)) | |
308 | + | then $acc41107911112 | |
311 | 309 | else { | |
312 | - | let $ | |
313 | - | if (($ | |
314 | - | then $ | |
310 | + | let $acc51107911112 = sum($acc41107911112, $list1107911112[4]) | |
311 | + | if (($size1107911112 == 5)) | |
312 | + | then $acc51107911112 | |
315 | 313 | else { | |
316 | - | let $ | |
317 | - | if (($ | |
318 | - | then $ | |
314 | + | let $acc61107911112 = sum($acc51107911112, $list1107911112[5]) | |
315 | + | if (($size1107911112 == 6)) | |
316 | + | then $acc61107911112 | |
319 | 317 | else { | |
320 | - | let $ | |
321 | - | if (($ | |
322 | - | then $ | |
318 | + | let $acc71107911112 = sum($acc61107911112, $list1107911112[6]) | |
319 | + | if (($size1107911112 == 7)) | |
320 | + | then $acc71107911112 | |
323 | 321 | else { | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
322 | + | let $acc81107911112 = sum($acc71107911112, $list1107911112[7]) | |
323 | + | if (($size1107911112 == 8)) | |
324 | + | then $acc81107911112 | |
327 | 325 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
326 | + | let $acc91107911112 = sum($acc81107911112, $list1107911112[8]) | |
327 | + | if (($size1107911112 == 9)) | |
328 | + | then $acc91107911112 | |
331 | 329 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
330 | + | let $acc101107911112 = sum($acc91107911112, $list1107911112[9]) | |
331 | + | if (($size1107911112 == 10)) | |
332 | + | then $acc101107911112 | |
335 | 333 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
334 | + | let $acc111107911112 = sum($acc101107911112, $list1107911112[10]) | |
335 | + | if (($size1107911112 == 11)) | |
336 | + | then $acc111107911112 | |
339 | 337 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
338 | + | let $acc121107911112 = sum($acc111107911112, $list1107911112[11]) | |
339 | + | if (($size1107911112 == 12)) | |
340 | + | then $acc121107911112 | |
343 | 341 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
342 | + | let $acc131107911112 = sum($acc121107911112, $list1107911112[12]) | |
343 | + | if (($size1107911112 == 13)) | |
344 | + | then $acc131107911112 | |
347 | 345 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
346 | + | let $acc141107911112 = sum($acc131107911112, $list1107911112[13]) | |
347 | + | if (($size1107911112 == 14)) | |
348 | + | then $acc141107911112 | |
351 | 349 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
350 | + | let $acc151107911112 = sum($acc141107911112, $list1107911112[14]) | |
351 | + | if (($size1107911112 == 15)) | |
352 | + | then $acc151107911112 | |
355 | 353 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
354 | + | let $acc161107911112 = sum($acc151107911112, $list1107911112[15]) | |
355 | + | if (($size1107911112 == 16)) | |
356 | + | then $acc161107911112 | |
359 | 357 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
358 | + | let $acc171107911112 = sum($acc161107911112, $list1107911112[16]) | |
359 | + | if (($size1107911112 == 17)) | |
360 | + | then $acc171107911112 | |
363 | 361 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
362 | + | let $acc181107911112 = sum($acc171107911112, $list1107911112[17]) | |
363 | + | if (($size1107911112 == 18)) | |
364 | + | then $acc181107911112 | |
367 | 365 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
366 | + | let $acc191107911112 = sum($acc181107911112, $list1107911112[18]) | |
367 | + | if (($size1107911112 == 19)) | |
368 | + | then $acc191107911112 | |
371 | 369 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
370 | + | let $acc201107911112 = sum($acc191107911112, $list1107911112[19]) | |
371 | + | if (($size1107911112 == 20)) | |
372 | + | then $acc201107911112 | |
375 | 373 | else { | |
376 | - | let $ | |
374 | + | let $acc211107911112 = sum($acc201107911112, $list1107911112[20]) | |
377 | 375 | throw("List size exceed 20") | |
378 | 376 | } | |
379 | 377 | } | |
380 | 378 | } | |
381 | 379 | } | |
382 | 380 | } | |
383 | 381 | } | |
384 | 382 | } | |
385 | 383 | } | |
386 | 384 | } | |
387 | 385 | } | |
388 | 386 | } | |
389 | 387 | } | |
390 | 388 | } | |
391 | 389 | } | |
392 | 390 | } | |
393 | 391 | } | |
394 | 392 | } | |
395 | 393 | } | |
396 | 394 | } | |
397 | 395 | } | |
398 | 396 | } | |
399 | 397 | } | |
400 | 398 | let sumRewardCurrent = { | |
401 | - | let $ | |
402 | - | let $ | |
403 | - | let $ | |
404 | - | if (($ | |
405 | - | then $ | |
399 | + | let $list1114111173 = currentRewards | |
400 | + | let $size1114111173 = size($list1114111173) | |
401 | + | let $acc01114111173 = 0 | |
402 | + | if (($size1114111173 == 0)) | |
403 | + | then $acc01114111173 | |
406 | 404 | else { | |
407 | - | let $ | |
408 | - | if (($ | |
409 | - | then $ | |
405 | + | let $acc11114111173 = sum($acc01114111173, $list1114111173[0]) | |
406 | + | if (($size1114111173 == 1)) | |
407 | + | then $acc11114111173 | |
410 | 408 | else { | |
411 | - | let $ | |
412 | - | if (($ | |
413 | - | then $ | |
409 | + | let $acc21114111173 = sum($acc11114111173, $list1114111173[1]) | |
410 | + | if (($size1114111173 == 2)) | |
411 | + | then $acc21114111173 | |
414 | 412 | else { | |
415 | - | let $ | |
416 | - | if (($ | |
417 | - | then $ | |
413 | + | let $acc31114111173 = sum($acc21114111173, $list1114111173[2]) | |
414 | + | if (($size1114111173 == 3)) | |
415 | + | then $acc31114111173 | |
418 | 416 | else { | |
419 | - | let $ | |
420 | - | if (($ | |
421 | - | then $ | |
417 | + | let $acc41114111173 = sum($acc31114111173, $list1114111173[3]) | |
418 | + | if (($size1114111173 == 4)) | |
419 | + | then $acc41114111173 | |
422 | 420 | else { | |
423 | - | let $ | |
424 | - | if (($ | |
425 | - | then $ | |
421 | + | let $acc51114111173 = sum($acc41114111173, $list1114111173[4]) | |
422 | + | if (($size1114111173 == 5)) | |
423 | + | then $acc51114111173 | |
426 | 424 | else { | |
427 | - | let $ | |
428 | - | if (($ | |
429 | - | then $ | |
425 | + | let $acc61114111173 = sum($acc51114111173, $list1114111173[5]) | |
426 | + | if (($size1114111173 == 6)) | |
427 | + | then $acc61114111173 | |
430 | 428 | else { | |
431 | - | let $ | |
432 | - | if (($ | |
433 | - | then $ | |
429 | + | let $acc71114111173 = sum($acc61114111173, $list1114111173[6]) | |
430 | + | if (($size1114111173 == 7)) | |
431 | + | then $acc71114111173 | |
434 | 432 | else { | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
433 | + | let $acc81114111173 = sum($acc71114111173, $list1114111173[7]) | |
434 | + | if (($size1114111173 == 8)) | |
435 | + | then $acc81114111173 | |
438 | 436 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
437 | + | let $acc91114111173 = sum($acc81114111173, $list1114111173[8]) | |
438 | + | if (($size1114111173 == 9)) | |
439 | + | then $acc91114111173 | |
442 | 440 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
441 | + | let $acc101114111173 = sum($acc91114111173, $list1114111173[9]) | |
442 | + | if (($size1114111173 == 10)) | |
443 | + | then $acc101114111173 | |
446 | 444 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
445 | + | let $acc111114111173 = sum($acc101114111173, $list1114111173[10]) | |
446 | + | if (($size1114111173 == 11)) | |
447 | + | then $acc111114111173 | |
450 | 448 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
449 | + | let $acc121114111173 = sum($acc111114111173, $list1114111173[11]) | |
450 | + | if (($size1114111173 == 12)) | |
451 | + | then $acc121114111173 | |
454 | 452 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
453 | + | let $acc131114111173 = sum($acc121114111173, $list1114111173[12]) | |
454 | + | if (($size1114111173 == 13)) | |
455 | + | then $acc131114111173 | |
458 | 456 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
457 | + | let $acc141114111173 = sum($acc131114111173, $list1114111173[13]) | |
458 | + | if (($size1114111173 == 14)) | |
459 | + | then $acc141114111173 | |
462 | 460 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
461 | + | let $acc151114111173 = sum($acc141114111173, $list1114111173[14]) | |
462 | + | if (($size1114111173 == 15)) | |
463 | + | then $acc151114111173 | |
466 | 464 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
465 | + | let $acc161114111173 = sum($acc151114111173, $list1114111173[15]) | |
466 | + | if (($size1114111173 == 16)) | |
467 | + | then $acc161114111173 | |
470 | 468 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
469 | + | let $acc171114111173 = sum($acc161114111173, $list1114111173[16]) | |
470 | + | if (($size1114111173 == 17)) | |
471 | + | then $acc171114111173 | |
474 | 472 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
473 | + | let $acc181114111173 = sum($acc171114111173, $list1114111173[17]) | |
474 | + | if (($size1114111173 == 18)) | |
475 | + | then $acc181114111173 | |
478 | 476 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
477 | + | let $acc191114111173 = sum($acc181114111173, $list1114111173[18]) | |
478 | + | if (($size1114111173 == 19)) | |
479 | + | then $acc191114111173 | |
482 | 480 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
481 | + | let $acc201114111173 = sum($acc191114111173, $list1114111173[19]) | |
482 | + | if (($size1114111173 == 20)) | |
483 | + | then $acc201114111173 | |
486 | 484 | else { | |
487 | - | let $ | |
485 | + | let $acc211114111173 = sum($acc201114111173, $list1114111173[20]) | |
488 | 486 | throw("List size exceed 20") | |
489 | 487 | } | |
490 | 488 | } | |
491 | 489 | } | |
492 | 490 | } | |
493 | 491 | } | |
494 | 492 | } | |
495 | 493 | } | |
496 | 494 | } | |
497 | 495 | } | |
498 | 496 | } | |
499 | 497 | } | |
500 | 498 | } | |
501 | 499 | } | |
502 | 500 | } | |
503 | 501 | } | |
504 | 502 | } | |
505 | 503 | } | |
506 | 504 | } | |
507 | 505 | } | |
508 | 506 | } | |
509 | 507 | } | |
510 | 508 | } | |
511 | 509 | if ((height > rewardUpdateHeight)) | |
512 | 510 | then throw("rewardUpdateHeight < heightthen") | |
513 | 511 | else if (if ((sumRewardPrevious != totalVoteShare)) | |
514 | 512 | then true | |
515 | 513 | else (sumRewardCurrent != totalVoteShare)) | |
516 | 514 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
517 | 515 | else { | |
518 | 516 | let previousRewardEntryNew = { | |
519 | - | let $ | |
520 | - | let $ | |
521 | - | let $ | |
522 | - | if (($ | |
523 | - | then $ | |
517 | + | let $list1148911537 = previousPools | |
518 | + | let $size1148911537 = size($list1148911537) | |
519 | + | let $acc01148911537 = nil | |
520 | + | if (($size1148911537 == 0)) | |
521 | + | then $acc01148911537 | |
524 | 522 | else { | |
525 | - | let $ | |
526 | - | if (($ | |
527 | - | then $ | |
523 | + | let $acc11148911537 = PreviousRewardEntry($acc01148911537, $list1148911537[0]) | |
524 | + | if (($size1148911537 == 1)) | |
525 | + | then $acc11148911537 | |
528 | 526 | else { | |
529 | - | let $ | |
530 | - | if (($ | |
531 | - | then $ | |
527 | + | let $acc21148911537 = PreviousRewardEntry($acc11148911537, $list1148911537[1]) | |
528 | + | if (($size1148911537 == 2)) | |
529 | + | then $acc21148911537 | |
532 | 530 | else { | |
533 | - | let $ | |
534 | - | if (($ | |
535 | - | then $ | |
531 | + | let $acc31148911537 = PreviousRewardEntry($acc21148911537, $list1148911537[2]) | |
532 | + | if (($size1148911537 == 3)) | |
533 | + | then $acc31148911537 | |
536 | 534 | else { | |
537 | - | let $ | |
538 | - | if (($ | |
539 | - | then $ | |
535 | + | let $acc41148911537 = PreviousRewardEntry($acc31148911537, $list1148911537[3]) | |
536 | + | if (($size1148911537 == 4)) | |
537 | + | then $acc41148911537 | |
540 | 538 | else { | |
541 | - | let $ | |
542 | - | if (($ | |
543 | - | then $ | |
539 | + | let $acc51148911537 = PreviousRewardEntry($acc41148911537, $list1148911537[4]) | |
540 | + | if (($size1148911537 == 5)) | |
541 | + | then $acc51148911537 | |
544 | 542 | else { | |
545 | - | let $ | |
546 | - | if (($ | |
547 | - | then $ | |
543 | + | let $acc61148911537 = PreviousRewardEntry($acc51148911537, $list1148911537[5]) | |
544 | + | if (($size1148911537 == 6)) | |
545 | + | then $acc61148911537 | |
548 | 546 | else { | |
549 | - | let $ | |
550 | - | if (($ | |
551 | - | then $ | |
547 | + | let $acc71148911537 = PreviousRewardEntry($acc61148911537, $list1148911537[6]) | |
548 | + | if (($size1148911537 == 7)) | |
549 | + | then $acc71148911537 | |
552 | 550 | else { | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
551 | + | let $acc81148911537 = PreviousRewardEntry($acc71148911537, $list1148911537[7]) | |
552 | + | if (($size1148911537 == 8)) | |
553 | + | then $acc81148911537 | |
556 | 554 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
555 | + | let $acc91148911537 = PreviousRewardEntry($acc81148911537, $list1148911537[8]) | |
556 | + | if (($size1148911537 == 9)) | |
557 | + | then $acc91148911537 | |
560 | 558 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
559 | + | let $acc101148911537 = PreviousRewardEntry($acc91148911537, $list1148911537[9]) | |
560 | + | if (($size1148911537 == 10)) | |
561 | + | then $acc101148911537 | |
564 | 562 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
563 | + | let $acc111148911537 = PreviousRewardEntry($acc101148911537, $list1148911537[10]) | |
564 | + | if (($size1148911537 == 11)) | |
565 | + | then $acc111148911537 | |
568 | 566 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
567 | + | let $acc121148911537 = PreviousRewardEntry($acc111148911537, $list1148911537[11]) | |
568 | + | if (($size1148911537 == 12)) | |
569 | + | then $acc121148911537 | |
572 | 570 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
571 | + | let $acc131148911537 = PreviousRewardEntry($acc121148911537, $list1148911537[12]) | |
572 | + | if (($size1148911537 == 13)) | |
573 | + | then $acc131148911537 | |
576 | 574 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
575 | + | let $acc141148911537 = PreviousRewardEntry($acc131148911537, $list1148911537[13]) | |
576 | + | if (($size1148911537 == 14)) | |
577 | + | then $acc141148911537 | |
580 | 578 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
579 | + | let $acc151148911537 = PreviousRewardEntry($acc141148911537, $list1148911537[14]) | |
580 | + | if (($size1148911537 == 15)) | |
581 | + | then $acc151148911537 | |
584 | 582 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
583 | + | let $acc161148911537 = PreviousRewardEntry($acc151148911537, $list1148911537[15]) | |
584 | + | if (($size1148911537 == 16)) | |
585 | + | then $acc161148911537 | |
588 | 586 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
587 | + | let $acc171148911537 = PreviousRewardEntry($acc161148911537, $list1148911537[16]) | |
588 | + | if (($size1148911537 == 17)) | |
589 | + | then $acc171148911537 | |
592 | 590 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
591 | + | let $acc181148911537 = PreviousRewardEntry($acc171148911537, $list1148911537[17]) | |
592 | + | if (($size1148911537 == 18)) | |
593 | + | then $acc181148911537 | |
596 | 594 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
595 | + | let $acc191148911537 = PreviousRewardEntry($acc181148911537, $list1148911537[18]) | |
596 | + | if (($size1148911537 == 19)) | |
597 | + | then $acc191148911537 | |
600 | 598 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
599 | + | let $acc201148911537 = PreviousRewardEntry($acc191148911537, $list1148911537[19]) | |
600 | + | if (($size1148911537 == 20)) | |
601 | + | then $acc201148911537 | |
604 | 602 | else { | |
605 | - | let $ | |
603 | + | let $acc211148911537 = PreviousRewardEntry($acc201148911537, $list1148911537[20]) | |
606 | 604 | throw("List size exceed 20") | |
607 | 605 | } | |
608 | 606 | } | |
609 | 607 | } | |
610 | 608 | } | |
611 | 609 | } | |
612 | 610 | } | |
613 | 611 | } | |
614 | 612 | } | |
615 | 613 | } | |
616 | 614 | } | |
617 | 615 | } | |
618 | 616 | } | |
619 | 617 | } | |
620 | 618 | } | |
621 | 619 | } | |
622 | 620 | } | |
623 | 621 | } | |
624 | 622 | } | |
625 | 623 | } | |
626 | 624 | } | |
627 | 625 | } | |
628 | 626 | } | |
629 | 627 | let currentRewardEntryNew = { | |
630 | - | let $ | |
631 | - | let $ | |
632 | - | let $ | |
633 | - | if (($ | |
634 | - | then $ | |
628 | + | let $list1157011616 = currentPools | |
629 | + | let $size1157011616 = size($list1157011616) | |
630 | + | let $acc01157011616 = nil | |
631 | + | if (($size1157011616 == 0)) | |
632 | + | then $acc01157011616 | |
635 | 633 | else { | |
636 | - | let $ | |
637 | - | if (($ | |
638 | - | then $ | |
634 | + | let $acc11157011616 = CurrentRewardEntry($acc01157011616, $list1157011616[0]) | |
635 | + | if (($size1157011616 == 1)) | |
636 | + | then $acc11157011616 | |
639 | 637 | else { | |
640 | - | let $ | |
641 | - | if (($ | |
642 | - | then $ | |
638 | + | let $acc21157011616 = CurrentRewardEntry($acc11157011616, $list1157011616[1]) | |
639 | + | if (($size1157011616 == 2)) | |
640 | + | then $acc21157011616 | |
643 | 641 | else { | |
644 | - | let $ | |
645 | - | if (($ | |
646 | - | then $ | |
642 | + | let $acc31157011616 = CurrentRewardEntry($acc21157011616, $list1157011616[2]) | |
643 | + | if (($size1157011616 == 3)) | |
644 | + | then $acc31157011616 | |
647 | 645 | else { | |
648 | - | let $ | |
649 | - | if (($ | |
650 | - | then $ | |
646 | + | let $acc41157011616 = CurrentRewardEntry($acc31157011616, $list1157011616[3]) | |
647 | + | if (($size1157011616 == 4)) | |
648 | + | then $acc41157011616 | |
651 | 649 | else { | |
652 | - | let $ | |
653 | - | if (($ | |
654 | - | then $ | |
650 | + | let $acc51157011616 = CurrentRewardEntry($acc41157011616, $list1157011616[4]) | |
651 | + | if (($size1157011616 == 5)) | |
652 | + | then $acc51157011616 | |
655 | 653 | else { | |
656 | - | let $ | |
657 | - | if (($ | |
658 | - | then $ | |
654 | + | let $acc61157011616 = CurrentRewardEntry($acc51157011616, $list1157011616[5]) | |
655 | + | if (($size1157011616 == 6)) | |
656 | + | then $acc61157011616 | |
659 | 657 | else { | |
660 | - | let $ | |
661 | - | if (($ | |
662 | - | then $ | |
658 | + | let $acc71157011616 = CurrentRewardEntry($acc61157011616, $list1157011616[6]) | |
659 | + | if (($size1157011616 == 7)) | |
660 | + | then $acc71157011616 | |
663 | 661 | else { | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
662 | + | let $acc81157011616 = CurrentRewardEntry($acc71157011616, $list1157011616[7]) | |
663 | + | if (($size1157011616 == 8)) | |
664 | + | then $acc81157011616 | |
667 | 665 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
666 | + | let $acc91157011616 = CurrentRewardEntry($acc81157011616, $list1157011616[8]) | |
667 | + | if (($size1157011616 == 9)) | |
668 | + | then $acc91157011616 | |
671 | 669 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
670 | + | let $acc101157011616 = CurrentRewardEntry($acc91157011616, $list1157011616[9]) | |
671 | + | if (($size1157011616 == 10)) | |
672 | + | then $acc101157011616 | |
675 | 673 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
674 | + | let $acc111157011616 = CurrentRewardEntry($acc101157011616, $list1157011616[10]) | |
675 | + | if (($size1157011616 == 11)) | |
676 | + | then $acc111157011616 | |
679 | 677 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
678 | + | let $acc121157011616 = CurrentRewardEntry($acc111157011616, $list1157011616[11]) | |
679 | + | if (($size1157011616 == 12)) | |
680 | + | then $acc121157011616 | |
683 | 681 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
682 | + | let $acc131157011616 = CurrentRewardEntry($acc121157011616, $list1157011616[12]) | |
683 | + | if (($size1157011616 == 13)) | |
684 | + | then $acc131157011616 | |
687 | 685 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
686 | + | let $acc141157011616 = CurrentRewardEntry($acc131157011616, $list1157011616[13]) | |
687 | + | if (($size1157011616 == 14)) | |
688 | + | then $acc141157011616 | |
691 | 689 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
690 | + | let $acc151157011616 = CurrentRewardEntry($acc141157011616, $list1157011616[14]) | |
691 | + | if (($size1157011616 == 15)) | |
692 | + | then $acc151157011616 | |
695 | 693 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
694 | + | let $acc161157011616 = CurrentRewardEntry($acc151157011616, $list1157011616[15]) | |
695 | + | if (($size1157011616 == 16)) | |
696 | + | then $acc161157011616 | |
699 | 697 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
698 | + | let $acc171157011616 = CurrentRewardEntry($acc161157011616, $list1157011616[16]) | |
699 | + | if (($size1157011616 == 17)) | |
700 | + | then $acc171157011616 | |
703 | 701 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
702 | + | let $acc181157011616 = CurrentRewardEntry($acc171157011616, $list1157011616[17]) | |
703 | + | if (($size1157011616 == 18)) | |
704 | + | then $acc181157011616 | |
707 | 705 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
706 | + | let $acc191157011616 = CurrentRewardEntry($acc181157011616, $list1157011616[18]) | |
707 | + | if (($size1157011616 == 19)) | |
708 | + | then $acc191157011616 | |
711 | 709 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
710 | + | let $acc201157011616 = CurrentRewardEntry($acc191157011616, $list1157011616[19]) | |
711 | + | if (($size1157011616 == 20)) | |
712 | + | then $acc201157011616 | |
715 | 713 | else { | |
716 | - | let $ | |
714 | + | let $acc211157011616 = CurrentRewardEntry($acc201157011616, $list1157011616[20]) | |
717 | 715 | throw("List size exceed 20") | |
718 | 716 | } | |
719 | 717 | } | |
720 | 718 | } | |
721 | 719 | } | |
722 | 720 | } | |
723 | 721 | } | |
724 | 722 | } | |
725 | 723 | } | |
726 | 724 | } | |
727 | 725 | } | |
728 | 726 | } | |
729 | 727 | } | |
730 | 728 | } | |
731 | 729 | } | |
732 | 730 | } | |
733 | 731 | } | |
734 | 732 | } | |
735 | 733 | } | |
736 | 734 | } | |
737 | 735 | } | |
738 | 736 | } | |
739 | 737 | } | |
740 | 738 | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
741 | 739 | } | |
742 | 740 | } | |
743 | 741 | ||
744 | 742 | ||
745 | 743 | ||
746 | 744 | @Callable(i) | |
747 | 745 | func shutdown () = if (!(isActive)) | |
748 | 746 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
749 | 747 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
750 | 748 | then throw("Only admin can call this function") | |
751 | 749 | else suspend("Paused by admin") | |
752 | 750 | ||
753 | 751 | ||
754 | 752 | ||
755 | 753 | @Callable(i) | |
756 | 754 | func activate () = if (isActive) | |
757 | 755 | then throw("DApp is already active") | |
758 | 756 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
759 | 757 | then throw("Only admin can call this function") | |
760 | 758 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
761 | 759 | ||
762 | 760 |
github/deemru/w8io/169f3d6 846.51 ms ◑