tx · D9A6jDPoWv1ET9KH4h4UbMkHtBXZMjj6RV2nVto136MG 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS: -0.01400000 Waves 2021.04.19 12:08 [1489146] smart account 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS > SELF 0.00000000 Waves
{ "type": 13, "id": "D9A6jDPoWv1ET9KH4h4UbMkHtBXZMjj6RV2nVto136MG", "fee": 1400000, "feeAssetId": null, "timestamp": 1618823292755, "version": 2, "chainId": 84, "sender": "3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS", "senderPublicKey": "93SZf1TATCRxGyBuGyngpQGKcpKZirb2yXLT2RQJ3UKb", "proofs": [ "2q7PwbNqaKqLEmV82AFU4MDB1JGGZkfFN5ktNqxeR98bS3LoYHtHx7YYwZN85Y1M55QNMGVjNb3chmb2X3W2FgrJ" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAAOQAAAAAMYWRtaW5QdWJLZXkxAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkyAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkzAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABFhZG1pblB1YktleVdhbGxldAEAAAAgPndaZVpWyfwpVzO1vA1FLcrMp/iFkg43d1jzYhVSFBIAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAD2tleUxhc3RJbnRlcmVzdAIAAAANbGFzdF9pbnRlcmVzdAAAAAATa2V5VXNlckxhc3RJbnRlcmVzdA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1c2VkIGJ5IGFkbWluAAAAAWkBAAAACGFjdGl2YXRlAAAAAAMFAAAACGlzQWN0aXZlCQAAAgAAAAECAAAAFkRBcHAgaXMgYWxyZWFkeSBhY3RpdmUDCQEAAAABIQAAAAEJAQAAAA9jb250YWluc0VsZW1lbnQAAAACCQAETAAAAAIFAAAADGFkbWluUHViS2V5MQkABEwAAAACBQAAAAxhZG1pblB1YktleTIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkzCQAETAAAAAIFAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wBQAAAANuaWwIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAACFPbmx5IGFkbWluIGNhbiBjYWxsIHRoaXMgZnVuY3Rpb24JAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACWtleUFjdGl2ZQYJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIa2V5Q2F1c2UFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5yaLfeQ==", "height": 1489146, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HvtL9RpSZ4wQqurUbE3HqaEHmyL4jMk9ao6cyhSV1Jok Next: 6i3fW7Tn2X4RDKyanEGobtax7HSLGRdKMLZq54zpE8Wx Diff:
Old | New | Differences | |
---|---|---|---|
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getUserUnvoteAmount (user) = { | |
121 | - | let $ | |
121 | + | let $t037804319 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
122 | 122 | then { | |
123 | - | let data = split(valueOrErrorMessage(getString( | |
123 | + | let data = split(valueOrErrorMessage(getString(votingLiteContract, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
124 | 124 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
125 | 125 | } | |
126 | 126 | else { | |
127 | - | let uPoolTotalSWOP = valueOrElse(getInteger( | |
127 | + | let uPoolTotalSWOP = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0) | |
128 | 128 | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
129 | 129 | } | |
130 | - | let userTotalVoteSWOP = $ | |
131 | - | let userUnvoted = $ | |
132 | - | let userUnvotedPeriod = $ | |
130 | + | let userTotalVoteSWOP = $t037804319._1 | |
131 | + | let userUnvoted = $t037804319._2 | |
132 | + | let userUnvotedPeriod = $t037804319._3 | |
133 | 133 | if ((userUnvotedPeriod == currVotingPeriod)) | |
134 | 134 | then userUnvoted | |
135 | 135 | else 0 | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | + | func getUserTotalVoteAmount (user) = { | |
177 | + | let $t057056216 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
178 | + | then { | |
179 | + | let data = split(valueOrErrorMessage(getString(this, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
180 | + | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
181 | + | } | |
182 | + | else { | |
183 | + | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(user) + kUserTotalVoteSWOP)), 0) | |
184 | + | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
185 | + | } | |
186 | + | let userTotalVoteSWOP = $t057056216._1 | |
187 | + | let userUnvoted = $t057056216._2 | |
188 | + | let userUnvotedPeriod = $t057056216._3 | |
189 | + | userTotalVoteSWOP | |
190 | + | } | |
191 | + | ||
192 | + | ||
176 | 193 | func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = { | |
177 | 194 | let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight)) | |
178 | 195 | valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key)) | |
181 | 198 | ||
182 | 199 | func claimCalc (caller) = { | |
183 | 200 | let lastInterest = getLastInterestInfo() | |
184 | - | let $ | |
185 | - | let userLastInterest = $ | |
186 | - | let userSWOPLocked = $ | |
201 | + | let $t066516731 = getUserInterestInfo(caller, lastInterest) | |
202 | + | let userLastInterest = $t066516731._1 | |
203 | + | let userSWOPLocked = $t066516731._2 | |
187 | 204 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
188 | 205 | let userNewInterest = lastInterest | |
189 | 206 | $Tuple2(userNewInterest, claimAmount) | |
194 | 211 | func airDrop () = if (!(isActive)) | |
195 | 212 | then throw("DApp is inactive at this moment") | |
196 | 213 | else { | |
197 | - | let $ | |
198 | - | let pmtAmount = $ | |
199 | - | let pmtAssetId = $ | |
214 | + | let $t069967071 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
215 | + | let pmtAmount = $t069967071._1 | |
216 | + | let pmtAssetId = $t069967071._2 | |
200 | 217 | if ((pmtAssetId != SWOP)) | |
201 | 218 | then throw("Incorrect pmtAssetId") | |
202 | 219 | else { | |
213 | 230 | func lockSWOP () = if (!(isActive)) | |
214 | 231 | then throw("DApp is inactive at this moment") | |
215 | 232 | else { | |
216 | - | let $ | |
217 | - | let pmtAmount = $ | |
218 | - | let pmtAssetId = $ | |
233 | + | let $t075097584 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
234 | + | let pmtAmount = $t075097584._1 | |
235 | + | let pmtAssetId = $t075097584._2 | |
219 | 236 | if ((pmtAssetId != SWOP)) | |
220 | 237 | then throw("Incorrect pmtAssetId") | |
221 | 238 | else { | |
222 | 239 | let lastInterest = getLastInterestInfo() | |
223 | - | let $ | |
224 | - | let userLastInterest = $ | |
225 | - | let userSWOPLocked = $ | |
240 | + | let $t077007782 = getUserInterestInfo(i.caller, lastInterest) | |
241 | + | let userLastInterest = $t077007782._1 | |
242 | + | let userSWOPLocked = $t077007782._2 | |
226 | 243 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
227 | 244 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
228 | 245 | let userNewInterest = lastInterest | |
242 | 259 | else { | |
243 | 260 | let totalSWOPLocked = getTotalSWOPLocked() | |
244 | 261 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
245 | - | let $t082438298 = claimCalc(i.caller) | |
246 | - | let userNewInterest = $t082438298._1 | |
247 | - | let claimAmount = $t082438298._2 | |
262 | + | let $t088668921 = claimCalc(i.caller) | |
263 | + | let userNewInterest = $t088668921._1 | |
264 | + | let claimAmount = $t088668921._2 | |
265 | + | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
248 | 266 | let userUnvoteAmount = getUserUnvoteAmount(i.caller) | |
249 | - | let availableFund = (userSWOPLocked - userUnvoteAmount) | |
250 | - | if ((withdrawAmount > availableFund)) | |
251 | - | then throw("withdrawAmount > availableFund") | |
267 | + | if (if ((0 > userUnvoteAmount)) | |
268 | + | then true | |
269 | + | else (0 > userVoteAmount)) | |
270 | + | then throw("userUnvoteAmount < 0 || userVoteAmount < 0") | |
252 | 271 | else { | |
253 | - | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
254 | - | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
255 | - | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
256 | - | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
272 | + | let availableToUnstake = ((userSWOPLocked - userVoteAmount) - userUnvoteAmount) | |
273 | + | if ((withdrawAmount > availableToUnstake)) | |
274 | + | then throw("withdrawAmount > availableToUnstake") | |
275 | + | else { | |
276 | + | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
277 | + | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
278 | + | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
279 | + | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
257 | 280 | [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)] | |
281 | + | } | |
258 | 282 | } | |
259 | 283 | } | |
260 | 284 | ||
265 | 289 | then throw("DApp is inactive at this moment") | |
266 | 290 | else { | |
267 | 291 | let lastInterest = getLastInterestInfo() | |
268 | - | let $ | |
269 | - | let userNewInterest = $ | |
270 | - | let claimAmount = $ | |
292 | + | let $t01023710292 = claimCalc(i.caller) | |
293 | + | let userNewInterest = $t01023710292._1 | |
294 | + | let claimAmount = $t01023710292._2 | |
271 | 295 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
272 | 296 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
273 | 297 | if ((claimAmount == 0)) | |
284 | 308 | let totalSWOPLocked = getTotalSWOPLocked() | |
285 | 309 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
286 | 310 | let lastInterest = getLastInterestInfo() | |
287 | - | let $ | |
288 | - | let userNewInterest = $ | |
289 | - | let claimAmount = $ | |
311 | + | let $t01107111126 = claimCalc(i.caller) | |
312 | + | let userNewInterest = $t01107111126._1 | |
313 | + | let claimAmount = $t01107111126._2 | |
290 | 314 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
291 | 315 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
292 | 316 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
319 | 343 | } | |
320 | 344 | ||
321 | 345 | let sumRewardPrevious = { | |
322 | - | let $ | |
323 | - | let $ | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
346 | + | let $list1291212945 = previousRewards | |
347 | + | let $size1291212945 = size($list1291212945) | |
348 | + | let $acc01291212945 = 0 | |
349 | + | if (($size1291212945 == 0)) | |
350 | + | then $acc01291212945 | |
327 | 351 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
352 | + | let $acc11291212945 = sum($acc01291212945, $list1291212945[0]) | |
353 | + | if (($size1291212945 == 1)) | |
354 | + | then $acc11291212945 | |
331 | 355 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
356 | + | let $acc21291212945 = sum($acc11291212945, $list1291212945[1]) | |
357 | + | if (($size1291212945 == 2)) | |
358 | + | then $acc21291212945 | |
335 | 359 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
360 | + | let $acc31291212945 = sum($acc21291212945, $list1291212945[2]) | |
361 | + | if (($size1291212945 == 3)) | |
362 | + | then $acc31291212945 | |
339 | 363 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
364 | + | let $acc41291212945 = sum($acc31291212945, $list1291212945[3]) | |
365 | + | if (($size1291212945 == 4)) | |
366 | + | then $acc41291212945 | |
343 | 367 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
368 | + | let $acc51291212945 = sum($acc41291212945, $list1291212945[4]) | |
369 | + | if (($size1291212945 == 5)) | |
370 | + | then $acc51291212945 | |
347 | 371 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
372 | + | let $acc61291212945 = sum($acc51291212945, $list1291212945[5]) | |
373 | + | if (($size1291212945 == 6)) | |
374 | + | then $acc61291212945 | |
351 | 375 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
376 | + | let $acc71291212945 = sum($acc61291212945, $list1291212945[6]) | |
377 | + | if (($size1291212945 == 7)) | |
378 | + | then $acc71291212945 | |
355 | 379 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
380 | + | let $acc81291212945 = sum($acc71291212945, $list1291212945[7]) | |
381 | + | if (($size1291212945 == 8)) | |
382 | + | then $acc81291212945 | |
359 | 383 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
384 | + | let $acc91291212945 = sum($acc81291212945, $list1291212945[8]) | |
385 | + | if (($size1291212945 == 9)) | |
386 | + | then $acc91291212945 | |
363 | 387 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
388 | + | let $acc101291212945 = sum($acc91291212945, $list1291212945[9]) | |
389 | + | if (($size1291212945 == 10)) | |
390 | + | then $acc101291212945 | |
367 | 391 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
392 | + | let $acc111291212945 = sum($acc101291212945, $list1291212945[10]) | |
393 | + | if (($size1291212945 == 11)) | |
394 | + | then $acc111291212945 | |
371 | 395 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
396 | + | let $acc121291212945 = sum($acc111291212945, $list1291212945[11]) | |
397 | + | if (($size1291212945 == 12)) | |
398 | + | then $acc121291212945 | |
375 | 399 | else { | |
376 | - | let $ | |
377 | - | if (($ | |
378 | - | then $ | |
400 | + | let $acc131291212945 = sum($acc121291212945, $list1291212945[12]) | |
401 | + | if (($size1291212945 == 13)) | |
402 | + | then $acc131291212945 | |
379 | 403 | else { | |
380 | - | let $ | |
381 | - | if (($ | |
382 | - | then $ | |
404 | + | let $acc141291212945 = sum($acc131291212945, $list1291212945[13]) | |
405 | + | if (($size1291212945 == 14)) | |
406 | + | then $acc141291212945 | |
383 | 407 | else { | |
384 | - | let $ | |
385 | - | if (($ | |
386 | - | then $ | |
408 | + | let $acc151291212945 = sum($acc141291212945, $list1291212945[14]) | |
409 | + | if (($size1291212945 == 15)) | |
410 | + | then $acc151291212945 | |
387 | 411 | else { | |
388 | - | let $ | |
389 | - | if (($ | |
390 | - | then $ | |
412 | + | let $acc161291212945 = sum($acc151291212945, $list1291212945[15]) | |
413 | + | if (($size1291212945 == 16)) | |
414 | + | then $acc161291212945 | |
391 | 415 | else { | |
392 | - | let $ | |
393 | - | if (($ | |
394 | - | then $ | |
416 | + | let $acc171291212945 = sum($acc161291212945, $list1291212945[16]) | |
417 | + | if (($size1291212945 == 17)) | |
418 | + | then $acc171291212945 | |
395 | 419 | else { | |
396 | - | let $ | |
397 | - | if (($ | |
398 | - | then $ | |
420 | + | let $acc181291212945 = sum($acc171291212945, $list1291212945[17]) | |
421 | + | if (($size1291212945 == 18)) | |
422 | + | then $acc181291212945 | |
399 | 423 | else { | |
400 | - | let $ | |
401 | - | if (($ | |
402 | - | then $ | |
424 | + | let $acc191291212945 = sum($acc181291212945, $list1291212945[18]) | |
425 | + | if (($size1291212945 == 19)) | |
426 | + | then $acc191291212945 | |
403 | 427 | else { | |
404 | - | let $ | |
405 | - | if (($ | |
406 | - | then $ | |
428 | + | let $acc201291212945 = sum($acc191291212945, $list1291212945[19]) | |
429 | + | if (($size1291212945 == 20)) | |
430 | + | then $acc201291212945 | |
407 | 431 | else { | |
408 | - | let $ | |
432 | + | let $acc211291212945 = sum($acc201291212945, $list1291212945[20]) | |
409 | 433 | throw("List size exceed 20") | |
410 | 434 | } | |
411 | 435 | } | |
430 | 454 | } | |
431 | 455 | } | |
432 | 456 | let sumRewardCurrent = { | |
433 | - | let $ | |
434 | - | let $ | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
457 | + | let $list1297413006 = currentRewards | |
458 | + | let $size1297413006 = size($list1297413006) | |
459 | + | let $acc01297413006 = 0 | |
460 | + | if (($size1297413006 == 0)) | |
461 | + | then $acc01297413006 | |
438 | 462 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
463 | + | let $acc11297413006 = sum($acc01297413006, $list1297413006[0]) | |
464 | + | if (($size1297413006 == 1)) | |
465 | + | then $acc11297413006 | |
442 | 466 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
467 | + | let $acc21297413006 = sum($acc11297413006, $list1297413006[1]) | |
468 | + | if (($size1297413006 == 2)) | |
469 | + | then $acc21297413006 | |
446 | 470 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
471 | + | let $acc31297413006 = sum($acc21297413006, $list1297413006[2]) | |
472 | + | if (($size1297413006 == 3)) | |
473 | + | then $acc31297413006 | |
450 | 474 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
475 | + | let $acc41297413006 = sum($acc31297413006, $list1297413006[3]) | |
476 | + | if (($size1297413006 == 4)) | |
477 | + | then $acc41297413006 | |
454 | 478 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
479 | + | let $acc51297413006 = sum($acc41297413006, $list1297413006[4]) | |
480 | + | if (($size1297413006 == 5)) | |
481 | + | then $acc51297413006 | |
458 | 482 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
483 | + | let $acc61297413006 = sum($acc51297413006, $list1297413006[5]) | |
484 | + | if (($size1297413006 == 6)) | |
485 | + | then $acc61297413006 | |
462 | 486 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
487 | + | let $acc71297413006 = sum($acc61297413006, $list1297413006[6]) | |
488 | + | if (($size1297413006 == 7)) | |
489 | + | then $acc71297413006 | |
466 | 490 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
491 | + | let $acc81297413006 = sum($acc71297413006, $list1297413006[7]) | |
492 | + | if (($size1297413006 == 8)) | |
493 | + | then $acc81297413006 | |
470 | 494 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
495 | + | let $acc91297413006 = sum($acc81297413006, $list1297413006[8]) | |
496 | + | if (($size1297413006 == 9)) | |
497 | + | then $acc91297413006 | |
474 | 498 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
499 | + | let $acc101297413006 = sum($acc91297413006, $list1297413006[9]) | |
500 | + | if (($size1297413006 == 10)) | |
501 | + | then $acc101297413006 | |
478 | 502 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
503 | + | let $acc111297413006 = sum($acc101297413006, $list1297413006[10]) | |
504 | + | if (($size1297413006 == 11)) | |
505 | + | then $acc111297413006 | |
482 | 506 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
507 | + | let $acc121297413006 = sum($acc111297413006, $list1297413006[11]) | |
508 | + | if (($size1297413006 == 12)) | |
509 | + | then $acc121297413006 | |
486 | 510 | else { | |
487 | - | let $ | |
488 | - | if (($ | |
489 | - | then $ | |
511 | + | let $acc131297413006 = sum($acc121297413006, $list1297413006[12]) | |
512 | + | if (($size1297413006 == 13)) | |
513 | + | then $acc131297413006 | |
490 | 514 | else { | |
491 | - | let $ | |
492 | - | if (($ | |
493 | - | then $ | |
515 | + | let $acc141297413006 = sum($acc131297413006, $list1297413006[13]) | |
516 | + | if (($size1297413006 == 14)) | |
517 | + | then $acc141297413006 | |
494 | 518 | else { | |
495 | - | let $ | |
496 | - | if (($ | |
497 | - | then $ | |
519 | + | let $acc151297413006 = sum($acc141297413006, $list1297413006[14]) | |
520 | + | if (($size1297413006 == 15)) | |
521 | + | then $acc151297413006 | |
498 | 522 | else { | |
499 | - | let $ | |
500 | - | if (($ | |
501 | - | then $ | |
523 | + | let $acc161297413006 = sum($acc151297413006, $list1297413006[15]) | |
524 | + | if (($size1297413006 == 16)) | |
525 | + | then $acc161297413006 | |
502 | 526 | else { | |
503 | - | let $ | |
504 | - | if (($ | |
505 | - | then $ | |
527 | + | let $acc171297413006 = sum($acc161297413006, $list1297413006[16]) | |
528 | + | if (($size1297413006 == 17)) | |
529 | + | then $acc171297413006 | |
506 | 530 | else { | |
507 | - | let $ | |
508 | - | if (($ | |
509 | - | then $ | |
531 | + | let $acc181297413006 = sum($acc171297413006, $list1297413006[17]) | |
532 | + | if (($size1297413006 == 18)) | |
533 | + | then $acc181297413006 | |
510 | 534 | else { | |
511 | - | let $ | |
512 | - | if (($ | |
513 | - | then $ | |
535 | + | let $acc191297413006 = sum($acc181297413006, $list1297413006[18]) | |
536 | + | if (($size1297413006 == 19)) | |
537 | + | then $acc191297413006 | |
514 | 538 | else { | |
515 | - | let $ | |
516 | - | if (($ | |
517 | - | then $ | |
539 | + | let $acc201297413006 = sum($acc191297413006, $list1297413006[19]) | |
540 | + | if (($size1297413006 == 20)) | |
541 | + | then $acc201297413006 | |
518 | 542 | else { | |
519 | - | let $ | |
543 | + | let $acc211297413006 = sum($acc201297413006, $list1297413006[20]) | |
520 | 544 | throw("List size exceed 20") | |
521 | 545 | } | |
522 | 546 | } | |
548 | 572 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
549 | 573 | else { | |
550 | 574 | let previousRewardEntryNew = { | |
551 | - | let $ | |
552 | - | let $ | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
575 | + | let $list1331813366 = previousPools | |
576 | + | let $size1331813366 = size($list1331813366) | |
577 | + | let $acc01331813366 = nil | |
578 | + | if (($size1331813366 == 0)) | |
579 | + | then $acc01331813366 | |
556 | 580 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
581 | + | let $acc11331813366 = PreviousRewardEntry($acc01331813366, $list1331813366[0]) | |
582 | + | if (($size1331813366 == 1)) | |
583 | + | then $acc11331813366 | |
560 | 584 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
585 | + | let $acc21331813366 = PreviousRewardEntry($acc11331813366, $list1331813366[1]) | |
586 | + | if (($size1331813366 == 2)) | |
587 | + | then $acc21331813366 | |
564 | 588 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
589 | + | let $acc31331813366 = PreviousRewardEntry($acc21331813366, $list1331813366[2]) | |
590 | + | if (($size1331813366 == 3)) | |
591 | + | then $acc31331813366 | |
568 | 592 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
593 | + | let $acc41331813366 = PreviousRewardEntry($acc31331813366, $list1331813366[3]) | |
594 | + | if (($size1331813366 == 4)) | |
595 | + | then $acc41331813366 | |
572 | 596 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
597 | + | let $acc51331813366 = PreviousRewardEntry($acc41331813366, $list1331813366[4]) | |
598 | + | if (($size1331813366 == 5)) | |
599 | + | then $acc51331813366 | |
576 | 600 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
601 | + | let $acc61331813366 = PreviousRewardEntry($acc51331813366, $list1331813366[5]) | |
602 | + | if (($size1331813366 == 6)) | |
603 | + | then $acc61331813366 | |
580 | 604 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
605 | + | let $acc71331813366 = PreviousRewardEntry($acc61331813366, $list1331813366[6]) | |
606 | + | if (($size1331813366 == 7)) | |
607 | + | then $acc71331813366 | |
584 | 608 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
609 | + | let $acc81331813366 = PreviousRewardEntry($acc71331813366, $list1331813366[7]) | |
610 | + | if (($size1331813366 == 8)) | |
611 | + | then $acc81331813366 | |
588 | 612 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
613 | + | let $acc91331813366 = PreviousRewardEntry($acc81331813366, $list1331813366[8]) | |
614 | + | if (($size1331813366 == 9)) | |
615 | + | then $acc91331813366 | |
592 | 616 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
617 | + | let $acc101331813366 = PreviousRewardEntry($acc91331813366, $list1331813366[9]) | |
618 | + | if (($size1331813366 == 10)) | |
619 | + | then $acc101331813366 | |
596 | 620 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
621 | + | let $acc111331813366 = PreviousRewardEntry($acc101331813366, $list1331813366[10]) | |
622 | + | if (($size1331813366 == 11)) | |
623 | + | then $acc111331813366 | |
600 | 624 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
625 | + | let $acc121331813366 = PreviousRewardEntry($acc111331813366, $list1331813366[11]) | |
626 | + | if (($size1331813366 == 12)) | |
627 | + | then $acc121331813366 | |
604 | 628 | else { | |
605 | - | let $ | |
606 | - | if (($ | |
607 | - | then $ | |
629 | + | let $acc131331813366 = PreviousRewardEntry($acc121331813366, $list1331813366[12]) | |
630 | + | if (($size1331813366 == 13)) | |
631 | + | then $acc131331813366 | |
608 | 632 | else { | |
609 | - | let $ | |
610 | - | if (($ | |
611 | - | then $ | |
633 | + | let $acc141331813366 = PreviousRewardEntry($acc131331813366, $list1331813366[13]) | |
634 | + | if (($size1331813366 == 14)) | |
635 | + | then $acc141331813366 | |
612 | 636 | else { | |
613 | - | let $ | |
614 | - | if (($ | |
615 | - | then $ | |
637 | + | let $acc151331813366 = PreviousRewardEntry($acc141331813366, $list1331813366[14]) | |
638 | + | if (($size1331813366 == 15)) | |
639 | + | then $acc151331813366 | |
616 | 640 | else { | |
617 | - | let $ | |
618 | - | if (($ | |
619 | - | then $ | |
641 | + | let $acc161331813366 = PreviousRewardEntry($acc151331813366, $list1331813366[15]) | |
642 | + | if (($size1331813366 == 16)) | |
643 | + | then $acc161331813366 | |
620 | 644 | else { | |
621 | - | let $ | |
622 | - | if (($ | |
623 | - | then $ | |
645 | + | let $acc171331813366 = PreviousRewardEntry($acc161331813366, $list1331813366[16]) | |
646 | + | if (($size1331813366 == 17)) | |
647 | + | then $acc171331813366 | |
624 | 648 | else { | |
625 | - | let $ | |
626 | - | if (($ | |
627 | - | then $ | |
649 | + | let $acc181331813366 = PreviousRewardEntry($acc171331813366, $list1331813366[17]) | |
650 | + | if (($size1331813366 == 18)) | |
651 | + | then $acc181331813366 | |
628 | 652 | else { | |
629 | - | let $ | |
630 | - | if (($ | |
631 | - | then $ | |
653 | + | let $acc191331813366 = PreviousRewardEntry($acc181331813366, $list1331813366[18]) | |
654 | + | if (($size1331813366 == 19)) | |
655 | + | then $acc191331813366 | |
632 | 656 | else { | |
633 | - | let $ | |
634 | - | if (($ | |
635 | - | then $ | |
657 | + | let $acc201331813366 = PreviousRewardEntry($acc191331813366, $list1331813366[19]) | |
658 | + | if (($size1331813366 == 20)) | |
659 | + | then $acc201331813366 | |
636 | 660 | else { | |
637 | - | let $ | |
661 | + | let $acc211331813366 = PreviousRewardEntry($acc201331813366, $list1331813366[20]) | |
638 | 662 | throw("List size exceed 20") | |
639 | 663 | } | |
640 | 664 | } | |
659 | 683 | } | |
660 | 684 | } | |
661 | 685 | let currentRewardEntryNew = { | |
662 | - | let $ | |
663 | - | let $ | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
686 | + | let $list1339913445 = currentPools | |
687 | + | let $size1339913445 = size($list1339913445) | |
688 | + | let $acc01339913445 = nil | |
689 | + | if (($size1339913445 == 0)) | |
690 | + | then $acc01339913445 | |
667 | 691 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
692 | + | let $acc11339913445 = CurrentRewardEntry($acc01339913445, $list1339913445[0]) | |
693 | + | if (($size1339913445 == 1)) | |
694 | + | then $acc11339913445 | |
671 | 695 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
696 | + | let $acc21339913445 = CurrentRewardEntry($acc11339913445, $list1339913445[1]) | |
697 | + | if (($size1339913445 == 2)) | |
698 | + | then $acc21339913445 | |
675 | 699 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
700 | + | let $acc31339913445 = CurrentRewardEntry($acc21339913445, $list1339913445[2]) | |
701 | + | if (($size1339913445 == 3)) | |
702 | + | then $acc31339913445 | |
679 | 703 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
704 | + | let $acc41339913445 = CurrentRewardEntry($acc31339913445, $list1339913445[3]) | |
705 | + | if (($size1339913445 == 4)) | |
706 | + | then $acc41339913445 | |
683 | 707 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
708 | + | let $acc51339913445 = CurrentRewardEntry($acc41339913445, $list1339913445[4]) | |
709 | + | if (($size1339913445 == 5)) | |
710 | + | then $acc51339913445 | |
687 | 711 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
712 | + | let $acc61339913445 = CurrentRewardEntry($acc51339913445, $list1339913445[5]) | |
713 | + | if (($size1339913445 == 6)) | |
714 | + | then $acc61339913445 | |
691 | 715 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
716 | + | let $acc71339913445 = CurrentRewardEntry($acc61339913445, $list1339913445[6]) | |
717 | + | if (($size1339913445 == 7)) | |
718 | + | then $acc71339913445 | |
695 | 719 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
720 | + | let $acc81339913445 = CurrentRewardEntry($acc71339913445, $list1339913445[7]) | |
721 | + | if (($size1339913445 == 8)) | |
722 | + | then $acc81339913445 | |
699 | 723 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
724 | + | let $acc91339913445 = CurrentRewardEntry($acc81339913445, $list1339913445[8]) | |
725 | + | if (($size1339913445 == 9)) | |
726 | + | then $acc91339913445 | |
703 | 727 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
728 | + | let $acc101339913445 = CurrentRewardEntry($acc91339913445, $list1339913445[9]) | |
729 | + | if (($size1339913445 == 10)) | |
730 | + | then $acc101339913445 | |
707 | 731 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
732 | + | let $acc111339913445 = CurrentRewardEntry($acc101339913445, $list1339913445[10]) | |
733 | + | if (($size1339913445 == 11)) | |
734 | + | then $acc111339913445 | |
711 | 735 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
736 | + | let $acc121339913445 = CurrentRewardEntry($acc111339913445, $list1339913445[11]) | |
737 | + | if (($size1339913445 == 12)) | |
738 | + | then $acc121339913445 | |
715 | 739 | else { | |
716 | - | let $ | |
717 | - | if (($ | |
718 | - | then $ | |
740 | + | let $acc131339913445 = CurrentRewardEntry($acc121339913445, $list1339913445[12]) | |
741 | + | if (($size1339913445 == 13)) | |
742 | + | then $acc131339913445 | |
719 | 743 | else { | |
720 | - | let $ | |
721 | - | if (($ | |
722 | - | then $ | |
744 | + | let $acc141339913445 = CurrentRewardEntry($acc131339913445, $list1339913445[13]) | |
745 | + | if (($size1339913445 == 14)) | |
746 | + | then $acc141339913445 | |
723 | 747 | else { | |
724 | - | let $ | |
725 | - | if (($ | |
726 | - | then $ | |
748 | + | let $acc151339913445 = CurrentRewardEntry($acc141339913445, $list1339913445[14]) | |
749 | + | if (($size1339913445 == 15)) | |
750 | + | then $acc151339913445 | |
727 | 751 | else { | |
728 | - | let $ | |
729 | - | if (($ | |
730 | - | then $ | |
752 | + | let $acc161339913445 = CurrentRewardEntry($acc151339913445, $list1339913445[15]) | |
753 | + | if (($size1339913445 == 16)) | |
754 | + | then $acc161339913445 | |
731 | 755 | else { | |
732 | - | let $ | |
733 | - | if (($ | |
734 | - | then $ | |
756 | + | let $acc171339913445 = CurrentRewardEntry($acc161339913445, $list1339913445[16]) | |
757 | + | if (($size1339913445 == 17)) | |
758 | + | then $acc171339913445 | |
735 | 759 | else { | |
736 | - | let $ | |
737 | - | if (($ | |
738 | - | then $ | |
760 | + | let $acc181339913445 = CurrentRewardEntry($acc171339913445, $list1339913445[17]) | |
761 | + | if (($size1339913445 == 18)) | |
762 | + | then $acc181339913445 | |
739 | 763 | else { | |
740 | - | let $ | |
741 | - | if (($ | |
742 | - | then $ | |
764 | + | let $acc191339913445 = CurrentRewardEntry($acc181339913445, $list1339913445[18]) | |
765 | + | if (($size1339913445 == 19)) | |
766 | + | then $acc191339913445 | |
743 | 767 | else { | |
744 | - | let $ | |
745 | - | if (($ | |
746 | - | then $ | |
768 | + | let $acc201339913445 = CurrentRewardEntry($acc191339913445, $list1339913445[19]) | |
769 | + | if (($size1339913445 == 20)) | |
770 | + | then $acc201339913445 | |
747 | 771 | else { | |
748 | - | let $ | |
772 | + | let $acc211339913445 = CurrentRewardEntry($acc201339913445, $list1339913445[20]) | |
749 | 773 | throw("List size exceed 20") | |
750 | 774 | } | |
751 | 775 | } |
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 | 70 | let kStartHeight = "start_height" | |
71 | 71 | ||
72 | 72 | let kBasePeriod = "base_period" | |
73 | 73 | ||
74 | 74 | let kPeriodLength = "period_length" | |
75 | 75 | ||
76 | 76 | let kUserTotalStruc = "_user_total_struc" | |
77 | 77 | ||
78 | 78 | let basePeriod = valueOrErrorMessage(getInteger(votingLiteContract, kBasePeriod), "Empty kBasePeriod at voting contract") | |
79 | 79 | ||
80 | 80 | let startHeight = valueOrErrorMessage(getInteger(votingLiteContract, kStartHeight), "Empty kStartHeight at voting contract") | |
81 | 81 | ||
82 | 82 | let periodLength = valueOrErrorMessage(getInteger(votingLiteContract, kPeriodLength), "Empty kPeriodLength at voting contract") | |
83 | 83 | ||
84 | 84 | let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
85 | 85 | ||
86 | 86 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount") | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getLastInterestInfo () = { | |
93 | 93 | let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0) | |
94 | 94 | lastInterest | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getUserSWOPLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPLocked)), 0) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getUserSWOPClaimedAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPClaimedAmount)), 0) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getUserInterestInfo (user,lastInterest) = { | |
105 | 105 | let userSWOPAmount = getUserSWOPLocked(user) | |
106 | 106 | let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest)) | |
107 | 107 | let userLastInterestValue = match userLastInterest { | |
108 | 108 | case userLastInterest: Int => | |
109 | 109 | userLastInterest | |
110 | 110 | case _ => | |
111 | 111 | lastInterest | |
112 | 112 | } | |
113 | 113 | $Tuple2(userLastInterestValue, userSWOPAmount) | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getUserUnvoteAmount (user) = { | |
121 | - | let $ | |
121 | + | let $t037804319 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
122 | 122 | then { | |
123 | - | let data = split(valueOrErrorMessage(getString( | |
123 | + | let data = split(valueOrErrorMessage(getString(votingLiteContract, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
124 | 124 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
125 | 125 | } | |
126 | 126 | else { | |
127 | - | let uPoolTotalSWOP = valueOrElse(getInteger( | |
127 | + | let uPoolTotalSWOP = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0) | |
128 | 128 | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
129 | 129 | } | |
130 | - | let userTotalVoteSWOP = $ | |
131 | - | let userUnvoted = $ | |
132 | - | let userUnvotedPeriod = $ | |
130 | + | let userTotalVoteSWOP = $t037804319._1 | |
131 | + | let userUnvoted = $t037804319._2 | |
132 | + | let userUnvotedPeriod = $t037804319._3 | |
133 | 133 | if ((userUnvotedPeriod == currVotingPeriod)) | |
134 | 134 | then userUnvoted | |
135 | 135 | else 0 | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getVoteOptionAmount (user,voteName,option) = { | |
146 | 146 | let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount)) | |
147 | 147 | let uvoa = match userVoteOptionAmount { | |
148 | 148 | case uvoa: Int => | |
149 | 149 | uvoa | |
150 | 150 | case uvoa: Unit => | |
151 | 151 | 0 | |
152 | 152 | case _ => | |
153 | 153 | throw("Match error") | |
154 | 154 | } | |
155 | 155 | valueOrErrorMessage(uvoa, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount)) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration)) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func getTotalVoteOptionAmount (voteName,option) = { | |
163 | 163 | let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount)) | |
164 | 164 | let tvoa = match totalVoteOptionAmount { | |
165 | 165 | case tvoa: Int => | |
166 | 166 | tvoa | |
167 | 167 | case tvoa: Unit => | |
168 | 168 | 0 | |
169 | 169 | case _ => | |
170 | 170 | throw("Match error") | |
171 | 171 | } | |
172 | 172 | tvoa | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | + | func getUserTotalVoteAmount (user) = { | |
177 | + | let $t057056216 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
178 | + | then { | |
179 | + | let data = split(valueOrErrorMessage(getString(this, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
180 | + | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
181 | + | } | |
182 | + | else { | |
183 | + | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(user) + kUserTotalVoteSWOP)), 0) | |
184 | + | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
185 | + | } | |
186 | + | let userTotalVoteSWOP = $t057056216._1 | |
187 | + | let userUnvoted = $t057056216._2 | |
188 | + | let userUnvotedPeriod = $t057056216._3 | |
189 | + | userTotalVoteSWOP | |
190 | + | } | |
191 | + | ||
192 | + | ||
176 | 193 | func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = { | |
177 | 194 | let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight)) | |
178 | 195 | valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key)) | |
179 | 196 | } | |
180 | 197 | ||
181 | 198 | ||
182 | 199 | func claimCalc (caller) = { | |
183 | 200 | let lastInterest = getLastInterestInfo() | |
184 | - | let $ | |
185 | - | let userLastInterest = $ | |
186 | - | let userSWOPLocked = $ | |
201 | + | let $t066516731 = getUserInterestInfo(caller, lastInterest) | |
202 | + | let userLastInterest = $t066516731._1 | |
203 | + | let userSWOPLocked = $t066516731._2 | |
187 | 204 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
188 | 205 | let userNewInterest = lastInterest | |
189 | 206 | $Tuple2(userNewInterest, claimAmount) | |
190 | 207 | } | |
191 | 208 | ||
192 | 209 | ||
193 | 210 | @Callable(i) | |
194 | 211 | func airDrop () = if (!(isActive)) | |
195 | 212 | then throw("DApp is inactive at this moment") | |
196 | 213 | else { | |
197 | - | let $ | |
198 | - | let pmtAmount = $ | |
199 | - | let pmtAssetId = $ | |
214 | + | let $t069967071 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
215 | + | let pmtAmount = $t069967071._1 | |
216 | + | let pmtAssetId = $t069967071._2 | |
200 | 217 | if ((pmtAssetId != SWOP)) | |
201 | 218 | then throw("Incorrect pmtAssetId") | |
202 | 219 | else { | |
203 | 220 | let totalSWOPLocked = getTotalSWOPLocked() | |
204 | 221 | let lastInterest = getLastInterestInfo() | |
205 | 222 | let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPLocked)) | |
206 | 223 | [IntegerEntry(keyLastInterest, interestNew)] | |
207 | 224 | } | |
208 | 225 | } | |
209 | 226 | ||
210 | 227 | ||
211 | 228 | ||
212 | 229 | @Callable(i) | |
213 | 230 | func lockSWOP () = if (!(isActive)) | |
214 | 231 | then throw("DApp is inactive at this moment") | |
215 | 232 | else { | |
216 | - | let $ | |
217 | - | let pmtAmount = $ | |
218 | - | let pmtAssetId = $ | |
233 | + | let $t075097584 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
234 | + | let pmtAmount = $t075097584._1 | |
235 | + | let pmtAssetId = $t075097584._2 | |
219 | 236 | if ((pmtAssetId != SWOP)) | |
220 | 237 | then throw("Incorrect pmtAssetId") | |
221 | 238 | else { | |
222 | 239 | let lastInterest = getLastInterestInfo() | |
223 | - | let $ | |
224 | - | let userLastInterest = $ | |
225 | - | let userSWOPLocked = $ | |
240 | + | let $t077007782 = getUserInterestInfo(i.caller, lastInterest) | |
241 | + | let userLastInterest = $t077007782._1 | |
242 | + | let userSWOPLocked = $t077007782._2 | |
226 | 243 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
227 | 244 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
228 | 245 | let userNewInterest = lastInterest | |
229 | 246 | let totalSWOPLocked = getTotalSWOPLocked() | |
230 | 247 | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
231 | 248 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
232 | 249 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
233 | 250 | [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 | 251 | } | |
235 | 252 | } | |
236 | 253 | ||
237 | 254 | ||
238 | 255 | ||
239 | 256 | @Callable(i) | |
240 | 257 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
241 | 258 | then throw("DApp is inactive at this moment") | |
242 | 259 | else { | |
243 | 260 | let totalSWOPLocked = getTotalSWOPLocked() | |
244 | 261 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
245 | - | let $t082438298 = claimCalc(i.caller) | |
246 | - | let userNewInterest = $t082438298._1 | |
247 | - | let claimAmount = $t082438298._2 | |
262 | + | let $t088668921 = claimCalc(i.caller) | |
263 | + | let userNewInterest = $t088668921._1 | |
264 | + | let claimAmount = $t088668921._2 | |
265 | + | let userVoteAmount = getUserTotalVoteAmount(i.caller) | |
248 | 266 | let userUnvoteAmount = getUserUnvoteAmount(i.caller) | |
249 | - | let availableFund = (userSWOPLocked - userUnvoteAmount) | |
250 | - | if ((withdrawAmount > availableFund)) | |
251 | - | then throw("withdrawAmount > availableFund") | |
267 | + | if (if ((0 > userUnvoteAmount)) | |
268 | + | then true | |
269 | + | else (0 > userVoteAmount)) | |
270 | + | then throw("userUnvoteAmount < 0 || userVoteAmount < 0") | |
252 | 271 | else { | |
253 | - | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
254 | - | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
255 | - | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
256 | - | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
272 | + | let availableToUnstake = ((userSWOPLocked - userVoteAmount) - userUnvoteAmount) | |
273 | + | if ((withdrawAmount > availableToUnstake)) | |
274 | + | then throw("withdrawAmount > availableToUnstake") | |
275 | + | else { | |
276 | + | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
277 | + | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
278 | + | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
279 | + | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
257 | 280 | [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)] | |
281 | + | } | |
258 | 282 | } | |
259 | 283 | } | |
260 | 284 | ||
261 | 285 | ||
262 | 286 | ||
263 | 287 | @Callable(i) | |
264 | 288 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
265 | 289 | then throw("DApp is inactive at this moment") | |
266 | 290 | else { | |
267 | 291 | let lastInterest = getLastInterestInfo() | |
268 | - | let $ | |
269 | - | let userNewInterest = $ | |
270 | - | let claimAmount = $ | |
292 | + | let $t01023710292 = claimCalc(i.caller) | |
293 | + | let userNewInterest = $t01023710292._1 | |
294 | + | let claimAmount = $t01023710292._2 | |
271 | 295 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
272 | 296 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
273 | 297 | if ((claimAmount == 0)) | |
274 | 298 | then throw("You have 0 available SWOP") | |
275 | 299 | 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 | 300 | } | |
277 | 301 | ||
278 | 302 | ||
279 | 303 | ||
280 | 304 | @Callable(i) | |
281 | 305 | func claimAndStakeSWOP () = if (!(isActive)) | |
282 | 306 | then throw("DApp is inactive at this moment") | |
283 | 307 | else { | |
284 | 308 | let totalSWOPLocked = getTotalSWOPLocked() | |
285 | 309 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
286 | 310 | let lastInterest = getLastInterestInfo() | |
287 | - | let $ | |
288 | - | let userNewInterest = $ | |
289 | - | let claimAmount = $ | |
311 | + | let $t01107111126 = claimCalc(i.caller) | |
312 | + | let userNewInterest = $t01107111126._1 | |
313 | + | let claimAmount = $t01107111126._2 | |
290 | 314 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
291 | 315 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
292 | 316 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
293 | 317 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
294 | 318 | if ((claimAmount == 0)) | |
295 | 319 | then throw("You have 0 available SWOP") | |
296 | 320 | 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 | 321 | } | |
298 | 322 | ||
299 | 323 | ||
300 | 324 | ||
301 | 325 | @Callable(i) | |
302 | 326 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
303 | 327 | then throw("DApp is inactive at this moment") | |
304 | 328 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop, adminPubKeyWallet], i.callerPublicKey))) | |
305 | 329 | then throw("Only admin can call this function") | |
306 | 330 | else { | |
307 | 331 | func sum (a,b) = (a + b) | |
308 | 332 | ||
309 | 333 | func PreviousRewardEntry (accumulated,pool) = { | |
310 | 334 | let poolIndex = value(indexOf(previousPools, pool)) | |
311 | 335 | let poolReward = previousRewards[poolIndex] | |
312 | 336 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
313 | 337 | } | |
314 | 338 | ||
315 | 339 | func CurrentRewardEntry (accumulated,pool) = { | |
316 | 340 | let poolIndex = value(indexOf(currentPools, pool)) | |
317 | 341 | let poolReward = currentRewards[poolIndex] | |
318 | 342 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
319 | 343 | } | |
320 | 344 | ||
321 | 345 | let sumRewardPrevious = { | |
322 | - | let $ | |
323 | - | let $ | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
346 | + | let $list1291212945 = previousRewards | |
347 | + | let $size1291212945 = size($list1291212945) | |
348 | + | let $acc01291212945 = 0 | |
349 | + | if (($size1291212945 == 0)) | |
350 | + | then $acc01291212945 | |
327 | 351 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
352 | + | let $acc11291212945 = sum($acc01291212945, $list1291212945[0]) | |
353 | + | if (($size1291212945 == 1)) | |
354 | + | then $acc11291212945 | |
331 | 355 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
356 | + | let $acc21291212945 = sum($acc11291212945, $list1291212945[1]) | |
357 | + | if (($size1291212945 == 2)) | |
358 | + | then $acc21291212945 | |
335 | 359 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
360 | + | let $acc31291212945 = sum($acc21291212945, $list1291212945[2]) | |
361 | + | if (($size1291212945 == 3)) | |
362 | + | then $acc31291212945 | |
339 | 363 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
364 | + | let $acc41291212945 = sum($acc31291212945, $list1291212945[3]) | |
365 | + | if (($size1291212945 == 4)) | |
366 | + | then $acc41291212945 | |
343 | 367 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
368 | + | let $acc51291212945 = sum($acc41291212945, $list1291212945[4]) | |
369 | + | if (($size1291212945 == 5)) | |
370 | + | then $acc51291212945 | |
347 | 371 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
372 | + | let $acc61291212945 = sum($acc51291212945, $list1291212945[5]) | |
373 | + | if (($size1291212945 == 6)) | |
374 | + | then $acc61291212945 | |
351 | 375 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
376 | + | let $acc71291212945 = sum($acc61291212945, $list1291212945[6]) | |
377 | + | if (($size1291212945 == 7)) | |
378 | + | then $acc71291212945 | |
355 | 379 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
380 | + | let $acc81291212945 = sum($acc71291212945, $list1291212945[7]) | |
381 | + | if (($size1291212945 == 8)) | |
382 | + | then $acc81291212945 | |
359 | 383 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
384 | + | let $acc91291212945 = sum($acc81291212945, $list1291212945[8]) | |
385 | + | if (($size1291212945 == 9)) | |
386 | + | then $acc91291212945 | |
363 | 387 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
388 | + | let $acc101291212945 = sum($acc91291212945, $list1291212945[9]) | |
389 | + | if (($size1291212945 == 10)) | |
390 | + | then $acc101291212945 | |
367 | 391 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
392 | + | let $acc111291212945 = sum($acc101291212945, $list1291212945[10]) | |
393 | + | if (($size1291212945 == 11)) | |
394 | + | then $acc111291212945 | |
371 | 395 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
396 | + | let $acc121291212945 = sum($acc111291212945, $list1291212945[11]) | |
397 | + | if (($size1291212945 == 12)) | |
398 | + | then $acc121291212945 | |
375 | 399 | else { | |
376 | - | let $ | |
377 | - | if (($ | |
378 | - | then $ | |
400 | + | let $acc131291212945 = sum($acc121291212945, $list1291212945[12]) | |
401 | + | if (($size1291212945 == 13)) | |
402 | + | then $acc131291212945 | |
379 | 403 | else { | |
380 | - | let $ | |
381 | - | if (($ | |
382 | - | then $ | |
404 | + | let $acc141291212945 = sum($acc131291212945, $list1291212945[13]) | |
405 | + | if (($size1291212945 == 14)) | |
406 | + | then $acc141291212945 | |
383 | 407 | else { | |
384 | - | let $ | |
385 | - | if (($ | |
386 | - | then $ | |
408 | + | let $acc151291212945 = sum($acc141291212945, $list1291212945[14]) | |
409 | + | if (($size1291212945 == 15)) | |
410 | + | then $acc151291212945 | |
387 | 411 | else { | |
388 | - | let $ | |
389 | - | if (($ | |
390 | - | then $ | |
412 | + | let $acc161291212945 = sum($acc151291212945, $list1291212945[15]) | |
413 | + | if (($size1291212945 == 16)) | |
414 | + | then $acc161291212945 | |
391 | 415 | else { | |
392 | - | let $ | |
393 | - | if (($ | |
394 | - | then $ | |
416 | + | let $acc171291212945 = sum($acc161291212945, $list1291212945[16]) | |
417 | + | if (($size1291212945 == 17)) | |
418 | + | then $acc171291212945 | |
395 | 419 | else { | |
396 | - | let $ | |
397 | - | if (($ | |
398 | - | then $ | |
420 | + | let $acc181291212945 = sum($acc171291212945, $list1291212945[17]) | |
421 | + | if (($size1291212945 == 18)) | |
422 | + | then $acc181291212945 | |
399 | 423 | else { | |
400 | - | let $ | |
401 | - | if (($ | |
402 | - | then $ | |
424 | + | let $acc191291212945 = sum($acc181291212945, $list1291212945[18]) | |
425 | + | if (($size1291212945 == 19)) | |
426 | + | then $acc191291212945 | |
403 | 427 | else { | |
404 | - | let $ | |
405 | - | if (($ | |
406 | - | then $ | |
428 | + | let $acc201291212945 = sum($acc191291212945, $list1291212945[19]) | |
429 | + | if (($size1291212945 == 20)) | |
430 | + | then $acc201291212945 | |
407 | 431 | else { | |
408 | - | let $ | |
432 | + | let $acc211291212945 = sum($acc201291212945, $list1291212945[20]) | |
409 | 433 | throw("List size exceed 20") | |
410 | 434 | } | |
411 | 435 | } | |
412 | 436 | } | |
413 | 437 | } | |
414 | 438 | } | |
415 | 439 | } | |
416 | 440 | } | |
417 | 441 | } | |
418 | 442 | } | |
419 | 443 | } | |
420 | 444 | } | |
421 | 445 | } | |
422 | 446 | } | |
423 | 447 | } | |
424 | 448 | } | |
425 | 449 | } | |
426 | 450 | } | |
427 | 451 | } | |
428 | 452 | } | |
429 | 453 | } | |
430 | 454 | } | |
431 | 455 | } | |
432 | 456 | let sumRewardCurrent = { | |
433 | - | let $ | |
434 | - | let $ | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
457 | + | let $list1297413006 = currentRewards | |
458 | + | let $size1297413006 = size($list1297413006) | |
459 | + | let $acc01297413006 = 0 | |
460 | + | if (($size1297413006 == 0)) | |
461 | + | then $acc01297413006 | |
438 | 462 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
463 | + | let $acc11297413006 = sum($acc01297413006, $list1297413006[0]) | |
464 | + | if (($size1297413006 == 1)) | |
465 | + | then $acc11297413006 | |
442 | 466 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
467 | + | let $acc21297413006 = sum($acc11297413006, $list1297413006[1]) | |
468 | + | if (($size1297413006 == 2)) | |
469 | + | then $acc21297413006 | |
446 | 470 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
471 | + | let $acc31297413006 = sum($acc21297413006, $list1297413006[2]) | |
472 | + | if (($size1297413006 == 3)) | |
473 | + | then $acc31297413006 | |
450 | 474 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
475 | + | let $acc41297413006 = sum($acc31297413006, $list1297413006[3]) | |
476 | + | if (($size1297413006 == 4)) | |
477 | + | then $acc41297413006 | |
454 | 478 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
479 | + | let $acc51297413006 = sum($acc41297413006, $list1297413006[4]) | |
480 | + | if (($size1297413006 == 5)) | |
481 | + | then $acc51297413006 | |
458 | 482 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
483 | + | let $acc61297413006 = sum($acc51297413006, $list1297413006[5]) | |
484 | + | if (($size1297413006 == 6)) | |
485 | + | then $acc61297413006 | |
462 | 486 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
487 | + | let $acc71297413006 = sum($acc61297413006, $list1297413006[6]) | |
488 | + | if (($size1297413006 == 7)) | |
489 | + | then $acc71297413006 | |
466 | 490 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
491 | + | let $acc81297413006 = sum($acc71297413006, $list1297413006[7]) | |
492 | + | if (($size1297413006 == 8)) | |
493 | + | then $acc81297413006 | |
470 | 494 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
495 | + | let $acc91297413006 = sum($acc81297413006, $list1297413006[8]) | |
496 | + | if (($size1297413006 == 9)) | |
497 | + | then $acc91297413006 | |
474 | 498 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
499 | + | let $acc101297413006 = sum($acc91297413006, $list1297413006[9]) | |
500 | + | if (($size1297413006 == 10)) | |
501 | + | then $acc101297413006 | |
478 | 502 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
503 | + | let $acc111297413006 = sum($acc101297413006, $list1297413006[10]) | |
504 | + | if (($size1297413006 == 11)) | |
505 | + | then $acc111297413006 | |
482 | 506 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
507 | + | let $acc121297413006 = sum($acc111297413006, $list1297413006[11]) | |
508 | + | if (($size1297413006 == 12)) | |
509 | + | then $acc121297413006 | |
486 | 510 | else { | |
487 | - | let $ | |
488 | - | if (($ | |
489 | - | then $ | |
511 | + | let $acc131297413006 = sum($acc121297413006, $list1297413006[12]) | |
512 | + | if (($size1297413006 == 13)) | |
513 | + | then $acc131297413006 | |
490 | 514 | else { | |
491 | - | let $ | |
492 | - | if (($ | |
493 | - | then $ | |
515 | + | let $acc141297413006 = sum($acc131297413006, $list1297413006[13]) | |
516 | + | if (($size1297413006 == 14)) | |
517 | + | then $acc141297413006 | |
494 | 518 | else { | |
495 | - | let $ | |
496 | - | if (($ | |
497 | - | then $ | |
519 | + | let $acc151297413006 = sum($acc141297413006, $list1297413006[14]) | |
520 | + | if (($size1297413006 == 15)) | |
521 | + | then $acc151297413006 | |
498 | 522 | else { | |
499 | - | let $ | |
500 | - | if (($ | |
501 | - | then $ | |
523 | + | let $acc161297413006 = sum($acc151297413006, $list1297413006[15]) | |
524 | + | if (($size1297413006 == 16)) | |
525 | + | then $acc161297413006 | |
502 | 526 | else { | |
503 | - | let $ | |
504 | - | if (($ | |
505 | - | then $ | |
527 | + | let $acc171297413006 = sum($acc161297413006, $list1297413006[16]) | |
528 | + | if (($size1297413006 == 17)) | |
529 | + | then $acc171297413006 | |
506 | 530 | else { | |
507 | - | let $ | |
508 | - | if (($ | |
509 | - | then $ | |
531 | + | let $acc181297413006 = sum($acc171297413006, $list1297413006[17]) | |
532 | + | if (($size1297413006 == 18)) | |
533 | + | then $acc181297413006 | |
510 | 534 | else { | |
511 | - | let $ | |
512 | - | if (($ | |
513 | - | then $ | |
535 | + | let $acc191297413006 = sum($acc181297413006, $list1297413006[18]) | |
536 | + | if (($size1297413006 == 19)) | |
537 | + | then $acc191297413006 | |
514 | 538 | else { | |
515 | - | let $ | |
516 | - | if (($ | |
517 | - | then $ | |
539 | + | let $acc201297413006 = sum($acc191297413006, $list1297413006[19]) | |
540 | + | if (($size1297413006 == 20)) | |
541 | + | then $acc201297413006 | |
518 | 542 | else { | |
519 | - | let $ | |
543 | + | let $acc211297413006 = sum($acc201297413006, $list1297413006[20]) | |
520 | 544 | throw("List size exceed 20") | |
521 | 545 | } | |
522 | 546 | } | |
523 | 547 | } | |
524 | 548 | } | |
525 | 549 | } | |
526 | 550 | } | |
527 | 551 | } | |
528 | 552 | } | |
529 | 553 | } | |
530 | 554 | } | |
531 | 555 | } | |
532 | 556 | } | |
533 | 557 | } | |
534 | 558 | } | |
535 | 559 | } | |
536 | 560 | } | |
537 | 561 | } | |
538 | 562 | } | |
539 | 563 | } | |
540 | 564 | } | |
541 | 565 | } | |
542 | 566 | } | |
543 | 567 | if ((height > rewardUpdateHeight)) | |
544 | 568 | then throw("rewardUpdateHeight < height") | |
545 | 569 | else if (if ((sumRewardPrevious != totalVoteShare)) | |
546 | 570 | then true | |
547 | 571 | else (sumRewardCurrent != totalVoteShare)) | |
548 | 572 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
549 | 573 | else { | |
550 | 574 | let previousRewardEntryNew = { | |
551 | - | let $ | |
552 | - | let $ | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
575 | + | let $list1331813366 = previousPools | |
576 | + | let $size1331813366 = size($list1331813366) | |
577 | + | let $acc01331813366 = nil | |
578 | + | if (($size1331813366 == 0)) | |
579 | + | then $acc01331813366 | |
556 | 580 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
581 | + | let $acc11331813366 = PreviousRewardEntry($acc01331813366, $list1331813366[0]) | |
582 | + | if (($size1331813366 == 1)) | |
583 | + | then $acc11331813366 | |
560 | 584 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
585 | + | let $acc21331813366 = PreviousRewardEntry($acc11331813366, $list1331813366[1]) | |
586 | + | if (($size1331813366 == 2)) | |
587 | + | then $acc21331813366 | |
564 | 588 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
589 | + | let $acc31331813366 = PreviousRewardEntry($acc21331813366, $list1331813366[2]) | |
590 | + | if (($size1331813366 == 3)) | |
591 | + | then $acc31331813366 | |
568 | 592 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
593 | + | let $acc41331813366 = PreviousRewardEntry($acc31331813366, $list1331813366[3]) | |
594 | + | if (($size1331813366 == 4)) | |
595 | + | then $acc41331813366 | |
572 | 596 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
597 | + | let $acc51331813366 = PreviousRewardEntry($acc41331813366, $list1331813366[4]) | |
598 | + | if (($size1331813366 == 5)) | |
599 | + | then $acc51331813366 | |
576 | 600 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
601 | + | let $acc61331813366 = PreviousRewardEntry($acc51331813366, $list1331813366[5]) | |
602 | + | if (($size1331813366 == 6)) | |
603 | + | then $acc61331813366 | |
580 | 604 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
605 | + | let $acc71331813366 = PreviousRewardEntry($acc61331813366, $list1331813366[6]) | |
606 | + | if (($size1331813366 == 7)) | |
607 | + | then $acc71331813366 | |
584 | 608 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
609 | + | let $acc81331813366 = PreviousRewardEntry($acc71331813366, $list1331813366[7]) | |
610 | + | if (($size1331813366 == 8)) | |
611 | + | then $acc81331813366 | |
588 | 612 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
613 | + | let $acc91331813366 = PreviousRewardEntry($acc81331813366, $list1331813366[8]) | |
614 | + | if (($size1331813366 == 9)) | |
615 | + | then $acc91331813366 | |
592 | 616 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
617 | + | let $acc101331813366 = PreviousRewardEntry($acc91331813366, $list1331813366[9]) | |
618 | + | if (($size1331813366 == 10)) | |
619 | + | then $acc101331813366 | |
596 | 620 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
621 | + | let $acc111331813366 = PreviousRewardEntry($acc101331813366, $list1331813366[10]) | |
622 | + | if (($size1331813366 == 11)) | |
623 | + | then $acc111331813366 | |
600 | 624 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
625 | + | let $acc121331813366 = PreviousRewardEntry($acc111331813366, $list1331813366[11]) | |
626 | + | if (($size1331813366 == 12)) | |
627 | + | then $acc121331813366 | |
604 | 628 | else { | |
605 | - | let $ | |
606 | - | if (($ | |
607 | - | then $ | |
629 | + | let $acc131331813366 = PreviousRewardEntry($acc121331813366, $list1331813366[12]) | |
630 | + | if (($size1331813366 == 13)) | |
631 | + | then $acc131331813366 | |
608 | 632 | else { | |
609 | - | let $ | |
610 | - | if (($ | |
611 | - | then $ | |
633 | + | let $acc141331813366 = PreviousRewardEntry($acc131331813366, $list1331813366[13]) | |
634 | + | if (($size1331813366 == 14)) | |
635 | + | then $acc141331813366 | |
612 | 636 | else { | |
613 | - | let $ | |
614 | - | if (($ | |
615 | - | then $ | |
637 | + | let $acc151331813366 = PreviousRewardEntry($acc141331813366, $list1331813366[14]) | |
638 | + | if (($size1331813366 == 15)) | |
639 | + | then $acc151331813366 | |
616 | 640 | else { | |
617 | - | let $ | |
618 | - | if (($ | |
619 | - | then $ | |
641 | + | let $acc161331813366 = PreviousRewardEntry($acc151331813366, $list1331813366[15]) | |
642 | + | if (($size1331813366 == 16)) | |
643 | + | then $acc161331813366 | |
620 | 644 | else { | |
621 | - | let $ | |
622 | - | if (($ | |
623 | - | then $ | |
645 | + | let $acc171331813366 = PreviousRewardEntry($acc161331813366, $list1331813366[16]) | |
646 | + | if (($size1331813366 == 17)) | |
647 | + | then $acc171331813366 | |
624 | 648 | else { | |
625 | - | let $ | |
626 | - | if (($ | |
627 | - | then $ | |
649 | + | let $acc181331813366 = PreviousRewardEntry($acc171331813366, $list1331813366[17]) | |
650 | + | if (($size1331813366 == 18)) | |
651 | + | then $acc181331813366 | |
628 | 652 | else { | |
629 | - | let $ | |
630 | - | if (($ | |
631 | - | then $ | |
653 | + | let $acc191331813366 = PreviousRewardEntry($acc181331813366, $list1331813366[18]) | |
654 | + | if (($size1331813366 == 19)) | |
655 | + | then $acc191331813366 | |
632 | 656 | else { | |
633 | - | let $ | |
634 | - | if (($ | |
635 | - | then $ | |
657 | + | let $acc201331813366 = PreviousRewardEntry($acc191331813366, $list1331813366[19]) | |
658 | + | if (($size1331813366 == 20)) | |
659 | + | then $acc201331813366 | |
636 | 660 | else { | |
637 | - | let $ | |
661 | + | let $acc211331813366 = PreviousRewardEntry($acc201331813366, $list1331813366[20]) | |
638 | 662 | throw("List size exceed 20") | |
639 | 663 | } | |
640 | 664 | } | |
641 | 665 | } | |
642 | 666 | } | |
643 | 667 | } | |
644 | 668 | } | |
645 | 669 | } | |
646 | 670 | } | |
647 | 671 | } | |
648 | 672 | } | |
649 | 673 | } | |
650 | 674 | } | |
651 | 675 | } | |
652 | 676 | } | |
653 | 677 | } | |
654 | 678 | } | |
655 | 679 | } | |
656 | 680 | } | |
657 | 681 | } | |
658 | 682 | } | |
659 | 683 | } | |
660 | 684 | } | |
661 | 685 | let currentRewardEntryNew = { | |
662 | - | let $ | |
663 | - | let $ | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
686 | + | let $list1339913445 = currentPools | |
687 | + | let $size1339913445 = size($list1339913445) | |
688 | + | let $acc01339913445 = nil | |
689 | + | if (($size1339913445 == 0)) | |
690 | + | then $acc01339913445 | |
667 | 691 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
692 | + | let $acc11339913445 = CurrentRewardEntry($acc01339913445, $list1339913445[0]) | |
693 | + | if (($size1339913445 == 1)) | |
694 | + | then $acc11339913445 | |
671 | 695 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
696 | + | let $acc21339913445 = CurrentRewardEntry($acc11339913445, $list1339913445[1]) | |
697 | + | if (($size1339913445 == 2)) | |
698 | + | then $acc21339913445 | |
675 | 699 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
700 | + | let $acc31339913445 = CurrentRewardEntry($acc21339913445, $list1339913445[2]) | |
701 | + | if (($size1339913445 == 3)) | |
702 | + | then $acc31339913445 | |
679 | 703 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
704 | + | let $acc41339913445 = CurrentRewardEntry($acc31339913445, $list1339913445[3]) | |
705 | + | if (($size1339913445 == 4)) | |
706 | + | then $acc41339913445 | |
683 | 707 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
708 | + | let $acc51339913445 = CurrentRewardEntry($acc41339913445, $list1339913445[4]) | |
709 | + | if (($size1339913445 == 5)) | |
710 | + | then $acc51339913445 | |
687 | 711 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
712 | + | let $acc61339913445 = CurrentRewardEntry($acc51339913445, $list1339913445[5]) | |
713 | + | if (($size1339913445 == 6)) | |
714 | + | then $acc61339913445 | |
691 | 715 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
716 | + | let $acc71339913445 = CurrentRewardEntry($acc61339913445, $list1339913445[6]) | |
717 | + | if (($size1339913445 == 7)) | |
718 | + | then $acc71339913445 | |
695 | 719 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
720 | + | let $acc81339913445 = CurrentRewardEntry($acc71339913445, $list1339913445[7]) | |
721 | + | if (($size1339913445 == 8)) | |
722 | + | then $acc81339913445 | |
699 | 723 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
724 | + | let $acc91339913445 = CurrentRewardEntry($acc81339913445, $list1339913445[8]) | |
725 | + | if (($size1339913445 == 9)) | |
726 | + | then $acc91339913445 | |
703 | 727 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
728 | + | let $acc101339913445 = CurrentRewardEntry($acc91339913445, $list1339913445[9]) | |
729 | + | if (($size1339913445 == 10)) | |
730 | + | then $acc101339913445 | |
707 | 731 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
732 | + | let $acc111339913445 = CurrentRewardEntry($acc101339913445, $list1339913445[10]) | |
733 | + | if (($size1339913445 == 11)) | |
734 | + | then $acc111339913445 | |
711 | 735 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
736 | + | let $acc121339913445 = CurrentRewardEntry($acc111339913445, $list1339913445[11]) | |
737 | + | if (($size1339913445 == 12)) | |
738 | + | then $acc121339913445 | |
715 | 739 | else { | |
716 | - | let $ | |
717 | - | if (($ | |
718 | - | then $ | |
740 | + | let $acc131339913445 = CurrentRewardEntry($acc121339913445, $list1339913445[12]) | |
741 | + | if (($size1339913445 == 13)) | |
742 | + | then $acc131339913445 | |
719 | 743 | else { | |
720 | - | let $ | |
721 | - | if (($ | |
722 | - | then $ | |
744 | + | let $acc141339913445 = CurrentRewardEntry($acc131339913445, $list1339913445[13]) | |
745 | + | if (($size1339913445 == 14)) | |
746 | + | then $acc141339913445 | |
723 | 747 | else { | |
724 | - | let $ | |
725 | - | if (($ | |
726 | - | then $ | |
748 | + | let $acc151339913445 = CurrentRewardEntry($acc141339913445, $list1339913445[14]) | |
749 | + | if (($size1339913445 == 15)) | |
750 | + | then $acc151339913445 | |
727 | 751 | else { | |
728 | - | let $ | |
729 | - | if (($ | |
730 | - | then $ | |
752 | + | let $acc161339913445 = CurrentRewardEntry($acc151339913445, $list1339913445[15]) | |
753 | + | if (($size1339913445 == 16)) | |
754 | + | then $acc161339913445 | |
731 | 755 | else { | |
732 | - | let $ | |
733 | - | if (($ | |
734 | - | then $ | |
756 | + | let $acc171339913445 = CurrentRewardEntry($acc161339913445, $list1339913445[16]) | |
757 | + | if (($size1339913445 == 17)) | |
758 | + | then $acc171339913445 | |
735 | 759 | else { | |
736 | - | let $ | |
737 | - | if (($ | |
738 | - | then $ | |
760 | + | let $acc181339913445 = CurrentRewardEntry($acc171339913445, $list1339913445[17]) | |
761 | + | if (($size1339913445 == 18)) | |
762 | + | then $acc181339913445 | |
739 | 763 | else { | |
740 | - | let $ | |
741 | - | if (($ | |
742 | - | then $ | |
764 | + | let $acc191339913445 = CurrentRewardEntry($acc181339913445, $list1339913445[18]) | |
765 | + | if (($size1339913445 == 19)) | |
766 | + | then $acc191339913445 | |
743 | 767 | else { | |
744 | - | let $ | |
745 | - | if (($ | |
746 | - | then $ | |
768 | + | let $acc201339913445 = CurrentRewardEntry($acc191339913445, $list1339913445[19]) | |
769 | + | if (($size1339913445 == 20)) | |
770 | + | then $acc201339913445 | |
747 | 771 | else { | |
748 | - | let $ | |
772 | + | let $acc211339913445 = CurrentRewardEntry($acc201339913445, $list1339913445[20]) | |
749 | 773 | throw("List size exceed 20") | |
750 | 774 | } | |
751 | 775 | } | |
752 | 776 | } | |
753 | 777 | } | |
754 | 778 | } | |
755 | 779 | } | |
756 | 780 | } | |
757 | 781 | } | |
758 | 782 | } | |
759 | 783 | } | |
760 | 784 | } | |
761 | 785 | } | |
762 | 786 | } | |
763 | 787 | } | |
764 | 788 | } | |
765 | 789 | } | |
766 | 790 | } | |
767 | 791 | } | |
768 | 792 | } | |
769 | 793 | } | |
770 | 794 | } | |
771 | 795 | } | |
772 | 796 | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
773 | 797 | } | |
774 | 798 | } | |
775 | 799 | ||
776 | 800 | ||
777 | 801 | ||
778 | 802 | @Callable(i) | |
779 | 803 | func shutdown () = if (!(isActive)) | |
780 | 804 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
781 | 805 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
782 | 806 | then throw("Only admin can call this function") | |
783 | 807 | else suspend("Paused by admin") | |
784 | 808 | ||
785 | 809 | ||
786 | 810 | ||
787 | 811 | @Callable(i) | |
788 | 812 | func activate () = if (isActive) | |
789 | 813 | then throw("DApp is already active") | |
790 | 814 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
791 | 815 | then throw("Only admin can call this function") | |
792 | 816 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
793 | 817 | ||
794 | 818 | ||
795 | 819 | @Verifier(tx) | |
796 | 820 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
797 | 821 |
github/deemru/w8io/169f3d6 933.89 ms ◑