tx · F1CtiBMh5o2FxEiNM1pSobsrtP98N9R1JW5sxkJFuTx5 3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL: -0.03200000 Waves 2022.06.20 11:22 [2104454] smart account 3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL > SELF 0.00000000 Waves
{ "type": 13, "id": "F1CtiBMh5o2FxEiNM1pSobsrtP98N9R1JW5sxkJFuTx5", "fee": 3200000, "feeAssetId": null, "timestamp": 1655713467561, "version": 1, "sender": "3MyVvNfXht9piazyf1e5BVFsqv1R7z5cWJL", "senderPublicKey": "DnPyGWCgpQChvoQrnXQRcC9FtN32mPGrcog2wcKHdkVn", "proofs": [ "2UVDqkTSPkAcL6K914VkbgrXeDNWRdNG97Pk8KYEyArAGT6eU3sXqJ3MCH2xog3oPCCnyCSVUzPJcrNpeHcskBNg" ], "script": "base64:AAIFAAAAAAAAAF4IAhIDCgEIEgASBAoCCAESBQoDCAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESBAoCCAgSAwoBCBIAEgMKAQESABIDCgEIEgQKAggIEgQKAggIEgQKAggIAAAALQAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAOcG9vbFdlaWdodE11bHQAAAAAAAX14QAAAAAAD21heERlcHRoRGVmYXVsdAAAAAAAAAAACgAAAAAWZmluYWxpemF0aW9uU3RhZ2VUb3RhbAAAAAAAAAAAAAAAAAAXZmluYWxpemF0aW9uU3RhZ2VTaGFyZXMAAAAAAAAAAAEAAAAADmtleUVwb2NoTGVuZ3RoCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAALZXBvY2hMZW5ndGgFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAAA9rZXlDdXJyZW50RXBvY2gJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAxjdXJyZW50RXBvY2gFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAAAtrZXlNYXhEZXB0aAkABLkAAAACCQA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Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXnMfvSV", "chainId": 84, "height": 2104454, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B1djKxLP76VofK9fCEDdr7KAX7THRFb4a8d2MLeusKV3 Next: 7rodGGGNeBx6DZ5H97unpj5vRfr3HFt9mb4C1Mnkn7Eg Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
178 | - | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
179 | - | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
177 | + | let checkNode = if (!(containsNode(listName, id))) | |
178 | + | then true | |
179 | + | else throw("Node exists") | |
180 | + | if ((checkNode == checkNode)) | |
181 | + | then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
182 | + | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
183 | + | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
184 | + | else throw("Strict value is not equal to itself.") | |
180 | 185 | } | |
181 | 186 | ||
182 | 187 |
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 | - | (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
178 | - | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
179 | - | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
177 | + | let checkNode = if (!(containsNode(listName, id))) | |
178 | + | then true | |
179 | + | else throw("Node exists") | |
180 | + | if ((checkNode == checkNode)) | |
181 | + | then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
182 | + | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
183 | + | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
184 | + | else throw("Strict value is not equal to itself.") | |
180 | 185 | } | |
181 | 186 | ||
182 | 187 | ||
183 | 188 | func deleteNodeActions (listName,id) = { | |
184 | 189 | let headOrUnit = getString(this, keyListHead(listName)) | |
185 | 190 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
186 | 191 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
187 | 192 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
188 | 193 | ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit)) | |
189 | 194 | then (nextOrUnit != unit) | |
190 | 195 | else false) | |
191 | 196 | then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))] | |
192 | 197 | else if ((nextOrUnit != unit)) | |
193 | 198 | then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))] | |
194 | 199 | else if ((prevOrUnit != unit)) | |
195 | 200 | then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))] | |
196 | 201 | else if ((id == valueOrElse(headOrUnit, ""))) | |
197 | 202 | then [DeleteEntry(keyListHead(listName))] | |
198 | 203 | else throw(((("invalid node: " + listName) + ".") + id)))) | |
199 | 204 | } | |
200 | 205 | ||
201 | 206 | ||
202 | 207 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
203 | 208 | ||
204 | 209 | ||
205 | 210 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
206 | 211 | ||
207 | 212 | ||
208 | 213 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
209 | 214 | case s: String => | |
210 | 215 | fromBase58String(s) | |
211 | 216 | case _: Unit => | |
212 | 217 | unit | |
213 | 218 | case _ => | |
214 | 219 | throw("Match error") | |
215 | 220 | } | |
216 | 221 | ||
217 | 222 | ||
218 | 223 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
219 | 224 | case s: String => | |
220 | 225 | fromBase58String(s) | |
221 | 226 | case _: Unit => | |
222 | 227 | unit | |
223 | 228 | case _ => | |
224 | 229 | throw("Match error") | |
225 | 230 | } | |
226 | 231 | ||
227 | 232 | ||
228 | 233 | let permissionDeniedError = throw("Permission denied") | |
229 | 234 | ||
230 | 235 | func mustThis (i) = if ((i.caller == this)) | |
231 | 236 | then true | |
232 | 237 | else permissionDeniedError | |
233 | 238 | ||
234 | 239 | ||
235 | 240 | func mustManager (i) = match managerPublicKeyOrUnit() { | |
236 | 241 | case pk: ByteVector => | |
237 | 242 | if ((i.callerPublicKey == pk)) | |
238 | 243 | then true | |
239 | 244 | else permissionDeniedError | |
240 | 245 | case _: Unit => | |
241 | 246 | mustThis(i) | |
242 | 247 | case _ => | |
243 | 248 | throw("Match error") | |
244 | 249 | } | |
245 | 250 | ||
246 | 251 | ||
247 | 252 | @Callable(i) | |
248 | 253 | func setManager (pendingManagerPublicKey) = { | |
249 | 254 | let checkCaller = mustManager(i) | |
250 | 255 | if ((checkCaller == checkCaller)) | |
251 | 256 | then { | |
252 | 257 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
253 | 258 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
254 | 259 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
255 | 260 | else throw("Strict value is not equal to itself.") | |
256 | 261 | } | |
257 | 262 | else throw("Strict value is not equal to itself.") | |
258 | 263 | } | |
259 | 264 | ||
260 | 265 | ||
261 | 266 | ||
262 | 267 | @Callable(i) | |
263 | 268 | func confirmManager () = { | |
264 | 269 | let pm = pendingManagerPublicKeyOrUnit() | |
265 | 270 | let hasPM = if (isDefined(pm)) | |
266 | 271 | then true | |
267 | 272 | else throw("No pending manager") | |
268 | 273 | if ((hasPM == hasPM)) | |
269 | 274 | then { | |
270 | 275 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
271 | 276 | then true | |
272 | 277 | else throw("You are not pending manager") | |
273 | 278 | if ((checkPM == checkPM)) | |
274 | 279 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
275 | 280 | else throw("Strict value is not equal to itself.") | |
276 | 281 | } | |
277 | 282 | else throw("Strict value is not equal to itself.") | |
278 | 283 | } | |
279 | 284 | ||
280 | 285 | ||
281 | 286 | ||
282 | 287 | @Callable(i) | |
283 | 288 | func getUserGwxAmountAtHeight (userAddress,targetHeight) = { | |
284 | 289 | let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), "invalid boosting contract address") | |
285 | 290 | $Tuple2(nil, { | |
286 | 291 | let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil) | |
287 | 292 | if ($isInstanceOf(@, "Int")) | |
288 | 293 | then @ | |
289 | 294 | else throw("Couldn't cast Any to Int") | |
290 | 295 | }) | |
291 | 296 | } | |
292 | 297 | ||
293 | 298 | ||
294 | 299 | ||
295 | 300 | @Callable(i) | |
296 | 301 | func constructor (votingEmissionCandidateContract,boostingContract,epochLength) = { | |
297 | 302 | let cheks = [mustManager(i), if ((addressFromString(votingEmissionCandidateContract) != unit)) | |
298 | 303 | then true | |
299 | 304 | else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit)) | |
300 | 305 | then true | |
301 | 306 | else "invalid boosting contract address", if ((epochLength > 0)) | |
302 | 307 | then true | |
303 | 308 | else throw("invalid epoch length")] | |
304 | 309 | if ((cheks == cheks)) | |
305 | 310 | then $Tuple2([StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), IntegerEntry(keyEpochLength, epochLength)], unit) | |
306 | 311 | else throw("Strict value is not equal to itself.") | |
307 | 312 | } | |
308 | 313 | ||
309 | 314 | ||
310 | 315 | ||
311 | 316 | @Callable(i) | |
312 | 317 | func create (amountAssetId,priceAssetId) = { | |
313 | 318 | let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), ""))) | |
314 | 319 | then true | |
315 | 320 | else mustManager(i)] | |
316 | 321 | if ((checks == checks)) | |
317 | 322 | then { | |
318 | 323 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
319 | 324 | let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool))) | |
320 | 325 | let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit) | |
321 | 326 | let startHeightActions = if (currentEpochIsNotDefined) | |
322 | 327 | then { | |
323 | 328 | let epoch = 0 | |
324 | 329 | [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)] | |
325 | 330 | } | |
326 | 331 | else nil | |
327 | 332 | $Tuple2((inListActions ++ startHeightActions), unit) | |
328 | 333 | } | |
329 | 334 | else throw("Strict value is not equal to itself.") | |
330 | 335 | } | |
331 | 336 | ||
332 | 337 | ||
333 | 338 | ||
334 | 339 | @Callable(i) | |
335 | 340 | func vote (amountAssetId,priceAssetId,amount) = { | |
336 | 341 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
337 | 342 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
338 | 343 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
339 | 344 | let epochLength = getIntOrFail(this, keyEpochLength) | |
340 | 345 | let endHeight = (startHeight + epochLength) | |
341 | 346 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
342 | 347 | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
343 | 348 | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
344 | 349 | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
345 | 350 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
346 | 351 | let gwxAmountAtEndTotal = { | |
347 | 352 | let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil) | |
348 | 353 | if ($isInstanceOf(@, "Int")) | |
349 | 354 | then @ | |
350 | 355 | else throw("Couldn't cast Any to Int") | |
351 | 356 | } | |
352 | 357 | let available = (gwxAmountAtEndTotal - used) | |
353 | 358 | let newVote = (vote + amount) | |
354 | 359 | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
355 | 360 | then true | |
356 | 361 | else throw("invalid assets"), if ((endHeight > height)) | |
357 | 362 | then true | |
358 | 363 | else throw("invalid height"), if ((finalizationStageOrUnit == unit)) | |
359 | 364 | then true | |
360 | 365 | else throw("finalization in progress"), if ((gwxAmountAtEndTotal > 0)) | |
361 | 366 | then true | |
362 | 367 | else throw("you do not have gWX"), if (if ((amount > 0)) | |
363 | 368 | then (available >= amount) | |
364 | 369 | else false) | |
365 | 370 | then true | |
366 | 371 | else throw("invalid amount")] | |
367 | 372 | if ((checks == checks)) | |
368 | 373 | then { | |
369 | 374 | let votesListName = getVotesListName(pool) | |
370 | 375 | let userAddressStr = toString(i.caller) | |
371 | 376 | let votesListActions = if (containsNode(votesListName, userAddressStr)) | |
372 | 377 | then nil | |
373 | 378 | else insertNodeActions(votesListName, userAddressStr) | |
374 | 379 | $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 | 380 | } | |
376 | 381 | else throw("Strict value is not equal to itself.") | |
377 | 382 | } | |
378 | 383 | ||
379 | 384 | ||
380 | 385 | ||
381 | 386 | @Callable(i) | |
382 | 387 | func cancelVote (amountAssetId,priceAssetId) = { | |
383 | 388 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
384 | 389 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
385 | 390 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
386 | 391 | let epochLength = getIntOrFail(this, keyEpochLength) | |
387 | 392 | let endHeight = (startHeight + epochLength) | |
388 | 393 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
389 | 394 | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
390 | 395 | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
391 | 396 | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
392 | 397 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
393 | 398 | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
394 | 399 | then true | |
395 | 400 | else throw("invalid assets"), if ((endHeight > height)) | |
396 | 401 | then true | |
397 | 402 | else throw("invalid height"), if ((finalizationStageOrUnit == unit)) | |
398 | 403 | then true | |
399 | 404 | else throw("finalization in progress"), if ((vote > 0)) | |
400 | 405 | then true | |
401 | 406 | else throw("no vote")] | |
402 | 407 | if ((checks == checks)) | |
403 | 408 | then { | |
404 | 409 | let votesListName = getVotesListName(pool) | |
405 | 410 | let userAddressStr = toString(i.caller) | |
406 | 411 | $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 | 412 | } | |
408 | 413 | else throw("Strict value is not equal to itself.") | |
409 | 414 | } | |
410 | 415 | ||
411 | 416 | ||
412 | 417 | ||
413 | 418 | @Callable(i) | |
414 | 419 | func setEpochLength (newEpochLength) = { | |
415 | 420 | let cheks = [mustManager(i), if ((newEpochLength > 0)) | |
416 | 421 | then true | |
417 | 422 | else throw("invalid epoch length")] | |
418 | 423 | if ((cheks == cheks)) | |
419 | 424 | then $Tuple2([IntegerEntry(keyEpochLength, newEpochLength)], unit) | |
420 | 425 | else throw("Strict value is not equal to itself.") | |
421 | 426 | } | |
422 | 427 | ||
423 | 428 | ||
424 | 429 | ||
425 | 430 | @Callable(i) | |
426 | 431 | func setMaxDepth (newMaxDepth) = { | |
427 | 432 | let cheks = [mustManager(i), if ((newMaxDepth > 0)) | |
428 | 433 | then true | |
429 | 434 | else throw("invalid max depth")] | |
430 | 435 | if ((cheks == cheks)) | |
431 | 436 | then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit) | |
432 | 437 | else throw("Strict value is not equal to itself.") | |
433 | 438 | } | |
434 | 439 | ||
435 | 440 | ||
436 | 441 | ||
437 | 442 | @Callable(i) | |
438 | 443 | func processVoteINTERNAL (poolStr,userAddressStr) = { | |
439 | 444 | let checkCaller = mustThis(i) | |
440 | 445 | if ((checkCaller == checkCaller)) | |
441 | 446 | then { | |
442 | 447 | let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), ("processVoteINTERNAL: invalid user address " + userAddressStr)) | |
443 | 448 | let epoch = getIntOrFail(this, keyCurrentEpoch) | |
444 | 449 | let epochPrevious = (epoch - 1) | |
445 | 450 | let epochLength = getIntOrFail(this, keyEpochLength) | |
446 | 451 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
447 | 452 | let endHeight = (startHeight + epochLength) | |
448 | 453 | let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious)) | |
449 | 454 | let endHeightPrevious = (startHeightPrevious + epochLength) | |
450 | 455 | let checkTargetEpoch = if ((epochPrevious >= 0)) | |
451 | 456 | then true | |
452 | 457 | else throw("processVoteINTERNAL: invalid previous epoch") | |
453 | 458 | if ((checkTargetEpoch == checkTargetEpoch)) | |
454 | 459 | then { | |
455 | 460 | let pool = stringToPool(poolStr) | |
456 | 461 | let gwxAmountAtEndTotal = { | |
457 | 462 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil) | |
458 | 463 | if ($isInstanceOf(@, "Int")) | |
459 | 464 | then @ | |
460 | 465 | else throw("Couldn't cast Any to Int") | |
461 | 466 | } | |
462 | 467 | let gwxAmountAtEndTotalPrevious = { | |
463 | 468 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil) | |
464 | 469 | if ($isInstanceOf(@, "Int")) | |
465 | 470 | then @ | |
466 | 471 | else throw("Couldn't cast Any to Int") | |
467 | 472 | } | |
468 | 473 | let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0) | |
469 | 474 | let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0) | |
470 | 475 | let votePrevious = valueOrErrorMessage(getInteger(keyVote(pool, userAddress, epochPrevious)), (((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote")) | |
471 | 476 | let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0) | |
472 | 477 | let newVote = fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious) | |
473 | 478 | let actions = if ((newVote > 0)) | |
474 | 479 | 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 | 480 | else deleteNodeActions(getVotesListName(pool), userAddressStr) | |
476 | 481 | $Tuple2(actions, unit) | |
477 | 482 | } | |
478 | 483 | else throw("Strict value is not equal to itself.") | |
479 | 484 | } | |
480 | 485 | else throw("Strict value is not equal to itself.") | |
481 | 486 | } | |
482 | 487 | ||
483 | 488 | ||
484 | 489 | ||
485 | 490 | @Callable(i) | |
486 | 491 | func processPoolINTERNAL (poolStr) = { | |
487 | 492 | let checkCaller = mustThis(i) | |
488 | 493 | if ((checkCaller == checkCaller)) | |
489 | 494 | then { | |
490 | 495 | let targetEpoch = (getIntOrFail(this, keyCurrentEpoch) - 1) | |
491 | 496 | let checkTargetEpoch = if ((targetEpoch >= 0)) | |
492 | 497 | then true | |
493 | 498 | else throw("processPoolINTERNAL: invalid target epoch") | |
494 | 499 | if ((checkTargetEpoch == checkTargetEpoch)) | |
495 | 500 | then { | |
496 | 501 | let pool = stringToPool(poolStr) | |
497 | 502 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0) | |
498 | 503 | let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0) | |
499 | 504 | let share = if ((totalVotes == 0)) | |
500 | 505 | then 0 | |
501 | 506 | else fraction(votingResult, poolWeightMult, totalVotes) | |
502 | 507 | $Tuple2([IntegerEntry(keyPoolShare(pool, targetEpoch), share)], unit) | |
503 | 508 | } | |
504 | 509 | else throw("Strict value is not equal to itself.") | |
505 | 510 | } | |
506 | 511 | else throw("Strict value is not equal to itself.") | |
507 | 512 | } | |
508 | 513 | ||
509 | 514 | ||
510 | 515 | ||
511 | 516 | @Callable(i) | |
512 | 517 | func finalizeHelper () = { | |
513 | 518 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
514 | 519 | let previousEpoch = (epoch - 1) | |
515 | 520 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
516 | 521 | let epochLength = getIntOrFail(this, keyEpochLength) | |
517 | 522 | let endHeight = (startHeight + epochLength) | |
518 | 523 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
519 | 524 | if ((height >= endHeight)) | |
520 | 525 | then { | |
521 | 526 | let newEpoch = (epoch + 1) | |
522 | 527 | $Tuple2([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageTotal)], true) | |
523 | 528 | } | |
524 | 529 | else if ((finalizationStageOrUnit == unit)) | |
525 | 530 | then $Tuple2(nil, false) | |
526 | 531 | else if ((finalizationStageOrUnit == finalizationStageTotal)) | |
527 | 532 | then { | |
528 | 533 | let poolOrUnit = getString(keyNextPool) | |
529 | 534 | let userOrUnit = getString(keyNextUser) | |
530 | 535 | match poolOrUnit { | |
531 | 536 | case _: Unit => | |
532 | 537 | match getString(keyListHead(poolsListName)) { | |
533 | 538 | case _: Unit => | |
534 | 539 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
535 | 540 | case poolsHeadStr: String => | |
536 | 541 | $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true) | |
537 | 542 | case _ => | |
538 | 543 | throw("Match error") | |
539 | 544 | } | |
540 | 545 | case poolStr: String => | |
541 | 546 | let pool = stringToPool(poolStr) | |
542 | 547 | let nextUserOrUnit = match userOrUnit { | |
543 | 548 | case _: Unit => | |
544 | 549 | getString(keyListHead(getVotesListName(pool))) | |
545 | 550 | case user: String => | |
546 | 551 | let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil) | |
547 | 552 | if ((processVoteInv == processVoteInv)) | |
548 | 553 | then getString(keyListNext(getVotesListName(pool), user)) | |
549 | 554 | else throw("Strict value is not equal to itself.") | |
550 | 555 | case _ => | |
551 | 556 | throw("Match error") | |
552 | 557 | } | |
553 | 558 | match nextUserOrUnit { | |
554 | 559 | case _: Unit => | |
555 | 560 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
556 | 561 | match nextPoolOrUnit { | |
557 | 562 | case _: Unit => | |
558 | 563 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
559 | 564 | case s: String => | |
560 | 565 | $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true) | |
561 | 566 | case _ => | |
562 | 567 | throw("Match error") | |
563 | 568 | } | |
564 | 569 | case nextUser: String => | |
565 | 570 | $Tuple2([StringEntry(keyNextUser, nextUser)], true) | |
566 | 571 | case _ => | |
567 | 572 | throw("Match error") | |
568 | 573 | } | |
569 | 574 | case _ => | |
570 | 575 | throw("Match error") | |
571 | 576 | } | |
572 | 577 | } | |
573 | 578 | else if ((finalizationStageOrUnit == finalizationStageShares)) | |
574 | 579 | then { | |
575 | 580 | let poolOrUnit = getString(keyNextPool) | |
576 | 581 | match poolOrUnit { | |
577 | 582 | case _: Unit => | |
578 | 583 | match getString(keyListHead(poolsListName)) { | |
579 | 584 | case _: Unit => | |
580 | 585 | $Tuple2([DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)], true) | |
581 | 586 | case nextPoolStr: String => | |
582 | 587 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
583 | 588 | case _ => | |
584 | 589 | throw("Match error") | |
585 | 590 | } | |
586 | 591 | case poolStr: String => | |
587 | 592 | let processPoolInv = invoke(this, "processPoolINTERNAL", [poolStr], nil) | |
588 | 593 | if ((processPoolInv == processPoolInv)) | |
589 | 594 | then { | |
590 | 595 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
591 | 596 | match nextPoolOrUnit { | |
592 | 597 | case _: Unit => | |
593 | 598 | $Tuple2([DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)], true) | |
594 | 599 | case nextPoolStr: String => | |
595 | 600 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
596 | 601 | case _ => | |
597 | 602 | throw("Match error") | |
598 | 603 | } | |
599 | 604 | } | |
600 | 605 | else throw("Strict value is not equal to itself.") | |
601 | 606 | case _ => | |
602 | 607 | throw("Match error") | |
603 | 608 | } | |
604 | 609 | } | |
605 | 610 | else throw("finalization is broken") | |
606 | 611 | } | |
607 | 612 | ||
608 | 613 | ||
609 | 614 | ||
610 | 615 | @Callable(i) | |
611 | 616 | func finalizeWrapper (counter) = { | |
612 | 617 | let result = { | |
613 | 618 | let @ = invoke(this, "finalizeHelper", nil, nil) | |
614 | 619 | if ($isInstanceOf(@, "Boolean")) | |
615 | 620 | then @ | |
616 | 621 | else throw("Couldn't cast Any to Boolean") | |
617 | 622 | } | |
618 | 623 | if ((result == result)) | |
619 | 624 | then if (!(result)) | |
620 | 625 | then if ((counter == 0)) | |
621 | 626 | then throw("Current voting is not over yet") | |
622 | 627 | else $Tuple2(nil, unit) | |
623 | 628 | else { | |
624 | 629 | let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault) | |
625 | 630 | if ((maxDepth > counter)) | |
626 | 631 | then { | |
627 | 632 | let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil) | |
628 | 633 | if ((inv == inv)) | |
629 | 634 | then $Tuple2(nil, unit) | |
630 | 635 | else throw("Strict value is not equal to itself.") | |
631 | 636 | } | |
632 | 637 | else $Tuple2(nil, unit) | |
633 | 638 | } | |
634 | 639 | else throw("Strict value is not equal to itself.") | |
635 | 640 | } | |
636 | 641 | ||
637 | 642 | ||
638 | 643 | ||
639 | 644 | @Callable(i) | |
640 | 645 | func finalize () = { | |
641 | 646 | let inv = invoke(this, "finalizeWrapper", [0], nil) | |
642 | 647 | if ((inv == inv)) | |
643 | 648 | then $Tuple2(nil, unit) | |
644 | 649 | else throw("Strict value is not equal to itself.") | |
645 | 650 | } | |
646 | 651 | ||
647 | 652 | ||
648 | 653 | ||
649 | 654 | @Callable(i) | |
650 | 655 | func onVerificationLoss (assetId) = $Tuple2(nil, unit) | |
651 | 656 | ||
652 | 657 | ||
653 | 658 | ||
654 | 659 | @Callable(i) | |
655 | 660 | func containsNodeREADONLY (listName,id) = $Tuple2(nil, containsNode(listName, id)) | |
656 | 661 | ||
657 | 662 | ||
658 | 663 | ||
659 | 664 | @Callable(i) | |
660 | 665 | func insertNode (listName,id) = { | |
661 | 666 | let checkCaller = mustManager(i) | |
662 | 667 | if ((checkCaller == checkCaller)) | |
663 | 668 | then $Tuple2(insertNodeActions(listName, id), unit) | |
664 | 669 | else throw("Strict value is not equal to itself.") | |
665 | 670 | } | |
666 | 671 | ||
667 | 672 | ||
668 | 673 | ||
669 | 674 | @Callable(i) | |
670 | 675 | func deleteNode (listName,id) = { | |
671 | 676 | let checkCaller = mustManager(i) | |
672 | 677 | if ((checkCaller == checkCaller)) | |
673 | 678 | then $Tuple2(deleteNodeActions(listName, id), unit) | |
674 | 679 | else throw("Strict value is not equal to itself.") | |
675 | 680 | } | |
676 | 681 | ||
677 | 682 | ||
678 | 683 | @Verifier(tx) | |
679 | 684 | func verify () = { | |
680 | 685 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
681 | 686 | case pk: ByteVector => | |
682 | 687 | pk | |
683 | 688 | case _: Unit => | |
684 | 689 | tx.senderPublicKey | |
685 | 690 | case _ => | |
686 | 691 | throw("Match error") | |
687 | 692 | } | |
688 | 693 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
689 | 694 | } | |
690 | 695 |
github/deemru/w8io/026f985 83.23 ms ◑