tx · 7U2gXgagFegASqNPizi59LYpDD6nuBivpJagzczA9eKZ 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS: -0.01400000 Waves 2021.04.15 17:00 [1483651] smart account 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS > SELF 0.00000000 Waves
{ "type": 13, "id": "7U2gXgagFegASqNPizi59LYpDD6nuBivpJagzczA9eKZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1618495284115, "version": 2, "chainId": 84, "sender": "3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS", "senderPublicKey": "93SZf1TATCRxGyBuGyngpQGKcpKZirb2yXLT2RQJ3UKb", "proofs": [ "42qrPxZXLSvMG9cJzgwM6ge3tw5QZpuBDQigKSYkPVNdVpDaQTMs9zQt6BLKdwiVg8cJFoM5Fx5Tdrm3YeNem2Uv" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAAOQAAAAAMYWRtaW5QdWJLZXkxAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkyAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkzAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABFhZG1pblB1YktleVdhbGxldAEAAAAgPndaZVpWyfwpVzO1vA1FLcrMp/iFkg43d1jzYhVSFBIAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAD2tleUxhc3RJbnRlcmVzdAIAAAANbGFzdF9pbnRlcmVzdAAAAAATa2V5VXNlckxhc3RJbnRlcmVzdAIAAA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2V5MQkABEwAAAACBQAAAAxhZG1pblB1YktleTIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkzCQAETAAAAAIFAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wBQAAAANuaWwIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAACFPbmx5IGFkbWluIGNhbiBjYWxsIHRoaXMgZnVuY3Rpb24JAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACWtleUFjdGl2ZQYJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIa2V5Q2F1c2UFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Jl+22Q==", "height": 1483651, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9CQyf3xv6RnTxPJ5exCHYWxWvChgf3c6XCqm2bbYtLMs Next: C5Vft2V9JP7JvXkxvzSPVgpPTmmCQkhNXfpbnq5KfdTE Diff:
Old | New | Differences | |
---|---|---|---|
67 | 67 | ||
68 | 68 | let G = 10000000000 | |
69 | 69 | ||
70 | - | func H (I) = [BooleanEntry(f, false), StringEntry(g, I)] | |
70 | + | let H = "start_height" | |
71 | + | ||
72 | + | let I = "base_period" | |
73 | + | ||
74 | + | let J = "period_length" | |
75 | + | ||
76 | + | let K = "_user_total_struc" | |
77 | + | ||
78 | + | let L = valueOrErrorMessage(getInteger(C, I), "Empty kBasePeriod at voting contract") | |
79 | + | ||
80 | + | let M = valueOrErrorMessage(getInteger(C, H), "Empty kStartHeight at voting contract") | |
81 | + | ||
82 | + | let N = valueOrErrorMessage(getInteger(C, J), "Empty kPeriodLength at voting contract") | |
83 | + | ||
84 | + | let O = (L + ((height - M) / N)) | |
85 | + | ||
86 | + | func P (Q) = [BooleanEntry(f, false), StringEntry(g, Q)] | |
71 | 87 | ||
72 | 88 | ||
73 | - | func | |
89 | + | func R () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount") | |
74 | 90 | ||
75 | 91 | ||
76 | - | func | |
77 | - | let | |
78 | - | | |
92 | + | func S () = { | |
93 | + | let T = valueOrElse(getInteger(this, h), 0) | |
94 | + | T | |
79 | 95 | } | |
80 | 96 | ||
81 | 97 | ||
82 | - | func | |
98 | + | func U (V) = valueOrElse(getInteger(this, (toString(V) + j)), 0) | |
83 | 99 | ||
84 | 100 | ||
85 | - | func | |
101 | + | func W (V) = valueOrElse(getInteger(this, (toString(V) + p)), 0) | |
86 | 102 | ||
87 | 103 | ||
88 | - | func | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | let | |
93 | - | if ($isInstanceOf( | |
104 | + | func X (V,T) = { | |
105 | + | let Y = U(V) | |
106 | + | let Z = getInteger(this, (toString(V) + i)) | |
107 | + | let aa = { | |
108 | + | let ab = Z | |
109 | + | if ($isInstanceOf(ab, "Int")) | |
94 | 110 | then { | |
95 | - | let | |
96 | - | | |
111 | + | let Z = ab | |
112 | + | Z | |
97 | 113 | } | |
98 | - | else | |
114 | + | else T | |
99 | 115 | } | |
100 | - | $Tuple2( | |
116 | + | $Tuple2(aa, Y) | |
101 | 117 | } | |
102 | 118 | ||
103 | 119 | ||
104 | - | func | |
120 | + | func ac () = valueOrElse(getInteger(this, l), 0) | |
105 | 121 | ||
106 | 122 | ||
107 | - | func V (N) = valueOrElse(getInteger(C, (toString(N) + m)), 0) | |
123 | + | func ad (V) = { | |
124 | + | let ae = if (isDefined(getString(this, (toString(V) + K)))) | |
125 | + | then { | |
126 | + | let af = split(valueOrErrorMessage(getString(C, (toString(V) + K)), "Empty kUserTotalStruc"), "_") | |
127 | + | $Tuple3(parseIntValue(af[0]), parseIntValue(af[1]), parseIntValue(af[2])) | |
128 | + | } | |
129 | + | else { | |
130 | + | let ag = valueOrElse(getInteger(C, (toString(V) + m)), 0) | |
131 | + | $Tuple3(ag, 0, O) | |
132 | + | } | |
133 | + | let ah = ae._1 | |
134 | + | let ai = ae._2 | |
135 | + | let aj = ae._3 | |
136 | + | if ((aj == O)) | |
137 | + | then ai | |
138 | + | else 0 | |
139 | + | } | |
108 | 140 | ||
109 | 141 | ||
110 | - | func | |
142 | + | func ak (V) = valueOrElse(getInteger(this, (toString(V) + n)), 0) | |
111 | 143 | ||
112 | 144 | ||
113 | - | func | |
145 | + | func al (am) = valueOrElse(getInteger(this, (am + t)), 0) | |
114 | 146 | ||
115 | 147 | ||
116 | - | func | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | if ($isInstanceOf( | |
148 | + | func an (V,am,ao) = { | |
149 | + | let ap = getInteger(this, (((am + ao) + toString(V)) + n)) | |
150 | + | let aq = { | |
151 | + | let ab = ap | |
152 | + | if ($isInstanceOf(ab, "Int")) | |
121 | 153 | then { | |
122 | - | let | |
123 | - | | |
154 | + | let aq = ab | |
155 | + | aq | |
124 | 156 | } | |
125 | - | else if ($isInstanceOf( | |
157 | + | else if ($isInstanceOf(ab, "Unit")) | |
126 | 158 | then { | |
127 | - | let | |
159 | + | let aq = ab | |
128 | 160 | 0 | |
129 | 161 | } | |
130 | 162 | else throw("Match error") | |
131 | 163 | } | |
132 | - | valueOrErrorMessage( | |
164 | + | valueOrErrorMessage(aq, (((("No data on the key: " + am) + ao) + toString(V)) + n)) | |
133 | 165 | } | |
134 | 166 | ||
135 | 167 | ||
136 | - | func | |
168 | + | func ar (am) = valueOrErrorMessage(getInteger(this, (am + u)), (("No data on the key: " + am) + u)) | |
137 | 169 | ||
138 | 170 | ||
139 | - | func | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | if ($isInstanceOf( | |
171 | + | func as (am,ao) = { | |
172 | + | let at = getInteger(this, ((am + ao) + o)) | |
173 | + | let au = { | |
174 | + | let ab = at | |
175 | + | if ($isInstanceOf(ab, "Int")) | |
144 | 176 | then { | |
145 | - | let | |
146 | - | | |
177 | + | let au = ab | |
178 | + | au | |
147 | 179 | } | |
148 | - | else if ($isInstanceOf( | |
180 | + | else if ($isInstanceOf(ab, "Unit")) | |
149 | 181 | then { | |
150 | - | let | |
182 | + | let au = ab | |
151 | 183 | 0 | |
152 | 184 | } | |
153 | 185 | else throw("Match error") | |
154 | 186 | } | |
155 | - | | |
187 | + | au | |
156 | 188 | } | |
157 | 189 | ||
158 | 190 | ||
159 | - | func ah (Y,aa,N,ai) = { | |
160 | - | let aj = ((((((Y + "_") + aa) + "_") + toString(N)) + "_") + toString(ai)) | |
161 | - | valueOrErrorMessage(getInteger(this, aj), ("No data on the key: " + aj)) | |
191 | + | func av (V) = { | |
192 | + | let aw = if (isDefined(getString(this, (toString(V) + K)))) | |
193 | + | then { | |
194 | + | let af = split(valueOrErrorMessage(getString(this, (toString(V) + K)), "Empty kUserTotalStruc"), "_") | |
195 | + | $Tuple3(parseIntValue(af[0]), parseIntValue(af[1]), parseIntValue(af[2])) | |
196 | + | } | |
197 | + | else { | |
198 | + | let ag = valueOrElse(getInteger(this, (toString(V) + m)), 0) | |
199 | + | $Tuple3(ag, 0, O) | |
200 | + | } | |
201 | + | let ah = aw._1 | |
202 | + | let ai = aw._2 | |
203 | + | let aj = aw._3 | |
204 | + | ah | |
162 | 205 | } | |
163 | 206 | ||
164 | 207 | ||
165 | - | func ak (al) = { | |
166 | - | let L = K() | |
167 | - | let am = P(al, L) | |
168 | - | let R = am._1 | |
169 | - | let an = am._2 | |
170 | - | let ao = fraction(an, (L - R), F) | |
171 | - | let ap = L | |
172 | - | $Tuple2(ap, ao) | |
208 | + | func ax (am,ao,V,ay) = { | |
209 | + | let az = ((((((am + "_") + ao) + "_") + toString(V)) + "_") + toString(ay)) | |
210 | + | valueOrErrorMessage(getInteger(this, az), ("No data on the key: " + az)) | |
173 | 211 | } | |
174 | 212 | ||
175 | 213 | ||
176 | - | @Callable(aq) | |
214 | + | func aA (aB) = { | |
215 | + | let T = S() | |
216 | + | let aC = X(aB, T) | |
217 | + | let Z = aC._1 | |
218 | + | let aD = aC._2 | |
219 | + | let aE = fraction(aD, (T - Z), F) | |
220 | + | let aF = T | |
221 | + | $Tuple2(aF, aE) | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | @Callable(aG) | |
177 | 226 | func airDrop () = if (!(A)) | |
178 | 227 | then throw("DApp is inactive at this moment") | |
179 | 228 | else { | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | if (( | |
229 | + | let aH = $Tuple2(aG.payments[0].amount, aG.payments[0].assetId) | |
230 | + | let aI = aH._1 | |
231 | + | let aJ = aH._2 | |
232 | + | if ((aJ != E)) | |
184 | 233 | then throw("Incorrect pmtAssetId") | |
185 | 234 | else { | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | [IntegerEntry(h, | |
235 | + | let aK = ac() | |
236 | + | let T = S() | |
237 | + | let aL = (T + fraction(aI, F, aK)) | |
238 | + | [IntegerEntry(h, aL)] | |
190 | 239 | } | |
191 | 240 | } | |
192 | 241 | ||
193 | 242 | ||
194 | 243 | ||
195 | - | @Callable( | |
244 | + | @Callable(aG) | |
196 | 245 | func lockSWOP () = if (!(A)) | |
197 | 246 | then throw("DApp is inactive at this moment") | |
198 | 247 | else { | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | if (( | |
248 | + | let aM = $Tuple2(aG.payments[0].amount, aG.payments[0].assetId) | |
249 | + | let aI = aM._1 | |
250 | + | let aJ = aM._2 | |
251 | + | if ((aJ != E)) | |
203 | 252 | then throw("Incorrect pmtAssetId") | |
204 | 253 | else { | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | [IntegerEntry((toString( | |
254 | + | let T = S() | |
255 | + | let aN = X(aG.caller, T) | |
256 | + | let Z = aN._1 | |
257 | + | let aD = aN._2 | |
258 | + | let aE = fraction(aD, (T - Z), F) | |
259 | + | let aO = ((aD + aI) + aE) | |
260 | + | let aF = T | |
261 | + | let aK = ac() | |
262 | + | let aP = ((aK + aI) + aE) | |
263 | + | let aQ = W(aG.caller) | |
264 | + | let aR = (aQ + aE) | |
265 | + | [IntegerEntry((toString(aG.caller) + i), aF), IntegerEntry((toString(aG.caller) + j), aO), IntegerEntry(l, aP), IntegerEntry((toString(aG.caller) + p), aR), IntegerEntry((toString(aG.caller) + q), aE)] | |
217 | 266 | } | |
218 | 267 | } | |
219 | 268 | ||
220 | 269 | ||
221 | 270 | ||
222 | - | @Callable( | |
223 | - | func withdrawSWOP ( | |
271 | + | @Callable(aG) | |
272 | + | func withdrawSWOP (aS) = if (!(A)) | |
224 | 273 | then throw("DApp is inactive at this moment") | |
225 | 274 | else { | |
226 | - | let au = U() | |
227 | - | let an = M(aq.caller) | |
228 | - | let aD = ak(aq.caller) | |
229 | - | let ap = aD._1 | |
230 | - | let ao = aD._2 | |
231 | - | let aE = V(aq.caller) | |
232 | - | let aF = (an - aE) | |
233 | - | if ((aC > aF)) | |
234 | - | then throw("withdrawAmount > availableFund") | |
275 | + | let aK = ac() | |
276 | + | let aD = U(aG.caller) | |
277 | + | let aT = aA(aG.caller) | |
278 | + | let aF = aT._1 | |
279 | + | let aE = aT._2 | |
280 | + | let aU = av(aG.caller) | |
281 | + | let aV = ad(aG.caller) | |
282 | + | if (if ((0 > aV)) | |
283 | + | then true | |
284 | + | else (0 > aU)) | |
285 | + | then throw("userUnvoteAmount < 0 || userVoteAmount < 0") | |
235 | 286 | else { | |
236 | - | let az = ((au + ao) - aC) | |
237 | - | let aG = ((an + ao) - aC) | |
238 | - | let aA = O(aq.caller) | |
239 | - | let aB = (aA + ao) | |
240 | - | [IntegerEntry((toString(aq.caller) + i), ap), IntegerEntry((toString(aq.caller) + j), aG), IntegerEntry(l, az), ScriptTransfer(aq.caller, aC, E), IntegerEntry((toString(aq.caller) + p), aB), IntegerEntry((toString(aq.caller) + q), ao)] | |
287 | + | let aW = ((aD - aU) - aV) | |
288 | + | if ((aS > aW)) | |
289 | + | then throw("withdrawAmount > availableToUnstake") | |
290 | + | else { | |
291 | + | let aP = ((aK + aE) - aS) | |
292 | + | let aX = ((aD + aE) - aS) | |
293 | + | let aQ = W(aG.caller) | |
294 | + | let aR = (aQ + aE) | |
295 | + | [IntegerEntry((toString(aG.caller) + i), aF), IntegerEntry((toString(aG.caller) + j), aX), IntegerEntry(l, aP), ScriptTransfer(aG.caller, aS, E), IntegerEntry((toString(aG.caller) + p), aR), IntegerEntry((toString(aG.caller) + q), aE)] | |
296 | + | } | |
241 | 297 | } | |
242 | 298 | } | |
243 | 299 | ||
244 | 300 | ||
245 | 301 | ||
246 | - | @Callable( | |
302 | + | @Callable(aG) | |
247 | 303 | func claimAndWithdrawSWOP () = if (!(A)) | |
248 | 304 | then throw("DApp is inactive at this moment") | |
249 | 305 | else { | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | if (( | |
306 | + | let T = S() | |
307 | + | let aY = aA(aG.caller) | |
308 | + | let aF = aY._1 | |
309 | + | let aE = aY._2 | |
310 | + | let aQ = W(aG.caller) | |
311 | + | let aR = (aQ + aE) | |
312 | + | if ((aE == 0)) | |
257 | 313 | then throw("You have 0 available SWOP") | |
258 | - | else [IntegerEntry((toString( | |
314 | + | else [IntegerEntry((toString(aG.caller) + i), aF), IntegerEntry((toString(aG.caller) + p), aR), IntegerEntry((toString(aG.caller) + q), aE), ScriptTransfer(aG.caller, aE, E)] | |
259 | 315 | } | |
260 | 316 | ||
261 | 317 | ||
262 | 318 | ||
263 | - | @Callable( | |
319 | + | @Callable(aG) | |
264 | 320 | func claimAndStakeSWOP () = if (!(A)) | |
265 | 321 | then throw("DApp is inactive at this moment") | |
266 | 322 | else { | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | if (( | |
323 | + | let aK = ac() | |
324 | + | let aD = U(aG.caller) | |
325 | + | let T = S() | |
326 | + | let aZ = aA(aG.caller) | |
327 | + | let aF = aZ._1 | |
328 | + | let aE = aZ._2 | |
329 | + | let aO = (aD + aE) | |
330 | + | let aP = (aK + aE) | |
331 | + | let aQ = W(aG.caller) | |
332 | + | let aR = (aQ + aE) | |
333 | + | if ((aE == 0)) | |
278 | 334 | then throw("You have 0 available SWOP") | |
279 | - | else [IntegerEntry((toString( | |
335 | + | else [IntegerEntry((toString(aG.caller) + i), aF), IntegerEntry(l, aP), IntegerEntry((toString(aG.caller) + j), aO), IntegerEntry((toString(aG.caller) + p), aR), IntegerEntry((toString(aG.caller) + q), aE)] | |
280 | 336 | } | |
281 | 337 | ||
282 | 338 | ||
283 | 339 | ||
284 | - | @Callable( | |
285 | - | func updateWeights ( | |
340 | + | @Callable(aG) | |
341 | + | func updateWeights (ba,bb,bc,bd,be) = if (!(A)) | |
286 | 342 | then throw("DApp is inactive at this moment") | |
287 | - | else if (!(containsElement([a, b, c, d | |
343 | + | else if (!(containsElement([a, b, c, d], aG.callerPublicKey))) | |
288 | 344 | then throw("Only admin can call this function") | |
289 | 345 | else { | |
290 | - | func | |
346 | + | func bf (bg,bh) = (bg + bh) | |
291 | 347 | ||
292 | - | func | |
293 | - | let | |
294 | - | let | |
295 | - | IntegerEntry(( | |
348 | + | func bi (bj,bk) = { | |
349 | + | let bl = value(indexOf(ba, bk)) | |
350 | + | let bm = bb[bl] | |
351 | + | IntegerEntry((bk + w), bm) :: bj | |
296 | 352 | } | |
297 | 353 | ||
298 | - | func | |
299 | - | let | |
300 | - | let | |
301 | - | IntegerEntry(( | |
354 | + | func bn (bj,bk) = { | |
355 | + | let bl = value(indexOf(bc, bk)) | |
356 | + | let bm = bd[bl] | |
357 | + | IntegerEntry((bk + v), bm) :: bj | |
302 | 358 | } | |
303 | 359 | ||
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | if (( | |
309 | - | then | |
360 | + | let bo = { | |
361 | + | let bp = bb | |
362 | + | let bq = size(bp) | |
363 | + | let br = 0 | |
364 | + | if ((bq == 0)) | |
365 | + | then br | |
310 | 366 | else { | |
311 | - | let | |
312 | - | if (( | |
313 | - | then | |
367 | + | let bs = bf(br, bp[0]) | |
368 | + | if ((bq == 1)) | |
369 | + | then bs | |
314 | 370 | else { | |
315 | - | let | |
316 | - | if (( | |
317 | - | then | |
371 | + | let bt = bf(bs, bp[1]) | |
372 | + | if ((bq == 2)) | |
373 | + | then bt | |
318 | 374 | else { | |
319 | - | let | |
320 | - | if (( | |
321 | - | then | |
375 | + | let bu = bf(bt, bp[2]) | |
376 | + | if ((bq == 3)) | |
377 | + | then bu | |
322 | 378 | else { | |
323 | - | let | |
324 | - | if (( | |
325 | - | then | |
379 | + | let bv = bf(bu, bp[3]) | |
380 | + | if ((bq == 4)) | |
381 | + | then bv | |
326 | 382 | else { | |
327 | - | let | |
328 | - | if (( | |
329 | - | then | |
383 | + | let bw = bf(bv, bp[4]) | |
384 | + | if ((bq == 5)) | |
385 | + | then bw | |
330 | 386 | else { | |
331 | - | let | |
332 | - | if (( | |
333 | - | then | |
387 | + | let bx = bf(bw, bp[5]) | |
388 | + | if ((bq == 6)) | |
389 | + | then bx | |
334 | 390 | else { | |
335 | - | let | |
336 | - | if (( | |
337 | - | then | |
391 | + | let by = bf(bx, bp[6]) | |
392 | + | if ((bq == 7)) | |
393 | + | then by | |
338 | 394 | else { | |
339 | - | let | |
340 | - | if (( | |
341 | - | then | |
395 | + | let bz = bf(by, bp[7]) | |
396 | + | if ((bq == 8)) | |
397 | + | then bz | |
342 | 398 | else { | |
343 | - | let | |
344 | - | if (( | |
345 | - | then | |
399 | + | let bA = bf(bz, bp[8]) | |
400 | + | if ((bq == 9)) | |
401 | + | then bA | |
346 | 402 | else { | |
347 | - | let | |
348 | - | if (( | |
349 | - | then | |
403 | + | let bB = bf(bA, bp[9]) | |
404 | + | if ((bq == 10)) | |
405 | + | then bB | |
350 | 406 | else { | |
351 | - | let | |
352 | - | if (( | |
353 | - | then | |
407 | + | let bC = bf(bB, bp[10]) | |
408 | + | if ((bq == 11)) | |
409 | + | then bC | |
354 | 410 | else { | |
355 | - | let | |
356 | - | if (( | |
357 | - | then | |
411 | + | let bD = bf(bC, bp[11]) | |
412 | + | if ((bq == 12)) | |
413 | + | then bD | |
358 | 414 | else { | |
359 | - | let | |
360 | - | if (( | |
361 | - | then | |
415 | + | let bE = bf(bD, bp[12]) | |
416 | + | if ((bq == 13)) | |
417 | + | then bE | |
362 | 418 | else { | |
363 | - | let | |
364 | - | if (( | |
365 | - | then | |
419 | + | let bF = bf(bE, bp[13]) | |
420 | + | if ((bq == 14)) | |
421 | + | then bF | |
366 | 422 | else { | |
367 | - | let | |
368 | - | if (( | |
369 | - | then | |
423 | + | let bG = bf(bF, bp[14]) | |
424 | + | if ((bq == 15)) | |
425 | + | then bG | |
370 | 426 | else { | |
371 | - | let | |
372 | - | if (( | |
373 | - | then | |
427 | + | let bH = bf(bG, bp[15]) | |
428 | + | if ((bq == 16)) | |
429 | + | then bH | |
374 | 430 | else { | |
375 | - | let | |
376 | - | if (( | |
377 | - | then | |
431 | + | let bI = bf(bH, bp[16]) | |
432 | + | if ((bq == 17)) | |
433 | + | then bI | |
378 | 434 | else { | |
379 | - | let | |
380 | - | if (( | |
381 | - | then | |
435 | + | let bJ = bf(bI, bp[17]) | |
436 | + | if ((bq == 18)) | |
437 | + | then bJ | |
382 | 438 | else { | |
383 | - | let | |
384 | - | if (( | |
385 | - | then | |
439 | + | let bK = bf(bJ, bp[18]) | |
440 | + | if ((bq == 19)) | |
441 | + | then bK | |
386 | 442 | else { | |
387 | - | let | |
388 | - | if (( | |
389 | - | then | |
443 | + | let bL = bf(bK, bp[19]) | |
444 | + | if ((bq == 20)) | |
445 | + | then bL | |
390 | 446 | else { | |
391 | - | let | |
447 | + | let bM = bf(bL, bp[20]) | |
392 | 448 | throw("List size exceed 20") | |
393 | 449 | } | |
394 | 450 | } | |
412 | 468 | } | |
413 | 469 | } | |
414 | 470 | } | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | if (( | |
420 | - | then | |
471 | + | let bN = { | |
472 | + | let bO = bd | |
473 | + | let bP = size(bO) | |
474 | + | let bQ = 0 | |
475 | + | if ((bP == 0)) | |
476 | + | then bQ | |
421 | 477 | else { | |
422 | - | let | |
423 | - | if (( | |
424 | - | then | |
478 | + | let bR = bf(bQ, bO[0]) | |
479 | + | if ((bP == 1)) | |
480 | + | then bR | |
425 | 481 | else { | |
426 | - | let | |
427 | - | if (( | |
428 | - | then | |
482 | + | let bS = bf(bR, bO[1]) | |
483 | + | if ((bP == 2)) | |
484 | + | then bS | |
429 | 485 | else { | |
430 | - | let | |
431 | - | if (( | |
432 | - | then | |
486 | + | let bT = bf(bS, bO[2]) | |
487 | + | if ((bP == 3)) | |
488 | + | then bT | |
433 | 489 | else { | |
434 | - | let | |
435 | - | if (( | |
436 | - | then | |
490 | + | let bU = bf(bT, bO[3]) | |
491 | + | if ((bP == 4)) | |
492 | + | then bU | |
437 | 493 | else { | |
438 | - | let | |
439 | - | if (( | |
440 | - | then | |
494 | + | let bV = bf(bU, bO[4]) | |
495 | + | if ((bP == 5)) | |
496 | + | then bV | |
441 | 497 | else { | |
442 | - | let | |
443 | - | if (( | |
444 | - | then | |
498 | + | let bW = bf(bV, bO[5]) | |
499 | + | if ((bP == 6)) | |
500 | + | then bW | |
445 | 501 | else { | |
446 | - | let | |
447 | - | if (( | |
448 | - | then | |
502 | + | let bX = bf(bW, bO[6]) | |
503 | + | if ((bP == 7)) | |
504 | + | then bX | |
449 | 505 | else { | |
450 | - | let | |
451 | - | if (( | |
452 | - | then | |
506 | + | let bY = bf(bX, bO[7]) | |
507 | + | if ((bP == 8)) | |
508 | + | then bY | |
453 | 509 | else { | |
454 | - | let | |
455 | - | if (( | |
456 | - | then | |
510 | + | let bZ = bf(bY, bO[8]) | |
511 | + | if ((bP == 9)) | |
512 | + | then bZ | |
457 | 513 | else { | |
458 | - | let | |
459 | - | if (( | |
460 | - | then | |
514 | + | let ca = bf(bZ, bO[9]) | |
515 | + | if ((bP == 10)) | |
516 | + | then ca | |
461 | 517 | else { | |
462 | - | let | |
463 | - | if (( | |
464 | - | then | |
518 | + | let cb = bf(ca, bO[10]) | |
519 | + | if ((bP == 11)) | |
520 | + | then cb | |
465 | 521 | else { | |
466 | - | let | |
467 | - | if (( | |
468 | - | then | |
522 | + | let cc = bf(cb, bO[11]) | |
523 | + | if ((bP == 12)) | |
524 | + | then cc | |
469 | 525 | else { | |
470 | - | let | |
471 | - | if (( | |
472 | - | then | |
526 | + | let cd = bf(cc, bO[12]) | |
527 | + | if ((bP == 13)) | |
528 | + | then cd | |
473 | 529 | else { | |
474 | - | let | |
475 | - | if (( | |
476 | - | then | |
530 | + | let ce = bf(cd, bO[13]) | |
531 | + | if ((bP == 14)) | |
532 | + | then ce | |
477 | 533 | else { | |
478 | - | let | |
479 | - | if (( | |
480 | - | then | |
534 | + | let cf = bf(ce, bO[14]) | |
535 | + | if ((bP == 15)) | |
536 | + | then cf | |
481 | 537 | else { | |
482 | - | let | |
483 | - | if (( | |
484 | - | then | |
538 | + | let cg = bf(cf, bO[15]) | |
539 | + | if ((bP == 16)) | |
540 | + | then cg | |
485 | 541 | else { | |
486 | - | let | |
487 | - | if (( | |
488 | - | then | |
542 | + | let ch = bf(cg, bO[16]) | |
543 | + | if ((bP == 17)) | |
544 | + | then ch | |
489 | 545 | else { | |
490 | - | let | |
491 | - | if (( | |
492 | - | then | |
546 | + | let ci = bf(ch, bO[17]) | |
547 | + | if ((bP == 18)) | |
548 | + | then ci | |
493 | 549 | else { | |
494 | - | let | |
495 | - | if (( | |
496 | - | then | |
550 | + | let cj = bf(ci, bO[18]) | |
551 | + | if ((bP == 19)) | |
552 | + | then cj | |
497 | 553 | else { | |
498 | - | let | |
499 | - | if (( | |
500 | - | then | |
554 | + | let ck = bf(cj, bO[19]) | |
555 | + | if ((bP == 20)) | |
556 | + | then ck | |
501 | 557 | else { | |
502 | - | let | |
558 | + | let cl = bf(ck, bO[20]) | |
503 | 559 | throw("List size exceed 20") | |
504 | 560 | } | |
505 | 561 | } | |
523 | 579 | } | |
524 | 580 | } | |
525 | 581 | } | |
526 | - | if ((height > | |
582 | + | if ((height > be)) | |
527 | 583 | then throw("rewardUpdateHeight < height") | |
528 | - | else if (if (( | |
584 | + | else if (if ((bo != G)) | |
529 | 585 | then true | |
530 | - | else ( | |
586 | + | else (bN != G)) | |
531 | 587 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
532 | 588 | else { | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | if (( | |
538 | - | then | |
589 | + | let cm = { | |
590 | + | let cn = ba | |
591 | + | let co = size(cn) | |
592 | + | let cp = nil | |
593 | + | if ((co == 0)) | |
594 | + | then cp | |
539 | 595 | else { | |
540 | - | let | |
541 | - | if (( | |
542 | - | then | |
596 | + | let cq = bi(cp, cn[0]) | |
597 | + | if ((co == 1)) | |
598 | + | then cq | |
543 | 599 | else { | |
544 | - | let | |
545 | - | if (( | |
546 | - | then | |
600 | + | let cr = bi(cq, cn[1]) | |
601 | + | if ((co == 2)) | |
602 | + | then cr | |
547 | 603 | else { | |
548 | - | let | |
549 | - | if (( | |
550 | - | then | |
604 | + | let cs = bi(cr, cn[2]) | |
605 | + | if ((co == 3)) | |
606 | + | then cs | |
551 | 607 | else { | |
552 | - | let | |
553 | - | if (( | |
554 | - | then | |
608 | + | let ct = bi(cs, cn[3]) | |
609 | + | if ((co == 4)) | |
610 | + | then ct | |
555 | 611 | else { | |
556 | - | let | |
557 | - | if (( | |
558 | - | then | |
612 | + | let cu = bi(ct, cn[4]) | |
613 | + | if ((co == 5)) | |
614 | + | then cu | |
559 | 615 | else { | |
560 | - | let | |
561 | - | if (( | |
562 | - | then | |
616 | + | let cv = bi(cu, cn[5]) | |
617 | + | if ((co == 6)) | |
618 | + | then cv | |
563 | 619 | else { | |
564 | - | let | |
565 | - | if (( | |
566 | - | then | |
620 | + | let cw = bi(cv, cn[6]) | |
621 | + | if ((co == 7)) | |
622 | + | then cw | |
567 | 623 | else { | |
568 | - | let | |
569 | - | if (( | |
570 | - | then | |
624 | + | let cx = bi(cw, cn[7]) | |
625 | + | if ((co == 8)) | |
626 | + | then cx | |
571 | 627 | else { | |
572 | - | let | |
573 | - | if (( | |
574 | - | then | |
628 | + | let cy = bi(cx, cn[8]) | |
629 | + | if ((co == 9)) | |
630 | + | then cy | |
575 | 631 | else { | |
576 | - | let | |
577 | - | if (( | |
578 | - | then | |
632 | + | let cz = bi(cy, cn[9]) | |
633 | + | if ((co == 10)) | |
634 | + | then cz | |
579 | 635 | else { | |
580 | - | let | |
581 | - | if (( | |
582 | - | then | |
636 | + | let cA = bi(cz, cn[10]) | |
637 | + | if ((co == 11)) | |
638 | + | then cA | |
583 | 639 | else { | |
584 | - | let | |
585 | - | if (( | |
586 | - | then | |
640 | + | let cB = bi(cA, cn[11]) | |
641 | + | if ((co == 12)) | |
642 | + | then cB | |
587 | 643 | else { | |
588 | - | let | |
589 | - | if (( | |
590 | - | then | |
644 | + | let cC = bi(cB, cn[12]) | |
645 | + | if ((co == 13)) | |
646 | + | then cC | |
591 | 647 | else { | |
592 | - | let | |
593 | - | if (( | |
594 | - | then | |
648 | + | let cD = bi(cC, cn[13]) | |
649 | + | if ((co == 14)) | |
650 | + | then cD | |
595 | 651 | else { | |
596 | - | let | |
597 | - | if (( | |
598 | - | then | |
652 | + | let cE = bi(cD, cn[14]) | |
653 | + | if ((co == 15)) | |
654 | + | then cE | |
599 | 655 | else { | |
600 | - | let | |
601 | - | if (( | |
602 | - | then | |
656 | + | let cF = bi(cE, cn[15]) | |
657 | + | if ((co == 16)) | |
658 | + | then cF | |
603 | 659 | else { | |
604 | - | let | |
605 | - | if (( | |
606 | - | then | |
660 | + | let cG = bi(cF, cn[16]) | |
661 | + | if ((co == 17)) | |
662 | + | then cG | |
607 | 663 | else { | |
608 | - | let | |
609 | - | if (( | |
610 | - | then | |
664 | + | let cH = bi(cG, cn[17]) | |
665 | + | if ((co == 18)) | |
666 | + | then cH | |
611 | 667 | else { | |
612 | - | let | |
613 | - | if (( | |
614 | - | then | |
668 | + | let cI = bi(cH, cn[18]) | |
669 | + | if ((co == 19)) | |
670 | + | then cI | |
615 | 671 | else { | |
616 | - | let | |
617 | - | if (( | |
618 | - | then | |
672 | + | let cJ = bi(cI, cn[19]) | |
673 | + | if ((co == 20)) | |
674 | + | then cJ | |
619 | 675 | else { | |
620 | - | let | |
676 | + | let cK = bi(cJ, cn[20]) | |
621 | 677 | throw("List size exceed 20") | |
622 | 678 | } | |
623 | 679 | } | |
641 | 697 | } | |
642 | 698 | } | |
643 | 699 | } | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | if (( | |
649 | - | then | |
700 | + | let cL = { | |
701 | + | let cM = bc | |
702 | + | let cN = size(cM) | |
703 | + | let cO = nil | |
704 | + | if ((cN == 0)) | |
705 | + | then cO | |
650 | 706 | else { | |
651 | - | let | |
652 | - | if (( | |
653 | - | then | |
707 | + | let cP = bn(cO, cM[0]) | |
708 | + | if ((cN == 1)) | |
709 | + | then cP | |
654 | 710 | else { | |
655 | - | let | |
656 | - | if (( | |
657 | - | then | |
711 | + | let cQ = bn(cP, cM[1]) | |
712 | + | if ((cN == 2)) | |
713 | + | then cQ | |
658 | 714 | else { | |
659 | - | let | |
660 | - | if (( | |
661 | - | then | |
715 | + | let cR = bn(cQ, cM[2]) | |
716 | + | if ((cN == 3)) | |
717 | + | then cR | |
662 | 718 | else { | |
663 | - | let | |
664 | - | if (( | |
665 | - | then | |
719 | + | let cS = bn(cR, cM[3]) | |
720 | + | if ((cN == 4)) | |
721 | + | then cS | |
666 | 722 | else { | |
667 | - | let | |
668 | - | if (( | |
669 | - | then | |
723 | + | let cT = bn(cS, cM[4]) | |
724 | + | if ((cN == 5)) | |
725 | + | then cT | |
670 | 726 | else { | |
671 | - | let | |
672 | - | if (( | |
673 | - | then | |
727 | + | let cU = bn(cT, cM[5]) | |
728 | + | if ((cN == 6)) | |
729 | + | then cU | |
674 | 730 | else { | |
675 | - | let | |
676 | - | if (( | |
677 | - | then | |
731 | + | let cV = bn(cU, cM[6]) | |
732 | + | if ((cN == 7)) | |
733 | + | then cV | |
678 | 734 | else { | |
679 | - | let | |
680 | - | if (( | |
681 | - | then | |
735 | + | let cW = bn(cV, cM[7]) | |
736 | + | if ((cN == 8)) | |
737 | + | then cW | |
682 | 738 | else { | |
683 | - | let | |
684 | - | if (( | |
685 | - | then | |
739 | + | let cX = bn(cW, cM[8]) | |
740 | + | if ((cN == 9)) | |
741 | + | then cX | |
686 | 742 | else { | |
687 | - | let | |
688 | - | if (( | |
689 | - | then | |
743 | + | let cY = bn(cX, cM[9]) | |
744 | + | if ((cN == 10)) | |
745 | + | then cY | |
690 | 746 | else { | |
691 | - | let | |
692 | - | if (( | |
693 | - | then | |
747 | + | let cZ = bn(cY, cM[10]) | |
748 | + | if ((cN == 11)) | |
749 | + | then cZ | |
694 | 750 | else { | |
695 | - | let | |
696 | - | if (( | |
697 | - | then | |
751 | + | let da = bn(cZ, cM[11]) | |
752 | + | if ((cN == 12)) | |
753 | + | then da | |
698 | 754 | else { | |
699 | - | let | |
700 | - | if (( | |
701 | - | then | |
755 | + | let db = bn(da, cM[12]) | |
756 | + | if ((cN == 13)) | |
757 | + | then db | |
702 | 758 | else { | |
703 | - | let | |
704 | - | if (( | |
705 | - | then | |
759 | + | let dc = bn(db, cM[13]) | |
760 | + | if ((cN == 14)) | |
761 | + | then dc | |
706 | 762 | else { | |
707 | - | let | |
708 | - | if (( | |
709 | - | then | |
763 | + | let dd = bn(dc, cM[14]) | |
764 | + | if ((cN == 15)) | |
765 | + | then dd | |
710 | 766 | else { | |
711 | - | let | |
712 | - | if (( | |
713 | - | then | |
767 | + | let de = bn(dd, cM[15]) | |
768 | + | if ((cN == 16)) | |
769 | + | then de | |
714 | 770 | else { | |
715 | - | let | |
716 | - | if (( | |
717 | - | then | |
771 | + | let df = bn(de, cM[16]) | |
772 | + | if ((cN == 17)) | |
773 | + | then df | |
718 | 774 | else { | |
719 | - | let | |
720 | - | if (( | |
721 | - | then | |
775 | + | let dg = bn(df, cM[17]) | |
776 | + | if ((cN == 18)) | |
777 | + | then dg | |
722 | 778 | else { | |
723 | - | let | |
724 | - | if (( | |
725 | - | then | |
779 | + | let dh = bn(dg, cM[18]) | |
780 | + | if ((cN == 19)) | |
781 | + | then dh | |
726 | 782 | else { | |
727 | - | let | |
728 | - | if (( | |
729 | - | then | |
783 | + | let di = bn(dh, cM[19]) | |
784 | + | if ((cN == 20)) | |
785 | + | then di | |
730 | 786 | else { | |
731 | - | let | |
787 | + | let dj = bn(di, cM[20]) | |
732 | 788 | throw("List size exceed 20") | |
733 | 789 | } | |
734 | 790 | } | |
752 | 808 | } | |
753 | 809 | } | |
754 | 810 | } | |
755 | - | (( | |
811 | + | ((cm ++ cL) ++ [IntegerEntry(z, be)]) | |
756 | 812 | } | |
757 | 813 | } | |
758 | 814 | ||
759 | 815 | ||
760 | 816 | ||
761 | - | @Callable( | |
817 | + | @Callable(aG) | |
762 | 818 | func shutdown () = if (!(A)) | |
763 | 819 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, g), "the cause wasn't specified"))) | |
764 | - | else if (!(containsElement([a, b, c, d], | |
820 | + | else if (!(containsElement([a, b, c, d], aG.callerPublicKey))) | |
765 | 821 | then throw("Only admin can call this function") | |
766 | - | else | |
822 | + | else P("Paused by admin") | |
767 | 823 | ||
768 | 824 | ||
769 | 825 | ||
770 | - | @Callable( | |
826 | + | @Callable(aG) | |
771 | 827 | func activate () = if (A) | |
772 | 828 | then throw("DApp is already active") | |
773 | - | else if (!(containsElement([a, b, c, d], | |
829 | + | else if (!(containsElement([a, b, c, d], aG.callerPublicKey))) | |
774 | 830 | then throw("Only admin can call this function") | |
775 | 831 | else [BooleanEntry(f, true), DeleteEntry(g)] | |
776 | 832 | ||
777 | 833 | ||
778 | - | @Verifier( | |
779 | - | func | |
834 | + | @Verifier(dk) | |
835 | + | func dl () = sigVerify(dk.bodyBytes, dk.proofs[0], dk.senderPublicKey) | |
780 | 836 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | 6 | let b = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | 8 | let c = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let d = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
11 | 11 | ||
12 | 12 | let e = base58'5CqqMkmtXXt35KRH9LdWA3ap6TffPvTT5SHQzYrVFbBw' | |
13 | 13 | ||
14 | 14 | let f = "active" | |
15 | 15 | ||
16 | 16 | let g = "shutdown_cause" | |
17 | 17 | ||
18 | 18 | let h = "last_interest" | |
19 | 19 | ||
20 | 20 | let i = "_last_interest" | |
21 | 21 | ||
22 | 22 | let j = "_SWOP_amount" | |
23 | 23 | ||
24 | 24 | let k = "_getBackHeight" | |
25 | 25 | ||
26 | 26 | let l = "total_SWOP_amount" | |
27 | 27 | ||
28 | 28 | let m = "_user_total_SWOP_vote" | |
29 | 29 | ||
30 | 30 | let n = "_SWOP_option_amount" | |
31 | 31 | ||
32 | 32 | let o = "total_SWOP_option_amount" | |
33 | 33 | ||
34 | 34 | let p = "_SWOP_claimed_amount" | |
35 | 35 | ||
36 | 36 | let q = "_SWOP_last_claimed_amount" | |
37 | 37 | ||
38 | 38 | let r = "vote_name" | |
39 | 39 | ||
40 | 40 | let s = "_option_name" | |
41 | 41 | ||
42 | 42 | let t = "_startHeight" | |
43 | 43 | ||
44 | 44 | let u = "_vote_duration" | |
45 | 45 | ||
46 | 46 | let v = "_current_pool_fraction_reward" | |
47 | 47 | ||
48 | 48 | let w = "_previous_pool_fraction_reward" | |
49 | 49 | ||
50 | 50 | let x = "total_reward_per_block_current" | |
51 | 51 | ||
52 | 52 | let y = "total_reward_per_block_previous" | |
53 | 53 | ||
54 | 54 | let z = "reward_update_height" | |
55 | 55 | ||
56 | 56 | let A = valueOrElse(getBoolean(this, f), true) | |
57 | 57 | ||
58 | 58 | let B = Address(base58'3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC') | |
59 | 59 | ||
60 | 60 | let C = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
61 | 61 | ||
62 | 62 | let D = "SWOP_id" | |
63 | 63 | ||
64 | 64 | let E = fromBase58String(getStringValue(B, D)) | |
65 | 65 | ||
66 | 66 | let F = 100000000 | |
67 | 67 | ||
68 | 68 | let G = 10000000000 | |
69 | 69 | ||
70 | - | func H (I) = [BooleanEntry(f, false), StringEntry(g, I)] | |
70 | + | let H = "start_height" | |
71 | + | ||
72 | + | let I = "base_period" | |
73 | + | ||
74 | + | let J = "period_length" | |
75 | + | ||
76 | + | let K = "_user_total_struc" | |
77 | + | ||
78 | + | let L = valueOrErrorMessage(getInteger(C, I), "Empty kBasePeriod at voting contract") | |
79 | + | ||
80 | + | let M = valueOrErrorMessage(getInteger(C, H), "Empty kStartHeight at voting contract") | |
81 | + | ||
82 | + | let N = valueOrErrorMessage(getInteger(C, J), "Empty kPeriodLength at voting contract") | |
83 | + | ||
84 | + | let O = (L + ((height - M) / N)) | |
85 | + | ||
86 | + | func P (Q) = [BooleanEntry(f, false), StringEntry(g, Q)] | |
71 | 87 | ||
72 | 88 | ||
73 | - | func | |
89 | + | func R () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount") | |
74 | 90 | ||
75 | 91 | ||
76 | - | func | |
77 | - | let | |
78 | - | | |
92 | + | func S () = { | |
93 | + | let T = valueOrElse(getInteger(this, h), 0) | |
94 | + | T | |
79 | 95 | } | |
80 | 96 | ||
81 | 97 | ||
82 | - | func | |
98 | + | func U (V) = valueOrElse(getInteger(this, (toString(V) + j)), 0) | |
83 | 99 | ||
84 | 100 | ||
85 | - | func | |
101 | + | func W (V) = valueOrElse(getInteger(this, (toString(V) + p)), 0) | |
86 | 102 | ||
87 | 103 | ||
88 | - | func | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | let | |
93 | - | if ($isInstanceOf( | |
104 | + | func X (V,T) = { | |
105 | + | let Y = U(V) | |
106 | + | let Z = getInteger(this, (toString(V) + i)) | |
107 | + | let aa = { | |
108 | + | let ab = Z | |
109 | + | if ($isInstanceOf(ab, "Int")) | |
94 | 110 | then { | |
95 | - | let | |
96 | - | | |
111 | + | let Z = ab | |
112 | + | Z | |
97 | 113 | } | |
98 | - | else | |
114 | + | else T | |
99 | 115 | } | |
100 | - | $Tuple2( | |
116 | + | $Tuple2(aa, Y) | |
101 | 117 | } | |
102 | 118 | ||
103 | 119 | ||
104 | - | func | |
120 | + | func ac () = valueOrElse(getInteger(this, l), 0) | |
105 | 121 | ||
106 | 122 | ||
107 | - | func V (N) = valueOrElse(getInteger(C, (toString(N) + m)), 0) | |
123 | + | func ad (V) = { | |
124 | + | let ae = if (isDefined(getString(this, (toString(V) + K)))) | |
125 | + | then { | |
126 | + | let af = split(valueOrErrorMessage(getString(C, (toString(V) + K)), "Empty kUserTotalStruc"), "_") | |
127 | + | $Tuple3(parseIntValue(af[0]), parseIntValue(af[1]), parseIntValue(af[2])) | |
128 | + | } | |
129 | + | else { | |
130 | + | let ag = valueOrElse(getInteger(C, (toString(V) + m)), 0) | |
131 | + | $Tuple3(ag, 0, O) | |
132 | + | } | |
133 | + | let ah = ae._1 | |
134 | + | let ai = ae._2 | |
135 | + | let aj = ae._3 | |
136 | + | if ((aj == O)) | |
137 | + | then ai | |
138 | + | else 0 | |
139 | + | } | |
108 | 140 | ||
109 | 141 | ||
110 | - | func | |
142 | + | func ak (V) = valueOrElse(getInteger(this, (toString(V) + n)), 0) | |
111 | 143 | ||
112 | 144 | ||
113 | - | func | |
145 | + | func al (am) = valueOrElse(getInteger(this, (am + t)), 0) | |
114 | 146 | ||
115 | 147 | ||
116 | - | func | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | if ($isInstanceOf( | |
148 | + | func an (V,am,ao) = { | |
149 | + | let ap = getInteger(this, (((am + ao) + toString(V)) + n)) | |
150 | + | let aq = { | |
151 | + | let ab = ap | |
152 | + | if ($isInstanceOf(ab, "Int")) | |
121 | 153 | then { | |
122 | - | let | |
123 | - | | |
154 | + | let aq = ab | |
155 | + | aq | |
124 | 156 | } | |
125 | - | else if ($isInstanceOf( | |
157 | + | else if ($isInstanceOf(ab, "Unit")) | |
126 | 158 | then { | |
127 | - | let | |
159 | + | let aq = ab | |
128 | 160 | 0 | |
129 | 161 | } | |
130 | 162 | else throw("Match error") | |
131 | 163 | } | |
132 | - | valueOrErrorMessage( | |
164 | + | valueOrErrorMessage(aq, (((("No data on the key: " + am) + ao) + toString(V)) + n)) | |
133 | 165 | } | |
134 | 166 | ||
135 | 167 | ||
136 | - | func | |
168 | + | func ar (am) = valueOrErrorMessage(getInteger(this, (am + u)), (("No data on the key: " + am) + u)) | |
137 | 169 | ||
138 | 170 | ||
139 | - | func | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | if ($isInstanceOf( | |
171 | + | func as (am,ao) = { | |
172 | + | let at = getInteger(this, ((am + ao) + o)) | |
173 | + | let au = { | |
174 | + | let ab = at | |
175 | + | if ($isInstanceOf(ab, "Int")) | |
144 | 176 | then { | |
145 | - | let | |
146 | - | | |
177 | + | let au = ab | |
178 | + | au | |
147 | 179 | } | |
148 | - | else if ($isInstanceOf( | |
180 | + | else if ($isInstanceOf(ab, "Unit")) | |
149 | 181 | then { | |
150 | - | let | |
182 | + | let au = ab | |
151 | 183 | 0 | |
152 | 184 | } | |
153 | 185 | else throw("Match error") | |
154 | 186 | } | |
155 | - | | |
187 | + | au | |
156 | 188 | } | |
157 | 189 | ||
158 | 190 | ||
159 | - | func ah (Y,aa,N,ai) = { | |
160 | - | let aj = ((((((Y + "_") + aa) + "_") + toString(N)) + "_") + toString(ai)) | |
161 | - | valueOrErrorMessage(getInteger(this, aj), ("No data on the key: " + aj)) | |
191 | + | func av (V) = { | |
192 | + | let aw = if (isDefined(getString(this, (toString(V) + K)))) | |
193 | + | then { | |
194 | + | let af = split(valueOrErrorMessage(getString(this, (toString(V) + K)), "Empty kUserTotalStruc"), "_") | |
195 | + | $Tuple3(parseIntValue(af[0]), parseIntValue(af[1]), parseIntValue(af[2])) | |
196 | + | } | |
197 | + | else { | |
198 | + | let ag = valueOrElse(getInteger(this, (toString(V) + m)), 0) | |
199 | + | $Tuple3(ag, 0, O) | |
200 | + | } | |
201 | + | let ah = aw._1 | |
202 | + | let ai = aw._2 | |
203 | + | let aj = aw._3 | |
204 | + | ah | |
162 | 205 | } | |
163 | 206 | ||
164 | 207 | ||
165 | - | func ak (al) = { | |
166 | - | let L = K() | |
167 | - | let am = P(al, L) | |
168 | - | let R = am._1 | |
169 | - | let an = am._2 | |
170 | - | let ao = fraction(an, (L - R), F) | |
171 | - | let ap = L | |
172 | - | $Tuple2(ap, ao) | |
208 | + | func ax (am,ao,V,ay) = { | |
209 | + | let az = ((((((am + "_") + ao) + "_") + toString(V)) + "_") + toString(ay)) | |
210 | + | valueOrErrorMessage(getInteger(this, az), ("No data on the key: " + az)) | |
173 | 211 | } | |
174 | 212 | ||
175 | 213 | ||
176 | - | @Callable(aq) | |
214 | + | func aA (aB) = { | |
215 | + | let T = S() | |
216 | + | let aC = X(aB, T) | |
217 | + | let Z = aC._1 | |
218 | + | let aD = aC._2 | |
219 | + | let aE = fraction(aD, (T - Z), F) | |
220 | + | let aF = T | |
221 | + | $Tuple2(aF, aE) | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | @Callable(aG) | |
177 | 226 | func airDrop () = if (!(A)) | |
178 | 227 | then throw("DApp is inactive at this moment") | |
179 | 228 | else { | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | if (( | |
229 | + | let aH = $Tuple2(aG.payments[0].amount, aG.payments[0].assetId) | |
230 | + | let aI = aH._1 | |
231 | + | let aJ = aH._2 | |
232 | + | if ((aJ != E)) | |
184 | 233 | then throw("Incorrect pmtAssetId") | |
185 | 234 | else { | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | [IntegerEntry(h, | |
235 | + | let aK = ac() | |
236 | + | let T = S() | |
237 | + | let aL = (T + fraction(aI, F, aK)) | |
238 | + | [IntegerEntry(h, aL)] | |
190 | 239 | } | |
191 | 240 | } | |
192 | 241 | ||
193 | 242 | ||
194 | 243 | ||
195 | - | @Callable( | |
244 | + | @Callable(aG) | |
196 | 245 | func lockSWOP () = if (!(A)) | |
197 | 246 | then throw("DApp is inactive at this moment") | |
198 | 247 | else { | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | if (( | |
248 | + | let aM = $Tuple2(aG.payments[0].amount, aG.payments[0].assetId) | |
249 | + | let aI = aM._1 | |
250 | + | let aJ = aM._2 | |
251 | + | if ((aJ != E)) | |
203 | 252 | then throw("Incorrect pmtAssetId") | |
204 | 253 | else { | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | [IntegerEntry((toString( | |
254 | + | let T = S() | |
255 | + | let aN = X(aG.caller, T) | |
256 | + | let Z = aN._1 | |
257 | + | let aD = aN._2 | |
258 | + | let aE = fraction(aD, (T - Z), F) | |
259 | + | let aO = ((aD + aI) + aE) | |
260 | + | let aF = T | |
261 | + | let aK = ac() | |
262 | + | let aP = ((aK + aI) + aE) | |
263 | + | let aQ = W(aG.caller) | |
264 | + | let aR = (aQ + aE) | |
265 | + | [IntegerEntry((toString(aG.caller) + i), aF), IntegerEntry((toString(aG.caller) + j), aO), IntegerEntry(l, aP), IntegerEntry((toString(aG.caller) + p), aR), IntegerEntry((toString(aG.caller) + q), aE)] | |
217 | 266 | } | |
218 | 267 | } | |
219 | 268 | ||
220 | 269 | ||
221 | 270 | ||
222 | - | @Callable( | |
223 | - | func withdrawSWOP ( | |
271 | + | @Callable(aG) | |
272 | + | func withdrawSWOP (aS) = if (!(A)) | |
224 | 273 | then throw("DApp is inactive at this moment") | |
225 | 274 | else { | |
226 | - | let au = U() | |
227 | - | let an = M(aq.caller) | |
228 | - | let aD = ak(aq.caller) | |
229 | - | let ap = aD._1 | |
230 | - | let ao = aD._2 | |
231 | - | let aE = V(aq.caller) | |
232 | - | let aF = (an - aE) | |
233 | - | if ((aC > aF)) | |
234 | - | then throw("withdrawAmount > availableFund") | |
275 | + | let aK = ac() | |
276 | + | let aD = U(aG.caller) | |
277 | + | let aT = aA(aG.caller) | |
278 | + | let aF = aT._1 | |
279 | + | let aE = aT._2 | |
280 | + | let aU = av(aG.caller) | |
281 | + | let aV = ad(aG.caller) | |
282 | + | if (if ((0 > aV)) | |
283 | + | then true | |
284 | + | else (0 > aU)) | |
285 | + | then throw("userUnvoteAmount < 0 || userVoteAmount < 0") | |
235 | 286 | else { | |
236 | - | let az = ((au + ao) - aC) | |
237 | - | let aG = ((an + ao) - aC) | |
238 | - | let aA = O(aq.caller) | |
239 | - | let aB = (aA + ao) | |
240 | - | [IntegerEntry((toString(aq.caller) + i), ap), IntegerEntry((toString(aq.caller) + j), aG), IntegerEntry(l, az), ScriptTransfer(aq.caller, aC, E), IntegerEntry((toString(aq.caller) + p), aB), IntegerEntry((toString(aq.caller) + q), ao)] | |
287 | + | let aW = ((aD - aU) - aV) | |
288 | + | if ((aS > aW)) | |
289 | + | then throw("withdrawAmount > availableToUnstake") | |
290 | + | else { | |
291 | + | let aP = ((aK + aE) - aS) | |
292 | + | let aX = ((aD + aE) - aS) | |
293 | + | let aQ = W(aG.caller) | |
294 | + | let aR = (aQ + aE) | |
295 | + | [IntegerEntry((toString(aG.caller) + i), aF), IntegerEntry((toString(aG.caller) + j), aX), IntegerEntry(l, aP), ScriptTransfer(aG.caller, aS, E), IntegerEntry((toString(aG.caller) + p), aR), IntegerEntry((toString(aG.caller) + q), aE)] | |
296 | + | } | |
241 | 297 | } | |
242 | 298 | } | |
243 | 299 | ||
244 | 300 | ||
245 | 301 | ||
246 | - | @Callable( | |
302 | + | @Callable(aG) | |
247 | 303 | func claimAndWithdrawSWOP () = if (!(A)) | |
248 | 304 | then throw("DApp is inactive at this moment") | |
249 | 305 | else { | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | if (( | |
306 | + | let T = S() | |
307 | + | let aY = aA(aG.caller) | |
308 | + | let aF = aY._1 | |
309 | + | let aE = aY._2 | |
310 | + | let aQ = W(aG.caller) | |
311 | + | let aR = (aQ + aE) | |
312 | + | if ((aE == 0)) | |
257 | 313 | then throw("You have 0 available SWOP") | |
258 | - | else [IntegerEntry((toString( | |
314 | + | else [IntegerEntry((toString(aG.caller) + i), aF), IntegerEntry((toString(aG.caller) + p), aR), IntegerEntry((toString(aG.caller) + q), aE), ScriptTransfer(aG.caller, aE, E)] | |
259 | 315 | } | |
260 | 316 | ||
261 | 317 | ||
262 | 318 | ||
263 | - | @Callable( | |
319 | + | @Callable(aG) | |
264 | 320 | func claimAndStakeSWOP () = if (!(A)) | |
265 | 321 | then throw("DApp is inactive at this moment") | |
266 | 322 | else { | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | if (( | |
323 | + | let aK = ac() | |
324 | + | let aD = U(aG.caller) | |
325 | + | let T = S() | |
326 | + | let aZ = aA(aG.caller) | |
327 | + | let aF = aZ._1 | |
328 | + | let aE = aZ._2 | |
329 | + | let aO = (aD + aE) | |
330 | + | let aP = (aK + aE) | |
331 | + | let aQ = W(aG.caller) | |
332 | + | let aR = (aQ + aE) | |
333 | + | if ((aE == 0)) | |
278 | 334 | then throw("You have 0 available SWOP") | |
279 | - | else [IntegerEntry((toString( | |
335 | + | else [IntegerEntry((toString(aG.caller) + i), aF), IntegerEntry(l, aP), IntegerEntry((toString(aG.caller) + j), aO), IntegerEntry((toString(aG.caller) + p), aR), IntegerEntry((toString(aG.caller) + q), aE)] | |
280 | 336 | } | |
281 | 337 | ||
282 | 338 | ||
283 | 339 | ||
284 | - | @Callable( | |
285 | - | func updateWeights ( | |
340 | + | @Callable(aG) | |
341 | + | func updateWeights (ba,bb,bc,bd,be) = if (!(A)) | |
286 | 342 | then throw("DApp is inactive at this moment") | |
287 | - | else if (!(containsElement([a, b, c, d | |
343 | + | else if (!(containsElement([a, b, c, d], aG.callerPublicKey))) | |
288 | 344 | then throw("Only admin can call this function") | |
289 | 345 | else { | |
290 | - | func | |
346 | + | func bf (bg,bh) = (bg + bh) | |
291 | 347 | ||
292 | - | func | |
293 | - | let | |
294 | - | let | |
295 | - | IntegerEntry(( | |
348 | + | func bi (bj,bk) = { | |
349 | + | let bl = value(indexOf(ba, bk)) | |
350 | + | let bm = bb[bl] | |
351 | + | IntegerEntry((bk + w), bm) :: bj | |
296 | 352 | } | |
297 | 353 | ||
298 | - | func | |
299 | - | let | |
300 | - | let | |
301 | - | IntegerEntry(( | |
354 | + | func bn (bj,bk) = { | |
355 | + | let bl = value(indexOf(bc, bk)) | |
356 | + | let bm = bd[bl] | |
357 | + | IntegerEntry((bk + v), bm) :: bj | |
302 | 358 | } | |
303 | 359 | ||
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | if (( | |
309 | - | then | |
360 | + | let bo = { | |
361 | + | let bp = bb | |
362 | + | let bq = size(bp) | |
363 | + | let br = 0 | |
364 | + | if ((bq == 0)) | |
365 | + | then br | |
310 | 366 | else { | |
311 | - | let | |
312 | - | if (( | |
313 | - | then | |
367 | + | let bs = bf(br, bp[0]) | |
368 | + | if ((bq == 1)) | |
369 | + | then bs | |
314 | 370 | else { | |
315 | - | let | |
316 | - | if (( | |
317 | - | then | |
371 | + | let bt = bf(bs, bp[1]) | |
372 | + | if ((bq == 2)) | |
373 | + | then bt | |
318 | 374 | else { | |
319 | - | let | |
320 | - | if (( | |
321 | - | then | |
375 | + | let bu = bf(bt, bp[2]) | |
376 | + | if ((bq == 3)) | |
377 | + | then bu | |
322 | 378 | else { | |
323 | - | let | |
324 | - | if (( | |
325 | - | then | |
379 | + | let bv = bf(bu, bp[3]) | |
380 | + | if ((bq == 4)) | |
381 | + | then bv | |
326 | 382 | else { | |
327 | - | let | |
328 | - | if (( | |
329 | - | then | |
383 | + | let bw = bf(bv, bp[4]) | |
384 | + | if ((bq == 5)) | |
385 | + | then bw | |
330 | 386 | else { | |
331 | - | let | |
332 | - | if (( | |
333 | - | then | |
387 | + | let bx = bf(bw, bp[5]) | |
388 | + | if ((bq == 6)) | |
389 | + | then bx | |
334 | 390 | else { | |
335 | - | let | |
336 | - | if (( | |
337 | - | then | |
391 | + | let by = bf(bx, bp[6]) | |
392 | + | if ((bq == 7)) | |
393 | + | then by | |
338 | 394 | else { | |
339 | - | let | |
340 | - | if (( | |
341 | - | then | |
395 | + | let bz = bf(by, bp[7]) | |
396 | + | if ((bq == 8)) | |
397 | + | then bz | |
342 | 398 | else { | |
343 | - | let | |
344 | - | if (( | |
345 | - | then | |
399 | + | let bA = bf(bz, bp[8]) | |
400 | + | if ((bq == 9)) | |
401 | + | then bA | |
346 | 402 | else { | |
347 | - | let | |
348 | - | if (( | |
349 | - | then | |
403 | + | let bB = bf(bA, bp[9]) | |
404 | + | if ((bq == 10)) | |
405 | + | then bB | |
350 | 406 | else { | |
351 | - | let | |
352 | - | if (( | |
353 | - | then | |
407 | + | let bC = bf(bB, bp[10]) | |
408 | + | if ((bq == 11)) | |
409 | + | then bC | |
354 | 410 | else { | |
355 | - | let | |
356 | - | if (( | |
357 | - | then | |
411 | + | let bD = bf(bC, bp[11]) | |
412 | + | if ((bq == 12)) | |
413 | + | then bD | |
358 | 414 | else { | |
359 | - | let | |
360 | - | if (( | |
361 | - | then | |
415 | + | let bE = bf(bD, bp[12]) | |
416 | + | if ((bq == 13)) | |
417 | + | then bE | |
362 | 418 | else { | |
363 | - | let | |
364 | - | if (( | |
365 | - | then | |
419 | + | let bF = bf(bE, bp[13]) | |
420 | + | if ((bq == 14)) | |
421 | + | then bF | |
366 | 422 | else { | |
367 | - | let | |
368 | - | if (( | |
369 | - | then | |
423 | + | let bG = bf(bF, bp[14]) | |
424 | + | if ((bq == 15)) | |
425 | + | then bG | |
370 | 426 | else { | |
371 | - | let | |
372 | - | if (( | |
373 | - | then | |
427 | + | let bH = bf(bG, bp[15]) | |
428 | + | if ((bq == 16)) | |
429 | + | then bH | |
374 | 430 | else { | |
375 | - | let | |
376 | - | if (( | |
377 | - | then | |
431 | + | let bI = bf(bH, bp[16]) | |
432 | + | if ((bq == 17)) | |
433 | + | then bI | |
378 | 434 | else { | |
379 | - | let | |
380 | - | if (( | |
381 | - | then | |
435 | + | let bJ = bf(bI, bp[17]) | |
436 | + | if ((bq == 18)) | |
437 | + | then bJ | |
382 | 438 | else { | |
383 | - | let | |
384 | - | if (( | |
385 | - | then | |
439 | + | let bK = bf(bJ, bp[18]) | |
440 | + | if ((bq == 19)) | |
441 | + | then bK | |
386 | 442 | else { | |
387 | - | let | |
388 | - | if (( | |
389 | - | then | |
443 | + | let bL = bf(bK, bp[19]) | |
444 | + | if ((bq == 20)) | |
445 | + | then bL | |
390 | 446 | else { | |
391 | - | let | |
447 | + | let bM = bf(bL, bp[20]) | |
392 | 448 | throw("List size exceed 20") | |
393 | 449 | } | |
394 | 450 | } | |
395 | 451 | } | |
396 | 452 | } | |
397 | 453 | } | |
398 | 454 | } | |
399 | 455 | } | |
400 | 456 | } | |
401 | 457 | } | |
402 | 458 | } | |
403 | 459 | } | |
404 | 460 | } | |
405 | 461 | } | |
406 | 462 | } | |
407 | 463 | } | |
408 | 464 | } | |
409 | 465 | } | |
410 | 466 | } | |
411 | 467 | } | |
412 | 468 | } | |
413 | 469 | } | |
414 | 470 | } | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | if (( | |
420 | - | then | |
471 | + | let bN = { | |
472 | + | let bO = bd | |
473 | + | let bP = size(bO) | |
474 | + | let bQ = 0 | |
475 | + | if ((bP == 0)) | |
476 | + | then bQ | |
421 | 477 | else { | |
422 | - | let | |
423 | - | if (( | |
424 | - | then | |
478 | + | let bR = bf(bQ, bO[0]) | |
479 | + | if ((bP == 1)) | |
480 | + | then bR | |
425 | 481 | else { | |
426 | - | let | |
427 | - | if (( | |
428 | - | then | |
482 | + | let bS = bf(bR, bO[1]) | |
483 | + | if ((bP == 2)) | |
484 | + | then bS | |
429 | 485 | else { | |
430 | - | let | |
431 | - | if (( | |
432 | - | then | |
486 | + | let bT = bf(bS, bO[2]) | |
487 | + | if ((bP == 3)) | |
488 | + | then bT | |
433 | 489 | else { | |
434 | - | let | |
435 | - | if (( | |
436 | - | then | |
490 | + | let bU = bf(bT, bO[3]) | |
491 | + | if ((bP == 4)) | |
492 | + | then bU | |
437 | 493 | else { | |
438 | - | let | |
439 | - | if (( | |
440 | - | then | |
494 | + | let bV = bf(bU, bO[4]) | |
495 | + | if ((bP == 5)) | |
496 | + | then bV | |
441 | 497 | else { | |
442 | - | let | |
443 | - | if (( | |
444 | - | then | |
498 | + | let bW = bf(bV, bO[5]) | |
499 | + | if ((bP == 6)) | |
500 | + | then bW | |
445 | 501 | else { | |
446 | - | let | |
447 | - | if (( | |
448 | - | then | |
502 | + | let bX = bf(bW, bO[6]) | |
503 | + | if ((bP == 7)) | |
504 | + | then bX | |
449 | 505 | else { | |
450 | - | let | |
451 | - | if (( | |
452 | - | then | |
506 | + | let bY = bf(bX, bO[7]) | |
507 | + | if ((bP == 8)) | |
508 | + | then bY | |
453 | 509 | else { | |
454 | - | let | |
455 | - | if (( | |
456 | - | then | |
510 | + | let bZ = bf(bY, bO[8]) | |
511 | + | if ((bP == 9)) | |
512 | + | then bZ | |
457 | 513 | else { | |
458 | - | let | |
459 | - | if (( | |
460 | - | then | |
514 | + | let ca = bf(bZ, bO[9]) | |
515 | + | if ((bP == 10)) | |
516 | + | then ca | |
461 | 517 | else { | |
462 | - | let | |
463 | - | if (( | |
464 | - | then | |
518 | + | let cb = bf(ca, bO[10]) | |
519 | + | if ((bP == 11)) | |
520 | + | then cb | |
465 | 521 | else { | |
466 | - | let | |
467 | - | if (( | |
468 | - | then | |
522 | + | let cc = bf(cb, bO[11]) | |
523 | + | if ((bP == 12)) | |
524 | + | then cc | |
469 | 525 | else { | |
470 | - | let | |
471 | - | if (( | |
472 | - | then | |
526 | + | let cd = bf(cc, bO[12]) | |
527 | + | if ((bP == 13)) | |
528 | + | then cd | |
473 | 529 | else { | |
474 | - | let | |
475 | - | if (( | |
476 | - | then | |
530 | + | let ce = bf(cd, bO[13]) | |
531 | + | if ((bP == 14)) | |
532 | + | then ce | |
477 | 533 | else { | |
478 | - | let | |
479 | - | if (( | |
480 | - | then | |
534 | + | let cf = bf(ce, bO[14]) | |
535 | + | if ((bP == 15)) | |
536 | + | then cf | |
481 | 537 | else { | |
482 | - | let | |
483 | - | if (( | |
484 | - | then | |
538 | + | let cg = bf(cf, bO[15]) | |
539 | + | if ((bP == 16)) | |
540 | + | then cg | |
485 | 541 | else { | |
486 | - | let | |
487 | - | if (( | |
488 | - | then | |
542 | + | let ch = bf(cg, bO[16]) | |
543 | + | if ((bP == 17)) | |
544 | + | then ch | |
489 | 545 | else { | |
490 | - | let | |
491 | - | if (( | |
492 | - | then | |
546 | + | let ci = bf(ch, bO[17]) | |
547 | + | if ((bP == 18)) | |
548 | + | then ci | |
493 | 549 | else { | |
494 | - | let | |
495 | - | if (( | |
496 | - | then | |
550 | + | let cj = bf(ci, bO[18]) | |
551 | + | if ((bP == 19)) | |
552 | + | then cj | |
497 | 553 | else { | |
498 | - | let | |
499 | - | if (( | |
500 | - | then | |
554 | + | let ck = bf(cj, bO[19]) | |
555 | + | if ((bP == 20)) | |
556 | + | then ck | |
501 | 557 | else { | |
502 | - | let | |
558 | + | let cl = bf(ck, bO[20]) | |
503 | 559 | throw("List size exceed 20") | |
504 | 560 | } | |
505 | 561 | } | |
506 | 562 | } | |
507 | 563 | } | |
508 | 564 | } | |
509 | 565 | } | |
510 | 566 | } | |
511 | 567 | } | |
512 | 568 | } | |
513 | 569 | } | |
514 | 570 | } | |
515 | 571 | } | |
516 | 572 | } | |
517 | 573 | } | |
518 | 574 | } | |
519 | 575 | } | |
520 | 576 | } | |
521 | 577 | } | |
522 | 578 | } | |
523 | 579 | } | |
524 | 580 | } | |
525 | 581 | } | |
526 | - | if ((height > | |
582 | + | if ((height > be)) | |
527 | 583 | then throw("rewardUpdateHeight < height") | |
528 | - | else if (if (( | |
584 | + | else if (if ((bo != G)) | |
529 | 585 | then true | |
530 | - | else ( | |
586 | + | else (bN != G)) | |
531 | 587 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
532 | 588 | else { | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | if (( | |
538 | - | then | |
589 | + | let cm = { | |
590 | + | let cn = ba | |
591 | + | let co = size(cn) | |
592 | + | let cp = nil | |
593 | + | if ((co == 0)) | |
594 | + | then cp | |
539 | 595 | else { | |
540 | - | let | |
541 | - | if (( | |
542 | - | then | |
596 | + | let cq = bi(cp, cn[0]) | |
597 | + | if ((co == 1)) | |
598 | + | then cq | |
543 | 599 | else { | |
544 | - | let | |
545 | - | if (( | |
546 | - | then | |
600 | + | let cr = bi(cq, cn[1]) | |
601 | + | if ((co == 2)) | |
602 | + | then cr | |
547 | 603 | else { | |
548 | - | let | |
549 | - | if (( | |
550 | - | then | |
604 | + | let cs = bi(cr, cn[2]) | |
605 | + | if ((co == 3)) | |
606 | + | then cs | |
551 | 607 | else { | |
552 | - | let | |
553 | - | if (( | |
554 | - | then | |
608 | + | let ct = bi(cs, cn[3]) | |
609 | + | if ((co == 4)) | |
610 | + | then ct | |
555 | 611 | else { | |
556 | - | let | |
557 | - | if (( | |
558 | - | then | |
612 | + | let cu = bi(ct, cn[4]) | |
613 | + | if ((co == 5)) | |
614 | + | then cu | |
559 | 615 | else { | |
560 | - | let | |
561 | - | if (( | |
562 | - | then | |
616 | + | let cv = bi(cu, cn[5]) | |
617 | + | if ((co == 6)) | |
618 | + | then cv | |
563 | 619 | else { | |
564 | - | let | |
565 | - | if (( | |
566 | - | then | |
620 | + | let cw = bi(cv, cn[6]) | |
621 | + | if ((co == 7)) | |
622 | + | then cw | |
567 | 623 | else { | |
568 | - | let | |
569 | - | if (( | |
570 | - | then | |
624 | + | let cx = bi(cw, cn[7]) | |
625 | + | if ((co == 8)) | |
626 | + | then cx | |
571 | 627 | else { | |
572 | - | let | |
573 | - | if (( | |
574 | - | then | |
628 | + | let cy = bi(cx, cn[8]) | |
629 | + | if ((co == 9)) | |
630 | + | then cy | |
575 | 631 | else { | |
576 | - | let | |
577 | - | if (( | |
578 | - | then | |
632 | + | let cz = bi(cy, cn[9]) | |
633 | + | if ((co == 10)) | |
634 | + | then cz | |
579 | 635 | else { | |
580 | - | let | |
581 | - | if (( | |
582 | - | then | |
636 | + | let cA = bi(cz, cn[10]) | |
637 | + | if ((co == 11)) | |
638 | + | then cA | |
583 | 639 | else { | |
584 | - | let | |
585 | - | if (( | |
586 | - | then | |
640 | + | let cB = bi(cA, cn[11]) | |
641 | + | if ((co == 12)) | |
642 | + | then cB | |
587 | 643 | else { | |
588 | - | let | |
589 | - | if (( | |
590 | - | then | |
644 | + | let cC = bi(cB, cn[12]) | |
645 | + | if ((co == 13)) | |
646 | + | then cC | |
591 | 647 | else { | |
592 | - | let | |
593 | - | if (( | |
594 | - | then | |
648 | + | let cD = bi(cC, cn[13]) | |
649 | + | if ((co == 14)) | |
650 | + | then cD | |
595 | 651 | else { | |
596 | - | let | |
597 | - | if (( | |
598 | - | then | |
652 | + | let cE = bi(cD, cn[14]) | |
653 | + | if ((co == 15)) | |
654 | + | then cE | |
599 | 655 | else { | |
600 | - | let | |
601 | - | if (( | |
602 | - | then | |
656 | + | let cF = bi(cE, cn[15]) | |
657 | + | if ((co == 16)) | |
658 | + | then cF | |
603 | 659 | else { | |
604 | - | let | |
605 | - | if (( | |
606 | - | then | |
660 | + | let cG = bi(cF, cn[16]) | |
661 | + | if ((co == 17)) | |
662 | + | then cG | |
607 | 663 | else { | |
608 | - | let | |
609 | - | if (( | |
610 | - | then | |
664 | + | let cH = bi(cG, cn[17]) | |
665 | + | if ((co == 18)) | |
666 | + | then cH | |
611 | 667 | else { | |
612 | - | let | |
613 | - | if (( | |
614 | - | then | |
668 | + | let cI = bi(cH, cn[18]) | |
669 | + | if ((co == 19)) | |
670 | + | then cI | |
615 | 671 | else { | |
616 | - | let | |
617 | - | if (( | |
618 | - | then | |
672 | + | let cJ = bi(cI, cn[19]) | |
673 | + | if ((co == 20)) | |
674 | + | then cJ | |
619 | 675 | else { | |
620 | - | let | |
676 | + | let cK = bi(cJ, cn[20]) | |
621 | 677 | throw("List size exceed 20") | |
622 | 678 | } | |
623 | 679 | } | |
624 | 680 | } | |
625 | 681 | } | |
626 | 682 | } | |
627 | 683 | } | |
628 | 684 | } | |
629 | 685 | } | |
630 | 686 | } | |
631 | 687 | } | |
632 | 688 | } | |
633 | 689 | } | |
634 | 690 | } | |
635 | 691 | } | |
636 | 692 | } | |
637 | 693 | } | |
638 | 694 | } | |
639 | 695 | } | |
640 | 696 | } | |
641 | 697 | } | |
642 | 698 | } | |
643 | 699 | } | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | if (( | |
649 | - | then | |
700 | + | let cL = { | |
701 | + | let cM = bc | |
702 | + | let cN = size(cM) | |
703 | + | let cO = nil | |
704 | + | if ((cN == 0)) | |
705 | + | then cO | |
650 | 706 | else { | |
651 | - | let | |
652 | - | if (( | |
653 | - | then | |
707 | + | let cP = bn(cO, cM[0]) | |
708 | + | if ((cN == 1)) | |
709 | + | then cP | |
654 | 710 | else { | |
655 | - | let | |
656 | - | if (( | |
657 | - | then | |
711 | + | let cQ = bn(cP, cM[1]) | |
712 | + | if ((cN == 2)) | |
713 | + | then cQ | |
658 | 714 | else { | |
659 | - | let | |
660 | - | if (( | |
661 | - | then | |
715 | + | let cR = bn(cQ, cM[2]) | |
716 | + | if ((cN == 3)) | |
717 | + | then cR | |
662 | 718 | else { | |
663 | - | let | |
664 | - | if (( | |
665 | - | then | |
719 | + | let cS = bn(cR, cM[3]) | |
720 | + | if ((cN == 4)) | |
721 | + | then cS | |
666 | 722 | else { | |
667 | - | let | |
668 | - | if (( | |
669 | - | then | |
723 | + | let cT = bn(cS, cM[4]) | |
724 | + | if ((cN == 5)) | |
725 | + | then cT | |
670 | 726 | else { | |
671 | - | let | |
672 | - | if (( | |
673 | - | then | |
727 | + | let cU = bn(cT, cM[5]) | |
728 | + | if ((cN == 6)) | |
729 | + | then cU | |
674 | 730 | else { | |
675 | - | let | |
676 | - | if (( | |
677 | - | then | |
731 | + | let cV = bn(cU, cM[6]) | |
732 | + | if ((cN == 7)) | |
733 | + | then cV | |
678 | 734 | else { | |
679 | - | let | |
680 | - | if (( | |
681 | - | then | |
735 | + | let cW = bn(cV, cM[7]) | |
736 | + | if ((cN == 8)) | |
737 | + | then cW | |
682 | 738 | else { | |
683 | - | let | |
684 | - | if (( | |
685 | - | then | |
739 | + | let cX = bn(cW, cM[8]) | |
740 | + | if ((cN == 9)) | |
741 | + | then cX | |
686 | 742 | else { | |
687 | - | let | |
688 | - | if (( | |
689 | - | then | |
743 | + | let cY = bn(cX, cM[9]) | |
744 | + | if ((cN == 10)) | |
745 | + | then cY | |
690 | 746 | else { | |
691 | - | let | |
692 | - | if (( | |
693 | - | then | |
747 | + | let cZ = bn(cY, cM[10]) | |
748 | + | if ((cN == 11)) | |
749 | + | then cZ | |
694 | 750 | else { | |
695 | - | let | |
696 | - | if (( | |
697 | - | then | |
751 | + | let da = bn(cZ, cM[11]) | |
752 | + | if ((cN == 12)) | |
753 | + | then da | |
698 | 754 | else { | |
699 | - | let | |
700 | - | if (( | |
701 | - | then | |
755 | + | let db = bn(da, cM[12]) | |
756 | + | if ((cN == 13)) | |
757 | + | then db | |
702 | 758 | else { | |
703 | - | let | |
704 | - | if (( | |
705 | - | then | |
759 | + | let dc = bn(db, cM[13]) | |
760 | + | if ((cN == 14)) | |
761 | + | then dc | |
706 | 762 | else { | |
707 | - | let | |
708 | - | if (( | |
709 | - | then | |
763 | + | let dd = bn(dc, cM[14]) | |
764 | + | if ((cN == 15)) | |
765 | + | then dd | |
710 | 766 | else { | |
711 | - | let | |
712 | - | if (( | |
713 | - | then | |
767 | + | let de = bn(dd, cM[15]) | |
768 | + | if ((cN == 16)) | |
769 | + | then de | |
714 | 770 | else { | |
715 | - | let | |
716 | - | if (( | |
717 | - | then | |
771 | + | let df = bn(de, cM[16]) | |
772 | + | if ((cN == 17)) | |
773 | + | then df | |
718 | 774 | else { | |
719 | - | let | |
720 | - | if (( | |
721 | - | then | |
775 | + | let dg = bn(df, cM[17]) | |
776 | + | if ((cN == 18)) | |
777 | + | then dg | |
722 | 778 | else { | |
723 | - | let | |
724 | - | if (( | |
725 | - | then | |
779 | + | let dh = bn(dg, cM[18]) | |
780 | + | if ((cN == 19)) | |
781 | + | then dh | |
726 | 782 | else { | |
727 | - | let | |
728 | - | if (( | |
729 | - | then | |
783 | + | let di = bn(dh, cM[19]) | |
784 | + | if ((cN == 20)) | |
785 | + | then di | |
730 | 786 | else { | |
731 | - | let | |
787 | + | let dj = bn(di, cM[20]) | |
732 | 788 | throw("List size exceed 20") | |
733 | 789 | } | |
734 | 790 | } | |
735 | 791 | } | |
736 | 792 | } | |
737 | 793 | } | |
738 | 794 | } | |
739 | 795 | } | |
740 | 796 | } | |
741 | 797 | } | |
742 | 798 | } | |
743 | 799 | } | |
744 | 800 | } | |
745 | 801 | } | |
746 | 802 | } | |
747 | 803 | } | |
748 | 804 | } | |
749 | 805 | } | |
750 | 806 | } | |
751 | 807 | } | |
752 | 808 | } | |
753 | 809 | } | |
754 | 810 | } | |
755 | - | (( | |
811 | + | ((cm ++ cL) ++ [IntegerEntry(z, be)]) | |
756 | 812 | } | |
757 | 813 | } | |
758 | 814 | ||
759 | 815 | ||
760 | 816 | ||
761 | - | @Callable( | |
817 | + | @Callable(aG) | |
762 | 818 | func shutdown () = if (!(A)) | |
763 | 819 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, g), "the cause wasn't specified"))) | |
764 | - | else if (!(containsElement([a, b, c, d], | |
820 | + | else if (!(containsElement([a, b, c, d], aG.callerPublicKey))) | |
765 | 821 | then throw("Only admin can call this function") | |
766 | - | else | |
822 | + | else P("Paused by admin") | |
767 | 823 | ||
768 | 824 | ||
769 | 825 | ||
770 | - | @Callable( | |
826 | + | @Callable(aG) | |
771 | 827 | func activate () = if (A) | |
772 | 828 | then throw("DApp is already active") | |
773 | - | else if (!(containsElement([a, b, c, d], | |
829 | + | else if (!(containsElement([a, b, c, d], aG.callerPublicKey))) | |
774 | 830 | then throw("Only admin can call this function") | |
775 | 831 | else [BooleanEntry(f, true), DeleteEntry(g)] | |
776 | 832 | ||
777 | 833 | ||
778 | - | @Verifier( | |
779 | - | func | |
834 | + | @Verifier(dk) | |
835 | + | func dl () = sigVerify(dk.bodyBytes, dk.proofs[0], dk.senderPublicKey) | |
780 | 836 |
github/deemru/w8io/169f3d6 914.54 ms ◑