tx · GguXJgQMjsd8gkGc1sPu7zKRMaht7qJ9PbiiqNmAi3FU 3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL: -0.03100000 Waves 2022.06.20 10:46 [2104418] smart account 3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL > SELF 0.00000000 Waves
{ "type": 13, "id": "GguXJgQMjsd8gkGc1sPu7zKRMaht7qJ9PbiiqNmAi3FU", "fee": 3100000, "feeAssetId": null, "timestamp": 1655711161193, "version": 1, "sender": "3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL", "senderPublicKey": "DnPyGWCgpQChvoQrnXQRcC9FtN32mPGrcog2wcKHdkVn", "proofs": [ "5K6fL8zBhKduQFRuq5thXXUj9ycHNDnXF4wh5D82x3cefVsWHva5wHwZ7EupNZAAu6znr4zGQvYfoQLDwyoxcMcY" ], "script": "base64:AAIFAAAAAAAAAEwIAhIDCgEIEgASBAoCCAESBQoDCAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESBAoCCAgSAwoBCBIAEgMKAQESABIDCgEIAAAALQAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAOcG9vbFdlaWdodE11bHQAAAAAAAX14QAAAAAAD21heERlcHRoRGVmYXVsdAAAAAAAAAAACgAAAAAWZmluYWxpemF0aW9uU3RhZ2VUb3RhbAAAAAAAAAAAAAAAAAAXZmluYWxpemF0aW9uU3RhZ2VTaGFyZXMAAAAAAAAAAAEAAAAADmtleUVwb2NoTGVuZ3RoCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAALZXBvY2hMZW5ndGgFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAAA9rZXlDdXJyZW50RXBvY2gJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAxjdXJyZW50RXBvY2gFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAAAtrZXlNYXhEZXB0aAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAA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AByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5KjzUbg==", "chainId": 84, "height": 2104418, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9a77dzAsHiPY1eE29zML4nfvX5SPo1pwP9ULScrkgQ6R Next: 4SrESDusAZaAofbzNhVehZUTPBBnBPPSojVoBGjiDReh Diff:
Old | New | Differences | |
---|---|---|---|
317 | 317 | then { | |
318 | 318 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
319 | 319 | let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool))) | |
320 | - | let currentEpochIsNotDefined = ( | |
320 | + | let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit) | |
321 | 321 | let startHeightActions = if (currentEpochIsNotDefined) | |
322 | 322 | then { | |
323 | 323 | let epoch = 0 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | let poolWeightMult = 100000000 | |
7 | 7 | ||
8 | 8 | let maxDepthDefault = 10 | |
9 | 9 | ||
10 | 10 | let finalizationStageTotal = 0 | |
11 | 11 | ||
12 | 12 | let finalizationStageShares = 1 | |
13 | 13 | ||
14 | 14 | let keyEpochLength = makeString(["%s", "epochLength"], separator) | |
15 | 15 | ||
16 | 16 | let keyCurrentEpoch = makeString(["%s", "currentEpoch"], separator) | |
17 | 17 | ||
18 | 18 | let keyMaxDepth = makeString(["%s", "maxDepth"], separator) | |
19 | 19 | ||
20 | 20 | let keyVotingEmissionCandidateContract = makeString(["%s", "votingEmissionCandidateContract"], separator) | |
21 | 21 | ||
22 | 22 | let keyBoostingContract = makeString(["%s", "boostingContract"], separator) | |
23 | 23 | ||
24 | 24 | let keyFinalizationStage = makeString(["%s", "finalizationStage"], separator) | |
25 | 25 | ||
26 | 26 | let keyNextPool = makeString(["%s", "nextPool"], separator) | |
27 | 27 | ||
28 | 28 | let keyNextUser = makeString(["%s", "nextUser"], separator) | |
29 | 29 | ||
30 | 30 | let keyStartHeight = makeString(["%s", "startHeight"], separator) | |
31 | 31 | ||
32 | 32 | let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], separator) | |
33 | 33 | ||
34 | 34 | let keyStartHeightUi = makeString(["%s", "startHeightUi"], separator) | |
35 | 35 | ||
36 | 36 | func keyStartHeightByEpoch (epoch) = makeString(["%s%d", "startHeight", toString(epoch)], separator) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func keyFinalized (epoch) = makeString(["%s%d", "finalized", toString(epoch)], separator) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func keyInList (pool) = { | |
43 | 43 | let $t012901330 = pool | |
44 | 44 | let amountAssetId = $t012901330._1 | |
45 | 45 | let priceAssetId = $t012901330._2 | |
46 | 46 | makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator) | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func keyUsed (address,epoch) = makeString(["%s%s%d", "used", toString(address), toString(epoch)], separator) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func keyVote (pool,address,epoch) = { | |
54 | 54 | let $t016041644 = pool | |
55 | 55 | let amountAssetId = $t016041644._1 | |
56 | 56 | let priceAssetId = $t016041644._2 | |
57 | 57 | makeString(["%s%s%s%s%d", "vote", amountAssetId, priceAssetId, toString(address), toString(epoch)], separator) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keyVotingResult (pool,epoch) = { | |
62 | 62 | let $t018261866 = pool | |
63 | 63 | let amountAssetId = $t018261866._1 | |
64 | 64 | let priceAssetId = $t018261866._2 | |
65 | 65 | makeString(["%s%s%s%d", "votingResult", amountAssetId, priceAssetId, toString(epoch)], separator) | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyPoolShare (pool,epoch) = { | |
70 | 70 | let $t020312071 = pool | |
71 | 71 | let amountAssetId = $t020312071._1 | |
72 | 72 | let priceAssetId = $t020312071._2 | |
73 | 73 | makeString(["%s%s%s%d", "poolShare", amountAssetId, priceAssetId, toString(epoch)], separator) | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyTotalVotes (epoch) = makeString(["%s%d", "totalVotes", toString(epoch)], separator) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getValueOrFail (address,key,type) = { | |
81 | 81 | let error = makeString(["mandatory ", toString(address), ".", key, " is not defined"], "") | |
82 | 82 | valueOrErrorMessage( match type { | |
83 | 83 | case str: String => | |
84 | 84 | getString(address, key) | |
85 | 85 | case int: Int => | |
86 | 86 | getInteger(address, key) | |
87 | 87 | case _ => | |
88 | 88 | throw("invalid entry type") | |
89 | 89 | }, error) | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func getStrOrFail (address,key) = { | |
94 | 94 | let @ = getValueOrFail(address, key, "") | |
95 | 95 | if ($isInstanceOf(@, "String")) | |
96 | 96 | then @ | |
97 | 97 | else throw("Couldn't cast Int|String to String") | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getIntOrFail (address,key) = { | |
102 | 102 | let @ = getValueOrFail(address, key, 0) | |
103 | 103 | if ($isInstanceOf(@, "Int")) | |
104 | 104 | then @ | |
105 | 105 | else throw("Couldn't cast Int|String to Int") | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func poolToString (pool) = ((pool._1 + separator) + pool._2) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func stringToPool (str) = { | |
113 | 113 | let parts = split(str, separator) | |
114 | 114 | if ((size(parts) == 2)) | |
115 | 115 | then $Tuple2(parts[0], parts[1]) | |
116 | 116 | else throw("invalid pool string") | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | let poolsListName = "pools" | |
121 | 121 | ||
122 | 122 | func getVotesListName (pool) = { | |
123 | 123 | let $t031773217 = pool | |
124 | 124 | let amountAssetId = $t031773217._1 | |
125 | 125 | let priceAssetId = $t031773217._2 | |
126 | 126 | makeString(["votes", amountAssetId, priceAssetId], separator) | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func keyListHead (listName) = { | |
131 | 131 | let meta = if ((listName == poolsListName)) | |
132 | 132 | then "%s%s" | |
133 | 133 | else "%s%s%s%s" | |
134 | 134 | makeString([meta, listName, "head"], separator) | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyListSize (listName) = { | |
139 | 139 | let meta = if ((listName == poolsListName)) | |
140 | 140 | then "%s%s" | |
141 | 141 | else "%s%s%s%s" | |
142 | 142 | makeString([meta, listName, "size"], separator) | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func keyListPrev (listName,id) = { | |
147 | 147 | let meta = if ((listName == poolsListName)) | |
148 | 148 | then "%s%s%s%s" | |
149 | 149 | else "%s%s%s%s%s" | |
150 | 150 | makeString([meta, listName, id, "prev"], separator) | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func keyListNext (listName,id) = { | |
155 | 155 | let meta = if ((listName == poolsListName)) | |
156 | 156 | then "%s%s%s%s" | |
157 | 157 | else "%s%s%s%s%s" | |
158 | 158 | makeString([meta, listName, id, "next"], separator) | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func containsNode (listName,id) = { | |
163 | 163 | let headOrUnit = getString(this, keyListHead(listName)) | |
164 | 164 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
165 | 165 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
166 | 166 | if (if ((id == valueOrElse(headOrUnit, ""))) | |
167 | 167 | then true | |
168 | 168 | else (prevOrUnit != unit)) | |
169 | 169 | then true | |
170 | 170 | else (nextOrUnit != unit) | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func insertNodeActions (listName,id) = { | |
175 | 175 | let headOrUnit = getString(this, keyListHead(listName)) | |
176 | 176 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
177 | 177 | (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
178 | 178 | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
179 | 179 | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func deleteNodeActions (listName,id) = { | |
184 | 184 | let headOrUnit = getString(this, keyListHead(listName)) | |
185 | 185 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
186 | 186 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
187 | 187 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
188 | 188 | ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit)) | |
189 | 189 | then (nextOrUnit != unit) | |
190 | 190 | else false) | |
191 | 191 | then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))] | |
192 | 192 | else if ((nextOrUnit != unit)) | |
193 | 193 | then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))] | |
194 | 194 | else if ((prevOrUnit != unit)) | |
195 | 195 | then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))] | |
196 | 196 | else if ((id == valueOrElse(headOrUnit, ""))) | |
197 | 197 | then [DeleteEntry(keyListHead(listName))] | |
198 | 198 | else throw(((("invalid node: " + listName) + ".") + id)))) | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
209 | 209 | case s: String => | |
210 | 210 | fromBase58String(s) | |
211 | 211 | case _: Unit => | |
212 | 212 | unit | |
213 | 213 | case _ => | |
214 | 214 | throw("Match error") | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
219 | 219 | case s: String => | |
220 | 220 | fromBase58String(s) | |
221 | 221 | case _: Unit => | |
222 | 222 | unit | |
223 | 223 | case _ => | |
224 | 224 | throw("Match error") | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | let permissionDeniedError = throw("Permission denied") | |
229 | 229 | ||
230 | 230 | func mustThis (i) = if ((i.caller == this)) | |
231 | 231 | then true | |
232 | 232 | else permissionDeniedError | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func mustManager (i) = match managerPublicKeyOrUnit() { | |
236 | 236 | case pk: ByteVector => | |
237 | 237 | if ((i.callerPublicKey == pk)) | |
238 | 238 | then true | |
239 | 239 | else permissionDeniedError | |
240 | 240 | case _: Unit => | |
241 | 241 | mustThis(i) | |
242 | 242 | case _ => | |
243 | 243 | throw("Match error") | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | @Callable(i) | |
248 | 248 | func setManager (pendingManagerPublicKey) = { | |
249 | 249 | let checkCaller = mustManager(i) | |
250 | 250 | if ((checkCaller == checkCaller)) | |
251 | 251 | then { | |
252 | 252 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
253 | 253 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
254 | 254 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
255 | 255 | else throw("Strict value is not equal to itself.") | |
256 | 256 | } | |
257 | 257 | else throw("Strict value is not equal to itself.") | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | ||
262 | 262 | @Callable(i) | |
263 | 263 | func confirmManager () = { | |
264 | 264 | let pm = pendingManagerPublicKeyOrUnit() | |
265 | 265 | let hasPM = if (isDefined(pm)) | |
266 | 266 | then true | |
267 | 267 | else throw("No pending manager") | |
268 | 268 | if ((hasPM == hasPM)) | |
269 | 269 | then { | |
270 | 270 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
271 | 271 | then true | |
272 | 272 | else throw("You are not pending manager") | |
273 | 273 | if ((checkPM == checkPM)) | |
274 | 274 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
275 | 275 | else throw("Strict value is not equal to itself.") | |
276 | 276 | } | |
277 | 277 | else throw("Strict value is not equal to itself.") | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | 282 | @Callable(i) | |
283 | 283 | func getUserGwxAmountAtHeight (userAddress,targetHeight) = { | |
284 | 284 | let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), "invalid boosting contract address") | |
285 | 285 | $Tuple2(nil, { | |
286 | 286 | let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil) | |
287 | 287 | if ($isInstanceOf(@, "Int")) | |
288 | 288 | then @ | |
289 | 289 | else throw("Couldn't cast Any to Int") | |
290 | 290 | }) | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(i) | |
296 | 296 | func constructor (votingEmissionCandidateContract,boostingContract,epochLength) = { | |
297 | 297 | let cheks = [mustManager(i), if ((addressFromString(votingEmissionCandidateContract) != unit)) | |
298 | 298 | then true | |
299 | 299 | else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit)) | |
300 | 300 | then true | |
301 | 301 | else "invalid boosting contract address", if ((epochLength > 0)) | |
302 | 302 | then true | |
303 | 303 | else throw("invalid epoch length")] | |
304 | 304 | if ((cheks == cheks)) | |
305 | 305 | then $Tuple2([StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), IntegerEntry(keyEpochLength, epochLength)], unit) | |
306 | 306 | else throw("Strict value is not equal to itself.") | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | ||
311 | 311 | @Callable(i) | |
312 | 312 | func create (amountAssetId,priceAssetId) = { | |
313 | 313 | let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), ""))) | |
314 | 314 | then true | |
315 | 315 | else mustManager(i)] | |
316 | 316 | if ((checks == checks)) | |
317 | 317 | then { | |
318 | 318 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
319 | 319 | let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool))) | |
320 | - | let currentEpochIsNotDefined = ( | |
320 | + | let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit) | |
321 | 321 | let startHeightActions = if (currentEpochIsNotDefined) | |
322 | 322 | then { | |
323 | 323 | let epoch = 0 | |
324 | 324 | [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)] | |
325 | 325 | } | |
326 | 326 | else nil | |
327 | 327 | $Tuple2((inListActions ++ startHeightActions), unit) | |
328 | 328 | } | |
329 | 329 | else throw("Strict value is not equal to itself.") | |
330 | 330 | } | |
331 | 331 | ||
332 | 332 | ||
333 | 333 | ||
334 | 334 | @Callable(i) | |
335 | 335 | func vote (amountAssetId,priceAssetId,amount) = { | |
336 | 336 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
337 | 337 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
338 | 338 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
339 | 339 | let epochLength = getIntOrFail(this, keyEpochLength) | |
340 | 340 | let endHeight = (startHeight + epochLength) | |
341 | 341 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
342 | 342 | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
343 | 343 | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
344 | 344 | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
345 | 345 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
346 | 346 | let gwxAmountAtEndTotal = { | |
347 | 347 | let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil) | |
348 | 348 | if ($isInstanceOf(@, "Int")) | |
349 | 349 | then @ | |
350 | 350 | else throw("Couldn't cast Any to Int") | |
351 | 351 | } | |
352 | 352 | let available = (gwxAmountAtEndTotal - used) | |
353 | 353 | let newVote = (vote + amount) | |
354 | 354 | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
355 | 355 | then true | |
356 | 356 | else throw("invalid assets"), if ((endHeight > height)) | |
357 | 357 | then true | |
358 | 358 | else throw("invalid height"), if ((finalizationStageOrUnit == unit)) | |
359 | 359 | then true | |
360 | 360 | else throw("finalization in progress"), if ((gwxAmountAtEndTotal > 0)) | |
361 | 361 | then true | |
362 | 362 | else throw("you do not have gWX"), if (if ((amount > 0)) | |
363 | 363 | then (available >= amount) | |
364 | 364 | else false) | |
365 | 365 | then true | |
366 | 366 | else throw("invalid amount")] | |
367 | 367 | if ((checks == checks)) | |
368 | 368 | then { | |
369 | 369 | let votesListName = getVotesListName(pool) | |
370 | 370 | let userAddressStr = toString(i.caller) | |
371 | 371 | let votesListActions = if (containsNode(votesListName, userAddressStr)) | |
372 | 372 | then nil | |
373 | 373 | else insertNodeActions(votesListName, userAddressStr) | |
374 | 374 | $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) | |
375 | 375 | } | |
376 | 376 | else throw("Strict value is not equal to itself.") | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | ||
381 | 381 | @Callable(i) | |
382 | 382 | func cancelVote (amountAssetId,priceAssetId) = { | |
383 | 383 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
384 | 384 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
385 | 385 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
386 | 386 | let epochLength = getIntOrFail(this, keyEpochLength) | |
387 | 387 | let endHeight = (startHeight + epochLength) | |
388 | 388 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
389 | 389 | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
390 | 390 | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
391 | 391 | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
392 | 392 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
393 | 393 | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
394 | 394 | then true | |
395 | 395 | else throw("invalid assets"), if ((endHeight > height)) | |
396 | 396 | then true | |
397 | 397 | else throw("invalid height"), if ((finalizationStageOrUnit == unit)) | |
398 | 398 | then true | |
399 | 399 | else throw("finalization in progress"), if ((vote > 0)) | |
400 | 400 | then true | |
401 | 401 | else throw("no vote")] | |
402 | 402 | if ((checks == checks)) | |
403 | 403 | then { | |
404 | 404 | let votesListName = getVotesListName(pool) | |
405 | 405 | let userAddressStr = toString(i.caller) | |
406 | 406 | $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) | |
407 | 407 | } | |
408 | 408 | else throw("Strict value is not equal to itself.") | |
409 | 409 | } | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | ||
413 | 413 | @Callable(i) | |
414 | 414 | func setEpochLength (newEpochLength) = { | |
415 | 415 | let cheks = [mustManager(i), if ((newEpochLength > 0)) | |
416 | 416 | then true | |
417 | 417 | else throw("invalid epoch length")] | |
418 | 418 | if ((cheks == cheks)) | |
419 | 419 | then $Tuple2([IntegerEntry(keyEpochLength, newEpochLength)], unit) | |
420 | 420 | else throw("Strict value is not equal to itself.") | |
421 | 421 | } | |
422 | 422 | ||
423 | 423 | ||
424 | 424 | ||
425 | 425 | @Callable(i) | |
426 | 426 | func setMaxDepth (newMaxDepth) = { | |
427 | 427 | let cheks = [mustManager(i), if ((newMaxDepth > 0)) | |
428 | 428 | then true | |
429 | 429 | else throw("invalid max depth")] | |
430 | 430 | if ((cheks == cheks)) | |
431 | 431 | then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit) | |
432 | 432 | else throw("Strict value is not equal to itself.") | |
433 | 433 | } | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | ||
437 | 437 | @Callable(i) | |
438 | 438 | func processVoteINTERNAL (poolStr,userAddressStr) = { | |
439 | 439 | let checkCaller = mustThis(i) | |
440 | 440 | if ((checkCaller == checkCaller)) | |
441 | 441 | then { | |
442 | 442 | let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), ("processVoteINTERNAL: invalid user address " + userAddressStr)) | |
443 | 443 | let epoch = getIntOrFail(this, keyCurrentEpoch) | |
444 | 444 | let epochPrevious = (epoch - 1) | |
445 | 445 | let epochLength = getIntOrFail(this, keyEpochLength) | |
446 | 446 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
447 | 447 | let endHeight = (startHeight + epochLength) | |
448 | 448 | let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious)) | |
449 | 449 | let endHeightPrevious = (startHeightPrevious + epochLength) | |
450 | 450 | let checkTargetEpoch = if ((epochPrevious >= 0)) | |
451 | 451 | then true | |
452 | 452 | else throw("processVoteINTERNAL: invalid previous epoch") | |
453 | 453 | if ((checkTargetEpoch == checkTargetEpoch)) | |
454 | 454 | then { | |
455 | 455 | let pool = stringToPool(poolStr) | |
456 | 456 | let gwxAmountAtEndTotal = { | |
457 | 457 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil) | |
458 | 458 | if ($isInstanceOf(@, "Int")) | |
459 | 459 | then @ | |
460 | 460 | else throw("Couldn't cast Any to Int") | |
461 | 461 | } | |
462 | 462 | let gwxAmountAtEndTotalPrevious = { | |
463 | 463 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil) | |
464 | 464 | if ($isInstanceOf(@, "Int")) | |
465 | 465 | then @ | |
466 | 466 | else throw("Couldn't cast Any to Int") | |
467 | 467 | } | |
468 | 468 | let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0) | |
469 | 469 | let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0) | |
470 | 470 | let votePrevious = valueOrErrorMessage(getInteger(keyVote(pool, userAddress, epochPrevious)), (((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote")) | |
471 | 471 | let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0) | |
472 | 472 | let newVote = fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious) | |
473 | 473 | let actions = if ((newVote > 0)) | |
474 | 474 | then [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))] | |
475 | 475 | else deleteNodeActions(getVotesListName(pool), userAddressStr) | |
476 | 476 | $Tuple2(actions, unit) | |
477 | 477 | } | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | else throw("Strict value is not equal to itself.") | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | 485 | @Callable(i) | |
486 | 486 | func processPoolINTERNAL (poolStr) = { | |
487 | 487 | let checkCaller = mustThis(i) | |
488 | 488 | if ((checkCaller == checkCaller)) | |
489 | 489 | then { | |
490 | 490 | let targetEpoch = (getIntOrFail(this, keyCurrentEpoch) - 1) | |
491 | 491 | let checkTargetEpoch = if ((targetEpoch >= 0)) | |
492 | 492 | then true | |
493 | 493 | else throw("processPoolINTERNAL: invalid target epoch") | |
494 | 494 | if ((checkTargetEpoch == checkTargetEpoch)) | |
495 | 495 | then { | |
496 | 496 | let pool = stringToPool(poolStr) | |
497 | 497 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0) | |
498 | 498 | let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0) | |
499 | 499 | let share = if ((totalVotes == 0)) | |
500 | 500 | then 0 | |
501 | 501 | else fraction(votingResult, poolWeightMult, totalVotes) | |
502 | 502 | $Tuple2([IntegerEntry(keyPoolShare(pool, targetEpoch), share)], unit) | |
503 | 503 | } | |
504 | 504 | else throw("Strict value is not equal to itself.") | |
505 | 505 | } | |
506 | 506 | else throw("Strict value is not equal to itself.") | |
507 | 507 | } | |
508 | 508 | ||
509 | 509 | ||
510 | 510 | ||
511 | 511 | @Callable(i) | |
512 | 512 | func finalizeHelper () = { | |
513 | 513 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
514 | 514 | let previousEpoch = (epoch - 1) | |
515 | 515 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
516 | 516 | let epochLength = getIntOrFail(this, keyEpochLength) | |
517 | 517 | let endHeight = (startHeight + epochLength) | |
518 | 518 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
519 | 519 | if ((height >= endHeight)) | |
520 | 520 | then { | |
521 | 521 | let newEpoch = (epoch + 1) | |
522 | 522 | $Tuple2([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageTotal)], true) | |
523 | 523 | } | |
524 | 524 | else if ((finalizationStageOrUnit == unit)) | |
525 | 525 | then $Tuple2(nil, false) | |
526 | 526 | else if ((finalizationStageOrUnit == finalizationStageTotal)) | |
527 | 527 | then { | |
528 | 528 | let poolOrUnit = getString(keyNextPool) | |
529 | 529 | let userOrUnit = getString(keyNextUser) | |
530 | 530 | match poolOrUnit { | |
531 | 531 | case _: Unit => | |
532 | 532 | match getString(keyListHead(poolsListName)) { | |
533 | 533 | case _: Unit => | |
534 | 534 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
535 | 535 | case poolsHeadStr: String => | |
536 | 536 | $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true) | |
537 | 537 | case _ => | |
538 | 538 | throw("Match error") | |
539 | 539 | } | |
540 | 540 | case poolStr: String => | |
541 | 541 | let pool = stringToPool(poolStr) | |
542 | 542 | let nextUserOrUnit = match userOrUnit { | |
543 | 543 | case _: Unit => | |
544 | 544 | getString(keyListHead(getVotesListName(pool))) | |
545 | 545 | case user: String => | |
546 | 546 | let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil) | |
547 | 547 | if ((processVoteInv == processVoteInv)) | |
548 | 548 | then getString(keyListNext(getVotesListName(pool), user)) | |
549 | 549 | else throw("Strict value is not equal to itself.") | |
550 | 550 | case _ => | |
551 | 551 | throw("Match error") | |
552 | 552 | } | |
553 | 553 | match nextUserOrUnit { | |
554 | 554 | case _: Unit => | |
555 | 555 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
556 | 556 | match nextPoolOrUnit { | |
557 | 557 | case _: Unit => | |
558 | 558 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
559 | 559 | case s: String => | |
560 | 560 | $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true) | |
561 | 561 | case _ => | |
562 | 562 | throw("Match error") | |
563 | 563 | } | |
564 | 564 | case nextUser: String => | |
565 | 565 | $Tuple2([StringEntry(keyNextUser, nextUser)], true) | |
566 | 566 | case _ => | |
567 | 567 | throw("Match error") | |
568 | 568 | } | |
569 | 569 | case _ => | |
570 | 570 | throw("Match error") | |
571 | 571 | } | |
572 | 572 | } | |
573 | 573 | else if ((finalizationStageOrUnit == finalizationStageShares)) | |
574 | 574 | then { | |
575 | 575 | let poolOrUnit = getString(keyNextPool) | |
576 | 576 | match poolOrUnit { | |
577 | 577 | case _: Unit => | |
578 | 578 | match getString(keyListHead(poolsListName)) { | |
579 | 579 | case _: Unit => | |
580 | 580 | $Tuple2([DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)], true) | |
581 | 581 | case nextPoolStr: String => | |
582 | 582 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
583 | 583 | case _ => | |
584 | 584 | throw("Match error") | |
585 | 585 | } | |
586 | 586 | case poolStr: String => | |
587 | 587 | let processPoolInv = invoke(this, "processPoolINTERNAL", [poolStr], nil) | |
588 | 588 | if ((processPoolInv == processPoolInv)) | |
589 | 589 | then { | |
590 | 590 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
591 | 591 | match nextPoolOrUnit { | |
592 | 592 | case _: Unit => | |
593 | 593 | $Tuple2([DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)], true) | |
594 | 594 | case nextPoolStr: String => | |
595 | 595 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
596 | 596 | case _ => | |
597 | 597 | throw("Match error") | |
598 | 598 | } | |
599 | 599 | } | |
600 | 600 | else throw("Strict value is not equal to itself.") | |
601 | 601 | case _ => | |
602 | 602 | throw("Match error") | |
603 | 603 | } | |
604 | 604 | } | |
605 | 605 | else throw("finalization is broken") | |
606 | 606 | } | |
607 | 607 | ||
608 | 608 | ||
609 | 609 | ||
610 | 610 | @Callable(i) | |
611 | 611 | func finalizeWrapper (counter) = { | |
612 | 612 | let result = { | |
613 | 613 | let @ = invoke(this, "finalizeHelper", nil, nil) | |
614 | 614 | if ($isInstanceOf(@, "Boolean")) | |
615 | 615 | then @ | |
616 | 616 | else throw("Couldn't cast Any to Boolean") | |
617 | 617 | } | |
618 | 618 | if ((result == result)) | |
619 | 619 | then if (!(result)) | |
620 | 620 | then if ((counter == 0)) | |
621 | 621 | then throw("Current voting is not over yet") | |
622 | 622 | else $Tuple2(nil, unit) | |
623 | 623 | else { | |
624 | 624 | let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault) | |
625 | 625 | if ((maxDepth > counter)) | |
626 | 626 | then { | |
627 | 627 | let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil) | |
628 | 628 | if ((inv == inv)) | |
629 | 629 | then $Tuple2(nil, unit) | |
630 | 630 | else throw("Strict value is not equal to itself.") | |
631 | 631 | } | |
632 | 632 | else $Tuple2(nil, unit) | |
633 | 633 | } | |
634 | 634 | else throw("Strict value is not equal to itself.") | |
635 | 635 | } | |
636 | 636 | ||
637 | 637 | ||
638 | 638 | ||
639 | 639 | @Callable(i) | |
640 | 640 | func finalize () = { | |
641 | 641 | let inv = invoke(this, "finalizeWrapper", [0], nil) | |
642 | 642 | if ((inv == inv)) | |
643 | 643 | then $Tuple2(nil, unit) | |
644 | 644 | else throw("Strict value is not equal to itself.") | |
645 | 645 | } | |
646 | 646 | ||
647 | 647 | ||
648 | 648 | ||
649 | 649 | @Callable(i) | |
650 | 650 | func onVerificationLoss (assetId) = $Tuple2(nil, unit) | |
651 | 651 | ||
652 | 652 | ||
653 | 653 | @Verifier(tx) | |
654 | 654 | func verify () = { | |
655 | 655 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
656 | 656 | case pk: ByteVector => | |
657 | 657 | pk | |
658 | 658 | case _: Unit => | |
659 | 659 | tx.senderPublicKey | |
660 | 660 | case _ => | |
661 | 661 | throw("Match error") | |
662 | 662 | } | |
663 | 663 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
664 | 664 | } | |
665 | 665 |
github/deemru/w8io/169f3d6 89.27 ms ◑