tx · BUmFL7AhWAMqPs2ZDzCJU3pUQEcqXue4wuk1TD7XwrRh

3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA:  -0.02200000 Waves

2023.05.02 09:54 [2559810] smart account 3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA > SELF 0.00000000 Waves

{ "type": 13, "id": "BUmFL7AhWAMqPs2ZDzCJU3pUQEcqXue4wuk1TD7XwrRh", "fee": 2200000, "feeAssetId": null, "timestamp": 1683010517576, "version": 2, "chainId": 84, "sender": "3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA", "senderPublicKey": "D46gQxzmdzdCTYRg6dMcwFoUrc6ZmxF6GKd5ZoTkvzp1", "proofs": [ "HBS71e9yXwcdDXKpZ5EMTvJ8LN7iwy6ctetrQcf8UK3vqeQpTyB8MaiobtPEa21qXA4xXecCQcPfxVYiajg67JP" ], "script": "base64:BgL4FAgCEgQKAggBEgcKBQgICAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESBAoCCAgSBAoCCAQSABIDCgEBEgASBAoCCAgSBAoCCAgSBAoCCAgiCXNlcGFyYXRvciIOcG9vbFdlaWdodE11bHQiD21heERlcHRoRGVmYXVsdCIWZmluYWxpemF0aW9uU3RhZ2VUb3RhbCIXZmluYWxpemF0aW9uU3RhZ2VTaGFyZXMiDmtleUVwb2NoTGVuZ3RoIhFrZXlFcG9jaExlbmd0aE5ldyIVa2V5RXBvY2hMZW5ndGhCeUVwb2NoIgVlcG9jaCIPa2V5Q3VycmVudEVwb2NoIgtrZXlNYXhEZXB0aCIia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCISa2V5RmFjdG9yeUNvbnRyYWN0IhNrZXlCb29zdGluZ0NvbnRyYWN0IhJrZXlTdGFraW5nQ29udHJhY3QiFGtleUZpbmFsaXphdGlvblN0YWdlIgtrZXlOZXh0UG9vbCILa2V5TmV4dFVzZXIiDmtleVN0YXJ0SGVpZ2h0IhFrZXlDdX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QwJhVAEKaW5zZXJ0Tm9kZQICYXkCYUMEAmJ6CQECYVYBBQJhVAMJAAACBQJiegUCYnoJAJQKAgkBAmFJAgUCYXkFAmFDBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAmFUAQpkZWxldGVOb2RlAgJheQJhQwQCYnoJAQJhVgEFAmFUAwkAAAIFAmJ6BQJiegkAlAoCCQECYUwCBQJheQUCYUMFBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmNwAQJjcQAEAmNyBAFYCQECYVAAAwkAAQIFAVgCCkJ5dGVWZWN0b3IEAmFVBQFYBQJhVQMJAAECBQFYAgRVbml0CAUCY3APc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmNwCWJvZHlCeXRlcwkAkQMCCAUCY3AGcHJvb2ZzAAAFAmNyux0CGA==", "height": 2559810, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9wpdk4byjjczyCk8ae3Qjn5T6SnhRiwLnaUGxYbeng3a Next: none Diff:
OldNewDifferences
255255 }
256256
257257
258+func keyManagerVaultAddress () = "%s__managerVaultAddress"
259+
260+
258261 func keyManagerPublicKey () = "%s__managerPublicKey"
259262
260263
261-func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
264+func getManagerAddressOrFail () = addressFromStringValue(getStringValue(keyManagerVaultAddress()))
262265
263266
264-func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
265- case s: String =>
266- fromBase58String(s)
267+func managerPublicKeyOrUnit () = {
268+ let managerVaultAddress = getManagerAddressOrFail()
269+ match getString(managerVaultAddress, keyManagerPublicKey()) {
270+ case s: String =>
271+ fromBase58String(s)
272+ case _: Unit =>
273+ unit
274+ case _ =>
275+ throw("Match error")
276+ }
277+ }
278+
279+
280+func isManager (i) = match managerPublicKeyOrUnit() {
281+ case pk: ByteVector =>
282+ (i.callerPublicKey == pk)
267283 case _: Unit =>
268- unit
284+ (i.caller == this)
269285 case _ =>
270286 throw("Match error")
271287 }
272288
273289
274-func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
275- case s: String =>
276- fromBase58String(s)
277- case _: Unit =>
278- unit
279- case _ =>
280- throw("Match error")
281-}
290+func mustManager (i) = if (isManager(i))
291+ then true
292+ else throw("permission denied")
282293
283-
284-let permissionDeniedError = throwErr("Permission denied")
285294
286295 func mustThis (i) = if ((i.caller == this))
287296 then true
288- else permissionDeniedError
289-
290-
291-func mustManager (i) = match managerPublicKeyOrUnit() {
292- case pk: ByteVector =>
293- if ((i.callerPublicKey == pk))
294- then true
295- else permissionDeniedError
296- case _: Unit =>
297- mustThis(i)
298- case _ =>
299- throw("Match error")
300-}
301-
302-
303-@Callable(i)
304-func setManager (pendingManagerPublicKey) = {
305- let checkCaller = mustManager(i)
306- if ((checkCaller == checkCaller))
307- then {
308- let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
309- if ((checkManagerPublicKey == checkManagerPublicKey))
310- then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
311- else throw("Strict value is not equal to itself.")
312- }
313- else throw("Strict value is not equal to itself.")
314- }
315-
316-
317-
318-@Callable(i)
319-func confirmManager () = {
320- let pm = pendingManagerPublicKeyOrUnit()
321- let hasPM = if (isDefined(pm))
322- then true
323- else throwErr("No pending manager")
324- if ((hasPM == hasPM))
325- then {
326- let checkPM = if ((i.callerPublicKey == value(pm)))
327- then true
328- else throwErr("You are not pending manager")
329- if ((checkPM == checkPM))
330- then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
331- else throw("Strict value is not equal to itself.")
332- }
333- else throw("Strict value is not equal to itself.")
334- }
335-
297+ else throw("permission denied")
336298
337299
338300 @Callable(i)
517479 if ((checkTargetEpoch == checkTargetEpoch))
518480 then {
519481 let pool = stringToPool(poolStr)
520- let $t01808118121 = pool
521- let amountAssetId = $t01808118121._1
522- let priceAssetId = $t01808118121._2
482+ let $t01748817528 = pool
483+ let amountAssetId = $t01748817528._1
484+ let priceAssetId = $t01748817528._2
523485 let wxEmission = checkWxEmissionPoolLabel(pool)
524486 let gwxAmountAtEndTotal = {
525487 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil)
578540 if ((checkTargetEpoch == checkTargetEpoch))
579541 then {
580542 let pool = stringToPool(poolStr)
581- let $t02047820518 = pool
582- let amountAssetId = $t02047820518._1
583- let priceAssetId = $t02047820518._2
543+ let $t01988519925 = pool
544+ let amountAssetId = $t01988519925._1
545+ let priceAssetId = $t01988519925._2
584546 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
585547 let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
586548 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
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 keyEpochLengthNew = makeString(["%s%s", "epochLength__new"], separator)
1717
1818 func keyEpochLengthByEpoch (epoch) = makeString(["%s%d", "epochLength", toString(epoch)], separator)
1919
2020
2121 let keyCurrentEpoch = makeString(["%s", "currentEpoch"], separator)
2222
2323 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
2424
2525 let keyVotingEmissionCandidateContract = makeString(["%s", "votingEmissionCandidateContract"], separator)
2626
2727 let keyFactoryContract = makeString(["%s", "factoryContract"], separator)
2828
2929 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
3030
3131 let keyStakingContract = makeString(["%s", "stakingContract"], separator)
3232
3333 let keyFinalizationStage = makeString(["%s", "finalizationStage"], separator)
3434
3535 let keyNextPool = makeString(["%s", "nextPool"], separator)
3636
3737 let keyNextUser = makeString(["%s", "nextUser"], separator)
3838
3939 let keyStartHeight = makeString(["%s", "startHeight"], separator)
4040
4141 let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], separator)
4242
4343 let keyStartHeightUi = makeString(["%s", "startHeightUi"], separator)
4444
4545 let keyFinalizationShouldBeForced = makeString(["%s", "force"], separator)
4646
4747 func keyStartHeightByEpoch (epoch) = makeString(["%s%d", "startHeight", toString(epoch)], separator)
4848
4949
5050 func keyFinalized (epoch) = makeString(["%s%d", "finalized", toString(epoch)], separator)
5151
5252
5353 func keyInList (pool) = {
5454 let $t016931733 = pool
5555 let amountAssetId = $t016931733._1
5656 let priceAssetId = $t016931733._2
5757 makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator)
5858 }
5959
6060
6161 func keyUsed (address,epoch) = makeString(["%s%s%d", "used", toString(address), toString(epoch)], separator)
6262
6363
6464 func keyVote (pool,address,epoch) = {
6565 let $t020072047 = pool
6666 let amountAssetId = $t020072047._1
6767 let priceAssetId = $t020072047._2
6868 makeString(["%s%s%s%s%d", "vote", amountAssetId, priceAssetId, toString(address), toString(epoch)], separator)
6969 }
7070
7171
7272 func keyVotingResult (pool,epoch) = {
7373 let $t022292269 = pool
7474 let amountAssetId = $t022292269._1
7575 let priceAssetId = $t022292269._2
7676 makeString(["%s%s%s%d", "votingResult", amountAssetId, priceAssetId, toString(epoch)], separator)
7777 }
7878
7979
8080 func keyVotingResultStaked (lpAssetIdStr,epoch) = makeString(["%s%s%d", "votingResultStaked", lpAssetIdStr, toString(epoch)], separator)
8181
8282
8383 func keyPoolShare (pool,epoch) = {
8484 let $t025902630 = pool
8585 let amountAssetId = $t025902630._1
8686 let priceAssetId = $t025902630._2
8787 makeString(["%s%s%s%d", "poolShare", amountAssetId, priceAssetId, toString(epoch)], separator)
8888 }
8989
9090
9191 func keyTotalVotes (epoch) = makeString(["%s%d", "totalVotes", toString(epoch)], separator)
9292
9393
9494 func keyStakedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s", "staked", userAddressStr, lpAssetIdStr], separator)
9595
9696
9797 func wrapErr (msg) = makeString(["voting_emission.ride:", msg], " ")
9898
9999
100100 func throwErr (msg) = throw(wrapErr(msg))
101101
102102
103103 func getValueOrFail (address,key,type) = {
104104 let error = wrapErr(makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
105105 valueOrErrorMessage( match type {
106106 case str: String =>
107107 getString(address, key)
108108 case int: Int =>
109109 getInteger(address, key)
110110 case _ =>
111111 throwErr("invalid entry type")
112112 }, error)
113113 }
114114
115115
116116 func getStrOrFail (address,key) = {
117117 let @ = getValueOrFail(address, key, "")
118118 if ($isInstanceOf(@, "String"))
119119 then @
120120 else throw(($getType(@) + " couldn't be cast to String"))
121121 }
122122
123123
124124 func getIntOrFail (address,key) = {
125125 let @ = getValueOrFail(address, key, 0)
126126 if ($isInstanceOf(@, "Int"))
127127 then @
128128 else throw(($getType(@) + " couldn't be cast to Int"))
129129 }
130130
131131
132132 func poolToString (pool) = ((pool._1 + separator) + pool._2)
133133
134134
135135 func stringToPool (str) = {
136136 let parts = split(str, separator)
137137 if ((size(parts) == 2))
138138 then $Tuple2(parts[0], parts[1])
139139 else throwErr("invalid pool string")
140140 }
141141
142142
143143 func getLpAssetByPoolAssets (amountAssetId,priceAssetId) = {
144144 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
145145
146146 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
147147
148148 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
149149
150150 let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
151151 let amountAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amountAssetId))
152152 let priceAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAssetId))
153153 let poolContractAddress = getStrOrFail(factoryContract, keyMappingPoolAssetsToPoolContractAddress(amountAssetInternalId, priceAssetInternalId))
154154 let lpAssetId = getStrOrFail(factoryContract, keyMappingPoolContractToLPAsset(poolContractAddress))
155155 lpAssetId
156156 }
157157
158158
159159 func checkWxEmissionPoolLabel (pool) = {
160160 let $t051685208 = pool
161161 let amountAssetId = $t051685208._1
162162 let priceAssetId = $t051685208._2
163163 let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
164164 let @ = invoke(factoryContract, "checkWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil)
165165 if ($isInstanceOf(@, "Boolean"))
166166 then @
167167 else throw(($getType(@) + " couldn't be cast to Boolean"))
168168 }
169169
170170
171171 let poolsListName = "pools"
172172
173173 func getVotesListName (pool) = {
174174 let $t055095549 = pool
175175 let amountAssetId = $t055095549._1
176176 let priceAssetId = $t055095549._2
177177 makeString(["votes", amountAssetId, priceAssetId], separator)
178178 }
179179
180180
181181 func keyListHead (listName) = {
182182 let meta = if ((listName == poolsListName))
183183 then "%s%s"
184184 else "%s%s%s%s"
185185 makeString([meta, listName, "head"], separator)
186186 }
187187
188188
189189 func keyListSize (listName) = {
190190 let meta = if ((listName == poolsListName))
191191 then "%s%s"
192192 else "%s%s%s%s"
193193 makeString([meta, listName, "size"], separator)
194194 }
195195
196196
197197 func keyListPrev (listName,id) = {
198198 let meta = if ((listName == poolsListName))
199199 then "%s%s%s%s"
200200 else "%s%s%s%s%s"
201201 makeString([meta, listName, id, "prev"], separator)
202202 }
203203
204204
205205 func keyListNext (listName,id) = {
206206 let meta = if ((listName == poolsListName))
207207 then "%s%s%s%s"
208208 else "%s%s%s%s%s"
209209 makeString([meta, listName, id, "next"], separator)
210210 }
211211
212212
213213 func containsNode (listName,id) = {
214214 let headOrUnit = getString(this, keyListHead(listName))
215215 let prevOrUnit = getString(this, keyListPrev(listName, id))
216216 let nextOrUnit = getString(this, keyListNext(listName, id))
217217 if (if ((id == valueOrElse(headOrUnit, "")))
218218 then true
219219 else (prevOrUnit != unit))
220220 then true
221221 else (nextOrUnit != unit)
222222 }
223223
224224
225225 func insertNodeActions (listName,id) = {
226226 let headOrUnit = getString(this, keyListHead(listName))
227227 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
228228 let checkNode = if (!(containsNode(listName, id)))
229229 then true
230230 else throwErr("Node exists")
231231 if ((checkNode == checkNode))
232232 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
233233 then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
234234 else nil)) ++ [StringEntry(keyListHead(listName), id)])
235235 else throw("Strict value is not equal to itself.")
236236 }
237237
238238
239239 func deleteNodeActions (listName,id) = {
240240 let headOrUnit = getString(this, keyListHead(listName))
241241 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
242242 let prevOrUnit = getString(this, keyListPrev(listName, id))
243243 let nextOrUnit = getString(this, keyListNext(listName, id))
244244 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit))
245245 then (nextOrUnit != unit)
246246 else false)
247247 then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
248248 else if ((nextOrUnit != unit))
249249 then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))]
250250 else if ((prevOrUnit != unit))
251251 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))]
252252 else if ((id == valueOrElse(headOrUnit, "")))
253253 then [DeleteEntry(keyListHead(listName))]
254254 else throwErr(((("invalid node: " + listName) + ".") + id))))
255255 }
256256
257257
258+func keyManagerVaultAddress () = "%s__managerVaultAddress"
259+
260+
258261 func keyManagerPublicKey () = "%s__managerPublicKey"
259262
260263
261-func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
264+func getManagerAddressOrFail () = addressFromStringValue(getStringValue(keyManagerVaultAddress()))
262265
263266
264-func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
265- case s: String =>
266- fromBase58String(s)
267+func managerPublicKeyOrUnit () = {
268+ let managerVaultAddress = getManagerAddressOrFail()
269+ match getString(managerVaultAddress, keyManagerPublicKey()) {
270+ case s: String =>
271+ fromBase58String(s)
272+ case _: Unit =>
273+ unit
274+ case _ =>
275+ throw("Match error")
276+ }
277+ }
278+
279+
280+func isManager (i) = match managerPublicKeyOrUnit() {
281+ case pk: ByteVector =>
282+ (i.callerPublicKey == pk)
267283 case _: Unit =>
268- unit
284+ (i.caller == this)
269285 case _ =>
270286 throw("Match error")
271287 }
272288
273289
274-func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
275- case s: String =>
276- fromBase58String(s)
277- case _: Unit =>
278- unit
279- case _ =>
280- throw("Match error")
281-}
290+func mustManager (i) = if (isManager(i))
291+ then true
292+ else throw("permission denied")
282293
283-
284-let permissionDeniedError = throwErr("Permission denied")
285294
286295 func mustThis (i) = if ((i.caller == this))
287296 then true
288- else permissionDeniedError
289-
290-
291-func mustManager (i) = match managerPublicKeyOrUnit() {
292- case pk: ByteVector =>
293- if ((i.callerPublicKey == pk))
294- then true
295- else permissionDeniedError
296- case _: Unit =>
297- mustThis(i)
298- case _ =>
299- throw("Match error")
300-}
301-
302-
303-@Callable(i)
304-func setManager (pendingManagerPublicKey) = {
305- let checkCaller = mustManager(i)
306- if ((checkCaller == checkCaller))
307- then {
308- let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
309- if ((checkManagerPublicKey == checkManagerPublicKey))
310- then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
311- else throw("Strict value is not equal to itself.")
312- }
313- else throw("Strict value is not equal to itself.")
314- }
315-
316-
317-
318-@Callable(i)
319-func confirmManager () = {
320- let pm = pendingManagerPublicKeyOrUnit()
321- let hasPM = if (isDefined(pm))
322- then true
323- else throwErr("No pending manager")
324- if ((hasPM == hasPM))
325- then {
326- let checkPM = if ((i.callerPublicKey == value(pm)))
327- then true
328- else throwErr("You are not pending manager")
329- if ((checkPM == checkPM))
330- then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
331- else throw("Strict value is not equal to itself.")
332- }
333- else throw("Strict value is not equal to itself.")
334- }
335-
297+ else throw("permission denied")
336298
337299
338300 @Callable(i)
339301 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
340302 let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), wrapErr("invalid boosting contract address"))
341303 $Tuple2(nil, {
342304 let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
343305 if ($isInstanceOf(@, "Int"))
344306 then @
345307 else throw(($getType(@) + " couldn't be cast to Int"))
346308 })
347309 }
348310
349311
350312
351313 @Callable(i)
352314 func constructor (factoryContract,votingEmissionCandidateContract,boostingContract,stakingContract,epochLength) = {
353315 let checks = [mustManager(i), if ((addressFromString(factoryContract) != unit))
354316 then true
355317 else "invalid factory contract address", if ((addressFromString(votingEmissionCandidateContract) != unit))
356318 then true
357319 else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit))
358320 then true
359321 else "invalid boosting contract address", if ((addressFromString(stakingContract) != unit))
360322 then true
361323 else "invalid staking contract address", if ((epochLength > 0))
362324 then true
363325 else throwErr("invalid epoch length")]
364326 if ((checks == checks))
365327 then $Tuple2([StringEntry(keyFactoryContract, factoryContract), StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), StringEntry(keyStakingContract, stakingContract), IntegerEntry(keyEpochLength, epochLength)], unit)
366328 else throw("Strict value is not equal to itself.")
367329 }
368330
369331
370332
371333 @Callable(i)
372334 func create (amountAssetId,priceAssetId) = {
373335 let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), "")))
374336 then true
375337 else mustManager(i)]
376338 if ((checks == checks))
377339 then {
378340 let pool = $Tuple2(amountAssetId, priceAssetId)
379341 let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool)))
380342 let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit)
381343 let startHeightActions = if (currentEpochIsNotDefined)
382344 then {
383345 let epoch = 0
384346 [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)]
385347 }
386348 else nil
387349 $Tuple2((inListActions ++ startHeightActions), unit)
388350 }
389351 else throw("Strict value is not equal to itself.")
390352 }
391353
392354
393355
394356 @Callable(i)
395357 func vote (amountAssetId,priceAssetId,amount) = {
396358 let pool = $Tuple2(amountAssetId, priceAssetId)
397359 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
398360 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
399361 let epochLength = getIntOrFail(this, keyEpochLength)
400362 let endHeight = (startHeight + epochLength)
401363 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
402364 let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0)
403365 let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0)
404366 let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0)
405367 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0)
406368 let gwxAmountAtEndTotal = {
407369 let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil)
408370 if ($isInstanceOf(@, "Int"))
409371 then @
410372 else throw(($getType(@) + " couldn't be cast to Int"))
411373 }
412374 let available = (gwxAmountAtEndTotal - used)
413375 let newVote = (vote + amount)
414376 let wxEmission = checkWxEmissionPoolLabel(pool)
415377 let checks = [if ((getBoolean(keyInList(pool)) != unit))
416378 then true
417379 else throwErr("invalid assets"), if ((endHeight > height))
418380 then true
419381 else throwErr("invalid height"), if ((finalizationStageOrUnit == unit))
420382 then true
421383 else throwErr("finalization in progress"), if ((gwxAmountAtEndTotal > 0))
422384 then true
423385 else throwErr("you do not have gWX"), if (if ((amount > 0))
424386 then (available >= amount)
425387 else false)
426388 then true
427389 else throwErr("invalid amount"), if (wxEmission)
428390 then true
429391 else throwErr("pool hasn't WX_EMISSION label")]
430392 if ((checks == checks))
431393 then {
432394 let votesListName = getVotesListName(pool)
433395 let userAddressStr = toString(i.caller)
434396 let votesListActions = if (containsNode(votesListName, userAddressStr))
435397 then nil
436398 else insertNodeActions(votesListName, userAddressStr)
437399 $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)
438400 }
439401 else throw("Strict value is not equal to itself.")
440402 }
441403
442404
443405
444406 @Callable(i)
445407 func cancelVote (amountAssetId,priceAssetId) = {
446408 let pool = $Tuple2(amountAssetId, priceAssetId)
447409 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
448410 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
449411 let epochLength = getIntOrFail(this, keyEpochLength)
450412 let endHeight = (startHeight + epochLength)
451413 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
452414 let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0)
453415 let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0)
454416 let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0)
455417 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0)
456418 let checks = [if ((getBoolean(keyInList(pool)) != unit))
457419 then true
458420 else throwErr("invalid assets"), if ((endHeight > height))
459421 then true
460422 else throwErr("invalid height"), if ((finalizationStageOrUnit == unit))
461423 then true
462424 else throwErr("finalization in progress"), if ((vote > 0))
463425 then true
464426 else throwErr("no vote")]
465427 if ((checks == checks))
466428 then {
467429 let votesListName = getVotesListName(pool)
468430 let userAddressStr = toString(i.caller)
469431 $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)
470432 }
471433 else throw("Strict value is not equal to itself.")
472434 }
473435
474436
475437
476438 @Callable(i)
477439 func setEpochLength (newEpochLength) = {
478440 let checks = [mustManager(i), if ((newEpochLength > 0))
479441 then true
480442 else throwErr("invalid epoch length")]
481443 if ((checks == checks))
482444 then $Tuple2([IntegerEntry(keyEpochLengthNew, newEpochLength)], unit)
483445 else throw("Strict value is not equal to itself.")
484446 }
485447
486448
487449
488450 @Callable(i)
489451 func setMaxDepth (newMaxDepth) = {
490452 let checks = [mustManager(i), if ((newMaxDepth > 0))
491453 then true
492454 else throwErr("invalid max depth")]
493455 if ((checks == checks))
494456 then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit)
495457 else throw("Strict value is not equal to itself.")
496458 }
497459
498460
499461
500462 @Callable(i)
501463 func processVoteINTERNAL (poolStr,userAddressStr) = {
502464 let checkCaller = mustThis(i)
503465 if ((checkCaller == checkCaller))
504466 then {
505467 let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), wrapErr(("processVoteINTERNAL: invalid user address " + userAddressStr)))
506468 let epoch = getIntOrFail(this, keyCurrentEpoch)
507469 let epochPrevious = (epoch - 1)
508470 let epochLength = getIntOrFail(this, keyEpochLength)
509471 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
510472 let endHeight = (startHeight + epochLength)
511473 let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious))
512474 let epochLengthPrevious = getIntOrFail(this, keyEpochLengthByEpoch(epochPrevious))
513475 let endHeightPrevious = (startHeightPrevious + epochLengthPrevious)
514476 let checkTargetEpoch = if ((epochPrevious >= 0))
515477 then true
516478 else throwErr("processVoteINTERNAL: invalid previous epoch")
517479 if ((checkTargetEpoch == checkTargetEpoch))
518480 then {
519481 let pool = stringToPool(poolStr)
520- let $t01808118121 = pool
521- let amountAssetId = $t01808118121._1
522- let priceAssetId = $t01808118121._2
482+ let $t01748817528 = pool
483+ let amountAssetId = $t01748817528._1
484+ let priceAssetId = $t01748817528._2
523485 let wxEmission = checkWxEmissionPoolLabel(pool)
524486 let gwxAmountAtEndTotal = {
525487 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil)
526488 if ($isInstanceOf(@, "Int"))
527489 then @
528490 else throw(($getType(@) + " couldn't be cast to Int"))
529491 }
530492 let gwxAmountAtEndTotalPrevious = {
531493 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil)
532494 if ($isInstanceOf(@, "Int"))
533495 then @
534496 else throw(($getType(@) + " couldn't be cast to Int"))
535497 }
536498 let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0)
537499 let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0)
538500 let votePrevious = valueOrErrorMessage(getInteger(keyVote(pool, userAddress, epochPrevious)), wrapErr((((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote")))
539501 let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0)
540502 let lpAssetIdStr = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
541503 let votingResultStakedPrevious = valueOrElse(getInteger(keyVotingResultStaked(lpAssetIdStr, epochPrevious)), 0)
542504 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
543505 let stakedByUser = valueOrElse(getInteger(stakingContract, keyStakedByUser(lpAssetIdStr, userAddressStr)), 0)
544506 let votingResultStakedActions = if ((stakedByUser == 0))
545507 then nil
546508 else [IntegerEntry(keyVotingResultStaked(lpAssetIdStr, epochPrevious), (votingResultStakedPrevious + votePrevious))]
547509 let newVote = if ((gwxAmountAtEndTotalPrevious > 0))
548510 then fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious)
549511 else 0
550512 let actions = if (if ((newVote > 0))
551513 then wxEmission
552514 else false)
553515 then [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))]
554516 else deleteNodeActions(getVotesListName(pool), userAddressStr)
555517 $Tuple2((actions ++ votingResultStakedActions), unit)
556518 }
557519 else throw("Strict value is not equal to itself.")
558520 }
559521 else throw("Strict value is not equal to itself.")
560522 }
561523
562524
563525
564526 @Callable(i)
565527 func processPoolINTERNAL (poolStr,force) = {
566528 let checkCaller = mustThis(i)
567529 if ((checkCaller == checkCaller))
568530 then {
569531 let targetEpoch = {
570532 let currentEpoch = getIntOrFail(this, keyCurrentEpoch)
571533 if (force)
572534 then currentEpoch
573535 else (currentEpoch - 1)
574536 }
575537 let checkTargetEpoch = if ((targetEpoch >= 0))
576538 then true
577539 else throwErr("processPoolINTERNAL: invalid target epoch")
578540 if ((checkTargetEpoch == checkTargetEpoch))
579541 then {
580542 let pool = stringToPool(poolStr)
581- let $t02047820518 = pool
582- let amountAssetId = $t02047820518._1
583- let priceAssetId = $t02047820518._2
543+ let $t01988519925 = pool
544+ let amountAssetId = $t01988519925._1
545+ let priceAssetId = $t01988519925._2
584546 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
585547 let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
586548 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
587549 let r = {
588550 let @ = invoke(stakingContract, "usersListTraversal", [lpAssetId], nil)
589551 if ($isInstanceOf(@, "Boolean"))
590552 then @
591553 else throw(($getType(@) + " couldn't be cast to Boolean"))
592554 }
593555 if ((r == r))
594556 then if (r)
595557 then $Tuple2(nil, true)
596558 else {
597559 let wxEmission = checkWxEmissionPoolLabel(pool)
598560 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0)
599561 let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0)
600562 let share = if (if ((totalVotes == 0))
601563 then true
602564 else !(wxEmission))
603565 then 0
604566 else fraction(votingResult, poolWeightMult, totalVotes)
605567 let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, share], nil)
606568 if ((modifyWeightInv == modifyWeightInv))
607569 then {
608570 let poolsListActions = if (if (wxEmission)
609571 then true
610572 else force)
611573 then nil
612574 else ([DeleteEntry(keyInList(pool))] ++ deleteNodeActions(poolsListName, poolStr))
613575 $Tuple2(([IntegerEntry(keyPoolShare(pool, targetEpoch), share)] ++ poolsListActions), false)
614576 }
615577 else throw("Strict value is not equal to itself.")
616578 }
617579 else throw("Strict value is not equal to itself.")
618580 }
619581 else throw("Strict value is not equal to itself.")
620582 }
621583 else throw("Strict value is not equal to itself.")
622584 }
623585
624586
625587
626588 @Callable(i)
627589 func finalizeHelper () = {
628590 let force = valueOrElse(getBoolean(keyFinalizationShouldBeForced), false)
629591 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
630592 let previousEpoch = (epoch - 1)
631593 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
632594 let epochLength = getIntOrFail(this, keyEpochLength)
633595 let endHeight = (startHeight + epochLength)
634596 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
635597 if (if (if ((height >= endHeight))
636598 then (finalizationStageOrUnit == unit)
637599 else false)
638600 then !(force)
639601 else false)
640602 then {
641603 let newEpoch = (epoch + 1)
642604 let newEpochLengthOption = getInteger(this, keyEpochLengthNew)
643605 let newEpochLengthActions = match newEpochLengthOption {
644606 case newEpochLength: Int =>
645607 [IntegerEntry(keyEpochLength, newEpochLength), DeleteEntry(keyEpochLengthNew)]
646608 case _: Unit =>
647609 nil
648610 case _ =>
649611 throw("Match error")
650612 }
651613 $Tuple2(([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageTotal), IntegerEntry(keyEpochLengthByEpoch(epoch), epochLength)] ++ newEpochLengthActions), true)
652614 }
653615 else if (if (force)
654616 then (finalizationStageOrUnit == unit)
655617 else false)
656618 then $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares)], true)
657619 else if ((finalizationStageOrUnit == unit))
658620 then $Tuple2(nil, false)
659621 else if ((finalizationStageOrUnit == finalizationStageTotal))
660622 then {
661623 let poolOrUnit = getString(keyNextPool)
662624 let userOrUnit = getString(keyNextUser)
663625 match poolOrUnit {
664626 case _: Unit =>
665627 match getString(keyListHead(poolsListName)) {
666628 case _: Unit =>
667629 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true)
668630 case poolsHeadStr: String =>
669631 $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true)
670632 case _ =>
671633 throw("Match error")
672634 }
673635 case poolStr: String =>
674636 let pool = stringToPool(poolStr)
675637 let nextUserOrUnit = match userOrUnit {
676638 case _: Unit =>
677639 getString(keyListHead(getVotesListName(pool)))
678640 case user: String =>
679641 let next = getString(keyListNext(getVotesListName(pool), user))
680642 if ((next == next))
681643 then {
682644 let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil)
683645 if ((processVoteInv == processVoteInv))
684646 then next
685647 else throw("Strict value is not equal to itself.")
686648 }
687649 else throw("Strict value is not equal to itself.")
688650 case _ =>
689651 throw("Match error")
690652 }
691653 match nextUserOrUnit {
692654 case _: Unit =>
693655 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
694656 match nextPoolOrUnit {
695657 case _: Unit =>
696658 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true)
697659 case s: String =>
698660 $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true)
699661 case _ =>
700662 throw("Match error")
701663 }
702664 case nextUser: String =>
703665 $Tuple2([StringEntry(keyNextUser, nextUser)], true)
704666 case _ =>
705667 throw("Match error")
706668 }
707669 case _ =>
708670 throw("Match error")
709671 }
710672 }
711673 else if ((finalizationStageOrUnit == finalizationStageShares))
712674 then {
713675 let poolOrUnit = getString(keyNextPool)
714676 match poolOrUnit {
715677 case _: Unit =>
716678 match getString(keyListHead(poolsListName)) {
717679 case _: Unit =>
718680 let actions = if (force)
719681 then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced)]
720682 else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)]
721683 $Tuple2(actions, true)
722684 case nextPoolStr: String =>
723685 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
724686 case _ =>
725687 throw("Match error")
726688 }
727689 case poolStr: String =>
728690 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
729691 if ((nextPoolOrUnit == nextPoolOrUnit))
730692 then {
731693 let r = {
732694 let @ = invoke(this, "processPoolINTERNAL", [poolStr, force], nil)
733695 if ($isInstanceOf(@, "Boolean"))
734696 then @
735697 else throw(($getType(@) + " couldn't be cast to Boolean"))
736698 }
737699 if ((r == r))
738700 then if (r)
739701 then $Tuple2(nil, true)
740702 else match nextPoolOrUnit {
741703 case _: Unit =>
742704 let actions = if (force)
743705 then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced), DeleteEntry(keyNextPool)]
744706 else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)]
745707 $Tuple2(actions, true)
746708 case nextPoolStr: String =>
747709 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
748710 case _ =>
749711 throw("Match error")
750712 }
751713 else throw("Strict value is not equal to itself.")
752714 }
753715 else throw("Strict value is not equal to itself.")
754716 case _ =>
755717 throw("Match error")
756718 }
757719 }
758720 else throwErr("finalization is broken")
759721 }
760722
761723
762724
763725 @Callable(i)
764726 func finalizeWrapper (counter) = {
765727 let result = {
766728 let @ = invoke(this, "finalizeHelper", nil, nil)
767729 if ($isInstanceOf(@, "Boolean"))
768730 then @
769731 else throw(($getType(@) + " couldn't be cast to Boolean"))
770732 }
771733 if ((result == result))
772734 then if (!(result))
773735 then if ((counter == 0))
774736 then throwErr("Current voting is not over yet")
775737 else $Tuple2(nil, unit)
776738 else {
777739 let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault)
778740 if ((maxDepth > counter))
779741 then {
780742 let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil)
781743 if ((inv == inv))
782744 then $Tuple2(nil, unit)
783745 else throw("Strict value is not equal to itself.")
784746 }
785747 else $Tuple2(nil, unit)
786748 }
787749 else throw("Strict value is not equal to itself.")
788750 }
789751
790752
791753
792754 @Callable(i)
793755 func finalize () = {
794756 let inv = invoke(this, "finalizeWrapper", [0], nil)
795757 if ((inv == inv))
796758 then $Tuple2(nil, unit)
797759 else throw("Strict value is not equal to itself.")
798760 }
799761
800762
801763
802764 @Callable(i)
803765 func containsNodeREADONLY (listName,id) = $Tuple2(nil, containsNode(listName, id))
804766
805767
806768
807769 @Callable(i)
808770 func insertNode (listName,id) = {
809771 let checkCaller = mustManager(i)
810772 if ((checkCaller == checkCaller))
811773 then $Tuple2(insertNodeActions(listName, id), unit)
812774 else throw("Strict value is not equal to itself.")
813775 }
814776
815777
816778
817779 @Callable(i)
818780 func deleteNode (listName,id) = {
819781 let checkCaller = mustManager(i)
820782 if ((checkCaller == checkCaller))
821783 then $Tuple2(deleteNodeActions(listName, id), unit)
822784 else throw("Strict value is not equal to itself.")
823785 }
824786
825787
826788 @Verifier(tx)
827789 func verify () = {
828790 let targetPublicKey = match managerPublicKeyOrUnit() {
829791 case pk: ByteVector =>
830792 pk
831793 case _: Unit =>
832794 tx.senderPublicKey
833795 case _ =>
834796 throw("Match error")
835797 }
836798 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
837799 }
838800

github/deemru/w8io/169f3d6 
82.39 ms