tx · 7U2gXgagFegASqNPizi59LYpDD6nuBivpJagzczA9eKZ

3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS:  -0.01400000 Waves

2021.04.15 17:00 [1483651] smart account 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS > SELF 0.00000000 Waves

{ "type": 13, "id": "7U2gXgagFegASqNPizi59LYpDD6nuBivpJagzczA9eKZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1618495284115, "version": 2, "chainId": 84, "sender": "3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS", "senderPublicKey": "93SZf1TATCRxGyBuGyngpQGKcpKZirb2yXLT2RQJ3UKb", "proofs": [ "42qrPxZXLSvMG9cJzgwM6ge3tw5QZpuBDQigKSYkPVNdVpDaQTMs9zQt6BLKdwiVg8cJFoM5Fx5Tdrm3YeNem2Uv" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAAOQAAAAAMYWRtaW5QdWJLZXkxAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkyAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkzAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABFhZG1pblB1YktleVdhbGxldAEAAAAgPndaZVpWyfwpVzO1vA1FLcrMp/iFkg43d1jzYhVSFBIAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAD2tleUxhc3RJbnRlcmVzdAIAAAANbGFzdF9pbnRlcmVzdAAAAAATa2V5VXNlckxhc3RJbnRlcmVzdAIAA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S2V5MQkABEwAAAACBQAAAAxhZG1pblB1YktleTIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkzCQAETAAAAAIFAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wBQAAAANuaWwIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAACFPbmx5IGFkbWluIGNhbiBjYWxsIHRoaXMgZnVuY3Rpb24JAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACWtleUFjdGl2ZQYJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIa2V5Q2F1c2UFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Jl+22Q==", "height": 1483651, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9CQyf3xv6RnTxPJ5exCHYWxWvChgf3c6XCqm2bbYtLMs Next: C5Vft2V9JP7JvXkxvzSPVgpPTmmCQkhNXfpbnq5KfdTE Diff:
OldNewDifferences
6767
6868 let totalVoteShare = 10000000000
6969
70+let kStartHeight = "start_height"
71+
72+let kBasePeriod = "base_period"
73+
74+let kPeriodLength = "period_length"
75+
76+let kUserTotalStruc = "_user_total_struc"
77+
78+let basePeriod = valueOrErrorMessage(getInteger(votingLiteContract, kBasePeriod), "Empty kBasePeriod at voting contract")
79+
80+let startHeight = valueOrErrorMessage(getInteger(votingLiteContract, kStartHeight), "Empty kStartHeight at voting contract")
81+
82+let periodLength = valueOrErrorMessage(getInteger(votingLiteContract, kPeriodLength), "Empty kPeriodLength at voting contract")
83+
84+let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength))
85+
7086 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
7187
7288
101117 func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0)
102118
103119
104-func getUserTotalVoteAmount (user) = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0)
120+func getUserUnvoteAmount (user) = {
121+ let $t037844323 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc))))
122+ then {
123+ let data = split(valueOrErrorMessage(getString(votingLiteContract, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_")
124+ $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
125+ }
126+ else {
127+ let uPoolTotalSWOP = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0)
128+ $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod)
129+ }
130+ let userTotalVoteSWOP = $t037844323._1
131+ let userUnvoted = $t037844323._2
132+ let userUnvotedPeriod = $t037844323._3
133+ if ((userUnvotedPeriod == currVotingPeriod))
134+ then userUnvoted
135+ else 0
136+ }
105137
106138
107139 func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0)
141173 }
142174
143175
176+func getUserTotalVoteAmount (user) = {
177+ let $t057096220 = 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 = $t057096220._1
187+ let userUnvoted = $t057096220._2
188+ let userUnvotedPeriod = $t057096220._3
189+ userTotalVoteSWOP
190+ }
191+
192+
144193 func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = {
145194 let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight))
146195 valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key))
149198
150199 func claimCalc (caller) = {
151200 let lastInterest = getLastInterestInfo()
152- let $t049225002 = getUserInterestInfo(caller, lastInterest)
153- let userLastInterest = $t049225002._1
154- let userSWOPLocked = $t049225002._2
201+ let $t066556735 = getUserInterestInfo(caller, lastInterest)
202+ let userLastInterest = $t066556735._1
203+ let userSWOPLocked = $t066556735._2
155204 let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue)
156205 let userNewInterest = lastInterest
157206 $Tuple2(userNewInterest, claimAmount)
162211 func airDrop () = if (!(isActive))
163212 then throw("DApp is inactive at this moment")
164213 else {
165- let $t052675342 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
166- let pmtAmount = $t052675342._1
167- let pmtAssetId = $t052675342._2
214+ let $t070007075 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
215+ let pmtAmount = $t070007075._1
216+ let pmtAssetId = $t070007075._2
168217 if ((pmtAssetId != SWOP))
169218 then throw("Incorrect pmtAssetId")
170219 else {
181230 func lockSWOP () = if (!(isActive))
182231 then throw("DApp is inactive at this moment")
183232 else {
184- let $t057805855 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
185- let pmtAmount = $t057805855._1
186- let pmtAssetId = $t057805855._2
233+ let $t075137588 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
234+ let pmtAmount = $t075137588._1
235+ let pmtAssetId = $t075137588._2
187236 if ((pmtAssetId != SWOP))
188237 then throw("Incorrect pmtAssetId")
189238 else {
190239 let lastInterest = getLastInterestInfo()
191- let $t059716053 = getUserInterestInfo(i.caller, lastInterest)
192- let userLastInterest = $t059716053._1
193- let userSWOPLocked = $t059716053._2
240+ let $t077047786 = getUserInterestInfo(i.caller, lastInterest)
241+ let userLastInterest = $t077047786._1
242+ let userSWOPLocked = $t077047786._2
194243 let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue)
195244 let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount)
196245 let userNewInterest = lastInterest
210259 else {
211260 let totalSWOPLocked = getTotalSWOPLocked()
212261 let userSWOPLocked = getUserSWOPLocked(i.caller)
213- let $t071377192 = claimCalc(i.caller)
214- let userNewInterest = $t071377192._1
215- let claimAmount = $t071377192._2
262+ let $t088708925 = claimCalc(i.caller)
263+ let userNewInterest = $t088708925._1
264+ let claimAmount = $t088708925._2
216265 let userVoteAmount = getUserTotalVoteAmount(i.caller)
217- let availableFund = (userSWOPLocked - userVoteAmount)
218- if ((withdrawAmount > availableFund))
219- then throw("withdrawAmount > availableFund")
266+ let userUnvoteAmount = getUserUnvoteAmount(i.caller)
267+ if (if ((0 > userUnvoteAmount))
268+ then true
269+ else (0 > userVoteAmount))
270+ then throw("userUnvoteAmount < 0 || userVoteAmount < 0")
220271 else {
221- let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount)
222- let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount)
223- let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
224- 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)
225280 [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+ }
226282 }
227283 }
228284
233289 then throw("DApp is inactive at this moment")
234290 else {
235291 let lastInterest = getLastInterestInfo()
236- let $t083048359 = claimCalc(i.caller)
237- let userNewInterest = $t083048359._1
238- let claimAmount = $t083048359._2
292+ let $t01024110296 = claimCalc(i.caller)
293+ let userNewInterest = $t01024110296._1
294+ let claimAmount = $t01024110296._2
239295 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
240296 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
241297 if ((claimAmount == 0))
252308 let totalSWOPLocked = getTotalSWOPLocked()
253309 let userSWOPLocked = getUserSWOPLocked(i.caller)
254310 let lastInterest = getLastInterestInfo()
255- let $t091389193 = claimCalc(i.caller)
256- let userNewInterest = $t091389193._1
257- let claimAmount = $t091389193._2
311+ let $t01107511130 = claimCalc(i.caller)
312+ let userNewInterest = $t01107511130._1
313+ let claimAmount = $t01107511130._2
258314 let userSWOPLockedNew = (userSWOPLocked + claimAmount)
259315 let totalSWOPLockedNew = (totalSWOPLocked + claimAmount)
260316 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
269325 @Callable(i)
270326 func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive))
271327 then throw("DApp is inactive at this moment")
272- else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop, adminPubKeyWallet], i.callerPublicKey)))
328+ else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
273329 then throw("Only admin can call this function")
274330 else {
275331 func sum (a,b) = (a + b)
287343 }
288344
289345 let sumRewardPrevious = {
290- let $list1097311006 = previousRewards
291- let $size1097311006 = size($list1097311006)
292- let $acc01097311006 = 0
293- if (($size1097311006 == 0))
294- then $acc01097311006
346+ let $list1289712930 = previousRewards
347+ let $size1289712930 = size($list1289712930)
348+ let $acc01289712930 = 0
349+ if (($size1289712930 == 0))
350+ then $acc01289712930
295351 else {
296- let $acc11097311006 = sum($acc01097311006, $list1097311006[0])
297- if (($size1097311006 == 1))
298- then $acc11097311006
352+ let $acc11289712930 = sum($acc01289712930, $list1289712930[0])
353+ if (($size1289712930 == 1))
354+ then $acc11289712930
299355 else {
300- let $acc21097311006 = sum($acc11097311006, $list1097311006[1])
301- if (($size1097311006 == 2))
302- then $acc21097311006
356+ let $acc21289712930 = sum($acc11289712930, $list1289712930[1])
357+ if (($size1289712930 == 2))
358+ then $acc21289712930
303359 else {
304- let $acc31097311006 = sum($acc21097311006, $list1097311006[2])
305- if (($size1097311006 == 3))
306- then $acc31097311006
360+ let $acc31289712930 = sum($acc21289712930, $list1289712930[2])
361+ if (($size1289712930 == 3))
362+ then $acc31289712930
307363 else {
308- let $acc41097311006 = sum($acc31097311006, $list1097311006[3])
309- if (($size1097311006 == 4))
310- then $acc41097311006
364+ let $acc41289712930 = sum($acc31289712930, $list1289712930[3])
365+ if (($size1289712930 == 4))
366+ then $acc41289712930
311367 else {
312- let $acc51097311006 = sum($acc41097311006, $list1097311006[4])
313- if (($size1097311006 == 5))
314- then $acc51097311006
368+ let $acc51289712930 = sum($acc41289712930, $list1289712930[4])
369+ if (($size1289712930 == 5))
370+ then $acc51289712930
315371 else {
316- let $acc61097311006 = sum($acc51097311006, $list1097311006[5])
317- if (($size1097311006 == 6))
318- then $acc61097311006
372+ let $acc61289712930 = sum($acc51289712930, $list1289712930[5])
373+ if (($size1289712930 == 6))
374+ then $acc61289712930
319375 else {
320- let $acc71097311006 = sum($acc61097311006, $list1097311006[6])
321- if (($size1097311006 == 7))
322- then $acc71097311006
376+ let $acc71289712930 = sum($acc61289712930, $list1289712930[6])
377+ if (($size1289712930 == 7))
378+ then $acc71289712930
323379 else {
324- let $acc81097311006 = sum($acc71097311006, $list1097311006[7])
325- if (($size1097311006 == 8))
326- then $acc81097311006
380+ let $acc81289712930 = sum($acc71289712930, $list1289712930[7])
381+ if (($size1289712930 == 8))
382+ then $acc81289712930
327383 else {
328- let $acc91097311006 = sum($acc81097311006, $list1097311006[8])
329- if (($size1097311006 == 9))
330- then $acc91097311006
384+ let $acc91289712930 = sum($acc81289712930, $list1289712930[8])
385+ if (($size1289712930 == 9))
386+ then $acc91289712930
331387 else {
332- let $acc101097311006 = sum($acc91097311006, $list1097311006[9])
333- if (($size1097311006 == 10))
334- then $acc101097311006
388+ let $acc101289712930 = sum($acc91289712930, $list1289712930[9])
389+ if (($size1289712930 == 10))
390+ then $acc101289712930
335391 else {
336- let $acc111097311006 = sum($acc101097311006, $list1097311006[10])
337- if (($size1097311006 == 11))
338- then $acc111097311006
392+ let $acc111289712930 = sum($acc101289712930, $list1289712930[10])
393+ if (($size1289712930 == 11))
394+ then $acc111289712930
339395 else {
340- let $acc121097311006 = sum($acc111097311006, $list1097311006[11])
341- if (($size1097311006 == 12))
342- then $acc121097311006
396+ let $acc121289712930 = sum($acc111289712930, $list1289712930[11])
397+ if (($size1289712930 == 12))
398+ then $acc121289712930
343399 else {
344- let $acc131097311006 = sum($acc121097311006, $list1097311006[12])
345- if (($size1097311006 == 13))
346- then $acc131097311006
400+ let $acc131289712930 = sum($acc121289712930, $list1289712930[12])
401+ if (($size1289712930 == 13))
402+ then $acc131289712930
347403 else {
348- let $acc141097311006 = sum($acc131097311006, $list1097311006[13])
349- if (($size1097311006 == 14))
350- then $acc141097311006
404+ let $acc141289712930 = sum($acc131289712930, $list1289712930[13])
405+ if (($size1289712930 == 14))
406+ then $acc141289712930
351407 else {
352- let $acc151097311006 = sum($acc141097311006, $list1097311006[14])
353- if (($size1097311006 == 15))
354- then $acc151097311006
408+ let $acc151289712930 = sum($acc141289712930, $list1289712930[14])
409+ if (($size1289712930 == 15))
410+ then $acc151289712930
355411 else {
356- let $acc161097311006 = sum($acc151097311006, $list1097311006[15])
357- if (($size1097311006 == 16))
358- then $acc161097311006
412+ let $acc161289712930 = sum($acc151289712930, $list1289712930[15])
413+ if (($size1289712930 == 16))
414+ then $acc161289712930
359415 else {
360- let $acc171097311006 = sum($acc161097311006, $list1097311006[16])
361- if (($size1097311006 == 17))
362- then $acc171097311006
416+ let $acc171289712930 = sum($acc161289712930, $list1289712930[16])
417+ if (($size1289712930 == 17))
418+ then $acc171289712930
363419 else {
364- let $acc181097311006 = sum($acc171097311006, $list1097311006[17])
365- if (($size1097311006 == 18))
366- then $acc181097311006
420+ let $acc181289712930 = sum($acc171289712930, $list1289712930[17])
421+ if (($size1289712930 == 18))
422+ then $acc181289712930
367423 else {
368- let $acc191097311006 = sum($acc181097311006, $list1097311006[18])
369- if (($size1097311006 == 19))
370- then $acc191097311006
424+ let $acc191289712930 = sum($acc181289712930, $list1289712930[18])
425+ if (($size1289712930 == 19))
426+ then $acc191289712930
371427 else {
372- let $acc201097311006 = sum($acc191097311006, $list1097311006[19])
373- if (($size1097311006 == 20))
374- then $acc201097311006
428+ let $acc201289712930 = sum($acc191289712930, $list1289712930[19])
429+ if (($size1289712930 == 20))
430+ then $acc201289712930
375431 else {
376- let $acc211097311006 = sum($acc201097311006, $list1097311006[20])
432+ let $acc211289712930 = sum($acc201289712930, $list1289712930[20])
377433 throw("List size exceed 20")
378434 }
379435 }
398454 }
399455 }
400456 let sumRewardCurrent = {
401- let $list1103511067 = currentRewards
402- let $size1103511067 = size($list1103511067)
403- let $acc01103511067 = 0
404- if (($size1103511067 == 0))
405- then $acc01103511067
457+ let $list1295912991 = currentRewards
458+ let $size1295912991 = size($list1295912991)
459+ let $acc01295912991 = 0
460+ if (($size1295912991 == 0))
461+ then $acc01295912991
406462 else {
407- let $acc11103511067 = sum($acc01103511067, $list1103511067[0])
408- if (($size1103511067 == 1))
409- then $acc11103511067
463+ let $acc11295912991 = sum($acc01295912991, $list1295912991[0])
464+ if (($size1295912991 == 1))
465+ then $acc11295912991
410466 else {
411- let $acc21103511067 = sum($acc11103511067, $list1103511067[1])
412- if (($size1103511067 == 2))
413- then $acc21103511067
467+ let $acc21295912991 = sum($acc11295912991, $list1295912991[1])
468+ if (($size1295912991 == 2))
469+ then $acc21295912991
414470 else {
415- let $acc31103511067 = sum($acc21103511067, $list1103511067[2])
416- if (($size1103511067 == 3))
417- then $acc31103511067
471+ let $acc31295912991 = sum($acc21295912991, $list1295912991[2])
472+ if (($size1295912991 == 3))
473+ then $acc31295912991
418474 else {
419- let $acc41103511067 = sum($acc31103511067, $list1103511067[3])
420- if (($size1103511067 == 4))
421- then $acc41103511067
475+ let $acc41295912991 = sum($acc31295912991, $list1295912991[3])
476+ if (($size1295912991 == 4))
477+ then $acc41295912991
422478 else {
423- let $acc51103511067 = sum($acc41103511067, $list1103511067[4])
424- if (($size1103511067 == 5))
425- then $acc51103511067
479+ let $acc51295912991 = sum($acc41295912991, $list1295912991[4])
480+ if (($size1295912991 == 5))
481+ then $acc51295912991
426482 else {
427- let $acc61103511067 = sum($acc51103511067, $list1103511067[5])
428- if (($size1103511067 == 6))
429- then $acc61103511067
483+ let $acc61295912991 = sum($acc51295912991, $list1295912991[5])
484+ if (($size1295912991 == 6))
485+ then $acc61295912991
430486 else {
431- let $acc71103511067 = sum($acc61103511067, $list1103511067[6])
432- if (($size1103511067 == 7))
433- then $acc71103511067
487+ let $acc71295912991 = sum($acc61295912991, $list1295912991[6])
488+ if (($size1295912991 == 7))
489+ then $acc71295912991
434490 else {
435- let $acc81103511067 = sum($acc71103511067, $list1103511067[7])
436- if (($size1103511067 == 8))
437- then $acc81103511067
491+ let $acc81295912991 = sum($acc71295912991, $list1295912991[7])
492+ if (($size1295912991 == 8))
493+ then $acc81295912991
438494 else {
439- let $acc91103511067 = sum($acc81103511067, $list1103511067[8])
440- if (($size1103511067 == 9))
441- then $acc91103511067
495+ let $acc91295912991 = sum($acc81295912991, $list1295912991[8])
496+ if (($size1295912991 == 9))
497+ then $acc91295912991
442498 else {
443- let $acc101103511067 = sum($acc91103511067, $list1103511067[9])
444- if (($size1103511067 == 10))
445- then $acc101103511067
499+ let $acc101295912991 = sum($acc91295912991, $list1295912991[9])
500+ if (($size1295912991 == 10))
501+ then $acc101295912991
446502 else {
447- let $acc111103511067 = sum($acc101103511067, $list1103511067[10])
448- if (($size1103511067 == 11))
449- then $acc111103511067
503+ let $acc111295912991 = sum($acc101295912991, $list1295912991[10])
504+ if (($size1295912991 == 11))
505+ then $acc111295912991
450506 else {
451- let $acc121103511067 = sum($acc111103511067, $list1103511067[11])
452- if (($size1103511067 == 12))
453- then $acc121103511067
507+ let $acc121295912991 = sum($acc111295912991, $list1295912991[11])
508+ if (($size1295912991 == 12))
509+ then $acc121295912991
454510 else {
455- let $acc131103511067 = sum($acc121103511067, $list1103511067[12])
456- if (($size1103511067 == 13))
457- then $acc131103511067
511+ let $acc131295912991 = sum($acc121295912991, $list1295912991[12])
512+ if (($size1295912991 == 13))
513+ then $acc131295912991
458514 else {
459- let $acc141103511067 = sum($acc131103511067, $list1103511067[13])
460- if (($size1103511067 == 14))
461- then $acc141103511067
515+ let $acc141295912991 = sum($acc131295912991, $list1295912991[13])
516+ if (($size1295912991 == 14))
517+ then $acc141295912991
462518 else {
463- let $acc151103511067 = sum($acc141103511067, $list1103511067[14])
464- if (($size1103511067 == 15))
465- then $acc151103511067
519+ let $acc151295912991 = sum($acc141295912991, $list1295912991[14])
520+ if (($size1295912991 == 15))
521+ then $acc151295912991
466522 else {
467- let $acc161103511067 = sum($acc151103511067, $list1103511067[15])
468- if (($size1103511067 == 16))
469- then $acc161103511067
523+ let $acc161295912991 = sum($acc151295912991, $list1295912991[15])
524+ if (($size1295912991 == 16))
525+ then $acc161295912991
470526 else {
471- let $acc171103511067 = sum($acc161103511067, $list1103511067[16])
472- if (($size1103511067 == 17))
473- then $acc171103511067
527+ let $acc171295912991 = sum($acc161295912991, $list1295912991[16])
528+ if (($size1295912991 == 17))
529+ then $acc171295912991
474530 else {
475- let $acc181103511067 = sum($acc171103511067, $list1103511067[17])
476- if (($size1103511067 == 18))
477- then $acc181103511067
531+ let $acc181295912991 = sum($acc171295912991, $list1295912991[17])
532+ if (($size1295912991 == 18))
533+ then $acc181295912991
478534 else {
479- let $acc191103511067 = sum($acc181103511067, $list1103511067[18])
480- if (($size1103511067 == 19))
481- then $acc191103511067
535+ let $acc191295912991 = sum($acc181295912991, $list1295912991[18])
536+ if (($size1295912991 == 19))
537+ then $acc191295912991
482538 else {
483- let $acc201103511067 = sum($acc191103511067, $list1103511067[19])
484- if (($size1103511067 == 20))
485- then $acc201103511067
539+ let $acc201295912991 = sum($acc191295912991, $list1295912991[19])
540+ if (($size1295912991 == 20))
541+ then $acc201295912991
486542 else {
487- let $acc211103511067 = sum($acc201103511067, $list1103511067[20])
543+ let $acc211295912991 = sum($acc201295912991, $list1295912991[20])
488544 throw("List size exceed 20")
489545 }
490546 }
516572 then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare")
517573 else {
518574 let previousRewardEntryNew = {
519- let $list1137611424 = previousPools
520- let $size1137611424 = size($list1137611424)
521- let $acc01137611424 = nil
522- if (($size1137611424 == 0))
523- then $acc01137611424
575+ let $list1330313351 = previousPools
576+ let $size1330313351 = size($list1330313351)
577+ let $acc01330313351 = nil
578+ if (($size1330313351 == 0))
579+ then $acc01330313351
524580 else {
525- let $acc11137611424 = PreviousRewardEntry($acc01137611424, $list1137611424[0])
526- if (($size1137611424 == 1))
527- then $acc11137611424
581+ let $acc11330313351 = PreviousRewardEntry($acc01330313351, $list1330313351[0])
582+ if (($size1330313351 == 1))
583+ then $acc11330313351
528584 else {
529- let $acc21137611424 = PreviousRewardEntry($acc11137611424, $list1137611424[1])
530- if (($size1137611424 == 2))
531- then $acc21137611424
585+ let $acc21330313351 = PreviousRewardEntry($acc11330313351, $list1330313351[1])
586+ if (($size1330313351 == 2))
587+ then $acc21330313351
532588 else {
533- let $acc31137611424 = PreviousRewardEntry($acc21137611424, $list1137611424[2])
534- if (($size1137611424 == 3))
535- then $acc31137611424
589+ let $acc31330313351 = PreviousRewardEntry($acc21330313351, $list1330313351[2])
590+ if (($size1330313351 == 3))
591+ then $acc31330313351
536592 else {
537- let $acc41137611424 = PreviousRewardEntry($acc31137611424, $list1137611424[3])
538- if (($size1137611424 == 4))
539- then $acc41137611424
593+ let $acc41330313351 = PreviousRewardEntry($acc31330313351, $list1330313351[3])
594+ if (($size1330313351 == 4))
595+ then $acc41330313351
540596 else {
541- let $acc51137611424 = PreviousRewardEntry($acc41137611424, $list1137611424[4])
542- if (($size1137611424 == 5))
543- then $acc51137611424
597+ let $acc51330313351 = PreviousRewardEntry($acc41330313351, $list1330313351[4])
598+ if (($size1330313351 == 5))
599+ then $acc51330313351
544600 else {
545- let $acc61137611424 = PreviousRewardEntry($acc51137611424, $list1137611424[5])
546- if (($size1137611424 == 6))
547- then $acc61137611424
601+ let $acc61330313351 = PreviousRewardEntry($acc51330313351, $list1330313351[5])
602+ if (($size1330313351 == 6))
603+ then $acc61330313351
548604 else {
549- let $acc71137611424 = PreviousRewardEntry($acc61137611424, $list1137611424[6])
550- if (($size1137611424 == 7))
551- then $acc71137611424
605+ let $acc71330313351 = PreviousRewardEntry($acc61330313351, $list1330313351[6])
606+ if (($size1330313351 == 7))
607+ then $acc71330313351
552608 else {
553- let $acc81137611424 = PreviousRewardEntry($acc71137611424, $list1137611424[7])
554- if (($size1137611424 == 8))
555- then $acc81137611424
609+ let $acc81330313351 = PreviousRewardEntry($acc71330313351, $list1330313351[7])
610+ if (($size1330313351 == 8))
611+ then $acc81330313351
556612 else {
557- let $acc91137611424 = PreviousRewardEntry($acc81137611424, $list1137611424[8])
558- if (($size1137611424 == 9))
559- then $acc91137611424
613+ let $acc91330313351 = PreviousRewardEntry($acc81330313351, $list1330313351[8])
614+ if (($size1330313351 == 9))
615+ then $acc91330313351
560616 else {
561- let $acc101137611424 = PreviousRewardEntry($acc91137611424, $list1137611424[9])
562- if (($size1137611424 == 10))
563- then $acc101137611424
617+ let $acc101330313351 = PreviousRewardEntry($acc91330313351, $list1330313351[9])
618+ if (($size1330313351 == 10))
619+ then $acc101330313351
564620 else {
565- let $acc111137611424 = PreviousRewardEntry($acc101137611424, $list1137611424[10])
566- if (($size1137611424 == 11))
567- then $acc111137611424
621+ let $acc111330313351 = PreviousRewardEntry($acc101330313351, $list1330313351[10])
622+ if (($size1330313351 == 11))
623+ then $acc111330313351
568624 else {
569- let $acc121137611424 = PreviousRewardEntry($acc111137611424, $list1137611424[11])
570- if (($size1137611424 == 12))
571- then $acc121137611424
625+ let $acc121330313351 = PreviousRewardEntry($acc111330313351, $list1330313351[11])
626+ if (($size1330313351 == 12))
627+ then $acc121330313351
572628 else {
573- let $acc131137611424 = PreviousRewardEntry($acc121137611424, $list1137611424[12])
574- if (($size1137611424 == 13))
575- then $acc131137611424
629+ let $acc131330313351 = PreviousRewardEntry($acc121330313351, $list1330313351[12])
630+ if (($size1330313351 == 13))
631+ then $acc131330313351
576632 else {
577- let $acc141137611424 = PreviousRewardEntry($acc131137611424, $list1137611424[13])
578- if (($size1137611424 == 14))
579- then $acc141137611424
633+ let $acc141330313351 = PreviousRewardEntry($acc131330313351, $list1330313351[13])
634+ if (($size1330313351 == 14))
635+ then $acc141330313351
580636 else {
581- let $acc151137611424 = PreviousRewardEntry($acc141137611424, $list1137611424[14])
582- if (($size1137611424 == 15))
583- then $acc151137611424
637+ let $acc151330313351 = PreviousRewardEntry($acc141330313351, $list1330313351[14])
638+ if (($size1330313351 == 15))
639+ then $acc151330313351
584640 else {
585- let $acc161137611424 = PreviousRewardEntry($acc151137611424, $list1137611424[15])
586- if (($size1137611424 == 16))
587- then $acc161137611424
641+ let $acc161330313351 = PreviousRewardEntry($acc151330313351, $list1330313351[15])
642+ if (($size1330313351 == 16))
643+ then $acc161330313351
588644 else {
589- let $acc171137611424 = PreviousRewardEntry($acc161137611424, $list1137611424[16])
590- if (($size1137611424 == 17))
591- then $acc171137611424
645+ let $acc171330313351 = PreviousRewardEntry($acc161330313351, $list1330313351[16])
646+ if (($size1330313351 == 17))
647+ then $acc171330313351
592648 else {
593- let $acc181137611424 = PreviousRewardEntry($acc171137611424, $list1137611424[17])
594- if (($size1137611424 == 18))
595- then $acc181137611424
649+ let $acc181330313351 = PreviousRewardEntry($acc171330313351, $list1330313351[17])
650+ if (($size1330313351 == 18))
651+ then $acc181330313351
596652 else {
597- let $acc191137611424 = PreviousRewardEntry($acc181137611424, $list1137611424[18])
598- if (($size1137611424 == 19))
599- then $acc191137611424
653+ let $acc191330313351 = PreviousRewardEntry($acc181330313351, $list1330313351[18])
654+ if (($size1330313351 == 19))
655+ then $acc191330313351
600656 else {
601- let $acc201137611424 = PreviousRewardEntry($acc191137611424, $list1137611424[19])
602- if (($size1137611424 == 20))
603- then $acc201137611424
657+ let $acc201330313351 = PreviousRewardEntry($acc191330313351, $list1330313351[19])
658+ if (($size1330313351 == 20))
659+ then $acc201330313351
604660 else {
605- let $acc211137611424 = PreviousRewardEntry($acc201137611424, $list1137611424[20])
661+ let $acc211330313351 = PreviousRewardEntry($acc201330313351, $list1330313351[20])
606662 throw("List size exceed 20")
607663 }
608664 }
627683 }
628684 }
629685 let currentRewardEntryNew = {
630- let $list1145711503 = currentPools
631- let $size1145711503 = size($list1145711503)
632- let $acc01145711503 = nil
633- if (($size1145711503 == 0))
634- then $acc01145711503
686+ let $list1338413430 = currentPools
687+ let $size1338413430 = size($list1338413430)
688+ let $acc01338413430 = nil
689+ if (($size1338413430 == 0))
690+ then $acc01338413430
635691 else {
636- let $acc11145711503 = CurrentRewardEntry($acc01145711503, $list1145711503[0])
637- if (($size1145711503 == 1))
638- then $acc11145711503
692+ let $acc11338413430 = CurrentRewardEntry($acc01338413430, $list1338413430[0])
693+ if (($size1338413430 == 1))
694+ then $acc11338413430
639695 else {
640- let $acc21145711503 = CurrentRewardEntry($acc11145711503, $list1145711503[1])
641- if (($size1145711503 == 2))
642- then $acc21145711503
696+ let $acc21338413430 = CurrentRewardEntry($acc11338413430, $list1338413430[1])
697+ if (($size1338413430 == 2))
698+ then $acc21338413430
643699 else {
644- let $acc31145711503 = CurrentRewardEntry($acc21145711503, $list1145711503[2])
645- if (($size1145711503 == 3))
646- then $acc31145711503
700+ let $acc31338413430 = CurrentRewardEntry($acc21338413430, $list1338413430[2])
701+ if (($size1338413430 == 3))
702+ then $acc31338413430
647703 else {
648- let $acc41145711503 = CurrentRewardEntry($acc31145711503, $list1145711503[3])
649- if (($size1145711503 == 4))
650- then $acc41145711503
704+ let $acc41338413430 = CurrentRewardEntry($acc31338413430, $list1338413430[3])
705+ if (($size1338413430 == 4))
706+ then $acc41338413430
651707 else {
652- let $acc51145711503 = CurrentRewardEntry($acc41145711503, $list1145711503[4])
653- if (($size1145711503 == 5))
654- then $acc51145711503
708+ let $acc51338413430 = CurrentRewardEntry($acc41338413430, $list1338413430[4])
709+ if (($size1338413430 == 5))
710+ then $acc51338413430
655711 else {
656- let $acc61145711503 = CurrentRewardEntry($acc51145711503, $list1145711503[5])
657- if (($size1145711503 == 6))
658- then $acc61145711503
712+ let $acc61338413430 = CurrentRewardEntry($acc51338413430, $list1338413430[5])
713+ if (($size1338413430 == 6))
714+ then $acc61338413430
659715 else {
660- let $acc71145711503 = CurrentRewardEntry($acc61145711503, $list1145711503[6])
661- if (($size1145711503 == 7))
662- then $acc71145711503
716+ let $acc71338413430 = CurrentRewardEntry($acc61338413430, $list1338413430[6])
717+ if (($size1338413430 == 7))
718+ then $acc71338413430
663719 else {
664- let $acc81145711503 = CurrentRewardEntry($acc71145711503, $list1145711503[7])
665- if (($size1145711503 == 8))
666- then $acc81145711503
720+ let $acc81338413430 = CurrentRewardEntry($acc71338413430, $list1338413430[7])
721+ if (($size1338413430 == 8))
722+ then $acc81338413430
667723 else {
668- let $acc91145711503 = CurrentRewardEntry($acc81145711503, $list1145711503[8])
669- if (($size1145711503 == 9))
670- then $acc91145711503
724+ let $acc91338413430 = CurrentRewardEntry($acc81338413430, $list1338413430[8])
725+ if (($size1338413430 == 9))
726+ then $acc91338413430
671727 else {
672- let $acc101145711503 = CurrentRewardEntry($acc91145711503, $list1145711503[9])
673- if (($size1145711503 == 10))
674- then $acc101145711503
728+ let $acc101338413430 = CurrentRewardEntry($acc91338413430, $list1338413430[9])
729+ if (($size1338413430 == 10))
730+ then $acc101338413430
675731 else {
676- let $acc111145711503 = CurrentRewardEntry($acc101145711503, $list1145711503[10])
677- if (($size1145711503 == 11))
678- then $acc111145711503
732+ let $acc111338413430 = CurrentRewardEntry($acc101338413430, $list1338413430[10])
733+ if (($size1338413430 == 11))
734+ then $acc111338413430
679735 else {
680- let $acc121145711503 = CurrentRewardEntry($acc111145711503, $list1145711503[11])
681- if (($size1145711503 == 12))
682- then $acc121145711503
736+ let $acc121338413430 = CurrentRewardEntry($acc111338413430, $list1338413430[11])
737+ if (($size1338413430 == 12))
738+ then $acc121338413430
683739 else {
684- let $acc131145711503 = CurrentRewardEntry($acc121145711503, $list1145711503[12])
685- if (($size1145711503 == 13))
686- then $acc131145711503
740+ let $acc131338413430 = CurrentRewardEntry($acc121338413430, $list1338413430[12])
741+ if (($size1338413430 == 13))
742+ then $acc131338413430
687743 else {
688- let $acc141145711503 = CurrentRewardEntry($acc131145711503, $list1145711503[13])
689- if (($size1145711503 == 14))
690- then $acc141145711503
744+ let $acc141338413430 = CurrentRewardEntry($acc131338413430, $list1338413430[13])
745+ if (($size1338413430 == 14))
746+ then $acc141338413430
691747 else {
692- let $acc151145711503 = CurrentRewardEntry($acc141145711503, $list1145711503[14])
693- if (($size1145711503 == 15))
694- then $acc151145711503
748+ let $acc151338413430 = CurrentRewardEntry($acc141338413430, $list1338413430[14])
749+ if (($size1338413430 == 15))
750+ then $acc151338413430
695751 else {
696- let $acc161145711503 = CurrentRewardEntry($acc151145711503, $list1145711503[15])
697- if (($size1145711503 == 16))
698- then $acc161145711503
752+ let $acc161338413430 = CurrentRewardEntry($acc151338413430, $list1338413430[15])
753+ if (($size1338413430 == 16))
754+ then $acc161338413430
699755 else {
700- let $acc171145711503 = CurrentRewardEntry($acc161145711503, $list1145711503[16])
701- if (($size1145711503 == 17))
702- then $acc171145711503
756+ let $acc171338413430 = CurrentRewardEntry($acc161338413430, $list1338413430[16])
757+ if (($size1338413430 == 17))
758+ then $acc171338413430
703759 else {
704- let $acc181145711503 = CurrentRewardEntry($acc171145711503, $list1145711503[17])
705- if (($size1145711503 == 18))
706- then $acc181145711503
760+ let $acc181338413430 = CurrentRewardEntry($acc171338413430, $list1338413430[17])
761+ if (($size1338413430 == 18))
762+ then $acc181338413430
707763 else {
708- let $acc191145711503 = CurrentRewardEntry($acc181145711503, $list1145711503[18])
709- if (($size1145711503 == 19))
710- then $acc191145711503
764+ let $acc191338413430 = CurrentRewardEntry($acc181338413430, $list1338413430[18])
765+ if (($size1338413430 == 19))
766+ then $acc191338413430
711767 else {
712- let $acc201145711503 = CurrentRewardEntry($acc191145711503, $list1145711503[19])
713- if (($size1145711503 == 20))
714- then $acc201145711503
768+ let $acc201338413430 = CurrentRewardEntry($acc191338413430, $list1338413430[19])
769+ if (($size1338413430 == 20))
770+ then $acc201338413430
715771 else {
716- let $acc211145711503 = CurrentRewardEntry($acc201145711503, $list1145711503[20])
772+ let $acc211338413430 = CurrentRewardEntry($acc201338413430, $list1338413430[20])
717773 throw("List size exceed 20")
718774 }
719775 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
55
66 let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
77
88 let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
99
1010 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1111
1212 let adminPubKeyWallet = base58'5CqqMkmtXXt35KRH9LdWA3ap6TffPvTT5SHQzYrVFbBw'
1313
1414 let keyActive = "active"
1515
1616 let keyCause = "shutdown_cause"
1717
1818 let keyLastInterest = "last_interest"
1919
2020 let keyUserLastInterest = "_last_interest"
2121
2222 let keyUserSWOPLocked = "_SWOP_amount"
2323
2424 let keyUserGetBackHeight = "_getBackHeight"
2525
2626 let keyTotalSWOPLocked = "total_SWOP_amount"
2727
2828 let kUserTotalVoteSWOP = "_user_total_SWOP_vote"
2929
3030 let keyUserVoteOptionAmount = "_SWOP_option_amount"
3131
3232 let keyTotalVoteOptionAmount = "total_SWOP_option_amount"
3333
3434 let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount"
3535
3636 let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount"
3737
3838 let keyVoteName = "vote_name"
3939
4040 let keyOptionName = "_option_name"
4141
4242 let keyVotingStartHeight = "_startHeight"
4343
4444 let keyVoteDuration = "_vote_duration"
4545
4646 let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward"
4747
4848 let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
4949
5050 let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
5151
5252 let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
5353
5454 let keyRewardUpdateHeight = "reward_update_height"
5555
5656 let isActive = valueOrElse(getBoolean(this, keyActive), true)
5757
5858 let farmingSWOPAddress = Address(base58'3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC')
5959
6060 let votingLiteContract = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN')
6161
6262 let keySWOPid = "SWOP_id"
6363
6464 let SWOP = fromBase58String(getStringValue(farmingSWOPAddress, keySWOPid))
6565
6666 let scaleValue = 100000000
6767
6868 let totalVoteShare = 10000000000
6969
70+let kStartHeight = "start_height"
71+
72+let kBasePeriod = "base_period"
73+
74+let kPeriodLength = "period_length"
75+
76+let kUserTotalStruc = "_user_total_struc"
77+
78+let basePeriod = valueOrErrorMessage(getInteger(votingLiteContract, kBasePeriod), "Empty kBasePeriod at voting contract")
79+
80+let startHeight = valueOrErrorMessage(getInteger(votingLiteContract, kStartHeight), "Empty kStartHeight at voting contract")
81+
82+let periodLength = valueOrErrorMessage(getInteger(votingLiteContract, kPeriodLength), "Empty kPeriodLength at voting contract")
83+
84+let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength))
85+
7086 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
7187
7288
7389 func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount")
7490
7591
7692 func getLastInterestInfo () = {
7793 let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0)
7894 lastInterest
7995 }
8096
8197
8298 func getUserSWOPLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPLocked)), 0)
8399
84100
85101 func getUserSWOPClaimedAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPClaimedAmount)), 0)
86102
87103
88104 func getUserInterestInfo (user,lastInterest) = {
89105 let userSWOPAmount = getUserSWOPLocked(user)
90106 let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest))
91107 let userLastInterestValue = match userLastInterest {
92108 case userLastInterest: Int =>
93109 userLastInterest
94110 case _ =>
95111 lastInterest
96112 }
97113 $Tuple2(userLastInterestValue, userSWOPAmount)
98114 }
99115
100116
101117 func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0)
102118
103119
104-func getUserTotalVoteAmount (user) = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0)
120+func getUserUnvoteAmount (user) = {
121+ let $t037844323 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc))))
122+ then {
123+ let data = split(valueOrErrorMessage(getString(votingLiteContract, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_")
124+ $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2]))
125+ }
126+ else {
127+ let uPoolTotalSWOP = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0)
128+ $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod)
129+ }
130+ let userTotalVoteSWOP = $t037844323._1
131+ let userUnvoted = $t037844323._2
132+ let userUnvotedPeriod = $t037844323._3
133+ if ((userUnvotedPeriod == currVotingPeriod))
134+ then userUnvoted
135+ else 0
136+ }
105137
106138
107139 func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0)
108140
109141
110142 func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0)
111143
112144
113145 func getVoteOptionAmount (user,voteName,option) = {
114146 let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount))
115147 let uvoa = match userVoteOptionAmount {
116148 case uvoa: Int =>
117149 uvoa
118150 case uvoa: Unit =>
119151 0
120152 case _ =>
121153 throw("Match error")
122154 }
123155 valueOrErrorMessage(uvoa, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount))
124156 }
125157
126158
127159 func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration))
128160
129161
130162 func getTotalVoteOptionAmount (voteName,option) = {
131163 let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount))
132164 let tvoa = match totalVoteOptionAmount {
133165 case tvoa: Int =>
134166 tvoa
135167 case tvoa: Unit =>
136168 0
137169 case _ =>
138170 throw("Match error")
139171 }
140172 tvoa
141173 }
142174
143175
176+func getUserTotalVoteAmount (user) = {
177+ let $t057096220 = 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 = $t057096220._1
187+ let userUnvoted = $t057096220._2
188+ let userUnvotedPeriod = $t057096220._3
189+ userTotalVoteSWOP
190+ }
191+
192+
144193 func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = {
145194 let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight))
146195 valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key))
147196 }
148197
149198
150199 func claimCalc (caller) = {
151200 let lastInterest = getLastInterestInfo()
152- let $t049225002 = getUserInterestInfo(caller, lastInterest)
153- let userLastInterest = $t049225002._1
154- let userSWOPLocked = $t049225002._2
201+ let $t066556735 = getUserInterestInfo(caller, lastInterest)
202+ let userLastInterest = $t066556735._1
203+ let userSWOPLocked = $t066556735._2
155204 let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue)
156205 let userNewInterest = lastInterest
157206 $Tuple2(userNewInterest, claimAmount)
158207 }
159208
160209
161210 @Callable(i)
162211 func airDrop () = if (!(isActive))
163212 then throw("DApp is inactive at this moment")
164213 else {
165- let $t052675342 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
166- let pmtAmount = $t052675342._1
167- let pmtAssetId = $t052675342._2
214+ let $t070007075 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
215+ let pmtAmount = $t070007075._1
216+ let pmtAssetId = $t070007075._2
168217 if ((pmtAssetId != SWOP))
169218 then throw("Incorrect pmtAssetId")
170219 else {
171220 let totalSWOPLocked = getTotalSWOPLocked()
172221 let lastInterest = getLastInterestInfo()
173222 let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPLocked))
174223 [IntegerEntry(keyLastInterest, interestNew)]
175224 }
176225 }
177226
178227
179228
180229 @Callable(i)
181230 func lockSWOP () = if (!(isActive))
182231 then throw("DApp is inactive at this moment")
183232 else {
184- let $t057805855 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
185- let pmtAmount = $t057805855._1
186- let pmtAssetId = $t057805855._2
233+ let $t075137588 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
234+ let pmtAmount = $t075137588._1
235+ let pmtAssetId = $t075137588._2
187236 if ((pmtAssetId != SWOP))
188237 then throw("Incorrect pmtAssetId")
189238 else {
190239 let lastInterest = getLastInterestInfo()
191- let $t059716053 = getUserInterestInfo(i.caller, lastInterest)
192- let userLastInterest = $t059716053._1
193- let userSWOPLocked = $t059716053._2
240+ let $t077047786 = getUserInterestInfo(i.caller, lastInterest)
241+ let userLastInterest = $t077047786._1
242+ let userSWOPLocked = $t077047786._2
194243 let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue)
195244 let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount)
196245 let userNewInterest = lastInterest
197246 let totalSWOPLocked = getTotalSWOPLocked()
198247 let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount)
199248 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
200249 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
201250 [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)]
202251 }
203252 }
204253
205254
206255
207256 @Callable(i)
208257 func withdrawSWOP (withdrawAmount) = if (!(isActive))
209258 then throw("DApp is inactive at this moment")
210259 else {
211260 let totalSWOPLocked = getTotalSWOPLocked()
212261 let userSWOPLocked = getUserSWOPLocked(i.caller)
213- let $t071377192 = claimCalc(i.caller)
214- let userNewInterest = $t071377192._1
215- let claimAmount = $t071377192._2
262+ let $t088708925 = claimCalc(i.caller)
263+ let userNewInterest = $t088708925._1
264+ let claimAmount = $t088708925._2
216265 let userVoteAmount = getUserTotalVoteAmount(i.caller)
217- let availableFund = (userSWOPLocked - userVoteAmount)
218- if ((withdrawAmount > availableFund))
219- then throw("withdrawAmount > availableFund")
266+ let userUnvoteAmount = getUserUnvoteAmount(i.caller)
267+ if (if ((0 > userUnvoteAmount))
268+ then true
269+ else (0 > userVoteAmount))
270+ then throw("userUnvoteAmount < 0 || userVoteAmount < 0")
220271 else {
221- let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount)
222- let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount)
223- let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
224- 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)
225280 [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+ }
226282 }
227283 }
228284
229285
230286
231287 @Callable(i)
232288 func claimAndWithdrawSWOP () = if (!(isActive))
233289 then throw("DApp is inactive at this moment")
234290 else {
235291 let lastInterest = getLastInterestInfo()
236- let $t083048359 = claimCalc(i.caller)
237- let userNewInterest = $t083048359._1
238- let claimAmount = $t083048359._2
292+ let $t01024110296 = claimCalc(i.caller)
293+ let userNewInterest = $t01024110296._1
294+ let claimAmount = $t01024110296._2
239295 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
240296 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
241297 if ((claimAmount == 0))
242298 then throw("You have 0 available SWOP")
243299 else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, claimAmount, SWOP)]
244300 }
245301
246302
247303
248304 @Callable(i)
249305 func claimAndStakeSWOP () = if (!(isActive))
250306 then throw("DApp is inactive at this moment")
251307 else {
252308 let totalSWOPLocked = getTotalSWOPLocked()
253309 let userSWOPLocked = getUserSWOPLocked(i.caller)
254310 let lastInterest = getLastInterestInfo()
255- let $t091389193 = claimCalc(i.caller)
256- let userNewInterest = $t091389193._1
257- let claimAmount = $t091389193._2
311+ let $t01107511130 = claimCalc(i.caller)
312+ let userNewInterest = $t01107511130._1
313+ let claimAmount = $t01107511130._2
258314 let userSWOPLockedNew = (userSWOPLocked + claimAmount)
259315 let totalSWOPLockedNew = (totalSWOPLocked + claimAmount)
260316 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
261317 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
262318 if ((claimAmount == 0))
263319 then throw("You have 0 available SWOP")
264320 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)]
265321 }
266322
267323
268324
269325 @Callable(i)
270326 func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive))
271327 then throw("DApp is inactive at this moment")
272- else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop, adminPubKeyWallet], i.callerPublicKey)))
328+ else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
273329 then throw("Only admin can call this function")
274330 else {
275331 func sum (a,b) = (a + b)
276332
277333 func PreviousRewardEntry (accumulated,pool) = {
278334 let poolIndex = value(indexOf(previousPools, pool))
279335 let poolReward = previousRewards[poolIndex]
280336 IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated
281337 }
282338
283339 func CurrentRewardEntry (accumulated,pool) = {
284340 let poolIndex = value(indexOf(currentPools, pool))
285341 let poolReward = currentRewards[poolIndex]
286342 IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated
287343 }
288344
289345 let sumRewardPrevious = {
290- let $list1097311006 = previousRewards
291- let $size1097311006 = size($list1097311006)
292- let $acc01097311006 = 0
293- if (($size1097311006 == 0))
294- then $acc01097311006
346+ let $list1289712930 = previousRewards
347+ let $size1289712930 = size($list1289712930)
348+ let $acc01289712930 = 0
349+ if (($size1289712930 == 0))
350+ then $acc01289712930
295351 else {
296- let $acc11097311006 = sum($acc01097311006, $list1097311006[0])
297- if (($size1097311006 == 1))
298- then $acc11097311006
352+ let $acc11289712930 = sum($acc01289712930, $list1289712930[0])
353+ if (($size1289712930 == 1))
354+ then $acc11289712930
299355 else {
300- let $acc21097311006 = sum($acc11097311006, $list1097311006[1])
301- if (($size1097311006 == 2))
302- then $acc21097311006
356+ let $acc21289712930 = sum($acc11289712930, $list1289712930[1])
357+ if (($size1289712930 == 2))
358+ then $acc21289712930
303359 else {
304- let $acc31097311006 = sum($acc21097311006, $list1097311006[2])
305- if (($size1097311006 == 3))
306- then $acc31097311006
360+ let $acc31289712930 = sum($acc21289712930, $list1289712930[2])
361+ if (($size1289712930 == 3))
362+ then $acc31289712930
307363 else {
308- let $acc41097311006 = sum($acc31097311006, $list1097311006[3])
309- if (($size1097311006 == 4))
310- then $acc41097311006
364+ let $acc41289712930 = sum($acc31289712930, $list1289712930[3])
365+ if (($size1289712930 == 4))
366+ then $acc41289712930
311367 else {
312- let $acc51097311006 = sum($acc41097311006, $list1097311006[4])
313- if (($size1097311006 == 5))
314- then $acc51097311006
368+ let $acc51289712930 = sum($acc41289712930, $list1289712930[4])
369+ if (($size1289712930 == 5))
370+ then $acc51289712930
315371 else {
316- let $acc61097311006 = sum($acc51097311006, $list1097311006[5])
317- if (($size1097311006 == 6))
318- then $acc61097311006
372+ let $acc61289712930 = sum($acc51289712930, $list1289712930[5])
373+ if (($size1289712930 == 6))
374+ then $acc61289712930
319375 else {
320- let $acc71097311006 = sum($acc61097311006, $list1097311006[6])
321- if (($size1097311006 == 7))
322- then $acc71097311006
376+ let $acc71289712930 = sum($acc61289712930, $list1289712930[6])
377+ if (($size1289712930 == 7))
378+ then $acc71289712930
323379 else {
324- let $acc81097311006 = sum($acc71097311006, $list1097311006[7])
325- if (($size1097311006 == 8))
326- then $acc81097311006
380+ let $acc81289712930 = sum($acc71289712930, $list1289712930[7])
381+ if (($size1289712930 == 8))
382+ then $acc81289712930
327383 else {
328- let $acc91097311006 = sum($acc81097311006, $list1097311006[8])
329- if (($size1097311006 == 9))
330- then $acc91097311006
384+ let $acc91289712930 = sum($acc81289712930, $list1289712930[8])
385+ if (($size1289712930 == 9))
386+ then $acc91289712930
331387 else {
332- let $acc101097311006 = sum($acc91097311006, $list1097311006[9])
333- if (($size1097311006 == 10))
334- then $acc101097311006
388+ let $acc101289712930 = sum($acc91289712930, $list1289712930[9])
389+ if (($size1289712930 == 10))
390+ then $acc101289712930
335391 else {
336- let $acc111097311006 = sum($acc101097311006, $list1097311006[10])
337- if (($size1097311006 == 11))
338- then $acc111097311006
392+ let $acc111289712930 = sum($acc101289712930, $list1289712930[10])
393+ if (($size1289712930 == 11))
394+ then $acc111289712930
339395 else {
340- let $acc121097311006 = sum($acc111097311006, $list1097311006[11])
341- if (($size1097311006 == 12))
342- then $acc121097311006
396+ let $acc121289712930 = sum($acc111289712930, $list1289712930[11])
397+ if (($size1289712930 == 12))
398+ then $acc121289712930
343399 else {
344- let $acc131097311006 = sum($acc121097311006, $list1097311006[12])
345- if (($size1097311006 == 13))
346- then $acc131097311006
400+ let $acc131289712930 = sum($acc121289712930, $list1289712930[12])
401+ if (($size1289712930 == 13))
402+ then $acc131289712930
347403 else {
348- let $acc141097311006 = sum($acc131097311006, $list1097311006[13])
349- if (($size1097311006 == 14))
350- then $acc141097311006
404+ let $acc141289712930 = sum($acc131289712930, $list1289712930[13])
405+ if (($size1289712930 == 14))
406+ then $acc141289712930
351407 else {
352- let $acc151097311006 = sum($acc141097311006, $list1097311006[14])
353- if (($size1097311006 == 15))
354- then $acc151097311006
408+ let $acc151289712930 = sum($acc141289712930, $list1289712930[14])
409+ if (($size1289712930 == 15))
410+ then $acc151289712930
355411 else {
356- let $acc161097311006 = sum($acc151097311006, $list1097311006[15])
357- if (($size1097311006 == 16))
358- then $acc161097311006
412+ let $acc161289712930 = sum($acc151289712930, $list1289712930[15])
413+ if (($size1289712930 == 16))
414+ then $acc161289712930
359415 else {
360- let $acc171097311006 = sum($acc161097311006, $list1097311006[16])
361- if (($size1097311006 == 17))
362- then $acc171097311006
416+ let $acc171289712930 = sum($acc161289712930, $list1289712930[16])
417+ if (($size1289712930 == 17))
418+ then $acc171289712930
363419 else {
364- let $acc181097311006 = sum($acc171097311006, $list1097311006[17])
365- if (($size1097311006 == 18))
366- then $acc181097311006
420+ let $acc181289712930 = sum($acc171289712930, $list1289712930[17])
421+ if (($size1289712930 == 18))
422+ then $acc181289712930
367423 else {
368- let $acc191097311006 = sum($acc181097311006, $list1097311006[18])
369- if (($size1097311006 == 19))
370- then $acc191097311006
424+ let $acc191289712930 = sum($acc181289712930, $list1289712930[18])
425+ if (($size1289712930 == 19))
426+ then $acc191289712930
371427 else {
372- let $acc201097311006 = sum($acc191097311006, $list1097311006[19])
373- if (($size1097311006 == 20))
374- then $acc201097311006
428+ let $acc201289712930 = sum($acc191289712930, $list1289712930[19])
429+ if (($size1289712930 == 20))
430+ then $acc201289712930
375431 else {
376- let $acc211097311006 = sum($acc201097311006, $list1097311006[20])
432+ let $acc211289712930 = sum($acc201289712930, $list1289712930[20])
377433 throw("List size exceed 20")
378434 }
379435 }
380436 }
381437 }
382438 }
383439 }
384440 }
385441 }
386442 }
387443 }
388444 }
389445 }
390446 }
391447 }
392448 }
393449 }
394450 }
395451 }
396452 }
397453 }
398454 }
399455 }
400456 let sumRewardCurrent = {
401- let $list1103511067 = currentRewards
402- let $size1103511067 = size($list1103511067)
403- let $acc01103511067 = 0
404- if (($size1103511067 == 0))
405- then $acc01103511067
457+ let $list1295912991 = currentRewards
458+ let $size1295912991 = size($list1295912991)
459+ let $acc01295912991 = 0
460+ if (($size1295912991 == 0))
461+ then $acc01295912991
406462 else {
407- let $acc11103511067 = sum($acc01103511067, $list1103511067[0])
408- if (($size1103511067 == 1))
409- then $acc11103511067
463+ let $acc11295912991 = sum($acc01295912991, $list1295912991[0])
464+ if (($size1295912991 == 1))
465+ then $acc11295912991
410466 else {
411- let $acc21103511067 = sum($acc11103511067, $list1103511067[1])
412- if (($size1103511067 == 2))
413- then $acc21103511067
467+ let $acc21295912991 = sum($acc11295912991, $list1295912991[1])
468+ if (($size1295912991 == 2))
469+ then $acc21295912991
414470 else {
415- let $acc31103511067 = sum($acc21103511067, $list1103511067[2])
416- if (($size1103511067 == 3))
417- then $acc31103511067
471+ let $acc31295912991 = sum($acc21295912991, $list1295912991[2])
472+ if (($size1295912991 == 3))
473+ then $acc31295912991
418474 else {
419- let $acc41103511067 = sum($acc31103511067, $list1103511067[3])
420- if (($size1103511067 == 4))
421- then $acc41103511067
475+ let $acc41295912991 = sum($acc31295912991, $list1295912991[3])
476+ if (($size1295912991 == 4))
477+ then $acc41295912991
422478 else {
423- let $acc51103511067 = sum($acc41103511067, $list1103511067[4])
424- if (($size1103511067 == 5))
425- then $acc51103511067
479+ let $acc51295912991 = sum($acc41295912991, $list1295912991[4])
480+ if (($size1295912991 == 5))
481+ then $acc51295912991
426482 else {
427- let $acc61103511067 = sum($acc51103511067, $list1103511067[5])
428- if (($size1103511067 == 6))
429- then $acc61103511067
483+ let $acc61295912991 = sum($acc51295912991, $list1295912991[5])
484+ if (($size1295912991 == 6))
485+ then $acc61295912991
430486 else {
431- let $acc71103511067 = sum($acc61103511067, $list1103511067[6])
432- if (($size1103511067 == 7))
433- then $acc71103511067
487+ let $acc71295912991 = sum($acc61295912991, $list1295912991[6])
488+ if (($size1295912991 == 7))
489+ then $acc71295912991
434490 else {
435- let $acc81103511067 = sum($acc71103511067, $list1103511067[7])
436- if (($size1103511067 == 8))
437- then $acc81103511067
491+ let $acc81295912991 = sum($acc71295912991, $list1295912991[7])
492+ if (($size1295912991 == 8))
493+ then $acc81295912991
438494 else {
439- let $acc91103511067 = sum($acc81103511067, $list1103511067[8])
440- if (($size1103511067 == 9))
441- then $acc91103511067
495+ let $acc91295912991 = sum($acc81295912991, $list1295912991[8])
496+ if (($size1295912991 == 9))
497+ then $acc91295912991
442498 else {
443- let $acc101103511067 = sum($acc91103511067, $list1103511067[9])
444- if (($size1103511067 == 10))
445- then $acc101103511067
499+ let $acc101295912991 = sum($acc91295912991, $list1295912991[9])
500+ if (($size1295912991 == 10))
501+ then $acc101295912991
446502 else {
447- let $acc111103511067 = sum($acc101103511067, $list1103511067[10])
448- if (($size1103511067 == 11))
449- then $acc111103511067
503+ let $acc111295912991 = sum($acc101295912991, $list1295912991[10])
504+ if (($size1295912991 == 11))
505+ then $acc111295912991
450506 else {
451- let $acc121103511067 = sum($acc111103511067, $list1103511067[11])
452- if (($size1103511067 == 12))
453- then $acc121103511067
507+ let $acc121295912991 = sum($acc111295912991, $list1295912991[11])
508+ if (($size1295912991 == 12))
509+ then $acc121295912991
454510 else {
455- let $acc131103511067 = sum($acc121103511067, $list1103511067[12])
456- if (($size1103511067 == 13))
457- then $acc131103511067
511+ let $acc131295912991 = sum($acc121295912991, $list1295912991[12])
512+ if (($size1295912991 == 13))
513+ then $acc131295912991
458514 else {
459- let $acc141103511067 = sum($acc131103511067, $list1103511067[13])
460- if (($size1103511067 == 14))
461- then $acc141103511067
515+ let $acc141295912991 = sum($acc131295912991, $list1295912991[13])
516+ if (($size1295912991 == 14))
517+ then $acc141295912991
462518 else {
463- let $acc151103511067 = sum($acc141103511067, $list1103511067[14])
464- if (($size1103511067 == 15))
465- then $acc151103511067
519+ let $acc151295912991 = sum($acc141295912991, $list1295912991[14])
520+ if (($size1295912991 == 15))
521+ then $acc151295912991
466522 else {
467- let $acc161103511067 = sum($acc151103511067, $list1103511067[15])
468- if (($size1103511067 == 16))
469- then $acc161103511067
523+ let $acc161295912991 = sum($acc151295912991, $list1295912991[15])
524+ if (($size1295912991 == 16))
525+ then $acc161295912991
470526 else {
471- let $acc171103511067 = sum($acc161103511067, $list1103511067[16])
472- if (($size1103511067 == 17))
473- then $acc171103511067
527+ let $acc171295912991 = sum($acc161295912991, $list1295912991[16])
528+ if (($size1295912991 == 17))
529+ then $acc171295912991
474530 else {
475- let $acc181103511067 = sum($acc171103511067, $list1103511067[17])
476- if (($size1103511067 == 18))
477- then $acc181103511067
531+ let $acc181295912991 = sum($acc171295912991, $list1295912991[17])
532+ if (($size1295912991 == 18))
533+ then $acc181295912991
478534 else {
479- let $acc191103511067 = sum($acc181103511067, $list1103511067[18])
480- if (($size1103511067 == 19))
481- then $acc191103511067
535+ let $acc191295912991 = sum($acc181295912991, $list1295912991[18])
536+ if (($size1295912991 == 19))
537+ then $acc191295912991
482538 else {
483- let $acc201103511067 = sum($acc191103511067, $list1103511067[19])
484- if (($size1103511067 == 20))
485- then $acc201103511067
539+ let $acc201295912991 = sum($acc191295912991, $list1295912991[19])
540+ if (($size1295912991 == 20))
541+ then $acc201295912991
486542 else {
487- let $acc211103511067 = sum($acc201103511067, $list1103511067[20])
543+ let $acc211295912991 = sum($acc201295912991, $list1295912991[20])
488544 throw("List size exceed 20")
489545 }
490546 }
491547 }
492548 }
493549 }
494550 }
495551 }
496552 }
497553 }
498554 }
499555 }
500556 }
501557 }
502558 }
503559 }
504560 }
505561 }
506562 }
507563 }
508564 }
509565 }
510566 }
511567 if ((height > rewardUpdateHeight))
512568 then throw("rewardUpdateHeight < height")
513569 else if (if ((sumRewardPrevious != totalVoteShare))
514570 then true
515571 else (sumRewardCurrent != totalVoteShare))
516572 then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare")
517573 else {
518574 let previousRewardEntryNew = {
519- let $list1137611424 = previousPools
520- let $size1137611424 = size($list1137611424)
521- let $acc01137611424 = nil
522- if (($size1137611424 == 0))
523- then $acc01137611424
575+ let $list1330313351 = previousPools
576+ let $size1330313351 = size($list1330313351)
577+ let $acc01330313351 = nil
578+ if (($size1330313351 == 0))
579+ then $acc01330313351
524580 else {
525- let $acc11137611424 = PreviousRewardEntry($acc01137611424, $list1137611424[0])
526- if (($size1137611424 == 1))
527- then $acc11137611424
581+ let $acc11330313351 = PreviousRewardEntry($acc01330313351, $list1330313351[0])
582+ if (($size1330313351 == 1))
583+ then $acc11330313351
528584 else {
529- let $acc21137611424 = PreviousRewardEntry($acc11137611424, $list1137611424[1])
530- if (($size1137611424 == 2))
531- then $acc21137611424
585+ let $acc21330313351 = PreviousRewardEntry($acc11330313351, $list1330313351[1])
586+ if (($size1330313351 == 2))
587+ then $acc21330313351
532588 else {
533- let $acc31137611424 = PreviousRewardEntry($acc21137611424, $list1137611424[2])
534- if (($size1137611424 == 3))
535- then $acc31137611424
589+ let $acc31330313351 = PreviousRewardEntry($acc21330313351, $list1330313351[2])
590+ if (($size1330313351 == 3))
591+ then $acc31330313351
536592 else {
537- let $acc41137611424 = PreviousRewardEntry($acc31137611424, $list1137611424[3])
538- if (($size1137611424 == 4))
539- then $acc41137611424
593+ let $acc41330313351 = PreviousRewardEntry($acc31330313351, $list1330313351[3])
594+ if (($size1330313351 == 4))
595+ then $acc41330313351
540596 else {
541- let $acc51137611424 = PreviousRewardEntry($acc41137611424, $list1137611424[4])
542- if (($size1137611424 == 5))
543- then $acc51137611424
597+ let $acc51330313351 = PreviousRewardEntry($acc41330313351, $list1330313351[4])
598+ if (($size1330313351 == 5))
599+ then $acc51330313351
544600 else {
545- let $acc61137611424 = PreviousRewardEntry($acc51137611424, $list1137611424[5])
546- if (($size1137611424 == 6))
547- then $acc61137611424
601+ let $acc61330313351 = PreviousRewardEntry($acc51330313351, $list1330313351[5])
602+ if (($size1330313351 == 6))
603+ then $acc61330313351
548604 else {
549- let $acc71137611424 = PreviousRewardEntry($acc61137611424, $list1137611424[6])
550- if (($size1137611424 == 7))
551- then $acc71137611424
605+ let $acc71330313351 = PreviousRewardEntry($acc61330313351, $list1330313351[6])
606+ if (($size1330313351 == 7))
607+ then $acc71330313351
552608 else {
553- let $acc81137611424 = PreviousRewardEntry($acc71137611424, $list1137611424[7])
554- if (($size1137611424 == 8))
555- then $acc81137611424
609+ let $acc81330313351 = PreviousRewardEntry($acc71330313351, $list1330313351[7])
610+ if (($size1330313351 == 8))
611+ then $acc81330313351
556612 else {
557- let $acc91137611424 = PreviousRewardEntry($acc81137611424, $list1137611424[8])
558- if (($size1137611424 == 9))
559- then $acc91137611424
613+ let $acc91330313351 = PreviousRewardEntry($acc81330313351, $list1330313351[8])
614+ if (($size1330313351 == 9))
615+ then $acc91330313351
560616 else {
561- let $acc101137611424 = PreviousRewardEntry($acc91137611424, $list1137611424[9])
562- if (($size1137611424 == 10))
563- then $acc101137611424
617+ let $acc101330313351 = PreviousRewardEntry($acc91330313351, $list1330313351[9])
618+ if (($size1330313351 == 10))
619+ then $acc101330313351
564620 else {
565- let $acc111137611424 = PreviousRewardEntry($acc101137611424, $list1137611424[10])
566- if (($size1137611424 == 11))
567- then $acc111137611424
621+ let $acc111330313351 = PreviousRewardEntry($acc101330313351, $list1330313351[10])
622+ if (($size1330313351 == 11))
623+ then $acc111330313351
568624 else {
569- let $acc121137611424 = PreviousRewardEntry($acc111137611424, $list1137611424[11])
570- if (($size1137611424 == 12))
571- then $acc121137611424
625+ let $acc121330313351 = PreviousRewardEntry($acc111330313351, $list1330313351[11])
626+ if (($size1330313351 == 12))
627+ then $acc121330313351
572628 else {
573- let $acc131137611424 = PreviousRewardEntry($acc121137611424, $list1137611424[12])
574- if (($size1137611424 == 13))
575- then $acc131137611424
629+ let $acc131330313351 = PreviousRewardEntry($acc121330313351, $list1330313351[12])
630+ if (($size1330313351 == 13))
631+ then $acc131330313351
576632 else {
577- let $acc141137611424 = PreviousRewardEntry($acc131137611424, $list1137611424[13])
578- if (($size1137611424 == 14))
579- then $acc141137611424
633+ let $acc141330313351 = PreviousRewardEntry($acc131330313351, $list1330313351[13])
634+ if (($size1330313351 == 14))
635+ then $acc141330313351
580636 else {
581- let $acc151137611424 = PreviousRewardEntry($acc141137611424, $list1137611424[14])
582- if (($size1137611424 == 15))
583- then $acc151137611424
637+ let $acc151330313351 = PreviousRewardEntry($acc141330313351, $list1330313351[14])
638+ if (($size1330313351 == 15))
639+ then $acc151330313351
584640 else {
585- let $acc161137611424 = PreviousRewardEntry($acc151137611424, $list1137611424[15])
586- if (($size1137611424 == 16))
587- then $acc161137611424
641+ let $acc161330313351 = PreviousRewardEntry($acc151330313351, $list1330313351[15])
642+ if (($size1330313351 == 16))
643+ then $acc161330313351
588644 else {
589- let $acc171137611424 = PreviousRewardEntry($acc161137611424, $list1137611424[16])
590- if (($size1137611424 == 17))
591- then $acc171137611424
645+ let $acc171330313351 = PreviousRewardEntry($acc161330313351, $list1330313351[16])
646+ if (($size1330313351 == 17))
647+ then $acc171330313351
592648 else {
593- let $acc181137611424 = PreviousRewardEntry($acc171137611424, $list1137611424[17])
594- if (($size1137611424 == 18))
595- then $acc181137611424
649+ let $acc181330313351 = PreviousRewardEntry($acc171330313351, $list1330313351[17])
650+ if (($size1330313351 == 18))
651+ then $acc181330313351
596652 else {
597- let $acc191137611424 = PreviousRewardEntry($acc181137611424, $list1137611424[18])
598- if (($size1137611424 == 19))
599- then $acc191137611424
653+ let $acc191330313351 = PreviousRewardEntry($acc181330313351, $list1330313351[18])
654+ if (($size1330313351 == 19))
655+ then $acc191330313351
600656 else {
601- let $acc201137611424 = PreviousRewardEntry($acc191137611424, $list1137611424[19])
602- if (($size1137611424 == 20))
603- then $acc201137611424
657+ let $acc201330313351 = PreviousRewardEntry($acc191330313351, $list1330313351[19])
658+ if (($size1330313351 == 20))
659+ then $acc201330313351
604660 else {
605- let $acc211137611424 = PreviousRewardEntry($acc201137611424, $list1137611424[20])
661+ let $acc211330313351 = PreviousRewardEntry($acc201330313351, $list1330313351[20])
606662 throw("List size exceed 20")
607663 }
608664 }
609665 }
610666 }
611667 }
612668 }
613669 }
614670 }
615671 }
616672 }
617673 }
618674 }
619675 }
620676 }
621677 }
622678 }
623679 }
624680 }
625681 }
626682 }
627683 }
628684 }
629685 let currentRewardEntryNew = {
630- let $list1145711503 = currentPools
631- let $size1145711503 = size($list1145711503)
632- let $acc01145711503 = nil
633- if (($size1145711503 == 0))
634- then $acc01145711503
686+ let $list1338413430 = currentPools
687+ let $size1338413430 = size($list1338413430)
688+ let $acc01338413430 = nil
689+ if (($size1338413430 == 0))
690+ then $acc01338413430
635691 else {
636- let $acc11145711503 = CurrentRewardEntry($acc01145711503, $list1145711503[0])
637- if (($size1145711503 == 1))
638- then $acc11145711503
692+ let $acc11338413430 = CurrentRewardEntry($acc01338413430, $list1338413430[0])
693+ if (($size1338413430 == 1))
694+ then $acc11338413430
639695 else {
640- let $acc21145711503 = CurrentRewardEntry($acc11145711503, $list1145711503[1])
641- if (($size1145711503 == 2))
642- then $acc21145711503
696+ let $acc21338413430 = CurrentRewardEntry($acc11338413430, $list1338413430[1])
697+ if (($size1338413430 == 2))
698+ then $acc21338413430
643699 else {
644- let $acc31145711503 = CurrentRewardEntry($acc21145711503, $list1145711503[2])
645- if (($size1145711503 == 3))
646- then $acc31145711503
700+ let $acc31338413430 = CurrentRewardEntry($acc21338413430, $list1338413430[2])
701+ if (($size1338413430 == 3))
702+ then $acc31338413430
647703 else {
648- let $acc41145711503 = CurrentRewardEntry($acc31145711503, $list1145711503[3])
649- if (($size1145711503 == 4))
650- then $acc41145711503
704+ let $acc41338413430 = CurrentRewardEntry($acc31338413430, $list1338413430[3])
705+ if (($size1338413430 == 4))
706+ then $acc41338413430
651707 else {
652- let $acc51145711503 = CurrentRewardEntry($acc41145711503, $list1145711503[4])
653- if (($size1145711503 == 5))
654- then $acc51145711503
708+ let $acc51338413430 = CurrentRewardEntry($acc41338413430, $list1338413430[4])
709+ if (($size1338413430 == 5))
710+ then $acc51338413430
655711 else {
656- let $acc61145711503 = CurrentRewardEntry($acc51145711503, $list1145711503[5])
657- if (($size1145711503 == 6))
658- then $acc61145711503
712+ let $acc61338413430 = CurrentRewardEntry($acc51338413430, $list1338413430[5])
713+ if (($size1338413430 == 6))
714+ then $acc61338413430
659715 else {
660- let $acc71145711503 = CurrentRewardEntry($acc61145711503, $list1145711503[6])
661- if (($size1145711503 == 7))
662- then $acc71145711503
716+ let $acc71338413430 = CurrentRewardEntry($acc61338413430, $list1338413430[6])
717+ if (($size1338413430 == 7))
718+ then $acc71338413430
663719 else {
664- let $acc81145711503 = CurrentRewardEntry($acc71145711503, $list1145711503[7])
665- if (($size1145711503 == 8))
666- then $acc81145711503
720+ let $acc81338413430 = CurrentRewardEntry($acc71338413430, $list1338413430[7])
721+ if (($size1338413430 == 8))
722+ then $acc81338413430
667723 else {
668- let $acc91145711503 = CurrentRewardEntry($acc81145711503, $list1145711503[8])
669- if (($size1145711503 == 9))
670- then $acc91145711503
724+ let $acc91338413430 = CurrentRewardEntry($acc81338413430, $list1338413430[8])
725+ if (($size1338413430 == 9))
726+ then $acc91338413430
671727 else {
672- let $acc101145711503 = CurrentRewardEntry($acc91145711503, $list1145711503[9])
673- if (($size1145711503 == 10))
674- then $acc101145711503
728+ let $acc101338413430 = CurrentRewardEntry($acc91338413430, $list1338413430[9])
729+ if (($size1338413430 == 10))
730+ then $acc101338413430
675731 else {
676- let $acc111145711503 = CurrentRewardEntry($acc101145711503, $list1145711503[10])
677- if (($size1145711503 == 11))
678- then $acc111145711503
732+ let $acc111338413430 = CurrentRewardEntry($acc101338413430, $list1338413430[10])
733+ if (($size1338413430 == 11))
734+ then $acc111338413430
679735 else {
680- let $acc121145711503 = CurrentRewardEntry($acc111145711503, $list1145711503[11])
681- if (($size1145711503 == 12))
682- then $acc121145711503
736+ let $acc121338413430 = CurrentRewardEntry($acc111338413430, $list1338413430[11])
737+ if (($size1338413430 == 12))
738+ then $acc121338413430
683739 else {
684- let $acc131145711503 = CurrentRewardEntry($acc121145711503, $list1145711503[12])
685- if (($size1145711503 == 13))
686- then $acc131145711503
740+ let $acc131338413430 = CurrentRewardEntry($acc121338413430, $list1338413430[12])
741+ if (($size1338413430 == 13))
742+ then $acc131338413430
687743 else {
688- let $acc141145711503 = CurrentRewardEntry($acc131145711503, $list1145711503[13])
689- if (($size1145711503 == 14))
690- then $acc141145711503
744+ let $acc141338413430 = CurrentRewardEntry($acc131338413430, $list1338413430[13])
745+ if (($size1338413430 == 14))
746+ then $acc141338413430
691747 else {
692- let $acc151145711503 = CurrentRewardEntry($acc141145711503, $list1145711503[14])
693- if (($size1145711503 == 15))
694- then $acc151145711503
748+ let $acc151338413430 = CurrentRewardEntry($acc141338413430, $list1338413430[14])
749+ if (($size1338413430 == 15))
750+ then $acc151338413430
695751 else {
696- let $acc161145711503 = CurrentRewardEntry($acc151145711503, $list1145711503[15])
697- if (($size1145711503 == 16))
698- then $acc161145711503
752+ let $acc161338413430 = CurrentRewardEntry($acc151338413430, $list1338413430[15])
753+ if (($size1338413430 == 16))
754+ then $acc161338413430
699755 else {
700- let $acc171145711503 = CurrentRewardEntry($acc161145711503, $list1145711503[16])
701- if (($size1145711503 == 17))
702- then $acc171145711503
756+ let $acc171338413430 = CurrentRewardEntry($acc161338413430, $list1338413430[16])
757+ if (($size1338413430 == 17))
758+ then $acc171338413430
703759 else {
704- let $acc181145711503 = CurrentRewardEntry($acc171145711503, $list1145711503[17])
705- if (($size1145711503 == 18))
706- then $acc181145711503
760+ let $acc181338413430 = CurrentRewardEntry($acc171338413430, $list1338413430[17])
761+ if (($size1338413430 == 18))
762+ then $acc181338413430
707763 else {
708- let $acc191145711503 = CurrentRewardEntry($acc181145711503, $list1145711503[18])
709- if (($size1145711503 == 19))
710- then $acc191145711503
764+ let $acc191338413430 = CurrentRewardEntry($acc181338413430, $list1338413430[18])
765+ if (($size1338413430 == 19))
766+ then $acc191338413430
711767 else {
712- let $acc201145711503 = CurrentRewardEntry($acc191145711503, $list1145711503[19])
713- if (($size1145711503 == 20))
714- then $acc201145711503
768+ let $acc201338413430 = CurrentRewardEntry($acc191338413430, $list1338413430[19])
769+ if (($size1338413430 == 20))
770+ then $acc201338413430
715771 else {
716- let $acc211145711503 = CurrentRewardEntry($acc201145711503, $list1145711503[20])
772+ let $acc211338413430 = CurrentRewardEntry($acc201338413430, $list1338413430[20])
717773 throw("List size exceed 20")
718774 }
719775 }
720776 }
721777 }
722778 }
723779 }
724780 }
725781 }
726782 }
727783 }
728784 }
729785 }
730786 }
731787 }
732788 }
733789 }
734790 }
735791 }
736792 }
737793 }
738794 }
739795 }
740796 ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)])
741797 }
742798 }
743799
744800
745801
746802 @Callable(i)
747803 func shutdown () = if (!(isActive))
748804 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
749805 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
750806 then throw("Only admin can call this function")
751807 else suspend("Paused by admin")
752808
753809
754810
755811 @Callable(i)
756812 func activate () = if (isActive)
757813 then throw("DApp is already active")
758814 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
759815 then throw("Only admin can call this function")
760816 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
761817
762818
763819 @Verifier(tx)
764820 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
765821

github/deemru/w8io/169f3d6 
927.89 ms