tx · 9iLa19WKvNFKKtNaXdzm6JKK5zvZBiWxsPn8Dxau52W7 3MumyD14hrRb2Vj3HAifsnCcUpsELAZWxAE: -0.01400000 Waves 2021.03.13 12:39 [1435746] smart account 3MumyD14hrRb2Vj3HAifsnCcUpsELAZWxAE > SELF 0.00000000 Waves
{ "type": 13, "id": "9iLa19WKvNFKKtNaXdzm6JKK5zvZBiWxsPn8Dxau52W7", "fee": 1400000, "feeAssetId": null, "timestamp": 1615628368553, "version": 1, "sender": "3MumyD14hrRb2Vj3HAifsnCcUpsELAZWxAE", "senderPublicKey": "CaPerVhC3un3tdRvvVTPfHiZXN2ygZ5MvD48qeUxb3wA", "proofs": [ "6tSJguF7TS1kjREY2p2njQTpbY2e54P6C5Zmd6b5hpHbp3nognrPXEbJ6fzgjTfqqvCgBgFoSErqoz8bLkNXH8M" ], "script": "base64:AAIEAAAAAAAAACEIAhIAEgASAwoBARIAEgASBwoFGBEYEQESAwoBARIAEgAAAAAvAAAAAAxhZG1pblB1YktleTEBAAAAILoJ1zuJWaTRXaD/8bsz0KrhOWkPy+K9kdY77k9eqOATAAAAAAxhZG1pblB1YktleTIBAAAAIMKRRJmz0rC0DSKlkVi9iLyhN7sIy//djOaU71sWDn5AAAAAAAxhZG1pblB1YktleTMBAAAAII4eFy54sQc79EhOejMoYHYod/yZ5ZIwoyDCz6ir6Q5VAAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgzlkO3OqzXqOuG/1XXufreRE1KXRGMps8FV88BRsoYXsAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAD2tleUxhc3RJbnRlcmVzdAIAAAANbGFzdF9pbnRlcmVzdAAAAAATa2V5VXNlckxhc3RJbnRlcmVzdAIAAAAOX2xhc3RfaW50ZXJlc3QAAAAAEWtleVVzZXJTV09QTG9ja2VkAgAAAAxfU1dPUF9hbW91bnQAAAAAFGtleVVzZXJHZXRCY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QYXVzZWQgYnkgYWRtaW4AAAABaQEAAAAIYWN0aXZhdGUAAAAAAwUAAAAIaXNBY3RpdmUJAAACAAAAAQIAAAAWREFwcCBpcyBhbHJlYWR5IGFjdGl2ZQMJAQAAAAEhAAAAAQkBAAAAD2NvbnRhaW5zRWxlbWVudAAAAAIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkxCQAETAAAAAIFAAAADGFkbWluUHViS2V5MgkABEwAAAACBQAAAAxhZG1pblB1YktleTMJAARMAAAAAgUAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3AFAAAAA25pbAgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5CQAAAgAAAAECAAAAIU9ubHkgYWRtaW4gY2FuIGNhbGwgdGhpcyBmdW5jdGlvbgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAJa2V5QWN0aXZlBgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAhrZXlDYXVzZQUAAAADbmlsAAAAAPOaFyM=", "chainId": 84, "height": 1435746, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AwiT9qY4hF8KeP3tWeD9PZSkazrzmTBzunK1pxyZttzF Next: CJcuRTXTV3CMufKuRsoYQSsyMoSVPRctKVpFX9hmBLYy Diff:
Old | New | Differences | |
---|---|---|---|
186 | 186 | then throw("Incorrect pmtAssetId") | |
187 | 187 | else { | |
188 | 188 | let lastInterest = getLastInterestInfo() | |
189 | + | let $t060256107 = getUserInterestInfo(i.caller, lastInterest) | |
190 | + | let userLastInterest = $t060256107._1 | |
191 | + | let userSWOPLocked = $t060256107._2 | |
189 | 192 | if (true) | |
190 | - | then throw( | |
193 | + | then throw(((toString(userLastInterest) + " ") + toString(userSWOPLocked))) | |
191 | 194 | else { | |
192 | - | let $t060776159 = getUserInterestInfo(i.caller, lastInterest) | |
193 | - | let userLastInterest = $t060776159._1 | |
194 | - | let userSWOPLocked = $t060776159._2 | |
195 | 195 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
196 | 196 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
197 | 197 | let userNewInterest = lastInterest | |
212 | 212 | else { | |
213 | 213 | let totalSWOPLocked = getTotalSWOPLocked() | |
214 | 214 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
215 | - | let $ | |
216 | - | let userNewInterest = $ | |
217 | - | let claimAmount = $ | |
215 | + | let $t072877342 = claimCalc(i.caller) | |
216 | + | let userNewInterest = $t072877342._1 | |
217 | + | let claimAmount = $t072877342._2 | |
218 | 218 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
219 | 219 | let availableFund = (userSWOPLocked - userVoteAmount) | |
220 | 220 | if ((withdrawAmount > availableFund)) | |
235 | 235 | then throw("DApp is inactive at this moment") | |
236 | 236 | else { | |
237 | 237 | let lastInterest = getLastInterestInfo() | |
238 | - | let $ | |
239 | - | let userNewInterest = $ | |
240 | - | let claimAmount = $ | |
238 | + | let $t084548509 = claimCalc(i.caller) | |
239 | + | let userNewInterest = $t084548509._1 | |
240 | + | let claimAmount = $t084548509._2 | |
241 | 241 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
242 | 242 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
243 | 243 | if ((claimAmount == 0)) | |
254 | 254 | let totalSWOPLocked = getTotalSWOPLocked() | |
255 | 255 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
256 | 256 | let lastInterest = getLastInterestInfo() | |
257 | - | let $ | |
258 | - | let userNewInterest = $ | |
259 | - | let claimAmount = $ | |
257 | + | let $t092889343 = claimCalc(i.caller) | |
258 | + | let userNewInterest = $t092889343._1 | |
259 | + | let claimAmount = $t092889343._2 | |
260 | 260 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
261 | 261 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
262 | 262 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | let sumRewardPrevious = { | |
290 | - | let $ | |
291 | - | let $ | |
292 | - | let $ | |
293 | - | if (($ | |
294 | - | then $ | |
290 | + | let $list1111811151 = previousRewards | |
291 | + | let $size1111811151 = size($list1111811151) | |
292 | + | let $acc01111811151 = 0 | |
293 | + | if (($size1111811151 == 0)) | |
294 | + | then $acc01111811151 | |
295 | 295 | else { | |
296 | - | let $ | |
297 | - | if (($ | |
298 | - | then $ | |
296 | + | let $acc11111811151 = sum($acc01111811151, $list1111811151[0]) | |
297 | + | if (($size1111811151 == 1)) | |
298 | + | then $acc11111811151 | |
299 | 299 | else { | |
300 | - | let $ | |
301 | - | if (($ | |
302 | - | then $ | |
300 | + | let $acc21111811151 = sum($acc11111811151, $list1111811151[1]) | |
301 | + | if (($size1111811151 == 2)) | |
302 | + | then $acc21111811151 | |
303 | 303 | else { | |
304 | - | let $ | |
305 | - | if (($ | |
306 | - | then $ | |
304 | + | let $acc31111811151 = sum($acc21111811151, $list1111811151[2]) | |
305 | + | if (($size1111811151 == 3)) | |
306 | + | then $acc31111811151 | |
307 | 307 | else { | |
308 | - | let $ | |
309 | - | if (($ | |
310 | - | then $ | |
308 | + | let $acc41111811151 = sum($acc31111811151, $list1111811151[3]) | |
309 | + | if (($size1111811151 == 4)) | |
310 | + | then $acc41111811151 | |
311 | 311 | else { | |
312 | - | let $ | |
313 | - | if (($ | |
314 | - | then $ | |
312 | + | let $acc51111811151 = sum($acc41111811151, $list1111811151[4]) | |
313 | + | if (($size1111811151 == 5)) | |
314 | + | then $acc51111811151 | |
315 | 315 | else { | |
316 | - | let $ | |
317 | - | if (($ | |
318 | - | then $ | |
316 | + | let $acc61111811151 = sum($acc51111811151, $list1111811151[5]) | |
317 | + | if (($size1111811151 == 6)) | |
318 | + | then $acc61111811151 | |
319 | 319 | else { | |
320 | - | let $ | |
321 | - | if (($ | |
322 | - | then $ | |
320 | + | let $acc71111811151 = sum($acc61111811151, $list1111811151[6]) | |
321 | + | if (($size1111811151 == 7)) | |
322 | + | then $acc71111811151 | |
323 | 323 | else { | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
324 | + | let $acc81111811151 = sum($acc71111811151, $list1111811151[7]) | |
325 | + | if (($size1111811151 == 8)) | |
326 | + | then $acc81111811151 | |
327 | 327 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
328 | + | let $acc91111811151 = sum($acc81111811151, $list1111811151[8]) | |
329 | + | if (($size1111811151 == 9)) | |
330 | + | then $acc91111811151 | |
331 | 331 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
332 | + | let $acc101111811151 = sum($acc91111811151, $list1111811151[9]) | |
333 | + | if (($size1111811151 == 10)) | |
334 | + | then $acc101111811151 | |
335 | 335 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
336 | + | let $acc111111811151 = sum($acc101111811151, $list1111811151[10]) | |
337 | + | if (($size1111811151 == 11)) | |
338 | + | then $acc111111811151 | |
339 | 339 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
340 | + | let $acc121111811151 = sum($acc111111811151, $list1111811151[11]) | |
341 | + | if (($size1111811151 == 12)) | |
342 | + | then $acc121111811151 | |
343 | 343 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
344 | + | let $acc131111811151 = sum($acc121111811151, $list1111811151[12]) | |
345 | + | if (($size1111811151 == 13)) | |
346 | + | then $acc131111811151 | |
347 | 347 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
348 | + | let $acc141111811151 = sum($acc131111811151, $list1111811151[13]) | |
349 | + | if (($size1111811151 == 14)) | |
350 | + | then $acc141111811151 | |
351 | 351 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
352 | + | let $acc151111811151 = sum($acc141111811151, $list1111811151[14]) | |
353 | + | if (($size1111811151 == 15)) | |
354 | + | then $acc151111811151 | |
355 | 355 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
356 | + | let $acc161111811151 = sum($acc151111811151, $list1111811151[15]) | |
357 | + | if (($size1111811151 == 16)) | |
358 | + | then $acc161111811151 | |
359 | 359 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
360 | + | let $acc171111811151 = sum($acc161111811151, $list1111811151[16]) | |
361 | + | if (($size1111811151 == 17)) | |
362 | + | then $acc171111811151 | |
363 | 363 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
364 | + | let $acc181111811151 = sum($acc171111811151, $list1111811151[17]) | |
365 | + | if (($size1111811151 == 18)) | |
366 | + | then $acc181111811151 | |
367 | 367 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
368 | + | let $acc191111811151 = sum($acc181111811151, $list1111811151[18]) | |
369 | + | if (($size1111811151 == 19)) | |
370 | + | then $acc191111811151 | |
371 | 371 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
372 | + | let $acc201111811151 = sum($acc191111811151, $list1111811151[19]) | |
373 | + | if (($size1111811151 == 20)) | |
374 | + | then $acc201111811151 | |
375 | 375 | else { | |
376 | - | let $ | |
376 | + | let $acc211111811151 = sum($acc201111811151, $list1111811151[20]) | |
377 | 377 | throw("List size exceed 20") | |
378 | 378 | } | |
379 | 379 | } | |
398 | 398 | } | |
399 | 399 | } | |
400 | 400 | let sumRewardCurrent = { | |
401 | - | let $ | |
402 | - | let $ | |
403 | - | let $ | |
404 | - | if (($ | |
405 | - | then $ | |
401 | + | let $list1118011212 = currentRewards | |
402 | + | let $size1118011212 = size($list1118011212) | |
403 | + | let $acc01118011212 = 0 | |
404 | + | if (($size1118011212 == 0)) | |
405 | + | then $acc01118011212 | |
406 | 406 | else { | |
407 | - | let $ | |
408 | - | if (($ | |
409 | - | then $ | |
407 | + | let $acc11118011212 = sum($acc01118011212, $list1118011212[0]) | |
408 | + | if (($size1118011212 == 1)) | |
409 | + | then $acc11118011212 | |
410 | 410 | else { | |
411 | - | let $ | |
412 | - | if (($ | |
413 | - | then $ | |
411 | + | let $acc21118011212 = sum($acc11118011212, $list1118011212[1]) | |
412 | + | if (($size1118011212 == 2)) | |
413 | + | then $acc21118011212 | |
414 | 414 | else { | |
415 | - | let $ | |
416 | - | if (($ | |
417 | - | then $ | |
415 | + | let $acc31118011212 = sum($acc21118011212, $list1118011212[2]) | |
416 | + | if (($size1118011212 == 3)) | |
417 | + | then $acc31118011212 | |
418 | 418 | else { | |
419 | - | let $ | |
420 | - | if (($ | |
421 | - | then $ | |
419 | + | let $acc41118011212 = sum($acc31118011212, $list1118011212[3]) | |
420 | + | if (($size1118011212 == 4)) | |
421 | + | then $acc41118011212 | |
422 | 422 | else { | |
423 | - | let $ | |
424 | - | if (($ | |
425 | - | then $ | |
423 | + | let $acc51118011212 = sum($acc41118011212, $list1118011212[4]) | |
424 | + | if (($size1118011212 == 5)) | |
425 | + | then $acc51118011212 | |
426 | 426 | else { | |
427 | - | let $ | |
428 | - | if (($ | |
429 | - | then $ | |
427 | + | let $acc61118011212 = sum($acc51118011212, $list1118011212[5]) | |
428 | + | if (($size1118011212 == 6)) | |
429 | + | then $acc61118011212 | |
430 | 430 | else { | |
431 | - | let $ | |
432 | - | if (($ | |
433 | - | then $ | |
431 | + | let $acc71118011212 = sum($acc61118011212, $list1118011212[6]) | |
432 | + | if (($size1118011212 == 7)) | |
433 | + | then $acc71118011212 | |
434 | 434 | else { | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
435 | + | let $acc81118011212 = sum($acc71118011212, $list1118011212[7]) | |
436 | + | if (($size1118011212 == 8)) | |
437 | + | then $acc81118011212 | |
438 | 438 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
439 | + | let $acc91118011212 = sum($acc81118011212, $list1118011212[8]) | |
440 | + | if (($size1118011212 == 9)) | |
441 | + | then $acc91118011212 | |
442 | 442 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
443 | + | let $acc101118011212 = sum($acc91118011212, $list1118011212[9]) | |
444 | + | if (($size1118011212 == 10)) | |
445 | + | then $acc101118011212 | |
446 | 446 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
447 | + | let $acc111118011212 = sum($acc101118011212, $list1118011212[10]) | |
448 | + | if (($size1118011212 == 11)) | |
449 | + | then $acc111118011212 | |
450 | 450 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
451 | + | let $acc121118011212 = sum($acc111118011212, $list1118011212[11]) | |
452 | + | if (($size1118011212 == 12)) | |
453 | + | then $acc121118011212 | |
454 | 454 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
455 | + | let $acc131118011212 = sum($acc121118011212, $list1118011212[12]) | |
456 | + | if (($size1118011212 == 13)) | |
457 | + | then $acc131118011212 | |
458 | 458 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
459 | + | let $acc141118011212 = sum($acc131118011212, $list1118011212[13]) | |
460 | + | if (($size1118011212 == 14)) | |
461 | + | then $acc141118011212 | |
462 | 462 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
463 | + | let $acc151118011212 = sum($acc141118011212, $list1118011212[14]) | |
464 | + | if (($size1118011212 == 15)) | |
465 | + | then $acc151118011212 | |
466 | 466 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
467 | + | let $acc161118011212 = sum($acc151118011212, $list1118011212[15]) | |
468 | + | if (($size1118011212 == 16)) | |
469 | + | then $acc161118011212 | |
470 | 470 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
471 | + | let $acc171118011212 = sum($acc161118011212, $list1118011212[16]) | |
472 | + | if (($size1118011212 == 17)) | |
473 | + | then $acc171118011212 | |
474 | 474 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
475 | + | let $acc181118011212 = sum($acc171118011212, $list1118011212[17]) | |
476 | + | if (($size1118011212 == 18)) | |
477 | + | then $acc181118011212 | |
478 | 478 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
479 | + | let $acc191118011212 = sum($acc181118011212, $list1118011212[18]) | |
480 | + | if (($size1118011212 == 19)) | |
481 | + | then $acc191118011212 | |
482 | 482 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
483 | + | let $acc201118011212 = sum($acc191118011212, $list1118011212[19]) | |
484 | + | if (($size1118011212 == 20)) | |
485 | + | then $acc201118011212 | |
486 | 486 | else { | |
487 | - | let $ | |
487 | + | let $acc211118011212 = sum($acc201118011212, $list1118011212[20]) | |
488 | 488 | throw("List size exceed 20") | |
489 | 489 | } | |
490 | 490 | } | |
516 | 516 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
517 | 517 | else { | |
518 | 518 | let previousRewardEntryNew = { | |
519 | - | let $ | |
520 | - | let $ | |
521 | - | let $ | |
522 | - | if (($ | |
523 | - | then $ | |
519 | + | let $list1153311581 = previousPools | |
520 | + | let $size1153311581 = size($list1153311581) | |
521 | + | let $acc01153311581 = nil | |
522 | + | if (($size1153311581 == 0)) | |
523 | + | then $acc01153311581 | |
524 | 524 | else { | |
525 | - | let $ | |
526 | - | if (($ | |
527 | - | then $ | |
525 | + | let $acc11153311581 = PreviousRewardEntry($acc01153311581, $list1153311581[0]) | |
526 | + | if (($size1153311581 == 1)) | |
527 | + | then $acc11153311581 | |
528 | 528 | else { | |
529 | - | let $ | |
530 | - | if (($ | |
531 | - | then $ | |
529 | + | let $acc21153311581 = PreviousRewardEntry($acc11153311581, $list1153311581[1]) | |
530 | + | if (($size1153311581 == 2)) | |
531 | + | then $acc21153311581 | |
532 | 532 | else { | |
533 | - | let $ | |
534 | - | if (($ | |
535 | - | then $ | |
533 | + | let $acc31153311581 = PreviousRewardEntry($acc21153311581, $list1153311581[2]) | |
534 | + | if (($size1153311581 == 3)) | |
535 | + | then $acc31153311581 | |
536 | 536 | else { | |
537 | - | let $ | |
538 | - | if (($ | |
539 | - | then $ | |
537 | + | let $acc41153311581 = PreviousRewardEntry($acc31153311581, $list1153311581[3]) | |
538 | + | if (($size1153311581 == 4)) | |
539 | + | then $acc41153311581 | |
540 | 540 | else { | |
541 | - | let $ | |
542 | - | if (($ | |
543 | - | then $ | |
541 | + | let $acc51153311581 = PreviousRewardEntry($acc41153311581, $list1153311581[4]) | |
542 | + | if (($size1153311581 == 5)) | |
543 | + | then $acc51153311581 | |
544 | 544 | else { | |
545 | - | let $ | |
546 | - | if (($ | |
547 | - | then $ | |
545 | + | let $acc61153311581 = PreviousRewardEntry($acc51153311581, $list1153311581[5]) | |
546 | + | if (($size1153311581 == 6)) | |
547 | + | then $acc61153311581 | |
548 | 548 | else { | |
549 | - | let $ | |
550 | - | if (($ | |
551 | - | then $ | |
549 | + | let $acc71153311581 = PreviousRewardEntry($acc61153311581, $list1153311581[6]) | |
550 | + | if (($size1153311581 == 7)) | |
551 | + | then $acc71153311581 | |
552 | 552 | else { | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
553 | + | let $acc81153311581 = PreviousRewardEntry($acc71153311581, $list1153311581[7]) | |
554 | + | if (($size1153311581 == 8)) | |
555 | + | then $acc81153311581 | |
556 | 556 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
557 | + | let $acc91153311581 = PreviousRewardEntry($acc81153311581, $list1153311581[8]) | |
558 | + | if (($size1153311581 == 9)) | |
559 | + | then $acc91153311581 | |
560 | 560 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
561 | + | let $acc101153311581 = PreviousRewardEntry($acc91153311581, $list1153311581[9]) | |
562 | + | if (($size1153311581 == 10)) | |
563 | + | then $acc101153311581 | |
564 | 564 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
565 | + | let $acc111153311581 = PreviousRewardEntry($acc101153311581, $list1153311581[10]) | |
566 | + | if (($size1153311581 == 11)) | |
567 | + | then $acc111153311581 | |
568 | 568 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
569 | + | let $acc121153311581 = PreviousRewardEntry($acc111153311581, $list1153311581[11]) | |
570 | + | if (($size1153311581 == 12)) | |
571 | + | then $acc121153311581 | |
572 | 572 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
573 | + | let $acc131153311581 = PreviousRewardEntry($acc121153311581, $list1153311581[12]) | |
574 | + | if (($size1153311581 == 13)) | |
575 | + | then $acc131153311581 | |
576 | 576 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
577 | + | let $acc141153311581 = PreviousRewardEntry($acc131153311581, $list1153311581[13]) | |
578 | + | if (($size1153311581 == 14)) | |
579 | + | then $acc141153311581 | |
580 | 580 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
581 | + | let $acc151153311581 = PreviousRewardEntry($acc141153311581, $list1153311581[14]) | |
582 | + | if (($size1153311581 == 15)) | |
583 | + | then $acc151153311581 | |
584 | 584 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
585 | + | let $acc161153311581 = PreviousRewardEntry($acc151153311581, $list1153311581[15]) | |
586 | + | if (($size1153311581 == 16)) | |
587 | + | then $acc161153311581 | |
588 | 588 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
589 | + | let $acc171153311581 = PreviousRewardEntry($acc161153311581, $list1153311581[16]) | |
590 | + | if (($size1153311581 == 17)) | |
591 | + | then $acc171153311581 | |
592 | 592 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
593 | + | let $acc181153311581 = PreviousRewardEntry($acc171153311581, $list1153311581[17]) | |
594 | + | if (($size1153311581 == 18)) | |
595 | + | then $acc181153311581 | |
596 | 596 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
597 | + | let $acc191153311581 = PreviousRewardEntry($acc181153311581, $list1153311581[18]) | |
598 | + | if (($size1153311581 == 19)) | |
599 | + | then $acc191153311581 | |
600 | 600 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
601 | + | let $acc201153311581 = PreviousRewardEntry($acc191153311581, $list1153311581[19]) | |
602 | + | if (($size1153311581 == 20)) | |
603 | + | then $acc201153311581 | |
604 | 604 | else { | |
605 | - | let $ | |
605 | + | let $acc211153311581 = PreviousRewardEntry($acc201153311581, $list1153311581[20]) | |
606 | 606 | throw("List size exceed 20") | |
607 | 607 | } | |
608 | 608 | } | |
627 | 627 | } | |
628 | 628 | } | |
629 | 629 | let currentRewardEntryNew = { | |
630 | - | let $ | |
631 | - | let $ | |
632 | - | let $ | |
633 | - | if (($ | |
634 | - | then $ | |
630 | + | let $list1161411660 = currentPools | |
631 | + | let $size1161411660 = size($list1161411660) | |
632 | + | let $acc01161411660 = nil | |
633 | + | if (($size1161411660 == 0)) | |
634 | + | then $acc01161411660 | |
635 | 635 | else { | |
636 | - | let $ | |
637 | - | if (($ | |
638 | - | then $ | |
636 | + | let $acc11161411660 = CurrentRewardEntry($acc01161411660, $list1161411660[0]) | |
637 | + | if (($size1161411660 == 1)) | |
638 | + | then $acc11161411660 | |
639 | 639 | else { | |
640 | - | let $ | |
641 | - | if (($ | |
642 | - | then $ | |
640 | + | let $acc21161411660 = CurrentRewardEntry($acc11161411660, $list1161411660[1]) | |
641 | + | if (($size1161411660 == 2)) | |
642 | + | then $acc21161411660 | |
643 | 643 | else { | |
644 | - | let $ | |
645 | - | if (($ | |
646 | - | then $ | |
644 | + | let $acc31161411660 = CurrentRewardEntry($acc21161411660, $list1161411660[2]) | |
645 | + | if (($size1161411660 == 3)) | |
646 | + | then $acc31161411660 | |
647 | 647 | else { | |
648 | - | let $ | |
649 | - | if (($ | |
650 | - | then $ | |
648 | + | let $acc41161411660 = CurrentRewardEntry($acc31161411660, $list1161411660[3]) | |
649 | + | if (($size1161411660 == 4)) | |
650 | + | then $acc41161411660 | |
651 | 651 | else { | |
652 | - | let $ | |
653 | - | if (($ | |
654 | - | then $ | |
652 | + | let $acc51161411660 = CurrentRewardEntry($acc41161411660, $list1161411660[4]) | |
653 | + | if (($size1161411660 == 5)) | |
654 | + | then $acc51161411660 | |
655 | 655 | else { | |
656 | - | let $ | |
657 | - | if (($ | |
658 | - | then $ | |
656 | + | let $acc61161411660 = CurrentRewardEntry($acc51161411660, $list1161411660[5]) | |
657 | + | if (($size1161411660 == 6)) | |
658 | + | then $acc61161411660 | |
659 | 659 | else { | |
660 | - | let $ | |
661 | - | if (($ | |
662 | - | then $ | |
660 | + | let $acc71161411660 = CurrentRewardEntry($acc61161411660, $list1161411660[6]) | |
661 | + | if (($size1161411660 == 7)) | |
662 | + | then $acc71161411660 | |
663 | 663 | else { | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
664 | + | let $acc81161411660 = CurrentRewardEntry($acc71161411660, $list1161411660[7]) | |
665 | + | if (($size1161411660 == 8)) | |
666 | + | then $acc81161411660 | |
667 | 667 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
668 | + | let $acc91161411660 = CurrentRewardEntry($acc81161411660, $list1161411660[8]) | |
669 | + | if (($size1161411660 == 9)) | |
670 | + | then $acc91161411660 | |
671 | 671 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
672 | + | let $acc101161411660 = CurrentRewardEntry($acc91161411660, $list1161411660[9]) | |
673 | + | if (($size1161411660 == 10)) | |
674 | + | then $acc101161411660 | |
675 | 675 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
676 | + | let $acc111161411660 = CurrentRewardEntry($acc101161411660, $list1161411660[10]) | |
677 | + | if (($size1161411660 == 11)) | |
678 | + | then $acc111161411660 | |
679 | 679 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
680 | + | let $acc121161411660 = CurrentRewardEntry($acc111161411660, $list1161411660[11]) | |
681 | + | if (($size1161411660 == 12)) | |
682 | + | then $acc121161411660 | |
683 | 683 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
684 | + | let $acc131161411660 = CurrentRewardEntry($acc121161411660, $list1161411660[12]) | |
685 | + | if (($size1161411660 == 13)) | |
686 | + | then $acc131161411660 | |
687 | 687 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
688 | + | let $acc141161411660 = CurrentRewardEntry($acc131161411660, $list1161411660[13]) | |
689 | + | if (($size1161411660 == 14)) | |
690 | + | then $acc141161411660 | |
691 | 691 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
692 | + | let $acc151161411660 = CurrentRewardEntry($acc141161411660, $list1161411660[14]) | |
693 | + | if (($size1161411660 == 15)) | |
694 | + | then $acc151161411660 | |
695 | 695 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
696 | + | let $acc161161411660 = CurrentRewardEntry($acc151161411660, $list1161411660[15]) | |
697 | + | if (($size1161411660 == 16)) | |
698 | + | then $acc161161411660 | |
699 | 699 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
700 | + | let $acc171161411660 = CurrentRewardEntry($acc161161411660, $list1161411660[16]) | |
701 | + | if (($size1161411660 == 17)) | |
702 | + | then $acc171161411660 | |
703 | 703 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
704 | + | let $acc181161411660 = CurrentRewardEntry($acc171161411660, $list1161411660[17]) | |
705 | + | if (($size1161411660 == 18)) | |
706 | + | then $acc181161411660 | |
707 | 707 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
708 | + | let $acc191161411660 = CurrentRewardEntry($acc181161411660, $list1161411660[18]) | |
709 | + | if (($size1161411660 == 19)) | |
710 | + | then $acc191161411660 | |
711 | 711 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
712 | + | let $acc201161411660 = CurrentRewardEntry($acc191161411660, $list1161411660[19]) | |
713 | + | if (($size1161411660 == 20)) | |
714 | + | then $acc201161411660 | |
715 | 715 | else { | |
716 | - | let $ | |
716 | + | let $acc211161411660 = CurrentRewardEntry($acc201161411660, $list1161411660[20]) | |
717 | 717 | throw("List size exceed 20") | |
718 | 718 | } | |
719 | 719 | } |
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'3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp') | |
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 | + | let $t060256107 = getUserInterestInfo(i.caller, lastInterest) | |
190 | + | let userLastInterest = $t060256107._1 | |
191 | + | let userSWOPLocked = $t060256107._2 | |
189 | 192 | if (true) | |
190 | - | then throw( | |
193 | + | then throw(((toString(userLastInterest) + " ") + toString(userSWOPLocked))) | |
191 | 194 | else { | |
192 | - | let $t060776159 = getUserInterestInfo(i.caller, lastInterest) | |
193 | - | let userLastInterest = $t060776159._1 | |
194 | - | let userSWOPLocked = $t060776159._2 | |
195 | 195 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
196 | 196 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
197 | 197 | let userNewInterest = lastInterest | |
198 | 198 | let totalSWOPLocked = getTotalSWOPLocked() | |
199 | 199 | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
200 | 200 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
201 | 201 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
202 | 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 | 203 | } | |
204 | 204 | } | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | ||
209 | 209 | @Callable(i) | |
210 | 210 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
211 | 211 | then throw("DApp is inactive at this moment") | |
212 | 212 | else { | |
213 | 213 | let totalSWOPLocked = getTotalSWOPLocked() | |
214 | 214 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
215 | - | let $ | |
216 | - | let userNewInterest = $ | |
217 | - | let claimAmount = $ | |
215 | + | let $t072877342 = claimCalc(i.caller) | |
216 | + | let userNewInterest = $t072877342._1 | |
217 | + | let claimAmount = $t072877342._2 | |
218 | 218 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
219 | 219 | let availableFund = (userSWOPLocked - userVoteAmount) | |
220 | 220 | if ((withdrawAmount > availableFund)) | |
221 | 221 | then throw("withdrawAmount > availableFund") | |
222 | 222 | else { | |
223 | 223 | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
224 | 224 | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
225 | 225 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
226 | 226 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
227 | 227 | [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 | 228 | } | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(i) | |
234 | 234 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
235 | 235 | then throw("DApp is inactive at this moment") | |
236 | 236 | else { | |
237 | 237 | let lastInterest = getLastInterestInfo() | |
238 | - | let $ | |
239 | - | let userNewInterest = $ | |
240 | - | let claimAmount = $ | |
238 | + | let $t084548509 = claimCalc(i.caller) | |
239 | + | let userNewInterest = $t084548509._1 | |
240 | + | let claimAmount = $t084548509._2 | |
241 | 241 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
242 | 242 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
243 | 243 | if ((claimAmount == 0)) | |
244 | 244 | then throw("You have 0 available SWOP") | |
245 | 245 | 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 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(i) | |
251 | 251 | func claimAndStakeSWOP () = if (!(isActive)) | |
252 | 252 | then throw("DApp is inactive at this moment") | |
253 | 253 | else { | |
254 | 254 | let totalSWOPLocked = getTotalSWOPLocked() | |
255 | 255 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
256 | 256 | let lastInterest = getLastInterestInfo() | |
257 | - | let $ | |
258 | - | let userNewInterest = $ | |
259 | - | let claimAmount = $ | |
257 | + | let $t092889343 = claimCalc(i.caller) | |
258 | + | let userNewInterest = $t092889343._1 | |
259 | + | let claimAmount = $t092889343._2 | |
260 | 260 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
261 | 261 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
262 | 262 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
263 | 263 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
264 | 264 | if ((claimAmount == 0)) | |
265 | 265 | then throw("You have 0 available SWOP") | |
266 | 266 | 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 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | ||
271 | 271 | @Callable(i) | |
272 | 272 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
273 | 273 | then throw("DApp is inactive at this moment") | |
274 | 274 | else { | |
275 | 275 | func sum (a,b) = (a + b) | |
276 | 276 | ||
277 | 277 | func PreviousRewardEntry (accumulated,pool) = { | |
278 | 278 | let poolIndex = value(indexOf(previousPools, pool)) | |
279 | 279 | let poolReward = previousRewards[poolIndex] | |
280 | 280 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | func CurrentRewardEntry (accumulated,pool) = { | |
284 | 284 | let poolIndex = value(indexOf(previousPools, pool)) | |
285 | 285 | let poolReward = previousRewards[poolIndex] | |
286 | 286 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | let sumRewardPrevious = { | |
290 | - | let $ | |
291 | - | let $ | |
292 | - | let $ | |
293 | - | if (($ | |
294 | - | then $ | |
290 | + | let $list1111811151 = previousRewards | |
291 | + | let $size1111811151 = size($list1111811151) | |
292 | + | let $acc01111811151 = 0 | |
293 | + | if (($size1111811151 == 0)) | |
294 | + | then $acc01111811151 | |
295 | 295 | else { | |
296 | - | let $ | |
297 | - | if (($ | |
298 | - | then $ | |
296 | + | let $acc11111811151 = sum($acc01111811151, $list1111811151[0]) | |
297 | + | if (($size1111811151 == 1)) | |
298 | + | then $acc11111811151 | |
299 | 299 | else { | |
300 | - | let $ | |
301 | - | if (($ | |
302 | - | then $ | |
300 | + | let $acc21111811151 = sum($acc11111811151, $list1111811151[1]) | |
301 | + | if (($size1111811151 == 2)) | |
302 | + | then $acc21111811151 | |
303 | 303 | else { | |
304 | - | let $ | |
305 | - | if (($ | |
306 | - | then $ | |
304 | + | let $acc31111811151 = sum($acc21111811151, $list1111811151[2]) | |
305 | + | if (($size1111811151 == 3)) | |
306 | + | then $acc31111811151 | |
307 | 307 | else { | |
308 | - | let $ | |
309 | - | if (($ | |
310 | - | then $ | |
308 | + | let $acc41111811151 = sum($acc31111811151, $list1111811151[3]) | |
309 | + | if (($size1111811151 == 4)) | |
310 | + | then $acc41111811151 | |
311 | 311 | else { | |
312 | - | let $ | |
313 | - | if (($ | |
314 | - | then $ | |
312 | + | let $acc51111811151 = sum($acc41111811151, $list1111811151[4]) | |
313 | + | if (($size1111811151 == 5)) | |
314 | + | then $acc51111811151 | |
315 | 315 | else { | |
316 | - | let $ | |
317 | - | if (($ | |
318 | - | then $ | |
316 | + | let $acc61111811151 = sum($acc51111811151, $list1111811151[5]) | |
317 | + | if (($size1111811151 == 6)) | |
318 | + | then $acc61111811151 | |
319 | 319 | else { | |
320 | - | let $ | |
321 | - | if (($ | |
322 | - | then $ | |
320 | + | let $acc71111811151 = sum($acc61111811151, $list1111811151[6]) | |
321 | + | if (($size1111811151 == 7)) | |
322 | + | then $acc71111811151 | |
323 | 323 | else { | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
324 | + | let $acc81111811151 = sum($acc71111811151, $list1111811151[7]) | |
325 | + | if (($size1111811151 == 8)) | |
326 | + | then $acc81111811151 | |
327 | 327 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
328 | + | let $acc91111811151 = sum($acc81111811151, $list1111811151[8]) | |
329 | + | if (($size1111811151 == 9)) | |
330 | + | then $acc91111811151 | |
331 | 331 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
332 | + | let $acc101111811151 = sum($acc91111811151, $list1111811151[9]) | |
333 | + | if (($size1111811151 == 10)) | |
334 | + | then $acc101111811151 | |
335 | 335 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
336 | + | let $acc111111811151 = sum($acc101111811151, $list1111811151[10]) | |
337 | + | if (($size1111811151 == 11)) | |
338 | + | then $acc111111811151 | |
339 | 339 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
340 | + | let $acc121111811151 = sum($acc111111811151, $list1111811151[11]) | |
341 | + | if (($size1111811151 == 12)) | |
342 | + | then $acc121111811151 | |
343 | 343 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
344 | + | let $acc131111811151 = sum($acc121111811151, $list1111811151[12]) | |
345 | + | if (($size1111811151 == 13)) | |
346 | + | then $acc131111811151 | |
347 | 347 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
348 | + | let $acc141111811151 = sum($acc131111811151, $list1111811151[13]) | |
349 | + | if (($size1111811151 == 14)) | |
350 | + | then $acc141111811151 | |
351 | 351 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
352 | + | let $acc151111811151 = sum($acc141111811151, $list1111811151[14]) | |
353 | + | if (($size1111811151 == 15)) | |
354 | + | then $acc151111811151 | |
355 | 355 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
356 | + | let $acc161111811151 = sum($acc151111811151, $list1111811151[15]) | |
357 | + | if (($size1111811151 == 16)) | |
358 | + | then $acc161111811151 | |
359 | 359 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
360 | + | let $acc171111811151 = sum($acc161111811151, $list1111811151[16]) | |
361 | + | if (($size1111811151 == 17)) | |
362 | + | then $acc171111811151 | |
363 | 363 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
364 | + | let $acc181111811151 = sum($acc171111811151, $list1111811151[17]) | |
365 | + | if (($size1111811151 == 18)) | |
366 | + | then $acc181111811151 | |
367 | 367 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
368 | + | let $acc191111811151 = sum($acc181111811151, $list1111811151[18]) | |
369 | + | if (($size1111811151 == 19)) | |
370 | + | then $acc191111811151 | |
371 | 371 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
372 | + | let $acc201111811151 = sum($acc191111811151, $list1111811151[19]) | |
373 | + | if (($size1111811151 == 20)) | |
374 | + | then $acc201111811151 | |
375 | 375 | else { | |
376 | - | let $ | |
376 | + | let $acc211111811151 = sum($acc201111811151, $list1111811151[20]) | |
377 | 377 | throw("List size exceed 20") | |
378 | 378 | } | |
379 | 379 | } | |
380 | 380 | } | |
381 | 381 | } | |
382 | 382 | } | |
383 | 383 | } | |
384 | 384 | } | |
385 | 385 | } | |
386 | 386 | } | |
387 | 387 | } | |
388 | 388 | } | |
389 | 389 | } | |
390 | 390 | } | |
391 | 391 | } | |
392 | 392 | } | |
393 | 393 | } | |
394 | 394 | } | |
395 | 395 | } | |
396 | 396 | } | |
397 | 397 | } | |
398 | 398 | } | |
399 | 399 | } | |
400 | 400 | let sumRewardCurrent = { | |
401 | - | let $ | |
402 | - | let $ | |
403 | - | let $ | |
404 | - | if (($ | |
405 | - | then $ | |
401 | + | let $list1118011212 = currentRewards | |
402 | + | let $size1118011212 = size($list1118011212) | |
403 | + | let $acc01118011212 = 0 | |
404 | + | if (($size1118011212 == 0)) | |
405 | + | then $acc01118011212 | |
406 | 406 | else { | |
407 | - | let $ | |
408 | - | if (($ | |
409 | - | then $ | |
407 | + | let $acc11118011212 = sum($acc01118011212, $list1118011212[0]) | |
408 | + | if (($size1118011212 == 1)) | |
409 | + | then $acc11118011212 | |
410 | 410 | else { | |
411 | - | let $ | |
412 | - | if (($ | |
413 | - | then $ | |
411 | + | let $acc21118011212 = sum($acc11118011212, $list1118011212[1]) | |
412 | + | if (($size1118011212 == 2)) | |
413 | + | then $acc21118011212 | |
414 | 414 | else { | |
415 | - | let $ | |
416 | - | if (($ | |
417 | - | then $ | |
415 | + | let $acc31118011212 = sum($acc21118011212, $list1118011212[2]) | |
416 | + | if (($size1118011212 == 3)) | |
417 | + | then $acc31118011212 | |
418 | 418 | else { | |
419 | - | let $ | |
420 | - | if (($ | |
421 | - | then $ | |
419 | + | let $acc41118011212 = sum($acc31118011212, $list1118011212[3]) | |
420 | + | if (($size1118011212 == 4)) | |
421 | + | then $acc41118011212 | |
422 | 422 | else { | |
423 | - | let $ | |
424 | - | if (($ | |
425 | - | then $ | |
423 | + | let $acc51118011212 = sum($acc41118011212, $list1118011212[4]) | |
424 | + | if (($size1118011212 == 5)) | |
425 | + | then $acc51118011212 | |
426 | 426 | else { | |
427 | - | let $ | |
428 | - | if (($ | |
429 | - | then $ | |
427 | + | let $acc61118011212 = sum($acc51118011212, $list1118011212[5]) | |
428 | + | if (($size1118011212 == 6)) | |
429 | + | then $acc61118011212 | |
430 | 430 | else { | |
431 | - | let $ | |
432 | - | if (($ | |
433 | - | then $ | |
431 | + | let $acc71118011212 = sum($acc61118011212, $list1118011212[6]) | |
432 | + | if (($size1118011212 == 7)) | |
433 | + | then $acc71118011212 | |
434 | 434 | else { | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
435 | + | let $acc81118011212 = sum($acc71118011212, $list1118011212[7]) | |
436 | + | if (($size1118011212 == 8)) | |
437 | + | then $acc81118011212 | |
438 | 438 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
439 | + | let $acc91118011212 = sum($acc81118011212, $list1118011212[8]) | |
440 | + | if (($size1118011212 == 9)) | |
441 | + | then $acc91118011212 | |
442 | 442 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
443 | + | let $acc101118011212 = sum($acc91118011212, $list1118011212[9]) | |
444 | + | if (($size1118011212 == 10)) | |
445 | + | then $acc101118011212 | |
446 | 446 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
447 | + | let $acc111118011212 = sum($acc101118011212, $list1118011212[10]) | |
448 | + | if (($size1118011212 == 11)) | |
449 | + | then $acc111118011212 | |
450 | 450 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
451 | + | let $acc121118011212 = sum($acc111118011212, $list1118011212[11]) | |
452 | + | if (($size1118011212 == 12)) | |
453 | + | then $acc121118011212 | |
454 | 454 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
455 | + | let $acc131118011212 = sum($acc121118011212, $list1118011212[12]) | |
456 | + | if (($size1118011212 == 13)) | |
457 | + | then $acc131118011212 | |
458 | 458 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
459 | + | let $acc141118011212 = sum($acc131118011212, $list1118011212[13]) | |
460 | + | if (($size1118011212 == 14)) | |
461 | + | then $acc141118011212 | |
462 | 462 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
463 | + | let $acc151118011212 = sum($acc141118011212, $list1118011212[14]) | |
464 | + | if (($size1118011212 == 15)) | |
465 | + | then $acc151118011212 | |
466 | 466 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
467 | + | let $acc161118011212 = sum($acc151118011212, $list1118011212[15]) | |
468 | + | if (($size1118011212 == 16)) | |
469 | + | then $acc161118011212 | |
470 | 470 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
471 | + | let $acc171118011212 = sum($acc161118011212, $list1118011212[16]) | |
472 | + | if (($size1118011212 == 17)) | |
473 | + | then $acc171118011212 | |
474 | 474 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
475 | + | let $acc181118011212 = sum($acc171118011212, $list1118011212[17]) | |
476 | + | if (($size1118011212 == 18)) | |
477 | + | then $acc181118011212 | |
478 | 478 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
479 | + | let $acc191118011212 = sum($acc181118011212, $list1118011212[18]) | |
480 | + | if (($size1118011212 == 19)) | |
481 | + | then $acc191118011212 | |
482 | 482 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
483 | + | let $acc201118011212 = sum($acc191118011212, $list1118011212[19]) | |
484 | + | if (($size1118011212 == 20)) | |
485 | + | then $acc201118011212 | |
486 | 486 | else { | |
487 | - | let $ | |
487 | + | let $acc211118011212 = sum($acc201118011212, $list1118011212[20]) | |
488 | 488 | throw("List size exceed 20") | |
489 | 489 | } | |
490 | 490 | } | |
491 | 491 | } | |
492 | 492 | } | |
493 | 493 | } | |
494 | 494 | } | |
495 | 495 | } | |
496 | 496 | } | |
497 | 497 | } | |
498 | 498 | } | |
499 | 499 | } | |
500 | 500 | } | |
501 | 501 | } | |
502 | 502 | } | |
503 | 503 | } | |
504 | 504 | } | |
505 | 505 | } | |
506 | 506 | } | |
507 | 507 | } | |
508 | 508 | } | |
509 | 509 | } | |
510 | 510 | } | |
511 | 511 | if ((height > rewardUpdateHeight)) | |
512 | 512 | then throw("rewardUpdateHeight < heightthen") | |
513 | 513 | else if (if ((sumRewardPrevious != totalVoteShare)) | |
514 | 514 | then true | |
515 | 515 | else (sumRewardCurrent != totalVoteShare)) | |
516 | 516 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
517 | 517 | else { | |
518 | 518 | let previousRewardEntryNew = { | |
519 | - | let $ | |
520 | - | let $ | |
521 | - | let $ | |
522 | - | if (($ | |
523 | - | then $ | |
519 | + | let $list1153311581 = previousPools | |
520 | + | let $size1153311581 = size($list1153311581) | |
521 | + | let $acc01153311581 = nil | |
522 | + | if (($size1153311581 == 0)) | |
523 | + | then $acc01153311581 | |
524 | 524 | else { | |
525 | - | let $ | |
526 | - | if (($ | |
527 | - | then $ | |
525 | + | let $acc11153311581 = PreviousRewardEntry($acc01153311581, $list1153311581[0]) | |
526 | + | if (($size1153311581 == 1)) | |
527 | + | then $acc11153311581 | |
528 | 528 | else { | |
529 | - | let $ | |
530 | - | if (($ | |
531 | - | then $ | |
529 | + | let $acc21153311581 = PreviousRewardEntry($acc11153311581, $list1153311581[1]) | |
530 | + | if (($size1153311581 == 2)) | |
531 | + | then $acc21153311581 | |
532 | 532 | else { | |
533 | - | let $ | |
534 | - | if (($ | |
535 | - | then $ | |
533 | + | let $acc31153311581 = PreviousRewardEntry($acc21153311581, $list1153311581[2]) | |
534 | + | if (($size1153311581 == 3)) | |
535 | + | then $acc31153311581 | |
536 | 536 | else { | |
537 | - | let $ | |
538 | - | if (($ | |
539 | - | then $ | |
537 | + | let $acc41153311581 = PreviousRewardEntry($acc31153311581, $list1153311581[3]) | |
538 | + | if (($size1153311581 == 4)) | |
539 | + | then $acc41153311581 | |
540 | 540 | else { | |
541 | - | let $ | |
542 | - | if (($ | |
543 | - | then $ | |
541 | + | let $acc51153311581 = PreviousRewardEntry($acc41153311581, $list1153311581[4]) | |
542 | + | if (($size1153311581 == 5)) | |
543 | + | then $acc51153311581 | |
544 | 544 | else { | |
545 | - | let $ | |
546 | - | if (($ | |
547 | - | then $ | |
545 | + | let $acc61153311581 = PreviousRewardEntry($acc51153311581, $list1153311581[5]) | |
546 | + | if (($size1153311581 == 6)) | |
547 | + | then $acc61153311581 | |
548 | 548 | else { | |
549 | - | let $ | |
550 | - | if (($ | |
551 | - | then $ | |
549 | + | let $acc71153311581 = PreviousRewardEntry($acc61153311581, $list1153311581[6]) | |
550 | + | if (($size1153311581 == 7)) | |
551 | + | then $acc71153311581 | |
552 | 552 | else { | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
553 | + | let $acc81153311581 = PreviousRewardEntry($acc71153311581, $list1153311581[7]) | |
554 | + | if (($size1153311581 == 8)) | |
555 | + | then $acc81153311581 | |
556 | 556 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
557 | + | let $acc91153311581 = PreviousRewardEntry($acc81153311581, $list1153311581[8]) | |
558 | + | if (($size1153311581 == 9)) | |
559 | + | then $acc91153311581 | |
560 | 560 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
561 | + | let $acc101153311581 = PreviousRewardEntry($acc91153311581, $list1153311581[9]) | |
562 | + | if (($size1153311581 == 10)) | |
563 | + | then $acc101153311581 | |
564 | 564 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
565 | + | let $acc111153311581 = PreviousRewardEntry($acc101153311581, $list1153311581[10]) | |
566 | + | if (($size1153311581 == 11)) | |
567 | + | then $acc111153311581 | |
568 | 568 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
569 | + | let $acc121153311581 = PreviousRewardEntry($acc111153311581, $list1153311581[11]) | |
570 | + | if (($size1153311581 == 12)) | |
571 | + | then $acc121153311581 | |
572 | 572 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
573 | + | let $acc131153311581 = PreviousRewardEntry($acc121153311581, $list1153311581[12]) | |
574 | + | if (($size1153311581 == 13)) | |
575 | + | then $acc131153311581 | |
576 | 576 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
577 | + | let $acc141153311581 = PreviousRewardEntry($acc131153311581, $list1153311581[13]) | |
578 | + | if (($size1153311581 == 14)) | |
579 | + | then $acc141153311581 | |
580 | 580 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
581 | + | let $acc151153311581 = PreviousRewardEntry($acc141153311581, $list1153311581[14]) | |
582 | + | if (($size1153311581 == 15)) | |
583 | + | then $acc151153311581 | |
584 | 584 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
585 | + | let $acc161153311581 = PreviousRewardEntry($acc151153311581, $list1153311581[15]) | |
586 | + | if (($size1153311581 == 16)) | |
587 | + | then $acc161153311581 | |
588 | 588 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
589 | + | let $acc171153311581 = PreviousRewardEntry($acc161153311581, $list1153311581[16]) | |
590 | + | if (($size1153311581 == 17)) | |
591 | + | then $acc171153311581 | |
592 | 592 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
593 | + | let $acc181153311581 = PreviousRewardEntry($acc171153311581, $list1153311581[17]) | |
594 | + | if (($size1153311581 == 18)) | |
595 | + | then $acc181153311581 | |
596 | 596 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
597 | + | let $acc191153311581 = PreviousRewardEntry($acc181153311581, $list1153311581[18]) | |
598 | + | if (($size1153311581 == 19)) | |
599 | + | then $acc191153311581 | |
600 | 600 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
601 | + | let $acc201153311581 = PreviousRewardEntry($acc191153311581, $list1153311581[19]) | |
602 | + | if (($size1153311581 == 20)) | |
603 | + | then $acc201153311581 | |
604 | 604 | else { | |
605 | - | let $ | |
605 | + | let $acc211153311581 = PreviousRewardEntry($acc201153311581, $list1153311581[20]) | |
606 | 606 | throw("List size exceed 20") | |
607 | 607 | } | |
608 | 608 | } | |
609 | 609 | } | |
610 | 610 | } | |
611 | 611 | } | |
612 | 612 | } | |
613 | 613 | } | |
614 | 614 | } | |
615 | 615 | } | |
616 | 616 | } | |
617 | 617 | } | |
618 | 618 | } | |
619 | 619 | } | |
620 | 620 | } | |
621 | 621 | } | |
622 | 622 | } | |
623 | 623 | } | |
624 | 624 | } | |
625 | 625 | } | |
626 | 626 | } | |
627 | 627 | } | |
628 | 628 | } | |
629 | 629 | let currentRewardEntryNew = { | |
630 | - | let $ | |
631 | - | let $ | |
632 | - | let $ | |
633 | - | if (($ | |
634 | - | then $ | |
630 | + | let $list1161411660 = currentPools | |
631 | + | let $size1161411660 = size($list1161411660) | |
632 | + | let $acc01161411660 = nil | |
633 | + | if (($size1161411660 == 0)) | |
634 | + | then $acc01161411660 | |
635 | 635 | else { | |
636 | - | let $ | |
637 | - | if (($ | |
638 | - | then $ | |
636 | + | let $acc11161411660 = CurrentRewardEntry($acc01161411660, $list1161411660[0]) | |
637 | + | if (($size1161411660 == 1)) | |
638 | + | then $acc11161411660 | |
639 | 639 | else { | |
640 | - | let $ | |
641 | - | if (($ | |
642 | - | then $ | |
640 | + | let $acc21161411660 = CurrentRewardEntry($acc11161411660, $list1161411660[1]) | |
641 | + | if (($size1161411660 == 2)) | |
642 | + | then $acc21161411660 | |
643 | 643 | else { | |
644 | - | let $ | |
645 | - | if (($ | |
646 | - | then $ | |
644 | + | let $acc31161411660 = CurrentRewardEntry($acc21161411660, $list1161411660[2]) | |
645 | + | if (($size1161411660 == 3)) | |
646 | + | then $acc31161411660 | |
647 | 647 | else { | |
648 | - | let $ | |
649 | - | if (($ | |
650 | - | then $ | |
648 | + | let $acc41161411660 = CurrentRewardEntry($acc31161411660, $list1161411660[3]) | |
649 | + | if (($size1161411660 == 4)) | |
650 | + | then $acc41161411660 | |
651 | 651 | else { | |
652 | - | let $ | |
653 | - | if (($ | |
654 | - | then $ | |
652 | + | let $acc51161411660 = CurrentRewardEntry($acc41161411660, $list1161411660[4]) | |
653 | + | if (($size1161411660 == 5)) | |
654 | + | then $acc51161411660 | |
655 | 655 | else { | |
656 | - | let $ | |
657 | - | if (($ | |
658 | - | then $ | |
656 | + | let $acc61161411660 = CurrentRewardEntry($acc51161411660, $list1161411660[5]) | |
657 | + | if (($size1161411660 == 6)) | |
658 | + | then $acc61161411660 | |
659 | 659 | else { | |
660 | - | let $ | |
661 | - | if (($ | |
662 | - | then $ | |
660 | + | let $acc71161411660 = CurrentRewardEntry($acc61161411660, $list1161411660[6]) | |
661 | + | if (($size1161411660 == 7)) | |
662 | + | then $acc71161411660 | |
663 | 663 | else { | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
664 | + | let $acc81161411660 = CurrentRewardEntry($acc71161411660, $list1161411660[7]) | |
665 | + | if (($size1161411660 == 8)) | |
666 | + | then $acc81161411660 | |
667 | 667 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
668 | + | let $acc91161411660 = CurrentRewardEntry($acc81161411660, $list1161411660[8]) | |
669 | + | if (($size1161411660 == 9)) | |
670 | + | then $acc91161411660 | |
671 | 671 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
672 | + | let $acc101161411660 = CurrentRewardEntry($acc91161411660, $list1161411660[9]) | |
673 | + | if (($size1161411660 == 10)) | |
674 | + | then $acc101161411660 | |
675 | 675 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
676 | + | let $acc111161411660 = CurrentRewardEntry($acc101161411660, $list1161411660[10]) | |
677 | + | if (($size1161411660 == 11)) | |
678 | + | then $acc111161411660 | |
679 | 679 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
680 | + | let $acc121161411660 = CurrentRewardEntry($acc111161411660, $list1161411660[11]) | |
681 | + | if (($size1161411660 == 12)) | |
682 | + | then $acc121161411660 | |
683 | 683 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
684 | + | let $acc131161411660 = CurrentRewardEntry($acc121161411660, $list1161411660[12]) | |
685 | + | if (($size1161411660 == 13)) | |
686 | + | then $acc131161411660 | |
687 | 687 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
688 | + | let $acc141161411660 = CurrentRewardEntry($acc131161411660, $list1161411660[13]) | |
689 | + | if (($size1161411660 == 14)) | |
690 | + | then $acc141161411660 | |
691 | 691 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
692 | + | let $acc151161411660 = CurrentRewardEntry($acc141161411660, $list1161411660[14]) | |
693 | + | if (($size1161411660 == 15)) | |
694 | + | then $acc151161411660 | |
695 | 695 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
696 | + | let $acc161161411660 = CurrentRewardEntry($acc151161411660, $list1161411660[15]) | |
697 | + | if (($size1161411660 == 16)) | |
698 | + | then $acc161161411660 | |
699 | 699 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
700 | + | let $acc171161411660 = CurrentRewardEntry($acc161161411660, $list1161411660[16]) | |
701 | + | if (($size1161411660 == 17)) | |
702 | + | then $acc171161411660 | |
703 | 703 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
704 | + | let $acc181161411660 = CurrentRewardEntry($acc171161411660, $list1161411660[17]) | |
705 | + | if (($size1161411660 == 18)) | |
706 | + | then $acc181161411660 | |
707 | 707 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
708 | + | let $acc191161411660 = CurrentRewardEntry($acc181161411660, $list1161411660[18]) | |
709 | + | if (($size1161411660 == 19)) | |
710 | + | then $acc191161411660 | |
711 | 711 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
712 | + | let $acc201161411660 = CurrentRewardEntry($acc191161411660, $list1161411660[19]) | |
713 | + | if (($size1161411660 == 20)) | |
714 | + | then $acc201161411660 | |
715 | 715 | else { | |
716 | - | let $ | |
716 | + | let $acc211161411660 = CurrentRewardEntry($acc201161411660, $list1161411660[20]) | |
717 | 717 | throw("List size exceed 20") | |
718 | 718 | } | |
719 | 719 | } | |
720 | 720 | } | |
721 | 721 | } | |
722 | 722 | } | |
723 | 723 | } | |
724 | 724 | } | |
725 | 725 | } | |
726 | 726 | } | |
727 | 727 | } | |
728 | 728 | } | |
729 | 729 | } | |
730 | 730 | } | |
731 | 731 | } | |
732 | 732 | } | |
733 | 733 | } | |
734 | 734 | } | |
735 | 735 | } | |
736 | 736 | } | |
737 | 737 | } | |
738 | 738 | } | |
739 | 739 | } | |
740 | 740 | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
741 | 741 | } | |
742 | 742 | } | |
743 | 743 | ||
744 | 744 | ||
745 | 745 | ||
746 | 746 | @Callable(i) | |
747 | 747 | func setTotalRewardPerBlock (totalRewardPerBlockNew) = if (!(isActive)) | |
748 | 748 | then throw("DApp is inactive at this moment") | |
749 | 749 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
750 | 750 | then throw("Only admin can call this function") | |
751 | 751 | else { | |
752 | 752 | let totalRewardPerBlockPrevious = getIntegerValue(this, keyTotalRewardPerBlockCurrent) | |
753 | 753 | [IntegerEntry(keyTotalRewardPerBlockCurrent, totalRewardPerBlockNew), IntegerEntry(keyTotalRewardPerBlockPrevious, totalRewardPerBlockPrevious)] | |
754 | 754 | } | |
755 | 755 | ||
756 | 756 | ||
757 | 757 | ||
758 | 758 | @Callable(i) | |
759 | 759 | func shutdown () = if (!(isActive)) | |
760 | 760 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
761 | 761 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
762 | 762 | then throw("Only admin can call this function") | |
763 | 763 | else suspend("Paused by admin") | |
764 | 764 | ||
765 | 765 | ||
766 | 766 | ||
767 | 767 | @Callable(i) | |
768 | 768 | func activate () = if (isActive) | |
769 | 769 | then throw("DApp is already active") | |
770 | 770 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
771 | 771 | then throw("Only admin can call this function") | |
772 | 772 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
773 | 773 | ||
774 | 774 |
github/deemru/w8io/169f3d6 829.18 ms ◑