tx · 5Lrz9ARrmWLs4a4SSf12xH6ApDgh6XHk2Mm5bsL1RaAo

3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr:  -0.02800000 Waves

2024.04.22 17:24 [3074113] smart account 3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr > SELF 0.00000000 Waves

{ "type": 13, "id": "5Lrz9ARrmWLs4a4SSf12xH6ApDgh6XHk2Mm5bsL1RaAo", "fee": 2800000, "feeAssetId": null, "timestamp": 1713795855619, "version": 2, "chainId": 84, "sender": "3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr", "senderPublicKey": "GFbasS3jufhZkK4xR7tdTjjnP8K33KvJFEDHRtxXDkaJ", "proofs": [ "5meqj8xQ5cddJ3MmKL1TeW64a2VHCDFyae6JHpTPxjaScBXp3sDgrXuHoAStXGBAB5juoRfz83feBLzFmbbpB2Rt" ], "script": "base64:BgKGHQgCEgQKAggBEgcKBQgICAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESAwoBCBIECgIICBIECgIIBBIAEgMKAQESABIECgIICBIECgIICBIECgIICBIAEgQKAggIEgUKAwgIASIJc2VwYXJhdG9yIg5wb29sV2VpZ2h0TXVsdCIPbWF4RGVwdGhEZWZhdWx0IhlmaW5hbGl6YXRpb25TdGFnZUJhbGFuY2VzIhZmaW5hbGl6YXRpb25TdGFnZVRvdGFsIhdmaW5hbGl6YXRpb25TdGFnZVNoYXJlcyILd2F2ZXNTdHJpbmciEHBvb2xTdGF0dXNBY3RpdmUiFXBvb2xTdGF0dXNQdXREaXNhYmxlZCIZcG9vbFN0YXR1c01hdGNoZXJEaXNhYmxlZCIScG9vbFN0YXR1c1NodXRkb3duIg5rZXlFcG9jaExlbmd0aCIRa2V5RXBvY2hMZW5ndGhOZXciFWtleUVwb2NoTGVuZ3RoQnlFcG9jaCIFZXBvY2giD2tleUN1cnJlbnRFcG9jaCILa2V5TWF4RGVwdGgiEGtleVJlc3VtcHRpb25GZWUiImt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YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECZHMBAmR0AAQCZHUEAmFpCQECYm8AAwkAAQIFAmFpAgpCeXRlVmVjdG9yBAJicwUCYWkFAmJzAwkAAQIFAmFpAgRVbml0CAUCZHMPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmRzCWJvZHlCeXRlcwkAkQMCCAUCZHMGcHJvb2ZzAAAFAmR1uodZfQ==", "height": 3074113, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5HmkgC4yPdmKxBECrSjaNrXpyJUdUC5mTa1Xgq85b2ru Next: 92ea3wYcCXBKmFveQCqZYdk1c1BdNCBy77wUCXKQj3FL Diff:
OldNewDifferences
535535 let epoch = getIntOrFail(this, keyCurrentEpoch)
536536 let epochPrevious = (epoch - 1)
537537 let pool = stringToPool(poolStr)
538- let $t01726217302 = pool
539- let amountAssetId = $t01726217302._1
540- let priceAssetId = $t01726217302._2
538+ let $t01724217282 = pool
539+ let amountAssetId = $t01724217282._1
540+ let priceAssetId = $t01724217282._2
541541 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
542542 let balanceIsOk = {
543543 let @ = invoke(factoryContract, "checkBalance", [lpAssetId], nil)
594594 if ((checkTargetEpoch == checkTargetEpoch))
595595 then {
596596 let pool = stringToPool(poolStr)
597- let $t01934819388 = pool
598- let amountAssetId = $t01934819388._1
599- let priceAssetId = $t01934819388._2
597+ let $t01910819148 = pool
598+ let amountAssetId = $t01910819148._1
599+ let priceAssetId = $t01910819148._2
600600 let gwxAmountAtEndTotal = {
601601 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil)
602602 if ($isInstanceOf(@, "Int"))
658658 if ((checkTargetEpoch == checkTargetEpoch))
659659 then {
660660 let pool = stringToPool(poolStr)
661- let $t02185821898 = pool
662- let amountAssetId = $t02185821898._1
663- let priceAssetId = $t02185821898._2
661+ let $t02161821658 = pool
662+ let amountAssetId = $t02161821658._1
663+ let priceAssetId = $t02161821658._2
664664 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
665665 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
666666 let r = {
974974 @Callable(i)
975975 func resume (amountAssetId,priceAssetId,slippageToleranceOrMinOutAmount) = {
976976 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
977- let $t03285032980 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets"))
978- let poolAddress = $t03285032980._1
979- let lpAssetId = $t03285032980._2
977+ let $t03161931749 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets"))
978+ let poolAddress = $t03161931749._1
979+ let lpAssetId = $t03161931749._2
980980 let feePayment = i.payments[0]
981981 let assetsStoreContract = addressFromStringValue(getStringValue(this, keyAssetsStoreContract))
982982 let kBoostingConfig = "%s__config"
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 finalizationStageBalances = 0
1111
1212 let finalizationStageTotal = 1
1313
1414 let finalizationStageShares = 2
1515
1616 let wavesString = "WAVES"
1717
1818 let poolStatusActive = 1
1919
2020 let poolStatusPutDisabled = 2
2121
2222 let poolStatusMatcherDisabled = 3
2323
2424 let poolStatusShutdown = 4
2525
2626 let keyEpochLength = makeString(["%s", "epochLength"], separator)
2727
2828 let keyEpochLengthNew = makeString(["%s%s", "epochLength__new"], separator)
2929
3030 func keyEpochLengthByEpoch (epoch) = makeString(["%s%d", "epochLength", toString(epoch)], separator)
3131
3232
3333 let keyCurrentEpoch = makeString(["%s", "currentEpoch"], separator)
3434
3535 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
3636
3737 let keyResumptionFee = makeString(["%s", "resumptionFee"], separator)
3838
3939 let keyVotingEmissionCandidateContract = makeString(["%s", "votingEmissionCandidateContract"], separator)
4040
4141 let keyVotingEmissionRateContract = makeString(["%s", "votingEmissionRateContract"], separator)
4242
4343 let keyFactoryContract = makeString(["%s", "factoryContract"], separator)
4444
4545 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
4646
4747 let keyStakingContract = makeString(["%s", "stakingContract"], separator)
4848
4949 let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator)
5050
5151 let keyFinalizationStage = makeString(["%s", "finalizationStage"], separator)
5252
5353 let keyNextPool = makeString(["%s", "nextPool"], separator)
5454
5555 let keyNextUser = makeString(["%s", "nextUser"], separator)
5656
5757 let keyStartHeight = makeString(["%s", "startHeight"], separator)
5858
5959 let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], separator)
6060
6161 let keyStartHeightUi = makeString(["%s", "startHeightUi"], separator)
6262
6363 let keyFinalizationShouldBeForced = makeString(["%s", "force"], separator)
6464
6565 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
6666
6767
6868 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
6969
7070
7171 func keyStartHeightByEpoch (epoch) = makeString(["%s%d", "startHeight", toString(epoch)], separator)
7272
7373
7474 func keyFinalized (epoch) = makeString(["%s%d", "finalized", toString(epoch)], separator)
7575
7676
7777 func keyInList (pool) = {
7878 let $t022442284 = pool
7979 let amountAssetId = $t022442284._1
8080 let priceAssetId = $t022442284._2
8181 makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator)
8282 }
8383
8484
8585 func keyUsed (address,epoch) = makeString(["%s%s%d", "used", toString(address), toString(epoch)], separator)
8686
8787
8888 func keyVote (pool,address,epoch) = {
8989 let $t025582598 = pool
9090 let amountAssetId = $t025582598._1
9191 let priceAssetId = $t025582598._2
9292 makeString(["%s%s%s%s%d", "vote", amountAssetId, priceAssetId, toString(address), toString(epoch)], separator)
9393 }
9494
9595
9696 func keyVotingResult (pool,epoch) = {
9797 let $t027802820 = pool
9898 let amountAssetId = $t027802820._1
9999 let priceAssetId = $t027802820._2
100100 makeString(["%s%s%s%d", "votingResult", amountAssetId, priceAssetId, toString(epoch)], separator)
101101 }
102102
103103
104104 func keyVotingResultStaked (lpAssetIdStr,epoch) = makeString(["%s%s%d", "votingResultStaked", lpAssetIdStr, toString(epoch)], separator)
105105
106106
107107 func keyPoolShare (pool,epoch) = {
108108 let $t031413181 = pool
109109 let amountAssetId = $t031413181._1
110110 let priceAssetId = $t031413181._2
111111 makeString(["%s%s%s%d", "poolShare", amountAssetId, priceAssetId, toString(epoch)], separator)
112112 }
113113
114114
115115 func keyTotalVotes (epoch) = makeString(["%s%d", "totalVotes", toString(epoch)], separator)
116116
117117
118118 func keyStakedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s", "staked", userAddressStr, lpAssetIdStr], separator)
119119
120120
121121 func wrapErr (msg) = makeString(["voting_emission.ride:", msg], " ")
122122
123123
124124 func throwErr (msg) = throw(wrapErr(msg))
125125
126126
127127 func getValueOrFail (address,key,type) = {
128128 let error = wrapErr(makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
129129 valueOrErrorMessage( match type {
130130 case str: String =>
131131 getString(address, key)
132132 case int: Int =>
133133 getInteger(address, key)
134134 case _ =>
135135 throwErr("invalid entry type")
136136 }, error)
137137 }
138138
139139
140140 func getStrOrFail (address,key) = {
141141 let @ = getValueOrFail(address, key, "")
142142 if ($isInstanceOf(@, "String"))
143143 then @
144144 else throw(($getType(@) + " couldn't be cast to String"))
145145 }
146146
147147
148148 func getIntOrFail (address,key) = {
149149 let @ = getValueOrFail(address, key, 0)
150150 if ($isInstanceOf(@, "Int"))
151151 then @
152152 else throw(($getType(@) + " couldn't be cast to Int"))
153153 }
154154
155155
156156 func poolToString (pool) = ((pool._1 + separator) + pool._2)
157157
158158
159159 func stringToPool (str) = {
160160 let parts = split(str, separator)
161161 if ((size(parts) == 2))
162162 then $Tuple2(parts[0], parts[1])
163163 else throwErr("invalid pool string")
164164 }
165165
166166
167167 let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract))
168168
169169 let IdxFactoryCfgGwxRewardDapp = 10
170170
171171 func keyFactoryCfg () = "%s__factoryConfig"
172172
173173
174174 func readFactoryCfgOrFail (factory) = split(getStrOrFail(factory, keyFactoryCfg()), separator)
175175
176176
177177 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
178178
179179
180180 func parseAssetId (input) = if ((input == wavesString))
181181 then unit
182182 else fromBase58String(input)
183183
184184
185185 func assetIdToString (input) = if ((input == unit))
186186 then wavesString
187187 else toBase58String(value(input))
188188
189189
190190 func getPoolInfo (amountAssetId,priceAssetId) = {
191191 let poolInfoOption = {
192192 let @ = invoke(factoryContract, "poolInfoREADONLY", [amountAssetId, priceAssetId], nil)
193193 if ($isInstanceOf(@, "(Address, ByteVector)"))
194194 then @
195195 else unit
196196 }
197197 poolInfoOption
198198 }
199199
200200
201201 func getLpAssetByPoolAssets (amountAssetId,priceAssetId) = {
202202 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
203203
204204 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
205205
206206 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
207207
208208 let amountAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amountAssetId))
209209 let priceAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAssetId))
210210 let poolContractAddress = getStrOrFail(factoryContract, keyMappingPoolAssetsToPoolContractAddress(amountAssetInternalId, priceAssetInternalId))
211211 let lpAssetId = getStrOrFail(factoryContract, keyMappingPoolContractToLPAsset(poolContractAddress))
212212 lpAssetId
213213 }
214214
215215
216216 func checkWxEmissionPoolLabel (pool) = {
217217 let $t065416581 = pool
218218 let amountAssetId = $t065416581._1
219219 let priceAssetId = $t065416581._2
220220 let @ = invoke(factoryContract, "checkWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil)
221221 if ($isInstanceOf(@, "Boolean"))
222222 then @
223223 else throw(($getType(@) + " couldn't be cast to Boolean"))
224224 }
225225
226226
227227 func gwxRewardDeposit () = {
228228 let factoryCfg = readFactoryCfgOrFail(factoryContract)
229229 let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg)
230230 invoke(gwxRewardsContract, "deposit", nil, nil)
231231 }
232232
233233
234234 let poolsListName = "pools"
235235
236236 func getVotesListName (pool) = {
237237 let $t069987038 = pool
238238 let amountAssetId = $t069987038._1
239239 let priceAssetId = $t069987038._2
240240 makeString(["votes", amountAssetId, priceAssetId], separator)
241241 }
242242
243243
244244 func keyListHead (listName) = {
245245 let meta = if ((listName == poolsListName))
246246 then "%s%s"
247247 else "%s%s%s%s"
248248 makeString([meta, listName, "head"], separator)
249249 }
250250
251251
252252 func keyListSize (listName) = {
253253 let meta = if ((listName == poolsListName))
254254 then "%s%s"
255255 else "%s%s%s%s"
256256 makeString([meta, listName, "size"], separator)
257257 }
258258
259259
260260 func keyListPrev (listName,id) = {
261261 let meta = if ((listName == poolsListName))
262262 then "%s%s%s%s"
263263 else "%s%s%s%s%s"
264264 makeString([meta, listName, id, "prev"], separator)
265265 }
266266
267267
268268 func keyListNext (listName,id) = {
269269 let meta = if ((listName == poolsListName))
270270 then "%s%s%s%s"
271271 else "%s%s%s%s%s"
272272 makeString([meta, listName, id, "next"], separator)
273273 }
274274
275275
276276 func containsNode (listName,id) = {
277277 let headOrUnit = getString(this, keyListHead(listName))
278278 let prevOrUnit = getString(this, keyListPrev(listName, id))
279279 let nextOrUnit = getString(this, keyListNext(listName, id))
280280 if (if ((id == valueOrElse(headOrUnit, "")))
281281 then true
282282 else (prevOrUnit != unit))
283283 then true
284284 else (nextOrUnit != unit)
285285 }
286286
287287
288288 func insertNodeActions (listName,id) = {
289289 let headOrUnit = getString(this, keyListHead(listName))
290290 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
291291 let checkNode = if (!(containsNode(listName, id)))
292292 then true
293293 else throwErr("Node exists")
294294 if ((checkNode == checkNode))
295295 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit))
296296 then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)]
297297 else nil)) ++ [StringEntry(keyListHead(listName), id)])
298298 else throw("Strict value is not equal to itself.")
299299 }
300300
301301
302302 func deleteNodeActions (listName,id) = {
303303 let headOrUnit = getString(this, keyListHead(listName))
304304 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
305305 let prevOrUnit = getString(this, keyListPrev(listName, id))
306306 let nextOrUnit = getString(this, keyListNext(listName, id))
307307 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit))
308308 then (nextOrUnit != unit)
309309 else false)
310310 then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
311311 else if ((nextOrUnit != unit))
312312 then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))]
313313 else if ((prevOrUnit != unit))
314314 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))]
315315 else if ((id == valueOrElse(headOrUnit, "")))
316316 then [DeleteEntry(keyListHead(listName))]
317317 else throwErr(((("invalid node: " + listName) + ".") + id))))
318318 }
319319
320320
321321 func keyManagerVaultAddress () = "%s__managerVaultAddress"
322322
323323
324324 func keyManagerPublicKey () = "%s__managerPublicKey"
325325
326326
327327 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
328328 case s: String =>
329329 addressFromStringValue(s)
330330 case _ =>
331331 this
332332 }
333333
334334
335335 func managerPublicKeyOrUnit () = {
336336 let managerVaultAddress = getManagerVaultAddressOrThis()
337337 match getString(managerVaultAddress, keyManagerPublicKey()) {
338338 case s: String =>
339339 fromBase58String(s)
340340 case _: Unit =>
341341 unit
342342 case _ =>
343343 throw("Match error")
344344 }
345345 }
346346
347347
348348 func isManager (i) = match managerPublicKeyOrUnit() {
349349 case pk: ByteVector =>
350350 (i.callerPublicKey == pk)
351351 case _: Unit =>
352352 (i.caller == this)
353353 case _ =>
354354 throw("Match error")
355355 }
356356
357357
358358 func mustManager (i) = if (isManager(i))
359359 then true
360360 else throw("permission denied")
361361
362362
363363 func mustThis (i) = if ((i.caller == this))
364364 then true
365365 else throw("permission denied")
366366
367367
368368 @Callable(i)
369369 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
370370 let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), wrapErr("invalid boosting contract address"))
371371 $Tuple2(nil, {
372372 let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
373373 if ($isInstanceOf(@, "Int"))
374374 then @
375375 else throw(($getType(@) + " couldn't be cast to Int"))
376376 })
377377 }
378378
379379
380380
381381 @Callable(i)
382382 func constructor (factoryContract,votingEmissionCandidateContract,boostingContract,stakingContract,epochLength) = {
383383 let checks = [mustManager(i), if ((addressFromString(factoryContract) != unit))
384384 then true
385385 else "invalid factory contract address", if ((addressFromString(votingEmissionCandidateContract) != unit))
386386 then true
387387 else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit))
388388 then true
389389 else "invalid boosting contract address", if ((addressFromString(stakingContract) != unit))
390390 then true
391391 else "invalid staking contract address", if ((epochLength > 0))
392392 then true
393393 else throwErr("invalid epoch length")]
394394 if ((checks == checks))
395395 then $Tuple2([StringEntry(keyFactoryContract, factoryContract), StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), StringEntry(keyStakingContract, stakingContract), IntegerEntry(keyEpochLength, epochLength)], unit)
396396 else throw("Strict value is not equal to itself.")
397397 }
398398
399399
400400
401401 @Callable(i)
402402 func create (amountAssetId,priceAssetId) = {
403403 let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), "")))
404404 then true
405405 else mustManager(i)]
406406 if ((checks == checks))
407407 then {
408408 let pool = $Tuple2(amountAssetId, priceAssetId)
409409 let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool)))
410410 let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit)
411411 let startHeightActions = if (currentEpochIsNotDefined)
412412 then {
413413 let epoch = 0
414414 [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)]
415415 }
416416 else nil
417417 $Tuple2((inListActions ++ startHeightActions), unit)
418418 }
419419 else throw("Strict value is not equal to itself.")
420420 }
421421
422422
423423
424424 @Callable(i)
425425 func vote (amountAssetId,priceAssetId,amount) = {
426426 let pool = $Tuple2(amountAssetId, priceAssetId)
427427 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
428428 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
429429 let epochLength = getIntOrFail(this, keyEpochLength)
430430 let endHeight = (startHeight + epochLength)
431431 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
432432 let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0)
433433 let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0)
434434 let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0)
435435 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0)
436436 let gwxAmountAtEndTotal = {
437437 let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil)
438438 if ($isInstanceOf(@, "Int"))
439439 then @
440440 else throw(($getType(@) + " couldn't be cast to Int"))
441441 }
442442 let available = (gwxAmountAtEndTotal - used)
443443 let newVote = (vote + amount)
444444 let wxEmission = checkWxEmissionPoolLabel(pool)
445445 let checks = [if ((getBoolean(keyInList(pool)) != unit))
446446 then true
447447 else throwErr("invalid assets"), if ((endHeight > height))
448448 then true
449449 else throwErr("invalid height"), if ((finalizationStageOrUnit == unit))
450450 then true
451451 else throwErr("finalization in progress"), if ((gwxAmountAtEndTotal > 0))
452452 then true
453453 else throwErr("you do not have gWX"), if (if ((amount > 0))
454454 then (available >= amount)
455455 else false)
456456 then true
457457 else throwErr("invalid amount"), if (wxEmission)
458458 then true
459459 else throwErr("pool hasn't WX_EMISSION label")]
460460 if ((checks == checks))
461461 then {
462462 let votesListName = getVotesListName(pool)
463463 let userAddressStr = toString(i.caller)
464464 let votesListActions = if (containsNode(votesListName, userAddressStr))
465465 then nil
466466 else insertNodeActions(votesListName, userAddressStr)
467467 $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)
468468 }
469469 else throw("Strict value is not equal to itself.")
470470 }
471471
472472
473473
474474 @Callable(i)
475475 func cancelVote (amountAssetId,priceAssetId) = {
476476 let pool = $Tuple2(amountAssetId, priceAssetId)
477477 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
478478 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
479479 let epochLength = getIntOrFail(this, keyEpochLength)
480480 let endHeight = (startHeight + epochLength)
481481 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
482482 let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0)
483483 let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0)
484484 let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0)
485485 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0)
486486 let checks = [if ((getBoolean(keyInList(pool)) != unit))
487487 then true
488488 else throwErr("invalid assets"), if ((endHeight > height))
489489 then true
490490 else throwErr("invalid height"), if ((finalizationStageOrUnit == unit))
491491 then true
492492 else throwErr("finalization in progress"), if ((vote > 0))
493493 then true
494494 else throwErr("no vote")]
495495 if ((checks == checks))
496496 then {
497497 let votesListName = getVotesListName(pool)
498498 let userAddressStr = toString(i.caller)
499499 $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)
500500 }
501501 else throw("Strict value is not equal to itself.")
502502 }
503503
504504
505505
506506 @Callable(i)
507507 func setEpochLength (newEpochLength) = {
508508 let checks = [mustManager(i), if ((newEpochLength > 0))
509509 then true
510510 else throwErr("invalid epoch length")]
511511 if ((checks == checks))
512512 then $Tuple2([IntegerEntry(keyEpochLengthNew, newEpochLength)], unit)
513513 else throw("Strict value is not equal to itself.")
514514 }
515515
516516
517517
518518 @Callable(i)
519519 func setMaxDepth (newMaxDepth) = {
520520 let checks = [mustManager(i), if ((newMaxDepth > 0))
521521 then true
522522 else throwErr("invalid max depth")]
523523 if ((checks == checks))
524524 then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit)
525525 else throw("Strict value is not equal to itself.")
526526 }
527527
528528
529529
530530 @Callable(i)
531531 func processPoolBalanceINTERNAL (poolStr) = {
532532 let checkCaller = mustThis(i)
533533 if ((checkCaller == checkCaller))
534534 then {
535535 let epoch = getIntOrFail(this, keyCurrentEpoch)
536536 let epochPrevious = (epoch - 1)
537537 let pool = stringToPool(poolStr)
538- let $t01726217302 = pool
539- let amountAssetId = $t01726217302._1
540- let priceAssetId = $t01726217302._2
538+ let $t01724217282 = pool
539+ let amountAssetId = $t01724217282._1
540+ let priceAssetId = $t01724217282._2
541541 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
542542 let balanceIsOk = {
543543 let @ = invoke(factoryContract, "checkBalance", [lpAssetId], nil)
544544 if ($isInstanceOf(@, "Boolean"))
545545 then @
546546 else throw(($getType(@) + " couldn't be cast to Boolean"))
547547 }
548548 let actions = if (!(balanceIsOk))
549549 then {
550550 let deleteWxEmissionInv = invoke(factoryContract, "deleteWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil)
551551 if ((deleteWxEmissionInv == deleteWxEmissionInv))
552552 then {
553553 let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, 0], nil)
554554 if ((modifyWeightInv == modifyWeightInv))
555555 then {
556556 let poolAddress = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets"))._1
557557 let setPoolStatusInv = invoke(factoryContract, "managePool", [toString(poolAddress), poolStatusMatcherDisabled], nil)
558558 if ((setPoolStatusInv == setPoolStatusInv))
559559 then {
560560 let listActions = ([DeleteEntry(keyInList(pool))] ++ deleteNodeActions(poolsListName, poolToString(pool)))
561561 ([IntegerEntry(keyPoolShare(pool, epochPrevious), 0)] ++ listActions)
562562 }
563563 else throw("Strict value is not equal to itself.")
564564 }
565565 else throw("Strict value is not equal to itself.")
566566 }
567567 else throw("Strict value is not equal to itself.")
568568 }
569569 else nil
570570 $Tuple2(actions, unit)
571571 }
572572 else throw("Strict value is not equal to itself.")
573573 }
574574
575575
576576
577577 @Callable(i)
578578 func processVoteINTERNAL (poolStr,userAddressStr) = {
579579 let checkCaller = mustThis(i)
580580 if ((checkCaller == checkCaller))
581581 then {
582582 let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), wrapErr(("processVoteINTERNAL: invalid user address " + userAddressStr)))
583583 let epoch = getIntOrFail(this, keyCurrentEpoch)
584584 let epochPrevious = (epoch - 1)
585585 let epochLength = getIntOrFail(this, keyEpochLength)
586586 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
587587 let endHeight = (startHeight + epochLength)
588588 let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious))
589589 let epochLengthPrevious = getIntOrFail(this, keyEpochLengthByEpoch(epochPrevious))
590590 let endHeightPrevious = (startHeightPrevious + epochLengthPrevious)
591591 let checkTargetEpoch = if ((epochPrevious >= 0))
592592 then true
593593 else throwErr("processVoteINTERNAL: invalid previous epoch")
594594 if ((checkTargetEpoch == checkTargetEpoch))
595595 then {
596596 let pool = stringToPool(poolStr)
597- let $t01934819388 = pool
598- let amountAssetId = $t01934819388._1
599- let priceAssetId = $t01934819388._2
597+ let $t01910819148 = pool
598+ let amountAssetId = $t01910819148._1
599+ let priceAssetId = $t01910819148._2
600600 let gwxAmountAtEndTotal = {
601601 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil)
602602 if ($isInstanceOf(@, "Int"))
603603 then @
604604 else throw(($getType(@) + " couldn't be cast to Int"))
605605 }
606606 let gwxAmountAtEndTotalPrevious = {
607607 let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil)
608608 if ($isInstanceOf(@, "Int"))
609609 then @
610610 else throw(($getType(@) + " couldn't be cast to Int"))
611611 }
612612 let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0)
613613 let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0)
614614 let votePreviousOption = getInteger(keyVote(pool, userAddress, epochPrevious))
615615 let votePrevious = valueOrErrorMessage(votePreviousOption, wrapErr((((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote")))
616616 let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0)
617617 let lpAssetIdStr = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
618618 let votingResultStakedPrevious = valueOrElse(getInteger(keyVotingResultStaked(lpAssetIdStr, epochPrevious)), 0)
619619 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
620620 let stakedByUser = valueOrElse(getInteger(stakingContract, keyStakedByUser(lpAssetIdStr, userAddressStr)), 0)
621621 let votingResultStakedActions = if (if ((stakedByUser == 0))
622622 then true
623623 else (votePreviousOption == unit))
624624 then nil
625625 else [IntegerEntry(keyVotingResultStaked(lpAssetIdStr, epochPrevious), (votingResultStakedPrevious + votePrevious))]
626626 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
627627 let newVote = if ((gwxAmountAtEndTotalPrevious > 0))
628628 then fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious)
629629 else 0
630630 let actions = if (if ((votePreviousOption == unit))
631631 then true
632632 else (0 >= newVote))
633633 then deleteNodeActions(getVotesListName(pool), userAddressStr)
634634 else [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))]
635635 $Tuple2((actions ++ votingResultStakedActions), unit)
636636 }
637637 else throw("Strict value is not equal to itself.")
638638 }
639639 else throw("Strict value is not equal to itself.")
640640 }
641641
642642
643643
644644 @Callable(i)
645645 func processPoolINTERNAL (poolStr,force) = {
646646 let checkCaller = mustThis(i)
647647 if ((checkCaller == checkCaller))
648648 then {
649649 let targetEpoch = {
650650 let currentEpoch = getIntOrFail(this, keyCurrentEpoch)
651651 if (force)
652652 then currentEpoch
653653 else (currentEpoch - 1)
654654 }
655655 let checkTargetEpoch = if ((targetEpoch >= 0))
656656 then true
657657 else throwErr("processPoolINTERNAL: invalid target epoch")
658658 if ((checkTargetEpoch == checkTargetEpoch))
659659 then {
660660 let pool = stringToPool(poolStr)
661- let $t02185821898 = pool
662- let amountAssetId = $t02185821898._1
663- let priceAssetId = $t02185821898._2
661+ let $t02161821658 = pool
662+ let amountAssetId = $t02161821658._1
663+ let priceAssetId = $t02161821658._2
664664 let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract))
665665 let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId)
666666 let r = {
667667 let @ = invoke(stakingContract, "usersListTraversal", [lpAssetId], nil)
668668 if ($isInstanceOf(@, "Boolean"))
669669 then @
670670 else throw(($getType(@) + " couldn't be cast to Boolean"))
671671 }
672672 if ((r == r))
673673 then if (r)
674674 then $Tuple2(nil, true)
675675 else {
676676 let assetsStoreContract = addressFromStringValue(valueOrErrorMessage(getString(factoryContract, keyAssetsStoreContract), "invalid assets store contract"))
677677 let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0)
678678 let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0)
679679 let share = if ((totalVotes == 0))
680680 then 0
681681 else fraction(votingResult, poolWeightMult, totalVotes)
682682 let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, share], nil)
683683 if ((modifyWeightInv == modifyWeightInv))
684684 then $Tuple2([IntegerEntry(keyPoolShare(pool, targetEpoch), share)], false)
685685 else throw("Strict value is not equal to itself.")
686686 }
687687 else throw("Strict value is not equal to itself.")
688688 }
689689 else throw("Strict value is not equal to itself.")
690690 }
691691 else throw("Strict value is not equal to itself.")
692692 }
693693
694694
695695
696696 @Callable(i)
697697 func finalizeHelper () = {
698698 let force = valueOrElse(getBoolean(keyFinalizationShouldBeForced), false)
699699 let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0)
700700 let previousEpoch = (epoch - 1)
701701 let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch))
702702 let epochLength = getIntOrFail(this, keyEpochLength)
703703 let endHeight = (startHeight + epochLength)
704704 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
705705 if (if (if ((height >= endHeight))
706706 then (finalizationStageOrUnit == unit)
707707 else false)
708708 then !(force)
709709 else false)
710710 then {
711711 let newEpoch = (epoch + 1)
712712 let newEpochLengthOption = getInteger(this, keyEpochLengthNew)
713713 let newEpochLengthActions = match newEpochLengthOption {
714714 case newEpochLength: Int =>
715715 [IntegerEntry(keyEpochLength, newEpochLength), DeleteEntry(keyEpochLengthNew)]
716716 case _: Unit =>
717717 nil
718718 case _ =>
719719 throw("Match error")
720720 }
721721 $Tuple2(([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageBalances), IntegerEntry(keyEpochLengthByEpoch(epoch), epochLength)] ++ newEpochLengthActions), true)
722722 }
723723 else if (if (force)
724724 then (finalizationStageOrUnit == unit)
725725 else false)
726726 then $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares)], true)
727727 else if ((finalizationStageOrUnit == unit))
728728 then $Tuple2(nil, false)
729729 else if ((finalizationStageOrUnit == finalizationStageBalances))
730730 then {
731731 let poolOrUnit = getString(keyNextPool)
732732 match poolOrUnit {
733733 case _: Unit =>
734734 match getString(keyListHead(poolsListName)) {
735735 case _: Unit =>
736736 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageTotal), DeleteEntry(keyNextPool)], true)
737737 case nextPoolStr: String =>
738738 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
739739 case _ =>
740740 throw("Match error")
741741 }
742742 case poolStr: String =>
743743 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
744744 if ((nextPoolOrUnit == nextPoolOrUnit))
745745 then {
746746 let r = invoke(this, "processPoolBalanceINTERNAL", [poolStr], nil)
747747 if ((r == r))
748748 then match nextPoolOrUnit {
749749 case _: Unit =>
750750 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageTotal), DeleteEntry(keyNextPool)], true)
751751 case nextPoolStr: String =>
752752 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
753753 case _ =>
754754 throw("Match error")
755755 }
756756 else throw("Strict value is not equal to itself.")
757757 }
758758 else throw("Strict value is not equal to itself.")
759759 case _ =>
760760 throw("Match error")
761761 }
762762 }
763763 else if ((finalizationStageOrUnit == finalizationStageTotal))
764764 then {
765765 let poolOrUnit = getString(keyNextPool)
766766 let userOrUnit = getString(keyNextUser)
767767 match poolOrUnit {
768768 case _: Unit =>
769769 match getString(keyListHead(poolsListName)) {
770770 case _: Unit =>
771771 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true)
772772 case poolsHeadStr: String =>
773773 $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true)
774774 case _ =>
775775 throw("Match error")
776776 }
777777 case poolStr: String =>
778778 let pool = stringToPool(poolStr)
779779 let nextUserOrUnit = match userOrUnit {
780780 case _: Unit =>
781781 getString(keyListHead(getVotesListName(pool)))
782782 case user: String =>
783783 let next = getString(keyListNext(getVotesListName(pool), user))
784784 if ((next == next))
785785 then {
786786 let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil)
787787 if ((processVoteInv == processVoteInv))
788788 then next
789789 else throw("Strict value is not equal to itself.")
790790 }
791791 else throw("Strict value is not equal to itself.")
792792 case _ =>
793793 throw("Match error")
794794 }
795795 match nextUserOrUnit {
796796 case _: Unit =>
797797 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
798798 match nextPoolOrUnit {
799799 case _: Unit =>
800800 $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true)
801801 case s: String =>
802802 $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true)
803803 case _ =>
804804 throw("Match error")
805805 }
806806 case nextUser: String =>
807807 $Tuple2([StringEntry(keyNextUser, nextUser)], true)
808808 case _ =>
809809 throw("Match error")
810810 }
811811 case _ =>
812812 throw("Match error")
813813 }
814814 }
815815 else if ((finalizationStageOrUnit == finalizationStageShares))
816816 then {
817817 let poolOrUnit = getString(keyNextPool)
818818 match poolOrUnit {
819819 case _: Unit =>
820820 match getString(keyListHead(poolsListName)) {
821821 case _: Unit =>
822822 let actions = if (force)
823823 then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced)]
824824 else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)]
825825 let gwxRewardDepositInv = gwxRewardDeposit()
826826 if ((gwxRewardDepositInv == gwxRewardDepositInv))
827827 then $Tuple2(actions, true)
828828 else throw("Strict value is not equal to itself.")
829829 case nextPoolStr: String =>
830830 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
831831 case _ =>
832832 throw("Match error")
833833 }
834834 case poolStr: String =>
835835 let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr))
836836 if ((nextPoolOrUnit == nextPoolOrUnit))
837837 then {
838838 let r = {
839839 let @ = invoke(this, "processPoolINTERNAL", [poolStr, force], nil)
840840 if ($isInstanceOf(@, "Boolean"))
841841 then @
842842 else throw(($getType(@) + " couldn't be cast to Boolean"))
843843 }
844844 if ((r == r))
845845 then if (r)
846846 then $Tuple2(nil, true)
847847 else match nextPoolOrUnit {
848848 case _: Unit =>
849849 let actions = if (force)
850850 then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced), DeleteEntry(keyNextPool)]
851851 else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)]
852852 let gwxRewardDepositInv = gwxRewardDeposit()
853853 if ((gwxRewardDepositInv == gwxRewardDepositInv))
854854 then $Tuple2(actions, true)
855855 else throw("Strict value is not equal to itself.")
856856 case nextPoolStr: String =>
857857 $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true)
858858 case _ =>
859859 throw("Match error")
860860 }
861861 else throw("Strict value is not equal to itself.")
862862 }
863863 else throw("Strict value is not equal to itself.")
864864 case _ =>
865865 throw("Match error")
866866 }
867867 }
868868 else throwErr("finalization is broken")
869869 }
870870
871871
872872
873873 @Callable(i)
874874 func finalizeWrapper (counter) = {
875875 let votingEmissionRateContract = addressFromStringValue(getStringValue(this, keyVotingEmissionRateContract))
876876 let result = {
877877 let @ = invoke(this, "finalizeHelper", nil, nil)
878878 if ($isInstanceOf(@, "Boolean"))
879879 then @
880880 else throw(($getType(@) + " couldn't be cast to Boolean"))
881881 }
882882 if ((result == result))
883883 then if (!(result))
884884 then if ((counter == 0))
885885 then throwErr("Current voting is not over yet")
886886 else {
887887 let inv = invoke(votingEmissionRateContract, "finalize", nil, nil)
888888 if ((inv == inv))
889889 then $Tuple2(nil, unit)
890890 else throw("Strict value is not equal to itself.")
891891 }
892892 else {
893893 let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault)
894894 if ((maxDepth > counter))
895895 then {
896896 let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil)
897897 if ((inv == inv))
898898 then $Tuple2(nil, unit)
899899 else throw("Strict value is not equal to itself.")
900900 }
901901 else $Tuple2(nil, unit)
902902 }
903903 else throw("Strict value is not equal to itself.")
904904 }
905905
906906
907907
908908 @Callable(i)
909909 func finalize () = {
910910 let inv = invoke(this, "finalizeWrapper", [0], nil)
911911 if ((inv == inv))
912912 then $Tuple2(nil, unit)
913913 else throw("Strict value is not equal to itself.")
914914 }
915915
916916
917917
918918 @Callable(i)
919919 func containsNodeREADONLY (listName,id) = $Tuple2(nil, containsNode(listName, id))
920920
921921
922922
923923 @Callable(i)
924924 func insertNode (listName,id) = {
925925 let checkCaller = mustManager(i)
926926 if ((checkCaller == checkCaller))
927927 then $Tuple2(insertNodeActions(listName, id), unit)
928928 else throw("Strict value is not equal to itself.")
929929 }
930930
931931
932932
933933 @Callable(i)
934934 func deleteNode (listName,id) = {
935935 let checkCaller = mustManager(i)
936936 if ((checkCaller == checkCaller))
937937 then $Tuple2(deleteNodeActions(listName, id), unit)
938938 else throw("Strict value is not equal to itself.")
939939 }
940940
941941
942942
943943 @Callable(i)
944944 func isFinalizationInProgress () = {
945945 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
946946 let finalizationInProgress = (finalizationStageOrUnit != unit)
947947 $Tuple2(nil, finalizationInProgress)
948948 }
949949
950950
951951
952952 @Callable(i)
953953 func deletePool (amountAssetId,priceAssetId) = {
954954 let checkCaller = if (if ((i.caller == factoryContract))
955955 then true
956956 else mustManager(i))
957957 then true
958958 else throwErr("Permission denied")
959959 if ((checkCaller == checkCaller))
960960 then {
961961 let listName = "pools"
962962 let pool = $Tuple2(amountAssetId, priceAssetId)
963963 let id = makeString([amountAssetId, priceAssetId], separator)
964964 let actions = if (containsNode(listName, id))
965965 then deleteNodeActions(listName, id)
966966 else nil
967967 ([DeleteEntry(keyInList(pool))] ++ actions)
968968 }
969969 else throw("Strict value is not equal to itself.")
970970 }
971971
972972
973973
974974 @Callable(i)
975975 func resume (amountAssetId,priceAssetId,slippageToleranceOrMinOutAmount) = {
976976 let finalizationStageOrUnit = getInteger(this, keyFinalizationStage)
977- let $t03285032980 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets"))
978- let poolAddress = $t03285032980._1
979- let lpAssetId = $t03285032980._2
977+ let $t03161931749 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets"))
978+ let poolAddress = $t03161931749._1
979+ let lpAssetId = $t03161931749._2
980980 let feePayment = i.payments[0]
981981 let assetsStoreContract = addressFromStringValue(getStringValue(this, keyAssetsStoreContract))
982982 let kBoostingConfig = "%s__config"
983983 let idxCfgAssetId = 1
984984 let boostingContract = addressFromStringValue(getStrOrFail(this, keyBoostingContract))
985985 let wxAssetId = fromBase58String(split(getStringValue(boostingContract, kBoostingConfig), separator)[idxCfgAssetId])
986986 let amountAssetVerified = {
987987 let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [amountAssetId], nil)
988988 if ($isInstanceOf(@, "Boolean"))
989989 then @
990990 else throw(($getType(@) + " couldn't be cast to Boolean"))
991991 }
992992 let priceAssetVerified = {
993993 let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [priceAssetId], nil)
994994 if ($isInstanceOf(@, "Boolean"))
995995 then @
996996 else throw(($getType(@) + " couldn't be cast to Boolean"))
997997 }
998998 let resumptionFee = valueOrErrorMessage(getInteger(this, keyResumptionFee), "invalid resumption fee")
999999 let checks = [if ((finalizationStageOrUnit == unit))
10001000 then true
10011001 else throwErr("finalization is in progress"), if ((feePayment.assetId == wxAssetId))
10021002 then true
10031003 else throwErr("invalid fee payment asset id"), if ((feePayment.amount == resumptionFee))
10041004 then true
10051005 else throwErr("invalid fee payment amount"), if (if (amountAssetVerified)
10061006 then priceAssetVerified
10071007 else false)
10081008 then true
10091009 else throwErr("both assets should be verified")]
10101010 if ((checks == checks))
10111011 then {
10121012 let lpAssetBalanceBefore = assetBalance(this, lpAssetId)
10131013 if ((lpAssetBalanceBefore == lpAssetBalanceBefore))
10141014 then {
10151015 let autoStake = false
10161016 let put = if ((size(i.payments) == 1))
10171017 then {
10181018 let balanceIsOk = {
10191019 let @ = invoke(factoryContract, "checkBalance", [assetIdToString(lpAssetId)], nil)
10201020 if ($isInstanceOf(@, "Boolean"))
10211021 then @
10221022 else throw(($getType(@) + " couldn't be cast to Boolean"))
10231023 }
10241024 if (balanceIsOk)
10251025 then true
10261026 else throwErr("assets should be attached")
10271027 }
10281028 else if ((size(i.payments) == 2))
10291029 then {
10301030 let poolScriptHash = valueOrErrorMessage(scriptHash(poolAddress), wrapErr("pool address is not scripted"))
10311031 let allowedScriptHash = fromBase64String(valueOrErrorMessage(getString(factoryContract, keyAllowedLpStableScriptHash()), wrapErr("allowed lp stable script hash is not set")))
10321032 let isStable = (poolScriptHash == allowedScriptHash)
10331033 let functionName = if (isStable)
10341034 then "putOneTknV2"
10351035 else "putOneTkn"
10361036 invoke(poolAddress, functionName, [slippageToleranceOrMinOutAmount, autoStake], [i.payments[1]])
10371037 }
10381038 else if ((size(i.payments) == 3))
10391039 then invoke(poolAddress, "put", [slippageToleranceOrMinOutAmount, autoStake], [i.payments[1], i.payments[2]])
10401040 else throwErr("invalid payments size")
10411041 if ((put == put))
10421042 then {
10431043 let lpAssetBalanceAfter = assetBalance(this, lpAssetId)
10441044 if ((lpAssetBalanceAfter == lpAssetBalanceAfter))
10451045 then {
10461046 let lpAssetBalanceDiff = (lpAssetBalanceAfter - lpAssetBalanceBefore)
10471047 let lpAssetTransferActions = if ((lpAssetBalanceDiff > 0))
10481048 then [ScriptTransfer(i.caller, lpAssetBalanceDiff, lpAssetId)]
10491049 else nil
10501050 let setWxEmissionInv = invoke(factoryContract, "setWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil)
10511051 if ((setWxEmissionInv == setWxEmissionInv))
10521052 then {
10531053 let poolStatus = {
10541054 let @ = invoke(factoryContract, "getPoolStatusREADONLY", [toString(poolAddress)], nil)
10551055 if ($isInstanceOf(@, "Int"))
10561056 then @
10571057 else throw(($getType(@) + " couldn't be cast to Int"))
10581058 }
10591059 let setPoolStatusInv = if ((poolStatus == poolStatusMatcherDisabled))
10601060 then invoke(factoryContract, "managePool", [toString(poolAddress), poolStatusActive], nil)
10611061 else unit
10621062 if ((setPoolStatusInv == setPoolStatusInv))
10631063 then {
10641064 let pool = $Tuple2(amountAssetId, priceAssetId)
10651065 let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool)))
10661066 $Tuple2((inListActions ++ lpAssetTransferActions), unit)
10671067 }
10681068 else throw("Strict value is not equal to itself.")
10691069 }
10701070 else throw("Strict value is not equal to itself.")
10711071 }
10721072 else throw("Strict value is not equal to itself.")
10731073 }
10741074 else throw("Strict value is not equal to itself.")
10751075 }
10761076 else throw("Strict value is not equal to itself.")
10771077 }
10781078 else throw("Strict value is not equal to itself.")
10791079 }
10801080
10811081
10821082 @Verifier(tx)
10831083 func verify () = {
10841084 let targetPublicKey = match managerPublicKeyOrUnit() {
10851085 case pk: ByteVector =>
10861086 pk
10871087 case _: Unit =>
10881088 tx.senderPublicKey
10891089 case _ =>
10901090 throw("Match error")
10911091 }
10921092 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
10931093 }
10941094

github/deemru/w8io/169f3d6 
95.49 ms