tx · 9CQyf3xv6RnTxPJ5exCHYWxWvChgf3c6XCqm2bbYtLMs 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS: -0.01400000 Waves 2021.04.15 13:04 [1483413] smart account 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS > SELF 0.00000000 Waves
{ "type": 13, "id": "9CQyf3xv6RnTxPJ5exCHYWxWvChgf3c6XCqm2bbYtLMs", "fee": 1400000, "feeAssetId": null, "timestamp": 1618481079256, "version": 2, "chainId": 84, "sender": "3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS", "senderPublicKey": "93SZf1TATCRxGyBuGyngpQGKcpKZirb2yXLT2RQJ3UKb", "proofs": [ "5jbh63466kP7vxarsXhtKcaYEi1QANuMQbVsEuqQtshH5UBwhBrSzhAWmRyMXAZ1quTk2AKRpvfeeJ87KygMUXVb" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAAMAAAAAAMYWRtaW5QdWJLZXkxAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkyAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkzAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABFhZG1pblB1YktleVdhbGxldAEAAAAgPndaZVpWyfwpVzO1vA1FLcrMp/iFkg43d1jzYhVSFBIAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAD2tleUxhc3RJbnRlcmVzdAIAAAANbGFzdF9pbnRlcmVzdAAAAAATa2V5VXNlckxhc3RJbnRlcmVzd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pblB1YktleVN0YXJ0U3RvcAUAAAADbmlsCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAAhT25seSBhZG1pbiBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAAlrZXlBY3RpdmUGCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAACGtleUNhdXNlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZ2vP9E=", "height": 1483413, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: mdqYbZgY8pFTDJHEabHACujCojjKa5RofcsGLhJkgPE Next: 7U2gXgagFegASqNPizi59LYpDD6nuBivpJagzczA9eKZ Diff:
Old | New | Differences | |
---|---|---|---|
67 | 67 | ||
68 | 68 | let totalVoteShare = 10000000000 | |
69 | 69 | ||
70 | - | let kStartHeight = "start_height" | |
71 | - | ||
72 | - | let kBasePeriod = "base_period" | |
73 | - | ||
74 | - | let kPeriodLength = "period_length" | |
75 | - | ||
76 | - | let kUserTotalStruc = "_user_total_struc" | |
77 | - | ||
78 | - | let basePeriod = valueOrErrorMessage(getInteger(votingLiteContract, kBasePeriod), "Empty kBasePeriod at voting contract") | |
79 | - | ||
80 | - | let startHeight = valueOrErrorMessage(getInteger(votingLiteContract, kStartHeight), "Empty kStartHeight at voting contract") | |
81 | - | ||
82 | - | let periodLength = valueOrErrorMessage(getInteger(votingLiteContract, kPeriodLength), "Empty kPeriodLength at voting contract") | |
83 | - | ||
84 | - | let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
85 | - | ||
86 | 70 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
87 | 71 | ||
88 | 72 | ||
117 | 101 | func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0) | |
118 | 102 | ||
119 | 103 | ||
120 | - | func getUserUnvoteAmount (user) = { | |
121 | - | let $t037794290 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
122 | - | then { | |
123 | - | let data = split(valueOrErrorMessage(getString(this, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
124 | - | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
125 | - | } | |
126 | - | else { | |
127 | - | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(user) + kUserTotalVoteSWOP)), 0) | |
128 | - | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
129 | - | } | |
130 | - | let userTotalVoteSWOP = $t037794290._1 | |
131 | - | let userUnvoted = $t037794290._2 | |
132 | - | let userUnvotedPeriod = $t037794290._3 | |
133 | - | if ((userUnvotedPeriod == currVotingPeriod)) | |
134 | - | then userUnvoted | |
135 | - | else 0 | |
136 | - | } | |
104 | + | func getUserTotalVoteAmount (user) = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0) | |
137 | 105 | ||
138 | 106 | ||
139 | 107 | func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0) | |
181 | 149 | ||
182 | 150 | func claimCalc (caller) = { | |
183 | 151 | let lastInterest = getLastInterestInfo() | |
184 | - | let $ | |
185 | - | let userLastInterest = $ | |
186 | - | let userSWOPLocked = $ | |
152 | + | let $t049225002 = getUserInterestInfo(caller, lastInterest) | |
153 | + | let userLastInterest = $t049225002._1 | |
154 | + | let userSWOPLocked = $t049225002._2 | |
187 | 155 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
188 | 156 | let userNewInterest = lastInterest | |
189 | 157 | $Tuple2(userNewInterest, claimAmount) | |
194 | 162 | func airDrop () = if (!(isActive)) | |
195 | 163 | then throw("DApp is inactive at this moment") | |
196 | 164 | else { | |
197 | - | let $ | |
198 | - | let pmtAmount = $ | |
199 | - | let pmtAssetId = $ | |
165 | + | let $t052675342 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
166 | + | let pmtAmount = $t052675342._1 | |
167 | + | let pmtAssetId = $t052675342._2 | |
200 | 168 | if ((pmtAssetId != SWOP)) | |
201 | 169 | then throw("Incorrect pmtAssetId") | |
202 | 170 | else { | |
213 | 181 | func lockSWOP () = if (!(isActive)) | |
214 | 182 | then throw("DApp is inactive at this moment") | |
215 | 183 | else { | |
216 | - | let $ | |
217 | - | let pmtAmount = $ | |
218 | - | let pmtAssetId = $ | |
184 | + | let $t057805855 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
185 | + | let pmtAmount = $t057805855._1 | |
186 | + | let pmtAssetId = $t057805855._2 | |
219 | 187 | if ((pmtAssetId != SWOP)) | |
220 | 188 | then throw("Incorrect pmtAssetId") | |
221 | 189 | else { | |
222 | 190 | let lastInterest = getLastInterestInfo() | |
223 | - | let $ | |
224 | - | let userLastInterest = $ | |
225 | - | let userSWOPLocked = $ | |
191 | + | let $t059716053 = getUserInterestInfo(i.caller, lastInterest) | |
192 | + | let userLastInterest = $t059716053._1 | |
193 | + | let userSWOPLocked = $t059716053._2 | |
226 | 194 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
227 | 195 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
228 | 196 | let userNewInterest = lastInterest | |
242 | 210 | else { | |
243 | 211 | let totalSWOPLocked = getTotalSWOPLocked() | |
244 | 212 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
245 | - | let $ | |
246 | - | let userNewInterest = $ | |
247 | - | let claimAmount = $ | |
248 | - | let | |
249 | - | let availableFund = (userSWOPLocked - | |
213 | + | let $t071377192 = claimCalc(i.caller) | |
214 | + | let userNewInterest = $t071377192._1 | |
215 | + | let claimAmount = $t071377192._2 | |
216 | + | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
217 | + | let availableFund = (userSWOPLocked - userVoteAmount) | |
250 | 218 | if ((withdrawAmount > availableFund)) | |
251 | 219 | then throw("withdrawAmount > availableFund") | |
252 | 220 | else { | |
265 | 233 | then throw("DApp is inactive at this moment") | |
266 | 234 | else { | |
267 | 235 | let lastInterest = getLastInterestInfo() | |
268 | - | let $ | |
269 | - | let userNewInterest = $ | |
270 | - | let claimAmount = $ | |
236 | + | let $t083048359 = claimCalc(i.caller) | |
237 | + | let userNewInterest = $t083048359._1 | |
238 | + | let claimAmount = $t083048359._2 | |
271 | 239 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
272 | 240 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
273 | 241 | if ((claimAmount == 0)) | |
284 | 252 | let totalSWOPLocked = getTotalSWOPLocked() | |
285 | 253 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
286 | 254 | let lastInterest = getLastInterestInfo() | |
287 | - | let $ | |
288 | - | let userNewInterest = $ | |
289 | - | let claimAmount = $ | |
255 | + | let $t091389193 = claimCalc(i.caller) | |
256 | + | let userNewInterest = $t091389193._1 | |
257 | + | let claimAmount = $t091389193._2 | |
290 | 258 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
291 | 259 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
292 | 260 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
319 | 287 | } | |
320 | 288 | ||
321 | 289 | let sumRewardPrevious = { | |
322 | - | let $ | |
323 | - | let $ | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
290 | + | let $list1097311006 = previousRewards | |
291 | + | let $size1097311006 = size($list1097311006) | |
292 | + | let $acc01097311006 = 0 | |
293 | + | if (($size1097311006 == 0)) | |
294 | + | then $acc01097311006 | |
327 | 295 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
296 | + | let $acc11097311006 = sum($acc01097311006, $list1097311006[0]) | |
297 | + | if (($size1097311006 == 1)) | |
298 | + | then $acc11097311006 | |
331 | 299 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
300 | + | let $acc21097311006 = sum($acc11097311006, $list1097311006[1]) | |
301 | + | if (($size1097311006 == 2)) | |
302 | + | then $acc21097311006 | |
335 | 303 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
304 | + | let $acc31097311006 = sum($acc21097311006, $list1097311006[2]) | |
305 | + | if (($size1097311006 == 3)) | |
306 | + | then $acc31097311006 | |
339 | 307 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
308 | + | let $acc41097311006 = sum($acc31097311006, $list1097311006[3]) | |
309 | + | if (($size1097311006 == 4)) | |
310 | + | then $acc41097311006 | |
343 | 311 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
312 | + | let $acc51097311006 = sum($acc41097311006, $list1097311006[4]) | |
313 | + | if (($size1097311006 == 5)) | |
314 | + | then $acc51097311006 | |
347 | 315 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
316 | + | let $acc61097311006 = sum($acc51097311006, $list1097311006[5]) | |
317 | + | if (($size1097311006 == 6)) | |
318 | + | then $acc61097311006 | |
351 | 319 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
320 | + | let $acc71097311006 = sum($acc61097311006, $list1097311006[6]) | |
321 | + | if (($size1097311006 == 7)) | |
322 | + | then $acc71097311006 | |
355 | 323 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
324 | + | let $acc81097311006 = sum($acc71097311006, $list1097311006[7]) | |
325 | + | if (($size1097311006 == 8)) | |
326 | + | then $acc81097311006 | |
359 | 327 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
328 | + | let $acc91097311006 = sum($acc81097311006, $list1097311006[8]) | |
329 | + | if (($size1097311006 == 9)) | |
330 | + | then $acc91097311006 | |
363 | 331 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
332 | + | let $acc101097311006 = sum($acc91097311006, $list1097311006[9]) | |
333 | + | if (($size1097311006 == 10)) | |
334 | + | then $acc101097311006 | |
367 | 335 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
336 | + | let $acc111097311006 = sum($acc101097311006, $list1097311006[10]) | |
337 | + | if (($size1097311006 == 11)) | |
338 | + | then $acc111097311006 | |
371 | 339 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
340 | + | let $acc121097311006 = sum($acc111097311006, $list1097311006[11]) | |
341 | + | if (($size1097311006 == 12)) | |
342 | + | then $acc121097311006 | |
375 | 343 | else { | |
376 | - | let $ | |
377 | - | if (($ | |
378 | - | then $ | |
344 | + | let $acc131097311006 = sum($acc121097311006, $list1097311006[12]) | |
345 | + | if (($size1097311006 == 13)) | |
346 | + | then $acc131097311006 | |
379 | 347 | else { | |
380 | - | let $ | |
381 | - | if (($ | |
382 | - | then $ | |
348 | + | let $acc141097311006 = sum($acc131097311006, $list1097311006[13]) | |
349 | + | if (($size1097311006 == 14)) | |
350 | + | then $acc141097311006 | |
383 | 351 | else { | |
384 | - | let $ | |
385 | - | if (($ | |
386 | - | then $ | |
352 | + | let $acc151097311006 = sum($acc141097311006, $list1097311006[14]) | |
353 | + | if (($size1097311006 == 15)) | |
354 | + | then $acc151097311006 | |
387 | 355 | else { | |
388 | - | let $ | |
389 | - | if (($ | |
390 | - | then $ | |
356 | + | let $acc161097311006 = sum($acc151097311006, $list1097311006[15]) | |
357 | + | if (($size1097311006 == 16)) | |
358 | + | then $acc161097311006 | |
391 | 359 | else { | |
392 | - | let $ | |
393 | - | if (($ | |
394 | - | then $ | |
360 | + | let $acc171097311006 = sum($acc161097311006, $list1097311006[16]) | |
361 | + | if (($size1097311006 == 17)) | |
362 | + | then $acc171097311006 | |
395 | 363 | else { | |
396 | - | let $ | |
397 | - | if (($ | |
398 | - | then $ | |
364 | + | let $acc181097311006 = sum($acc171097311006, $list1097311006[17]) | |
365 | + | if (($size1097311006 == 18)) | |
366 | + | then $acc181097311006 | |
399 | 367 | else { | |
400 | - | let $ | |
401 | - | if (($ | |
402 | - | then $ | |
368 | + | let $acc191097311006 = sum($acc181097311006, $list1097311006[18]) | |
369 | + | if (($size1097311006 == 19)) | |
370 | + | then $acc191097311006 | |
403 | 371 | else { | |
404 | - | let $ | |
405 | - | if (($ | |
406 | - | then $ | |
372 | + | let $acc201097311006 = sum($acc191097311006, $list1097311006[19]) | |
373 | + | if (($size1097311006 == 20)) | |
374 | + | then $acc201097311006 | |
407 | 375 | else { | |
408 | - | let $ | |
376 | + | let $acc211097311006 = sum($acc201097311006, $list1097311006[20]) | |
409 | 377 | throw("List size exceed 20") | |
410 | 378 | } | |
411 | 379 | } | |
430 | 398 | } | |
431 | 399 | } | |
432 | 400 | let sumRewardCurrent = { | |
433 | - | let $ | |
434 | - | let $ | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
401 | + | let $list1103511067 = currentRewards | |
402 | + | let $size1103511067 = size($list1103511067) | |
403 | + | let $acc01103511067 = 0 | |
404 | + | if (($size1103511067 == 0)) | |
405 | + | then $acc01103511067 | |
438 | 406 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
407 | + | let $acc11103511067 = sum($acc01103511067, $list1103511067[0]) | |
408 | + | if (($size1103511067 == 1)) | |
409 | + | then $acc11103511067 | |
442 | 410 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
411 | + | let $acc21103511067 = sum($acc11103511067, $list1103511067[1]) | |
412 | + | if (($size1103511067 == 2)) | |
413 | + | then $acc21103511067 | |
446 | 414 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
415 | + | let $acc31103511067 = sum($acc21103511067, $list1103511067[2]) | |
416 | + | if (($size1103511067 == 3)) | |
417 | + | then $acc31103511067 | |
450 | 418 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
419 | + | let $acc41103511067 = sum($acc31103511067, $list1103511067[3]) | |
420 | + | if (($size1103511067 == 4)) | |
421 | + | then $acc41103511067 | |
454 | 422 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
423 | + | let $acc51103511067 = sum($acc41103511067, $list1103511067[4]) | |
424 | + | if (($size1103511067 == 5)) | |
425 | + | then $acc51103511067 | |
458 | 426 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
427 | + | let $acc61103511067 = sum($acc51103511067, $list1103511067[5]) | |
428 | + | if (($size1103511067 == 6)) | |
429 | + | then $acc61103511067 | |
462 | 430 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
431 | + | let $acc71103511067 = sum($acc61103511067, $list1103511067[6]) | |
432 | + | if (($size1103511067 == 7)) | |
433 | + | then $acc71103511067 | |
466 | 434 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
435 | + | let $acc81103511067 = sum($acc71103511067, $list1103511067[7]) | |
436 | + | if (($size1103511067 == 8)) | |
437 | + | then $acc81103511067 | |
470 | 438 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
439 | + | let $acc91103511067 = sum($acc81103511067, $list1103511067[8]) | |
440 | + | if (($size1103511067 == 9)) | |
441 | + | then $acc91103511067 | |
474 | 442 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
443 | + | let $acc101103511067 = sum($acc91103511067, $list1103511067[9]) | |
444 | + | if (($size1103511067 == 10)) | |
445 | + | then $acc101103511067 | |
478 | 446 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
447 | + | let $acc111103511067 = sum($acc101103511067, $list1103511067[10]) | |
448 | + | if (($size1103511067 == 11)) | |
449 | + | then $acc111103511067 | |
482 | 450 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
451 | + | let $acc121103511067 = sum($acc111103511067, $list1103511067[11]) | |
452 | + | if (($size1103511067 == 12)) | |
453 | + | then $acc121103511067 | |
486 | 454 | else { | |
487 | - | let $ | |
488 | - | if (($ | |
489 | - | then $ | |
455 | + | let $acc131103511067 = sum($acc121103511067, $list1103511067[12]) | |
456 | + | if (($size1103511067 == 13)) | |
457 | + | then $acc131103511067 | |
490 | 458 | else { | |
491 | - | let $ | |
492 | - | if (($ | |
493 | - | then $ | |
459 | + | let $acc141103511067 = sum($acc131103511067, $list1103511067[13]) | |
460 | + | if (($size1103511067 == 14)) | |
461 | + | then $acc141103511067 | |
494 | 462 | else { | |
495 | - | let $ | |
496 | - | if (($ | |
497 | - | then $ | |
463 | + | let $acc151103511067 = sum($acc141103511067, $list1103511067[14]) | |
464 | + | if (($size1103511067 == 15)) | |
465 | + | then $acc151103511067 | |
498 | 466 | else { | |
499 | - | let $ | |
500 | - | if (($ | |
501 | - | then $ | |
467 | + | let $acc161103511067 = sum($acc151103511067, $list1103511067[15]) | |
468 | + | if (($size1103511067 == 16)) | |
469 | + | then $acc161103511067 | |
502 | 470 | else { | |
503 | - | let $ | |
504 | - | if (($ | |
505 | - | then $ | |
471 | + | let $acc171103511067 = sum($acc161103511067, $list1103511067[16]) | |
472 | + | if (($size1103511067 == 17)) | |
473 | + | then $acc171103511067 | |
506 | 474 | else { | |
507 | - | let $ | |
508 | - | if (($ | |
509 | - | then $ | |
475 | + | let $acc181103511067 = sum($acc171103511067, $list1103511067[17]) | |
476 | + | if (($size1103511067 == 18)) | |
477 | + | then $acc181103511067 | |
510 | 478 | else { | |
511 | - | let $ | |
512 | - | if (($ | |
513 | - | then $ | |
479 | + | let $acc191103511067 = sum($acc181103511067, $list1103511067[18]) | |
480 | + | if (($size1103511067 == 19)) | |
481 | + | then $acc191103511067 | |
514 | 482 | else { | |
515 | - | let $ | |
516 | - | if (($ | |
517 | - | then $ | |
483 | + | let $acc201103511067 = sum($acc191103511067, $list1103511067[19]) | |
484 | + | if (($size1103511067 == 20)) | |
485 | + | then $acc201103511067 | |
518 | 486 | else { | |
519 | - | let $ | |
487 | + | let $acc211103511067 = sum($acc201103511067, $list1103511067[20]) | |
520 | 488 | throw("List size exceed 20") | |
521 | 489 | } | |
522 | 490 | } | |
548 | 516 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
549 | 517 | else { | |
550 | 518 | let previousRewardEntryNew = { | |
551 | - | let $ | |
552 | - | let $ | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
519 | + | let $list1137611424 = previousPools | |
520 | + | let $size1137611424 = size($list1137611424) | |
521 | + | let $acc01137611424 = nil | |
522 | + | if (($size1137611424 == 0)) | |
523 | + | then $acc01137611424 | |
556 | 524 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
525 | + | let $acc11137611424 = PreviousRewardEntry($acc01137611424, $list1137611424[0]) | |
526 | + | if (($size1137611424 == 1)) | |
527 | + | then $acc11137611424 | |
560 | 528 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
529 | + | let $acc21137611424 = PreviousRewardEntry($acc11137611424, $list1137611424[1]) | |
530 | + | if (($size1137611424 == 2)) | |
531 | + | then $acc21137611424 | |
564 | 532 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
533 | + | let $acc31137611424 = PreviousRewardEntry($acc21137611424, $list1137611424[2]) | |
534 | + | if (($size1137611424 == 3)) | |
535 | + | then $acc31137611424 | |
568 | 536 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
537 | + | let $acc41137611424 = PreviousRewardEntry($acc31137611424, $list1137611424[3]) | |
538 | + | if (($size1137611424 == 4)) | |
539 | + | then $acc41137611424 | |
572 | 540 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
541 | + | let $acc51137611424 = PreviousRewardEntry($acc41137611424, $list1137611424[4]) | |
542 | + | if (($size1137611424 == 5)) | |
543 | + | then $acc51137611424 | |
576 | 544 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
545 | + | let $acc61137611424 = PreviousRewardEntry($acc51137611424, $list1137611424[5]) | |
546 | + | if (($size1137611424 == 6)) | |
547 | + | then $acc61137611424 | |
580 | 548 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
549 | + | let $acc71137611424 = PreviousRewardEntry($acc61137611424, $list1137611424[6]) | |
550 | + | if (($size1137611424 == 7)) | |
551 | + | then $acc71137611424 | |
584 | 552 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
553 | + | let $acc81137611424 = PreviousRewardEntry($acc71137611424, $list1137611424[7]) | |
554 | + | if (($size1137611424 == 8)) | |
555 | + | then $acc81137611424 | |
588 | 556 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
557 | + | let $acc91137611424 = PreviousRewardEntry($acc81137611424, $list1137611424[8]) | |
558 | + | if (($size1137611424 == 9)) | |
559 | + | then $acc91137611424 | |
592 | 560 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
561 | + | let $acc101137611424 = PreviousRewardEntry($acc91137611424, $list1137611424[9]) | |
562 | + | if (($size1137611424 == 10)) | |
563 | + | then $acc101137611424 | |
596 | 564 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
565 | + | let $acc111137611424 = PreviousRewardEntry($acc101137611424, $list1137611424[10]) | |
566 | + | if (($size1137611424 == 11)) | |
567 | + | then $acc111137611424 | |
600 | 568 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
569 | + | let $acc121137611424 = PreviousRewardEntry($acc111137611424, $list1137611424[11]) | |
570 | + | if (($size1137611424 == 12)) | |
571 | + | then $acc121137611424 | |
604 | 572 | else { | |
605 | - | let $ | |
606 | - | if (($ | |
607 | - | then $ | |
573 | + | let $acc131137611424 = PreviousRewardEntry($acc121137611424, $list1137611424[12]) | |
574 | + | if (($size1137611424 == 13)) | |
575 | + | then $acc131137611424 | |
608 | 576 | else { | |
609 | - | let $ | |
610 | - | if (($ | |
611 | - | then $ | |
577 | + | let $acc141137611424 = PreviousRewardEntry($acc131137611424, $list1137611424[13]) | |
578 | + | if (($size1137611424 == 14)) | |
579 | + | then $acc141137611424 | |
612 | 580 | else { | |
613 | - | let $ | |
614 | - | if (($ | |
615 | - | then $ | |
581 | + | let $acc151137611424 = PreviousRewardEntry($acc141137611424, $list1137611424[14]) | |
582 | + | if (($size1137611424 == 15)) | |
583 | + | then $acc151137611424 | |
616 | 584 | else { | |
617 | - | let $ | |
618 | - | if (($ | |
619 | - | then $ | |
585 | + | let $acc161137611424 = PreviousRewardEntry($acc151137611424, $list1137611424[15]) | |
586 | + | if (($size1137611424 == 16)) | |
587 | + | then $acc161137611424 | |
620 | 588 | else { | |
621 | - | let $ | |
622 | - | if (($ | |
623 | - | then $ | |
589 | + | let $acc171137611424 = PreviousRewardEntry($acc161137611424, $list1137611424[16]) | |
590 | + | if (($size1137611424 == 17)) | |
591 | + | then $acc171137611424 | |
624 | 592 | else { | |
625 | - | let $ | |
626 | - | if (($ | |
627 | - | then $ | |
593 | + | let $acc181137611424 = PreviousRewardEntry($acc171137611424, $list1137611424[17]) | |
594 | + | if (($size1137611424 == 18)) | |
595 | + | then $acc181137611424 | |
628 | 596 | else { | |
629 | - | let $ | |
630 | - | if (($ | |
631 | - | then $ | |
597 | + | let $acc191137611424 = PreviousRewardEntry($acc181137611424, $list1137611424[18]) | |
598 | + | if (($size1137611424 == 19)) | |
599 | + | then $acc191137611424 | |
632 | 600 | else { | |
633 | - | let $ | |
634 | - | if (($ | |
635 | - | then $ | |
601 | + | let $acc201137611424 = PreviousRewardEntry($acc191137611424, $list1137611424[19]) | |
602 | + | if (($size1137611424 == 20)) | |
603 | + | then $acc201137611424 | |
636 | 604 | else { | |
637 | - | let $ | |
605 | + | let $acc211137611424 = PreviousRewardEntry($acc201137611424, $list1137611424[20]) | |
638 | 606 | throw("List size exceed 20") | |
639 | 607 | } | |
640 | 608 | } | |
659 | 627 | } | |
660 | 628 | } | |
661 | 629 | let currentRewardEntryNew = { | |
662 | - | let $ | |
663 | - | let $ | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
630 | + | let $list1145711503 = currentPools | |
631 | + | let $size1145711503 = size($list1145711503) | |
632 | + | let $acc01145711503 = nil | |
633 | + | if (($size1145711503 == 0)) | |
634 | + | then $acc01145711503 | |
667 | 635 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
636 | + | let $acc11145711503 = CurrentRewardEntry($acc01145711503, $list1145711503[0]) | |
637 | + | if (($size1145711503 == 1)) | |
638 | + | then $acc11145711503 | |
671 | 639 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
640 | + | let $acc21145711503 = CurrentRewardEntry($acc11145711503, $list1145711503[1]) | |
641 | + | if (($size1145711503 == 2)) | |
642 | + | then $acc21145711503 | |
675 | 643 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
644 | + | let $acc31145711503 = CurrentRewardEntry($acc21145711503, $list1145711503[2]) | |
645 | + | if (($size1145711503 == 3)) | |
646 | + | then $acc31145711503 | |
679 | 647 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
648 | + | let $acc41145711503 = CurrentRewardEntry($acc31145711503, $list1145711503[3]) | |
649 | + | if (($size1145711503 == 4)) | |
650 | + | then $acc41145711503 | |
683 | 651 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
652 | + | let $acc51145711503 = CurrentRewardEntry($acc41145711503, $list1145711503[4]) | |
653 | + | if (($size1145711503 == 5)) | |
654 | + | then $acc51145711503 | |
687 | 655 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
656 | + | let $acc61145711503 = CurrentRewardEntry($acc51145711503, $list1145711503[5]) | |
657 | + | if (($size1145711503 == 6)) | |
658 | + | then $acc61145711503 | |
691 | 659 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
660 | + | let $acc71145711503 = CurrentRewardEntry($acc61145711503, $list1145711503[6]) | |
661 | + | if (($size1145711503 == 7)) | |
662 | + | then $acc71145711503 | |
695 | 663 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
664 | + | let $acc81145711503 = CurrentRewardEntry($acc71145711503, $list1145711503[7]) | |
665 | + | if (($size1145711503 == 8)) | |
666 | + | then $acc81145711503 | |
699 | 667 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
668 | + | let $acc91145711503 = CurrentRewardEntry($acc81145711503, $list1145711503[8]) | |
669 | + | if (($size1145711503 == 9)) | |
670 | + | then $acc91145711503 | |
703 | 671 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
672 | + | let $acc101145711503 = CurrentRewardEntry($acc91145711503, $list1145711503[9]) | |
673 | + | if (($size1145711503 == 10)) | |
674 | + | then $acc101145711503 | |
707 | 675 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
676 | + | let $acc111145711503 = CurrentRewardEntry($acc101145711503, $list1145711503[10]) | |
677 | + | if (($size1145711503 == 11)) | |
678 | + | then $acc111145711503 | |
711 | 679 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
680 | + | let $acc121145711503 = CurrentRewardEntry($acc111145711503, $list1145711503[11]) | |
681 | + | if (($size1145711503 == 12)) | |
682 | + | then $acc121145711503 | |
715 | 683 | else { | |
716 | - | let $ | |
717 | - | if (($ | |
718 | - | then $ | |
684 | + | let $acc131145711503 = CurrentRewardEntry($acc121145711503, $list1145711503[12]) | |
685 | + | if (($size1145711503 == 13)) | |
686 | + | then $acc131145711503 | |
719 | 687 | else { | |
720 | - | let $ | |
721 | - | if (($ | |
722 | - | then $ | |
688 | + | let $acc141145711503 = CurrentRewardEntry($acc131145711503, $list1145711503[13]) | |
689 | + | if (($size1145711503 == 14)) | |
690 | + | then $acc141145711503 | |
723 | 691 | else { | |
724 | - | let $ | |
725 | - | if (($ | |
726 | - | then $ | |
692 | + | let $acc151145711503 = CurrentRewardEntry($acc141145711503, $list1145711503[14]) | |
693 | + | if (($size1145711503 == 15)) | |
694 | + | then $acc151145711503 | |
727 | 695 | else { | |
728 | - | let $ | |
729 | - | if (($ | |
730 | - | then $ | |
696 | + | let $acc161145711503 = CurrentRewardEntry($acc151145711503, $list1145711503[15]) | |
697 | + | if (($size1145711503 == 16)) | |
698 | + | then $acc161145711503 | |
731 | 699 | else { | |
732 | - | let $ | |
733 | - | if (($ | |
734 | - | then $ | |
700 | + | let $acc171145711503 = CurrentRewardEntry($acc161145711503, $list1145711503[16]) | |
701 | + | if (($size1145711503 == 17)) | |
702 | + | then $acc171145711503 | |
735 | 703 | else { | |
736 | - | let $ | |
737 | - | if (($ | |
738 | - | then $ | |
704 | + | let $acc181145711503 = CurrentRewardEntry($acc171145711503, $list1145711503[17]) | |
705 | + | if (($size1145711503 == 18)) | |
706 | + | then $acc181145711503 | |
739 | 707 | else { | |
740 | - | let $ | |
741 | - | if (($ | |
742 | - | then $ | |
708 | + | let $acc191145711503 = CurrentRewardEntry($acc181145711503, $list1145711503[18]) | |
709 | + | if (($size1145711503 == 19)) | |
710 | + | then $acc191145711503 | |
743 | 711 | else { | |
744 | - | let $ | |
745 | - | if (($ | |
746 | - | then $ | |
712 | + | let $acc201145711503 = CurrentRewardEntry($acc191145711503, $list1145711503[19]) | |
713 | + | if (($size1145711503 == 20)) | |
714 | + | then $acc201145711503 | |
747 | 715 | else { | |
748 | - | let $ | |
716 | + | let $acc211145711503 = CurrentRewardEntry($acc201145711503, $list1145711503[20]) | |
749 | 717 | throw("List size exceed 20") | |
750 | 718 | } | |
751 | 719 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
11 | 11 | ||
12 | 12 | let adminPubKeyWallet = base58'5CqqMkmtXXt35KRH9LdWA3ap6TffPvTT5SHQzYrVFbBw' | |
13 | 13 | ||
14 | 14 | let keyActive = "active" | |
15 | 15 | ||
16 | 16 | let keyCause = "shutdown_cause" | |
17 | 17 | ||
18 | 18 | let keyLastInterest = "last_interest" | |
19 | 19 | ||
20 | 20 | let keyUserLastInterest = "_last_interest" | |
21 | 21 | ||
22 | 22 | let keyUserSWOPLocked = "_SWOP_amount" | |
23 | 23 | ||
24 | 24 | let keyUserGetBackHeight = "_getBackHeight" | |
25 | 25 | ||
26 | 26 | let keyTotalSWOPLocked = "total_SWOP_amount" | |
27 | 27 | ||
28 | 28 | let kUserTotalVoteSWOP = "_user_total_SWOP_vote" | |
29 | 29 | ||
30 | 30 | let keyUserVoteOptionAmount = "_SWOP_option_amount" | |
31 | 31 | ||
32 | 32 | let keyTotalVoteOptionAmount = "total_SWOP_option_amount" | |
33 | 33 | ||
34 | 34 | let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount" | |
35 | 35 | ||
36 | 36 | let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount" | |
37 | 37 | ||
38 | 38 | let keyVoteName = "vote_name" | |
39 | 39 | ||
40 | 40 | let keyOptionName = "_option_name" | |
41 | 41 | ||
42 | 42 | let keyVotingStartHeight = "_startHeight" | |
43 | 43 | ||
44 | 44 | let keyVoteDuration = "_vote_duration" | |
45 | 45 | ||
46 | 46 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
47 | 47 | ||
48 | 48 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
49 | 49 | ||
50 | 50 | let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
51 | 51 | ||
52 | 52 | let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
53 | 53 | ||
54 | 54 | let keyRewardUpdateHeight = "reward_update_height" | |
55 | 55 | ||
56 | 56 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
57 | 57 | ||
58 | 58 | let farmingSWOPAddress = Address(base58'3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC') | |
59 | 59 | ||
60 | 60 | let votingLiteContract = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
61 | 61 | ||
62 | 62 | let keySWOPid = "SWOP_id" | |
63 | 63 | ||
64 | 64 | let SWOP = fromBase58String(getStringValue(farmingSWOPAddress, keySWOPid)) | |
65 | 65 | ||
66 | 66 | let scaleValue = 100000000 | |
67 | 67 | ||
68 | 68 | let totalVoteShare = 10000000000 | |
69 | 69 | ||
70 | - | let kStartHeight = "start_height" | |
71 | - | ||
72 | - | let kBasePeriod = "base_period" | |
73 | - | ||
74 | - | let kPeriodLength = "period_length" | |
75 | - | ||
76 | - | let kUserTotalStruc = "_user_total_struc" | |
77 | - | ||
78 | - | let basePeriod = valueOrErrorMessage(getInteger(votingLiteContract, kBasePeriod), "Empty kBasePeriod at voting contract") | |
79 | - | ||
80 | - | let startHeight = valueOrErrorMessage(getInteger(votingLiteContract, kStartHeight), "Empty kStartHeight at voting contract") | |
81 | - | ||
82 | - | let periodLength = valueOrErrorMessage(getInteger(votingLiteContract, kPeriodLength), "Empty kPeriodLength at voting contract") | |
83 | - | ||
84 | - | let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
85 | - | ||
86 | 70 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
87 | 71 | ||
88 | 72 | ||
89 | 73 | func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount") | |
90 | 74 | ||
91 | 75 | ||
92 | 76 | func getLastInterestInfo () = { | |
93 | 77 | let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0) | |
94 | 78 | lastInterest | |
95 | 79 | } | |
96 | 80 | ||
97 | 81 | ||
98 | 82 | func getUserSWOPLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPLocked)), 0) | |
99 | 83 | ||
100 | 84 | ||
101 | 85 | func getUserSWOPClaimedAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPClaimedAmount)), 0) | |
102 | 86 | ||
103 | 87 | ||
104 | 88 | func getUserInterestInfo (user,lastInterest) = { | |
105 | 89 | let userSWOPAmount = getUserSWOPLocked(user) | |
106 | 90 | let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest)) | |
107 | 91 | let userLastInterestValue = match userLastInterest { | |
108 | 92 | case userLastInterest: Int => | |
109 | 93 | userLastInterest | |
110 | 94 | case _ => | |
111 | 95 | lastInterest | |
112 | 96 | } | |
113 | 97 | $Tuple2(userLastInterestValue, userSWOPAmount) | |
114 | 98 | } | |
115 | 99 | ||
116 | 100 | ||
117 | 101 | func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0) | |
118 | 102 | ||
119 | 103 | ||
120 | - | func getUserUnvoteAmount (user) = { | |
121 | - | let $t037794290 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
122 | - | then { | |
123 | - | let data = split(valueOrErrorMessage(getString(this, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
124 | - | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
125 | - | } | |
126 | - | else { | |
127 | - | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(user) + kUserTotalVoteSWOP)), 0) | |
128 | - | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
129 | - | } | |
130 | - | let userTotalVoteSWOP = $t037794290._1 | |
131 | - | let userUnvoted = $t037794290._2 | |
132 | - | let userUnvotedPeriod = $t037794290._3 | |
133 | - | if ((userUnvotedPeriod == currVotingPeriod)) | |
134 | - | then userUnvoted | |
135 | - | else 0 | |
136 | - | } | |
104 | + | func getUserTotalVoteAmount (user) = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0) | |
137 | 105 | ||
138 | 106 | ||
139 | 107 | func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0) | |
140 | 108 | ||
141 | 109 | ||
142 | 110 | func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0) | |
143 | 111 | ||
144 | 112 | ||
145 | 113 | func getVoteOptionAmount (user,voteName,option) = { | |
146 | 114 | let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount)) | |
147 | 115 | let uvoa = match userVoteOptionAmount { | |
148 | 116 | case uvoa: Int => | |
149 | 117 | uvoa | |
150 | 118 | case uvoa: Unit => | |
151 | 119 | 0 | |
152 | 120 | case _ => | |
153 | 121 | throw("Match error") | |
154 | 122 | } | |
155 | 123 | valueOrErrorMessage(uvoa, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount)) | |
156 | 124 | } | |
157 | 125 | ||
158 | 126 | ||
159 | 127 | func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration)) | |
160 | 128 | ||
161 | 129 | ||
162 | 130 | func getTotalVoteOptionAmount (voteName,option) = { | |
163 | 131 | let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount)) | |
164 | 132 | let tvoa = match totalVoteOptionAmount { | |
165 | 133 | case tvoa: Int => | |
166 | 134 | tvoa | |
167 | 135 | case tvoa: Unit => | |
168 | 136 | 0 | |
169 | 137 | case _ => | |
170 | 138 | throw("Match error") | |
171 | 139 | } | |
172 | 140 | tvoa | |
173 | 141 | } | |
174 | 142 | ||
175 | 143 | ||
176 | 144 | func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = { | |
177 | 145 | let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight)) | |
178 | 146 | valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key)) | |
179 | 147 | } | |
180 | 148 | ||
181 | 149 | ||
182 | 150 | func claimCalc (caller) = { | |
183 | 151 | let lastInterest = getLastInterestInfo() | |
184 | - | let $ | |
185 | - | let userLastInterest = $ | |
186 | - | let userSWOPLocked = $ | |
152 | + | let $t049225002 = getUserInterestInfo(caller, lastInterest) | |
153 | + | let userLastInterest = $t049225002._1 | |
154 | + | let userSWOPLocked = $t049225002._2 | |
187 | 155 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
188 | 156 | let userNewInterest = lastInterest | |
189 | 157 | $Tuple2(userNewInterest, claimAmount) | |
190 | 158 | } | |
191 | 159 | ||
192 | 160 | ||
193 | 161 | @Callable(i) | |
194 | 162 | func airDrop () = if (!(isActive)) | |
195 | 163 | then throw("DApp is inactive at this moment") | |
196 | 164 | else { | |
197 | - | let $ | |
198 | - | let pmtAmount = $ | |
199 | - | let pmtAssetId = $ | |
165 | + | let $t052675342 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
166 | + | let pmtAmount = $t052675342._1 | |
167 | + | let pmtAssetId = $t052675342._2 | |
200 | 168 | if ((pmtAssetId != SWOP)) | |
201 | 169 | then throw("Incorrect pmtAssetId") | |
202 | 170 | else { | |
203 | 171 | let totalSWOPLocked = getTotalSWOPLocked() | |
204 | 172 | let lastInterest = getLastInterestInfo() | |
205 | 173 | let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPLocked)) | |
206 | 174 | [IntegerEntry(keyLastInterest, interestNew)] | |
207 | 175 | } | |
208 | 176 | } | |
209 | 177 | ||
210 | 178 | ||
211 | 179 | ||
212 | 180 | @Callable(i) | |
213 | 181 | func lockSWOP () = if (!(isActive)) | |
214 | 182 | then throw("DApp is inactive at this moment") | |
215 | 183 | else { | |
216 | - | let $ | |
217 | - | let pmtAmount = $ | |
218 | - | let pmtAssetId = $ | |
184 | + | let $t057805855 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
185 | + | let pmtAmount = $t057805855._1 | |
186 | + | let pmtAssetId = $t057805855._2 | |
219 | 187 | if ((pmtAssetId != SWOP)) | |
220 | 188 | then throw("Incorrect pmtAssetId") | |
221 | 189 | else { | |
222 | 190 | let lastInterest = getLastInterestInfo() | |
223 | - | let $ | |
224 | - | let userLastInterest = $ | |
225 | - | let userSWOPLocked = $ | |
191 | + | let $t059716053 = getUserInterestInfo(i.caller, lastInterest) | |
192 | + | let userLastInterest = $t059716053._1 | |
193 | + | let userSWOPLocked = $t059716053._2 | |
226 | 194 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
227 | 195 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
228 | 196 | let userNewInterest = lastInterest | |
229 | 197 | let totalSWOPLocked = getTotalSWOPLocked() | |
230 | 198 | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
231 | 199 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
232 | 200 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
233 | 201 | [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)] | |
234 | 202 | } | |
235 | 203 | } | |
236 | 204 | ||
237 | 205 | ||
238 | 206 | ||
239 | 207 | @Callable(i) | |
240 | 208 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
241 | 209 | then throw("DApp is inactive at this moment") | |
242 | 210 | else { | |
243 | 211 | let totalSWOPLocked = getTotalSWOPLocked() | |
244 | 212 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
245 | - | let $ | |
246 | - | let userNewInterest = $ | |
247 | - | let claimAmount = $ | |
248 | - | let | |
249 | - | let availableFund = (userSWOPLocked - | |
213 | + | let $t071377192 = claimCalc(i.caller) | |
214 | + | let userNewInterest = $t071377192._1 | |
215 | + | let claimAmount = $t071377192._2 | |
216 | + | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
217 | + | let availableFund = (userSWOPLocked - userVoteAmount) | |
250 | 218 | if ((withdrawAmount > availableFund)) | |
251 | 219 | then throw("withdrawAmount > availableFund") | |
252 | 220 | else { | |
253 | 221 | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
254 | 222 | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
255 | 223 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
256 | 224 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
257 | 225 | [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPamountNew), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), ScriptTransfer(i.caller, withdrawAmount, SWOP), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
258 | 226 | } | |
259 | 227 | } | |
260 | 228 | ||
261 | 229 | ||
262 | 230 | ||
263 | 231 | @Callable(i) | |
264 | 232 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
265 | 233 | then throw("DApp is inactive at this moment") | |
266 | 234 | else { | |
267 | 235 | let lastInterest = getLastInterestInfo() | |
268 | - | let $ | |
269 | - | let userNewInterest = $ | |
270 | - | let claimAmount = $ | |
236 | + | let $t083048359 = claimCalc(i.caller) | |
237 | + | let userNewInterest = $t083048359._1 | |
238 | + | let claimAmount = $t083048359._2 | |
271 | 239 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
272 | 240 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
273 | 241 | if ((claimAmount == 0)) | |
274 | 242 | then throw("You have 0 available SWOP") | |
275 | 243 | else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, claimAmount, SWOP)] | |
276 | 244 | } | |
277 | 245 | ||
278 | 246 | ||
279 | 247 | ||
280 | 248 | @Callable(i) | |
281 | 249 | func claimAndStakeSWOP () = if (!(isActive)) | |
282 | 250 | then throw("DApp is inactive at this moment") | |
283 | 251 | else { | |
284 | 252 | let totalSWOPLocked = getTotalSWOPLocked() | |
285 | 253 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
286 | 254 | let lastInterest = getLastInterestInfo() | |
287 | - | let $ | |
288 | - | let userNewInterest = $ | |
289 | - | let claimAmount = $ | |
255 | + | let $t091389193 = claimCalc(i.caller) | |
256 | + | let userNewInterest = $t091389193._1 | |
257 | + | let claimAmount = $t091389193._2 | |
290 | 258 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
291 | 259 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
292 | 260 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
293 | 261 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
294 | 262 | if ((claimAmount == 0)) | |
295 | 263 | then throw("You have 0 available SWOP") | |
296 | 264 | else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
297 | 265 | } | |
298 | 266 | ||
299 | 267 | ||
300 | 268 | ||
301 | 269 | @Callable(i) | |
302 | 270 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
303 | 271 | then throw("DApp is inactive at this moment") | |
304 | 272 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop, adminPubKeyWallet], i.callerPublicKey))) | |
305 | 273 | then throw("Only admin can call this function") | |
306 | 274 | else { | |
307 | 275 | func sum (a,b) = (a + b) | |
308 | 276 | ||
309 | 277 | func PreviousRewardEntry (accumulated,pool) = { | |
310 | 278 | let poolIndex = value(indexOf(previousPools, pool)) | |
311 | 279 | let poolReward = previousRewards[poolIndex] | |
312 | 280 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
313 | 281 | } | |
314 | 282 | ||
315 | 283 | func CurrentRewardEntry (accumulated,pool) = { | |
316 | 284 | let poolIndex = value(indexOf(currentPools, pool)) | |
317 | 285 | let poolReward = currentRewards[poolIndex] | |
318 | 286 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
319 | 287 | } | |
320 | 288 | ||
321 | 289 | let sumRewardPrevious = { | |
322 | - | let $ | |
323 | - | let $ | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
290 | + | let $list1097311006 = previousRewards | |
291 | + | let $size1097311006 = size($list1097311006) | |
292 | + | let $acc01097311006 = 0 | |
293 | + | if (($size1097311006 == 0)) | |
294 | + | then $acc01097311006 | |
327 | 295 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
296 | + | let $acc11097311006 = sum($acc01097311006, $list1097311006[0]) | |
297 | + | if (($size1097311006 == 1)) | |
298 | + | then $acc11097311006 | |
331 | 299 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
300 | + | let $acc21097311006 = sum($acc11097311006, $list1097311006[1]) | |
301 | + | if (($size1097311006 == 2)) | |
302 | + | then $acc21097311006 | |
335 | 303 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
304 | + | let $acc31097311006 = sum($acc21097311006, $list1097311006[2]) | |
305 | + | if (($size1097311006 == 3)) | |
306 | + | then $acc31097311006 | |
339 | 307 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
308 | + | let $acc41097311006 = sum($acc31097311006, $list1097311006[3]) | |
309 | + | if (($size1097311006 == 4)) | |
310 | + | then $acc41097311006 | |
343 | 311 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
312 | + | let $acc51097311006 = sum($acc41097311006, $list1097311006[4]) | |
313 | + | if (($size1097311006 == 5)) | |
314 | + | then $acc51097311006 | |
347 | 315 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
316 | + | let $acc61097311006 = sum($acc51097311006, $list1097311006[5]) | |
317 | + | if (($size1097311006 == 6)) | |
318 | + | then $acc61097311006 | |
351 | 319 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
320 | + | let $acc71097311006 = sum($acc61097311006, $list1097311006[6]) | |
321 | + | if (($size1097311006 == 7)) | |
322 | + | then $acc71097311006 | |
355 | 323 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
324 | + | let $acc81097311006 = sum($acc71097311006, $list1097311006[7]) | |
325 | + | if (($size1097311006 == 8)) | |
326 | + | then $acc81097311006 | |
359 | 327 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
328 | + | let $acc91097311006 = sum($acc81097311006, $list1097311006[8]) | |
329 | + | if (($size1097311006 == 9)) | |
330 | + | then $acc91097311006 | |
363 | 331 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
332 | + | let $acc101097311006 = sum($acc91097311006, $list1097311006[9]) | |
333 | + | if (($size1097311006 == 10)) | |
334 | + | then $acc101097311006 | |
367 | 335 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
336 | + | let $acc111097311006 = sum($acc101097311006, $list1097311006[10]) | |
337 | + | if (($size1097311006 == 11)) | |
338 | + | then $acc111097311006 | |
371 | 339 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
340 | + | let $acc121097311006 = sum($acc111097311006, $list1097311006[11]) | |
341 | + | if (($size1097311006 == 12)) | |
342 | + | then $acc121097311006 | |
375 | 343 | else { | |
376 | - | let $ | |
377 | - | if (($ | |
378 | - | then $ | |
344 | + | let $acc131097311006 = sum($acc121097311006, $list1097311006[12]) | |
345 | + | if (($size1097311006 == 13)) | |
346 | + | then $acc131097311006 | |
379 | 347 | else { | |
380 | - | let $ | |
381 | - | if (($ | |
382 | - | then $ | |
348 | + | let $acc141097311006 = sum($acc131097311006, $list1097311006[13]) | |
349 | + | if (($size1097311006 == 14)) | |
350 | + | then $acc141097311006 | |
383 | 351 | else { | |
384 | - | let $ | |
385 | - | if (($ | |
386 | - | then $ | |
352 | + | let $acc151097311006 = sum($acc141097311006, $list1097311006[14]) | |
353 | + | if (($size1097311006 == 15)) | |
354 | + | then $acc151097311006 | |
387 | 355 | else { | |
388 | - | let $ | |
389 | - | if (($ | |
390 | - | then $ | |
356 | + | let $acc161097311006 = sum($acc151097311006, $list1097311006[15]) | |
357 | + | if (($size1097311006 == 16)) | |
358 | + | then $acc161097311006 | |
391 | 359 | else { | |
392 | - | let $ | |
393 | - | if (($ | |
394 | - | then $ | |
360 | + | let $acc171097311006 = sum($acc161097311006, $list1097311006[16]) | |
361 | + | if (($size1097311006 == 17)) | |
362 | + | then $acc171097311006 | |
395 | 363 | else { | |
396 | - | let $ | |
397 | - | if (($ | |
398 | - | then $ | |
364 | + | let $acc181097311006 = sum($acc171097311006, $list1097311006[17]) | |
365 | + | if (($size1097311006 == 18)) | |
366 | + | then $acc181097311006 | |
399 | 367 | else { | |
400 | - | let $ | |
401 | - | if (($ | |
402 | - | then $ | |
368 | + | let $acc191097311006 = sum($acc181097311006, $list1097311006[18]) | |
369 | + | if (($size1097311006 == 19)) | |
370 | + | then $acc191097311006 | |
403 | 371 | else { | |
404 | - | let $ | |
405 | - | if (($ | |
406 | - | then $ | |
372 | + | let $acc201097311006 = sum($acc191097311006, $list1097311006[19]) | |
373 | + | if (($size1097311006 == 20)) | |
374 | + | then $acc201097311006 | |
407 | 375 | else { | |
408 | - | let $ | |
376 | + | let $acc211097311006 = sum($acc201097311006, $list1097311006[20]) | |
409 | 377 | throw("List size exceed 20") | |
410 | 378 | } | |
411 | 379 | } | |
412 | 380 | } | |
413 | 381 | } | |
414 | 382 | } | |
415 | 383 | } | |
416 | 384 | } | |
417 | 385 | } | |
418 | 386 | } | |
419 | 387 | } | |
420 | 388 | } | |
421 | 389 | } | |
422 | 390 | } | |
423 | 391 | } | |
424 | 392 | } | |
425 | 393 | } | |
426 | 394 | } | |
427 | 395 | } | |
428 | 396 | } | |
429 | 397 | } | |
430 | 398 | } | |
431 | 399 | } | |
432 | 400 | let sumRewardCurrent = { | |
433 | - | let $ | |
434 | - | let $ | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
401 | + | let $list1103511067 = currentRewards | |
402 | + | let $size1103511067 = size($list1103511067) | |
403 | + | let $acc01103511067 = 0 | |
404 | + | if (($size1103511067 == 0)) | |
405 | + | then $acc01103511067 | |
438 | 406 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
407 | + | let $acc11103511067 = sum($acc01103511067, $list1103511067[0]) | |
408 | + | if (($size1103511067 == 1)) | |
409 | + | then $acc11103511067 | |
442 | 410 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
411 | + | let $acc21103511067 = sum($acc11103511067, $list1103511067[1]) | |
412 | + | if (($size1103511067 == 2)) | |
413 | + | then $acc21103511067 | |
446 | 414 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
415 | + | let $acc31103511067 = sum($acc21103511067, $list1103511067[2]) | |
416 | + | if (($size1103511067 == 3)) | |
417 | + | then $acc31103511067 | |
450 | 418 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
419 | + | let $acc41103511067 = sum($acc31103511067, $list1103511067[3]) | |
420 | + | if (($size1103511067 == 4)) | |
421 | + | then $acc41103511067 | |
454 | 422 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
423 | + | let $acc51103511067 = sum($acc41103511067, $list1103511067[4]) | |
424 | + | if (($size1103511067 == 5)) | |
425 | + | then $acc51103511067 | |
458 | 426 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
427 | + | let $acc61103511067 = sum($acc51103511067, $list1103511067[5]) | |
428 | + | if (($size1103511067 == 6)) | |
429 | + | then $acc61103511067 | |
462 | 430 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
431 | + | let $acc71103511067 = sum($acc61103511067, $list1103511067[6]) | |
432 | + | if (($size1103511067 == 7)) | |
433 | + | then $acc71103511067 | |
466 | 434 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
435 | + | let $acc81103511067 = sum($acc71103511067, $list1103511067[7]) | |
436 | + | if (($size1103511067 == 8)) | |
437 | + | then $acc81103511067 | |
470 | 438 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
439 | + | let $acc91103511067 = sum($acc81103511067, $list1103511067[8]) | |
440 | + | if (($size1103511067 == 9)) | |
441 | + | then $acc91103511067 | |
474 | 442 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
443 | + | let $acc101103511067 = sum($acc91103511067, $list1103511067[9]) | |
444 | + | if (($size1103511067 == 10)) | |
445 | + | then $acc101103511067 | |
478 | 446 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
447 | + | let $acc111103511067 = sum($acc101103511067, $list1103511067[10]) | |
448 | + | if (($size1103511067 == 11)) | |
449 | + | then $acc111103511067 | |
482 | 450 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
451 | + | let $acc121103511067 = sum($acc111103511067, $list1103511067[11]) | |
452 | + | if (($size1103511067 == 12)) | |
453 | + | then $acc121103511067 | |
486 | 454 | else { | |
487 | - | let $ | |
488 | - | if (($ | |
489 | - | then $ | |
455 | + | let $acc131103511067 = sum($acc121103511067, $list1103511067[12]) | |
456 | + | if (($size1103511067 == 13)) | |
457 | + | then $acc131103511067 | |
490 | 458 | else { | |
491 | - | let $ | |
492 | - | if (($ | |
493 | - | then $ | |
459 | + | let $acc141103511067 = sum($acc131103511067, $list1103511067[13]) | |
460 | + | if (($size1103511067 == 14)) | |
461 | + | then $acc141103511067 | |
494 | 462 | else { | |
495 | - | let $ | |
496 | - | if (($ | |
497 | - | then $ | |
463 | + | let $acc151103511067 = sum($acc141103511067, $list1103511067[14]) | |
464 | + | if (($size1103511067 == 15)) | |
465 | + | then $acc151103511067 | |
498 | 466 | else { | |
499 | - | let $ | |
500 | - | if (($ | |
501 | - | then $ | |
467 | + | let $acc161103511067 = sum($acc151103511067, $list1103511067[15]) | |
468 | + | if (($size1103511067 == 16)) | |
469 | + | then $acc161103511067 | |
502 | 470 | else { | |
503 | - | let $ | |
504 | - | if (($ | |
505 | - | then $ | |
471 | + | let $acc171103511067 = sum($acc161103511067, $list1103511067[16]) | |
472 | + | if (($size1103511067 == 17)) | |
473 | + | then $acc171103511067 | |
506 | 474 | else { | |
507 | - | let $ | |
508 | - | if (($ | |
509 | - | then $ | |
475 | + | let $acc181103511067 = sum($acc171103511067, $list1103511067[17]) | |
476 | + | if (($size1103511067 == 18)) | |
477 | + | then $acc181103511067 | |
510 | 478 | else { | |
511 | - | let $ | |
512 | - | if (($ | |
513 | - | then $ | |
479 | + | let $acc191103511067 = sum($acc181103511067, $list1103511067[18]) | |
480 | + | if (($size1103511067 == 19)) | |
481 | + | then $acc191103511067 | |
514 | 482 | else { | |
515 | - | let $ | |
516 | - | if (($ | |
517 | - | then $ | |
483 | + | let $acc201103511067 = sum($acc191103511067, $list1103511067[19]) | |
484 | + | if (($size1103511067 == 20)) | |
485 | + | then $acc201103511067 | |
518 | 486 | else { | |
519 | - | let $ | |
487 | + | let $acc211103511067 = sum($acc201103511067, $list1103511067[20]) | |
520 | 488 | throw("List size exceed 20") | |
521 | 489 | } | |
522 | 490 | } | |
523 | 491 | } | |
524 | 492 | } | |
525 | 493 | } | |
526 | 494 | } | |
527 | 495 | } | |
528 | 496 | } | |
529 | 497 | } | |
530 | 498 | } | |
531 | 499 | } | |
532 | 500 | } | |
533 | 501 | } | |
534 | 502 | } | |
535 | 503 | } | |
536 | 504 | } | |
537 | 505 | } | |
538 | 506 | } | |
539 | 507 | } | |
540 | 508 | } | |
541 | 509 | } | |
542 | 510 | } | |
543 | 511 | if ((height > rewardUpdateHeight)) | |
544 | 512 | then throw("rewardUpdateHeight < height") | |
545 | 513 | else if (if ((sumRewardPrevious != totalVoteShare)) | |
546 | 514 | then true | |
547 | 515 | else (sumRewardCurrent != totalVoteShare)) | |
548 | 516 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
549 | 517 | else { | |
550 | 518 | let previousRewardEntryNew = { | |
551 | - | let $ | |
552 | - | let $ | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
519 | + | let $list1137611424 = previousPools | |
520 | + | let $size1137611424 = size($list1137611424) | |
521 | + | let $acc01137611424 = nil | |
522 | + | if (($size1137611424 == 0)) | |
523 | + | then $acc01137611424 | |
556 | 524 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
525 | + | let $acc11137611424 = PreviousRewardEntry($acc01137611424, $list1137611424[0]) | |
526 | + | if (($size1137611424 == 1)) | |
527 | + | then $acc11137611424 | |
560 | 528 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
529 | + | let $acc21137611424 = PreviousRewardEntry($acc11137611424, $list1137611424[1]) | |
530 | + | if (($size1137611424 == 2)) | |
531 | + | then $acc21137611424 | |
564 | 532 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
533 | + | let $acc31137611424 = PreviousRewardEntry($acc21137611424, $list1137611424[2]) | |
534 | + | if (($size1137611424 == 3)) | |
535 | + | then $acc31137611424 | |
568 | 536 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
537 | + | let $acc41137611424 = PreviousRewardEntry($acc31137611424, $list1137611424[3]) | |
538 | + | if (($size1137611424 == 4)) | |
539 | + | then $acc41137611424 | |
572 | 540 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
541 | + | let $acc51137611424 = PreviousRewardEntry($acc41137611424, $list1137611424[4]) | |
542 | + | if (($size1137611424 == 5)) | |
543 | + | then $acc51137611424 | |
576 | 544 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
545 | + | let $acc61137611424 = PreviousRewardEntry($acc51137611424, $list1137611424[5]) | |
546 | + | if (($size1137611424 == 6)) | |
547 | + | then $acc61137611424 | |
580 | 548 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
549 | + | let $acc71137611424 = PreviousRewardEntry($acc61137611424, $list1137611424[6]) | |
550 | + | if (($size1137611424 == 7)) | |
551 | + | then $acc71137611424 | |
584 | 552 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
553 | + | let $acc81137611424 = PreviousRewardEntry($acc71137611424, $list1137611424[7]) | |
554 | + | if (($size1137611424 == 8)) | |
555 | + | then $acc81137611424 | |
588 | 556 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
557 | + | let $acc91137611424 = PreviousRewardEntry($acc81137611424, $list1137611424[8]) | |
558 | + | if (($size1137611424 == 9)) | |
559 | + | then $acc91137611424 | |
592 | 560 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
561 | + | let $acc101137611424 = PreviousRewardEntry($acc91137611424, $list1137611424[9]) | |
562 | + | if (($size1137611424 == 10)) | |
563 | + | then $acc101137611424 | |
596 | 564 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
565 | + | let $acc111137611424 = PreviousRewardEntry($acc101137611424, $list1137611424[10]) | |
566 | + | if (($size1137611424 == 11)) | |
567 | + | then $acc111137611424 | |
600 | 568 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
569 | + | let $acc121137611424 = PreviousRewardEntry($acc111137611424, $list1137611424[11]) | |
570 | + | if (($size1137611424 == 12)) | |
571 | + | then $acc121137611424 | |
604 | 572 | else { | |
605 | - | let $ | |
606 | - | if (($ | |
607 | - | then $ | |
573 | + | let $acc131137611424 = PreviousRewardEntry($acc121137611424, $list1137611424[12]) | |
574 | + | if (($size1137611424 == 13)) | |
575 | + | then $acc131137611424 | |
608 | 576 | else { | |
609 | - | let $ | |
610 | - | if (($ | |
611 | - | then $ | |
577 | + | let $acc141137611424 = PreviousRewardEntry($acc131137611424, $list1137611424[13]) | |
578 | + | if (($size1137611424 == 14)) | |
579 | + | then $acc141137611424 | |
612 | 580 | else { | |
613 | - | let $ | |
614 | - | if (($ | |
615 | - | then $ | |
581 | + | let $acc151137611424 = PreviousRewardEntry($acc141137611424, $list1137611424[14]) | |
582 | + | if (($size1137611424 == 15)) | |
583 | + | then $acc151137611424 | |
616 | 584 | else { | |
617 | - | let $ | |
618 | - | if (($ | |
619 | - | then $ | |
585 | + | let $acc161137611424 = PreviousRewardEntry($acc151137611424, $list1137611424[15]) | |
586 | + | if (($size1137611424 == 16)) | |
587 | + | then $acc161137611424 | |
620 | 588 | else { | |
621 | - | let $ | |
622 | - | if (($ | |
623 | - | then $ | |
589 | + | let $acc171137611424 = PreviousRewardEntry($acc161137611424, $list1137611424[16]) | |
590 | + | if (($size1137611424 == 17)) | |
591 | + | then $acc171137611424 | |
624 | 592 | else { | |
625 | - | let $ | |
626 | - | if (($ | |
627 | - | then $ | |
593 | + | let $acc181137611424 = PreviousRewardEntry($acc171137611424, $list1137611424[17]) | |
594 | + | if (($size1137611424 == 18)) | |
595 | + | then $acc181137611424 | |
628 | 596 | else { | |
629 | - | let $ | |
630 | - | if (($ | |
631 | - | then $ | |
597 | + | let $acc191137611424 = PreviousRewardEntry($acc181137611424, $list1137611424[18]) | |
598 | + | if (($size1137611424 == 19)) | |
599 | + | then $acc191137611424 | |
632 | 600 | else { | |
633 | - | let $ | |
634 | - | if (($ | |
635 | - | then $ | |
601 | + | let $acc201137611424 = PreviousRewardEntry($acc191137611424, $list1137611424[19]) | |
602 | + | if (($size1137611424 == 20)) | |
603 | + | then $acc201137611424 | |
636 | 604 | else { | |
637 | - | let $ | |
605 | + | let $acc211137611424 = PreviousRewardEntry($acc201137611424, $list1137611424[20]) | |
638 | 606 | throw("List size exceed 20") | |
639 | 607 | } | |
640 | 608 | } | |
641 | 609 | } | |
642 | 610 | } | |
643 | 611 | } | |
644 | 612 | } | |
645 | 613 | } | |
646 | 614 | } | |
647 | 615 | } | |
648 | 616 | } | |
649 | 617 | } | |
650 | 618 | } | |
651 | 619 | } | |
652 | 620 | } | |
653 | 621 | } | |
654 | 622 | } | |
655 | 623 | } | |
656 | 624 | } | |
657 | 625 | } | |
658 | 626 | } | |
659 | 627 | } | |
660 | 628 | } | |
661 | 629 | let currentRewardEntryNew = { | |
662 | - | let $ | |
663 | - | let $ | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
630 | + | let $list1145711503 = currentPools | |
631 | + | let $size1145711503 = size($list1145711503) | |
632 | + | let $acc01145711503 = nil | |
633 | + | if (($size1145711503 == 0)) | |
634 | + | then $acc01145711503 | |
667 | 635 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
636 | + | let $acc11145711503 = CurrentRewardEntry($acc01145711503, $list1145711503[0]) | |
637 | + | if (($size1145711503 == 1)) | |
638 | + | then $acc11145711503 | |
671 | 639 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
640 | + | let $acc21145711503 = CurrentRewardEntry($acc11145711503, $list1145711503[1]) | |
641 | + | if (($size1145711503 == 2)) | |
642 | + | then $acc21145711503 | |
675 | 643 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
644 | + | let $acc31145711503 = CurrentRewardEntry($acc21145711503, $list1145711503[2]) | |
645 | + | if (($size1145711503 == 3)) | |
646 | + | then $acc31145711503 | |
679 | 647 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
648 | + | let $acc41145711503 = CurrentRewardEntry($acc31145711503, $list1145711503[3]) | |
649 | + | if (($size1145711503 == 4)) | |
650 | + | then $acc41145711503 | |
683 | 651 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
652 | + | let $acc51145711503 = CurrentRewardEntry($acc41145711503, $list1145711503[4]) | |
653 | + | if (($size1145711503 == 5)) | |
654 | + | then $acc51145711503 | |
687 | 655 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
656 | + | let $acc61145711503 = CurrentRewardEntry($acc51145711503, $list1145711503[5]) | |
657 | + | if (($size1145711503 == 6)) | |
658 | + | then $acc61145711503 | |
691 | 659 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
660 | + | let $acc71145711503 = CurrentRewardEntry($acc61145711503, $list1145711503[6]) | |
661 | + | if (($size1145711503 == 7)) | |
662 | + | then $acc71145711503 | |
695 | 663 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
664 | + | let $acc81145711503 = CurrentRewardEntry($acc71145711503, $list1145711503[7]) | |
665 | + | if (($size1145711503 == 8)) | |
666 | + | then $acc81145711503 | |
699 | 667 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
668 | + | let $acc91145711503 = CurrentRewardEntry($acc81145711503, $list1145711503[8]) | |
669 | + | if (($size1145711503 == 9)) | |
670 | + | then $acc91145711503 | |
703 | 671 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
672 | + | let $acc101145711503 = CurrentRewardEntry($acc91145711503, $list1145711503[9]) | |
673 | + | if (($size1145711503 == 10)) | |
674 | + | then $acc101145711503 | |
707 | 675 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
676 | + | let $acc111145711503 = CurrentRewardEntry($acc101145711503, $list1145711503[10]) | |
677 | + | if (($size1145711503 == 11)) | |
678 | + | then $acc111145711503 | |
711 | 679 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
680 | + | let $acc121145711503 = CurrentRewardEntry($acc111145711503, $list1145711503[11]) | |
681 | + | if (($size1145711503 == 12)) | |
682 | + | then $acc121145711503 | |
715 | 683 | else { | |
716 | - | let $ | |
717 | - | if (($ | |
718 | - | then $ | |
684 | + | let $acc131145711503 = CurrentRewardEntry($acc121145711503, $list1145711503[12]) | |
685 | + | if (($size1145711503 == 13)) | |
686 | + | then $acc131145711503 | |
719 | 687 | else { | |
720 | - | let $ | |
721 | - | if (($ | |
722 | - | then $ | |
688 | + | let $acc141145711503 = CurrentRewardEntry($acc131145711503, $list1145711503[13]) | |
689 | + | if (($size1145711503 == 14)) | |
690 | + | then $acc141145711503 | |
723 | 691 | else { | |
724 | - | let $ | |
725 | - | if (($ | |
726 | - | then $ | |
692 | + | let $acc151145711503 = CurrentRewardEntry($acc141145711503, $list1145711503[14]) | |
693 | + | if (($size1145711503 == 15)) | |
694 | + | then $acc151145711503 | |
727 | 695 | else { | |
728 | - | let $ | |
729 | - | if (($ | |
730 | - | then $ | |
696 | + | let $acc161145711503 = CurrentRewardEntry($acc151145711503, $list1145711503[15]) | |
697 | + | if (($size1145711503 == 16)) | |
698 | + | then $acc161145711503 | |
731 | 699 | else { | |
732 | - | let $ | |
733 | - | if (($ | |
734 | - | then $ | |
700 | + | let $acc171145711503 = CurrentRewardEntry($acc161145711503, $list1145711503[16]) | |
701 | + | if (($size1145711503 == 17)) | |
702 | + | then $acc171145711503 | |
735 | 703 | else { | |
736 | - | let $ | |
737 | - | if (($ | |
738 | - | then $ | |
704 | + | let $acc181145711503 = CurrentRewardEntry($acc171145711503, $list1145711503[17]) | |
705 | + | if (($size1145711503 == 18)) | |
706 | + | then $acc181145711503 | |
739 | 707 | else { | |
740 | - | let $ | |
741 | - | if (($ | |
742 | - | then $ | |
708 | + | let $acc191145711503 = CurrentRewardEntry($acc181145711503, $list1145711503[18]) | |
709 | + | if (($size1145711503 == 19)) | |
710 | + | then $acc191145711503 | |
743 | 711 | else { | |
744 | - | let $ | |
745 | - | if (($ | |
746 | - | then $ | |
712 | + | let $acc201145711503 = CurrentRewardEntry($acc191145711503, $list1145711503[19]) | |
713 | + | if (($size1145711503 == 20)) | |
714 | + | then $acc201145711503 | |
747 | 715 | else { | |
748 | - | let $ | |
716 | + | let $acc211145711503 = CurrentRewardEntry($acc201145711503, $list1145711503[20]) | |
749 | 717 | throw("List size exceed 20") | |
750 | 718 | } | |
751 | 719 | } | |
752 | 720 | } | |
753 | 721 | } | |
754 | 722 | } | |
755 | 723 | } | |
756 | 724 | } | |
757 | 725 | } | |
758 | 726 | } | |
759 | 727 | } | |
760 | 728 | } | |
761 | 729 | } | |
762 | 730 | } | |
763 | 731 | } | |
764 | 732 | } | |
765 | 733 | } | |
766 | 734 | } | |
767 | 735 | } | |
768 | 736 | } | |
769 | 737 | } | |
770 | 738 | } | |
771 | 739 | } | |
772 | 740 | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
773 | 741 | } | |
774 | 742 | } | |
775 | 743 | ||
776 | 744 | ||
777 | 745 | ||
778 | 746 | @Callable(i) | |
779 | 747 | func shutdown () = if (!(isActive)) | |
780 | 748 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
781 | 749 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
782 | 750 | then throw("Only admin can call this function") | |
783 | 751 | else suspend("Paused by admin") | |
784 | 752 | ||
785 | 753 | ||
786 | 754 | ||
787 | 755 | @Callable(i) | |
788 | 756 | func activate () = if (isActive) | |
789 | 757 | then throw("DApp is already active") | |
790 | 758 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
791 | 759 | then throw("Only admin can call this function") | |
792 | 760 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
793 | 761 | ||
794 | 762 | ||
795 | 763 | @Verifier(tx) | |
796 | 764 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
797 | 765 |
github/deemru/w8io/026f985 878.26 ms ◑