tx · CUZQMQmG5UHPHfVL6YLYsTYWnbSS3Uv5a5nBvBG9ATun 3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj: -0.01400000 Waves 2021.04.11 12:58 [1477647] smart account 3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj > SELF 0.00000000 Waves
{ "type": 13, "id": "CUZQMQmG5UHPHfVL6YLYsTYWnbSS3Uv5a5nBvBG9ATun", "fee": 1400000, "feeAssetId": null, "timestamp": 1618135135400, "version": 1, "sender": "3N8gfDJc5N53ePx2qBn3oQXbnhbz3Z7WFNj", "senderPublicKey": "9G5zT9Cpjk5h2JSGhccak7GEhvBeeVYy2gPnafgTp7As", "proofs": [ "4bfRni8fHMqkcUXQpq469HYzoFwh9WgbwXBRCn5uEjA48p3RonDujY8c7FdBBcw8YeYz8UqxrHc4GecRwunwmzfF" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAALwAAAAAMYWRtaW5QdWJLZXkxAQAAACC6Cdc7iVmk0V2g//G7M9Cq4TlpD8vivZHWO+5PXqjgEwAAAAAMYWRtaW5QdWJLZXkyAQAAACDCkUSZs9KwtA0ipZFYvYi8oTe7CMv/3YzmlO9bFg5+QAAAAAAMYWRtaW5QdWJLZXkzAQAAACCOHhcueLEHO/RITnozKGB2KHf8meWSMKMgws+oq+kOVQAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIM5ZDtzqs16jrhv9V17n63kRNSl0RjKbPBVfPAUbKGF7AAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAAA9rZXlMYXN0SW50ZXJlc3QCAAAADWxhc3RfaW50ZXJlc3QAAAAAE2tleVVzZXJMYXN0SW50ZXJlc3QCAAAADl9sYXN0X2ludGVyZXN0AAAAABFrZXlVc2VyU1dPUExvY2tlZAIAAAAMX1NXT1BfYW1vdW50AAAAABRrZ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CQAETAAAAAIFAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wBQAAAANuaWwIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAACFPbmx5IGFkbWluIGNhbiBjYWxsIHRoaXMgZnVuY3Rpb24JAQAAAAdzdXNwZW5kAAAAAQIAAAAPUGF1c2VkIGJ5IGFkbWluAAAAAWkBAAAACGFjdGl2YXRlAAAAAAMFAAAACGlzQWN0aXZlCQAAAgAAAAECAAAAFkRBcHAgaXMgYWxyZWFkeSBhY3RpdmUDCQEAAAABIQAAAAEJAQAAAA9jb250YWluc0VsZW1lbnQAAAACCQAETAAAAAIFAAAADGFkbWluUHViS2V5MQkABEwAAAACBQAAAAxhZG1pblB1YktleTIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkzCQAETAAAAAIFAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wBQAAAANuaWwIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAACFPbmx5IGFkbWluIGNhbiBjYWxsIHRoaXMgZnVuY3Rpb24JAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACWtleUFjdGl2ZQYJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIa2V5Q2F1c2UFAAAAA25pbAAAAAA8IviS", "chainId": 84, "height": 1477647, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DWPeup6KbF7w2mqtNrFBDyL7XXZDth6f9nqSvX8phXqF Next: 2NJsigEwozQfwG2SdzMg67GATPyA9RwYj6x1UJx8cFPR Diff:
Old | New | Differences | |
---|---|---|---|
53 | 53 | ||
54 | 54 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
55 | 55 | ||
56 | - | let farmingSWOPAddress = Address(base58' | |
56 | + | let farmingSWOPAddress = Address(base58'3N8DpPzjqS5qQkKRL5kmbTt3c4MdxefVhc5') | |
57 | 57 | ||
58 | - | let votingLiteContract = Address(base58' | |
58 | + | let votingLiteContract = Address(base58'3MzESVPKwN6LKK5J6RFLcZ4yYhDsCFCEShP') | |
59 | 59 | ||
60 | 60 | let keySWOPid = "SWOP_id" | |
61 | 61 | ||
147 | 147 | ||
148 | 148 | func claimCalc (caller) = { | |
149 | 149 | let lastInterest = getLastInterestInfo() | |
150 | - | let $ | |
151 | - | let userLastInterest = $ | |
152 | - | let userSWOPLocked = $ | |
150 | + | let $t049765056 = getUserInterestInfo(caller, lastInterest) | |
151 | + | let userLastInterest = $t049765056._1 | |
152 | + | let userSWOPLocked = $t049765056._2 | |
153 | 153 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
154 | 154 | let userNewInterest = lastInterest | |
155 | 155 | $Tuple2(userNewInterest, claimAmount) | |
160 | 160 | func airDrop () = if (!(isActive)) | |
161 | 161 | then throw("DApp is inactive at this moment") | |
162 | 162 | else { | |
163 | - | let $ | |
164 | - | let pmtAmount = $ | |
165 | - | let pmtAssetId = $ | |
163 | + | let $t053215396 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
164 | + | let pmtAmount = $t053215396._1 | |
165 | + | let pmtAssetId = $t053215396._2 | |
166 | 166 | if ((pmtAssetId != SWOP)) | |
167 | 167 | then throw("Incorrect pmtAssetId") | |
168 | 168 | else { | |
179 | 179 | func lockSWOP () = if (!(isActive)) | |
180 | 180 | then throw("DApp is inactive at this moment") | |
181 | 181 | else { | |
182 | - | let $t057075782 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
183 | - | let pmtAmount = $t057075782._1 | |
184 | - | let pmtAssetId = $t057075782._2 | |
185 | - | if ((pmtAssetId != SWOP)) | |
186 | - | then throw("Incorrect pmtAssetId") | |
187 | - | else { | |
188 | - | let lastInterest = getLastInterestInfo() | |
189 | - | let $t058985980 = getUserInterestInfo(i.caller, lastInterest) | |
190 | - | let userLastInterest = $t058985980._1 | |
191 | - | let userSWOPLocked = $t058985980._2 | |
192 | - | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
193 | - | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
194 | - | let userNewInterest = lastInterest | |
195 | - | let totalSWOPLocked = getTotalSWOPLocked() | |
196 | - | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
197 | - | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
198 | - | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
182 | + | let $t058345909 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
183 | + | let pmtAmount = $t058345909._1 | |
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) | |
199 | 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)] | |
200 | - | } | |
202 | + | } | |
201 | 203 | } | |
202 | 204 | ||
203 | 205 | ||
208 | 210 | else { | |
209 | 211 | let totalSWOPLocked = getTotalSWOPLocked() | |
210 | 212 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
211 | - | let $ | |
212 | - | let userNewInterest = $ | |
213 | - | let claimAmount = $ | |
213 | + | let $t072427297 = claimCalc(i.caller) | |
214 | + | let userNewInterest = $t072427297._1 | |
215 | + | let claimAmount = $t072427297._2 | |
214 | 216 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
215 | 217 | let availableFund = (userSWOPLocked - userVoteAmount) | |
216 | 218 | if ((withdrawAmount > availableFund)) | |
231 | 233 | then throw("DApp is inactive at this moment") | |
232 | 234 | else { | |
233 | 235 | let lastInterest = getLastInterestInfo() | |
234 | - | let $ | |
235 | - | let userNewInterest = $ | |
236 | - | let claimAmount = $ | |
236 | + | let $t084098464 = claimCalc(i.caller) | |
237 | + | let userNewInterest = $t084098464._1 | |
238 | + | let claimAmount = $t084098464._2 | |
237 | 239 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
238 | 240 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
239 | 241 | if ((claimAmount == 0)) | |
250 | 252 | let totalSWOPLocked = getTotalSWOPLocked() | |
251 | 253 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
252 | 254 | let lastInterest = getLastInterestInfo() | |
253 | - | let $ | |
254 | - | let userNewInterest = $ | |
255 | - | let claimAmount = $ | |
255 | + | let $t092439298 = claimCalc(i.caller) | |
256 | + | let userNewInterest = $t092439298._1 | |
257 | + | let claimAmount = $t092439298._2 | |
256 | 258 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
257 | 259 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
258 | 260 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
267 | 269 | @Callable(i) | |
268 | 270 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
269 | 271 | then throw("DApp is inactive at this moment") | |
270 | - | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
271 | - | then throw("Only admin can call this function") | |
272 | - | else { | |
273 | - | func sum (a,b) = (a + b) | |
272 | + | else { | |
273 | + | func sum (a,b) = (a + b) | |
274 | 274 | ||
275 | - | ||
276 | - | ||
277 | - | ||
275 | + | func PreviousRewardEntry (accumulated,pool) = { | |
276 | + | let poolIndex = value(indexOf(previousPools, pool)) | |
277 | + | let poolReward = previousRewards[poolIndex] | |
278 | 278 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
279 | - | ||
279 | + | } | |
280 | 280 | ||
281 | - | ||
282 | - | ||
283 | - | ||
281 | + | func CurrentRewardEntry (accumulated,pool) = { | |
282 | + | let poolIndex = value(indexOf(currentPools, pool)) | |
283 | + | let poolReward = currentRewards[poolIndex] | |
284 | 284 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
285 | - | ||
285 | + | } | |
286 | 286 | ||
287 | - | let sumRewardPrevious = { | |
288 | - | let $list1088110914 = previousRewards | |
289 | - | let $size1088110914 = size($list1088110914) | |
290 | - | let $acc01088110914 = 0 | |
291 | - | if (($size1088110914 == 0)) | |
292 | - | then $acc01088110914 | |
293 | - | else { | |
294 | - | let $acc11088110914 = sum($acc01088110914, $list1088110914[0]) | |
295 | - | if (($size1088110914 == 1)) | |
296 | - | then $acc11088110914 | |
287 | + | let sumRewardPrevious = { | |
288 | + | let $list1107111104 = previousRewards | |
289 | + | let $size1107111104 = size($list1107111104) | |
290 | + | let $acc01107111104 = 0 | |
291 | + | if (($size1107111104 == 0)) | |
292 | + | then $acc01107111104 | |
293 | + | else { | |
294 | + | let $acc11107111104 = sum($acc01107111104, $list1107111104[0]) | |
295 | + | if (($size1107111104 == 1)) | |
296 | + | then $acc11107111104 | |
297 | + | else { | |
298 | + | let $acc21107111104 = sum($acc11107111104, $list1107111104[1]) | |
299 | + | if (($size1107111104 == 2)) | |
300 | + | then $acc21107111104 | |
301 | + | else { | |
302 | + | let $acc31107111104 = sum($acc21107111104, $list1107111104[2]) | |
303 | + | if (($size1107111104 == 3)) | |
304 | + | then $acc31107111104 | |
305 | + | else { | |
306 | + | let $acc41107111104 = sum($acc31107111104, $list1107111104[3]) | |
307 | + | if (($size1107111104 == 4)) | |
308 | + | then $acc41107111104 | |
309 | + | else { | |
310 | + | let $acc51107111104 = sum($acc41107111104, $list1107111104[4]) | |
311 | + | if (($size1107111104 == 5)) | |
312 | + | then $acc51107111104 | |
313 | + | else { | |
314 | + | let $acc61107111104 = sum($acc51107111104, $list1107111104[5]) | |
315 | + | if (($size1107111104 == 6)) | |
316 | + | then $acc61107111104 | |
317 | + | else { | |
318 | + | let $acc71107111104 = sum($acc61107111104, $list1107111104[6]) | |
319 | + | if (($size1107111104 == 7)) | |
320 | + | then $acc71107111104 | |
321 | + | else { | |
322 | + | let $acc81107111104 = sum($acc71107111104, $list1107111104[7]) | |
323 | + | if (($size1107111104 == 8)) | |
324 | + | then $acc81107111104 | |
325 | + | else { | |
326 | + | let $acc91107111104 = sum($acc81107111104, $list1107111104[8]) | |
327 | + | if (($size1107111104 == 9)) | |
328 | + | then $acc91107111104 | |
329 | + | else { | |
330 | + | let $acc101107111104 = sum($acc91107111104, $list1107111104[9]) | |
331 | + | if (($size1107111104 == 10)) | |
332 | + | then $acc101107111104 | |
333 | + | else { | |
334 | + | let $acc111107111104 = sum($acc101107111104, $list1107111104[10]) | |
335 | + | if (($size1107111104 == 11)) | |
336 | + | then $acc111107111104 | |
337 | + | else { | |
338 | + | let $acc121107111104 = sum($acc111107111104, $list1107111104[11]) | |
339 | + | if (($size1107111104 == 12)) | |
340 | + | then $acc121107111104 | |
341 | + | else { | |
342 | + | let $acc131107111104 = sum($acc121107111104, $list1107111104[12]) | |
343 | + | if (($size1107111104 == 13)) | |
344 | + | then $acc131107111104 | |
345 | + | else { | |
346 | + | let $acc141107111104 = sum($acc131107111104, $list1107111104[13]) | |
347 | + | if (($size1107111104 == 14)) | |
348 | + | then $acc141107111104 | |
349 | + | else { | |
350 | + | let $acc151107111104 = sum($acc141107111104, $list1107111104[14]) | |
351 | + | if (($size1107111104 == 15)) | |
352 | + | then $acc151107111104 | |
353 | + | else { | |
354 | + | let $acc161107111104 = sum($acc151107111104, $list1107111104[15]) | |
355 | + | if (($size1107111104 == 16)) | |
356 | + | then $acc161107111104 | |
357 | + | else { | |
358 | + | let $acc171107111104 = sum($acc161107111104, $list1107111104[16]) | |
359 | + | if (($size1107111104 == 17)) | |
360 | + | then $acc171107111104 | |
361 | + | else { | |
362 | + | let $acc181107111104 = sum($acc171107111104, $list1107111104[17]) | |
363 | + | if (($size1107111104 == 18)) | |
364 | + | then $acc181107111104 | |
365 | + | else { | |
366 | + | let $acc191107111104 = sum($acc181107111104, $list1107111104[18]) | |
367 | + | if (($size1107111104 == 19)) | |
368 | + | then $acc191107111104 | |
369 | + | else { | |
370 | + | let $acc201107111104 = sum($acc191107111104, $list1107111104[19]) | |
371 | + | if (($size1107111104 == 20)) | |
372 | + | then $acc201107111104 | |
373 | + | else { | |
374 | + | let $acc211107111104 = sum($acc201107111104, $list1107111104[20]) | |
375 | + | throw("List size exceed 20") | |
376 | + | } | |
377 | + | } | |
378 | + | } | |
379 | + | } | |
380 | + | } | |
381 | + | } | |
382 | + | } | |
383 | + | } | |
384 | + | } | |
385 | + | } | |
386 | + | } | |
387 | + | } | |
388 | + | } | |
389 | + | } | |
390 | + | } | |
391 | + | } | |
392 | + | } | |
393 | + | } | |
394 | + | } | |
395 | + | } | |
396 | + | } | |
397 | + | } | |
398 | + | let sumRewardCurrent = { | |
399 | + | let $list1113311165 = currentRewards | |
400 | + | let $size1113311165 = size($list1113311165) | |
401 | + | let $acc01113311165 = 0 | |
402 | + | if (($size1113311165 == 0)) | |
403 | + | then $acc01113311165 | |
404 | + | else { | |
405 | + | let $acc11113311165 = sum($acc01113311165, $list1113311165[0]) | |
406 | + | if (($size1113311165 == 1)) | |
407 | + | then $acc11113311165 | |
408 | + | else { | |
409 | + | let $acc21113311165 = sum($acc11113311165, $list1113311165[1]) | |
410 | + | if (($size1113311165 == 2)) | |
411 | + | then $acc21113311165 | |
412 | + | else { | |
413 | + | let $acc31113311165 = sum($acc21113311165, $list1113311165[2]) | |
414 | + | if (($size1113311165 == 3)) | |
415 | + | then $acc31113311165 | |
416 | + | else { | |
417 | + | let $acc41113311165 = sum($acc31113311165, $list1113311165[3]) | |
418 | + | if (($size1113311165 == 4)) | |
419 | + | then $acc41113311165 | |
420 | + | else { | |
421 | + | let $acc51113311165 = sum($acc41113311165, $list1113311165[4]) | |
422 | + | if (($size1113311165 == 5)) | |
423 | + | then $acc51113311165 | |
424 | + | else { | |
425 | + | let $acc61113311165 = sum($acc51113311165, $list1113311165[5]) | |
426 | + | if (($size1113311165 == 6)) | |
427 | + | then $acc61113311165 | |
428 | + | else { | |
429 | + | let $acc71113311165 = sum($acc61113311165, $list1113311165[6]) | |
430 | + | if (($size1113311165 == 7)) | |
431 | + | then $acc71113311165 | |
432 | + | else { | |
433 | + | let $acc81113311165 = sum($acc71113311165, $list1113311165[7]) | |
434 | + | if (($size1113311165 == 8)) | |
435 | + | then $acc81113311165 | |
436 | + | else { | |
437 | + | let $acc91113311165 = sum($acc81113311165, $list1113311165[8]) | |
438 | + | if (($size1113311165 == 9)) | |
439 | + | then $acc91113311165 | |
440 | + | else { | |
441 | + | let $acc101113311165 = sum($acc91113311165, $list1113311165[9]) | |
442 | + | if (($size1113311165 == 10)) | |
443 | + | then $acc101113311165 | |
444 | + | else { | |
445 | + | let $acc111113311165 = sum($acc101113311165, $list1113311165[10]) | |
446 | + | if (($size1113311165 == 11)) | |
447 | + | then $acc111113311165 | |
448 | + | else { | |
449 | + | let $acc121113311165 = sum($acc111113311165, $list1113311165[11]) | |
450 | + | if (($size1113311165 == 12)) | |
451 | + | then $acc121113311165 | |
452 | + | else { | |
453 | + | let $acc131113311165 = sum($acc121113311165, $list1113311165[12]) | |
454 | + | if (($size1113311165 == 13)) | |
455 | + | then $acc131113311165 | |
456 | + | else { | |
457 | + | let $acc141113311165 = sum($acc131113311165, $list1113311165[13]) | |
458 | + | if (($size1113311165 == 14)) | |
459 | + | then $acc141113311165 | |
460 | + | else { | |
461 | + | let $acc151113311165 = sum($acc141113311165, $list1113311165[14]) | |
462 | + | if (($size1113311165 == 15)) | |
463 | + | then $acc151113311165 | |
464 | + | else { | |
465 | + | let $acc161113311165 = sum($acc151113311165, $list1113311165[15]) | |
466 | + | if (($size1113311165 == 16)) | |
467 | + | then $acc161113311165 | |
468 | + | else { | |
469 | + | let $acc171113311165 = sum($acc161113311165, $list1113311165[16]) | |
470 | + | if (($size1113311165 == 17)) | |
471 | + | then $acc171113311165 | |
472 | + | else { | |
473 | + | let $acc181113311165 = sum($acc171113311165, $list1113311165[17]) | |
474 | + | if (($size1113311165 == 18)) | |
475 | + | then $acc181113311165 | |
476 | + | else { | |
477 | + | let $acc191113311165 = sum($acc181113311165, $list1113311165[18]) | |
478 | + | if (($size1113311165 == 19)) | |
479 | + | then $acc191113311165 | |
480 | + | else { | |
481 | + | let $acc201113311165 = sum($acc191113311165, $list1113311165[19]) | |
482 | + | if (($size1113311165 == 20)) | |
483 | + | then $acc201113311165 | |
484 | + | else { | |
485 | + | let $acc211113311165 = sum($acc201113311165, $list1113311165[20]) | |
486 | + | throw("List size exceed 20") | |
487 | + | } | |
488 | + | } | |
489 | + | } | |
490 | + | } | |
491 | + | } | |
492 | + | } | |
493 | + | } | |
494 | + | } | |
495 | + | } | |
496 | + | } | |
497 | + | } | |
498 | + | } | |
499 | + | } | |
500 | + | } | |
501 | + | } | |
502 | + | } | |
503 | + | } | |
504 | + | } | |
505 | + | } | |
506 | + | } | |
507 | + | } | |
508 | + | } | |
509 | + | if ((height > rewardUpdateHeight)) | |
510 | + | then throw("rewardUpdateHeight < heightthen") | |
511 | + | else if (if ((sumRewardPrevious != totalVoteShare)) | |
512 | + | then true | |
513 | + | else (sumRewardCurrent != totalVoteShare)) | |
514 | + | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
515 | + | else { | |
516 | + | let previousRewardEntryNew = { | |
517 | + | let $list1148111529 = previousPools | |
518 | + | let $size1148111529 = size($list1148111529) | |
519 | + | let $acc01148111529 = nil | |
520 | + | if (($size1148111529 == 0)) | |
521 | + | then $acc01148111529 | |
297 | 522 | else { | |
298 | - | let $ | |
299 | - | if (($ | |
300 | - | then $ | |
523 | + | let $acc11148111529 = PreviousRewardEntry($acc01148111529, $list1148111529[0]) | |
524 | + | if (($size1148111529 == 1)) | |
525 | + | then $acc11148111529 | |
301 | 526 | else { | |
302 | - | let $ | |
303 | - | if (($ | |
304 | - | then $ | |
527 | + | let $acc21148111529 = PreviousRewardEntry($acc11148111529, $list1148111529[1]) | |
528 | + | if (($size1148111529 == 2)) | |
529 | + | then $acc21148111529 | |
305 | 530 | else { | |
306 | - | let $ | |
307 | - | if (($ | |
308 | - | then $ | |
531 | + | let $acc31148111529 = PreviousRewardEntry($acc21148111529, $list1148111529[2]) | |
532 | + | if (($size1148111529 == 3)) | |
533 | + | then $acc31148111529 | |
309 | 534 | else { | |
310 | - | let $ | |
311 | - | if (($ | |
312 | - | then $ | |
535 | + | let $acc41148111529 = PreviousRewardEntry($acc31148111529, $list1148111529[3]) | |
536 | + | if (($size1148111529 == 4)) | |
537 | + | then $acc41148111529 | |
313 | 538 | else { | |
314 | - | let $ | |
315 | - | if (($ | |
316 | - | then $ | |
539 | + | let $acc51148111529 = PreviousRewardEntry($acc41148111529, $list1148111529[4]) | |
540 | + | if (($size1148111529 == 5)) | |
541 | + | then $acc51148111529 | |
317 | 542 | else { | |
318 | - | let $ | |
319 | - | if (($ | |
320 | - | then $ | |
543 | + | let $acc61148111529 = PreviousRewardEntry($acc51148111529, $list1148111529[5]) | |
544 | + | if (($size1148111529 == 6)) | |
545 | + | then $acc61148111529 | |
321 | 546 | else { | |
322 | - | let $ | |
323 | - | if (($ | |
324 | - | then $ | |
547 | + | let $acc71148111529 = PreviousRewardEntry($acc61148111529, $list1148111529[6]) | |
548 | + | if (($size1148111529 == 7)) | |
549 | + | then $acc71148111529 | |
325 | 550 | else { | |
326 | - | let $ | |
327 | - | if (($ | |
328 | - | then $ | |
551 | + | let $acc81148111529 = PreviousRewardEntry($acc71148111529, $list1148111529[7]) | |
552 | + | if (($size1148111529 == 8)) | |
553 | + | then $acc81148111529 | |
329 | 554 | else { | |
330 | - | let $ | |
331 | - | if (($ | |
332 | - | then $ | |
555 | + | let $acc91148111529 = PreviousRewardEntry($acc81148111529, $list1148111529[8]) | |
556 | + | if (($size1148111529 == 9)) | |
557 | + | then $acc91148111529 | |
333 | 558 | else { | |
334 | - | let $ | |
335 | - | if (($ | |
336 | - | then $ | |
559 | + | let $acc101148111529 = PreviousRewardEntry($acc91148111529, $list1148111529[9]) | |
560 | + | if (($size1148111529 == 10)) | |
561 | + | then $acc101148111529 | |
337 | 562 | else { | |
338 | - | let $ | |
339 | - | if (($ | |
340 | - | then $ | |
563 | + | let $acc111148111529 = PreviousRewardEntry($acc101148111529, $list1148111529[10]) | |
564 | + | if (($size1148111529 == 11)) | |
565 | + | then $acc111148111529 | |
341 | 566 | else { | |
342 | - | let $ | |
343 | - | if (($ | |
344 | - | then $ | |
567 | + | let $acc121148111529 = PreviousRewardEntry($acc111148111529, $list1148111529[11]) | |
568 | + | if (($size1148111529 == 12)) | |
569 | + | then $acc121148111529 | |
345 | 570 | else { | |
346 | - | let $ | |
347 | - | if (($ | |
348 | - | then $ | |
571 | + | let $acc131148111529 = PreviousRewardEntry($acc121148111529, $list1148111529[12]) | |
572 | + | if (($size1148111529 == 13)) | |
573 | + | then $acc131148111529 | |
349 | 574 | else { | |
350 | - | let $ | |
351 | - | if (($ | |
352 | - | then $ | |
575 | + | let $acc141148111529 = PreviousRewardEntry($acc131148111529, $list1148111529[13]) | |
576 | + | if (($size1148111529 == 14)) | |
577 | + | then $acc141148111529 | |
353 | 578 | else { | |
354 | - | let $ | |
355 | - | if (($ | |
356 | - | then $ | |
579 | + | let $acc151148111529 = PreviousRewardEntry($acc141148111529, $list1148111529[14]) | |
580 | + | if (($size1148111529 == 15)) | |
581 | + | then $acc151148111529 | |
357 | 582 | else { | |
358 | - | let $ | |
359 | - | if (($ | |
360 | - | then $ | |
583 | + | let $acc161148111529 = PreviousRewardEntry($acc151148111529, $list1148111529[15]) | |
584 | + | if (($size1148111529 == 16)) | |
585 | + | then $acc161148111529 | |
361 | 586 | else { | |
362 | - | let $ | |
363 | - | if (($ | |
364 | - | then $ | |
587 | + | let $acc171148111529 = PreviousRewardEntry($acc161148111529, $list1148111529[16]) | |
588 | + | if (($size1148111529 == 17)) | |
589 | + | then $acc171148111529 | |
365 | 590 | else { | |
366 | - | let $ | |
367 | - | if (($ | |
368 | - | then $ | |
591 | + | let $acc181148111529 = PreviousRewardEntry($acc171148111529, $list1148111529[17]) | |
592 | + | if (($size1148111529 == 18)) | |
593 | + | then $acc181148111529 | |
369 | 594 | else { | |
370 | - | let $ | |
371 | - | if (($ | |
372 | - | then $ | |
595 | + | let $acc191148111529 = PreviousRewardEntry($acc181148111529, $list1148111529[18]) | |
596 | + | if (($size1148111529 == 19)) | |
597 | + | then $acc191148111529 | |
373 | 598 | else { | |
374 | - | let $acc211088110914 = sum($acc201088110914, $list1088110914[20]) | |
375 | - | throw("List size exceed 20") | |
599 | + | let $acc201148111529 = PreviousRewardEntry($acc191148111529, $list1148111529[19]) | |
600 | + | if (($size1148111529 == 20)) | |
601 | + | then $acc201148111529 | |
602 | + | else { | |
603 | + | let $acc211148111529 = PreviousRewardEntry($acc201148111529, $list1148111529[20]) | |
604 | + | throw("List size exceed 20") | |
605 | + | } | |
376 | 606 | } | |
377 | 607 | } | |
378 | 608 | } | |
394 | 624 | } | |
395 | 625 | } | |
396 | 626 | } | |
397 | - | } | |
398 | - | let sumRewardCurrent = { | |
399 | - | let $list1094310975 = currentRewards | |
400 | - | let $size1094310975 = size($list1094310975) | |
401 | - | let $acc01094310975 = 0 | |
402 | - | if (($size1094310975 == 0)) | |
403 | - | then $acc01094310975 | |
404 | - | else { | |
405 | - | let $acc11094310975 = sum($acc01094310975, $list1094310975[0]) | |
406 | - | if (($size1094310975 == 1)) | |
407 | - | then $acc11094310975 | |
627 | + | let currentRewardEntryNew = { | |
628 | + | let $list1156211608 = currentPools | |
629 | + | let $size1156211608 = size($list1156211608) | |
630 | + | let $acc01156211608 = nil | |
631 | + | if (($size1156211608 == 0)) | |
632 | + | then $acc01156211608 | |
408 | 633 | else { | |
409 | - | let $ | |
410 | - | if (($ | |
411 | - | then $ | |
634 | + | let $acc11156211608 = CurrentRewardEntry($acc01156211608, $list1156211608[0]) | |
635 | + | if (($size1156211608 == 1)) | |
636 | + | then $acc11156211608 | |
412 | 637 | else { | |
413 | - | let $ | |
414 | - | if (($ | |
415 | - | then $ | |
638 | + | let $acc21156211608 = CurrentRewardEntry($acc11156211608, $list1156211608[1]) | |
639 | + | if (($size1156211608 == 2)) | |
640 | + | then $acc21156211608 | |
416 | 641 | else { | |
417 | - | let $ | |
418 | - | if (($ | |
419 | - | then $ | |
642 | + | let $acc31156211608 = CurrentRewardEntry($acc21156211608, $list1156211608[2]) | |
643 | + | if (($size1156211608 == 3)) | |
644 | + | then $acc31156211608 | |
420 | 645 | else { | |
421 | - | let $ | |
422 | - | if (($ | |
423 | - | then $ | |
646 | + | let $acc41156211608 = CurrentRewardEntry($acc31156211608, $list1156211608[3]) | |
647 | + | if (($size1156211608 == 4)) | |
648 | + | then $acc41156211608 | |
424 | 649 | else { | |
425 | - | let $ | |
426 | - | if (($ | |
427 | - | then $ | |
650 | + | let $acc51156211608 = CurrentRewardEntry($acc41156211608, $list1156211608[4]) | |
651 | + | if (($size1156211608 == 5)) | |
652 | + | then $acc51156211608 | |
428 | 653 | else { | |
429 | - | let $ | |
430 | - | if (($ | |
431 | - | then $ | |
654 | + | let $acc61156211608 = CurrentRewardEntry($acc51156211608, $list1156211608[5]) | |
655 | + | if (($size1156211608 == 6)) | |
656 | + | then $acc61156211608 | |
432 | 657 | else { | |
433 | - | let $ | |
434 | - | if (($ | |
435 | - | then $ | |
658 | + | let $acc71156211608 = CurrentRewardEntry($acc61156211608, $list1156211608[6]) | |
659 | + | if (($size1156211608 == 7)) | |
660 | + | then $acc71156211608 | |
436 | 661 | else { | |
437 | - | let $ | |
438 | - | if (($ | |
439 | - | then $ | |
662 | + | let $acc81156211608 = CurrentRewardEntry($acc71156211608, $list1156211608[7]) | |
663 | + | if (($size1156211608 == 8)) | |
664 | + | then $acc81156211608 | |
440 | 665 | else { | |
441 | - | let $ | |
442 | - | if (($ | |
443 | - | then $ | |
666 | + | let $acc91156211608 = CurrentRewardEntry($acc81156211608, $list1156211608[8]) | |
667 | + | if (($size1156211608 == 9)) | |
668 | + | then $acc91156211608 | |
444 | 669 | else { | |
445 | - | let $ | |
446 | - | if (($ | |
447 | - | then $ | |
670 | + | let $acc101156211608 = CurrentRewardEntry($acc91156211608, $list1156211608[9]) | |
671 | + | if (($size1156211608 == 10)) | |
672 | + | then $acc101156211608 | |
448 | 673 | else { | |
449 | - | let $ | |
450 | - | if (($ | |
451 | - | then $ | |
674 | + | let $acc111156211608 = CurrentRewardEntry($acc101156211608, $list1156211608[10]) | |
675 | + | if (($size1156211608 == 11)) | |
676 | + | then $acc111156211608 | |
452 | 677 | else { | |
453 | - | let $ | |
454 | - | if (($ | |
455 | - | then $ | |
678 | + | let $acc121156211608 = CurrentRewardEntry($acc111156211608, $list1156211608[11]) | |
679 | + | if (($size1156211608 == 12)) | |
680 | + | then $acc121156211608 | |
456 | 681 | else { | |
457 | - | let $ | |
458 | - | if (($ | |
459 | - | then $ | |
682 | + | let $acc131156211608 = CurrentRewardEntry($acc121156211608, $list1156211608[12]) | |
683 | + | if (($size1156211608 == 13)) | |
684 | + | then $acc131156211608 | |
460 | 685 | else { | |
461 | - | let $ | |
462 | - | if (($ | |
463 | - | then $ | |
686 | + | let $acc141156211608 = CurrentRewardEntry($acc131156211608, $list1156211608[13]) | |
687 | + | if (($size1156211608 == 14)) | |
688 | + | then $acc141156211608 | |
464 | 689 | else { | |
465 | - | let $ | |
466 | - | if (($ | |
467 | - | then $ | |
690 | + | let $acc151156211608 = CurrentRewardEntry($acc141156211608, $list1156211608[14]) | |
691 | + | if (($size1156211608 == 15)) | |
692 | + | then $acc151156211608 | |
468 | 693 | else { | |
469 | - | let $ | |
470 | - | if (($ | |
471 | - | then $ | |
694 | + | let $acc161156211608 = CurrentRewardEntry($acc151156211608, $list1156211608[15]) | |
695 | + | if (($size1156211608 == 16)) | |
696 | + | then $acc161156211608 | |
472 | 697 | else { | |
473 | - | let $ | |
474 | - | if (($ | |
475 | - | then $ | |
698 | + | let $acc171156211608 = CurrentRewardEntry($acc161156211608, $list1156211608[16]) | |
699 | + | if (($size1156211608 == 17)) | |
700 | + | then $acc171156211608 | |
476 | 701 | else { | |
477 | - | let $ | |
478 | - | if (($ | |
479 | - | then $ | |
702 | + | let $acc181156211608 = CurrentRewardEntry($acc171156211608, $list1156211608[17]) | |
703 | + | if (($size1156211608 == 18)) | |
704 | + | then $acc181156211608 | |
480 | 705 | else { | |
481 | - | let $ | |
482 | - | if (($ | |
483 | - | then $ | |
706 | + | let $acc191156211608 = CurrentRewardEntry($acc181156211608, $list1156211608[18]) | |
707 | + | if (($size1156211608 == 19)) | |
708 | + | then $acc191156211608 | |
484 | 709 | else { | |
485 | - | let $acc211094310975 = sum($acc201094310975, $list1094310975[20]) | |
486 | - | throw("List size exceed 20") | |
710 | + | let $acc201156211608 = CurrentRewardEntry($acc191156211608, $list1156211608[19]) | |
711 | + | if (($size1156211608 == 20)) | |
712 | + | then $acc201156211608 | |
713 | + | else { | |
714 | + | let $acc211156211608 = CurrentRewardEntry($acc201156211608, $list1156211608[20]) | |
715 | + | throw("List size exceed 20") | |
716 | + | } | |
487 | 717 | } | |
488 | 718 | } | |
489 | 719 | } | |
505 | 735 | } | |
506 | 736 | } | |
507 | 737 | } | |
508 | - | } | |
509 | - | if ((height > rewardUpdateHeight)) | |
510 | - | then throw("rewardUpdateHeight < height") | |
511 | - | else if (if ((sumRewardPrevious != totalVoteShare)) | |
512 | - | then true | |
513 | - | else (sumRewardCurrent != totalVoteShare)) | |
514 | - | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
515 | - | else { | |
516 | - | let previousRewardEntryNew = { | |
517 | - | let $list1128411332 = previousPools | |
518 | - | let $size1128411332 = size($list1128411332) | |
519 | - | let $acc01128411332 = nil | |
520 | - | if (($size1128411332 == 0)) | |
521 | - | then $acc01128411332 | |
522 | - | else { | |
523 | - | let $acc11128411332 = PreviousRewardEntry($acc01128411332, $list1128411332[0]) | |
524 | - | if (($size1128411332 == 1)) | |
525 | - | then $acc11128411332 | |
526 | - | else { | |
527 | - | let $acc21128411332 = PreviousRewardEntry($acc11128411332, $list1128411332[1]) | |
528 | - | if (($size1128411332 == 2)) | |
529 | - | then $acc21128411332 | |
530 | - | else { | |
531 | - | let $acc31128411332 = PreviousRewardEntry($acc21128411332, $list1128411332[2]) | |
532 | - | if (($size1128411332 == 3)) | |
533 | - | then $acc31128411332 | |
534 | - | else { | |
535 | - | let $acc41128411332 = PreviousRewardEntry($acc31128411332, $list1128411332[3]) | |
536 | - | if (($size1128411332 == 4)) | |
537 | - | then $acc41128411332 | |
538 | - | else { | |
539 | - | let $acc51128411332 = PreviousRewardEntry($acc41128411332, $list1128411332[4]) | |
540 | - | if (($size1128411332 == 5)) | |
541 | - | then $acc51128411332 | |
542 | - | else { | |
543 | - | let $acc61128411332 = PreviousRewardEntry($acc51128411332, $list1128411332[5]) | |
544 | - | if (($size1128411332 == 6)) | |
545 | - | then $acc61128411332 | |
546 | - | else { | |
547 | - | let $acc71128411332 = PreviousRewardEntry($acc61128411332, $list1128411332[6]) | |
548 | - | if (($size1128411332 == 7)) | |
549 | - | then $acc71128411332 | |
550 | - | else { | |
551 | - | let $acc81128411332 = PreviousRewardEntry($acc71128411332, $list1128411332[7]) | |
552 | - | if (($size1128411332 == 8)) | |
553 | - | then $acc81128411332 | |
554 | - | else { | |
555 | - | let $acc91128411332 = PreviousRewardEntry($acc81128411332, $list1128411332[8]) | |
556 | - | if (($size1128411332 == 9)) | |
557 | - | then $acc91128411332 | |
558 | - | else { | |
559 | - | let $acc101128411332 = PreviousRewardEntry($acc91128411332, $list1128411332[9]) | |
560 | - | if (($size1128411332 == 10)) | |
561 | - | then $acc101128411332 | |
562 | - | else { | |
563 | - | let $acc111128411332 = PreviousRewardEntry($acc101128411332, $list1128411332[10]) | |
564 | - | if (($size1128411332 == 11)) | |
565 | - | then $acc111128411332 | |
566 | - | else { | |
567 | - | let $acc121128411332 = PreviousRewardEntry($acc111128411332, $list1128411332[11]) | |
568 | - | if (($size1128411332 == 12)) | |
569 | - | then $acc121128411332 | |
570 | - | else { | |
571 | - | let $acc131128411332 = PreviousRewardEntry($acc121128411332, $list1128411332[12]) | |
572 | - | if (($size1128411332 == 13)) | |
573 | - | then $acc131128411332 | |
574 | - | else { | |
575 | - | let $acc141128411332 = PreviousRewardEntry($acc131128411332, $list1128411332[13]) | |
576 | - | if (($size1128411332 == 14)) | |
577 | - | then $acc141128411332 | |
578 | - | else { | |
579 | - | let $acc151128411332 = PreviousRewardEntry($acc141128411332, $list1128411332[14]) | |
580 | - | if (($size1128411332 == 15)) | |
581 | - | then $acc151128411332 | |
582 | - | else { | |
583 | - | let $acc161128411332 = PreviousRewardEntry($acc151128411332, $list1128411332[15]) | |
584 | - | if (($size1128411332 == 16)) | |
585 | - | then $acc161128411332 | |
586 | - | else { | |
587 | - | let $acc171128411332 = PreviousRewardEntry($acc161128411332, $list1128411332[16]) | |
588 | - | if (($size1128411332 == 17)) | |
589 | - | then $acc171128411332 | |
590 | - | else { | |
591 | - | let $acc181128411332 = PreviousRewardEntry($acc171128411332, $list1128411332[17]) | |
592 | - | if (($size1128411332 == 18)) | |
593 | - | then $acc181128411332 | |
594 | - | else { | |
595 | - | let $acc191128411332 = PreviousRewardEntry($acc181128411332, $list1128411332[18]) | |
596 | - | if (($size1128411332 == 19)) | |
597 | - | then $acc191128411332 | |
598 | - | else { | |
599 | - | let $acc201128411332 = PreviousRewardEntry($acc191128411332, $list1128411332[19]) | |
600 | - | if (($size1128411332 == 20)) | |
601 | - | then $acc201128411332 | |
602 | - | else { | |
603 | - | let $acc211128411332 = PreviousRewardEntry($acc201128411332, $list1128411332[20]) | |
604 | - | throw("List size exceed 20") | |
605 | - | } | |
606 | - | } | |
607 | - | } | |
608 | - | } | |
609 | - | } | |
610 | - | } | |
611 | - | } | |
612 | - | } | |
613 | - | } | |
614 | - | } | |
615 | - | } | |
616 | - | } | |
617 | - | } | |
618 | - | } | |
619 | - | } | |
620 | - | } | |
621 | - | } | |
622 | - | } | |
623 | - | } | |
624 | - | } | |
625 | - | } | |
626 | - | } | |
627 | - | let currentRewardEntryNew = { | |
628 | - | let $list1136511411 = currentPools | |
629 | - | let $size1136511411 = size($list1136511411) | |
630 | - | let $acc01136511411 = nil | |
631 | - | if (($size1136511411 == 0)) | |
632 | - | then $acc01136511411 | |
633 | - | else { | |
634 | - | let $acc11136511411 = CurrentRewardEntry($acc01136511411, $list1136511411[0]) | |
635 | - | if (($size1136511411 == 1)) | |
636 | - | then $acc11136511411 | |
637 | - | else { | |
638 | - | let $acc21136511411 = CurrentRewardEntry($acc11136511411, $list1136511411[1]) | |
639 | - | if (($size1136511411 == 2)) | |
640 | - | then $acc21136511411 | |
641 | - | else { | |
642 | - | let $acc31136511411 = CurrentRewardEntry($acc21136511411, $list1136511411[2]) | |
643 | - | if (($size1136511411 == 3)) | |
644 | - | then $acc31136511411 | |
645 | - | else { | |
646 | - | let $acc41136511411 = CurrentRewardEntry($acc31136511411, $list1136511411[3]) | |
647 | - | if (($size1136511411 == 4)) | |
648 | - | then $acc41136511411 | |
649 | - | else { | |
650 | - | let $acc51136511411 = CurrentRewardEntry($acc41136511411, $list1136511411[4]) | |
651 | - | if (($size1136511411 == 5)) | |
652 | - | then $acc51136511411 | |
653 | - | else { | |
654 | - | let $acc61136511411 = CurrentRewardEntry($acc51136511411, $list1136511411[5]) | |
655 | - | if (($size1136511411 == 6)) | |
656 | - | then $acc61136511411 | |
657 | - | else { | |
658 | - | let $acc71136511411 = CurrentRewardEntry($acc61136511411, $list1136511411[6]) | |
659 | - | if (($size1136511411 == 7)) | |
660 | - | then $acc71136511411 | |
661 | - | else { | |
662 | - | let $acc81136511411 = CurrentRewardEntry($acc71136511411, $list1136511411[7]) | |
663 | - | if (($size1136511411 == 8)) | |
664 | - | then $acc81136511411 | |
665 | - | else { | |
666 | - | let $acc91136511411 = CurrentRewardEntry($acc81136511411, $list1136511411[8]) | |
667 | - | if (($size1136511411 == 9)) | |
668 | - | then $acc91136511411 | |
669 | - | else { | |
670 | - | let $acc101136511411 = CurrentRewardEntry($acc91136511411, $list1136511411[9]) | |
671 | - | if (($size1136511411 == 10)) | |
672 | - | then $acc101136511411 | |
673 | - | else { | |
674 | - | let $acc111136511411 = CurrentRewardEntry($acc101136511411, $list1136511411[10]) | |
675 | - | if (($size1136511411 == 11)) | |
676 | - | then $acc111136511411 | |
677 | - | else { | |
678 | - | let $acc121136511411 = CurrentRewardEntry($acc111136511411, $list1136511411[11]) | |
679 | - | if (($size1136511411 == 12)) | |
680 | - | then $acc121136511411 | |
681 | - | else { | |
682 | - | let $acc131136511411 = CurrentRewardEntry($acc121136511411, $list1136511411[12]) | |
683 | - | if (($size1136511411 == 13)) | |
684 | - | then $acc131136511411 | |
685 | - | else { | |
686 | - | let $acc141136511411 = CurrentRewardEntry($acc131136511411, $list1136511411[13]) | |
687 | - | if (($size1136511411 == 14)) | |
688 | - | then $acc141136511411 | |
689 | - | else { | |
690 | - | let $acc151136511411 = CurrentRewardEntry($acc141136511411, $list1136511411[14]) | |
691 | - | if (($size1136511411 == 15)) | |
692 | - | then $acc151136511411 | |
693 | - | else { | |
694 | - | let $acc161136511411 = CurrentRewardEntry($acc151136511411, $list1136511411[15]) | |
695 | - | if (($size1136511411 == 16)) | |
696 | - | then $acc161136511411 | |
697 | - | else { | |
698 | - | let $acc171136511411 = CurrentRewardEntry($acc161136511411, $list1136511411[16]) | |
699 | - | if (($size1136511411 == 17)) | |
700 | - | then $acc171136511411 | |
701 | - | else { | |
702 | - | let $acc181136511411 = CurrentRewardEntry($acc171136511411, $list1136511411[17]) | |
703 | - | if (($size1136511411 == 18)) | |
704 | - | then $acc181136511411 | |
705 | - | else { | |
706 | - | let $acc191136511411 = CurrentRewardEntry($acc181136511411, $list1136511411[18]) | |
707 | - | if (($size1136511411 == 19)) | |
708 | - | then $acc191136511411 | |
709 | - | else { | |
710 | - | let $acc201136511411 = CurrentRewardEntry($acc191136511411, $list1136511411[19]) | |
711 | - | if (($size1136511411 == 20)) | |
712 | - | then $acc201136511411 | |
713 | - | else { | |
714 | - | let $acc211136511411 = CurrentRewardEntry($acc201136511411, $list1136511411[20]) | |
715 | - | throw("List size exceed 20") | |
716 | - | } | |
717 | - | } | |
718 | - | } | |
719 | - | } | |
720 | - | } | |
721 | - | } | |
722 | - | } | |
723 | - | } | |
724 | - | } | |
725 | - | } | |
726 | - | } | |
727 | - | } | |
728 | - | } | |
729 | - | } | |
730 | - | } | |
731 | - | } | |
732 | - | } | |
733 | - | } | |
734 | - | } | |
735 | - | } | |
736 | - | } | |
737 | - | } | |
738 | - | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
739 | - | } | |
740 | - | } | |
738 | + | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
739 | + | } | |
740 | + | } | |
741 | 741 | ||
742 | 742 | ||
743 | 743 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
9 | 9 | ||
10 | 10 | let adminPubKeyStartStop = base58'EtVkT6ed8GtbUiVVEqdmEqsp2J4qbb3rre2HFgxeVYdg' | |
11 | 11 | ||
12 | 12 | let keyActive = "active" | |
13 | 13 | ||
14 | 14 | let keyCause = "shutdown_cause" | |
15 | 15 | ||
16 | 16 | let keyLastInterest = "last_interest" | |
17 | 17 | ||
18 | 18 | let keyUserLastInterest = "_last_interest" | |
19 | 19 | ||
20 | 20 | let keyUserSWOPLocked = "_SWOP_amount" | |
21 | 21 | ||
22 | 22 | let keyUserGetBackHeight = "_getBackHeight" | |
23 | 23 | ||
24 | 24 | let keyTotalSWOPLocked = "total_SWOP_amount" | |
25 | 25 | ||
26 | 26 | let kUserTotalVoteSWOP = "_user_total_SWOP_vote" | |
27 | 27 | ||
28 | 28 | let keyUserVoteOptionAmount = "_SWOP_option_amount" | |
29 | 29 | ||
30 | 30 | let keyTotalVoteOptionAmount = "total_SWOP_option_amount" | |
31 | 31 | ||
32 | 32 | let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount" | |
33 | 33 | ||
34 | 34 | let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount" | |
35 | 35 | ||
36 | 36 | let keyVoteName = "vote_name" | |
37 | 37 | ||
38 | 38 | let keyOptionName = "_option_name" | |
39 | 39 | ||
40 | 40 | let keyVotingStartHeight = "_startHeight" | |
41 | 41 | ||
42 | 42 | let keyVoteDuration = "_vote_duration" | |
43 | 43 | ||
44 | 44 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
45 | 45 | ||
46 | 46 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
47 | 47 | ||
48 | 48 | let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
49 | 49 | ||
50 | 50 | let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
51 | 51 | ||
52 | 52 | let keyRewardUpdateHeight = "reward_update_height" | |
53 | 53 | ||
54 | 54 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
55 | 55 | ||
56 | - | let farmingSWOPAddress = Address(base58' | |
56 | + | let farmingSWOPAddress = Address(base58'3N8DpPzjqS5qQkKRL5kmbTt3c4MdxefVhc5') | |
57 | 57 | ||
58 | - | let votingLiteContract = Address(base58' | |
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 | - | let $ | |
151 | - | let userLastInterest = $ | |
152 | - | let userSWOPLocked = $ | |
150 | + | let $t049765056 = getUserInterestInfo(caller, lastInterest) | |
151 | + | let userLastInterest = $t049765056._1 | |
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 | - | let $ | |
164 | - | let pmtAmount = $ | |
165 | - | let pmtAssetId = $ | |
163 | + | let $t053215396 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
164 | + | let pmtAmount = $t053215396._1 | |
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 | - | let $t057075782 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
183 | - | let pmtAmount = $t057075782._1 | |
184 | - | let pmtAssetId = $t057075782._2 | |
185 | - | if ((pmtAssetId != SWOP)) | |
186 | - | then throw("Incorrect pmtAssetId") | |
187 | - | else { | |
188 | - | let lastInterest = getLastInterestInfo() | |
189 | - | let $t058985980 = getUserInterestInfo(i.caller, lastInterest) | |
190 | - | let userLastInterest = $t058985980._1 | |
191 | - | let userSWOPLocked = $t058985980._2 | |
192 | - | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
193 | - | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
194 | - | let userNewInterest = lastInterest | |
195 | - | let totalSWOPLocked = getTotalSWOPLocked() | |
196 | - | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
197 | - | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
198 | - | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
182 | + | let $t058345909 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
183 | + | let pmtAmount = $t058345909._1 | |
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) | |
199 | 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)] | |
200 | - | } | |
202 | + | } | |
201 | 203 | } | |
202 | 204 | ||
203 | 205 | ||
204 | 206 | ||
205 | 207 | @Callable(i) | |
206 | 208 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
207 | 209 | then throw("DApp is inactive at this moment") | |
208 | 210 | else { | |
209 | 211 | let totalSWOPLocked = getTotalSWOPLocked() | |
210 | 212 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
211 | - | let $ | |
212 | - | let userNewInterest = $ | |
213 | - | let claimAmount = $ | |
213 | + | let $t072427297 = claimCalc(i.caller) | |
214 | + | let userNewInterest = $t072427297._1 | |
215 | + | let claimAmount = $t072427297._2 | |
214 | 216 | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
215 | 217 | let availableFund = (userSWOPLocked - userVoteAmount) | |
216 | 218 | if ((withdrawAmount > availableFund)) | |
217 | 219 | then throw("withdrawAmount > availableFund") | |
218 | 220 | else { | |
219 | 221 | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
220 | 222 | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
221 | 223 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
222 | 224 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
223 | 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)] | |
224 | 226 | } | |
225 | 227 | } | |
226 | 228 | ||
227 | 229 | ||
228 | 230 | ||
229 | 231 | @Callable(i) | |
230 | 232 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
231 | 233 | then throw("DApp is inactive at this moment") | |
232 | 234 | else { | |
233 | 235 | let lastInterest = getLastInterestInfo() | |
234 | - | let $ | |
235 | - | let userNewInterest = $ | |
236 | - | let claimAmount = $ | |
236 | + | let $t084098464 = claimCalc(i.caller) | |
237 | + | let userNewInterest = $t084098464._1 | |
238 | + | let claimAmount = $t084098464._2 | |
237 | 239 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
238 | 240 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
239 | 241 | if ((claimAmount == 0)) | |
240 | 242 | then throw("You have 0 available SWOP") | |
241 | 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)] | |
242 | 244 | } | |
243 | 245 | ||
244 | 246 | ||
245 | 247 | ||
246 | 248 | @Callable(i) | |
247 | 249 | func claimAndStakeSWOP () = if (!(isActive)) | |
248 | 250 | then throw("DApp is inactive at this moment") | |
249 | 251 | else { | |
250 | 252 | let totalSWOPLocked = getTotalSWOPLocked() | |
251 | 253 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
252 | 254 | let lastInterest = getLastInterestInfo() | |
253 | - | let $ | |
254 | - | let userNewInterest = $ | |
255 | - | let claimAmount = $ | |
255 | + | let $t092439298 = claimCalc(i.caller) | |
256 | + | let userNewInterest = $t092439298._1 | |
257 | + | let claimAmount = $t092439298._2 | |
256 | 258 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
257 | 259 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
258 | 260 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
259 | 261 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
260 | 262 | if ((claimAmount == 0)) | |
261 | 263 | then throw("You have 0 available SWOP") | |
262 | 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)] | |
263 | 265 | } | |
264 | 266 | ||
265 | 267 | ||
266 | 268 | ||
267 | 269 | @Callable(i) | |
268 | 270 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
269 | 271 | then throw("DApp is inactive at this moment") | |
270 | - | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
271 | - | then throw("Only admin can call this function") | |
272 | - | else { | |
273 | - | func sum (a,b) = (a + b) | |
272 | + | else { | |
273 | + | func sum (a,b) = (a + b) | |
274 | 274 | ||
275 | - | ||
276 | - | ||
277 | - | ||
275 | + | func PreviousRewardEntry (accumulated,pool) = { | |
276 | + | let poolIndex = value(indexOf(previousPools, pool)) | |
277 | + | let poolReward = previousRewards[poolIndex] | |
278 | 278 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
279 | - | ||
279 | + | } | |
280 | 280 | ||
281 | - | ||
282 | - | ||
283 | - | ||
281 | + | func CurrentRewardEntry (accumulated,pool) = { | |
282 | + | let poolIndex = value(indexOf(currentPools, pool)) | |
283 | + | let poolReward = currentRewards[poolIndex] | |
284 | 284 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
285 | - | ||
285 | + | } | |
286 | 286 | ||
287 | - | let sumRewardPrevious = { | |
288 | - | let $list1088110914 = previousRewards | |
289 | - | let $size1088110914 = size($list1088110914) | |
290 | - | let $acc01088110914 = 0 | |
291 | - | if (($size1088110914 == 0)) | |
292 | - | then $acc01088110914 | |
293 | - | else { | |
294 | - | let $acc11088110914 = sum($acc01088110914, $list1088110914[0]) | |
295 | - | if (($size1088110914 == 1)) | |
296 | - | then $acc11088110914 | |
287 | + | let sumRewardPrevious = { | |
288 | + | let $list1107111104 = previousRewards | |
289 | + | let $size1107111104 = size($list1107111104) | |
290 | + | let $acc01107111104 = 0 | |
291 | + | if (($size1107111104 == 0)) | |
292 | + | then $acc01107111104 | |
293 | + | else { | |
294 | + | let $acc11107111104 = sum($acc01107111104, $list1107111104[0]) | |
295 | + | if (($size1107111104 == 1)) | |
296 | + | then $acc11107111104 | |
297 | + | else { | |
298 | + | let $acc21107111104 = sum($acc11107111104, $list1107111104[1]) | |
299 | + | if (($size1107111104 == 2)) | |
300 | + | then $acc21107111104 | |
301 | + | else { | |
302 | + | let $acc31107111104 = sum($acc21107111104, $list1107111104[2]) | |
303 | + | if (($size1107111104 == 3)) | |
304 | + | then $acc31107111104 | |
305 | + | else { | |
306 | + | let $acc41107111104 = sum($acc31107111104, $list1107111104[3]) | |
307 | + | if (($size1107111104 == 4)) | |
308 | + | then $acc41107111104 | |
309 | + | else { | |
310 | + | let $acc51107111104 = sum($acc41107111104, $list1107111104[4]) | |
311 | + | if (($size1107111104 == 5)) | |
312 | + | then $acc51107111104 | |
313 | + | else { | |
314 | + | let $acc61107111104 = sum($acc51107111104, $list1107111104[5]) | |
315 | + | if (($size1107111104 == 6)) | |
316 | + | then $acc61107111104 | |
317 | + | else { | |
318 | + | let $acc71107111104 = sum($acc61107111104, $list1107111104[6]) | |
319 | + | if (($size1107111104 == 7)) | |
320 | + | then $acc71107111104 | |
321 | + | else { | |
322 | + | let $acc81107111104 = sum($acc71107111104, $list1107111104[7]) | |
323 | + | if (($size1107111104 == 8)) | |
324 | + | then $acc81107111104 | |
325 | + | else { | |
326 | + | let $acc91107111104 = sum($acc81107111104, $list1107111104[8]) | |
327 | + | if (($size1107111104 == 9)) | |
328 | + | then $acc91107111104 | |
329 | + | else { | |
330 | + | let $acc101107111104 = sum($acc91107111104, $list1107111104[9]) | |
331 | + | if (($size1107111104 == 10)) | |
332 | + | then $acc101107111104 | |
333 | + | else { | |
334 | + | let $acc111107111104 = sum($acc101107111104, $list1107111104[10]) | |
335 | + | if (($size1107111104 == 11)) | |
336 | + | then $acc111107111104 | |
337 | + | else { | |
338 | + | let $acc121107111104 = sum($acc111107111104, $list1107111104[11]) | |
339 | + | if (($size1107111104 == 12)) | |
340 | + | then $acc121107111104 | |
341 | + | else { | |
342 | + | let $acc131107111104 = sum($acc121107111104, $list1107111104[12]) | |
343 | + | if (($size1107111104 == 13)) | |
344 | + | then $acc131107111104 | |
345 | + | else { | |
346 | + | let $acc141107111104 = sum($acc131107111104, $list1107111104[13]) | |
347 | + | if (($size1107111104 == 14)) | |
348 | + | then $acc141107111104 | |
349 | + | else { | |
350 | + | let $acc151107111104 = sum($acc141107111104, $list1107111104[14]) | |
351 | + | if (($size1107111104 == 15)) | |
352 | + | then $acc151107111104 | |
353 | + | else { | |
354 | + | let $acc161107111104 = sum($acc151107111104, $list1107111104[15]) | |
355 | + | if (($size1107111104 == 16)) | |
356 | + | then $acc161107111104 | |
357 | + | else { | |
358 | + | let $acc171107111104 = sum($acc161107111104, $list1107111104[16]) | |
359 | + | if (($size1107111104 == 17)) | |
360 | + | then $acc171107111104 | |
361 | + | else { | |
362 | + | let $acc181107111104 = sum($acc171107111104, $list1107111104[17]) | |
363 | + | if (($size1107111104 == 18)) | |
364 | + | then $acc181107111104 | |
365 | + | else { | |
366 | + | let $acc191107111104 = sum($acc181107111104, $list1107111104[18]) | |
367 | + | if (($size1107111104 == 19)) | |
368 | + | then $acc191107111104 | |
369 | + | else { | |
370 | + | let $acc201107111104 = sum($acc191107111104, $list1107111104[19]) | |
371 | + | if (($size1107111104 == 20)) | |
372 | + | then $acc201107111104 | |
373 | + | else { | |
374 | + | let $acc211107111104 = sum($acc201107111104, $list1107111104[20]) | |
375 | + | throw("List size exceed 20") | |
376 | + | } | |
377 | + | } | |
378 | + | } | |
379 | + | } | |
380 | + | } | |
381 | + | } | |
382 | + | } | |
383 | + | } | |
384 | + | } | |
385 | + | } | |
386 | + | } | |
387 | + | } | |
388 | + | } | |
389 | + | } | |
390 | + | } | |
391 | + | } | |
392 | + | } | |
393 | + | } | |
394 | + | } | |
395 | + | } | |
396 | + | } | |
397 | + | } | |
398 | + | let sumRewardCurrent = { | |
399 | + | let $list1113311165 = currentRewards | |
400 | + | let $size1113311165 = size($list1113311165) | |
401 | + | let $acc01113311165 = 0 | |
402 | + | if (($size1113311165 == 0)) | |
403 | + | then $acc01113311165 | |
404 | + | else { | |
405 | + | let $acc11113311165 = sum($acc01113311165, $list1113311165[0]) | |
406 | + | if (($size1113311165 == 1)) | |
407 | + | then $acc11113311165 | |
408 | + | else { | |
409 | + | let $acc21113311165 = sum($acc11113311165, $list1113311165[1]) | |
410 | + | if (($size1113311165 == 2)) | |
411 | + | then $acc21113311165 | |
412 | + | else { | |
413 | + | let $acc31113311165 = sum($acc21113311165, $list1113311165[2]) | |
414 | + | if (($size1113311165 == 3)) | |
415 | + | then $acc31113311165 | |
416 | + | else { | |
417 | + | let $acc41113311165 = sum($acc31113311165, $list1113311165[3]) | |
418 | + | if (($size1113311165 == 4)) | |
419 | + | then $acc41113311165 | |
420 | + | else { | |
421 | + | let $acc51113311165 = sum($acc41113311165, $list1113311165[4]) | |
422 | + | if (($size1113311165 == 5)) | |
423 | + | then $acc51113311165 | |
424 | + | else { | |
425 | + | let $acc61113311165 = sum($acc51113311165, $list1113311165[5]) | |
426 | + | if (($size1113311165 == 6)) | |
427 | + | then $acc61113311165 | |
428 | + | else { | |
429 | + | let $acc71113311165 = sum($acc61113311165, $list1113311165[6]) | |
430 | + | if (($size1113311165 == 7)) | |
431 | + | then $acc71113311165 | |
432 | + | else { | |
433 | + | let $acc81113311165 = sum($acc71113311165, $list1113311165[7]) | |
434 | + | if (($size1113311165 == 8)) | |
435 | + | then $acc81113311165 | |
436 | + | else { | |
437 | + | let $acc91113311165 = sum($acc81113311165, $list1113311165[8]) | |
438 | + | if (($size1113311165 == 9)) | |
439 | + | then $acc91113311165 | |
440 | + | else { | |
441 | + | let $acc101113311165 = sum($acc91113311165, $list1113311165[9]) | |
442 | + | if (($size1113311165 == 10)) | |
443 | + | then $acc101113311165 | |
444 | + | else { | |
445 | + | let $acc111113311165 = sum($acc101113311165, $list1113311165[10]) | |
446 | + | if (($size1113311165 == 11)) | |
447 | + | then $acc111113311165 | |
448 | + | else { | |
449 | + | let $acc121113311165 = sum($acc111113311165, $list1113311165[11]) | |
450 | + | if (($size1113311165 == 12)) | |
451 | + | then $acc121113311165 | |
452 | + | else { | |
453 | + | let $acc131113311165 = sum($acc121113311165, $list1113311165[12]) | |
454 | + | if (($size1113311165 == 13)) | |
455 | + | then $acc131113311165 | |
456 | + | else { | |
457 | + | let $acc141113311165 = sum($acc131113311165, $list1113311165[13]) | |
458 | + | if (($size1113311165 == 14)) | |
459 | + | then $acc141113311165 | |
460 | + | else { | |
461 | + | let $acc151113311165 = sum($acc141113311165, $list1113311165[14]) | |
462 | + | if (($size1113311165 == 15)) | |
463 | + | then $acc151113311165 | |
464 | + | else { | |
465 | + | let $acc161113311165 = sum($acc151113311165, $list1113311165[15]) | |
466 | + | if (($size1113311165 == 16)) | |
467 | + | then $acc161113311165 | |
468 | + | else { | |
469 | + | let $acc171113311165 = sum($acc161113311165, $list1113311165[16]) | |
470 | + | if (($size1113311165 == 17)) | |
471 | + | then $acc171113311165 | |
472 | + | else { | |
473 | + | let $acc181113311165 = sum($acc171113311165, $list1113311165[17]) | |
474 | + | if (($size1113311165 == 18)) | |
475 | + | then $acc181113311165 | |
476 | + | else { | |
477 | + | let $acc191113311165 = sum($acc181113311165, $list1113311165[18]) | |
478 | + | if (($size1113311165 == 19)) | |
479 | + | then $acc191113311165 | |
480 | + | else { | |
481 | + | let $acc201113311165 = sum($acc191113311165, $list1113311165[19]) | |
482 | + | if (($size1113311165 == 20)) | |
483 | + | then $acc201113311165 | |
484 | + | else { | |
485 | + | let $acc211113311165 = sum($acc201113311165, $list1113311165[20]) | |
486 | + | throw("List size exceed 20") | |
487 | + | } | |
488 | + | } | |
489 | + | } | |
490 | + | } | |
491 | + | } | |
492 | + | } | |
493 | + | } | |
494 | + | } | |
495 | + | } | |
496 | + | } | |
497 | + | } | |
498 | + | } | |
499 | + | } | |
500 | + | } | |
501 | + | } | |
502 | + | } | |
503 | + | } | |
504 | + | } | |
505 | + | } | |
506 | + | } | |
507 | + | } | |
508 | + | } | |
509 | + | if ((height > rewardUpdateHeight)) | |
510 | + | then throw("rewardUpdateHeight < heightthen") | |
511 | + | else if (if ((sumRewardPrevious != totalVoteShare)) | |
512 | + | then true | |
513 | + | else (sumRewardCurrent != totalVoteShare)) | |
514 | + | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
515 | + | else { | |
516 | + | let previousRewardEntryNew = { | |
517 | + | let $list1148111529 = previousPools | |
518 | + | let $size1148111529 = size($list1148111529) | |
519 | + | let $acc01148111529 = nil | |
520 | + | if (($size1148111529 == 0)) | |
521 | + | then $acc01148111529 | |
297 | 522 | else { | |
298 | - | let $ | |
299 | - | if (($ | |
300 | - | then $ | |
523 | + | let $acc11148111529 = PreviousRewardEntry($acc01148111529, $list1148111529[0]) | |
524 | + | if (($size1148111529 == 1)) | |
525 | + | then $acc11148111529 | |
301 | 526 | else { | |
302 | - | let $ | |
303 | - | if (($ | |
304 | - | then $ | |
527 | + | let $acc21148111529 = PreviousRewardEntry($acc11148111529, $list1148111529[1]) | |
528 | + | if (($size1148111529 == 2)) | |
529 | + | then $acc21148111529 | |
305 | 530 | else { | |
306 | - | let $ | |
307 | - | if (($ | |
308 | - | then $ | |
531 | + | let $acc31148111529 = PreviousRewardEntry($acc21148111529, $list1148111529[2]) | |
532 | + | if (($size1148111529 == 3)) | |
533 | + | then $acc31148111529 | |
309 | 534 | else { | |
310 | - | let $ | |
311 | - | if (($ | |
312 | - | then $ | |
535 | + | let $acc41148111529 = PreviousRewardEntry($acc31148111529, $list1148111529[3]) | |
536 | + | if (($size1148111529 == 4)) | |
537 | + | then $acc41148111529 | |
313 | 538 | else { | |
314 | - | let $ | |
315 | - | if (($ | |
316 | - | then $ | |
539 | + | let $acc51148111529 = PreviousRewardEntry($acc41148111529, $list1148111529[4]) | |
540 | + | if (($size1148111529 == 5)) | |
541 | + | then $acc51148111529 | |
317 | 542 | else { | |
318 | - | let $ | |
319 | - | if (($ | |
320 | - | then $ | |
543 | + | let $acc61148111529 = PreviousRewardEntry($acc51148111529, $list1148111529[5]) | |
544 | + | if (($size1148111529 == 6)) | |
545 | + | then $acc61148111529 | |
321 | 546 | else { | |
322 | - | let $ | |
323 | - | if (($ | |
324 | - | then $ | |
547 | + | let $acc71148111529 = PreviousRewardEntry($acc61148111529, $list1148111529[6]) | |
548 | + | if (($size1148111529 == 7)) | |
549 | + | then $acc71148111529 | |
325 | 550 | else { | |
326 | - | let $ | |
327 | - | if (($ | |
328 | - | then $ | |
551 | + | let $acc81148111529 = PreviousRewardEntry($acc71148111529, $list1148111529[7]) | |
552 | + | if (($size1148111529 == 8)) | |
553 | + | then $acc81148111529 | |
329 | 554 | else { | |
330 | - | let $ | |
331 | - | if (($ | |
332 | - | then $ | |
555 | + | let $acc91148111529 = PreviousRewardEntry($acc81148111529, $list1148111529[8]) | |
556 | + | if (($size1148111529 == 9)) | |
557 | + | then $acc91148111529 | |
333 | 558 | else { | |
334 | - | let $ | |
335 | - | if (($ | |
336 | - | then $ | |
559 | + | let $acc101148111529 = PreviousRewardEntry($acc91148111529, $list1148111529[9]) | |
560 | + | if (($size1148111529 == 10)) | |
561 | + | then $acc101148111529 | |
337 | 562 | else { | |
338 | - | let $ | |
339 | - | if (($ | |
340 | - | then $ | |
563 | + | let $acc111148111529 = PreviousRewardEntry($acc101148111529, $list1148111529[10]) | |
564 | + | if (($size1148111529 == 11)) | |
565 | + | then $acc111148111529 | |
341 | 566 | else { | |
342 | - | let $ | |
343 | - | if (($ | |
344 | - | then $ | |
567 | + | let $acc121148111529 = PreviousRewardEntry($acc111148111529, $list1148111529[11]) | |
568 | + | if (($size1148111529 == 12)) | |
569 | + | then $acc121148111529 | |
345 | 570 | else { | |
346 | - | let $ | |
347 | - | if (($ | |
348 | - | then $ | |
571 | + | let $acc131148111529 = PreviousRewardEntry($acc121148111529, $list1148111529[12]) | |
572 | + | if (($size1148111529 == 13)) | |
573 | + | then $acc131148111529 | |
349 | 574 | else { | |
350 | - | let $ | |
351 | - | if (($ | |
352 | - | then $ | |
575 | + | let $acc141148111529 = PreviousRewardEntry($acc131148111529, $list1148111529[13]) | |
576 | + | if (($size1148111529 == 14)) | |
577 | + | then $acc141148111529 | |
353 | 578 | else { | |
354 | - | let $ | |
355 | - | if (($ | |
356 | - | then $ | |
579 | + | let $acc151148111529 = PreviousRewardEntry($acc141148111529, $list1148111529[14]) | |
580 | + | if (($size1148111529 == 15)) | |
581 | + | then $acc151148111529 | |
357 | 582 | else { | |
358 | - | let $ | |
359 | - | if (($ | |
360 | - | then $ | |
583 | + | let $acc161148111529 = PreviousRewardEntry($acc151148111529, $list1148111529[15]) | |
584 | + | if (($size1148111529 == 16)) | |
585 | + | then $acc161148111529 | |
361 | 586 | else { | |
362 | - | let $ | |
363 | - | if (($ | |
364 | - | then $ | |
587 | + | let $acc171148111529 = PreviousRewardEntry($acc161148111529, $list1148111529[16]) | |
588 | + | if (($size1148111529 == 17)) | |
589 | + | then $acc171148111529 | |
365 | 590 | else { | |
366 | - | let $ | |
367 | - | if (($ | |
368 | - | then $ | |
591 | + | let $acc181148111529 = PreviousRewardEntry($acc171148111529, $list1148111529[17]) | |
592 | + | if (($size1148111529 == 18)) | |
593 | + | then $acc181148111529 | |
369 | 594 | else { | |
370 | - | let $ | |
371 | - | if (($ | |
372 | - | then $ | |
595 | + | let $acc191148111529 = PreviousRewardEntry($acc181148111529, $list1148111529[18]) | |
596 | + | if (($size1148111529 == 19)) | |
597 | + | then $acc191148111529 | |
373 | 598 | else { | |
374 | - | let $acc211088110914 = sum($acc201088110914, $list1088110914[20]) | |
375 | - | throw("List size exceed 20") | |
599 | + | let $acc201148111529 = PreviousRewardEntry($acc191148111529, $list1148111529[19]) | |
600 | + | if (($size1148111529 == 20)) | |
601 | + | then $acc201148111529 | |
602 | + | else { | |
603 | + | let $acc211148111529 = PreviousRewardEntry($acc201148111529, $list1148111529[20]) | |
604 | + | throw("List size exceed 20") | |
605 | + | } | |
376 | 606 | } | |
377 | 607 | } | |
378 | 608 | } | |
379 | 609 | } | |
380 | 610 | } | |
381 | 611 | } | |
382 | 612 | } | |
383 | 613 | } | |
384 | 614 | } | |
385 | 615 | } | |
386 | 616 | } | |
387 | 617 | } | |
388 | 618 | } | |
389 | 619 | } | |
390 | 620 | } | |
391 | 621 | } | |
392 | 622 | } | |
393 | 623 | } | |
394 | 624 | } | |
395 | 625 | } | |
396 | 626 | } | |
397 | - | } | |
398 | - | let sumRewardCurrent = { | |
399 | - | let $list1094310975 = currentRewards | |
400 | - | let $size1094310975 = size($list1094310975) | |
401 | - | let $acc01094310975 = 0 | |
402 | - | if (($size1094310975 == 0)) | |
403 | - | then $acc01094310975 | |
404 | - | else { | |
405 | - | let $acc11094310975 = sum($acc01094310975, $list1094310975[0]) | |
406 | - | if (($size1094310975 == 1)) | |
407 | - | then $acc11094310975 | |
627 | + | let currentRewardEntryNew = { | |
628 | + | let $list1156211608 = currentPools | |
629 | + | let $size1156211608 = size($list1156211608) | |
630 | + | let $acc01156211608 = nil | |
631 | + | if (($size1156211608 == 0)) | |
632 | + | then $acc01156211608 | |
408 | 633 | else { | |
409 | - | let $ | |
410 | - | if (($ | |
411 | - | then $ | |
634 | + | let $acc11156211608 = CurrentRewardEntry($acc01156211608, $list1156211608[0]) | |
635 | + | if (($size1156211608 == 1)) | |
636 | + | then $acc11156211608 | |
412 | 637 | else { | |
413 | - | let $ | |
414 | - | if (($ | |
415 | - | then $ | |
638 | + | let $acc21156211608 = CurrentRewardEntry($acc11156211608, $list1156211608[1]) | |
639 | + | if (($size1156211608 == 2)) | |
640 | + | then $acc21156211608 | |
416 | 641 | else { | |
417 | - | let $ | |
418 | - | if (($ | |
419 | - | then $ | |
642 | + | let $acc31156211608 = CurrentRewardEntry($acc21156211608, $list1156211608[2]) | |
643 | + | if (($size1156211608 == 3)) | |
644 | + | then $acc31156211608 | |
420 | 645 | else { | |
421 | - | let $ | |
422 | - | if (($ | |
423 | - | then $ | |
646 | + | let $acc41156211608 = CurrentRewardEntry($acc31156211608, $list1156211608[3]) | |
647 | + | if (($size1156211608 == 4)) | |
648 | + | then $acc41156211608 | |
424 | 649 | else { | |
425 | - | let $ | |
426 | - | if (($ | |
427 | - | then $ | |
650 | + | let $acc51156211608 = CurrentRewardEntry($acc41156211608, $list1156211608[4]) | |
651 | + | if (($size1156211608 == 5)) | |
652 | + | then $acc51156211608 | |
428 | 653 | else { | |
429 | - | let $ | |
430 | - | if (($ | |
431 | - | then $ | |
654 | + | let $acc61156211608 = CurrentRewardEntry($acc51156211608, $list1156211608[5]) | |
655 | + | if (($size1156211608 == 6)) | |
656 | + | then $acc61156211608 | |
432 | 657 | else { | |
433 | - | let $ | |
434 | - | if (($ | |
435 | - | then $ | |
658 | + | let $acc71156211608 = CurrentRewardEntry($acc61156211608, $list1156211608[6]) | |
659 | + | if (($size1156211608 == 7)) | |
660 | + | then $acc71156211608 | |
436 | 661 | else { | |
437 | - | let $ | |
438 | - | if (($ | |
439 | - | then $ | |
662 | + | let $acc81156211608 = CurrentRewardEntry($acc71156211608, $list1156211608[7]) | |
663 | + | if (($size1156211608 == 8)) | |
664 | + | then $acc81156211608 | |
440 | 665 | else { | |
441 | - | let $ | |
442 | - | if (($ | |
443 | - | then $ | |
666 | + | let $acc91156211608 = CurrentRewardEntry($acc81156211608, $list1156211608[8]) | |
667 | + | if (($size1156211608 == 9)) | |
668 | + | then $acc91156211608 | |
444 | 669 | else { | |
445 | - | let $ | |
446 | - | if (($ | |
447 | - | then $ | |
670 | + | let $acc101156211608 = CurrentRewardEntry($acc91156211608, $list1156211608[9]) | |
671 | + | if (($size1156211608 == 10)) | |
672 | + | then $acc101156211608 | |
448 | 673 | else { | |
449 | - | let $ | |
450 | - | if (($ | |
451 | - | then $ | |
674 | + | let $acc111156211608 = CurrentRewardEntry($acc101156211608, $list1156211608[10]) | |
675 | + | if (($size1156211608 == 11)) | |
676 | + | then $acc111156211608 | |
452 | 677 | else { | |
453 | - | let $ | |
454 | - | if (($ | |
455 | - | then $ | |
678 | + | let $acc121156211608 = CurrentRewardEntry($acc111156211608, $list1156211608[11]) | |
679 | + | if (($size1156211608 == 12)) | |
680 | + | then $acc121156211608 | |
456 | 681 | else { | |
457 | - | let $ | |
458 | - | if (($ | |
459 | - | then $ | |
682 | + | let $acc131156211608 = CurrentRewardEntry($acc121156211608, $list1156211608[12]) | |
683 | + | if (($size1156211608 == 13)) | |
684 | + | then $acc131156211608 | |
460 | 685 | else { | |
461 | - | let $ | |
462 | - | if (($ | |
463 | - | then $ | |
686 | + | let $acc141156211608 = CurrentRewardEntry($acc131156211608, $list1156211608[13]) | |
687 | + | if (($size1156211608 == 14)) | |
688 | + | then $acc141156211608 | |
464 | 689 | else { | |
465 | - | let $ | |
466 | - | if (($ | |
467 | - | then $ | |
690 | + | let $acc151156211608 = CurrentRewardEntry($acc141156211608, $list1156211608[14]) | |
691 | + | if (($size1156211608 == 15)) | |
692 | + | then $acc151156211608 | |
468 | 693 | else { | |
469 | - | let $ | |
470 | - | if (($ | |
471 | - | then $ | |
694 | + | let $acc161156211608 = CurrentRewardEntry($acc151156211608, $list1156211608[15]) | |
695 | + | if (($size1156211608 == 16)) | |
696 | + | then $acc161156211608 | |
472 | 697 | else { | |
473 | - | let $ | |
474 | - | if (($ | |
475 | - | then $ | |
698 | + | let $acc171156211608 = CurrentRewardEntry($acc161156211608, $list1156211608[16]) | |
699 | + | if (($size1156211608 == 17)) | |
700 | + | then $acc171156211608 | |
476 | 701 | else { | |
477 | - | let $ | |
478 | - | if (($ | |
479 | - | then $ | |
702 | + | let $acc181156211608 = CurrentRewardEntry($acc171156211608, $list1156211608[17]) | |
703 | + | if (($size1156211608 == 18)) | |
704 | + | then $acc181156211608 | |
480 | 705 | else { | |
481 | - | let $ | |
482 | - | if (($ | |
483 | - | then $ | |
706 | + | let $acc191156211608 = CurrentRewardEntry($acc181156211608, $list1156211608[18]) | |
707 | + | if (($size1156211608 == 19)) | |
708 | + | then $acc191156211608 | |
484 | 709 | else { | |
485 | - | let $acc211094310975 = sum($acc201094310975, $list1094310975[20]) | |
486 | - | throw("List size exceed 20") | |
710 | + | let $acc201156211608 = CurrentRewardEntry($acc191156211608, $list1156211608[19]) | |
711 | + | if (($size1156211608 == 20)) | |
712 | + | then $acc201156211608 | |
713 | + | else { | |
714 | + | let $acc211156211608 = CurrentRewardEntry($acc201156211608, $list1156211608[20]) | |
715 | + | throw("List size exceed 20") | |
716 | + | } | |
487 | 717 | } | |
488 | 718 | } | |
489 | 719 | } | |
490 | 720 | } | |
491 | 721 | } | |
492 | 722 | } | |
493 | 723 | } | |
494 | 724 | } | |
495 | 725 | } | |
496 | 726 | } | |
497 | 727 | } | |
498 | 728 | } | |
499 | 729 | } | |
500 | 730 | } | |
501 | 731 | } | |
502 | 732 | } | |
503 | 733 | } | |
504 | 734 | } | |
505 | 735 | } | |
506 | 736 | } | |
507 | 737 | } | |
508 | - | } | |
509 | - | if ((height > rewardUpdateHeight)) | |
510 | - | then throw("rewardUpdateHeight < height") | |
511 | - | else if (if ((sumRewardPrevious != totalVoteShare)) | |
512 | - | then true | |
513 | - | else (sumRewardCurrent != totalVoteShare)) | |
514 | - | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
515 | - | else { | |
516 | - | let previousRewardEntryNew = { | |
517 | - | let $list1128411332 = previousPools | |
518 | - | let $size1128411332 = size($list1128411332) | |
519 | - | let $acc01128411332 = nil | |
520 | - | if (($size1128411332 == 0)) | |
521 | - | then $acc01128411332 | |
522 | - | else { | |
523 | - | let $acc11128411332 = PreviousRewardEntry($acc01128411332, $list1128411332[0]) | |
524 | - | if (($size1128411332 == 1)) | |
525 | - | then $acc11128411332 | |
526 | - | else { | |
527 | - | let $acc21128411332 = PreviousRewardEntry($acc11128411332, $list1128411332[1]) | |
528 | - | if (($size1128411332 == 2)) | |
529 | - | then $acc21128411332 | |
530 | - | else { | |
531 | - | let $acc31128411332 = PreviousRewardEntry($acc21128411332, $list1128411332[2]) | |
532 | - | if (($size1128411332 == 3)) | |
533 | - | then $acc31128411332 | |
534 | - | else { | |
535 | - | let $acc41128411332 = PreviousRewardEntry($acc31128411332, $list1128411332[3]) | |
536 | - | if (($size1128411332 == 4)) | |
537 | - | then $acc41128411332 | |
538 | - | else { | |
539 | - | let $acc51128411332 = PreviousRewardEntry($acc41128411332, $list1128411332[4]) | |
540 | - | if (($size1128411332 == 5)) | |
541 | - | then $acc51128411332 | |
542 | - | else { | |
543 | - | let $acc61128411332 = PreviousRewardEntry($acc51128411332, $list1128411332[5]) | |
544 | - | if (($size1128411332 == 6)) | |
545 | - | then $acc61128411332 | |
546 | - | else { | |
547 | - | let $acc71128411332 = PreviousRewardEntry($acc61128411332, $list1128411332[6]) | |
548 | - | if (($size1128411332 == 7)) | |
549 | - | then $acc71128411332 | |
550 | - | else { | |
551 | - | let $acc81128411332 = PreviousRewardEntry($acc71128411332, $list1128411332[7]) | |
552 | - | if (($size1128411332 == 8)) | |
553 | - | then $acc81128411332 | |
554 | - | else { | |
555 | - | let $acc91128411332 = PreviousRewardEntry($acc81128411332, $list1128411332[8]) | |
556 | - | if (($size1128411332 == 9)) | |
557 | - | then $acc91128411332 | |
558 | - | else { | |
559 | - | let $acc101128411332 = PreviousRewardEntry($acc91128411332, $list1128411332[9]) | |
560 | - | if (($size1128411332 == 10)) | |
561 | - | then $acc101128411332 | |
562 | - | else { | |
563 | - | let $acc111128411332 = PreviousRewardEntry($acc101128411332, $list1128411332[10]) | |
564 | - | if (($size1128411332 == 11)) | |
565 | - | then $acc111128411332 | |
566 | - | else { | |
567 | - | let $acc121128411332 = PreviousRewardEntry($acc111128411332, $list1128411332[11]) | |
568 | - | if (($size1128411332 == 12)) | |
569 | - | then $acc121128411332 | |
570 | - | else { | |
571 | - | let $acc131128411332 = PreviousRewardEntry($acc121128411332, $list1128411332[12]) | |
572 | - | if (($size1128411332 == 13)) | |
573 | - | then $acc131128411332 | |
574 | - | else { | |
575 | - | let $acc141128411332 = PreviousRewardEntry($acc131128411332, $list1128411332[13]) | |
576 | - | if (($size1128411332 == 14)) | |
577 | - | then $acc141128411332 | |
578 | - | else { | |
579 | - | let $acc151128411332 = PreviousRewardEntry($acc141128411332, $list1128411332[14]) | |
580 | - | if (($size1128411332 == 15)) | |
581 | - | then $acc151128411332 | |
582 | - | else { | |
583 | - | let $acc161128411332 = PreviousRewardEntry($acc151128411332, $list1128411332[15]) | |
584 | - | if (($size1128411332 == 16)) | |
585 | - | then $acc161128411332 | |
586 | - | else { | |
587 | - | let $acc171128411332 = PreviousRewardEntry($acc161128411332, $list1128411332[16]) | |
588 | - | if (($size1128411332 == 17)) | |
589 | - | then $acc171128411332 | |
590 | - | else { | |
591 | - | let $acc181128411332 = PreviousRewardEntry($acc171128411332, $list1128411332[17]) | |
592 | - | if (($size1128411332 == 18)) | |
593 | - | then $acc181128411332 | |
594 | - | else { | |
595 | - | let $acc191128411332 = PreviousRewardEntry($acc181128411332, $list1128411332[18]) | |
596 | - | if (($size1128411332 == 19)) | |
597 | - | then $acc191128411332 | |
598 | - | else { | |
599 | - | let $acc201128411332 = PreviousRewardEntry($acc191128411332, $list1128411332[19]) | |
600 | - | if (($size1128411332 == 20)) | |
601 | - | then $acc201128411332 | |
602 | - | else { | |
603 | - | let $acc211128411332 = PreviousRewardEntry($acc201128411332, $list1128411332[20]) | |
604 | - | throw("List size exceed 20") | |
605 | - | } | |
606 | - | } | |
607 | - | } | |
608 | - | } | |
609 | - | } | |
610 | - | } | |
611 | - | } | |
612 | - | } | |
613 | - | } | |
614 | - | } | |
615 | - | } | |
616 | - | } | |
617 | - | } | |
618 | - | } | |
619 | - | } | |
620 | - | } | |
621 | - | } | |
622 | - | } | |
623 | - | } | |
624 | - | } | |
625 | - | } | |
626 | - | } | |
627 | - | let currentRewardEntryNew = { | |
628 | - | let $list1136511411 = currentPools | |
629 | - | let $size1136511411 = size($list1136511411) | |
630 | - | let $acc01136511411 = nil | |
631 | - | if (($size1136511411 == 0)) | |
632 | - | then $acc01136511411 | |
633 | - | else { | |
634 | - | let $acc11136511411 = CurrentRewardEntry($acc01136511411, $list1136511411[0]) | |
635 | - | if (($size1136511411 == 1)) | |
636 | - | then $acc11136511411 | |
637 | - | else { | |
638 | - | let $acc21136511411 = CurrentRewardEntry($acc11136511411, $list1136511411[1]) | |
639 | - | if (($size1136511411 == 2)) | |
640 | - | then $acc21136511411 | |
641 | - | else { | |
642 | - | let $acc31136511411 = CurrentRewardEntry($acc21136511411, $list1136511411[2]) | |
643 | - | if (($size1136511411 == 3)) | |
644 | - | then $acc31136511411 | |
645 | - | else { | |
646 | - | let $acc41136511411 = CurrentRewardEntry($acc31136511411, $list1136511411[3]) | |
647 | - | if (($size1136511411 == 4)) | |
648 | - | then $acc41136511411 | |
649 | - | else { | |
650 | - | let $acc51136511411 = CurrentRewardEntry($acc41136511411, $list1136511411[4]) | |
651 | - | if (($size1136511411 == 5)) | |
652 | - | then $acc51136511411 | |
653 | - | else { | |
654 | - | let $acc61136511411 = CurrentRewardEntry($acc51136511411, $list1136511411[5]) | |
655 | - | if (($size1136511411 == 6)) | |
656 | - | then $acc61136511411 | |
657 | - | else { | |
658 | - | let $acc71136511411 = CurrentRewardEntry($acc61136511411, $list1136511411[6]) | |
659 | - | if (($size1136511411 == 7)) | |
660 | - | then $acc71136511411 | |
661 | - | else { | |
662 | - | let $acc81136511411 = CurrentRewardEntry($acc71136511411, $list1136511411[7]) | |
663 | - | if (($size1136511411 == 8)) | |
664 | - | then $acc81136511411 | |
665 | - | else { | |
666 | - | let $acc91136511411 = CurrentRewardEntry($acc81136511411, $list1136511411[8]) | |
667 | - | if (($size1136511411 == 9)) | |
668 | - | then $acc91136511411 | |
669 | - | else { | |
670 | - | let $acc101136511411 = CurrentRewardEntry($acc91136511411, $list1136511411[9]) | |
671 | - | if (($size1136511411 == 10)) | |
672 | - | then $acc101136511411 | |
673 | - | else { | |
674 | - | let $acc111136511411 = CurrentRewardEntry($acc101136511411, $list1136511411[10]) | |
675 | - | if (($size1136511411 == 11)) | |
676 | - | then $acc111136511411 | |
677 | - | else { | |
678 | - | let $acc121136511411 = CurrentRewardEntry($acc111136511411, $list1136511411[11]) | |
679 | - | if (($size1136511411 == 12)) | |
680 | - | then $acc121136511411 | |
681 | - | else { | |
682 | - | let $acc131136511411 = CurrentRewardEntry($acc121136511411, $list1136511411[12]) | |
683 | - | if (($size1136511411 == 13)) | |
684 | - | then $acc131136511411 | |
685 | - | else { | |
686 | - | let $acc141136511411 = CurrentRewardEntry($acc131136511411, $list1136511411[13]) | |
687 | - | if (($size1136511411 == 14)) | |
688 | - | then $acc141136511411 | |
689 | - | else { | |
690 | - | let $acc151136511411 = CurrentRewardEntry($acc141136511411, $list1136511411[14]) | |
691 | - | if (($size1136511411 == 15)) | |
692 | - | then $acc151136511411 | |
693 | - | else { | |
694 | - | let $acc161136511411 = CurrentRewardEntry($acc151136511411, $list1136511411[15]) | |
695 | - | if (($size1136511411 == 16)) | |
696 | - | then $acc161136511411 | |
697 | - | else { | |
698 | - | let $acc171136511411 = CurrentRewardEntry($acc161136511411, $list1136511411[16]) | |
699 | - | if (($size1136511411 == 17)) | |
700 | - | then $acc171136511411 | |
701 | - | else { | |
702 | - | let $acc181136511411 = CurrentRewardEntry($acc171136511411, $list1136511411[17]) | |
703 | - | if (($size1136511411 == 18)) | |
704 | - | then $acc181136511411 | |
705 | - | else { | |
706 | - | let $acc191136511411 = CurrentRewardEntry($acc181136511411, $list1136511411[18]) | |
707 | - | if (($size1136511411 == 19)) | |
708 | - | then $acc191136511411 | |
709 | - | else { | |
710 | - | let $acc201136511411 = CurrentRewardEntry($acc191136511411, $list1136511411[19]) | |
711 | - | if (($size1136511411 == 20)) | |
712 | - | then $acc201136511411 | |
713 | - | else { | |
714 | - | let $acc211136511411 = CurrentRewardEntry($acc201136511411, $list1136511411[20]) | |
715 | - | throw("List size exceed 20") | |
716 | - | } | |
717 | - | } | |
718 | - | } | |
719 | - | } | |
720 | - | } | |
721 | - | } | |
722 | - | } | |
723 | - | } | |
724 | - | } | |
725 | - | } | |
726 | - | } | |
727 | - | } | |
728 | - | } | |
729 | - | } | |
730 | - | } | |
731 | - | } | |
732 | - | } | |
733 | - | } | |
734 | - | } | |
735 | - | } | |
736 | - | } | |
737 | - | } | |
738 | - | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
739 | - | } | |
740 | - | } | |
738 | + | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
739 | + | } | |
740 | + | } | |
741 | 741 | ||
742 | 742 | ||
743 | 743 | ||
744 | 744 | @Callable(i) | |
745 | 745 | func shutdown () = if (!(isActive)) | |
746 | 746 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
747 | 747 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
748 | 748 | then throw("Only admin can call this function") | |
749 | 749 | else suspend("Paused by admin") | |
750 | 750 | ||
751 | 751 | ||
752 | 752 | ||
753 | 753 | @Callable(i) | |
754 | 754 | func activate () = if (isActive) | |
755 | 755 | then throw("DApp is already active") | |
756 | 756 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
757 | 757 | then throw("Only admin can call this function") | |
758 | 758 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
759 | 759 | ||
760 | 760 |
github/deemru/w8io/026f985 450.32 ms ◑