tx · F1CtiBMh5o2FxEiNM1pSobsrtP98N9R1JW5sxkJFuTx5

3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL:  -0.03200000 Waves

2022.06.20 11:22 [2104454] smart account 3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL > SELF 0.00000000 Waves

{ "type": 13, "id": "F1CtiBMh5o2FxEiNM1pSobsrtP98N9R1JW5sxkJFuTx5", "fee": 3200000, "feeAssetId": null, "timestamp": 1655713467561, "version": 1, "sender": "3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL", "senderPublicKey": "DnPyGWCgpQChvoQrnXQRcC9FtN32mPGrcog2wcKHdkVn", "proofs": [ "2UVDqkTSPkAcL6K914VkbgrXeDNWRdNG97Pk8KYEyArAGT6eU3sXqJ3MCH2xog3oPCCnyCSVUzPJcrNpeHcskBNg" ], "script": "base64:AAIFAAAAAAAAAF4IAhIDCgEIEgASBAoCCAESBQoDCAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESBAoCCAgSAwoBCBIAEgMKAQESABIDCgEIEgQKAggIEgQKAggIEgQKAggIAAAALQAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAOcG9vbFdlaWdodE11bHQAAAAAAAX14QAAAAAAD21heERlcHRoRGVmYXVsdAAAAAAAAAAACgAAAAAWZmluYWxpemF0aW9uU3RhZ2VUb3RhbAAAAAAAAAAAAAAAAAAXZmluYWxpemF0aW9uU3RhZ2VTaGFyZXMAAAAAAAAAAAEAAAAADmtleUVwb2NoTGVuZ3RoCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAALZXBvY2hMZW5ndGgFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAAA9rZXlDdXJyZW50RXBvY2gJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAxjdXJyZW50RXBvY2gFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAAAtrZXlNYXhEZXB0aAkABLkAAAACCQ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0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXnMfvSV", "chainId": 84, "height": 2104454, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B1djKxLP76VofK9fCEDdr7KAX7THRFb4a8d2MLeusKV3 Next: 7rodGGGNeBx6DZ5H97unpj5vRfr3HFt9mb4C1Mnkn7Eg Diff:
OldNewDifferences
174174 func insertNodeActions (listName,id) = {
175175 let headOrUnit = getString(this, keyListHead(listName))
176176 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
177- (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
178- then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
179- else nil)) ++ [StringEntry(keyListHead(listName), id)])
177+ let checkNode = if (!(containsNode(listName, id)))
178+ then true
179+ else throw("Node exists")
180+ if ((checkNode == checkNode))
181+ then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
182+ then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
183+ else nil)) ++ [StringEntry(keyListHead(listName), id)])
184+ else throw("Strict value is not equal to itself.")
180185 }
181186
182187
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let poolWeightMult = 100000000
77
88 let maxDepthDefault = 10
99
1010 let finalizationStageTotal = 0
1111
1212 let finalizationStageShares = 1
1313
1414 let keyEpochLength = makeString(["%s", "epochLength"], separator)
1515
1616 let keyCurrentEpoch = makeString(["%s", "currentEpoch"], separator)
1717
1818 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
1919
2020 let keyVotingEmissionCandidateContract = makeString(["%s", "votingEmissionCandidateContract"], separator)
2121
2222 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
2323
2424 let keyFinalizationStage = makeString(["%s", "finalizationStage"], separator)
2525
2626 let keyNextPool = makeString(["%s", "nextPool"], separator)
2727
2828 let keyNextUser = makeString(["%s", "nextUser"], separator)
2929
3030 let keyStartHeight = makeString(["%s", "startHeight"], separator)
3131
3232 let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], separator)
3333
3434 let keyStartHeightUi = makeString(["%s", "startHeightUi"], separator)
3535
3636 func keyStartHeightByEpoch (epoch) = makeString(["%s%d", "startHeight", toString(epoch)], separator)
3737
3838
3939 func keyFinalized (epoch) = makeString(["%s%d", "finalized", toString(epoch)], separator)
4040
4141
4242 func keyInList (pool) = {
4343 let $t012901330 = pool
4444 let amountAssetId = $t012901330._1
4545 let priceAssetId = $t012901330._2
4646 makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator)
4747 }
4848
4949
5050 func keyUsed (address,epoch) = makeString(["%s%s%d", "used", toString(address), toString(epoch)], separator)
5151
5252
5353 func keyVote (pool,address,epoch) = {
5454 let $t016041644 = pool
5555 let amountAssetId = $t016041644._1
5656 let priceAssetId = $t016041644._2
5757 makeString(["%s%s%s%s%d", "vote", amountAssetId, priceAssetId, toString(address), toString(epoch)], separator)
5858 }
5959
6060
6161 func keyVotingResult (pool,epoch) = {
6262 let $t018261866 = pool
6363 let amountAssetId = $t018261866._1
6464 let priceAssetId = $t018261866._2
6565 makeString(["%s%s%s%d", "votingResult", amountAssetId, priceAssetId, toString(epoch)], separator)
6666 }
6767
6868
6969 func keyPoolShare (pool,epoch) = {
7070 let $t020312071 = pool
7171 let amountAssetId = $t020312071._1
7272 let priceAssetId = $t020312071._2
7373 makeString(["%s%s%s%d", "poolShare", amountAssetId, priceAssetId, toString(epoch)], separator)
7474 }
7575
7676
7777 func keyTotalVotes (epoch) = makeString(["%s%d", "totalVotes", toString(epoch)], separator)
7878
7979
8080 func getValueOrFail (address,key,type) = {
8181 let error = makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")
8282 valueOrErrorMessage( match type {
8383 case str: String =>
8484 getString(address, key)
8585 case int: Int =>
8686 getInteger(address, key)
8787 case _ =>
8888 throw("invalid entry type")
8989 }, error)
9090 }
9191
9292
9393 func getStrOrFail (address,key) = {
9494 let @ = getValueOrFail(address, key, "")
9595 if ($isInstanceOf(@, "String"))
9696 then @
9797 else throw("Couldn't cast Int|String to String")
9898 }
9999
100100
101101 func getIntOrFail (address,key) = {
102102 let @ = getValueOrFail(address, key, 0)
103103 if ($isInstanceOf(@, "Int"))
104104 then @
105105 else throw("Couldn't cast Int|String to Int")
106106 }
107107
108108
109109 func poolToString (pool) = ((pool._1 + separator) + pool._2)
110110
111111
112112 func stringToPool (str) = {
113113 let parts = split(str, separator)
114114 if ((size(parts) == 2))
115115 then $Tuple2(parts[0], parts[1])
116116 else throw("invalid pool string")
117117 }
118118
119119
120120 let poolsListName = "pools"
121121
122122 func getVotesListName (pool) = {
123123 let $t031773217 = pool
124124 let amountAssetId = $t031773217._1
125125 let priceAssetId = $t031773217._2
126126 makeString(["votes", amountAssetId, priceAssetId], separator)
127127 }
128128
129129
130130 func keyListHead (listName) = {
131131 let meta = if ((listName == poolsListName))
132132 then "%s%s"
133133 else "%s%s%s%s"
134134 makeString([meta, listName, "head"], separator)
135135 }
136136
137137
138138 func keyListSize (listName) = {
139139 let meta = if ((listName == poolsListName))
140140 then "%s%s"
141141 else "%s%s%s%s"
142142 makeString([meta, listName, "size"], separator)
143143 }
144144
145145
146146 func keyListPrev (listName,id) = {
147147 let meta = if ((listName == poolsListName))
148148 then "%s%s%s%s"
149149 else "%s%s%s%s%s"
150150 makeString([meta, listName, id, "prev"], separator)
151151 }
152152
153153
154154 func keyListNext (listName,id) = {
155155 let meta = if ((listName == poolsListName))
156156 then "%s%s%s%s"
157157 else "%s%s%s%s%s"
158158 makeString([meta, listName, id, "next"], separator)
159159 }
160160
161161
162162 func containsNode (listName,id) = {
163163 let headOrUnit = getString(this, keyListHead(listName))
164164 let prevOrUnit = getString(this, keyListPrev(listName, id))
165165 let nextOrUnit = getString(this, keyListNext(listName, id))
166166 if (if ((id == valueOrElse(headOrUnit, "")))
167167 then true
168168 else (prevOrUnit != unit))
169169 then true
170170 else (nextOrUnit != unit)
171171 }
172172
173173
174174 func insertNodeActions (listName,id) = {
175175 let headOrUnit = getString(this, keyListHead(listName))
176176 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
177- (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
178- then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
179- else nil)) ++ [StringEntry(keyListHead(listName), id)])
177+ let checkNode = if (!(containsNode(listName, id)))
178+ then true
179+ else throw("Node exists")
180+ if ((checkNode == checkNode))
181+ then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
182+ then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
183+ else nil)) ++ [StringEntry(keyListHead(listName), id)])
184+ else throw("Strict value is not equal to itself.")
180185 }
181186
182187
183188 func deleteNodeActions (listName,id) = {
184189 let headOrUnit = getString(this, keyListHead(listName))
185190 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
186191 let prevOrUnit = getString(this, keyListPrev(listName, id))
187192 let nextOrUnit = getString(this, keyListNext(listName, id))
188193 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit))
189194 then (nextOrUnit != unit)
190195 else false)
191196 then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
192197 else if ((nextOrUnit != unit))
193198 then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))]
194199 else if ((prevOrUnit != unit))
195200 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))]
196201 else if ((id == valueOrElse(headOrUnit, "")))
197202 then [DeleteEntry(keyListHead(listName))]
198203 else throw(((("invalid node: " + listName) + ".") + id))))
199204 }
200205
201206
202207 func keyManagerPublicKey () = "%s__managerPublicKey"
203208
204209
205210 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
206211
207212
208213 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
209214 case s: String =>
210215 fromBase58String(s)
211216 case _: Unit =>
212217 unit
213218 case _ =>
214219 throw("Match error")
215220 }
216221
217222
218223 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
219224 case s: String =>
220225 fromBase58String(s)
221226 case _: Unit =>
222227 unit
223228 case _ =>
224229 throw("Match error")
225230 }
226231
227232
228233 let permissionDeniedError = throw("Permission denied")
229234
230235 func mustThis (i) = if ((i.caller == this))
231236 then true
232237 else permissionDeniedError
233238
234239
235240 func mustManager (i) = match managerPublicKeyOrUnit() {
236241 case pk: ByteVector =>
237242 if ((i.callerPublicKey == pk))
238243 then true
239244 else permissionDeniedError
240245 case _: Unit =>
241246 mustThis(i)
242247 case _ =>
243248 throw("Match error")
244249 }
245250
246251
247252 @Callable(i)
248253 func setManager (pendingManagerPublicKey) = {
249254 let checkCaller = mustManager(i)
250255 if ((checkCaller == checkCaller))
251256 then {
252257 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
253258 if ((checkManagerPublicKey == checkManagerPublicKey))
254259 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
255260 else throw("Strict value is not equal to itself.")
256261 }
257262 else throw("Strict value is not equal to itself.")
258263 }
259264
260265
261266
262267 @Callable(i)
263268 func confirmManager () = {
264269 let pm = pendingManagerPublicKeyOrUnit()
265270 let hasPM = if (isDefined(pm))
266271 then true
267272 else throw("No pending manager")
268273 if ((hasPM == hasPM))
269274 then {
270275 let checkPM = if ((i.callerPublicKey == value(pm)))
271276 then true
272277 else throw("You are not pending manager")
273278 if ((checkPM == checkPM))
274279 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
275280 else throw("Strict value is not equal to itself.")
276281 }
277282 else throw("Strict value is not equal to itself.")
278283 }
279284
280285
281286
282287 @Callable(i)
283288 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
284289 let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), "invalid boosting contract address")
285290 $Tuple2(nil, {
286291 let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
287292 if ($isInstanceOf(@, "Int"))
288293 then @
289294 else throw("Couldn't cast Any to Int")
290295 })
291296 }
292297
293298
294299
295300 @Callable(i)
296301 func constructor (votingEmissionCandidateContract,boostingContract,epochLength) = {
297302 let cheks = [mustManager(i), if ((addressFromString(votingEmissionCandidateContract) != unit))
298303 then true
299304 else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit))
300305 then true
301306 else "invalid boosting contract address", if ((epochLength > 0))
302307 then true
303308 else throw("invalid epoch length")]
304309 if ((cheks == cheks))
305310 then $Tuple2([StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), IntegerEntry(keyEpochLength, epochLength)], unit)
306311 else throw("Strict value is not equal to itself.")
307312 }
308313
309314
310315
311316 @Callable(i)
312317 func create (amountAssetId,priceAssetId) = {
313318 let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), "")))
314319 then true
315320 else mustManager(i)]
316321 if ((checks == checks))
317322 then {
318323 let pool = $Tuple2(amountAssetId, priceAssetId)
319324 let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool)))
320325 let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit)
321326 let startHeightActions = if (currentEpochIsNotDefined)
322327 then {
323328 let epoch = 0
324329 [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)]
325330 }
326331 else nil
327332 $Tuple2((inListActions ++ startHeightActions), unit)
328333 }
329334 else throw("Strict value is not equal to itself.")
330335 }
331336
332337
333338
334339 @Callable(i)
335340 func vote (amountAssetId,priceAssetId,amount) = {
336341 let pool = $Tuple2(amountAssetId, priceAssetId)
337342 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
338343 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
339344 let epochLength = getIntOrFail(this, keyEpochLength)
340345 let endHeight = (startHeight + epochLength)
341346 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
342347 let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0)
343348 let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0)
344349 let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0)
345350 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0)
346351 let gwxAmountAtEndTotal = {
347352 let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil)
348353 if ($isInstanceOf(@, "Int"))
349354 then @
350355 else throw("Couldn't cast Any to Int")
351356 }
352357 let available = (gwxAmountAtEndTotal - used)
353358 let newVote = (vote + amount)
354359 let checks = [if ((getBoolean(keyInList(pool)) != unit))
355360 then true
356361 else throw("invalid assets"), if ((endHeight > height))
357362 then true
358363 else throw("invalid height"), if ((finalizationStageOrUnit == unit))
359364 then true
360365 else throw("finalization in progress"), if ((gwxAmountAtEndTotal > 0))
361366 then true
362367 else throw("you do not have gWX"), if (if ((amount > 0))
363368 then (available >= amount)
364369 else false)
365370 then true
366371 else throw("invalid amount")]
367372 if ((checks == checks))
368373 then {
369374 let votesListName = getVotesListName(pool)
370375 let userAddressStr = toString(i.caller)
371376 let votesListActions = if (containsNode(votesListName, userAddressStr))
372377 then nil
373378 else insertNodeActions(votesListName, userAddressStr)
374379 $Tuple2(([IntegerEntry(keyUsed(i.caller, epoch), (used + amount)), IntegerEntry(keyVote(pool, i.caller, epoch), newVote), IntegerEntry(keyVotingResult(pool, epoch), (poolResult + amount)), IntegerEntry(keyTotalVotes(epoch), (totalVotes + amount))] ++ votesListActions), unit)
375380 }
376381 else throw("Strict value is not equal to itself.")
377382 }
378383
379384
380385
381386 @Callable(i)
382387 func cancelVote (amountAssetId,priceAssetId) = {
383388 let pool = $Tuple2(amountAssetId, priceAssetId)
384389 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
385390 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
386391 let epochLength = getIntOrFail(this, keyEpochLength)
387392 let endHeight = (startHeight + epochLength)
388393 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
389394 let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0)
390395 let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0)
391396 let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0)
392397 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0)
393398 let checks = [if ((getBoolean(keyInList(pool)) != unit))
394399 then true
395400 else throw("invalid assets"), if ((endHeight > height))
396401 then true
397402 else throw("invalid height"), if ((finalizationStageOrUnit == unit))
398403 then true
399404 else throw("finalization in progress"), if ((vote > 0))
400405 then true
401406 else throw("no vote")]
402407 if ((checks == checks))
403408 then {
404409 let votesListName = getVotesListName(pool)
405410 let userAddressStr = toString(i.caller)
406411 $Tuple2(([IntegerEntry(keyUsed(i.caller, epoch), max([(used - vote), 0])), DeleteEntry(keyVote(pool, i.caller, epoch)), IntegerEntry(keyVotingResult(pool, epoch), (poolResult - vote)), IntegerEntry(keyTotalVotes(epoch), (totalVotes - vote))] ++ deleteNodeActions(votesListName, userAddressStr)), unit)
407412 }
408413 else throw("Strict value is not equal to itself.")
409414 }
410415
411416
412417
413418 @Callable(i)
414419 func setEpochLength (newEpochLength) = {
415420 let cheks = [mustManager(i), if ((newEpochLength > 0))
416421 then true
417422 else throw("invalid epoch length")]
418423 if ((cheks == cheks))
419424 then $Tuple2([IntegerEntry(keyEpochLength, newEpochLength)], unit)
420425 else throw("Strict value is not equal to itself.")
421426 }
422427
423428
424429
425430 @Callable(i)
426431 func setMaxDepth (newMaxDepth) = {
427432 let cheks = [mustManager(i), if ((newMaxDepth > 0))
428433 then true
429434 else throw("invalid max depth")]
430435 if ((cheks == cheks))
431436 then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit)
432437 else throw("Strict value is not equal to itself.")
433438 }
434439
435440
436441
437442 @Callable(i)
438443 func processVoteINTERNAL (poolStr,userAddressStr) = {
439444 let checkCaller = mustThis(i)
440445 if ((checkCaller == checkCaller))
441446 then {
442447 let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), ("processVoteINTERNAL: invalid user address " + userAddressStr))
443448 let epoch = getIntOrFail(this, keyCurrentEpoch)
444449 let epochPrevious = (epoch - 1)
445450 let epochLength = getIntOrFail(this, keyEpochLength)
446451 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
447452 let endHeight = (startHeight + epochLength)
448453 let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious))
449454 let endHeightPrevious = (startHeightPrevious + epochLength)
450455 let checkTargetEpoch = if ((epochPrevious >= 0))
451456 then true
452457 else throw("processVoteINTERNAL: invalid previous epoch")
453458 if ((checkTargetEpoch == checkTargetEpoch))
454459 then {
455460 let pool = stringToPool(poolStr)
456461 let gwxAmountAtEndTotal = {
457462 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil)
458463 if ($isInstanceOf(@, "Int"))
459464 then @
460465 else throw("Couldn't cast Any to Int")
461466 }
462467 let gwxAmountAtEndTotalPrevious = {
463468 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil)
464469 if ($isInstanceOf(@, "Int"))
465470 then @
466471 else throw("Couldn't cast Any to Int")
467472 }
468473 let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0)
469474 let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0)
470475 let votePrevious = valueOrErrorMessage(getInteger(keyVote(pool, userAddress, epochPrevious)), (((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote"))
471476 let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0)
472477 let newVote = fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious)
473478 let actions = if ((newVote > 0))
474479 then [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))]
475480 else deleteNodeActions(getVotesListName(pool), userAddressStr)
476481 $Tuple2(actions, unit)
477482 }
478483 else throw("Strict value is not equal to itself.")
479484 }
480485 else throw("Strict value is not equal to itself.")
481486 }
482487
483488
484489
485490 @Callable(i)
486491 func processPoolINTERNAL (poolStr) = {
487492 let checkCaller = mustThis(i)
488493 if ((checkCaller == checkCaller))
489494 then {
490495 let targetEpoch = (getIntOrFail(this, keyCurrentEpoch) - 1)
491496 let checkTargetEpoch = if ((targetEpoch >= 0))
492497 then true
493498 else throw("processPoolINTERNAL: invalid target epoch")
494499 if ((checkTargetEpoch == checkTargetEpoch))
495500 then {
496501 let pool = stringToPool(poolStr)
497502 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0)
498503 let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0)
499504 let share = if ((totalVotes == 0))
500505 then 0
501506 else fraction(votingResult, poolWeightMult, totalVotes)
502507 $Tuple2([IntegerEntry(keyPoolShare(pool, targetEpoch), share)], unit)
503508 }
504509 else throw("Strict value is not equal to itself.")
505510 }
506511 else throw("Strict value is not equal to itself.")
507512 }
508513
509514
510515
511516 @Callable(i)
512517 func finalizeHelper () = {
513518 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
514519 let previousEpoch = (epoch - 1)
515520 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
516521 let epochLength = getIntOrFail(this, keyEpochLength)
517522 let endHeight = (startHeight + epochLength)
518523 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
519524 if ((height >= endHeight))
520525 then {
521526 let newEpoch = (epoch + 1)
522527 $Tuple2([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageTotal)], true)
523528 }
524529 else if ((finalizationStageOrUnit == unit))
525530 then $Tuple2(nil, false)
526531 else if ((finalizationStageOrUnit == finalizationStageTotal))
527532 then {
528533 let poolOrUnit = getString(keyNextPool)
529534 let userOrUnit = getString(keyNextUser)
530535 match poolOrUnit {
531536 case _: Unit =>
532537 match getString(keyListHead(poolsListName)) {
533538 case _: Unit =>
534539 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true)
535540 case poolsHeadStr: String =>
536541 $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true)
537542 case _ =>
538543 throw("Match error")
539544 }
540545 case poolStr: String =>
541546 let pool = stringToPool(poolStr)
542547 let nextUserOrUnit = match userOrUnit {
543548 case _: Unit =>
544549 getString(keyListHead(getVotesListName(pool)))
545550 case user: String =>
546551 let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil)
547552 if ((processVoteInv == processVoteInv))
548553 then getString(keyListNext(getVotesListName(pool), user))
549554 else throw("Strict value is not equal to itself.")
550555 case _ =>
551556 throw("Match error")
552557 }
553558 match nextUserOrUnit {
554559 case _: Unit =>
555560 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
556561 match nextPoolOrUnit {
557562 case _: Unit =>
558563 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true)
559564 case s: String =>
560565 $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true)
561566 case _ =>
562567 throw("Match error")
563568 }
564569 case nextUser: String =>
565570 $Tuple2([StringEntry(keyNextUser, nextUser)], true)
566571 case _ =>
567572 throw("Match error")
568573 }
569574 case _ =>
570575 throw("Match error")
571576 }
572577 }
573578 else if ((finalizationStageOrUnit == finalizationStageShares))
574579 then {
575580 let poolOrUnit = getString(keyNextPool)
576581 match poolOrUnit {
577582 case _: Unit =>
578583 match getString(keyListHead(poolsListName)) {
579584 case _: Unit =>
580585 $Tuple2([DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)], true)
581586 case nextPoolStr: String =>
582587 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
583588 case _ =>
584589 throw("Match error")
585590 }
586591 case poolStr: String =>
587592 let processPoolInv = invoke(this, "processPoolINTERNAL", [poolStr], nil)
588593 if ((processPoolInv == processPoolInv))
589594 then {
590595 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
591596 match nextPoolOrUnit {
592597 case _: Unit =>
593598 $Tuple2([DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)], true)
594599 case nextPoolStr: String =>
595600 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
596601 case _ =>
597602 throw("Match error")
598603 }
599604 }
600605 else throw("Strict value is not equal to itself.")
601606 case _ =>
602607 throw("Match error")
603608 }
604609 }
605610 else throw("finalization is broken")
606611 }
607612
608613
609614
610615 @Callable(i)
611616 func finalizeWrapper (counter) = {
612617 let result = {
613618 let @ = invoke(this, "finalizeHelper", nil, nil)
614619 if ($isInstanceOf(@, "Boolean"))
615620 then @
616621 else throw("Couldn't cast Any to Boolean")
617622 }
618623 if ((result == result))
619624 then if (!(result))
620625 then if ((counter == 0))
621626 then throw("Current voting is not over yet")
622627 else $Tuple2(nil, unit)
623628 else {
624629 let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault)
625630 if ((maxDepth > counter))
626631 then {
627632 let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil)
628633 if ((inv == inv))
629634 then $Tuple2(nil, unit)
630635 else throw("Strict value is not equal to itself.")
631636 }
632637 else $Tuple2(nil, unit)
633638 }
634639 else throw("Strict value is not equal to itself.")
635640 }
636641
637642
638643
639644 @Callable(i)
640645 func finalize () = {
641646 let inv = invoke(this, "finalizeWrapper", [0], nil)
642647 if ((inv == inv))
643648 then $Tuple2(nil, unit)
644649 else throw("Strict value is not equal to itself.")
645650 }
646651
647652
648653
649654 @Callable(i)
650655 func onVerificationLoss (assetId) = $Tuple2(nil, unit)
651656
652657
653658
654659 @Callable(i)
655660 func containsNodeREADONLY (listName,id) = $Tuple2(nil, containsNode(listName, id))
656661
657662
658663
659664 @Callable(i)
660665 func insertNode (listName,id) = {
661666 let checkCaller = mustManager(i)
662667 if ((checkCaller == checkCaller))
663668 then $Tuple2(insertNodeActions(listName, id), unit)
664669 else throw("Strict value is not equal to itself.")
665670 }
666671
667672
668673
669674 @Callable(i)
670675 func deleteNode (listName,id) = {
671676 let checkCaller = mustManager(i)
672677 if ((checkCaller == checkCaller))
673678 then $Tuple2(deleteNodeActions(listName, id), unit)
674679 else throw("Strict value is not equal to itself.")
675680 }
676681
677682
678683 @Verifier(tx)
679684 func verify () = {
680685 let targetPublicKey = match managerPublicKeyOrUnit() {
681686 case pk: ByteVector =>
682687 pk
683688 case _: Unit =>
684689 tx.senderPublicKey
685690 case _ =>
686691 throw("Match error")
687692 }
688693 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
689694 }
690695

github/deemru/w8io/026f985 
83.23 ms