tx · CKuiPBEiydMsdCJih5QQEFgs87D21tMLNaqBfNgEGPHH 3MumyD14hrRb2Vj3HAifsnCcUpsELAZWxAE: -0.01400000 Waves 2021.03.13 12:37 [1435744] smart account 3MumyD14hrRb2Vj3HAifsnCcUpsELAZWxAE > SELF 0.00000000 Waves
{ "type": 13, "id": "CKuiPBEiydMsdCJih5QQEFgs87D21tMLNaqBfNgEGPHH", "fee": 1400000, "feeAssetId": null, "timestamp": 1615628283695, "version": 1, "sender": "3MumyD14hrRb2Vj3HAifsnCcUpsELAZWxAE", "senderPublicKey": "CaPerVhC3un3tdRvvVTPfHiZXN2ygZ5MvD48qeUxb3wA", "proofs": [ "2m9XRcTScwZfyHKdYKU2QaYF4xtTVHn4GUJk6YoNEAEW9Sy4Qb953Xg58ZBweUCmsXPx4J4fEWZsFJYbkfbbF8EH" ], "script": "base64:AAIEAAAAAAAAACEIAhIAEgASAwoBARIAEgASBwoFGBEYEQESAwoBARIAEgAAAAAvAAAAAAxhZG1pblB1YktleTEBAAAAILoJ1zuJWaTRXaD/8bsz0KrhOWkPy+K9kdY77k9eqOATAAAAAAxhZG1pblB1YktleTIBAAAAIMKRRJmz0rC0DSKlkVi9iLyhN7sIy//djOaU71sWDn5AAAAAAAxhZG1pblB1YktleTMBAAAAII4eFy54sQc79EhOejMoYHYod/yZ5ZIwoyDCz6ir6Q5VAAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgzlkO3OqzXqOuG/1XXufreRE1KXRGMps8FV88BRsoYXsAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAD2tleUxhc3RJbnRlcmVzdAIAAAANbGFzdF9pbnRlcmVzdAAAAAATa2V5VXNlckxhc3RJbnRlcmVzdAIAAAAOX2xhc3RfaW50ZXJlc3QAAAAAEWtleVVzZXJTV09QTG9ja2VkAgAAAAxfU1dPUF9hbW91bnQAAAAAFGtleVVzZXJHZXRCY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PUGF1c2VkIGJ5IGFkbWluAAAAAWkBAAAACGFjdGl2YXRlAAAAAAMFAAAACGlzQWN0aXZlCQAAAgAAAAECAAAAFkRBcHAgaXMgYWxyZWFkeSBhY3RpdmUDCQEAAAABIQAAAAEJAQAAAA9jb250YWluc0VsZW1lbnQAAAACCQAETAAAAAIFAAAADGFkbWluUHViS2V5MQkABEwAAAACBQAAAAxhZG1pblB1YktleTIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkzCQAETAAAAAIFAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wBQAAAANuaWwIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAACFPbmx5IGFkbWluIGNhbiBjYWxsIHRoaXMgZnVuY3Rpb24JAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACWtleUFjdGl2ZQYJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIa2V5Q2F1c2UFAAAAA25pbAAAAADETgB0", "chainId": 84, "height": 1435744, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DwZd7KhKMU7H7fApbGNiMNoLAn9Cw9vPMpZyfQz8SUgw Next: AwiT9qY4hF8KeP3tWeD9PZSkazrzmTBzunK1pxyZttzF Diff:
Old | New | Differences | |
---|---|---|---|
53 | 53 | ||
54 | 54 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
55 | 55 | ||
56 | - | let farmingSWOPAddress = Address(base58' | |
56 | + | let farmingSWOPAddress = Address(base58'3N8DpPzjqS5qQkKRL5kmbTt3c4MdxefVhc5') | |
57 | 57 | ||
58 | 58 | let votingLiteContract = Address(base58'3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp') | |
59 | 59 | ||
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 | |
192 | - | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
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) | |
189 | + | if (true) | |
190 | + | then throw(toString(lastInterest)) | |
191 | + | else { | |
192 | + | let $t060796161 = getUserInterestInfo(i.caller, lastInterest) | |
193 | + | let userLastInterest = $t060796161._1 | |
194 | + | let userSWOPLocked = $t060796161._2 | |
195 | + | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
196 | + | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
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) | |
199 | 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 | 204 | } | |
201 | 205 | } | |
202 | 206 | ||
208 | 212 | else { | |
209 | 213 | let totalSWOPLocked = getTotalSWOPLocked() | |
210 | 214 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
211 | - | let $ | |
212 | - | let userNewInterest = $ | |
213 | - | let claimAmount = $ | |
215 | + | let $t072457300 = claimCalc(i.caller) | |
216 | + | let userNewInterest = $t072457300._1 | |
217 | + | let claimAmount = $t072457300._2 | |
214 | 218 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
215 | 219 | let availableFund = (userSWOPLocked - userVoteAmount) | |
216 | 220 | if ((withdrawAmount > availableFund)) | |
231 | 235 | then throw("DApp is inactive at this moment") | |
232 | 236 | else { | |
233 | 237 | let lastInterest = getLastInterestInfo() | |
234 | - | let $ | |
235 | - | let userNewInterest = $ | |
236 | - | let claimAmount = $ | |
238 | + | let $t084128467 = claimCalc(i.caller) | |
239 | + | let userNewInterest = $t084128467._1 | |
240 | + | let claimAmount = $t084128467._2 | |
237 | 241 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
238 | 242 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
239 | 243 | if ((claimAmount == 0)) | |
250 | 254 | let totalSWOPLocked = getTotalSWOPLocked() | |
251 | 255 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
252 | 256 | let lastInterest = getLastInterestInfo() | |
253 | - | let $ | |
254 | - | let userNewInterest = $ | |
255 | - | let claimAmount = $ | |
257 | + | let $t092469301 = claimCalc(i.caller) | |
258 | + | let userNewInterest = $t092469301._1 | |
259 | + | let claimAmount = $t092469301._2 | |
256 | 260 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
257 | 261 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
258 | 262 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
283 | 287 | } | |
284 | 288 | ||
285 | 289 | let sumRewardPrevious = { | |
286 | - | let $ | |
287 | - | let $ | |
288 | - | let $ | |
289 | - | if (($ | |
290 | - | then $ | |
290 | + | let $list1107611109 = previousRewards | |
291 | + | let $size1107611109 = size($list1107611109) | |
292 | + | let $acc01107611109 = 0 | |
293 | + | if (($size1107611109 == 0)) | |
294 | + | then $acc01107611109 | |
291 | 295 | else { | |
292 | - | let $ | |
293 | - | if (($ | |
294 | - | then $ | |
296 | + | let $acc11107611109 = sum($acc01107611109, $list1107611109[0]) | |
297 | + | if (($size1107611109 == 1)) | |
298 | + | then $acc11107611109 | |
295 | 299 | else { | |
296 | - | let $ | |
297 | - | if (($ | |
298 | - | then $ | |
300 | + | let $acc21107611109 = sum($acc11107611109, $list1107611109[1]) | |
301 | + | if (($size1107611109 == 2)) | |
302 | + | then $acc21107611109 | |
299 | 303 | else { | |
300 | - | let $ | |
301 | - | if (($ | |
302 | - | then $ | |
304 | + | let $acc31107611109 = sum($acc21107611109, $list1107611109[2]) | |
305 | + | if (($size1107611109 == 3)) | |
306 | + | then $acc31107611109 | |
303 | 307 | else { | |
304 | - | let $ | |
305 | - | if (($ | |
306 | - | then $ | |
308 | + | let $acc41107611109 = sum($acc31107611109, $list1107611109[3]) | |
309 | + | if (($size1107611109 == 4)) | |
310 | + | then $acc41107611109 | |
307 | 311 | else { | |
308 | - | let $ | |
309 | - | if (($ | |
310 | - | then $ | |
312 | + | let $acc51107611109 = sum($acc41107611109, $list1107611109[4]) | |
313 | + | if (($size1107611109 == 5)) | |
314 | + | then $acc51107611109 | |
311 | 315 | else { | |
312 | - | let $ | |
313 | - | if (($ | |
314 | - | then $ | |
316 | + | let $acc61107611109 = sum($acc51107611109, $list1107611109[5]) | |
317 | + | if (($size1107611109 == 6)) | |
318 | + | then $acc61107611109 | |
315 | 319 | else { | |
316 | - | let $ | |
317 | - | if (($ | |
318 | - | then $ | |
320 | + | let $acc71107611109 = sum($acc61107611109, $list1107611109[6]) | |
321 | + | if (($size1107611109 == 7)) | |
322 | + | then $acc71107611109 | |
319 | 323 | else { | |
320 | - | let $ | |
321 | - | if (($ | |
322 | - | then $ | |
324 | + | let $acc81107611109 = sum($acc71107611109, $list1107611109[7]) | |
325 | + | if (($size1107611109 == 8)) | |
326 | + | then $acc81107611109 | |
323 | 327 | else { | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
328 | + | let $acc91107611109 = sum($acc81107611109, $list1107611109[8]) | |
329 | + | if (($size1107611109 == 9)) | |
330 | + | then $acc91107611109 | |
327 | 331 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
332 | + | let $acc101107611109 = sum($acc91107611109, $list1107611109[9]) | |
333 | + | if (($size1107611109 == 10)) | |
334 | + | then $acc101107611109 | |
331 | 335 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
336 | + | let $acc111107611109 = sum($acc101107611109, $list1107611109[10]) | |
337 | + | if (($size1107611109 == 11)) | |
338 | + | then $acc111107611109 | |
335 | 339 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
340 | + | let $acc121107611109 = sum($acc111107611109, $list1107611109[11]) | |
341 | + | if (($size1107611109 == 12)) | |
342 | + | then $acc121107611109 | |
339 | 343 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
344 | + | let $acc131107611109 = sum($acc121107611109, $list1107611109[12]) | |
345 | + | if (($size1107611109 == 13)) | |
346 | + | then $acc131107611109 | |
343 | 347 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
348 | + | let $acc141107611109 = sum($acc131107611109, $list1107611109[13]) | |
349 | + | if (($size1107611109 == 14)) | |
350 | + | then $acc141107611109 | |
347 | 351 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
352 | + | let $acc151107611109 = sum($acc141107611109, $list1107611109[14]) | |
353 | + | if (($size1107611109 == 15)) | |
354 | + | then $acc151107611109 | |
351 | 355 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
356 | + | let $acc161107611109 = sum($acc151107611109, $list1107611109[15]) | |
357 | + | if (($size1107611109 == 16)) | |
358 | + | then $acc161107611109 | |
355 | 359 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
360 | + | let $acc171107611109 = sum($acc161107611109, $list1107611109[16]) | |
361 | + | if (($size1107611109 == 17)) | |
362 | + | then $acc171107611109 | |
359 | 363 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
364 | + | let $acc181107611109 = sum($acc171107611109, $list1107611109[17]) | |
365 | + | if (($size1107611109 == 18)) | |
366 | + | then $acc181107611109 | |
363 | 367 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
368 | + | let $acc191107611109 = sum($acc181107611109, $list1107611109[18]) | |
369 | + | if (($size1107611109 == 19)) | |
370 | + | then $acc191107611109 | |
367 | 371 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
372 | + | let $acc201107611109 = sum($acc191107611109, $list1107611109[19]) | |
373 | + | if (($size1107611109 == 20)) | |
374 | + | then $acc201107611109 | |
371 | 375 | else { | |
372 | - | let $ | |
376 | + | let $acc211107611109 = sum($acc201107611109, $list1107611109[20]) | |
373 | 377 | throw("List size exceed 20") | |
374 | 378 | } | |
375 | 379 | } | |
394 | 398 | } | |
395 | 399 | } | |
396 | 400 | let sumRewardCurrent = { | |
397 | - | let $ | |
398 | - | let $ | |
399 | - | let $ | |
400 | - | if (($ | |
401 | - | then $ | |
401 | + | let $list1113811170 = currentRewards | |
402 | + | let $size1113811170 = size($list1113811170) | |
403 | + | let $acc01113811170 = 0 | |
404 | + | if (($size1113811170 == 0)) | |
405 | + | then $acc01113811170 | |
402 | 406 | else { | |
403 | - | let $ | |
404 | - | if (($ | |
405 | - | then $ | |
407 | + | let $acc11113811170 = sum($acc01113811170, $list1113811170[0]) | |
408 | + | if (($size1113811170 == 1)) | |
409 | + | then $acc11113811170 | |
406 | 410 | else { | |
407 | - | let $ | |
408 | - | if (($ | |
409 | - | then $ | |
411 | + | let $acc21113811170 = sum($acc11113811170, $list1113811170[1]) | |
412 | + | if (($size1113811170 == 2)) | |
413 | + | then $acc21113811170 | |
410 | 414 | else { | |
411 | - | let $ | |
412 | - | if (($ | |
413 | - | then $ | |
415 | + | let $acc31113811170 = sum($acc21113811170, $list1113811170[2]) | |
416 | + | if (($size1113811170 == 3)) | |
417 | + | then $acc31113811170 | |
414 | 418 | else { | |
415 | - | let $ | |
416 | - | if (($ | |
417 | - | then $ | |
419 | + | let $acc41113811170 = sum($acc31113811170, $list1113811170[3]) | |
420 | + | if (($size1113811170 == 4)) | |
421 | + | then $acc41113811170 | |
418 | 422 | else { | |
419 | - | let $ | |
420 | - | if (($ | |
421 | - | then $ | |
423 | + | let $acc51113811170 = sum($acc41113811170, $list1113811170[4]) | |
424 | + | if (($size1113811170 == 5)) | |
425 | + | then $acc51113811170 | |
422 | 426 | else { | |
423 | - | let $ | |
424 | - | if (($ | |
425 | - | then $ | |
427 | + | let $acc61113811170 = sum($acc51113811170, $list1113811170[5]) | |
428 | + | if (($size1113811170 == 6)) | |
429 | + | then $acc61113811170 | |
426 | 430 | else { | |
427 | - | let $ | |
428 | - | if (($ | |
429 | - | then $ | |
431 | + | let $acc71113811170 = sum($acc61113811170, $list1113811170[6]) | |
432 | + | if (($size1113811170 == 7)) | |
433 | + | then $acc71113811170 | |
430 | 434 | else { | |
431 | - | let $ | |
432 | - | if (($ | |
433 | - | then $ | |
435 | + | let $acc81113811170 = sum($acc71113811170, $list1113811170[7]) | |
436 | + | if (($size1113811170 == 8)) | |
437 | + | then $acc81113811170 | |
434 | 438 | else { | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
439 | + | let $acc91113811170 = sum($acc81113811170, $list1113811170[8]) | |
440 | + | if (($size1113811170 == 9)) | |
441 | + | then $acc91113811170 | |
438 | 442 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
443 | + | let $acc101113811170 = sum($acc91113811170, $list1113811170[9]) | |
444 | + | if (($size1113811170 == 10)) | |
445 | + | then $acc101113811170 | |
442 | 446 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
447 | + | let $acc111113811170 = sum($acc101113811170, $list1113811170[10]) | |
448 | + | if (($size1113811170 == 11)) | |
449 | + | then $acc111113811170 | |
446 | 450 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
451 | + | let $acc121113811170 = sum($acc111113811170, $list1113811170[11]) | |
452 | + | if (($size1113811170 == 12)) | |
453 | + | then $acc121113811170 | |
450 | 454 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
455 | + | let $acc131113811170 = sum($acc121113811170, $list1113811170[12]) | |
456 | + | if (($size1113811170 == 13)) | |
457 | + | then $acc131113811170 | |
454 | 458 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
459 | + | let $acc141113811170 = sum($acc131113811170, $list1113811170[13]) | |
460 | + | if (($size1113811170 == 14)) | |
461 | + | then $acc141113811170 | |
458 | 462 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
463 | + | let $acc151113811170 = sum($acc141113811170, $list1113811170[14]) | |
464 | + | if (($size1113811170 == 15)) | |
465 | + | then $acc151113811170 | |
462 | 466 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
467 | + | let $acc161113811170 = sum($acc151113811170, $list1113811170[15]) | |
468 | + | if (($size1113811170 == 16)) | |
469 | + | then $acc161113811170 | |
466 | 470 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
471 | + | let $acc171113811170 = sum($acc161113811170, $list1113811170[16]) | |
472 | + | if (($size1113811170 == 17)) | |
473 | + | then $acc171113811170 | |
470 | 474 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
475 | + | let $acc181113811170 = sum($acc171113811170, $list1113811170[17]) | |
476 | + | if (($size1113811170 == 18)) | |
477 | + | then $acc181113811170 | |
474 | 478 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
479 | + | let $acc191113811170 = sum($acc181113811170, $list1113811170[18]) | |
480 | + | if (($size1113811170 == 19)) | |
481 | + | then $acc191113811170 | |
478 | 482 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
483 | + | let $acc201113811170 = sum($acc191113811170, $list1113811170[19]) | |
484 | + | if (($size1113811170 == 20)) | |
485 | + | then $acc201113811170 | |
482 | 486 | else { | |
483 | - | let $ | |
487 | + | let $acc211113811170 = sum($acc201113811170, $list1113811170[20]) | |
484 | 488 | throw("List size exceed 20") | |
485 | 489 | } | |
486 | 490 | } | |
512 | 516 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
513 | 517 | else { | |
514 | 518 | let previousRewardEntryNew = { | |
515 | - | let $ | |
516 | - | let $ | |
517 | - | let $ | |
518 | - | if (($ | |
519 | - | then $ | |
519 | + | let $list1149111539 = previousPools | |
520 | + | let $size1149111539 = size($list1149111539) | |
521 | + | let $acc01149111539 = nil | |
522 | + | if (($size1149111539 == 0)) | |
523 | + | then $acc01149111539 | |
520 | 524 | else { | |
521 | - | let $ | |
522 | - | if (($ | |
523 | - | then $ | |
525 | + | let $acc11149111539 = PreviousRewardEntry($acc01149111539, $list1149111539[0]) | |
526 | + | if (($size1149111539 == 1)) | |
527 | + | then $acc11149111539 | |
524 | 528 | else { | |
525 | - | let $ | |
526 | - | if (($ | |
527 | - | then $ | |
529 | + | let $acc21149111539 = PreviousRewardEntry($acc11149111539, $list1149111539[1]) | |
530 | + | if (($size1149111539 == 2)) | |
531 | + | then $acc21149111539 | |
528 | 532 | else { | |
529 | - | let $ | |
530 | - | if (($ | |
531 | - | then $ | |
533 | + | let $acc31149111539 = PreviousRewardEntry($acc21149111539, $list1149111539[2]) | |
534 | + | if (($size1149111539 == 3)) | |
535 | + | then $acc31149111539 | |
532 | 536 | else { | |
533 | - | let $ | |
534 | - | if (($ | |
535 | - | then $ | |
537 | + | let $acc41149111539 = PreviousRewardEntry($acc31149111539, $list1149111539[3]) | |
538 | + | if (($size1149111539 == 4)) | |
539 | + | then $acc41149111539 | |
536 | 540 | else { | |
537 | - | let $ | |
538 | - | if (($ | |
539 | - | then $ | |
541 | + | let $acc51149111539 = PreviousRewardEntry($acc41149111539, $list1149111539[4]) | |
542 | + | if (($size1149111539 == 5)) | |
543 | + | then $acc51149111539 | |
540 | 544 | else { | |
541 | - | let $ | |
542 | - | if (($ | |
543 | - | then $ | |
545 | + | let $acc61149111539 = PreviousRewardEntry($acc51149111539, $list1149111539[5]) | |
546 | + | if (($size1149111539 == 6)) | |
547 | + | then $acc61149111539 | |
544 | 548 | else { | |
545 | - | let $ | |
546 | - | if (($ | |
547 | - | then $ | |
549 | + | let $acc71149111539 = PreviousRewardEntry($acc61149111539, $list1149111539[6]) | |
550 | + | if (($size1149111539 == 7)) | |
551 | + | then $acc71149111539 | |
548 | 552 | else { | |
549 | - | let $ | |
550 | - | if (($ | |
551 | - | then $ | |
553 | + | let $acc81149111539 = PreviousRewardEntry($acc71149111539, $list1149111539[7]) | |
554 | + | if (($size1149111539 == 8)) | |
555 | + | then $acc81149111539 | |
552 | 556 | else { | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
557 | + | let $acc91149111539 = PreviousRewardEntry($acc81149111539, $list1149111539[8]) | |
558 | + | if (($size1149111539 == 9)) | |
559 | + | then $acc91149111539 | |
556 | 560 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
561 | + | let $acc101149111539 = PreviousRewardEntry($acc91149111539, $list1149111539[9]) | |
562 | + | if (($size1149111539 == 10)) | |
563 | + | then $acc101149111539 | |
560 | 564 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
565 | + | let $acc111149111539 = PreviousRewardEntry($acc101149111539, $list1149111539[10]) | |
566 | + | if (($size1149111539 == 11)) | |
567 | + | then $acc111149111539 | |
564 | 568 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
569 | + | let $acc121149111539 = PreviousRewardEntry($acc111149111539, $list1149111539[11]) | |
570 | + | if (($size1149111539 == 12)) | |
571 | + | then $acc121149111539 | |
568 | 572 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
573 | + | let $acc131149111539 = PreviousRewardEntry($acc121149111539, $list1149111539[12]) | |
574 | + | if (($size1149111539 == 13)) | |
575 | + | then $acc131149111539 | |
572 | 576 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
577 | + | let $acc141149111539 = PreviousRewardEntry($acc131149111539, $list1149111539[13]) | |
578 | + | if (($size1149111539 == 14)) | |
579 | + | then $acc141149111539 | |
576 | 580 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
581 | + | let $acc151149111539 = PreviousRewardEntry($acc141149111539, $list1149111539[14]) | |
582 | + | if (($size1149111539 == 15)) | |
583 | + | then $acc151149111539 | |
580 | 584 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
585 | + | let $acc161149111539 = PreviousRewardEntry($acc151149111539, $list1149111539[15]) | |
586 | + | if (($size1149111539 == 16)) | |
587 | + | then $acc161149111539 | |
584 | 588 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
589 | + | let $acc171149111539 = PreviousRewardEntry($acc161149111539, $list1149111539[16]) | |
590 | + | if (($size1149111539 == 17)) | |
591 | + | then $acc171149111539 | |
588 | 592 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
593 | + | let $acc181149111539 = PreviousRewardEntry($acc171149111539, $list1149111539[17]) | |
594 | + | if (($size1149111539 == 18)) | |
595 | + | then $acc181149111539 | |
592 | 596 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
597 | + | let $acc191149111539 = PreviousRewardEntry($acc181149111539, $list1149111539[18]) | |
598 | + | if (($size1149111539 == 19)) | |
599 | + | then $acc191149111539 | |
596 | 600 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
601 | + | let $acc201149111539 = PreviousRewardEntry($acc191149111539, $list1149111539[19]) | |
602 | + | if (($size1149111539 == 20)) | |
603 | + | then $acc201149111539 | |
600 | 604 | else { | |
601 | - | let $ | |
605 | + | let $acc211149111539 = PreviousRewardEntry($acc201149111539, $list1149111539[20]) | |
602 | 606 | throw("List size exceed 20") | |
603 | 607 | } | |
604 | 608 | } | |
623 | 627 | } | |
624 | 628 | } | |
625 | 629 | let currentRewardEntryNew = { | |
626 | - | let $ | |
627 | - | let $ | |
628 | - | let $ | |
629 | - | if (($ | |
630 | - | then $ | |
630 | + | let $list1157211618 = currentPools | |
631 | + | let $size1157211618 = size($list1157211618) | |
632 | + | let $acc01157211618 = nil | |
633 | + | if (($size1157211618 == 0)) | |
634 | + | then $acc01157211618 | |
631 | 635 | else { | |
632 | - | let $ | |
633 | - | if (($ | |
634 | - | then $ | |
636 | + | let $acc11157211618 = CurrentRewardEntry($acc01157211618, $list1157211618[0]) | |
637 | + | if (($size1157211618 == 1)) | |
638 | + | then $acc11157211618 | |
635 | 639 | else { | |
636 | - | let $ | |
637 | - | if (($ | |
638 | - | then $ | |
640 | + | let $acc21157211618 = CurrentRewardEntry($acc11157211618, $list1157211618[1]) | |
641 | + | if (($size1157211618 == 2)) | |
642 | + | then $acc21157211618 | |
639 | 643 | else { | |
640 | - | let $ | |
641 | - | if (($ | |
642 | - | then $ | |
644 | + | let $acc31157211618 = CurrentRewardEntry($acc21157211618, $list1157211618[2]) | |
645 | + | if (($size1157211618 == 3)) | |
646 | + | then $acc31157211618 | |
643 | 647 | else { | |
644 | - | let $ | |
645 | - | if (($ | |
646 | - | then $ | |
648 | + | let $acc41157211618 = CurrentRewardEntry($acc31157211618, $list1157211618[3]) | |
649 | + | if (($size1157211618 == 4)) | |
650 | + | then $acc41157211618 | |
647 | 651 | else { | |
648 | - | let $ | |
649 | - | if (($ | |
650 | - | then $ | |
652 | + | let $acc51157211618 = CurrentRewardEntry($acc41157211618, $list1157211618[4]) | |
653 | + | if (($size1157211618 == 5)) | |
654 | + | then $acc51157211618 | |
651 | 655 | else { | |
652 | - | let $ | |
653 | - | if (($ | |
654 | - | then $ | |
656 | + | let $acc61157211618 = CurrentRewardEntry($acc51157211618, $list1157211618[5]) | |
657 | + | if (($size1157211618 == 6)) | |
658 | + | then $acc61157211618 | |
655 | 659 | else { | |
656 | - | let $ | |
657 | - | if (($ | |
658 | - | then $ | |
660 | + | let $acc71157211618 = CurrentRewardEntry($acc61157211618, $list1157211618[6]) | |
661 | + | if (($size1157211618 == 7)) | |
662 | + | then $acc71157211618 | |
659 | 663 | else { | |
660 | - | let $ | |
661 | - | if (($ | |
662 | - | then $ | |
664 | + | let $acc81157211618 = CurrentRewardEntry($acc71157211618, $list1157211618[7]) | |
665 | + | if (($size1157211618 == 8)) | |
666 | + | then $acc81157211618 | |
663 | 667 | else { | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
668 | + | let $acc91157211618 = CurrentRewardEntry($acc81157211618, $list1157211618[8]) | |
669 | + | if (($size1157211618 == 9)) | |
670 | + | then $acc91157211618 | |
667 | 671 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
672 | + | let $acc101157211618 = CurrentRewardEntry($acc91157211618, $list1157211618[9]) | |
673 | + | if (($size1157211618 == 10)) | |
674 | + | then $acc101157211618 | |
671 | 675 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
676 | + | let $acc111157211618 = CurrentRewardEntry($acc101157211618, $list1157211618[10]) | |
677 | + | if (($size1157211618 == 11)) | |
678 | + | then $acc111157211618 | |
675 | 679 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
680 | + | let $acc121157211618 = CurrentRewardEntry($acc111157211618, $list1157211618[11]) | |
681 | + | if (($size1157211618 == 12)) | |
682 | + | then $acc121157211618 | |
679 | 683 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
684 | + | let $acc131157211618 = CurrentRewardEntry($acc121157211618, $list1157211618[12]) | |
685 | + | if (($size1157211618 == 13)) | |
686 | + | then $acc131157211618 | |
683 | 687 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
688 | + | let $acc141157211618 = CurrentRewardEntry($acc131157211618, $list1157211618[13]) | |
689 | + | if (($size1157211618 == 14)) | |
690 | + | then $acc141157211618 | |
687 | 691 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
692 | + | let $acc151157211618 = CurrentRewardEntry($acc141157211618, $list1157211618[14]) | |
693 | + | if (($size1157211618 == 15)) | |
694 | + | then $acc151157211618 | |
691 | 695 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
696 | + | let $acc161157211618 = CurrentRewardEntry($acc151157211618, $list1157211618[15]) | |
697 | + | if (($size1157211618 == 16)) | |
698 | + | then $acc161157211618 | |
695 | 699 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
700 | + | let $acc171157211618 = CurrentRewardEntry($acc161157211618, $list1157211618[16]) | |
701 | + | if (($size1157211618 == 17)) | |
702 | + | then $acc171157211618 | |
699 | 703 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
704 | + | let $acc181157211618 = CurrentRewardEntry($acc171157211618, $list1157211618[17]) | |
705 | + | if (($size1157211618 == 18)) | |
706 | + | then $acc181157211618 | |
703 | 707 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
708 | + | let $acc191157211618 = CurrentRewardEntry($acc181157211618, $list1157211618[18]) | |
709 | + | if (($size1157211618 == 19)) | |
710 | + | then $acc191157211618 | |
707 | 711 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
712 | + | let $acc201157211618 = CurrentRewardEntry($acc191157211618, $list1157211618[19]) | |
713 | + | if (($size1157211618 == 20)) | |
714 | + | then $acc201157211618 | |
711 | 715 | else { | |
712 | - | let $ | |
716 | + | let $acc211157211618 = CurrentRewardEntry($acc201157211618, $list1157211618[20]) | |
713 | 717 | throw("List size exceed 20") | |
714 | 718 | } | |
715 | 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 | - | let farmingSWOPAddress = Address(base58' | |
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 | |
192 | - | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
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) | |
189 | + | if (true) | |
190 | + | then throw(toString(lastInterest)) | |
191 | + | else { | |
192 | + | let $t060796161 = getUserInterestInfo(i.caller, lastInterest) | |
193 | + | let userLastInterest = $t060796161._1 | |
194 | + | let userSWOPLocked = $t060796161._2 | |
195 | + | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
196 | + | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
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) | |
199 | 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 | 204 | } | |
201 | 205 | } | |
202 | 206 | ||
203 | 207 | ||
204 | 208 | ||
205 | 209 | @Callable(i) | |
206 | 210 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
207 | 211 | then throw("DApp is inactive at this moment") | |
208 | 212 | else { | |
209 | 213 | let totalSWOPLocked = getTotalSWOPLocked() | |
210 | 214 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
211 | - | let $ | |
212 | - | let userNewInterest = $ | |
213 | - | let claimAmount = $ | |
215 | + | let $t072457300 = claimCalc(i.caller) | |
216 | + | let userNewInterest = $t072457300._1 | |
217 | + | let claimAmount = $t072457300._2 | |
214 | 218 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
215 | 219 | let availableFund = (userSWOPLocked - userVoteAmount) | |
216 | 220 | if ((withdrawAmount > availableFund)) | |
217 | 221 | then throw("withdrawAmount > availableFund") | |
218 | 222 | else { | |
219 | 223 | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
220 | 224 | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
221 | 225 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
222 | 226 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
223 | 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)] | |
224 | 228 | } | |
225 | 229 | } | |
226 | 230 | ||
227 | 231 | ||
228 | 232 | ||
229 | 233 | @Callable(i) | |
230 | 234 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
231 | 235 | then throw("DApp is inactive at this moment") | |
232 | 236 | else { | |
233 | 237 | let lastInterest = getLastInterestInfo() | |
234 | - | let $ | |
235 | - | let userNewInterest = $ | |
236 | - | let claimAmount = $ | |
238 | + | let $t084128467 = claimCalc(i.caller) | |
239 | + | let userNewInterest = $t084128467._1 | |
240 | + | let claimAmount = $t084128467._2 | |
237 | 241 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
238 | 242 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
239 | 243 | if ((claimAmount == 0)) | |
240 | 244 | then throw("You have 0 available SWOP") | |
241 | 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)] | |
242 | 246 | } | |
243 | 247 | ||
244 | 248 | ||
245 | 249 | ||
246 | 250 | @Callable(i) | |
247 | 251 | func claimAndStakeSWOP () = if (!(isActive)) | |
248 | 252 | then throw("DApp is inactive at this moment") | |
249 | 253 | else { | |
250 | 254 | let totalSWOPLocked = getTotalSWOPLocked() | |
251 | 255 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
252 | 256 | let lastInterest = getLastInterestInfo() | |
253 | - | let $ | |
254 | - | let userNewInterest = $ | |
255 | - | let claimAmount = $ | |
257 | + | let $t092469301 = claimCalc(i.caller) | |
258 | + | let userNewInterest = $t092469301._1 | |
259 | + | let claimAmount = $t092469301._2 | |
256 | 260 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
257 | 261 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
258 | 262 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
259 | 263 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
260 | 264 | if ((claimAmount == 0)) | |
261 | 265 | then throw("You have 0 available SWOP") | |
262 | 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)] | |
263 | 267 | } | |
264 | 268 | ||
265 | 269 | ||
266 | 270 | ||
267 | 271 | @Callable(i) | |
268 | 272 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
269 | 273 | then throw("DApp is inactive at this moment") | |
270 | 274 | else { | |
271 | 275 | func sum (a,b) = (a + b) | |
272 | 276 | ||
273 | 277 | func PreviousRewardEntry (accumulated,pool) = { | |
274 | 278 | let poolIndex = value(indexOf(previousPools, pool)) | |
275 | 279 | let poolReward = previousRewards[poolIndex] | |
276 | 280 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
277 | 281 | } | |
278 | 282 | ||
279 | 283 | func CurrentRewardEntry (accumulated,pool) = { | |
280 | 284 | let poolIndex = value(indexOf(previousPools, pool)) | |
281 | 285 | let poolReward = previousRewards[poolIndex] | |
282 | 286 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
283 | 287 | } | |
284 | 288 | ||
285 | 289 | let sumRewardPrevious = { | |
286 | - | let $ | |
287 | - | let $ | |
288 | - | let $ | |
289 | - | if (($ | |
290 | - | then $ | |
290 | + | let $list1107611109 = previousRewards | |
291 | + | let $size1107611109 = size($list1107611109) | |
292 | + | let $acc01107611109 = 0 | |
293 | + | if (($size1107611109 == 0)) | |
294 | + | then $acc01107611109 | |
291 | 295 | else { | |
292 | - | let $ | |
293 | - | if (($ | |
294 | - | then $ | |
296 | + | let $acc11107611109 = sum($acc01107611109, $list1107611109[0]) | |
297 | + | if (($size1107611109 == 1)) | |
298 | + | then $acc11107611109 | |
295 | 299 | else { | |
296 | - | let $ | |
297 | - | if (($ | |
298 | - | then $ | |
300 | + | let $acc21107611109 = sum($acc11107611109, $list1107611109[1]) | |
301 | + | if (($size1107611109 == 2)) | |
302 | + | then $acc21107611109 | |
299 | 303 | else { | |
300 | - | let $ | |
301 | - | if (($ | |
302 | - | then $ | |
304 | + | let $acc31107611109 = sum($acc21107611109, $list1107611109[2]) | |
305 | + | if (($size1107611109 == 3)) | |
306 | + | then $acc31107611109 | |
303 | 307 | else { | |
304 | - | let $ | |
305 | - | if (($ | |
306 | - | then $ | |
308 | + | let $acc41107611109 = sum($acc31107611109, $list1107611109[3]) | |
309 | + | if (($size1107611109 == 4)) | |
310 | + | then $acc41107611109 | |
307 | 311 | else { | |
308 | - | let $ | |
309 | - | if (($ | |
310 | - | then $ | |
312 | + | let $acc51107611109 = sum($acc41107611109, $list1107611109[4]) | |
313 | + | if (($size1107611109 == 5)) | |
314 | + | then $acc51107611109 | |
311 | 315 | else { | |
312 | - | let $ | |
313 | - | if (($ | |
314 | - | then $ | |
316 | + | let $acc61107611109 = sum($acc51107611109, $list1107611109[5]) | |
317 | + | if (($size1107611109 == 6)) | |
318 | + | then $acc61107611109 | |
315 | 319 | else { | |
316 | - | let $ | |
317 | - | if (($ | |
318 | - | then $ | |
320 | + | let $acc71107611109 = sum($acc61107611109, $list1107611109[6]) | |
321 | + | if (($size1107611109 == 7)) | |
322 | + | then $acc71107611109 | |
319 | 323 | else { | |
320 | - | let $ | |
321 | - | if (($ | |
322 | - | then $ | |
324 | + | let $acc81107611109 = sum($acc71107611109, $list1107611109[7]) | |
325 | + | if (($size1107611109 == 8)) | |
326 | + | then $acc81107611109 | |
323 | 327 | else { | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
328 | + | let $acc91107611109 = sum($acc81107611109, $list1107611109[8]) | |
329 | + | if (($size1107611109 == 9)) | |
330 | + | then $acc91107611109 | |
327 | 331 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
332 | + | let $acc101107611109 = sum($acc91107611109, $list1107611109[9]) | |
333 | + | if (($size1107611109 == 10)) | |
334 | + | then $acc101107611109 | |
331 | 335 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
336 | + | let $acc111107611109 = sum($acc101107611109, $list1107611109[10]) | |
337 | + | if (($size1107611109 == 11)) | |
338 | + | then $acc111107611109 | |
335 | 339 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
340 | + | let $acc121107611109 = sum($acc111107611109, $list1107611109[11]) | |
341 | + | if (($size1107611109 == 12)) | |
342 | + | then $acc121107611109 | |
339 | 343 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
344 | + | let $acc131107611109 = sum($acc121107611109, $list1107611109[12]) | |
345 | + | if (($size1107611109 == 13)) | |
346 | + | then $acc131107611109 | |
343 | 347 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
348 | + | let $acc141107611109 = sum($acc131107611109, $list1107611109[13]) | |
349 | + | if (($size1107611109 == 14)) | |
350 | + | then $acc141107611109 | |
347 | 351 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
352 | + | let $acc151107611109 = sum($acc141107611109, $list1107611109[14]) | |
353 | + | if (($size1107611109 == 15)) | |
354 | + | then $acc151107611109 | |
351 | 355 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
356 | + | let $acc161107611109 = sum($acc151107611109, $list1107611109[15]) | |
357 | + | if (($size1107611109 == 16)) | |
358 | + | then $acc161107611109 | |
355 | 359 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
360 | + | let $acc171107611109 = sum($acc161107611109, $list1107611109[16]) | |
361 | + | if (($size1107611109 == 17)) | |
362 | + | then $acc171107611109 | |
359 | 363 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
364 | + | let $acc181107611109 = sum($acc171107611109, $list1107611109[17]) | |
365 | + | if (($size1107611109 == 18)) | |
366 | + | then $acc181107611109 | |
363 | 367 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
368 | + | let $acc191107611109 = sum($acc181107611109, $list1107611109[18]) | |
369 | + | if (($size1107611109 == 19)) | |
370 | + | then $acc191107611109 | |
367 | 371 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
372 | + | let $acc201107611109 = sum($acc191107611109, $list1107611109[19]) | |
373 | + | if (($size1107611109 == 20)) | |
374 | + | then $acc201107611109 | |
371 | 375 | else { | |
372 | - | let $ | |
376 | + | let $acc211107611109 = sum($acc201107611109, $list1107611109[20]) | |
373 | 377 | throw("List size exceed 20") | |
374 | 378 | } | |
375 | 379 | } | |
376 | 380 | } | |
377 | 381 | } | |
378 | 382 | } | |
379 | 383 | } | |
380 | 384 | } | |
381 | 385 | } | |
382 | 386 | } | |
383 | 387 | } | |
384 | 388 | } | |
385 | 389 | } | |
386 | 390 | } | |
387 | 391 | } | |
388 | 392 | } | |
389 | 393 | } | |
390 | 394 | } | |
391 | 395 | } | |
392 | 396 | } | |
393 | 397 | } | |
394 | 398 | } | |
395 | 399 | } | |
396 | 400 | let sumRewardCurrent = { | |
397 | - | let $ | |
398 | - | let $ | |
399 | - | let $ | |
400 | - | if (($ | |
401 | - | then $ | |
401 | + | let $list1113811170 = currentRewards | |
402 | + | let $size1113811170 = size($list1113811170) | |
403 | + | let $acc01113811170 = 0 | |
404 | + | if (($size1113811170 == 0)) | |
405 | + | then $acc01113811170 | |
402 | 406 | else { | |
403 | - | let $ | |
404 | - | if (($ | |
405 | - | then $ | |
407 | + | let $acc11113811170 = sum($acc01113811170, $list1113811170[0]) | |
408 | + | if (($size1113811170 == 1)) | |
409 | + | then $acc11113811170 | |
406 | 410 | else { | |
407 | - | let $ | |
408 | - | if (($ | |
409 | - | then $ | |
411 | + | let $acc21113811170 = sum($acc11113811170, $list1113811170[1]) | |
412 | + | if (($size1113811170 == 2)) | |
413 | + | then $acc21113811170 | |
410 | 414 | else { | |
411 | - | let $ | |
412 | - | if (($ | |
413 | - | then $ | |
415 | + | let $acc31113811170 = sum($acc21113811170, $list1113811170[2]) | |
416 | + | if (($size1113811170 == 3)) | |
417 | + | then $acc31113811170 | |
414 | 418 | else { | |
415 | - | let $ | |
416 | - | if (($ | |
417 | - | then $ | |
419 | + | let $acc41113811170 = sum($acc31113811170, $list1113811170[3]) | |
420 | + | if (($size1113811170 == 4)) | |
421 | + | then $acc41113811170 | |
418 | 422 | else { | |
419 | - | let $ | |
420 | - | if (($ | |
421 | - | then $ | |
423 | + | let $acc51113811170 = sum($acc41113811170, $list1113811170[4]) | |
424 | + | if (($size1113811170 == 5)) | |
425 | + | then $acc51113811170 | |
422 | 426 | else { | |
423 | - | let $ | |
424 | - | if (($ | |
425 | - | then $ | |
427 | + | let $acc61113811170 = sum($acc51113811170, $list1113811170[5]) | |
428 | + | if (($size1113811170 == 6)) | |
429 | + | then $acc61113811170 | |
426 | 430 | else { | |
427 | - | let $ | |
428 | - | if (($ | |
429 | - | then $ | |
431 | + | let $acc71113811170 = sum($acc61113811170, $list1113811170[6]) | |
432 | + | if (($size1113811170 == 7)) | |
433 | + | then $acc71113811170 | |
430 | 434 | else { | |
431 | - | let $ | |
432 | - | if (($ | |
433 | - | then $ | |
435 | + | let $acc81113811170 = sum($acc71113811170, $list1113811170[7]) | |
436 | + | if (($size1113811170 == 8)) | |
437 | + | then $acc81113811170 | |
434 | 438 | else { | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
439 | + | let $acc91113811170 = sum($acc81113811170, $list1113811170[8]) | |
440 | + | if (($size1113811170 == 9)) | |
441 | + | then $acc91113811170 | |
438 | 442 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
443 | + | let $acc101113811170 = sum($acc91113811170, $list1113811170[9]) | |
444 | + | if (($size1113811170 == 10)) | |
445 | + | then $acc101113811170 | |
442 | 446 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
447 | + | let $acc111113811170 = sum($acc101113811170, $list1113811170[10]) | |
448 | + | if (($size1113811170 == 11)) | |
449 | + | then $acc111113811170 | |
446 | 450 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
451 | + | let $acc121113811170 = sum($acc111113811170, $list1113811170[11]) | |
452 | + | if (($size1113811170 == 12)) | |
453 | + | then $acc121113811170 | |
450 | 454 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
455 | + | let $acc131113811170 = sum($acc121113811170, $list1113811170[12]) | |
456 | + | if (($size1113811170 == 13)) | |
457 | + | then $acc131113811170 | |
454 | 458 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
459 | + | let $acc141113811170 = sum($acc131113811170, $list1113811170[13]) | |
460 | + | if (($size1113811170 == 14)) | |
461 | + | then $acc141113811170 | |
458 | 462 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
463 | + | let $acc151113811170 = sum($acc141113811170, $list1113811170[14]) | |
464 | + | if (($size1113811170 == 15)) | |
465 | + | then $acc151113811170 | |
462 | 466 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
467 | + | let $acc161113811170 = sum($acc151113811170, $list1113811170[15]) | |
468 | + | if (($size1113811170 == 16)) | |
469 | + | then $acc161113811170 | |
466 | 470 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
471 | + | let $acc171113811170 = sum($acc161113811170, $list1113811170[16]) | |
472 | + | if (($size1113811170 == 17)) | |
473 | + | then $acc171113811170 | |
470 | 474 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
475 | + | let $acc181113811170 = sum($acc171113811170, $list1113811170[17]) | |
476 | + | if (($size1113811170 == 18)) | |
477 | + | then $acc181113811170 | |
474 | 478 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
479 | + | let $acc191113811170 = sum($acc181113811170, $list1113811170[18]) | |
480 | + | if (($size1113811170 == 19)) | |
481 | + | then $acc191113811170 | |
478 | 482 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
483 | + | let $acc201113811170 = sum($acc191113811170, $list1113811170[19]) | |
484 | + | if (($size1113811170 == 20)) | |
485 | + | then $acc201113811170 | |
482 | 486 | else { | |
483 | - | let $ | |
487 | + | let $acc211113811170 = sum($acc201113811170, $list1113811170[20]) | |
484 | 488 | throw("List size exceed 20") | |
485 | 489 | } | |
486 | 490 | } | |
487 | 491 | } | |
488 | 492 | } | |
489 | 493 | } | |
490 | 494 | } | |
491 | 495 | } | |
492 | 496 | } | |
493 | 497 | } | |
494 | 498 | } | |
495 | 499 | } | |
496 | 500 | } | |
497 | 501 | } | |
498 | 502 | } | |
499 | 503 | } | |
500 | 504 | } | |
501 | 505 | } | |
502 | 506 | } | |
503 | 507 | } | |
504 | 508 | } | |
505 | 509 | } | |
506 | 510 | } | |
507 | 511 | if ((height > rewardUpdateHeight)) | |
508 | 512 | then throw("rewardUpdateHeight < heightthen") | |
509 | 513 | else if (if ((sumRewardPrevious != totalVoteShare)) | |
510 | 514 | then true | |
511 | 515 | else (sumRewardCurrent != totalVoteShare)) | |
512 | 516 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
513 | 517 | else { | |
514 | 518 | let previousRewardEntryNew = { | |
515 | - | let $ | |
516 | - | let $ | |
517 | - | let $ | |
518 | - | if (($ | |
519 | - | then $ | |
519 | + | let $list1149111539 = previousPools | |
520 | + | let $size1149111539 = size($list1149111539) | |
521 | + | let $acc01149111539 = nil | |
522 | + | if (($size1149111539 == 0)) | |
523 | + | then $acc01149111539 | |
520 | 524 | else { | |
521 | - | let $ | |
522 | - | if (($ | |
523 | - | then $ | |
525 | + | let $acc11149111539 = PreviousRewardEntry($acc01149111539, $list1149111539[0]) | |
526 | + | if (($size1149111539 == 1)) | |
527 | + | then $acc11149111539 | |
524 | 528 | else { | |
525 | - | let $ | |
526 | - | if (($ | |
527 | - | then $ | |
529 | + | let $acc21149111539 = PreviousRewardEntry($acc11149111539, $list1149111539[1]) | |
530 | + | if (($size1149111539 == 2)) | |
531 | + | then $acc21149111539 | |
528 | 532 | else { | |
529 | - | let $ | |
530 | - | if (($ | |
531 | - | then $ | |
533 | + | let $acc31149111539 = PreviousRewardEntry($acc21149111539, $list1149111539[2]) | |
534 | + | if (($size1149111539 == 3)) | |
535 | + | then $acc31149111539 | |
532 | 536 | else { | |
533 | - | let $ | |
534 | - | if (($ | |
535 | - | then $ | |
537 | + | let $acc41149111539 = PreviousRewardEntry($acc31149111539, $list1149111539[3]) | |
538 | + | if (($size1149111539 == 4)) | |
539 | + | then $acc41149111539 | |
536 | 540 | else { | |
537 | - | let $ | |
538 | - | if (($ | |
539 | - | then $ | |
541 | + | let $acc51149111539 = PreviousRewardEntry($acc41149111539, $list1149111539[4]) | |
542 | + | if (($size1149111539 == 5)) | |
543 | + | then $acc51149111539 | |
540 | 544 | else { | |
541 | - | let $ | |
542 | - | if (($ | |
543 | - | then $ | |
545 | + | let $acc61149111539 = PreviousRewardEntry($acc51149111539, $list1149111539[5]) | |
546 | + | if (($size1149111539 == 6)) | |
547 | + | then $acc61149111539 | |
544 | 548 | else { | |
545 | - | let $ | |
546 | - | if (($ | |
547 | - | then $ | |
549 | + | let $acc71149111539 = PreviousRewardEntry($acc61149111539, $list1149111539[6]) | |
550 | + | if (($size1149111539 == 7)) | |
551 | + | then $acc71149111539 | |
548 | 552 | else { | |
549 | - | let $ | |
550 | - | if (($ | |
551 | - | then $ | |
553 | + | let $acc81149111539 = PreviousRewardEntry($acc71149111539, $list1149111539[7]) | |
554 | + | if (($size1149111539 == 8)) | |
555 | + | then $acc81149111539 | |
552 | 556 | else { | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
557 | + | let $acc91149111539 = PreviousRewardEntry($acc81149111539, $list1149111539[8]) | |
558 | + | if (($size1149111539 == 9)) | |
559 | + | then $acc91149111539 | |
556 | 560 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
561 | + | let $acc101149111539 = PreviousRewardEntry($acc91149111539, $list1149111539[9]) | |
562 | + | if (($size1149111539 == 10)) | |
563 | + | then $acc101149111539 | |
560 | 564 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
565 | + | let $acc111149111539 = PreviousRewardEntry($acc101149111539, $list1149111539[10]) | |
566 | + | if (($size1149111539 == 11)) | |
567 | + | then $acc111149111539 | |
564 | 568 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
569 | + | let $acc121149111539 = PreviousRewardEntry($acc111149111539, $list1149111539[11]) | |
570 | + | if (($size1149111539 == 12)) | |
571 | + | then $acc121149111539 | |
568 | 572 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
573 | + | let $acc131149111539 = PreviousRewardEntry($acc121149111539, $list1149111539[12]) | |
574 | + | if (($size1149111539 == 13)) | |
575 | + | then $acc131149111539 | |
572 | 576 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
577 | + | let $acc141149111539 = PreviousRewardEntry($acc131149111539, $list1149111539[13]) | |
578 | + | if (($size1149111539 == 14)) | |
579 | + | then $acc141149111539 | |
576 | 580 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
581 | + | let $acc151149111539 = PreviousRewardEntry($acc141149111539, $list1149111539[14]) | |
582 | + | if (($size1149111539 == 15)) | |
583 | + | then $acc151149111539 | |
580 | 584 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
585 | + | let $acc161149111539 = PreviousRewardEntry($acc151149111539, $list1149111539[15]) | |
586 | + | if (($size1149111539 == 16)) | |
587 | + | then $acc161149111539 | |
584 | 588 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
589 | + | let $acc171149111539 = PreviousRewardEntry($acc161149111539, $list1149111539[16]) | |
590 | + | if (($size1149111539 == 17)) | |
591 | + | then $acc171149111539 | |
588 | 592 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
593 | + | let $acc181149111539 = PreviousRewardEntry($acc171149111539, $list1149111539[17]) | |
594 | + | if (($size1149111539 == 18)) | |
595 | + | then $acc181149111539 | |
592 | 596 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
597 | + | let $acc191149111539 = PreviousRewardEntry($acc181149111539, $list1149111539[18]) | |
598 | + | if (($size1149111539 == 19)) | |
599 | + | then $acc191149111539 | |
596 | 600 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
601 | + | let $acc201149111539 = PreviousRewardEntry($acc191149111539, $list1149111539[19]) | |
602 | + | if (($size1149111539 == 20)) | |
603 | + | then $acc201149111539 | |
600 | 604 | else { | |
601 | - | let $ | |
605 | + | let $acc211149111539 = PreviousRewardEntry($acc201149111539, $list1149111539[20]) | |
602 | 606 | throw("List size exceed 20") | |
603 | 607 | } | |
604 | 608 | } | |
605 | 609 | } | |
606 | 610 | } | |
607 | 611 | } | |
608 | 612 | } | |
609 | 613 | } | |
610 | 614 | } | |
611 | 615 | } | |
612 | 616 | } | |
613 | 617 | } | |
614 | 618 | } | |
615 | 619 | } | |
616 | 620 | } | |
617 | 621 | } | |
618 | 622 | } | |
619 | 623 | } | |
620 | 624 | } | |
621 | 625 | } | |
622 | 626 | } | |
623 | 627 | } | |
624 | 628 | } | |
625 | 629 | let currentRewardEntryNew = { | |
626 | - | let $ | |
627 | - | let $ | |
628 | - | let $ | |
629 | - | if (($ | |
630 | - | then $ | |
630 | + | let $list1157211618 = currentPools | |
631 | + | let $size1157211618 = size($list1157211618) | |
632 | + | let $acc01157211618 = nil | |
633 | + | if (($size1157211618 == 0)) | |
634 | + | then $acc01157211618 | |
631 | 635 | else { | |
632 | - | let $ | |
633 | - | if (($ | |
634 | - | then $ | |
636 | + | let $acc11157211618 = CurrentRewardEntry($acc01157211618, $list1157211618[0]) | |
637 | + | if (($size1157211618 == 1)) | |
638 | + | then $acc11157211618 | |
635 | 639 | else { | |
636 | - | let $ | |
637 | - | if (($ | |
638 | - | then $ | |
640 | + | let $acc21157211618 = CurrentRewardEntry($acc11157211618, $list1157211618[1]) | |
641 | + | if (($size1157211618 == 2)) | |
642 | + | then $acc21157211618 | |
639 | 643 | else { | |
640 | - | let $ | |
641 | - | if (($ | |
642 | - | then $ | |
644 | + | let $acc31157211618 = CurrentRewardEntry($acc21157211618, $list1157211618[2]) | |
645 | + | if (($size1157211618 == 3)) | |
646 | + | then $acc31157211618 | |
643 | 647 | else { | |
644 | - | let $ | |
645 | - | if (($ | |
646 | - | then $ | |
648 | + | let $acc41157211618 = CurrentRewardEntry($acc31157211618, $list1157211618[3]) | |
649 | + | if (($size1157211618 == 4)) | |
650 | + | then $acc41157211618 | |
647 | 651 | else { | |
648 | - | let $ | |
649 | - | if (($ | |
650 | - | then $ | |
652 | + | let $acc51157211618 = CurrentRewardEntry($acc41157211618, $list1157211618[4]) | |
653 | + | if (($size1157211618 == 5)) | |
654 | + | then $acc51157211618 | |
651 | 655 | else { | |
652 | - | let $ | |
653 | - | if (($ | |
654 | - | then $ | |
656 | + | let $acc61157211618 = CurrentRewardEntry($acc51157211618, $list1157211618[5]) | |
657 | + | if (($size1157211618 == 6)) | |
658 | + | then $acc61157211618 | |
655 | 659 | else { | |
656 | - | let $ | |
657 | - | if (($ | |
658 | - | then $ | |
660 | + | let $acc71157211618 = CurrentRewardEntry($acc61157211618, $list1157211618[6]) | |
661 | + | if (($size1157211618 == 7)) | |
662 | + | then $acc71157211618 | |
659 | 663 | else { | |
660 | - | let $ | |
661 | - | if (($ | |
662 | - | then $ | |
664 | + | let $acc81157211618 = CurrentRewardEntry($acc71157211618, $list1157211618[7]) | |
665 | + | if (($size1157211618 == 8)) | |
666 | + | then $acc81157211618 | |
663 | 667 | else { | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
668 | + | let $acc91157211618 = CurrentRewardEntry($acc81157211618, $list1157211618[8]) | |
669 | + | if (($size1157211618 == 9)) | |
670 | + | then $acc91157211618 | |
667 | 671 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
672 | + | let $acc101157211618 = CurrentRewardEntry($acc91157211618, $list1157211618[9]) | |
673 | + | if (($size1157211618 == 10)) | |
674 | + | then $acc101157211618 | |
671 | 675 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
676 | + | let $acc111157211618 = CurrentRewardEntry($acc101157211618, $list1157211618[10]) | |
677 | + | if (($size1157211618 == 11)) | |
678 | + | then $acc111157211618 | |
675 | 679 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
680 | + | let $acc121157211618 = CurrentRewardEntry($acc111157211618, $list1157211618[11]) | |
681 | + | if (($size1157211618 == 12)) | |
682 | + | then $acc121157211618 | |
679 | 683 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
684 | + | let $acc131157211618 = CurrentRewardEntry($acc121157211618, $list1157211618[12]) | |
685 | + | if (($size1157211618 == 13)) | |
686 | + | then $acc131157211618 | |
683 | 687 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
688 | + | let $acc141157211618 = CurrentRewardEntry($acc131157211618, $list1157211618[13]) | |
689 | + | if (($size1157211618 == 14)) | |
690 | + | then $acc141157211618 | |
687 | 691 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
692 | + | let $acc151157211618 = CurrentRewardEntry($acc141157211618, $list1157211618[14]) | |
693 | + | if (($size1157211618 == 15)) | |
694 | + | then $acc151157211618 | |
691 | 695 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
696 | + | let $acc161157211618 = CurrentRewardEntry($acc151157211618, $list1157211618[15]) | |
697 | + | if (($size1157211618 == 16)) | |
698 | + | then $acc161157211618 | |
695 | 699 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
700 | + | let $acc171157211618 = CurrentRewardEntry($acc161157211618, $list1157211618[16]) | |
701 | + | if (($size1157211618 == 17)) | |
702 | + | then $acc171157211618 | |
699 | 703 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
704 | + | let $acc181157211618 = CurrentRewardEntry($acc171157211618, $list1157211618[17]) | |
705 | + | if (($size1157211618 == 18)) | |
706 | + | then $acc181157211618 | |
703 | 707 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
708 | + | let $acc191157211618 = CurrentRewardEntry($acc181157211618, $list1157211618[18]) | |
709 | + | if (($size1157211618 == 19)) | |
710 | + | then $acc191157211618 | |
707 | 711 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
712 | + | let $acc201157211618 = CurrentRewardEntry($acc191157211618, $list1157211618[19]) | |
713 | + | if (($size1157211618 == 20)) | |
714 | + | then $acc201157211618 | |
711 | 715 | else { | |
712 | - | let $ | |
716 | + | let $acc211157211618 = CurrentRewardEntry($acc201157211618, $list1157211618[20]) | |
713 | 717 | throw("List size exceed 20") | |
714 | 718 | } | |
715 | 719 | } | |
716 | 720 | } | |
717 | 721 | } | |
718 | 722 | } | |
719 | 723 | } | |
720 | 724 | } | |
721 | 725 | } | |
722 | 726 | } | |
723 | 727 | } | |
724 | 728 | } | |
725 | 729 | } | |
726 | 730 | } | |
727 | 731 | } | |
728 | 732 | } | |
729 | 733 | } | |
730 | 734 | } | |
731 | 735 | } | |
732 | 736 | } | |
733 | 737 | } | |
734 | 738 | } | |
735 | 739 | } | |
736 | 740 | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
737 | 741 | } | |
738 | 742 | } | |
739 | 743 | ||
740 | 744 | ||
741 | 745 | ||
742 | 746 | @Callable(i) | |
743 | 747 | func setTotalRewardPerBlock (totalRewardPerBlockNew) = if (!(isActive)) | |
744 | 748 | then throw("DApp is inactive at this moment") | |
745 | 749 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
746 | 750 | then throw("Only admin can call this function") | |
747 | 751 | else { | |
748 | 752 | let totalRewardPerBlockPrevious = getIntegerValue(this, keyTotalRewardPerBlockCurrent) | |
749 | 753 | [IntegerEntry(keyTotalRewardPerBlockCurrent, totalRewardPerBlockNew), IntegerEntry(keyTotalRewardPerBlockPrevious, totalRewardPerBlockPrevious)] | |
750 | 754 | } | |
751 | 755 | ||
752 | 756 | ||
753 | 757 | ||
754 | 758 | @Callable(i) | |
755 | 759 | func shutdown () = if (!(isActive)) | |
756 | 760 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
757 | 761 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
758 | 762 | then throw("Only admin can call this function") | |
759 | 763 | else suspend("Paused by admin") | |
760 | 764 | ||
761 | 765 | ||
762 | 766 | ||
763 | 767 | @Callable(i) | |
764 | 768 | func activate () = if (isActive) | |
765 | 769 | then throw("DApp is already active") | |
766 | 770 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
767 | 771 | then throw("Only admin can call this function") | |
768 | 772 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
769 | 773 | ||
770 | 774 |
github/deemru/w8io/169f3d6 880.89 ms ◑