tx · 2NJsigEwozQfwG2SdzMg67GATPyA9RwYj6x1UJx8cFPR 3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj: -0.01400000 Waves 2021.04.11 12:58 [1477647] smart account 3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj > SELF 0.00000000 Waves
{ "type": 13, "id": "2NJsigEwozQfwG2SdzMg67GATPyA9RwYj6x1UJx8cFPR", "fee": 1400000, "feeAssetId": null, "timestamp": 1618135176515, "version": 1, "sender": "3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj", "senderPublicKey": "9G5zT9Cpjk5h2JSGhccak7GEhvBeeVYy2gPnafgTp7As", "proofs": [ "2J8ggKGmGX3tat5JZ2gcAugZ2BD2msFtfjRtvhvqZaRLvLF6aacLbeLck7QzdNm5d4FjWaNJt4XWFsAGveeHd7Cm" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAALwAAAAAMYWRtaW5QdWJLZXkxAQAAACC6Cdc7iVmk0V2g//G7M9Cq4TlpD8vivZHWO+5PXqjgEwAAAAAMYWRtaW5QdWJLZXkyAQAAACDCkUSZs9KwtA0ipZFYvYi8oTe7CMv/3YzmlO9bFg5+QAAAAAAMYWRtaW5QdWJLZXkzAQAAACCOHhcueLEHO/RITnozKGB2KHf8meWSMKMgws+oq+kOVQAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIM5ZDtzqs16jrhv9V17n63kRNSl0RjKbPBVfPAUbKGF7AAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAAA9rZXlMYXN0SW50ZXJlc3QCAAAADWxhc3RfaW50ZXJlc3QAAAAAE2tleVVzZXJMYXN0SW50ZXJlc3QCAAAADl9sYXN0X2ludGVyZXN0AAAAABFrZXlVc2VyU1dPUExvY2tlZAIAAAAMX1NXT1BfYW1vdW50AAAAABRrZXl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AMYWRtaW5QdWJLZXkxCQAETAAAAAIFAAAADGFkbWluUHViS2V5MgkABEwAAAACBQAAAAxhZG1pblB1YktleTMJAARMAAAAAgUAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3AFAAAAA25pbAgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5CQAAAgAAAAECAAAAIU9ubHkgYWRtaW4gY2FuIGNhbGwgdGhpcyBmdW5jdGlvbgkBAAAAB3N1c3BlbmQAAAABAgAAAA9QYXVzZWQgYnkgYWRtaW4AAAABaQEAAAAIYWN0aXZhdGUAAAAAAwUAAAAIaXNBY3RpdmUJAAACAAAAAQIAAAAWREFwcCBpcyBhbHJlYWR5IGFjdGl2ZQMJAQAAAAEhAAAAAQkBAAAAD2NvbnRhaW5zRWxlbWVudAAAAAIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkxCQAETAAAAAIFAAAADGFkbWluUHViS2V5MgkABEwAAAACBQAAAAxhZG1pblB1YktleTMJAARMAAAAAgUAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3AFAAAAA25pbAgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5CQAAAgAAAAECAAAAIU9ubHkgYWRtaW4gY2FuIGNhbGwgdGhpcyBmdW5jdGlvbgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAJa2V5QWN0aXZlBgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAhrZXlDYXVzZQUAAAADbmlsAAAAAEAapRo=", "chainId": 84, "height": 1477647, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CUZQMQmG5UHPHfVL6YLYsTYWnbSS3Uv5a5nBvBG9ATun Next: 6y5Fh9uB2Dgp3pxQvmF5Kc78KNLYtabeY9sY8hUEvPcq Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | if (true) | |
186 | - | then throw(toBase58String(SWOP)) | |
187 | - | else if ((pmtAssetId != SWOP)) | |
188 | - | then throw("Incorrect pmtAssetId") | |
189 | - | else { | |
190 | - | let lastInterest = getLastInterestInfo() | |
191 | - | let $t060766158 = getUserInterestInfo(i.caller, lastInterest) | |
192 | - | let userLastInterest = $t060766158._1 | |
193 | - | let userSWOPLocked = $t060766158._2 | |
194 | - | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
195 | - | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
196 | - | let userNewInterest = lastInterest | |
197 | - | let totalSWOPLocked = getTotalSWOPLocked() | |
198 | - | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
199 | - | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
200 | - | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
185 | + | if ((pmtAssetId != SWOP)) | |
186 | + | then throw("Incorrect pmtAssetId") | |
187 | + | else { | |
188 | + | let lastInterest = getLastInterestInfo() | |
189 | + | let $t060266108 = getUserInterestInfo(i.caller, lastInterest) | |
190 | + | let userLastInterest = $t060266108._1 | |
191 | + | let userSWOPLocked = $t060266108._2 | |
192 | + | if (true) | |
193 | + | then throw(toString(lastInterest)) | |
194 | + | else { | |
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) | |
201 | 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)] | |
202 | - | } | |
203 | + | } | |
204 | + | } | |
203 | 205 | } | |
204 | 206 | ||
205 | 207 | ||
210 | 212 | else { | |
211 | 213 | let totalSWOPLocked = getTotalSWOPLocked() | |
212 | 214 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
213 | - | let $ | |
214 | - | let userNewInterest = $ | |
215 | - | let claimAmount = $ | |
215 | + | let $t072447299 = claimCalc(i.caller) | |
216 | + | let userNewInterest = $t072447299._1 | |
217 | + | let claimAmount = $t072447299._2 | |
216 | 218 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
217 | 219 | let availableFund = (userSWOPLocked - userVoteAmount) | |
218 | 220 | if ((withdrawAmount > availableFund)) | |
233 | 235 | then throw("DApp is inactive at this moment") | |
234 | 236 | else { | |
235 | 237 | let lastInterest = getLastInterestInfo() | |
236 | - | let $ | |
237 | - | let userNewInterest = $ | |
238 | - | let claimAmount = $ | |
238 | + | let $t084118466 = claimCalc(i.caller) | |
239 | + | let userNewInterest = $t084118466._1 | |
240 | + | let claimAmount = $t084118466._2 | |
239 | 241 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
240 | 242 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
241 | 243 | if ((claimAmount == 0)) | |
252 | 254 | let totalSWOPLocked = getTotalSWOPLocked() | |
253 | 255 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
254 | 256 | let lastInterest = getLastInterestInfo() | |
255 | - | let $ | |
256 | - | let userNewInterest = $ | |
257 | - | let claimAmount = $ | |
257 | + | let $t092459300 = claimCalc(i.caller) | |
258 | + | let userNewInterest = $t092459300._1 | |
259 | + | let claimAmount = $t092459300._2 | |
258 | 260 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
259 | 261 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
260 | 262 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
285 | 287 | } | |
286 | 288 | ||
287 | 289 | let sumRewardPrevious = { | |
288 | - | let $ | |
289 | - | let $ | |
290 | - | let $ | |
291 | - | if (($ | |
292 | - | then $ | |
290 | + | let $list1107311106 = previousRewards | |
291 | + | let $size1107311106 = size($list1107311106) | |
292 | + | let $acc01107311106 = 0 | |
293 | + | if (($size1107311106 == 0)) | |
294 | + | then $acc01107311106 | |
293 | 295 | else { | |
294 | - | let $ | |
295 | - | if (($ | |
296 | - | then $ | |
296 | + | let $acc11107311106 = sum($acc01107311106, $list1107311106[0]) | |
297 | + | if (($size1107311106 == 1)) | |
298 | + | then $acc11107311106 | |
297 | 299 | else { | |
298 | - | let $ | |
299 | - | if (($ | |
300 | - | then $ | |
300 | + | let $acc21107311106 = sum($acc11107311106, $list1107311106[1]) | |
301 | + | if (($size1107311106 == 2)) | |
302 | + | then $acc21107311106 | |
301 | 303 | else { | |
302 | - | let $ | |
303 | - | if (($ | |
304 | - | then $ | |
304 | + | let $acc31107311106 = sum($acc21107311106, $list1107311106[2]) | |
305 | + | if (($size1107311106 == 3)) | |
306 | + | then $acc31107311106 | |
305 | 307 | else { | |
306 | - | let $ | |
307 | - | if (($ | |
308 | - | then $ | |
308 | + | let $acc41107311106 = sum($acc31107311106, $list1107311106[3]) | |
309 | + | if (($size1107311106 == 4)) | |
310 | + | then $acc41107311106 | |
309 | 311 | else { | |
310 | - | let $ | |
311 | - | if (($ | |
312 | - | then $ | |
312 | + | let $acc51107311106 = sum($acc41107311106, $list1107311106[4]) | |
313 | + | if (($size1107311106 == 5)) | |
314 | + | then $acc51107311106 | |
313 | 315 | else { | |
314 | - | let $ | |
315 | - | if (($ | |
316 | - | then $ | |
316 | + | let $acc61107311106 = sum($acc51107311106, $list1107311106[5]) | |
317 | + | if (($size1107311106 == 6)) | |
318 | + | then $acc61107311106 | |
317 | 319 | else { | |
318 | - | let $ | |
319 | - | if (($ | |
320 | - | then $ | |
320 | + | let $acc71107311106 = sum($acc61107311106, $list1107311106[6]) | |
321 | + | if (($size1107311106 == 7)) | |
322 | + | then $acc71107311106 | |
321 | 323 | else { | |
322 | - | let $ | |
323 | - | if (($ | |
324 | - | then $ | |
324 | + | let $acc81107311106 = sum($acc71107311106, $list1107311106[7]) | |
325 | + | if (($size1107311106 == 8)) | |
326 | + | then $acc81107311106 | |
325 | 327 | else { | |
326 | - | let $ | |
327 | - | if (($ | |
328 | - | then $ | |
328 | + | let $acc91107311106 = sum($acc81107311106, $list1107311106[8]) | |
329 | + | if (($size1107311106 == 9)) | |
330 | + | then $acc91107311106 | |
329 | 331 | else { | |
330 | - | let $ | |
331 | - | if (($ | |
332 | - | then $ | |
332 | + | let $acc101107311106 = sum($acc91107311106, $list1107311106[9]) | |
333 | + | if (($size1107311106 == 10)) | |
334 | + | then $acc101107311106 | |
333 | 335 | else { | |
334 | - | let $ | |
335 | - | if (($ | |
336 | - | then $ | |
336 | + | let $acc111107311106 = sum($acc101107311106, $list1107311106[10]) | |
337 | + | if (($size1107311106 == 11)) | |
338 | + | then $acc111107311106 | |
337 | 339 | else { | |
338 | - | let $ | |
339 | - | if (($ | |
340 | - | then $ | |
340 | + | let $acc121107311106 = sum($acc111107311106, $list1107311106[11]) | |
341 | + | if (($size1107311106 == 12)) | |
342 | + | then $acc121107311106 | |
341 | 343 | else { | |
342 | - | let $ | |
343 | - | if (($ | |
344 | - | then $ | |
344 | + | let $acc131107311106 = sum($acc121107311106, $list1107311106[12]) | |
345 | + | if (($size1107311106 == 13)) | |
346 | + | then $acc131107311106 | |
345 | 347 | else { | |
346 | - | let $ | |
347 | - | if (($ | |
348 | - | then $ | |
348 | + | let $acc141107311106 = sum($acc131107311106, $list1107311106[13]) | |
349 | + | if (($size1107311106 == 14)) | |
350 | + | then $acc141107311106 | |
349 | 351 | else { | |
350 | - | let $ | |
351 | - | if (($ | |
352 | - | then $ | |
352 | + | let $acc151107311106 = sum($acc141107311106, $list1107311106[14]) | |
353 | + | if (($size1107311106 == 15)) | |
354 | + | then $acc151107311106 | |
353 | 355 | else { | |
354 | - | let $ | |
355 | - | if (($ | |
356 | - | then $ | |
356 | + | let $acc161107311106 = sum($acc151107311106, $list1107311106[15]) | |
357 | + | if (($size1107311106 == 16)) | |
358 | + | then $acc161107311106 | |
357 | 359 | else { | |
358 | - | let $ | |
359 | - | if (($ | |
360 | - | then $ | |
360 | + | let $acc171107311106 = sum($acc161107311106, $list1107311106[16]) | |
361 | + | if (($size1107311106 == 17)) | |
362 | + | then $acc171107311106 | |
361 | 363 | else { | |
362 | - | let $ | |
363 | - | if (($ | |
364 | - | then $ | |
364 | + | let $acc181107311106 = sum($acc171107311106, $list1107311106[17]) | |
365 | + | if (($size1107311106 == 18)) | |
366 | + | then $acc181107311106 | |
365 | 367 | else { | |
366 | - | let $ | |
367 | - | if (($ | |
368 | - | then $ | |
368 | + | let $acc191107311106 = sum($acc181107311106, $list1107311106[18]) | |
369 | + | if (($size1107311106 == 19)) | |
370 | + | then $acc191107311106 | |
369 | 371 | else { | |
370 | - | let $ | |
371 | - | if (($ | |
372 | - | then $ | |
372 | + | let $acc201107311106 = sum($acc191107311106, $list1107311106[19]) | |
373 | + | if (($size1107311106 == 20)) | |
374 | + | then $acc201107311106 | |
373 | 375 | else { | |
374 | - | let $ | |
376 | + | let $acc211107311106 = sum($acc201107311106, $list1107311106[20]) | |
375 | 377 | throw("List size exceed 20") | |
376 | 378 | } | |
377 | 379 | } | |
396 | 398 | } | |
397 | 399 | } | |
398 | 400 | let sumRewardCurrent = { | |
399 | - | let $ | |
400 | - | let $ | |
401 | - | let $ | |
402 | - | if (($ | |
403 | - | then $ | |
401 | + | let $list1113511167 = currentRewards | |
402 | + | let $size1113511167 = size($list1113511167) | |
403 | + | let $acc01113511167 = 0 | |
404 | + | if (($size1113511167 == 0)) | |
405 | + | then $acc01113511167 | |
404 | 406 | else { | |
405 | - | let $ | |
406 | - | if (($ | |
407 | - | then $ | |
407 | + | let $acc11113511167 = sum($acc01113511167, $list1113511167[0]) | |
408 | + | if (($size1113511167 == 1)) | |
409 | + | then $acc11113511167 | |
408 | 410 | else { | |
409 | - | let $ | |
410 | - | if (($ | |
411 | - | then $ | |
411 | + | let $acc21113511167 = sum($acc11113511167, $list1113511167[1]) | |
412 | + | if (($size1113511167 == 2)) | |
413 | + | then $acc21113511167 | |
412 | 414 | else { | |
413 | - | let $ | |
414 | - | if (($ | |
415 | - | then $ | |
415 | + | let $acc31113511167 = sum($acc21113511167, $list1113511167[2]) | |
416 | + | if (($size1113511167 == 3)) | |
417 | + | then $acc31113511167 | |
416 | 418 | else { | |
417 | - | let $ | |
418 | - | if (($ | |
419 | - | then $ | |
419 | + | let $acc41113511167 = sum($acc31113511167, $list1113511167[3]) | |
420 | + | if (($size1113511167 == 4)) | |
421 | + | then $acc41113511167 | |
420 | 422 | else { | |
421 | - | let $ | |
422 | - | if (($ | |
423 | - | then $ | |
423 | + | let $acc51113511167 = sum($acc41113511167, $list1113511167[4]) | |
424 | + | if (($size1113511167 == 5)) | |
425 | + | then $acc51113511167 | |
424 | 426 | else { | |
425 | - | let $ | |
426 | - | if (($ | |
427 | - | then $ | |
427 | + | let $acc61113511167 = sum($acc51113511167, $list1113511167[5]) | |
428 | + | if (($size1113511167 == 6)) | |
429 | + | then $acc61113511167 | |
428 | 430 | else { | |
429 | - | let $ | |
430 | - | if (($ | |
431 | - | then $ | |
431 | + | let $acc71113511167 = sum($acc61113511167, $list1113511167[6]) | |
432 | + | if (($size1113511167 == 7)) | |
433 | + | then $acc71113511167 | |
432 | 434 | else { | |
433 | - | let $ | |
434 | - | if (($ | |
435 | - | then $ | |
435 | + | let $acc81113511167 = sum($acc71113511167, $list1113511167[7]) | |
436 | + | if (($size1113511167 == 8)) | |
437 | + | then $acc81113511167 | |
436 | 438 | else { | |
437 | - | let $ | |
438 | - | if (($ | |
439 | - | then $ | |
439 | + | let $acc91113511167 = sum($acc81113511167, $list1113511167[8]) | |
440 | + | if (($size1113511167 == 9)) | |
441 | + | then $acc91113511167 | |
440 | 442 | else { | |
441 | - | let $ | |
442 | - | if (($ | |
443 | - | then $ | |
443 | + | let $acc101113511167 = sum($acc91113511167, $list1113511167[9]) | |
444 | + | if (($size1113511167 == 10)) | |
445 | + | then $acc101113511167 | |
444 | 446 | else { | |
445 | - | let $ | |
446 | - | if (($ | |
447 | - | then $ | |
447 | + | let $acc111113511167 = sum($acc101113511167, $list1113511167[10]) | |
448 | + | if (($size1113511167 == 11)) | |
449 | + | then $acc111113511167 | |
448 | 450 | else { | |
449 | - | let $ | |
450 | - | if (($ | |
451 | - | then $ | |
451 | + | let $acc121113511167 = sum($acc111113511167, $list1113511167[11]) | |
452 | + | if (($size1113511167 == 12)) | |
453 | + | then $acc121113511167 | |
452 | 454 | else { | |
453 | - | let $ | |
454 | - | if (($ | |
455 | - | then $ | |
455 | + | let $acc131113511167 = sum($acc121113511167, $list1113511167[12]) | |
456 | + | if (($size1113511167 == 13)) | |
457 | + | then $acc131113511167 | |
456 | 458 | else { | |
457 | - | let $ | |
458 | - | if (($ | |
459 | - | then $ | |
459 | + | let $acc141113511167 = sum($acc131113511167, $list1113511167[13]) | |
460 | + | if (($size1113511167 == 14)) | |
461 | + | then $acc141113511167 | |
460 | 462 | else { | |
461 | - | let $ | |
462 | - | if (($ | |
463 | - | then $ | |
463 | + | let $acc151113511167 = sum($acc141113511167, $list1113511167[14]) | |
464 | + | if (($size1113511167 == 15)) | |
465 | + | then $acc151113511167 | |
464 | 466 | else { | |
465 | - | let $ | |
466 | - | if (($ | |
467 | - | then $ | |
467 | + | let $acc161113511167 = sum($acc151113511167, $list1113511167[15]) | |
468 | + | if (($size1113511167 == 16)) | |
469 | + | then $acc161113511167 | |
468 | 470 | else { | |
469 | - | let $ | |
470 | - | if (($ | |
471 | - | then $ | |
471 | + | let $acc171113511167 = sum($acc161113511167, $list1113511167[16]) | |
472 | + | if (($size1113511167 == 17)) | |
473 | + | then $acc171113511167 | |
472 | 474 | else { | |
473 | - | let $ | |
474 | - | if (($ | |
475 | - | then $ | |
475 | + | let $acc181113511167 = sum($acc171113511167, $list1113511167[17]) | |
476 | + | if (($size1113511167 == 18)) | |
477 | + | then $acc181113511167 | |
476 | 478 | else { | |
477 | - | let $ | |
478 | - | if (($ | |
479 | - | then $ | |
479 | + | let $acc191113511167 = sum($acc181113511167, $list1113511167[18]) | |
480 | + | if (($size1113511167 == 19)) | |
481 | + | then $acc191113511167 | |
480 | 482 | else { | |
481 | - | let $ | |
482 | - | if (($ | |
483 | - | then $ | |
483 | + | let $acc201113511167 = sum($acc191113511167, $list1113511167[19]) | |
484 | + | if (($size1113511167 == 20)) | |
485 | + | then $acc201113511167 | |
484 | 486 | else { | |
485 | - | let $ | |
487 | + | let $acc211113511167 = sum($acc201113511167, $list1113511167[20]) | |
486 | 488 | throw("List size exceed 20") | |
487 | 489 | } | |
488 | 490 | } | |
514 | 516 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
515 | 517 | else { | |
516 | 518 | let previousRewardEntryNew = { | |
517 | - | let $ | |
518 | - | let $ | |
519 | - | let $ | |
520 | - | if (($ | |
521 | - | then $ | |
519 | + | let $list1148311531 = previousPools | |
520 | + | let $size1148311531 = size($list1148311531) | |
521 | + | let $acc01148311531 = nil | |
522 | + | if (($size1148311531 == 0)) | |
523 | + | then $acc01148311531 | |
522 | 524 | else { | |
523 | - | let $ | |
524 | - | if (($ | |
525 | - | then $ | |
525 | + | let $acc11148311531 = PreviousRewardEntry($acc01148311531, $list1148311531[0]) | |
526 | + | if (($size1148311531 == 1)) | |
527 | + | then $acc11148311531 | |
526 | 528 | else { | |
527 | - | let $ | |
528 | - | if (($ | |
529 | - | then $ | |
529 | + | let $acc21148311531 = PreviousRewardEntry($acc11148311531, $list1148311531[1]) | |
530 | + | if (($size1148311531 == 2)) | |
531 | + | then $acc21148311531 | |
530 | 532 | else { | |
531 | - | let $ | |
532 | - | if (($ | |
533 | - | then $ | |
533 | + | let $acc31148311531 = PreviousRewardEntry($acc21148311531, $list1148311531[2]) | |
534 | + | if (($size1148311531 == 3)) | |
535 | + | then $acc31148311531 | |
534 | 536 | else { | |
535 | - | let $ | |
536 | - | if (($ | |
537 | - | then $ | |
537 | + | let $acc41148311531 = PreviousRewardEntry($acc31148311531, $list1148311531[3]) | |
538 | + | if (($size1148311531 == 4)) | |
539 | + | then $acc41148311531 | |
538 | 540 | else { | |
539 | - | let $ | |
540 | - | if (($ | |
541 | - | then $ | |
541 | + | let $acc51148311531 = PreviousRewardEntry($acc41148311531, $list1148311531[4]) | |
542 | + | if (($size1148311531 == 5)) | |
543 | + | then $acc51148311531 | |
542 | 544 | else { | |
543 | - | let $ | |
544 | - | if (($ | |
545 | - | then $ | |
545 | + | let $acc61148311531 = PreviousRewardEntry($acc51148311531, $list1148311531[5]) | |
546 | + | if (($size1148311531 == 6)) | |
547 | + | then $acc61148311531 | |
546 | 548 | else { | |
547 | - | let $ | |
548 | - | if (($ | |
549 | - | then $ | |
549 | + | let $acc71148311531 = PreviousRewardEntry($acc61148311531, $list1148311531[6]) | |
550 | + | if (($size1148311531 == 7)) | |
551 | + | then $acc71148311531 | |
550 | 552 | else { | |
551 | - | let $ | |
552 | - | if (($ | |
553 | - | then $ | |
553 | + | let $acc81148311531 = PreviousRewardEntry($acc71148311531, $list1148311531[7]) | |
554 | + | if (($size1148311531 == 8)) | |
555 | + | then $acc81148311531 | |
554 | 556 | else { | |
555 | - | let $ | |
556 | - | if (($ | |
557 | - | then $ | |
557 | + | let $acc91148311531 = PreviousRewardEntry($acc81148311531, $list1148311531[8]) | |
558 | + | if (($size1148311531 == 9)) | |
559 | + | then $acc91148311531 | |
558 | 560 | else { | |
559 | - | let $ | |
560 | - | if (($ | |
561 | - | then $ | |
561 | + | let $acc101148311531 = PreviousRewardEntry($acc91148311531, $list1148311531[9]) | |
562 | + | if (($size1148311531 == 10)) | |
563 | + | then $acc101148311531 | |
562 | 564 | else { | |
563 | - | let $ | |
564 | - | if (($ | |
565 | - | then $ | |
565 | + | let $acc111148311531 = PreviousRewardEntry($acc101148311531, $list1148311531[10]) | |
566 | + | if (($size1148311531 == 11)) | |
567 | + | then $acc111148311531 | |
566 | 568 | else { | |
567 | - | let $ | |
568 | - | if (($ | |
569 | - | then $ | |
569 | + | let $acc121148311531 = PreviousRewardEntry($acc111148311531, $list1148311531[11]) | |
570 | + | if (($size1148311531 == 12)) | |
571 | + | then $acc121148311531 | |
570 | 572 | else { | |
571 | - | let $ | |
572 | - | if (($ | |
573 | - | then $ | |
573 | + | let $acc131148311531 = PreviousRewardEntry($acc121148311531, $list1148311531[12]) | |
574 | + | if (($size1148311531 == 13)) | |
575 | + | then $acc131148311531 | |
574 | 576 | else { | |
575 | - | let $ | |
576 | - | if (($ | |
577 | - | then $ | |
577 | + | let $acc141148311531 = PreviousRewardEntry($acc131148311531, $list1148311531[13]) | |
578 | + | if (($size1148311531 == 14)) | |
579 | + | then $acc141148311531 | |
578 | 580 | else { | |
579 | - | let $ | |
580 | - | if (($ | |
581 | - | then $ | |
581 | + | let $acc151148311531 = PreviousRewardEntry($acc141148311531, $list1148311531[14]) | |
582 | + | if (($size1148311531 == 15)) | |
583 | + | then $acc151148311531 | |
582 | 584 | else { | |
583 | - | let $ | |
584 | - | if (($ | |
585 | - | then $ | |
585 | + | let $acc161148311531 = PreviousRewardEntry($acc151148311531, $list1148311531[15]) | |
586 | + | if (($size1148311531 == 16)) | |
587 | + | then $acc161148311531 | |
586 | 588 | else { | |
587 | - | let $ | |
588 | - | if (($ | |
589 | - | then $ | |
589 | + | let $acc171148311531 = PreviousRewardEntry($acc161148311531, $list1148311531[16]) | |
590 | + | if (($size1148311531 == 17)) | |
591 | + | then $acc171148311531 | |
590 | 592 | else { | |
591 | - | let $ | |
592 | - | if (($ | |
593 | - | then $ | |
593 | + | let $acc181148311531 = PreviousRewardEntry($acc171148311531, $list1148311531[17]) | |
594 | + | if (($size1148311531 == 18)) | |
595 | + | then $acc181148311531 | |
594 | 596 | else { | |
595 | - | let $ | |
596 | - | if (($ | |
597 | - | then $ | |
597 | + | let $acc191148311531 = PreviousRewardEntry($acc181148311531, $list1148311531[18]) | |
598 | + | if (($size1148311531 == 19)) | |
599 | + | then $acc191148311531 | |
598 | 600 | else { | |
599 | - | let $ | |
600 | - | if (($ | |
601 | - | then $ | |
601 | + | let $acc201148311531 = PreviousRewardEntry($acc191148311531, $list1148311531[19]) | |
602 | + | if (($size1148311531 == 20)) | |
603 | + | then $acc201148311531 | |
602 | 604 | else { | |
603 | - | let $ | |
605 | + | let $acc211148311531 = PreviousRewardEntry($acc201148311531, $list1148311531[20]) | |
604 | 606 | throw("List size exceed 20") | |
605 | 607 | } | |
606 | 608 | } | |
625 | 627 | } | |
626 | 628 | } | |
627 | 629 | let currentRewardEntryNew = { | |
628 | - | let $ | |
629 | - | let $ | |
630 | - | let $ | |
631 | - | if (($ | |
632 | - | then $ | |
630 | + | let $list1156411610 = currentPools | |
631 | + | let $size1156411610 = size($list1156411610) | |
632 | + | let $acc01156411610 = nil | |
633 | + | if (($size1156411610 == 0)) | |
634 | + | then $acc01156411610 | |
633 | 635 | else { | |
634 | - | let $ | |
635 | - | if (($ | |
636 | - | then $ | |
636 | + | let $acc11156411610 = CurrentRewardEntry($acc01156411610, $list1156411610[0]) | |
637 | + | if (($size1156411610 == 1)) | |
638 | + | then $acc11156411610 | |
637 | 639 | else { | |
638 | - | let $ | |
639 | - | if (($ | |
640 | - | then $ | |
640 | + | let $acc21156411610 = CurrentRewardEntry($acc11156411610, $list1156411610[1]) | |
641 | + | if (($size1156411610 == 2)) | |
642 | + | then $acc21156411610 | |
641 | 643 | else { | |
642 | - | let $ | |
643 | - | if (($ | |
644 | - | then $ | |
644 | + | let $acc31156411610 = CurrentRewardEntry($acc21156411610, $list1156411610[2]) | |
645 | + | if (($size1156411610 == 3)) | |
646 | + | then $acc31156411610 | |
645 | 647 | else { | |
646 | - | let $ | |
647 | - | if (($ | |
648 | - | then $ | |
648 | + | let $acc41156411610 = CurrentRewardEntry($acc31156411610, $list1156411610[3]) | |
649 | + | if (($size1156411610 == 4)) | |
650 | + | then $acc41156411610 | |
649 | 651 | else { | |
650 | - | let $ | |
651 | - | if (($ | |
652 | - | then $ | |
652 | + | let $acc51156411610 = CurrentRewardEntry($acc41156411610, $list1156411610[4]) | |
653 | + | if (($size1156411610 == 5)) | |
654 | + | then $acc51156411610 | |
653 | 655 | else { | |
654 | - | let $ | |
655 | - | if (($ | |
656 | - | then $ | |
656 | + | let $acc61156411610 = CurrentRewardEntry($acc51156411610, $list1156411610[5]) | |
657 | + | if (($size1156411610 == 6)) | |
658 | + | then $acc61156411610 | |
657 | 659 | else { | |
658 | - | let $ | |
659 | - | if (($ | |
660 | - | then $ | |
660 | + | let $acc71156411610 = CurrentRewardEntry($acc61156411610, $list1156411610[6]) | |
661 | + | if (($size1156411610 == 7)) | |
662 | + | then $acc71156411610 | |
661 | 663 | else { | |
662 | - | let $ | |
663 | - | if (($ | |
664 | - | then $ | |
664 | + | let $acc81156411610 = CurrentRewardEntry($acc71156411610, $list1156411610[7]) | |
665 | + | if (($size1156411610 == 8)) | |
666 | + | then $acc81156411610 | |
665 | 667 | else { | |
666 | - | let $ | |
667 | - | if (($ | |
668 | - | then $ | |
668 | + | let $acc91156411610 = CurrentRewardEntry($acc81156411610, $list1156411610[8]) | |
669 | + | if (($size1156411610 == 9)) | |
670 | + | then $acc91156411610 | |
669 | 671 | else { | |
670 | - | let $ | |
671 | - | if (($ | |
672 | - | then $ | |
672 | + | let $acc101156411610 = CurrentRewardEntry($acc91156411610, $list1156411610[9]) | |
673 | + | if (($size1156411610 == 10)) | |
674 | + | then $acc101156411610 | |
673 | 675 | else { | |
674 | - | let $ | |
675 | - | if (($ | |
676 | - | then $ | |
676 | + | let $acc111156411610 = CurrentRewardEntry($acc101156411610, $list1156411610[10]) | |
677 | + | if (($size1156411610 == 11)) | |
678 | + | then $acc111156411610 | |
677 | 679 | else { | |
678 | - | let $ | |
679 | - | if (($ | |
680 | - | then $ | |
680 | + | let $acc121156411610 = CurrentRewardEntry($acc111156411610, $list1156411610[11]) | |
681 | + | if (($size1156411610 == 12)) | |
682 | + | then $acc121156411610 | |
681 | 683 | else { | |
682 | - | let $ | |
683 | - | if (($ | |
684 | - | then $ | |
684 | + | let $acc131156411610 = CurrentRewardEntry($acc121156411610, $list1156411610[12]) | |
685 | + | if (($size1156411610 == 13)) | |
686 | + | then $acc131156411610 | |
685 | 687 | else { | |
686 | - | let $ | |
687 | - | if (($ | |
688 | - | then $ | |
688 | + | let $acc141156411610 = CurrentRewardEntry($acc131156411610, $list1156411610[13]) | |
689 | + | if (($size1156411610 == 14)) | |
690 | + | then $acc141156411610 | |
689 | 691 | else { | |
690 | - | let $ | |
691 | - | if (($ | |
692 | - | then $ | |
692 | + | let $acc151156411610 = CurrentRewardEntry($acc141156411610, $list1156411610[14]) | |
693 | + | if (($size1156411610 == 15)) | |
694 | + | then $acc151156411610 | |
693 | 695 | else { | |
694 | - | let $ | |
695 | - | if (($ | |
696 | - | then $ | |
696 | + | let $acc161156411610 = CurrentRewardEntry($acc151156411610, $list1156411610[15]) | |
697 | + | if (($size1156411610 == 16)) | |
698 | + | then $acc161156411610 | |
697 | 699 | else { | |
698 | - | let $ | |
699 | - | if (($ | |
700 | - | then $ | |
700 | + | let $acc171156411610 = CurrentRewardEntry($acc161156411610, $list1156411610[16]) | |
701 | + | if (($size1156411610 == 17)) | |
702 | + | then $acc171156411610 | |
701 | 703 | else { | |
702 | - | let $ | |
703 | - | if (($ | |
704 | - | then $ | |
704 | + | let $acc181156411610 = CurrentRewardEntry($acc171156411610, $list1156411610[17]) | |
705 | + | if (($size1156411610 == 18)) | |
706 | + | then $acc181156411610 | |
705 | 707 | else { | |
706 | - | let $ | |
707 | - | if (($ | |
708 | - | then $ | |
708 | + | let $acc191156411610 = CurrentRewardEntry($acc181156411610, $list1156411610[18]) | |
709 | + | if (($size1156411610 == 19)) | |
710 | + | then $acc191156411610 | |
709 | 711 | else { | |
710 | - | let $ | |
711 | - | if (($ | |
712 | - | then $ | |
712 | + | let $acc201156411610 = CurrentRewardEntry($acc191156411610, $list1156411610[19]) | |
713 | + | if (($size1156411610 == 20)) | |
714 | + | then $acc201156411610 | |
713 | 715 | else { | |
714 | - | let $ | |
716 | + | let $acc211156411610 = CurrentRewardEntry($acc201156411610, $list1156411610[20]) | |
715 | 717 | throw("List size exceed 20") | |
716 | 718 | } | |
717 | 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'3MzESVPKwN6LKK5J6RFLcZ4yYhDsCFCEShP') | |
59 | 59 | ||
60 | 60 | let keySWOPid = "SWOP_id" | |
61 | 61 | ||
62 | 62 | let SWOP = fromBase58String(getStringValue(farmingSWOPAddress, keySWOPid)) | |
63 | 63 | ||
64 | 64 | let scaleValue = 100000000 | |
65 | 65 | ||
66 | 66 | let totalVoteShare = 10000000000 | |
67 | 67 | ||
68 | 68 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount") | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getLastInterestInfo () = { | |
75 | 75 | let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0) | |
76 | 76 | lastInterest | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getUserSWOPLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPLocked)), 0) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getUserSWOPClaimedAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPClaimedAmount)), 0) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getUserInterestInfo (user,lastInterest) = { | |
87 | 87 | let userSWOPAmount = getUserSWOPLocked(user) | |
88 | 88 | let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest)) | |
89 | 89 | let userLastInterestValue = match userLastInterest { | |
90 | 90 | case userLastInterest: Int => | |
91 | 91 | userLastInterest | |
92 | 92 | case _ => | |
93 | 93 | lastInterest | |
94 | 94 | } | |
95 | 95 | $Tuple2(userLastInterestValue, userSWOPAmount) | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func getUserTotalVoteAmount (user) = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func getVoteOptionAmount (user,voteName,option) = { | |
112 | 112 | let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount)) | |
113 | 113 | let uvoa = match userVoteOptionAmount { | |
114 | 114 | case uvoa: Int => | |
115 | 115 | uvoa | |
116 | 116 | case uvoa: Unit => | |
117 | 117 | 0 | |
118 | 118 | case _ => | |
119 | 119 | throw("Match error") | |
120 | 120 | } | |
121 | 121 | valueOrErrorMessage(uvoa, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount)) | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func getTotalVoteOptionAmount (voteName,option) = { | |
129 | 129 | let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount)) | |
130 | 130 | let tvoa = match totalVoteOptionAmount { | |
131 | 131 | case tvoa: Int => | |
132 | 132 | tvoa | |
133 | 133 | case tvoa: Unit => | |
134 | 134 | 0 | |
135 | 135 | case _ => | |
136 | 136 | throw("Match error") | |
137 | 137 | } | |
138 | 138 | tvoa | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = { | |
143 | 143 | let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight)) | |
144 | 144 | valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key)) | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func claimCalc (caller) = { | |
149 | 149 | let lastInterest = getLastInterestInfo() | |
150 | 150 | let $t049765056 = getUserInterestInfo(caller, lastInterest) | |
151 | 151 | let userLastInterest = $t049765056._1 | |
152 | 152 | let userSWOPLocked = $t049765056._2 | |
153 | 153 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
154 | 154 | let userNewInterest = lastInterest | |
155 | 155 | $Tuple2(userNewInterest, claimAmount) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(i) | |
160 | 160 | func airDrop () = if (!(isActive)) | |
161 | 161 | then throw("DApp is inactive at this moment") | |
162 | 162 | else { | |
163 | 163 | let $t053215396 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
164 | 164 | let pmtAmount = $t053215396._1 | |
165 | 165 | let pmtAssetId = $t053215396._2 | |
166 | 166 | if ((pmtAssetId != SWOP)) | |
167 | 167 | then throw("Incorrect pmtAssetId") | |
168 | 168 | else { | |
169 | 169 | let totalSWOPLocked = getTotalSWOPLocked() | |
170 | 170 | let lastInterest = getLastInterestInfo() | |
171 | 171 | let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPLocked)) | |
172 | 172 | [IntegerEntry(keyLastInterest, interestNew)] | |
173 | 173 | } | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(i) | |
179 | 179 | func lockSWOP () = if (!(isActive)) | |
180 | 180 | then throw("DApp is inactive at this moment") | |
181 | 181 | else { | |
182 | 182 | let $t058345909 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
183 | 183 | let pmtAmount = $t058345909._1 | |
184 | 184 | let pmtAssetId = $t058345909._2 | |
185 | - | if (true) | |
186 | - | then throw(toBase58String(SWOP)) | |
187 | - | else if ((pmtAssetId != SWOP)) | |
188 | - | then throw("Incorrect pmtAssetId") | |
189 | - | else { | |
190 | - | let lastInterest = getLastInterestInfo() | |
191 | - | let $t060766158 = getUserInterestInfo(i.caller, lastInterest) | |
192 | - | let userLastInterest = $t060766158._1 | |
193 | - | let userSWOPLocked = $t060766158._2 | |
194 | - | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
195 | - | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
196 | - | let userNewInterest = lastInterest | |
197 | - | let totalSWOPLocked = getTotalSWOPLocked() | |
198 | - | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
199 | - | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
200 | - | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
185 | + | if ((pmtAssetId != SWOP)) | |
186 | + | then throw("Incorrect pmtAssetId") | |
187 | + | else { | |
188 | + | let lastInterest = getLastInterestInfo() | |
189 | + | let $t060266108 = getUserInterestInfo(i.caller, lastInterest) | |
190 | + | let userLastInterest = $t060266108._1 | |
191 | + | let userSWOPLocked = $t060266108._2 | |
192 | + | if (true) | |
193 | + | then throw(toString(lastInterest)) | |
194 | + | else { | |
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) | |
201 | 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)] | |
202 | - | } | |
203 | + | } | |
204 | + | } | |
203 | 205 | } | |
204 | 206 | ||
205 | 207 | ||
206 | 208 | ||
207 | 209 | @Callable(i) | |
208 | 210 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
209 | 211 | then throw("DApp is inactive at this moment") | |
210 | 212 | else { | |
211 | 213 | let totalSWOPLocked = getTotalSWOPLocked() | |
212 | 214 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
213 | - | let $ | |
214 | - | let userNewInterest = $ | |
215 | - | let claimAmount = $ | |
215 | + | let $t072447299 = claimCalc(i.caller) | |
216 | + | let userNewInterest = $t072447299._1 | |
217 | + | let claimAmount = $t072447299._2 | |
216 | 218 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
217 | 219 | let availableFund = (userSWOPLocked - userVoteAmount) | |
218 | 220 | if ((withdrawAmount > availableFund)) | |
219 | 221 | then throw("withdrawAmount > availableFund") | |
220 | 222 | else { | |
221 | 223 | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
222 | 224 | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
223 | 225 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
224 | 226 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
225 | 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)] | |
226 | 228 | } | |
227 | 229 | } | |
228 | 230 | ||
229 | 231 | ||
230 | 232 | ||
231 | 233 | @Callable(i) | |
232 | 234 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
233 | 235 | then throw("DApp is inactive at this moment") | |
234 | 236 | else { | |
235 | 237 | let lastInterest = getLastInterestInfo() | |
236 | - | let $ | |
237 | - | let userNewInterest = $ | |
238 | - | let claimAmount = $ | |
238 | + | let $t084118466 = claimCalc(i.caller) | |
239 | + | let userNewInterest = $t084118466._1 | |
240 | + | let claimAmount = $t084118466._2 | |
239 | 241 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
240 | 242 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
241 | 243 | if ((claimAmount == 0)) | |
242 | 244 | then throw("You have 0 available SWOP") | |
243 | 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)] | |
244 | 246 | } | |
245 | 247 | ||
246 | 248 | ||
247 | 249 | ||
248 | 250 | @Callable(i) | |
249 | 251 | func claimAndStakeSWOP () = if (!(isActive)) | |
250 | 252 | then throw("DApp is inactive at this moment") | |
251 | 253 | else { | |
252 | 254 | let totalSWOPLocked = getTotalSWOPLocked() | |
253 | 255 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
254 | 256 | let lastInterest = getLastInterestInfo() | |
255 | - | let $ | |
256 | - | let userNewInterest = $ | |
257 | - | let claimAmount = $ | |
257 | + | let $t092459300 = claimCalc(i.caller) | |
258 | + | let userNewInterest = $t092459300._1 | |
259 | + | let claimAmount = $t092459300._2 | |
258 | 260 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
259 | 261 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
260 | 262 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
261 | 263 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
262 | 264 | if ((claimAmount == 0)) | |
263 | 265 | then throw("You have 0 available SWOP") | |
264 | 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)] | |
265 | 267 | } | |
266 | 268 | ||
267 | 269 | ||
268 | 270 | ||
269 | 271 | @Callable(i) | |
270 | 272 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
271 | 273 | then throw("DApp is inactive at this moment") | |
272 | 274 | else { | |
273 | 275 | func sum (a,b) = (a + b) | |
274 | 276 | ||
275 | 277 | func PreviousRewardEntry (accumulated,pool) = { | |
276 | 278 | let poolIndex = value(indexOf(previousPools, pool)) | |
277 | 279 | let poolReward = previousRewards[poolIndex] | |
278 | 280 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
279 | 281 | } | |
280 | 282 | ||
281 | 283 | func CurrentRewardEntry (accumulated,pool) = { | |
282 | 284 | let poolIndex = value(indexOf(currentPools, pool)) | |
283 | 285 | let poolReward = currentRewards[poolIndex] | |
284 | 286 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
285 | 287 | } | |
286 | 288 | ||
287 | 289 | let sumRewardPrevious = { | |
288 | - | let $ | |
289 | - | let $ | |
290 | - | let $ | |
291 | - | if (($ | |
292 | - | then $ | |
290 | + | let $list1107311106 = previousRewards | |
291 | + | let $size1107311106 = size($list1107311106) | |
292 | + | let $acc01107311106 = 0 | |
293 | + | if (($size1107311106 == 0)) | |
294 | + | then $acc01107311106 | |
293 | 295 | else { | |
294 | - | let $ | |
295 | - | if (($ | |
296 | - | then $ | |
296 | + | let $acc11107311106 = sum($acc01107311106, $list1107311106[0]) | |
297 | + | if (($size1107311106 == 1)) | |
298 | + | then $acc11107311106 | |
297 | 299 | else { | |
298 | - | let $ | |
299 | - | if (($ | |
300 | - | then $ | |
300 | + | let $acc21107311106 = sum($acc11107311106, $list1107311106[1]) | |
301 | + | if (($size1107311106 == 2)) | |
302 | + | then $acc21107311106 | |
301 | 303 | else { | |
302 | - | let $ | |
303 | - | if (($ | |
304 | - | then $ | |
304 | + | let $acc31107311106 = sum($acc21107311106, $list1107311106[2]) | |
305 | + | if (($size1107311106 == 3)) | |
306 | + | then $acc31107311106 | |
305 | 307 | else { | |
306 | - | let $ | |
307 | - | if (($ | |
308 | - | then $ | |
308 | + | let $acc41107311106 = sum($acc31107311106, $list1107311106[3]) | |
309 | + | if (($size1107311106 == 4)) | |
310 | + | then $acc41107311106 | |
309 | 311 | else { | |
310 | - | let $ | |
311 | - | if (($ | |
312 | - | then $ | |
312 | + | let $acc51107311106 = sum($acc41107311106, $list1107311106[4]) | |
313 | + | if (($size1107311106 == 5)) | |
314 | + | then $acc51107311106 | |
313 | 315 | else { | |
314 | - | let $ | |
315 | - | if (($ | |
316 | - | then $ | |
316 | + | let $acc61107311106 = sum($acc51107311106, $list1107311106[5]) | |
317 | + | if (($size1107311106 == 6)) | |
318 | + | then $acc61107311106 | |
317 | 319 | else { | |
318 | - | let $ | |
319 | - | if (($ | |
320 | - | then $ | |
320 | + | let $acc71107311106 = sum($acc61107311106, $list1107311106[6]) | |
321 | + | if (($size1107311106 == 7)) | |
322 | + | then $acc71107311106 | |
321 | 323 | else { | |
322 | - | let $ | |
323 | - | if (($ | |
324 | - | then $ | |
324 | + | let $acc81107311106 = sum($acc71107311106, $list1107311106[7]) | |
325 | + | if (($size1107311106 == 8)) | |
326 | + | then $acc81107311106 | |
325 | 327 | else { | |
326 | - | let $ | |
327 | - | if (($ | |
328 | - | then $ | |
328 | + | let $acc91107311106 = sum($acc81107311106, $list1107311106[8]) | |
329 | + | if (($size1107311106 == 9)) | |
330 | + | then $acc91107311106 | |
329 | 331 | else { | |
330 | - | let $ | |
331 | - | if (($ | |
332 | - | then $ | |
332 | + | let $acc101107311106 = sum($acc91107311106, $list1107311106[9]) | |
333 | + | if (($size1107311106 == 10)) | |
334 | + | then $acc101107311106 | |
333 | 335 | else { | |
334 | - | let $ | |
335 | - | if (($ | |
336 | - | then $ | |
336 | + | let $acc111107311106 = sum($acc101107311106, $list1107311106[10]) | |
337 | + | if (($size1107311106 == 11)) | |
338 | + | then $acc111107311106 | |
337 | 339 | else { | |
338 | - | let $ | |
339 | - | if (($ | |
340 | - | then $ | |
340 | + | let $acc121107311106 = sum($acc111107311106, $list1107311106[11]) | |
341 | + | if (($size1107311106 == 12)) | |
342 | + | then $acc121107311106 | |
341 | 343 | else { | |
342 | - | let $ | |
343 | - | if (($ | |
344 | - | then $ | |
344 | + | let $acc131107311106 = sum($acc121107311106, $list1107311106[12]) | |
345 | + | if (($size1107311106 == 13)) | |
346 | + | then $acc131107311106 | |
345 | 347 | else { | |
346 | - | let $ | |
347 | - | if (($ | |
348 | - | then $ | |
348 | + | let $acc141107311106 = sum($acc131107311106, $list1107311106[13]) | |
349 | + | if (($size1107311106 == 14)) | |
350 | + | then $acc141107311106 | |
349 | 351 | else { | |
350 | - | let $ | |
351 | - | if (($ | |
352 | - | then $ | |
352 | + | let $acc151107311106 = sum($acc141107311106, $list1107311106[14]) | |
353 | + | if (($size1107311106 == 15)) | |
354 | + | then $acc151107311106 | |
353 | 355 | else { | |
354 | - | let $ | |
355 | - | if (($ | |
356 | - | then $ | |
356 | + | let $acc161107311106 = sum($acc151107311106, $list1107311106[15]) | |
357 | + | if (($size1107311106 == 16)) | |
358 | + | then $acc161107311106 | |
357 | 359 | else { | |
358 | - | let $ | |
359 | - | if (($ | |
360 | - | then $ | |
360 | + | let $acc171107311106 = sum($acc161107311106, $list1107311106[16]) | |
361 | + | if (($size1107311106 == 17)) | |
362 | + | then $acc171107311106 | |
361 | 363 | else { | |
362 | - | let $ | |
363 | - | if (($ | |
364 | - | then $ | |
364 | + | let $acc181107311106 = sum($acc171107311106, $list1107311106[17]) | |
365 | + | if (($size1107311106 == 18)) | |
366 | + | then $acc181107311106 | |
365 | 367 | else { | |
366 | - | let $ | |
367 | - | if (($ | |
368 | - | then $ | |
368 | + | let $acc191107311106 = sum($acc181107311106, $list1107311106[18]) | |
369 | + | if (($size1107311106 == 19)) | |
370 | + | then $acc191107311106 | |
369 | 371 | else { | |
370 | - | let $ | |
371 | - | if (($ | |
372 | - | then $ | |
372 | + | let $acc201107311106 = sum($acc191107311106, $list1107311106[19]) | |
373 | + | if (($size1107311106 == 20)) | |
374 | + | then $acc201107311106 | |
373 | 375 | else { | |
374 | - | let $ | |
376 | + | let $acc211107311106 = sum($acc201107311106, $list1107311106[20]) | |
375 | 377 | throw("List size exceed 20") | |
376 | 378 | } | |
377 | 379 | } | |
378 | 380 | } | |
379 | 381 | } | |
380 | 382 | } | |
381 | 383 | } | |
382 | 384 | } | |
383 | 385 | } | |
384 | 386 | } | |
385 | 387 | } | |
386 | 388 | } | |
387 | 389 | } | |
388 | 390 | } | |
389 | 391 | } | |
390 | 392 | } | |
391 | 393 | } | |
392 | 394 | } | |
393 | 395 | } | |
394 | 396 | } | |
395 | 397 | } | |
396 | 398 | } | |
397 | 399 | } | |
398 | 400 | let sumRewardCurrent = { | |
399 | - | let $ | |
400 | - | let $ | |
401 | - | let $ | |
402 | - | if (($ | |
403 | - | then $ | |
401 | + | let $list1113511167 = currentRewards | |
402 | + | let $size1113511167 = size($list1113511167) | |
403 | + | let $acc01113511167 = 0 | |
404 | + | if (($size1113511167 == 0)) | |
405 | + | then $acc01113511167 | |
404 | 406 | else { | |
405 | - | let $ | |
406 | - | if (($ | |
407 | - | then $ | |
407 | + | let $acc11113511167 = sum($acc01113511167, $list1113511167[0]) | |
408 | + | if (($size1113511167 == 1)) | |
409 | + | then $acc11113511167 | |
408 | 410 | else { | |
409 | - | let $ | |
410 | - | if (($ | |
411 | - | then $ | |
411 | + | let $acc21113511167 = sum($acc11113511167, $list1113511167[1]) | |
412 | + | if (($size1113511167 == 2)) | |
413 | + | then $acc21113511167 | |
412 | 414 | else { | |
413 | - | let $ | |
414 | - | if (($ | |
415 | - | then $ | |
415 | + | let $acc31113511167 = sum($acc21113511167, $list1113511167[2]) | |
416 | + | if (($size1113511167 == 3)) | |
417 | + | then $acc31113511167 | |
416 | 418 | else { | |
417 | - | let $ | |
418 | - | if (($ | |
419 | - | then $ | |
419 | + | let $acc41113511167 = sum($acc31113511167, $list1113511167[3]) | |
420 | + | if (($size1113511167 == 4)) | |
421 | + | then $acc41113511167 | |
420 | 422 | else { | |
421 | - | let $ | |
422 | - | if (($ | |
423 | - | then $ | |
423 | + | let $acc51113511167 = sum($acc41113511167, $list1113511167[4]) | |
424 | + | if (($size1113511167 == 5)) | |
425 | + | then $acc51113511167 | |
424 | 426 | else { | |
425 | - | let $ | |
426 | - | if (($ | |
427 | - | then $ | |
427 | + | let $acc61113511167 = sum($acc51113511167, $list1113511167[5]) | |
428 | + | if (($size1113511167 == 6)) | |
429 | + | then $acc61113511167 | |
428 | 430 | else { | |
429 | - | let $ | |
430 | - | if (($ | |
431 | - | then $ | |
431 | + | let $acc71113511167 = sum($acc61113511167, $list1113511167[6]) | |
432 | + | if (($size1113511167 == 7)) | |
433 | + | then $acc71113511167 | |
432 | 434 | else { | |
433 | - | let $ | |
434 | - | if (($ | |
435 | - | then $ | |
435 | + | let $acc81113511167 = sum($acc71113511167, $list1113511167[7]) | |
436 | + | if (($size1113511167 == 8)) | |
437 | + | then $acc81113511167 | |
436 | 438 | else { | |
437 | - | let $ | |
438 | - | if (($ | |
439 | - | then $ | |
439 | + | let $acc91113511167 = sum($acc81113511167, $list1113511167[8]) | |
440 | + | if (($size1113511167 == 9)) | |
441 | + | then $acc91113511167 | |
440 | 442 | else { | |
441 | - | let $ | |
442 | - | if (($ | |
443 | - | then $ | |
443 | + | let $acc101113511167 = sum($acc91113511167, $list1113511167[9]) | |
444 | + | if (($size1113511167 == 10)) | |
445 | + | then $acc101113511167 | |
444 | 446 | else { | |
445 | - | let $ | |
446 | - | if (($ | |
447 | - | then $ | |
447 | + | let $acc111113511167 = sum($acc101113511167, $list1113511167[10]) | |
448 | + | if (($size1113511167 == 11)) | |
449 | + | then $acc111113511167 | |
448 | 450 | else { | |
449 | - | let $ | |
450 | - | if (($ | |
451 | - | then $ | |
451 | + | let $acc121113511167 = sum($acc111113511167, $list1113511167[11]) | |
452 | + | if (($size1113511167 == 12)) | |
453 | + | then $acc121113511167 | |
452 | 454 | else { | |
453 | - | let $ | |
454 | - | if (($ | |
455 | - | then $ | |
455 | + | let $acc131113511167 = sum($acc121113511167, $list1113511167[12]) | |
456 | + | if (($size1113511167 == 13)) | |
457 | + | then $acc131113511167 | |
456 | 458 | else { | |
457 | - | let $ | |
458 | - | if (($ | |
459 | - | then $ | |
459 | + | let $acc141113511167 = sum($acc131113511167, $list1113511167[13]) | |
460 | + | if (($size1113511167 == 14)) | |
461 | + | then $acc141113511167 | |
460 | 462 | else { | |
461 | - | let $ | |
462 | - | if (($ | |
463 | - | then $ | |
463 | + | let $acc151113511167 = sum($acc141113511167, $list1113511167[14]) | |
464 | + | if (($size1113511167 == 15)) | |
465 | + | then $acc151113511167 | |
464 | 466 | else { | |
465 | - | let $ | |
466 | - | if (($ | |
467 | - | then $ | |
467 | + | let $acc161113511167 = sum($acc151113511167, $list1113511167[15]) | |
468 | + | if (($size1113511167 == 16)) | |
469 | + | then $acc161113511167 | |
468 | 470 | else { | |
469 | - | let $ | |
470 | - | if (($ | |
471 | - | then $ | |
471 | + | let $acc171113511167 = sum($acc161113511167, $list1113511167[16]) | |
472 | + | if (($size1113511167 == 17)) | |
473 | + | then $acc171113511167 | |
472 | 474 | else { | |
473 | - | let $ | |
474 | - | if (($ | |
475 | - | then $ | |
475 | + | let $acc181113511167 = sum($acc171113511167, $list1113511167[17]) | |
476 | + | if (($size1113511167 == 18)) | |
477 | + | then $acc181113511167 | |
476 | 478 | else { | |
477 | - | let $ | |
478 | - | if (($ | |
479 | - | then $ | |
479 | + | let $acc191113511167 = sum($acc181113511167, $list1113511167[18]) | |
480 | + | if (($size1113511167 == 19)) | |
481 | + | then $acc191113511167 | |
480 | 482 | else { | |
481 | - | let $ | |
482 | - | if (($ | |
483 | - | then $ | |
483 | + | let $acc201113511167 = sum($acc191113511167, $list1113511167[19]) | |
484 | + | if (($size1113511167 == 20)) | |
485 | + | then $acc201113511167 | |
484 | 486 | else { | |
485 | - | let $ | |
487 | + | let $acc211113511167 = sum($acc201113511167, $list1113511167[20]) | |
486 | 488 | throw("List size exceed 20") | |
487 | 489 | } | |
488 | 490 | } | |
489 | 491 | } | |
490 | 492 | } | |
491 | 493 | } | |
492 | 494 | } | |
493 | 495 | } | |
494 | 496 | } | |
495 | 497 | } | |
496 | 498 | } | |
497 | 499 | } | |
498 | 500 | } | |
499 | 501 | } | |
500 | 502 | } | |
501 | 503 | } | |
502 | 504 | } | |
503 | 505 | } | |
504 | 506 | } | |
505 | 507 | } | |
506 | 508 | } | |
507 | 509 | } | |
508 | 510 | } | |
509 | 511 | if ((height > rewardUpdateHeight)) | |
510 | 512 | then throw("rewardUpdateHeight < heightthen") | |
511 | 513 | else if (if ((sumRewardPrevious != totalVoteShare)) | |
512 | 514 | then true | |
513 | 515 | else (sumRewardCurrent != totalVoteShare)) | |
514 | 516 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
515 | 517 | else { | |
516 | 518 | let previousRewardEntryNew = { | |
517 | - | let $ | |
518 | - | let $ | |
519 | - | let $ | |
520 | - | if (($ | |
521 | - | then $ | |
519 | + | let $list1148311531 = previousPools | |
520 | + | let $size1148311531 = size($list1148311531) | |
521 | + | let $acc01148311531 = nil | |
522 | + | if (($size1148311531 == 0)) | |
523 | + | then $acc01148311531 | |
522 | 524 | else { | |
523 | - | let $ | |
524 | - | if (($ | |
525 | - | then $ | |
525 | + | let $acc11148311531 = PreviousRewardEntry($acc01148311531, $list1148311531[0]) | |
526 | + | if (($size1148311531 == 1)) | |
527 | + | then $acc11148311531 | |
526 | 528 | else { | |
527 | - | let $ | |
528 | - | if (($ | |
529 | - | then $ | |
529 | + | let $acc21148311531 = PreviousRewardEntry($acc11148311531, $list1148311531[1]) | |
530 | + | if (($size1148311531 == 2)) | |
531 | + | then $acc21148311531 | |
530 | 532 | else { | |
531 | - | let $ | |
532 | - | if (($ | |
533 | - | then $ | |
533 | + | let $acc31148311531 = PreviousRewardEntry($acc21148311531, $list1148311531[2]) | |
534 | + | if (($size1148311531 == 3)) | |
535 | + | then $acc31148311531 | |
534 | 536 | else { | |
535 | - | let $ | |
536 | - | if (($ | |
537 | - | then $ | |
537 | + | let $acc41148311531 = PreviousRewardEntry($acc31148311531, $list1148311531[3]) | |
538 | + | if (($size1148311531 == 4)) | |
539 | + | then $acc41148311531 | |
538 | 540 | else { | |
539 | - | let $ | |
540 | - | if (($ | |
541 | - | then $ | |
541 | + | let $acc51148311531 = PreviousRewardEntry($acc41148311531, $list1148311531[4]) | |
542 | + | if (($size1148311531 == 5)) | |
543 | + | then $acc51148311531 | |
542 | 544 | else { | |
543 | - | let $ | |
544 | - | if (($ | |
545 | - | then $ | |
545 | + | let $acc61148311531 = PreviousRewardEntry($acc51148311531, $list1148311531[5]) | |
546 | + | if (($size1148311531 == 6)) | |
547 | + | then $acc61148311531 | |
546 | 548 | else { | |
547 | - | let $ | |
548 | - | if (($ | |
549 | - | then $ | |
549 | + | let $acc71148311531 = PreviousRewardEntry($acc61148311531, $list1148311531[6]) | |
550 | + | if (($size1148311531 == 7)) | |
551 | + | then $acc71148311531 | |
550 | 552 | else { | |
551 | - | let $ | |
552 | - | if (($ | |
553 | - | then $ | |
553 | + | let $acc81148311531 = PreviousRewardEntry($acc71148311531, $list1148311531[7]) | |
554 | + | if (($size1148311531 == 8)) | |
555 | + | then $acc81148311531 | |
554 | 556 | else { | |
555 | - | let $ | |
556 | - | if (($ | |
557 | - | then $ | |
557 | + | let $acc91148311531 = PreviousRewardEntry($acc81148311531, $list1148311531[8]) | |
558 | + | if (($size1148311531 == 9)) | |
559 | + | then $acc91148311531 | |
558 | 560 | else { | |
559 | - | let $ | |
560 | - | if (($ | |
561 | - | then $ | |
561 | + | let $acc101148311531 = PreviousRewardEntry($acc91148311531, $list1148311531[9]) | |
562 | + | if (($size1148311531 == 10)) | |
563 | + | then $acc101148311531 | |
562 | 564 | else { | |
563 | - | let $ | |
564 | - | if (($ | |
565 | - | then $ | |
565 | + | let $acc111148311531 = PreviousRewardEntry($acc101148311531, $list1148311531[10]) | |
566 | + | if (($size1148311531 == 11)) | |
567 | + | then $acc111148311531 | |
566 | 568 | else { | |
567 | - | let $ | |
568 | - | if (($ | |
569 | - | then $ | |
569 | + | let $acc121148311531 = PreviousRewardEntry($acc111148311531, $list1148311531[11]) | |
570 | + | if (($size1148311531 == 12)) | |
571 | + | then $acc121148311531 | |
570 | 572 | else { | |
571 | - | let $ | |
572 | - | if (($ | |
573 | - | then $ | |
573 | + | let $acc131148311531 = PreviousRewardEntry($acc121148311531, $list1148311531[12]) | |
574 | + | if (($size1148311531 == 13)) | |
575 | + | then $acc131148311531 | |
574 | 576 | else { | |
575 | - | let $ | |
576 | - | if (($ | |
577 | - | then $ | |
577 | + | let $acc141148311531 = PreviousRewardEntry($acc131148311531, $list1148311531[13]) | |
578 | + | if (($size1148311531 == 14)) | |
579 | + | then $acc141148311531 | |
578 | 580 | else { | |
579 | - | let $ | |
580 | - | if (($ | |
581 | - | then $ | |
581 | + | let $acc151148311531 = PreviousRewardEntry($acc141148311531, $list1148311531[14]) | |
582 | + | if (($size1148311531 == 15)) | |
583 | + | then $acc151148311531 | |
582 | 584 | else { | |
583 | - | let $ | |
584 | - | if (($ | |
585 | - | then $ | |
585 | + | let $acc161148311531 = PreviousRewardEntry($acc151148311531, $list1148311531[15]) | |
586 | + | if (($size1148311531 == 16)) | |
587 | + | then $acc161148311531 | |
586 | 588 | else { | |
587 | - | let $ | |
588 | - | if (($ | |
589 | - | then $ | |
589 | + | let $acc171148311531 = PreviousRewardEntry($acc161148311531, $list1148311531[16]) | |
590 | + | if (($size1148311531 == 17)) | |
591 | + | then $acc171148311531 | |
590 | 592 | else { | |
591 | - | let $ | |
592 | - | if (($ | |
593 | - | then $ | |
593 | + | let $acc181148311531 = PreviousRewardEntry($acc171148311531, $list1148311531[17]) | |
594 | + | if (($size1148311531 == 18)) | |
595 | + | then $acc181148311531 | |
594 | 596 | else { | |
595 | - | let $ | |
596 | - | if (($ | |
597 | - | then $ | |
597 | + | let $acc191148311531 = PreviousRewardEntry($acc181148311531, $list1148311531[18]) | |
598 | + | if (($size1148311531 == 19)) | |
599 | + | then $acc191148311531 | |
598 | 600 | else { | |
599 | - | let $ | |
600 | - | if (($ | |
601 | - | then $ | |
601 | + | let $acc201148311531 = PreviousRewardEntry($acc191148311531, $list1148311531[19]) | |
602 | + | if (($size1148311531 == 20)) | |
603 | + | then $acc201148311531 | |
602 | 604 | else { | |
603 | - | let $ | |
605 | + | let $acc211148311531 = PreviousRewardEntry($acc201148311531, $list1148311531[20]) | |
604 | 606 | throw("List size exceed 20") | |
605 | 607 | } | |
606 | 608 | } | |
607 | 609 | } | |
608 | 610 | } | |
609 | 611 | } | |
610 | 612 | } | |
611 | 613 | } | |
612 | 614 | } | |
613 | 615 | } | |
614 | 616 | } | |
615 | 617 | } | |
616 | 618 | } | |
617 | 619 | } | |
618 | 620 | } | |
619 | 621 | } | |
620 | 622 | } | |
621 | 623 | } | |
622 | 624 | } | |
623 | 625 | } | |
624 | 626 | } | |
625 | 627 | } | |
626 | 628 | } | |
627 | 629 | let currentRewardEntryNew = { | |
628 | - | let $ | |
629 | - | let $ | |
630 | - | let $ | |
631 | - | if (($ | |
632 | - | then $ | |
630 | + | let $list1156411610 = currentPools | |
631 | + | let $size1156411610 = size($list1156411610) | |
632 | + | let $acc01156411610 = nil | |
633 | + | if (($size1156411610 == 0)) | |
634 | + | then $acc01156411610 | |
633 | 635 | else { | |
634 | - | let $ | |
635 | - | if (($ | |
636 | - | then $ | |
636 | + | let $acc11156411610 = CurrentRewardEntry($acc01156411610, $list1156411610[0]) | |
637 | + | if (($size1156411610 == 1)) | |
638 | + | then $acc11156411610 | |
637 | 639 | else { | |
638 | - | let $ | |
639 | - | if (($ | |
640 | - | then $ | |
640 | + | let $acc21156411610 = CurrentRewardEntry($acc11156411610, $list1156411610[1]) | |
641 | + | if (($size1156411610 == 2)) | |
642 | + | then $acc21156411610 | |
641 | 643 | else { | |
642 | - | let $ | |
643 | - | if (($ | |
644 | - | then $ | |
644 | + | let $acc31156411610 = CurrentRewardEntry($acc21156411610, $list1156411610[2]) | |
645 | + | if (($size1156411610 == 3)) | |
646 | + | then $acc31156411610 | |
645 | 647 | else { | |
646 | - | let $ | |
647 | - | if (($ | |
648 | - | then $ | |
648 | + | let $acc41156411610 = CurrentRewardEntry($acc31156411610, $list1156411610[3]) | |
649 | + | if (($size1156411610 == 4)) | |
650 | + | then $acc41156411610 | |
649 | 651 | else { | |
650 | - | let $ | |
651 | - | if (($ | |
652 | - | then $ | |
652 | + | let $acc51156411610 = CurrentRewardEntry($acc41156411610, $list1156411610[4]) | |
653 | + | if (($size1156411610 == 5)) | |
654 | + | then $acc51156411610 | |
653 | 655 | else { | |
654 | - | let $ | |
655 | - | if (($ | |
656 | - | then $ | |
656 | + | let $acc61156411610 = CurrentRewardEntry($acc51156411610, $list1156411610[5]) | |
657 | + | if (($size1156411610 == 6)) | |
658 | + | then $acc61156411610 | |
657 | 659 | else { | |
658 | - | let $ | |
659 | - | if (($ | |
660 | - | then $ | |
660 | + | let $acc71156411610 = CurrentRewardEntry($acc61156411610, $list1156411610[6]) | |
661 | + | if (($size1156411610 == 7)) | |
662 | + | then $acc71156411610 | |
661 | 663 | else { | |
662 | - | let $ | |
663 | - | if (($ | |
664 | - | then $ | |
664 | + | let $acc81156411610 = CurrentRewardEntry($acc71156411610, $list1156411610[7]) | |
665 | + | if (($size1156411610 == 8)) | |
666 | + | then $acc81156411610 | |
665 | 667 | else { | |
666 | - | let $ | |
667 | - | if (($ | |
668 | - | then $ | |
668 | + | let $acc91156411610 = CurrentRewardEntry($acc81156411610, $list1156411610[8]) | |
669 | + | if (($size1156411610 == 9)) | |
670 | + | then $acc91156411610 | |
669 | 671 | else { | |
670 | - | let $ | |
671 | - | if (($ | |
672 | - | then $ | |
672 | + | let $acc101156411610 = CurrentRewardEntry($acc91156411610, $list1156411610[9]) | |
673 | + | if (($size1156411610 == 10)) | |
674 | + | then $acc101156411610 | |
673 | 675 | else { | |
674 | - | let $ | |
675 | - | if (($ | |
676 | - | then $ | |
676 | + | let $acc111156411610 = CurrentRewardEntry($acc101156411610, $list1156411610[10]) | |
677 | + | if (($size1156411610 == 11)) | |
678 | + | then $acc111156411610 | |
677 | 679 | else { | |
678 | - | let $ | |
679 | - | if (($ | |
680 | - | then $ | |
680 | + | let $acc121156411610 = CurrentRewardEntry($acc111156411610, $list1156411610[11]) | |
681 | + | if (($size1156411610 == 12)) | |
682 | + | then $acc121156411610 | |
681 | 683 | else { | |
682 | - | let $ | |
683 | - | if (($ | |
684 | - | then $ | |
684 | + | let $acc131156411610 = CurrentRewardEntry($acc121156411610, $list1156411610[12]) | |
685 | + | if (($size1156411610 == 13)) | |
686 | + | then $acc131156411610 | |
685 | 687 | else { | |
686 | - | let $ | |
687 | - | if (($ | |
688 | - | then $ | |
688 | + | let $acc141156411610 = CurrentRewardEntry($acc131156411610, $list1156411610[13]) | |
689 | + | if (($size1156411610 == 14)) | |
690 | + | then $acc141156411610 | |
689 | 691 | else { | |
690 | - | let $ | |
691 | - | if (($ | |
692 | - | then $ | |
692 | + | let $acc151156411610 = CurrentRewardEntry($acc141156411610, $list1156411610[14]) | |
693 | + | if (($size1156411610 == 15)) | |
694 | + | then $acc151156411610 | |
693 | 695 | else { | |
694 | - | let $ | |
695 | - | if (($ | |
696 | - | then $ | |
696 | + | let $acc161156411610 = CurrentRewardEntry($acc151156411610, $list1156411610[15]) | |
697 | + | if (($size1156411610 == 16)) | |
698 | + | then $acc161156411610 | |
697 | 699 | else { | |
698 | - | let $ | |
699 | - | if (($ | |
700 | - | then $ | |
700 | + | let $acc171156411610 = CurrentRewardEntry($acc161156411610, $list1156411610[16]) | |
701 | + | if (($size1156411610 == 17)) | |
702 | + | then $acc171156411610 | |
701 | 703 | else { | |
702 | - | let $ | |
703 | - | if (($ | |
704 | - | then $ | |
704 | + | let $acc181156411610 = CurrentRewardEntry($acc171156411610, $list1156411610[17]) | |
705 | + | if (($size1156411610 == 18)) | |
706 | + | then $acc181156411610 | |
705 | 707 | else { | |
706 | - | let $ | |
707 | - | if (($ | |
708 | - | then $ | |
708 | + | let $acc191156411610 = CurrentRewardEntry($acc181156411610, $list1156411610[18]) | |
709 | + | if (($size1156411610 == 19)) | |
710 | + | then $acc191156411610 | |
709 | 711 | else { | |
710 | - | let $ | |
711 | - | if (($ | |
712 | - | then $ | |
712 | + | let $acc201156411610 = CurrentRewardEntry($acc191156411610, $list1156411610[19]) | |
713 | + | if (($size1156411610 == 20)) | |
714 | + | then $acc201156411610 | |
713 | 715 | else { | |
714 | - | let $ | |
716 | + | let $acc211156411610 = CurrentRewardEntry($acc201156411610, $list1156411610[20]) | |
715 | 717 | throw("List size exceed 20") | |
716 | 718 | } | |
717 | 719 | } | |
718 | 720 | } | |
719 | 721 | } | |
720 | 722 | } | |
721 | 723 | } | |
722 | 724 | } | |
723 | 725 | } | |
724 | 726 | } | |
725 | 727 | } | |
726 | 728 | } | |
727 | 729 | } | |
728 | 730 | } | |
729 | 731 | } | |
730 | 732 | } | |
731 | 733 | } | |
732 | 734 | } | |
733 | 735 | } | |
734 | 736 | } | |
735 | 737 | } | |
736 | 738 | } | |
737 | 739 | } | |
738 | 740 | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
739 | 741 | } | |
740 | 742 | } | |
741 | 743 | ||
742 | 744 | ||
743 | 745 | ||
744 | 746 | @Callable(i) | |
745 | 747 | func shutdown () = if (!(isActive)) | |
746 | 748 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
747 | 749 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
748 | 750 | then throw("Only admin can call this function") | |
749 | 751 | else suspend("Paused by admin") | |
750 | 752 | ||
751 | 753 | ||
752 | 754 | ||
753 | 755 | @Callable(i) | |
754 | 756 | func activate () = if (isActive) | |
755 | 757 | then throw("DApp is already active") | |
756 | 758 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
757 | 759 | then throw("Only admin can call this function") | |
758 | 760 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
759 | 761 | ||
760 | 762 |
github/deemru/w8io/169f3d6 939.91 ms ◑