tx · HjGqyxJs9QCdAWgkxTxzhgJ6CdBn6LedTwjXjm6Neh4t

3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr:  -0.02200000 Waves

2023.05.12 14:15 [2574648] smart account 3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr > SELF 0.00000000 Waves

{ "type": 13, "id": "HjGqyxJs9QCdAWgkxTxzhgJ6CdBn6LedTwjXjm6Neh4t", "fee": 2200000, "feeAssetId": null, "timestamp": 1683890124081, "version": 2, "chainId": 84, "sender": "3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr", "senderPublicKey": "GFbasS3jufhZkK4xR7tdTjjnP8K33KvJFEDHRtxXDkaJ", "proofs": [ "5sbXa7CfQ34NGq34t2V9E7JC2K7iHT3cVCrivRExJc6BL8ZHRSiYmqAqxmuXC89Pin1HTGuCEebhWL3sZDpSCiaU" ], "script": "base64:BgKpFggCEgQKAggBEgcKBQgICAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESBAoCCAgSBAoCCAQSABIDCgEBEgASBAoCCAgSBAoCCAgSBAoCCAgiCXNlcGFyYXRvciIOcG9vbFdlaWdodE11bHQiD21heERlcHRoRGVmYXVsdCIWZmluYWxpemF0aW9uU3RhZ2VUb3RhbCIXZmluYWxpemF0aW9uU3RhZ2VTaGFyZXMiDmtleUVwb2NoTGVuZ3RoIhFrZXlFcG9jaExlbmd0aE5ldyIVa2V5RXBvY2hMZW5ndGhCeUVwb2NoIgVlcG9jaCIPa2V5Q3VycmVudEVwb2NoIgtrZXlNYXhEZXB0aCIia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCISa2V5RmFjdG9yeUNvbnRyYWN0IhNrZXlCb29zdGluZ0NvbnRyYWN0IhJrZXlTdGFraW5nQ29udHJhY3QiFGtleUZpbmFsaXphdGlvblN0YWdlIgtrZXlOZXh0UG9vbCILa2V5TmV4dFVzZXIiDmtleVN0YXJ0SGVpZ2h0IhFrZX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spentComplexity": 0 } View: original | compacted Prev: 93a9EBkd3SmCa8cF1ZfSFe8UPdKSgs7tFysQnGqMwmAz Next: AvWs3riEyaiksSpfXbSPf7KrQHhacfsxUpmXji25PZN1 Diff:
OldNewDifferences
140140 }
141141
142142
143+let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
144+
145+let IdxFactoryCfgGwxRewardDapp = 10
146+
147+func keyFactoryCfg () = "%s__factoryConfig"
148+
149+
150+func readFactoryCfgOrFail (factory) = split(getStrOrFail(factory, keyFactoryCfg()), separator)
151+
152+
153+func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
154+
155+
143156 func getLpAssetByPoolAssets (amountAssetId,priceAssetId) = {
144157 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
145158
147160
148161 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
149162
150- let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
151163 let amountAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amountAssetId))
152164 let priceAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAssetId))
153165 let poolContractAddress = getStrOrFail(factoryContract, keyMappingPoolAssetsToPoolContractAddress(amountAssetInternalId, priceAssetInternalId))
157169
158170
159171 func checkWxEmissionPoolLabel (pool) = {
160- let $t051685208 = pool
161- let amountAssetId = $t051685208._1
162- let priceAssetId = $t051685208._2
163- let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
172+ let $t054705510 = pool
173+ let amountAssetId = $t054705510._1
174+ let priceAssetId = $t054705510._2
164175 let @ = invoke(factoryContract, "checkWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil)
165176 if ($isInstanceOf(@, "Boolean"))
166177 then @
168179 }
169180
170181
182+func gwxRewardDeposit () = {
183+ let factoryCfg = readFactoryCfgOrFail(factoryContract)
184+ let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg)
185+ invoke(gwxRewardsContract, "deposit", nil, nil)
186+ }
187+
188+
171189 let poolsListName = "pools"
172190
173191 func getVotesListName (pool) = {
174- let $t055095549 = pool
175- let amountAssetId = $t055095549._1
176- let priceAssetId = $t055095549._2
192+ let $t059275967 = pool
193+ let amountAssetId = $t059275967._1
194+ let priceAssetId = $t059275967._2
177195 makeString(["votes", amountAssetId, priceAssetId], separator)
178196 }
179197
484502 if ((checkTargetEpoch == checkTargetEpoch))
485503 then {
486504 let pool = stringToPool(poolStr)
487- let $t01755217592 = pool
488- let amountAssetId = $t01755217592._1
489- let priceAssetId = $t01755217592._2
505+ let $t01797018010 = pool
506+ let amountAssetId = $t01797018010._1
507+ let priceAssetId = $t01797018010._2
490508 let wxEmission = checkWxEmissionPoolLabel(pool)
491509 let gwxAmountAtEndTotal = {
492510 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil)
545563 if ((checkTargetEpoch == checkTargetEpoch))
546564 then {
547565 let pool = stringToPool(poolStr)
548- let $t01994919989 = pool
549- let amountAssetId = $t01994919989._1
550- let priceAssetId = $t01994919989._2
566+ let $t02036720407 = pool
567+ let amountAssetId = $t02036720407._1
568+ let priceAssetId = $t02036720407._2
551569 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
552- let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
553570 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
554571 let r = {
555572 let @ = invoke(stakingContract, "usersListTraversal", [lpAssetId], nil)
685702 let actions = if (force)
686703 then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced)]
687704 else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)]
688- $Tuple2(actions, true)
705+ let gwxRewardDepositInv = gwxRewardDeposit()
706+ if ((gwxRewardDepositInv == gwxRewardDepositInv))
707+ then $Tuple2(actions, true)
708+ else throw("Strict value is not equal to itself.")
689709 case nextPoolStr: String =>
690710 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
691711 case _ =>
709729 let actions = if (force)
710730 then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced), DeleteEntry(keyNextPool)]
711731 else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)]
712- $Tuple2(actions, true)
732+ let gwxRewardDepositInv = gwxRewardDeposit()
733+ if ((gwxRewardDepositInv == gwxRewardDepositInv))
734+ then $Tuple2(actions, true)
735+ else throw("Strict value is not equal to itself.")
713736 case nextPoolStr: String =>
714737 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
715738 case _ =>
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
143+let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
144+
145+let IdxFactoryCfgGwxRewardDapp = 10
146+
147+func keyFactoryCfg () = "%s__factoryConfig"
148+
149+
150+func readFactoryCfgOrFail (factory) = split(getStrOrFail(factory, keyFactoryCfg()), separator)
151+
152+
153+func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
154+
155+
143156 func getLpAssetByPoolAssets (amountAssetId,priceAssetId) = {
144157 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
145158
146159 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
147160
148161 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
149162
150- let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
151163 let amountAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amountAssetId))
152164 let priceAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAssetId))
153165 let poolContractAddress = getStrOrFail(factoryContract, keyMappingPoolAssetsToPoolContractAddress(amountAssetInternalId, priceAssetInternalId))
154166 let lpAssetId = getStrOrFail(factoryContract, keyMappingPoolContractToLPAsset(poolContractAddress))
155167 lpAssetId
156168 }
157169
158170
159171 func checkWxEmissionPoolLabel (pool) = {
160- let $t051685208 = pool
161- let amountAssetId = $t051685208._1
162- let priceAssetId = $t051685208._2
163- let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
172+ let $t054705510 = pool
173+ let amountAssetId = $t054705510._1
174+ let priceAssetId = $t054705510._2
164175 let @ = invoke(factoryContract, "checkWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil)
165176 if ($isInstanceOf(@, "Boolean"))
166177 then @
167178 else throw(($getType(@) + " couldn't be cast to Boolean"))
168179 }
169180
170181
182+func gwxRewardDeposit () = {
183+ let factoryCfg = readFactoryCfgOrFail(factoryContract)
184+ let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg)
185+ invoke(gwxRewardsContract, "deposit", nil, nil)
186+ }
187+
188+
171189 let poolsListName = "pools"
172190
173191 func getVotesListName (pool) = {
174- let $t055095549 = pool
175- let amountAssetId = $t055095549._1
176- let priceAssetId = $t055095549._2
192+ let $t059275967 = pool
193+ let amountAssetId = $t059275967._1
194+ let priceAssetId = $t059275967._2
177195 makeString(["votes", amountAssetId, priceAssetId], separator)
178196 }
179197
180198
181199 func keyListHead (listName) = {
182200 let meta = if ((listName == poolsListName))
183201 then "%s%s"
184202 else "%s%s%s%s"
185203 makeString([meta, listName, "head"], separator)
186204 }
187205
188206
189207 func keyListSize (listName) = {
190208 let meta = if ((listName == poolsListName))
191209 then "%s%s"
192210 else "%s%s%s%s"
193211 makeString([meta, listName, "size"], separator)
194212 }
195213
196214
197215 func keyListPrev (listName,id) = {
198216 let meta = if ((listName == poolsListName))
199217 then "%s%s%s%s"
200218 else "%s%s%s%s%s"
201219 makeString([meta, listName, id, "prev"], separator)
202220 }
203221
204222
205223 func keyListNext (listName,id) = {
206224 let meta = if ((listName == poolsListName))
207225 then "%s%s%s%s"
208226 else "%s%s%s%s%s"
209227 makeString([meta, listName, id, "next"], separator)
210228 }
211229
212230
213231 func containsNode (listName,id) = {
214232 let headOrUnit = getString(this, keyListHead(listName))
215233 let prevOrUnit = getString(this, keyListPrev(listName, id))
216234 let nextOrUnit = getString(this, keyListNext(listName, id))
217235 if (if ((id == valueOrElse(headOrUnit, "")))
218236 then true
219237 else (prevOrUnit != unit))
220238 then true
221239 else (nextOrUnit != unit)
222240 }
223241
224242
225243 func insertNodeActions (listName,id) = {
226244 let headOrUnit = getString(this, keyListHead(listName))
227245 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
228246 let checkNode = if (!(containsNode(listName, id)))
229247 then true
230248 else throwErr("Node exists")
231249 if ((checkNode == checkNode))
232250 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
233251 then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
234252 else nil)) ++ [StringEntry(keyListHead(listName), id)])
235253 else throw("Strict value is not equal to itself.")
236254 }
237255
238256
239257 func deleteNodeActions (listName,id) = {
240258 let headOrUnit = getString(this, keyListHead(listName))
241259 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
242260 let prevOrUnit = getString(this, keyListPrev(listName, id))
243261 let nextOrUnit = getString(this, keyListNext(listName, id))
244262 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit))
245263 then (nextOrUnit != unit)
246264 else false)
247265 then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
248266 else if ((nextOrUnit != unit))
249267 then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))]
250268 else if ((prevOrUnit != unit))
251269 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))]
252270 else if ((id == valueOrElse(headOrUnit, "")))
253271 then [DeleteEntry(keyListHead(listName))]
254272 else throwErr(((("invalid node: " + listName) + ".") + id))))
255273 }
256274
257275
258276 func keyManagerVaultAddress () = "%s__managerVaultAddress"
259277
260278
261279 func keyManagerPublicKey () = "%s__managerPublicKey"
262280
263281
264282 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
265283 case s: String =>
266284 addressFromStringValue(s)
267285 case _ =>
268286 this
269287 }
270288
271289
272290 func managerPublicKeyOrUnit () = {
273291 let managerVaultAddress = getManagerVaultAddressOrThis()
274292 match getString(managerVaultAddress, keyManagerPublicKey()) {
275293 case s: String =>
276294 fromBase58String(s)
277295 case _: Unit =>
278296 unit
279297 case _ =>
280298 throw("Match error")
281299 }
282300 }
283301
284302
285303 func isManager (i) = match managerPublicKeyOrUnit() {
286304 case pk: ByteVector =>
287305 (i.callerPublicKey == pk)
288306 case _: Unit =>
289307 (i.caller == this)
290308 case _ =>
291309 throw("Match error")
292310 }
293311
294312
295313 func mustManager (i) = if (isManager(i))
296314 then true
297315 else throw("permission denied")
298316
299317
300318 func mustThis (i) = if ((i.caller == this))
301319 then true
302320 else throw("permission denied")
303321
304322
305323 @Callable(i)
306324 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
307325 let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), wrapErr("invalid boosting contract address"))
308326 $Tuple2(nil, {
309327 let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
310328 if ($isInstanceOf(@, "Int"))
311329 then @
312330 else throw(($getType(@) + " couldn't be cast to Int"))
313331 })
314332 }
315333
316334
317335
318336 @Callable(i)
319337 func constructor (factoryContract,votingEmissionCandidateContract,boostingContract,stakingContract,epochLength) = {
320338 let checks = [mustManager(i), if ((addressFromString(factoryContract) != unit))
321339 then true
322340 else "invalid factory contract address", if ((addressFromString(votingEmissionCandidateContract) != unit))
323341 then true
324342 else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit))
325343 then true
326344 else "invalid boosting contract address", if ((addressFromString(stakingContract) != unit))
327345 then true
328346 else "invalid staking contract address", if ((epochLength > 0))
329347 then true
330348 else throwErr("invalid epoch length")]
331349 if ((checks == checks))
332350 then $Tuple2([StringEntry(keyFactoryContract, factoryContract), StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), StringEntry(keyStakingContract, stakingContract), IntegerEntry(keyEpochLength, epochLength)], unit)
333351 else throw("Strict value is not equal to itself.")
334352 }
335353
336354
337355
338356 @Callable(i)
339357 func create (amountAssetId,priceAssetId) = {
340358 let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), "")))
341359 then true
342360 else mustManager(i)]
343361 if ((checks == checks))
344362 then {
345363 let pool = $Tuple2(amountAssetId, priceAssetId)
346364 let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool)))
347365 let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit)
348366 let startHeightActions = if (currentEpochIsNotDefined)
349367 then {
350368 let epoch = 0
351369 [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)]
352370 }
353371 else nil
354372 $Tuple2((inListActions ++ startHeightActions), unit)
355373 }
356374 else throw("Strict value is not equal to itself.")
357375 }
358376
359377
360378
361379 @Callable(i)
362380 func vote (amountAssetId,priceAssetId,amount) = {
363381 let pool = $Tuple2(amountAssetId, priceAssetId)
364382 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
365383 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
366384 let epochLength = getIntOrFail(this, keyEpochLength)
367385 let endHeight = (startHeight + epochLength)
368386 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
369387 let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0)
370388 let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0)
371389 let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0)
372390 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0)
373391 let gwxAmountAtEndTotal = {
374392 let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil)
375393 if ($isInstanceOf(@, "Int"))
376394 then @
377395 else throw(($getType(@) + " couldn't be cast to Int"))
378396 }
379397 let available = (gwxAmountAtEndTotal - used)
380398 let newVote = (vote + amount)
381399 let wxEmission = checkWxEmissionPoolLabel(pool)
382400 let checks = [if ((getBoolean(keyInList(pool)) != unit))
383401 then true
384402 else throwErr("invalid assets"), if ((endHeight > height))
385403 then true
386404 else throwErr("invalid height"), if ((finalizationStageOrUnit == unit))
387405 then true
388406 else throwErr("finalization in progress"), if ((gwxAmountAtEndTotal > 0))
389407 then true
390408 else throwErr("you do not have gWX"), if (if ((amount > 0))
391409 then (available >= amount)
392410 else false)
393411 then true
394412 else throwErr("invalid amount"), if (wxEmission)
395413 then true
396414 else throwErr("pool hasn't WX_EMISSION label")]
397415 if ((checks == checks))
398416 then {
399417 let votesListName = getVotesListName(pool)
400418 let userAddressStr = toString(i.caller)
401419 let votesListActions = if (containsNode(votesListName, userAddressStr))
402420 then nil
403421 else insertNodeActions(votesListName, userAddressStr)
404422 $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)
405423 }
406424 else throw("Strict value is not equal to itself.")
407425 }
408426
409427
410428
411429 @Callable(i)
412430 func cancelVote (amountAssetId,priceAssetId) = {
413431 let pool = $Tuple2(amountAssetId, priceAssetId)
414432 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
415433 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
416434 let epochLength = getIntOrFail(this, keyEpochLength)
417435 let endHeight = (startHeight + epochLength)
418436 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
419437 let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0)
420438 let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0)
421439 let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0)
422440 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0)
423441 let checks = [if ((getBoolean(keyInList(pool)) != unit))
424442 then true
425443 else throwErr("invalid assets"), if ((endHeight > height))
426444 then true
427445 else throwErr("invalid height"), if ((finalizationStageOrUnit == unit))
428446 then true
429447 else throwErr("finalization in progress"), if ((vote > 0))
430448 then true
431449 else throwErr("no vote")]
432450 if ((checks == checks))
433451 then {
434452 let votesListName = getVotesListName(pool)
435453 let userAddressStr = toString(i.caller)
436454 $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)
437455 }
438456 else throw("Strict value is not equal to itself.")
439457 }
440458
441459
442460
443461 @Callable(i)
444462 func setEpochLength (newEpochLength) = {
445463 let checks = [mustManager(i), if ((newEpochLength > 0))
446464 then true
447465 else throwErr("invalid epoch length")]
448466 if ((checks == checks))
449467 then $Tuple2([IntegerEntry(keyEpochLengthNew, newEpochLength)], unit)
450468 else throw("Strict value is not equal to itself.")
451469 }
452470
453471
454472
455473 @Callable(i)
456474 func setMaxDepth (newMaxDepth) = {
457475 let checks = [mustManager(i), if ((newMaxDepth > 0))
458476 then true
459477 else throwErr("invalid max depth")]
460478 if ((checks == checks))
461479 then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit)
462480 else throw("Strict value is not equal to itself.")
463481 }
464482
465483
466484
467485 @Callable(i)
468486 func processVoteINTERNAL (poolStr,userAddressStr) = {
469487 let checkCaller = mustThis(i)
470488 if ((checkCaller == checkCaller))
471489 then {
472490 let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), wrapErr(("processVoteINTERNAL: invalid user address " + userAddressStr)))
473491 let epoch = getIntOrFail(this, keyCurrentEpoch)
474492 let epochPrevious = (epoch - 1)
475493 let epochLength = getIntOrFail(this, keyEpochLength)
476494 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
477495 let endHeight = (startHeight + epochLength)
478496 let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious))
479497 let epochLengthPrevious = getIntOrFail(this, keyEpochLengthByEpoch(epochPrevious))
480498 let endHeightPrevious = (startHeightPrevious + epochLengthPrevious)
481499 let checkTargetEpoch = if ((epochPrevious >= 0))
482500 then true
483501 else throwErr("processVoteINTERNAL: invalid previous epoch")
484502 if ((checkTargetEpoch == checkTargetEpoch))
485503 then {
486504 let pool = stringToPool(poolStr)
487- let $t01755217592 = pool
488- let amountAssetId = $t01755217592._1
489- let priceAssetId = $t01755217592._2
505+ let $t01797018010 = pool
506+ let amountAssetId = $t01797018010._1
507+ let priceAssetId = $t01797018010._2
490508 let wxEmission = checkWxEmissionPoolLabel(pool)
491509 let gwxAmountAtEndTotal = {
492510 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil)
493511 if ($isInstanceOf(@, "Int"))
494512 then @
495513 else throw(($getType(@) + " couldn't be cast to Int"))
496514 }
497515 let gwxAmountAtEndTotalPrevious = {
498516 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil)
499517 if ($isInstanceOf(@, "Int"))
500518 then @
501519 else throw(($getType(@) + " couldn't be cast to Int"))
502520 }
503521 let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0)
504522 let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0)
505523 let votePrevious = valueOrErrorMessage(getInteger(keyVote(pool, userAddress, epochPrevious)), wrapErr((((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote")))
506524 let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0)
507525 let lpAssetIdStr = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
508526 let votingResultStakedPrevious = valueOrElse(getInteger(keyVotingResultStaked(lpAssetIdStr, epochPrevious)), 0)
509527 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
510528 let stakedByUser = valueOrElse(getInteger(stakingContract, keyStakedByUser(lpAssetIdStr, userAddressStr)), 0)
511529 let votingResultStakedActions = if ((stakedByUser == 0))
512530 then nil
513531 else [IntegerEntry(keyVotingResultStaked(lpAssetIdStr, epochPrevious), (votingResultStakedPrevious + votePrevious))]
514532 let newVote = if ((gwxAmountAtEndTotalPrevious > 0))
515533 then fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious)
516534 else 0
517535 let actions = if (if ((newVote > 0))
518536 then wxEmission
519537 else false)
520538 then [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))]
521539 else deleteNodeActions(getVotesListName(pool), userAddressStr)
522540 $Tuple2((actions ++ votingResultStakedActions), unit)
523541 }
524542 else throw("Strict value is not equal to itself.")
525543 }
526544 else throw("Strict value is not equal to itself.")
527545 }
528546
529547
530548
531549 @Callable(i)
532550 func processPoolINTERNAL (poolStr,force) = {
533551 let checkCaller = mustThis(i)
534552 if ((checkCaller == checkCaller))
535553 then {
536554 let targetEpoch = {
537555 let currentEpoch = getIntOrFail(this, keyCurrentEpoch)
538556 if (force)
539557 then currentEpoch
540558 else (currentEpoch - 1)
541559 }
542560 let checkTargetEpoch = if ((targetEpoch >= 0))
543561 then true
544562 else throwErr("processPoolINTERNAL: invalid target epoch")
545563 if ((checkTargetEpoch == checkTargetEpoch))
546564 then {
547565 let pool = stringToPool(poolStr)
548- let $t01994919989 = pool
549- let amountAssetId = $t01994919989._1
550- let priceAssetId = $t01994919989._2
566+ let $t02036720407 = pool
567+ let amountAssetId = $t02036720407._1
568+ let priceAssetId = $t02036720407._2
551569 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
552- let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
553570 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
554571 let r = {
555572 let @ = invoke(stakingContract, "usersListTraversal", [lpAssetId], nil)
556573 if ($isInstanceOf(@, "Boolean"))
557574 then @
558575 else throw(($getType(@) + " couldn't be cast to Boolean"))
559576 }
560577 if ((r == r))
561578 then if (r)
562579 then $Tuple2(nil, true)
563580 else {
564581 let wxEmission = checkWxEmissionPoolLabel(pool)
565582 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0)
566583 let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0)
567584 let share = if (if ((totalVotes == 0))
568585 then true
569586 else !(wxEmission))
570587 then 0
571588 else fraction(votingResult, poolWeightMult, totalVotes)
572589 let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, share], nil)
573590 if ((modifyWeightInv == modifyWeightInv))
574591 then {
575592 let poolsListActions = if (if (wxEmission)
576593 then true
577594 else force)
578595 then nil
579596 else ([DeleteEntry(keyInList(pool))] ++ deleteNodeActions(poolsListName, poolStr))
580597 $Tuple2(([IntegerEntry(keyPoolShare(pool, targetEpoch), share)] ++ poolsListActions), false)
581598 }
582599 else throw("Strict value is not equal to itself.")
583600 }
584601 else throw("Strict value is not equal to itself.")
585602 }
586603 else throw("Strict value is not equal to itself.")
587604 }
588605 else throw("Strict value is not equal to itself.")
589606 }
590607
591608
592609
593610 @Callable(i)
594611 func finalizeHelper () = {
595612 let force = valueOrElse(getBoolean(keyFinalizationShouldBeForced), false)
596613 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
597614 let previousEpoch = (epoch - 1)
598615 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
599616 let epochLength = getIntOrFail(this, keyEpochLength)
600617 let endHeight = (startHeight + epochLength)
601618 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
602619 if (if (if ((height >= endHeight))
603620 then (finalizationStageOrUnit == unit)
604621 else false)
605622 then !(force)
606623 else false)
607624 then {
608625 let newEpoch = (epoch + 1)
609626 let newEpochLengthOption = getInteger(this, keyEpochLengthNew)
610627 let newEpochLengthActions = match newEpochLengthOption {
611628 case newEpochLength: Int =>
612629 [IntegerEntry(keyEpochLength, newEpochLength), DeleteEntry(keyEpochLengthNew)]
613630 case _: Unit =>
614631 nil
615632 case _ =>
616633 throw("Match error")
617634 }
618635 $Tuple2(([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageTotal), IntegerEntry(keyEpochLengthByEpoch(epoch), epochLength)] ++ newEpochLengthActions), true)
619636 }
620637 else if (if (force)
621638 then (finalizationStageOrUnit == unit)
622639 else false)
623640 then $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares)], true)
624641 else if ((finalizationStageOrUnit == unit))
625642 then $Tuple2(nil, false)
626643 else if ((finalizationStageOrUnit == finalizationStageTotal))
627644 then {
628645 let poolOrUnit = getString(keyNextPool)
629646 let userOrUnit = getString(keyNextUser)
630647 match poolOrUnit {
631648 case _: Unit =>
632649 match getString(keyListHead(poolsListName)) {
633650 case _: Unit =>
634651 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true)
635652 case poolsHeadStr: String =>
636653 $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true)
637654 case _ =>
638655 throw("Match error")
639656 }
640657 case poolStr: String =>
641658 let pool = stringToPool(poolStr)
642659 let nextUserOrUnit = match userOrUnit {
643660 case _: Unit =>
644661 getString(keyListHead(getVotesListName(pool)))
645662 case user: String =>
646663 let next = getString(keyListNext(getVotesListName(pool), user))
647664 if ((next == next))
648665 then {
649666 let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil)
650667 if ((processVoteInv == processVoteInv))
651668 then next
652669 else throw("Strict value is not equal to itself.")
653670 }
654671 else throw("Strict value is not equal to itself.")
655672 case _ =>
656673 throw("Match error")
657674 }
658675 match nextUserOrUnit {
659676 case _: Unit =>
660677 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
661678 match nextPoolOrUnit {
662679 case _: Unit =>
663680 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true)
664681 case s: String =>
665682 $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true)
666683 case _ =>
667684 throw("Match error")
668685 }
669686 case nextUser: String =>
670687 $Tuple2([StringEntry(keyNextUser, nextUser)], true)
671688 case _ =>
672689 throw("Match error")
673690 }
674691 case _ =>
675692 throw("Match error")
676693 }
677694 }
678695 else if ((finalizationStageOrUnit == finalizationStageShares))
679696 then {
680697 let poolOrUnit = getString(keyNextPool)
681698 match poolOrUnit {
682699 case _: Unit =>
683700 match getString(keyListHead(poolsListName)) {
684701 case _: Unit =>
685702 let actions = if (force)
686703 then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced)]
687704 else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)]
688- $Tuple2(actions, true)
705+ let gwxRewardDepositInv = gwxRewardDeposit()
706+ if ((gwxRewardDepositInv == gwxRewardDepositInv))
707+ then $Tuple2(actions, true)
708+ else throw("Strict value is not equal to itself.")
689709 case nextPoolStr: String =>
690710 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
691711 case _ =>
692712 throw("Match error")
693713 }
694714 case poolStr: String =>
695715 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
696716 if ((nextPoolOrUnit == nextPoolOrUnit))
697717 then {
698718 let r = {
699719 let @ = invoke(this, "processPoolINTERNAL", [poolStr, force], nil)
700720 if ($isInstanceOf(@, "Boolean"))
701721 then @
702722 else throw(($getType(@) + " couldn't be cast to Boolean"))
703723 }
704724 if ((r == r))
705725 then if (r)
706726 then $Tuple2(nil, true)
707727 else match nextPoolOrUnit {
708728 case _: Unit =>
709729 let actions = if (force)
710730 then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced), DeleteEntry(keyNextPool)]
711731 else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)]
712- $Tuple2(actions, true)
732+ let gwxRewardDepositInv = gwxRewardDeposit()
733+ if ((gwxRewardDepositInv == gwxRewardDepositInv))
734+ then $Tuple2(actions, true)
735+ else throw("Strict value is not equal to itself.")
713736 case nextPoolStr: String =>
714737 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
715738 case _ =>
716739 throw("Match error")
717740 }
718741 else throw("Strict value is not equal to itself.")
719742 }
720743 else throw("Strict value is not equal to itself.")
721744 case _ =>
722745 throw("Match error")
723746 }
724747 }
725748 else throwErr("finalization is broken")
726749 }
727750
728751
729752
730753 @Callable(i)
731754 func finalizeWrapper (counter) = {
732755 let result = {
733756 let @ = invoke(this, "finalizeHelper", nil, nil)
734757 if ($isInstanceOf(@, "Boolean"))
735758 then @
736759 else throw(($getType(@) + " couldn't be cast to Boolean"))
737760 }
738761 if ((result == result))
739762 then if (!(result))
740763 then if ((counter == 0))
741764 then throwErr("Current voting is not over yet")
742765 else $Tuple2(nil, unit)
743766 else {
744767 let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault)
745768 if ((maxDepth > counter))
746769 then {
747770 let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil)
748771 if ((inv == inv))
749772 then $Tuple2(nil, unit)
750773 else throw("Strict value is not equal to itself.")
751774 }
752775 else $Tuple2(nil, unit)
753776 }
754777 else throw("Strict value is not equal to itself.")
755778 }
756779
757780
758781
759782 @Callable(i)
760783 func finalize () = {
761784 let inv = invoke(this, "finalizeWrapper", [0], nil)
762785 if ((inv == inv))
763786 then $Tuple2(nil, unit)
764787 else throw("Strict value is not equal to itself.")
765788 }
766789
767790
768791
769792 @Callable(i)
770793 func containsNodeREADONLY (listName,id) = $Tuple2(nil, containsNode(listName, id))
771794
772795
773796
774797 @Callable(i)
775798 func insertNode (listName,id) = {
776799 let checkCaller = mustManager(i)
777800 if ((checkCaller == checkCaller))
778801 then $Tuple2(insertNodeActions(listName, id), unit)
779802 else throw("Strict value is not equal to itself.")
780803 }
781804
782805
783806
784807 @Callable(i)
785808 func deleteNode (listName,id) = {
786809 let checkCaller = mustManager(i)
787810 if ((checkCaller == checkCaller))
788811 then $Tuple2(deleteNodeActions(listName, id), unit)
789812 else throw("Strict value is not equal to itself.")
790813 }
791814
792815
793816 @Verifier(tx)
794817 func verify () = {
795818 let targetPublicKey = match managerPublicKeyOrUnit() {
796819 case pk: ByteVector =>
797820 pk
798821 case _: Unit =>
799822 tx.senderPublicKey
800823 case _ =>
801824 throw("Match error")
802825 }
803826 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
804827 }
805828

github/deemru/w8io/026f985 
103.98 ms