tx · 8sxpqpajxTzmu2ixUVi5Xn3m3GMR93vUaCUCcfrLV31G 3Mp5kisFrqESzrXxAMEPk2k69zpeF41czEE: -0.01400000 Waves 2022.04.04 17:01 [1993932] smart account 3Mp5kisFrqESzrXxAMEPk2k69zpeF41czEE > SELF 0.00000000 Waves
{ "type": 13, "id": "8sxpqpajxTzmu2ixUVi5Xn3m3GMR93vUaCUCcfrLV31G", "fee": 1400000, "feeAssetId": null, "timestamp": 1649080906695, "version": 1, "sender": "3Mp5kisFrqESzrXxAMEPk2k69zpeF41czEE", "senderPublicKey": "G349Uq3FTox7dRNLeAfAQeoACvwZ9iEnVSaHcEYn6j8J", "proofs": [ "4xzspTrCrv111C3BkqsfcPvzxU9jEBTbjADrMxkdop2WwS6SuTjas4btpqrJsd1KWaUSKUXYxqkTpvWQS8qXWsfy" ], "script": "base64:AAIFAAAAAAAAAGYIAhIECgIIARIHCgUCAQEBARIAEgASCQoHAgEBAQEBBBIAEgMKAQgSAwoBCBIDCgEIEgMKAQgSBQoDAQEBEgUKAwEBARIGCgQICAgBEgMKAQgSAwoBCBIAEgMKAQgSBwoFCAgICAgAAAA4AAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAANTRVACAAAAAl9fAAAAAAhNQVhERVBUSAAAAAAAAAAAEQAAAAAJVVNFUkRFUFRIAAAAAAAAAAAaAAAAAAVTQ0FMRQAAAAAAAAAD6AAAAAAFTVVMVDgAAAAAAAX14QAAAAAACnplcm9CaWdJbnQJAAE2AAAAAQAAAAAAAAAAAAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAABAAAAD2dldE51bWJlck9yRmFpbAAAAAEAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAP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XzEAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQEAAAAEY2FsYwAAAAIFAAAAAiRhCQABkQAAAAIFAAAAAiRsBQAAAAIkaQoBAAAABSRmMF8yAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABNMaXN0IHNpemUgZXhjZWVkcyA3CQEAAAAFJGYwXzIAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAAABgAAAAAAAAAABwQAAAAFZE5leHQIBQAAAA0kdDAyNDE1MzI0MjAzAAAAAl8xBAAAAAVkUHJldggFAAAADSR0MDI0MTUzMjQyMDMAAAACXzIEAAAABWREaWZmCQEAAAADYWJzAAAAAQkAATgAAAACBQAAAAVkTmV4dAkBAAAABXZhbHVlAAAAAQUAAAAFZFByZXYDCQABQAAAAAIFAAAAD3RhcmdldFByZWNpc2lvbgUAAAAFZERpZmYJAAUUAAAAAgUAAAADbmlsCQABpgAAAAEFAAAABWROZXh0CQAAAgAAAAEJAAEsAAAAAgIAAAAdRCBjYWxjdWxhdGlvbiBlcnJvciwgZERpZmYgPSAJAAGmAAAAAQUAAAAFZERpZmYAAAAAsvyR2A==", "chainId": 84, "height": 1993932, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GoXZZEcVuWBh2rTvBiqZ55BCVqE39ZX66mu9sM5NVL83 Next: BCd1s1aDPdqi8XjCh63aVqXMxvfK9xpLUvs8yeEgWjFt Diff:
Old | New | Differences | |
---|---|---|---|
90 | 90 | func N (O) = makeString(["%s%d__nextClaimedPeriod", toString(O)], b) | |
91 | 91 | ||
92 | 92 | ||
93 | - | func P (O) = makeString(["%s%d__ | |
93 | + | func P (O) = makeString(["%s%d__nextClaimedPeriodNew", toString(O)], b) | |
94 | 94 | ||
95 | 95 | ||
96 | - | func Q ( | |
96 | + | func Q (O) = makeString(["%s%d__lastProcessedPeriod", toString(O)], b) | |
97 | 97 | ||
98 | 98 | ||
99 | - | func | |
99 | + | func R (O) = makeString(["%s%d__lastProcessedPeriodForClaim", toString(O)], b) | |
100 | 100 | ||
101 | 101 | ||
102 | - | func | |
102 | + | func S (T) = makeString(["%s%d__startHeightForPeriod", toString(T)], b) | |
103 | 103 | ||
104 | 104 | ||
105 | - | func U () = "%s__ | |
105 | + | func U (T) = makeString(["%s%d__auxEmissionReward", toString(T)], b) | |
106 | 106 | ||
107 | 107 | ||
108 | - | func V ( | |
108 | + | func V (T) = makeString(["%s%d__totalAmountForPeriod", toString(T)], b) | |
109 | 109 | ||
110 | 110 | ||
111 | - | func | |
111 | + | func W () = "%s__lastPayoutInfo" | |
112 | 112 | ||
113 | 113 | ||
114 | - | func | |
114 | + | func X (T,Y,Z) = makeString(["%d%d%d", toString(T), toString(Y), toString(Z)], b) | |
115 | 115 | ||
116 | 116 | ||
117 | - | func aa ( | |
117 | + | func aa (T) = makeString(["%s%s%d__payouts__history", toString(T)], b) | |
118 | 118 | ||
119 | 119 | ||
120 | - | func ab ( | |
120 | + | func ab (T) = makeString(["%s%d__totalWeightForPeriod", toString(T)], b) | |
121 | 121 | ||
122 | 122 | ||
123 | - | func ac (ad,ae,af,ag,ah,ai,aj) = { | |
124 | - | let ak = makeString(["%s%s%s%s__history", ad, ae, toBase58String(aj.transactionId)], b) | |
125 | - | let al = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(af), toString(ag), toString(ah), toString(ai)], b) | |
126 | - | StringEntry(ak, al) | |
123 | + | func ac (T,O) = makeString(["%s%d%s%d__paramByPeriod", toString(O), "k", toString(T)], b) | |
124 | + | ||
125 | + | ||
126 | + | func ad (T,O) = makeString(["%s%d%s%d__paramByPeriod", toString(O), "b", toString(T)], b) | |
127 | + | ||
128 | + | ||
129 | + | func ae (af,ag,ah,ai,aj,ak,al) = { | |
130 | + | let am = makeString(["%s%s%s%s__history", af, ag, toBase58String(al.transactionId)], b) | |
131 | + | let an = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(ah), toString(ai), toString(aj), toString(ak)], b) | |
132 | + | StringEntry(am, an) | |
127 | 133 | } | |
128 | 134 | ||
129 | 135 | ||
130 | - | func | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | if (isDefined( | |
136 | + | func ao (ap,aq,T,O) = { | |
137 | + | let ar = Q(O) | |
138 | + | let as = ac(T, O) | |
139 | + | let at = getInteger(ap, as) | |
140 | + | if (isDefined(at)) | |
135 | 141 | then { | |
136 | - | let | |
137 | - | let | |
138 | - | let | |
139 | - | if (( | |
140 | - | then $Tuple2(( | |
142 | + | let au = value(at) | |
143 | + | let av = value(getInteger(ap, ad(T, O))) | |
144 | + | let aw = ((au * aq) + av) | |
145 | + | if ((aw > 0)) | |
146 | + | then $Tuple2((aw / e), [IntegerEntry(ar, T)]) | |
141 | 147 | else $Tuple2(0, nil) | |
142 | 148 | } | |
143 | 149 | else { | |
144 | - | let av = getInteger(this, ap) | |
145 | - | if (if (isDefined(av)) | |
146 | - | then (R >= value(av)) | |
147 | - | else false) | |
150 | + | let ax = getInteger(this, ar) | |
151 | + | if (isDefined(ax)) | |
148 | 152 | then { | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | if (( | |
154 | - | then $Tuple2(( | |
153 | + | let ay = value(ax) | |
154 | + | let au = value(getInteger(ap, ac(ay, O))) | |
155 | + | let av = value(getInteger(ap, ad(ay, O))) | |
156 | + | let aw = ((au * aq) + av) | |
157 | + | if ((aw > 0)) | |
158 | + | then $Tuple2((aw / e), nil) | |
155 | 159 | else $Tuple2(0, nil) | |
156 | 160 | } | |
157 | 161 | else $Tuple2(0, nil) | |
159 | 163 | } | |
160 | 164 | ||
161 | 165 | ||
162 | - | func ax (D,ay) = { | |
163 | - | let i = makeString(["%s%s%s", "mapping", "user2num", ay], b) | |
164 | - | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String(D)), i), ((("User address " + ay) + " is not found in boosting contract data, key=") + i))) | |
166 | + | func az (ap,aq,T,O,aA) = { | |
167 | + | let ar = R(O) | |
168 | + | let as = ac(T, O) | |
169 | + | let at = getInteger(ap, as) | |
170 | + | let aB = h(N(O)) | |
171 | + | let aC = if ((T >= aB)) | |
172 | + | then (aB > 0) | |
173 | + | else false | |
174 | + | if (isDefined(at)) | |
175 | + | then { | |
176 | + | let au = value(at) | |
177 | + | let av = value(getInteger(ap, ad(T, O))) | |
178 | + | let aw = ((au * aq) + av) | |
179 | + | let aD = if (aA) | |
180 | + | then unit | |
181 | + | else invoke(this, "setInteger", [ar, T], nil) | |
182 | + | if ((aD == aD)) | |
183 | + | then if (if ((aw > 0)) | |
184 | + | then aC | |
185 | + | else false) | |
186 | + | then (aw / e) | |
187 | + | else 0 | |
188 | + | else throw("Strict value is not equal to itself.") | |
189 | + | } | |
190 | + | else { | |
191 | + | let ax = getInteger(this, ar) | |
192 | + | if (isDefined(ax)) | |
193 | + | then { | |
194 | + | let ay = value(ax) | |
195 | + | let au = value(getInteger(ap, ac(ay, O))) | |
196 | + | let av = value(getInteger(ap, ad(ay, O))) | |
197 | + | let aw = ((au * aq) + av) | |
198 | + | if (if ((aw > 0)) | |
199 | + | then aC | |
200 | + | else false) | |
201 | + | then (aw / e) | |
202 | + | else 0 | |
203 | + | } | |
204 | + | else 0 | |
205 | + | } | |
165 | 206 | } | |
166 | 207 | ||
167 | 208 | ||
168 | - | func az () = h(L()) | |
209 | + | func aE (D,aF) = { | |
210 | + | let i = makeString(["%s%s%s", "mapping", "user2num", aF], b) | |
211 | + | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String(D)), i), ((("User address " + aF) + " is not found in boosting contract data, key=") + i))) | |
212 | + | } | |
169 | 213 | ||
170 | 214 | ||
171 | - | func aA (aB,R,ae,aC,aD) = { | |
172 | - | let aE = invoke(this, "processNextBatch", [aB, R, ae, aC, aD], nil) | |
173 | - | if ((aE == aE)) | |
215 | + | func aG () = h(L()) | |
216 | + | ||
217 | + | ||
218 | + | func aH (aI,T,ag,aJ,aK) = { | |
219 | + | let aL = invoke(this, "processNextBatch", [aI, T, ag, aJ, aK], nil) | |
220 | + | if ((aL == aL)) | |
174 | 221 | then { | |
175 | - | let | |
176 | - | if ($isInstanceOf( | |
222 | + | let aM = aL | |
223 | + | if ($isInstanceOf(aM, "(Int, Int, Int)")) | |
177 | 224 | then { | |
178 | - | let | |
179 | - | | |
225 | + | let aN = aM | |
226 | + | aN | |
180 | 227 | } | |
181 | 228 | else throw("Incorrect invoke result") | |
182 | 229 | } | |
184 | 231 | } | |
185 | 232 | ||
186 | 233 | ||
187 | - | func | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | if (if (( | |
194 | - | then ( | |
234 | + | func aO (aI,aj,aP,aJ,aQ) = { | |
235 | + | let ap = Address(aI) | |
236 | + | let ak = h(K()) | |
237 | + | let aR = valueOrElse(getInteger(ap, G()), 0) | |
238 | + | let aS = ab(aj) | |
239 | + | let aq = h(S(aj)) | |
240 | + | if (if ((aJ > 0)) | |
241 | + | then (ak >= aj) | |
195 | 242 | else false) | |
196 | 243 | then { | |
197 | - | let | |
198 | - | let | |
199 | - | if (( | |
244 | + | let aT = ao(ap, aq, aj, aP) | |
245 | + | let aU = (aQ + aT._1) | |
246 | + | if ((aR > (aP + 1))) | |
200 | 247 | then { | |
201 | - | let | |
202 | - | let | |
203 | - | if (( | |
248 | + | let aV = ao(ap, aq, aj, (aP + 1)) | |
249 | + | let aW = (aU + aV._1) | |
250 | + | if ((aR > (aP + 2))) | |
204 | 251 | then { | |
205 | - | let | |
206 | - | let | |
207 | - | if (( | |
252 | + | let aX = ao(ap, aq, aj, (aP + 2)) | |
253 | + | let aY = (aW + aX._1) | |
254 | + | if ((aR > (aP + 3))) | |
208 | 255 | then { | |
209 | - | let | |
210 | - | let | |
211 | - | if (( | |
256 | + | let aZ = ao(ap, aq, aj, (aP + 3)) | |
257 | + | let ba = (aY + aZ._1) | |
258 | + | if ((aR > (aP + 4))) | |
212 | 259 | then { | |
213 | - | let | |
214 | - | let | |
215 | - | if (( | |
260 | + | let bb = ao(ap, aq, aj, (aP + 4)) | |
261 | + | let bc = (ba + bb._1) | |
262 | + | if ((aR > (aP + 5))) | |
216 | 263 | then { | |
217 | - | let | |
218 | - | let | |
219 | - | if (( | |
264 | + | let bd = ao(ap, aq, aj, (aP + 5)) | |
265 | + | let be = (bc + bd._1) | |
266 | + | if ((aR > (aP + 6))) | |
220 | 267 | then { | |
221 | - | let | |
222 | - | $Tuple4(((((( | |
268 | + | let bf = aH(aI, aj, (aP + 6), (aJ - 1), be) | |
269 | + | $Tuple4((((((aT._2 ++ aV._2) ++ aX._2) ++ aZ._2) ++ bb._2) ++ bd._2), bf._1, bf._2, bf._3) | |
223 | 270 | } | |
224 | - | else $Tuple4((((((([IntegerEntry( | |
271 | + | else $Tuple4((((((([IntegerEntry(aS, be)] ++ aT._2) ++ aV._2) ++ aX._2) ++ aZ._2) ++ bb._2) ++ bd._2), (aj + 1), 0, 0) | |
225 | 272 | } | |
226 | - | else $Tuple4(((((([IntegerEntry( | |
273 | + | else $Tuple4(((((([IntegerEntry(aS, bc)] ++ aT._2) ++ aV._2) ++ aX._2) ++ aZ._2) ++ bb._2), (aj + 1), 0, 0) | |
227 | 274 | } | |
228 | - | else $Tuple4((((([IntegerEntry( | |
275 | + | else $Tuple4((((([IntegerEntry(aS, ba)] ++ aT._2) ++ aV._2) ++ aX._2) ++ aZ._2), (aj + 1), 0, 0) | |
229 | 276 | } | |
230 | - | else $Tuple4(((([IntegerEntry( | |
277 | + | else $Tuple4(((([IntegerEntry(aS, aY)] ++ aT._2) ++ aV._2) ++ aX._2), (aj + 1), 0, 0) | |
231 | 278 | } | |
232 | - | else $Tuple4((([IntegerEntry( | |
279 | + | else $Tuple4((([IntegerEntry(aS, aW)] ++ aT._2) ++ aV._2), (aj + 1), 0, 0) | |
233 | 280 | } | |
234 | - | else $Tuple4(([IntegerEntry( | |
281 | + | else $Tuple4(([IntegerEntry(aS, aU)] ++ aT._2), (aj + 1), 0, 0) | |
235 | 282 | } | |
236 | - | else if (( | |
237 | - | then $Tuple4(nil, | |
238 | - | else $Tuple4([IntegerEntry( | |
283 | + | else if ((aP == 0)) | |
284 | + | then $Tuple4(nil, aj, 0, 0) | |
285 | + | else $Tuple4([IntegerEntry(aS, aQ)], aj, aP, 0) | |
239 | 286 | } | |
240 | 287 | ||
241 | 288 | ||
242 | - | func | |
243 | - | let | |
244 | - | if (( | |
289 | + | func bg (aI,T,ag,aJ,bh,bi,aA) = { | |
290 | + | let aL = invoke(this, "claimNextBatch", [aI, T, ag, aJ, bh, bi, aA], nil) | |
291 | + | if ((aL == aL)) | |
245 | 292 | then { | |
246 | - | let | |
247 | - | if ($isInstanceOf( | |
293 | + | let aM = aL | |
294 | + | if ($isInstanceOf(aM, "(Int, Int, Int)")) | |
248 | 295 | then { | |
249 | - | let | |
250 | - | | |
296 | + | let aN = aM | |
297 | + | aN | |
251 | 298 | } | |
252 | 299 | else throw("Incorrect invoke result") | |
253 | 300 | } | |
255 | 302 | } | |
256 | 303 | ||
257 | 304 | ||
258 | - | func bc (aB,ah,aI,aC,bd,be) = { | |
259 | - | let an = Address(aB) | |
260 | - | let ai = h(M()) | |
261 | - | let aJ = h(Z(ah)) | |
262 | - | let ao = h(Q(ah)) | |
263 | - | let bf = am(an, ao, ah, aI) | |
264 | - | let bg = bf._1 | |
265 | - | let bh = bf._2 | |
266 | - | let bi = fraction(h(T(ah)), bg, aJ) | |
267 | - | let bj = fraction(h(S(ah)), bg, aJ) | |
268 | - | if (if ((0 >= aC)) | |
305 | + | func bj (aI,aj,aP,aJ,bk,bl,aA) = { | |
306 | + | let ap = Address(aI) | |
307 | + | let ak = h(M()) | |
308 | + | let aQ = h(ab(aj)) | |
309 | + | let aq = h(S(aj)) | |
310 | + | let bm = az(ap, aq, aj, aP, aA) | |
311 | + | let bn = fraction(h(V(aj)), bm, aQ) | |
312 | + | let bo = fraction(h(U(aj)), bm, aQ) | |
313 | + | if (if ((0 >= aJ)) | |
269 | 314 | then true | |
270 | - | else (( | |
271 | - | then $Tuple3(( | |
272 | - | else | |
315 | + | else ((aj + 1) >= ak)) | |
316 | + | then $Tuple3((aj + 1), (bk + bn), (bl + bo)) | |
317 | + | else bg(aI, (aj + 1), aP, (aJ - 1), (bk + bn), (bl + bo), aA) | |
273 | 318 | } | |
274 | 319 | ||
275 | 320 | ||
276 | - | func | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | if (( | |
321 | + | func bp (aF,aA) = { | |
322 | + | let bq = z() | |
323 | + | let br = aE(bq[w], aF) | |
324 | + | let aj = h(P(br)) | |
325 | + | let bs = h(M()) | |
326 | + | if ((aj >= bs)) | |
282 | 327 | then throw("Nothing to claim") | |
283 | 328 | else { | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | $Tuple6( | |
329 | + | let aI = fromBase58String(bq[w]) | |
330 | + | let bt = bj(aI, aj, br, d, 0, 0, aA) | |
331 | + | let T = bt._1 | |
332 | + | let ah = bt._2 | |
333 | + | let ai = bt._3 | |
334 | + | $Tuple6(T, ah, ai, br, bq, bs) | |
290 | 335 | } | |
291 | 336 | } | |
292 | 337 | ||
293 | 338 | ||
294 | - | @Callable(aj) | |
295 | - | func processNextBatch (aB,ah,aI,aC,aJ) = if ((aj.caller != this)) | |
339 | + | @Callable(al) | |
340 | + | func setInteger (au,bu) = { | |
341 | + | let bv = if ((al.caller == this)) | |
342 | + | then true | |
343 | + | else throw("Should be called by this script only") | |
344 | + | if ((bv == bv)) | |
345 | + | then { | |
346 | + | let bw = [IntegerEntry(au, bu)] | |
347 | + | $Tuple2(bw, bw) | |
348 | + | } | |
349 | + | else throw("Strict value is not equal to itself.") | |
350 | + | } | |
351 | + | ||
352 | + | ||
353 | + | ||
354 | + | @Callable(al) | |
355 | + | func processNextBatch (aI,aj,aP,aJ,aQ) = if ((al.caller != this)) | |
296 | 356 | then throw("Should be called by this script only") | |
297 | 357 | else { | |
298 | - | let | |
299 | - | $Tuple2( | |
358 | + | let bx = aO(aI, aj, aP, aJ, aQ) | |
359 | + | $Tuple2(bx._1, $Tuple3(bx._2, bx._3, bx._4)) | |
300 | 360 | } | |
301 | 361 | ||
302 | 362 | ||
303 | 363 | ||
304 | - | @Callable( | |
364 | + | @Callable(al) | |
305 | 365 | func processPendingPeriodsAndUsers () = { | |
306 | - | let | |
307 | - | if (( | |
366 | + | let aj = h(M()) | |
367 | + | if ((aj > h(K()))) | |
308 | 368 | then throw("Nothing to process") | |
309 | 369 | else { | |
310 | - | let | |
311 | - | let | |
312 | - | if (( | |
370 | + | let bq = z() | |
371 | + | let aJ = parseIntValue(bq[x]) | |
372 | + | if ((aJ > c)) | |
313 | 373 | then throw("Depth exceeds MAXDEPTH") | |
314 | 374 | else { | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | (( | |
375 | + | let aI = fromBase58String(bq[w]) | |
376 | + | let aP = h(J()) | |
377 | + | let aQ = h(ab(aj)) | |
378 | + | let aN = aO(aI, aj, aP, aJ, aQ) | |
379 | + | ((aN._1 :+ IntegerEntry(M(), aN._2)) :+ IntegerEntry(J(), aN._3)) | |
320 | 380 | } | |
321 | 381 | } | |
322 | 382 | } | |
323 | 383 | ||
324 | 384 | ||
325 | 385 | ||
326 | - | @Callable( | |
386 | + | @Callable(al) | |
327 | 387 | func deposit () = { | |
328 | - | let | |
329 | - | if (( | |
388 | + | let bq = z() | |
389 | + | if ((al.caller != Address(fromBase58String(bq[v])))) | |
330 | 390 | then throw("Wrong caller address") | |
331 | 391 | else { | |
332 | - | let | |
333 | - | if (( | |
392 | + | let by = value(value(al.payments[0]).assetId) | |
393 | + | if ((by != fromBase58String(bq[u]))) | |
334 | 394 | then throw("Wrong payment asset") | |
335 | 395 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | if (( | |
396 | + | let T = aG() | |
397 | + | let bz = (height - j(F())) | |
398 | + | let bA = valueOrErrorMessage(getInteger(t, H()), (("mandatory emission_contract." + H()) + " is not defined")) | |
399 | + | let aK = valueOrErrorMessage(getInteger(q, I()), (("mandatory factory_contract." + I()) + " is not defined")) | |
400 | + | let bB = fraction((bz * aK), bA, f) | |
401 | + | let bC = invoke(t, "emit", [bB], nil) | |
402 | + | if ((bC == bC)) | |
343 | 403 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | [IntegerEntry(K(), | |
404 | + | let bD = value(al.payments[0]).amount | |
405 | + | let bE = X(T, bD, bB) | |
406 | + | [IntegerEntry(K(), T), IntegerEntry(S(T), height), IntegerEntry(U(T), bB), IntegerEntry(F(), height), IntegerEntry(V(T), bD), IntegerEntry(L(), (T + 1)), StringEntry(W(), bE), StringEntry(aa(T), bE)] | |
347 | 407 | } | |
348 | 408 | else throw("Strict value is not equal to itself.") | |
349 | 409 | } | |
352 | 412 | ||
353 | 413 | ||
354 | 414 | ||
355 | - | @Callable( | |
356 | - | func claimNextBatch ( | |
415 | + | @Callable(al) | |
416 | + | func claimNextBatch (aI,aj,aP,aJ,bh,bi,aA) = if ((al.caller != this)) | |
357 | 417 | then throw("Should be called by this script only") | |
358 | 418 | else { | |
359 | - | let | |
360 | - | $Tuple2(nil, | |
419 | + | let bF = bj(aI, aj, aP, aJ, bh, bi, aA) | |
420 | + | $Tuple2(nil, bF) | |
361 | 421 | } | |
362 | 422 | ||
363 | 423 | ||
364 | 424 | ||
365 | - | @Callable( | |
425 | + | @Callable(al) | |
366 | 426 | func claimReward () = { | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | $Tuple2([IntegerEntry( | |
427 | + | let bG = toString(al.caller) | |
428 | + | let bH = bp(bG, false) | |
429 | + | let T = bH._1 | |
430 | + | let ah = bH._2 | |
431 | + | let ai = bH._3 | |
432 | + | let br = bH._4 | |
433 | + | let bq = bH._5 | |
434 | + | let bs = bH._6 | |
435 | + | $Tuple2([IntegerEntry(P(br), T), ScriptTransfer(al.caller, (ah + ai), fromBase58String(bq[u])), ae("claim", bG, ah, ai, T, bs, al)], [ah, ai]) | |
376 | 436 | } | |
377 | 437 | ||
378 | 438 | ||
379 | 439 | ||
380 | - | @Callable( | |
381 | - | func claimRewardREADONLY ( | |
382 | - | let | |
383 | - | let | |
384 | - | $Tuple2(nil, | |
440 | + | @Callable(al) | |
441 | + | func claimRewardREADONLY (bG) = { | |
442 | + | let bI = bp(bG, true) | |
443 | + | let bJ = (bI._2 + bI._3) | |
444 | + | $Tuple2(nil, bJ) | |
385 | 445 | } | |
386 | 446 | ||
387 | 447 | ||
388 | 448 | ||
389 | - | @Callable( | |
390 | - | func claimRewardDetailedREADONLY ( | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | $Tuple2(nil, makeString(["%d%d%d", toString(( | |
449 | + | @Callable(al) | |
450 | + | func claimRewardDetailedREADONLY (bG) = { | |
451 | + | let bK = bp(bG, true) | |
452 | + | let bL = bK._1 | |
453 | + | let bM = bK._2 | |
454 | + | let bN = bK._3 | |
455 | + | $Tuple2(nil, makeString(["%d%d%d", toString((bM + bN)), toString(bM), toString(bN)], b)) | |
396 | 456 | } | |
397 | 457 | ||
398 | 458 | ||
399 | 459 | ||
400 | - | @Callable( | |
401 | - | func latestFinalizedPeriodREADONLY ( | |
460 | + | @Callable(al) | |
461 | + | func latestFinalizedPeriodREADONLY (bG) = $Tuple2(nil, valueOrElse(getInteger(this, K()), -1)) | |
402 | 462 | ||
403 | 463 | ||
404 | 464 | ||
405 | - | @Callable( | |
406 | - | func latestFinalizedPeriodInfoREADONLY ( | |
465 | + | @Callable(al) | |
466 | + | func latestFinalizedPeriodInfoREADONLY (bG) = $Tuple2(nil, k(W())) | |
407 | 467 | ||
408 | 468 | ||
409 | 469 | ||
410 | - | @Callable( | |
411 | - | func calcGwxParamsREADONLY ( | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | $Tuple2(nil, [ | |
470 | + | @Callable(al) | |
471 | + | func calcGwxParamsREADONLY (bO,bP,bQ) = { | |
472 | + | let bR = (bP + bQ) | |
473 | + | let bS = -(fraction(bO, e, bQ)) | |
474 | + | let bT = (fraction(bO, e, bQ) * bR) | |
475 | + | $Tuple2(nil, [bS, bT, aG()]) | |
416 | 476 | } | |
417 | 477 | ||
418 | 478 | ||
419 | 479 | ||
420 | - | @Callable( | |
421 | - | func calcGwxAmountStartREADONLY ( | |
422 | - | let | |
423 | - | let | |
424 | - | $Tuple2(nil, [ | |
480 | + | @Callable(al) | |
481 | + | func calcGwxAmountStartREADONLY (bU,bV,bW) = { | |
482 | + | let bX = fraction(bV, f, bW) | |
483 | + | let bY = fraction(bU, bX, f) | |
484 | + | $Tuple2(nil, [bY]) | |
425 | 485 | } | |
426 | 486 | ||
427 | 487 | ||
428 | 488 | ||
429 | - | @Callable( | |
430 | - | func constructor (B,C,D,E) = if ((this != | |
489 | + | @Callable(al) | |
490 | + | func constructor (B,C,D,E) = if ((this != al.caller)) | |
431 | 491 | then throw("not authorized") | |
432 | 492 | else [StringEntry(y(), A(B, C, D, E))] | |
433 | 493 | ||
434 | 494 | ||
435 | 495 | ||
436 | - | @Callable( | |
437 | - | func constructorV2 ( | |
496 | + | @Callable(al) | |
497 | + | func constructorV2 (bZ) = if ((this != al.caller)) | |
438 | 498 | then throw("not authorized") | |
439 | - | else [StringEntry(o(), | |
499 | + | else [StringEntry(o(), bZ)] | |
440 | 500 | ||
441 | 501 | ||
442 | 502 | ||
443 | - | @Callable( | |
444 | - | func constructorV3 ( | |
503 | + | @Callable(al) | |
504 | + | func constructorV3 (ca) = if ((this != al.caller)) | |
445 | 505 | then throw("not authorized") | |
446 | 506 | else { | |
447 | - | let | |
507 | + | let cb = if (isDefined(getInteger(this, K()))) | |
448 | 508 | then nil | |
449 | 509 | else [IntegerEntry(K(), -1)] | |
450 | - | ( | |
510 | + | (cb :+ StringEntry(r(), ca)) | |
451 | 511 | } | |
452 | 512 | ||
453 | 513 | ||
454 | 514 | ||
455 | - | @Callable( | |
456 | - | func onEmissionForGwxStart () = if (( | |
515 | + | @Callable(al) | |
516 | + | func onEmissionForGwxStart () = if ((al.caller != q)) | |
457 | 517 | then throw("permissions denied") | |
458 | 518 | else [IntegerEntry(F(), height)] | |
459 | 519 | ||
460 | 520 | ||
461 | 521 | ||
462 | - | @Callable( | |
463 | - | func latestPeriodEmissionRewardsREADONLY ( | |
464 | - | let | |
465 | - | $Tuple2(nil, [h( | |
522 | + | @Callable(al) | |
523 | + | func latestPeriodEmissionRewardsREADONLY (bG) = { | |
524 | + | let T = aG() | |
525 | + | $Tuple2(nil, [h(U(T))]) | |
466 | 526 | } | |
467 | 527 | ||
468 | 528 | ||
469 | 529 | ||
470 | - | @Callable( | |
471 | - | func calcD ( | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | if (( | |
530 | + | @Callable(al) | |
531 | + | func calcD (cc,cd,ce,cf,cg) = { | |
532 | + | let ch = toBigInt(2) | |
533 | + | let ci = parseBigIntValue(cf) | |
534 | + | let cj = parseBigIntValue(cg) | |
535 | + | let ck = parseBigIntValue(cc) | |
536 | + | let cl = parseBigIntValue(cd) | |
537 | + | let cm = (parseBigIntValue(ce) * ci) | |
538 | + | let cn = (ck + cl) | |
539 | + | if ((cn == g)) | |
480 | 540 | then $Tuple2(nil, toString(g)) | |
481 | 541 | else { | |
482 | - | let | |
483 | - | let | |
484 | - | func | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | $Tuple2( | |
542 | + | let co = (cm * ch) | |
543 | + | let cp = [1, 2, 3, 4, 5, 6, 7] | |
544 | + | func cq (cr,cs) = { | |
545 | + | let ct = cr | |
546 | + | let cu = ct._1 | |
547 | + | let cv = ct._2 | |
548 | + | let cw = (((cu * cu) * cu) / (((ck * cl) * ch) * ch)) | |
549 | + | let cx = (((((co * cn) / ci) + (cw * ch)) * cu) / ((((co - ci) * cu) / ci) + ((ch + toBigInt(1)) * cw))) | |
550 | + | $Tuple2(cx, cu) | |
491 | 551 | } | |
492 | 552 | ||
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | func | |
498 | - | then | |
499 | - | else | |
553 | + | let cy = { | |
554 | + | let cz = cp | |
555 | + | let cA = size(cz) | |
556 | + | let cB = $Tuple2(cn, unit) | |
557 | + | func cC (cD,cE) = if ((cE >= cA)) | |
558 | + | then cD | |
559 | + | else cq(cD, cz[cE]) | |
500 | 560 | ||
501 | - | func | |
502 | - | then | |
561 | + | func cF (cD,cE) = if ((cE >= cA)) | |
562 | + | then cD | |
503 | 563 | else throw("List size exceeds 7") | |
504 | 564 | ||
505 | - | | |
565 | + | cF(cC(cC(cC(cC(cC(cC(cC(cB, 0), 1), 2), 3), 4), 5), 6), 7) | |
506 | 566 | } | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | if (( | |
511 | - | then $Tuple2(nil, toString( | |
512 | - | else throw(("D calculation error, dDiff = " + toString( | |
567 | + | let cx = cy._1 | |
568 | + | let cv = cy._2 | |
569 | + | let cG = m((cx - value(cv))) | |
570 | + | if ((cj >= cG)) | |
571 | + | then $Tuple2(nil, toString(cx)) | |
572 | + | else throw(("D calculation error, dDiff = " + toString(cG))) | |
513 | 573 | } | |
514 | 574 | } | |
515 | 575 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = 17 | |
9 | 9 | ||
10 | 10 | let d = 26 | |
11 | 11 | ||
12 | 12 | let e = 1000 | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = toBigInt(0) | |
17 | 17 | ||
18 | 18 | func h (i) = valueOrElse(getInteger(this, i), 0) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func j (i) = valueOrErrorMessage(getInteger(this, i), (("mandatory this." + i) + " is not defined")) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func k (i) = valueOrElse(getString(this, i), "") | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func l (i) = valueOrErrorMessage(getString(i), (("mandatory this." + i) + " is not defined")) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func m (n) = if ((g > n)) | |
31 | 31 | then -(n) | |
32 | 32 | else n | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o () = "%s%s__config__factoryAddress" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | let p = l(o()) | |
39 | 39 | ||
40 | 40 | let q = addressFromStringValue(p) | |
41 | 41 | ||
42 | 42 | func r () = "%s%s__config__emissionAddress" | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let s = l(r()) | |
46 | 46 | ||
47 | 47 | let t = addressFromStringValue(s) | |
48 | 48 | ||
49 | 49 | let u = 1 | |
50 | 50 | ||
51 | 51 | let v = 2 | |
52 | 52 | ||
53 | 53 | let w = 3 | |
54 | 54 | ||
55 | 55 | let x = 4 | |
56 | 56 | ||
57 | 57 | func y () = "%s__config" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func z () = split(l(y()), b) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func A (B,C,D,E) = makeString(["%s%s%s%d", B, C, D, toString(E)], b) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func F () = "%s%s__gwxRewardEmissionPart__startHeight" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func G () = "%s__nextUserNum" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func H () = "%s%s__ratePerBlock__current" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func I () = "%s%s__poolWeight__GWXvirtualPOOL" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func J () = "%s__nextProcessedUser" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func K () = "%s__latestPeriod" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func L () = "%s__nextPeriod" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func M () = "%s__nextProcessedPeriod" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func N (O) = makeString(["%s%d__nextClaimedPeriod", toString(O)], b) | |
91 | 91 | ||
92 | 92 | ||
93 | - | func P (O) = makeString(["%s%d__ | |
93 | + | func P (O) = makeString(["%s%d__nextClaimedPeriodNew", toString(O)], b) | |
94 | 94 | ||
95 | 95 | ||
96 | - | func Q ( | |
96 | + | func Q (O) = makeString(["%s%d__lastProcessedPeriod", toString(O)], b) | |
97 | 97 | ||
98 | 98 | ||
99 | - | func | |
99 | + | func R (O) = makeString(["%s%d__lastProcessedPeriodForClaim", toString(O)], b) | |
100 | 100 | ||
101 | 101 | ||
102 | - | func | |
102 | + | func S (T) = makeString(["%s%d__startHeightForPeriod", toString(T)], b) | |
103 | 103 | ||
104 | 104 | ||
105 | - | func U () = "%s__ | |
105 | + | func U (T) = makeString(["%s%d__auxEmissionReward", toString(T)], b) | |
106 | 106 | ||
107 | 107 | ||
108 | - | func V ( | |
108 | + | func V (T) = makeString(["%s%d__totalAmountForPeriod", toString(T)], b) | |
109 | 109 | ||
110 | 110 | ||
111 | - | func | |
111 | + | func W () = "%s__lastPayoutInfo" | |
112 | 112 | ||
113 | 113 | ||
114 | - | func | |
114 | + | func X (T,Y,Z) = makeString(["%d%d%d", toString(T), toString(Y), toString(Z)], b) | |
115 | 115 | ||
116 | 116 | ||
117 | - | func aa ( | |
117 | + | func aa (T) = makeString(["%s%s%d__payouts__history", toString(T)], b) | |
118 | 118 | ||
119 | 119 | ||
120 | - | func ab ( | |
120 | + | func ab (T) = makeString(["%s%d__totalWeightForPeriod", toString(T)], b) | |
121 | 121 | ||
122 | 122 | ||
123 | - | func ac (ad,ae,af,ag,ah,ai,aj) = { | |
124 | - | let ak = makeString(["%s%s%s%s__history", ad, ae, toBase58String(aj.transactionId)], b) | |
125 | - | let al = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(af), toString(ag), toString(ah), toString(ai)], b) | |
126 | - | StringEntry(ak, al) | |
123 | + | func ac (T,O) = makeString(["%s%d%s%d__paramByPeriod", toString(O), "k", toString(T)], b) | |
124 | + | ||
125 | + | ||
126 | + | func ad (T,O) = makeString(["%s%d%s%d__paramByPeriod", toString(O), "b", toString(T)], b) | |
127 | + | ||
128 | + | ||
129 | + | func ae (af,ag,ah,ai,aj,ak,al) = { | |
130 | + | let am = makeString(["%s%s%s%s__history", af, ag, toBase58String(al.transactionId)], b) | |
131 | + | let an = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(ah), toString(ai), toString(aj), toString(ak)], b) | |
132 | + | StringEntry(am, an) | |
127 | 133 | } | |
128 | 134 | ||
129 | 135 | ||
130 | - | func | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | if (isDefined( | |
136 | + | func ao (ap,aq,T,O) = { | |
137 | + | let ar = Q(O) | |
138 | + | let as = ac(T, O) | |
139 | + | let at = getInteger(ap, as) | |
140 | + | if (isDefined(at)) | |
135 | 141 | then { | |
136 | - | let | |
137 | - | let | |
138 | - | let | |
139 | - | if (( | |
140 | - | then $Tuple2(( | |
142 | + | let au = value(at) | |
143 | + | let av = value(getInteger(ap, ad(T, O))) | |
144 | + | let aw = ((au * aq) + av) | |
145 | + | if ((aw > 0)) | |
146 | + | then $Tuple2((aw / e), [IntegerEntry(ar, T)]) | |
141 | 147 | else $Tuple2(0, nil) | |
142 | 148 | } | |
143 | 149 | else { | |
144 | - | let av = getInteger(this, ap) | |
145 | - | if (if (isDefined(av)) | |
146 | - | then (R >= value(av)) | |
147 | - | else false) | |
150 | + | let ax = getInteger(this, ar) | |
151 | + | if (isDefined(ax)) | |
148 | 152 | then { | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | if (( | |
154 | - | then $Tuple2(( | |
153 | + | let ay = value(ax) | |
154 | + | let au = value(getInteger(ap, ac(ay, O))) | |
155 | + | let av = value(getInteger(ap, ad(ay, O))) | |
156 | + | let aw = ((au * aq) + av) | |
157 | + | if ((aw > 0)) | |
158 | + | then $Tuple2((aw / e), nil) | |
155 | 159 | else $Tuple2(0, nil) | |
156 | 160 | } | |
157 | 161 | else $Tuple2(0, nil) | |
158 | 162 | } | |
159 | 163 | } | |
160 | 164 | ||
161 | 165 | ||
162 | - | func ax (D,ay) = { | |
163 | - | let i = makeString(["%s%s%s", "mapping", "user2num", ay], b) | |
164 | - | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String(D)), i), ((("User address " + ay) + " is not found in boosting contract data, key=") + i))) | |
166 | + | func az (ap,aq,T,O,aA) = { | |
167 | + | let ar = R(O) | |
168 | + | let as = ac(T, O) | |
169 | + | let at = getInteger(ap, as) | |
170 | + | let aB = h(N(O)) | |
171 | + | let aC = if ((T >= aB)) | |
172 | + | then (aB > 0) | |
173 | + | else false | |
174 | + | if (isDefined(at)) | |
175 | + | then { | |
176 | + | let au = value(at) | |
177 | + | let av = value(getInteger(ap, ad(T, O))) | |
178 | + | let aw = ((au * aq) + av) | |
179 | + | let aD = if (aA) | |
180 | + | then unit | |
181 | + | else invoke(this, "setInteger", [ar, T], nil) | |
182 | + | if ((aD == aD)) | |
183 | + | then if (if ((aw > 0)) | |
184 | + | then aC | |
185 | + | else false) | |
186 | + | then (aw / e) | |
187 | + | else 0 | |
188 | + | else throw("Strict value is not equal to itself.") | |
189 | + | } | |
190 | + | else { | |
191 | + | let ax = getInteger(this, ar) | |
192 | + | if (isDefined(ax)) | |
193 | + | then { | |
194 | + | let ay = value(ax) | |
195 | + | let au = value(getInteger(ap, ac(ay, O))) | |
196 | + | let av = value(getInteger(ap, ad(ay, O))) | |
197 | + | let aw = ((au * aq) + av) | |
198 | + | if (if ((aw > 0)) | |
199 | + | then aC | |
200 | + | else false) | |
201 | + | then (aw / e) | |
202 | + | else 0 | |
203 | + | } | |
204 | + | else 0 | |
205 | + | } | |
165 | 206 | } | |
166 | 207 | ||
167 | 208 | ||
168 | - | func az () = h(L()) | |
209 | + | func aE (D,aF) = { | |
210 | + | let i = makeString(["%s%s%s", "mapping", "user2num", aF], b) | |
211 | + | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String(D)), i), ((("User address " + aF) + " is not found in boosting contract data, key=") + i))) | |
212 | + | } | |
169 | 213 | ||
170 | 214 | ||
171 | - | func aA (aB,R,ae,aC,aD) = { | |
172 | - | let aE = invoke(this, "processNextBatch", [aB, R, ae, aC, aD], nil) | |
173 | - | if ((aE == aE)) | |
215 | + | func aG () = h(L()) | |
216 | + | ||
217 | + | ||
218 | + | func aH (aI,T,ag,aJ,aK) = { | |
219 | + | let aL = invoke(this, "processNextBatch", [aI, T, ag, aJ, aK], nil) | |
220 | + | if ((aL == aL)) | |
174 | 221 | then { | |
175 | - | let | |
176 | - | if ($isInstanceOf( | |
222 | + | let aM = aL | |
223 | + | if ($isInstanceOf(aM, "(Int, Int, Int)")) | |
177 | 224 | then { | |
178 | - | let | |
179 | - | | |
225 | + | let aN = aM | |
226 | + | aN | |
180 | 227 | } | |
181 | 228 | else throw("Incorrect invoke result") | |
182 | 229 | } | |
183 | 230 | else throw("Strict value is not equal to itself.") | |
184 | 231 | } | |
185 | 232 | ||
186 | 233 | ||
187 | - | func | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | if (if (( | |
194 | - | then ( | |
234 | + | func aO (aI,aj,aP,aJ,aQ) = { | |
235 | + | let ap = Address(aI) | |
236 | + | let ak = h(K()) | |
237 | + | let aR = valueOrElse(getInteger(ap, G()), 0) | |
238 | + | let aS = ab(aj) | |
239 | + | let aq = h(S(aj)) | |
240 | + | if (if ((aJ > 0)) | |
241 | + | then (ak >= aj) | |
195 | 242 | else false) | |
196 | 243 | then { | |
197 | - | let | |
198 | - | let | |
199 | - | if (( | |
244 | + | let aT = ao(ap, aq, aj, aP) | |
245 | + | let aU = (aQ + aT._1) | |
246 | + | if ((aR > (aP + 1))) | |
200 | 247 | then { | |
201 | - | let | |
202 | - | let | |
203 | - | if (( | |
248 | + | let aV = ao(ap, aq, aj, (aP + 1)) | |
249 | + | let aW = (aU + aV._1) | |
250 | + | if ((aR > (aP + 2))) | |
204 | 251 | then { | |
205 | - | let | |
206 | - | let | |
207 | - | if (( | |
252 | + | let aX = ao(ap, aq, aj, (aP + 2)) | |
253 | + | let aY = (aW + aX._1) | |
254 | + | if ((aR > (aP + 3))) | |
208 | 255 | then { | |
209 | - | let | |
210 | - | let | |
211 | - | if (( | |
256 | + | let aZ = ao(ap, aq, aj, (aP + 3)) | |
257 | + | let ba = (aY + aZ._1) | |
258 | + | if ((aR > (aP + 4))) | |
212 | 259 | then { | |
213 | - | let | |
214 | - | let | |
215 | - | if (( | |
260 | + | let bb = ao(ap, aq, aj, (aP + 4)) | |
261 | + | let bc = (ba + bb._1) | |
262 | + | if ((aR > (aP + 5))) | |
216 | 263 | then { | |
217 | - | let | |
218 | - | let | |
219 | - | if (( | |
264 | + | let bd = ao(ap, aq, aj, (aP + 5)) | |
265 | + | let be = (bc + bd._1) | |
266 | + | if ((aR > (aP + 6))) | |
220 | 267 | then { | |
221 | - | let | |
222 | - | $Tuple4(((((( | |
268 | + | let bf = aH(aI, aj, (aP + 6), (aJ - 1), be) | |
269 | + | $Tuple4((((((aT._2 ++ aV._2) ++ aX._2) ++ aZ._2) ++ bb._2) ++ bd._2), bf._1, bf._2, bf._3) | |
223 | 270 | } | |
224 | - | else $Tuple4((((((([IntegerEntry( | |
271 | + | else $Tuple4((((((([IntegerEntry(aS, be)] ++ aT._2) ++ aV._2) ++ aX._2) ++ aZ._2) ++ bb._2) ++ bd._2), (aj + 1), 0, 0) | |
225 | 272 | } | |
226 | - | else $Tuple4(((((([IntegerEntry( | |
273 | + | else $Tuple4(((((([IntegerEntry(aS, bc)] ++ aT._2) ++ aV._2) ++ aX._2) ++ aZ._2) ++ bb._2), (aj + 1), 0, 0) | |
227 | 274 | } | |
228 | - | else $Tuple4((((([IntegerEntry( | |
275 | + | else $Tuple4((((([IntegerEntry(aS, ba)] ++ aT._2) ++ aV._2) ++ aX._2) ++ aZ._2), (aj + 1), 0, 0) | |
229 | 276 | } | |
230 | - | else $Tuple4(((([IntegerEntry( | |
277 | + | else $Tuple4(((([IntegerEntry(aS, aY)] ++ aT._2) ++ aV._2) ++ aX._2), (aj + 1), 0, 0) | |
231 | 278 | } | |
232 | - | else $Tuple4((([IntegerEntry( | |
279 | + | else $Tuple4((([IntegerEntry(aS, aW)] ++ aT._2) ++ aV._2), (aj + 1), 0, 0) | |
233 | 280 | } | |
234 | - | else $Tuple4(([IntegerEntry( | |
281 | + | else $Tuple4(([IntegerEntry(aS, aU)] ++ aT._2), (aj + 1), 0, 0) | |
235 | 282 | } | |
236 | - | else if (( | |
237 | - | then $Tuple4(nil, | |
238 | - | else $Tuple4([IntegerEntry( | |
283 | + | else if ((aP == 0)) | |
284 | + | then $Tuple4(nil, aj, 0, 0) | |
285 | + | else $Tuple4([IntegerEntry(aS, aQ)], aj, aP, 0) | |
239 | 286 | } | |
240 | 287 | ||
241 | 288 | ||
242 | - | func | |
243 | - | let | |
244 | - | if (( | |
289 | + | func bg (aI,T,ag,aJ,bh,bi,aA) = { | |
290 | + | let aL = invoke(this, "claimNextBatch", [aI, T, ag, aJ, bh, bi, aA], nil) | |
291 | + | if ((aL == aL)) | |
245 | 292 | then { | |
246 | - | let | |
247 | - | if ($isInstanceOf( | |
293 | + | let aM = aL | |
294 | + | if ($isInstanceOf(aM, "(Int, Int, Int)")) | |
248 | 295 | then { | |
249 | - | let | |
250 | - | | |
296 | + | let aN = aM | |
297 | + | aN | |
251 | 298 | } | |
252 | 299 | else throw("Incorrect invoke result") | |
253 | 300 | } | |
254 | 301 | else throw("Strict value is not equal to itself.") | |
255 | 302 | } | |
256 | 303 | ||
257 | 304 | ||
258 | - | func bc (aB,ah,aI,aC,bd,be) = { | |
259 | - | let an = Address(aB) | |
260 | - | let ai = h(M()) | |
261 | - | let aJ = h(Z(ah)) | |
262 | - | let ao = h(Q(ah)) | |
263 | - | let bf = am(an, ao, ah, aI) | |
264 | - | let bg = bf._1 | |
265 | - | let bh = bf._2 | |
266 | - | let bi = fraction(h(T(ah)), bg, aJ) | |
267 | - | let bj = fraction(h(S(ah)), bg, aJ) | |
268 | - | if (if ((0 >= aC)) | |
305 | + | func bj (aI,aj,aP,aJ,bk,bl,aA) = { | |
306 | + | let ap = Address(aI) | |
307 | + | let ak = h(M()) | |
308 | + | let aQ = h(ab(aj)) | |
309 | + | let aq = h(S(aj)) | |
310 | + | let bm = az(ap, aq, aj, aP, aA) | |
311 | + | let bn = fraction(h(V(aj)), bm, aQ) | |
312 | + | let bo = fraction(h(U(aj)), bm, aQ) | |
313 | + | if (if ((0 >= aJ)) | |
269 | 314 | then true | |
270 | - | else (( | |
271 | - | then $Tuple3(( | |
272 | - | else | |
315 | + | else ((aj + 1) >= ak)) | |
316 | + | then $Tuple3((aj + 1), (bk + bn), (bl + bo)) | |
317 | + | else bg(aI, (aj + 1), aP, (aJ - 1), (bk + bn), (bl + bo), aA) | |
273 | 318 | } | |
274 | 319 | ||
275 | 320 | ||
276 | - | func | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | if (( | |
321 | + | func bp (aF,aA) = { | |
322 | + | let bq = z() | |
323 | + | let br = aE(bq[w], aF) | |
324 | + | let aj = h(P(br)) | |
325 | + | let bs = h(M()) | |
326 | + | if ((aj >= bs)) | |
282 | 327 | then throw("Nothing to claim") | |
283 | 328 | else { | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | $Tuple6( | |
329 | + | let aI = fromBase58String(bq[w]) | |
330 | + | let bt = bj(aI, aj, br, d, 0, 0, aA) | |
331 | + | let T = bt._1 | |
332 | + | let ah = bt._2 | |
333 | + | let ai = bt._3 | |
334 | + | $Tuple6(T, ah, ai, br, bq, bs) | |
290 | 335 | } | |
291 | 336 | } | |
292 | 337 | ||
293 | 338 | ||
294 | - | @Callable(aj) | |
295 | - | func processNextBatch (aB,ah,aI,aC,aJ) = if ((aj.caller != this)) | |
339 | + | @Callable(al) | |
340 | + | func setInteger (au,bu) = { | |
341 | + | let bv = if ((al.caller == this)) | |
342 | + | then true | |
343 | + | else throw("Should be called by this script only") | |
344 | + | if ((bv == bv)) | |
345 | + | then { | |
346 | + | let bw = [IntegerEntry(au, bu)] | |
347 | + | $Tuple2(bw, bw) | |
348 | + | } | |
349 | + | else throw("Strict value is not equal to itself.") | |
350 | + | } | |
351 | + | ||
352 | + | ||
353 | + | ||
354 | + | @Callable(al) | |
355 | + | func processNextBatch (aI,aj,aP,aJ,aQ) = if ((al.caller != this)) | |
296 | 356 | then throw("Should be called by this script only") | |
297 | 357 | else { | |
298 | - | let | |
299 | - | $Tuple2( | |
358 | + | let bx = aO(aI, aj, aP, aJ, aQ) | |
359 | + | $Tuple2(bx._1, $Tuple3(bx._2, bx._3, bx._4)) | |
300 | 360 | } | |
301 | 361 | ||
302 | 362 | ||
303 | 363 | ||
304 | - | @Callable( | |
364 | + | @Callable(al) | |
305 | 365 | func processPendingPeriodsAndUsers () = { | |
306 | - | let | |
307 | - | if (( | |
366 | + | let aj = h(M()) | |
367 | + | if ((aj > h(K()))) | |
308 | 368 | then throw("Nothing to process") | |
309 | 369 | else { | |
310 | - | let | |
311 | - | let | |
312 | - | if (( | |
370 | + | let bq = z() | |
371 | + | let aJ = parseIntValue(bq[x]) | |
372 | + | if ((aJ > c)) | |
313 | 373 | then throw("Depth exceeds MAXDEPTH") | |
314 | 374 | else { | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | (( | |
375 | + | let aI = fromBase58String(bq[w]) | |
376 | + | let aP = h(J()) | |
377 | + | let aQ = h(ab(aj)) | |
378 | + | let aN = aO(aI, aj, aP, aJ, aQ) | |
379 | + | ((aN._1 :+ IntegerEntry(M(), aN._2)) :+ IntegerEntry(J(), aN._3)) | |
320 | 380 | } | |
321 | 381 | } | |
322 | 382 | } | |
323 | 383 | ||
324 | 384 | ||
325 | 385 | ||
326 | - | @Callable( | |
386 | + | @Callable(al) | |
327 | 387 | func deposit () = { | |
328 | - | let | |
329 | - | if (( | |
388 | + | let bq = z() | |
389 | + | if ((al.caller != Address(fromBase58String(bq[v])))) | |
330 | 390 | then throw("Wrong caller address") | |
331 | 391 | else { | |
332 | - | let | |
333 | - | if (( | |
392 | + | let by = value(value(al.payments[0]).assetId) | |
393 | + | if ((by != fromBase58String(bq[u]))) | |
334 | 394 | then throw("Wrong payment asset") | |
335 | 395 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | if (( | |
396 | + | let T = aG() | |
397 | + | let bz = (height - j(F())) | |
398 | + | let bA = valueOrErrorMessage(getInteger(t, H()), (("mandatory emission_contract." + H()) + " is not defined")) | |
399 | + | let aK = valueOrErrorMessage(getInteger(q, I()), (("mandatory factory_contract." + I()) + " is not defined")) | |
400 | + | let bB = fraction((bz * aK), bA, f) | |
401 | + | let bC = invoke(t, "emit", [bB], nil) | |
402 | + | if ((bC == bC)) | |
343 | 403 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | [IntegerEntry(K(), | |
404 | + | let bD = value(al.payments[0]).amount | |
405 | + | let bE = X(T, bD, bB) | |
406 | + | [IntegerEntry(K(), T), IntegerEntry(S(T), height), IntegerEntry(U(T), bB), IntegerEntry(F(), height), IntegerEntry(V(T), bD), IntegerEntry(L(), (T + 1)), StringEntry(W(), bE), StringEntry(aa(T), bE)] | |
347 | 407 | } | |
348 | 408 | else throw("Strict value is not equal to itself.") | |
349 | 409 | } | |
350 | 410 | } | |
351 | 411 | } | |
352 | 412 | ||
353 | 413 | ||
354 | 414 | ||
355 | - | @Callable( | |
356 | - | func claimNextBatch ( | |
415 | + | @Callable(al) | |
416 | + | func claimNextBatch (aI,aj,aP,aJ,bh,bi,aA) = if ((al.caller != this)) | |
357 | 417 | then throw("Should be called by this script only") | |
358 | 418 | else { | |
359 | - | let | |
360 | - | $Tuple2(nil, | |
419 | + | let bF = bj(aI, aj, aP, aJ, bh, bi, aA) | |
420 | + | $Tuple2(nil, bF) | |
361 | 421 | } | |
362 | 422 | ||
363 | 423 | ||
364 | 424 | ||
365 | - | @Callable( | |
425 | + | @Callable(al) | |
366 | 426 | func claimReward () = { | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | $Tuple2([IntegerEntry( | |
427 | + | let bG = toString(al.caller) | |
428 | + | let bH = bp(bG, false) | |
429 | + | let T = bH._1 | |
430 | + | let ah = bH._2 | |
431 | + | let ai = bH._3 | |
432 | + | let br = bH._4 | |
433 | + | let bq = bH._5 | |
434 | + | let bs = bH._6 | |
435 | + | $Tuple2([IntegerEntry(P(br), T), ScriptTransfer(al.caller, (ah + ai), fromBase58String(bq[u])), ae("claim", bG, ah, ai, T, bs, al)], [ah, ai]) | |
376 | 436 | } | |
377 | 437 | ||
378 | 438 | ||
379 | 439 | ||
380 | - | @Callable( | |
381 | - | func claimRewardREADONLY ( | |
382 | - | let | |
383 | - | let | |
384 | - | $Tuple2(nil, | |
440 | + | @Callable(al) | |
441 | + | func claimRewardREADONLY (bG) = { | |
442 | + | let bI = bp(bG, true) | |
443 | + | let bJ = (bI._2 + bI._3) | |
444 | + | $Tuple2(nil, bJ) | |
385 | 445 | } | |
386 | 446 | ||
387 | 447 | ||
388 | 448 | ||
389 | - | @Callable( | |
390 | - | func claimRewardDetailedREADONLY ( | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | $Tuple2(nil, makeString(["%d%d%d", toString(( | |
449 | + | @Callable(al) | |
450 | + | func claimRewardDetailedREADONLY (bG) = { | |
451 | + | let bK = bp(bG, true) | |
452 | + | let bL = bK._1 | |
453 | + | let bM = bK._2 | |
454 | + | let bN = bK._3 | |
455 | + | $Tuple2(nil, makeString(["%d%d%d", toString((bM + bN)), toString(bM), toString(bN)], b)) | |
396 | 456 | } | |
397 | 457 | ||
398 | 458 | ||
399 | 459 | ||
400 | - | @Callable( | |
401 | - | func latestFinalizedPeriodREADONLY ( | |
460 | + | @Callable(al) | |
461 | + | func latestFinalizedPeriodREADONLY (bG) = $Tuple2(nil, valueOrElse(getInteger(this, K()), -1)) | |
402 | 462 | ||
403 | 463 | ||
404 | 464 | ||
405 | - | @Callable( | |
406 | - | func latestFinalizedPeriodInfoREADONLY ( | |
465 | + | @Callable(al) | |
466 | + | func latestFinalizedPeriodInfoREADONLY (bG) = $Tuple2(nil, k(W())) | |
407 | 467 | ||
408 | 468 | ||
409 | 469 | ||
410 | - | @Callable( | |
411 | - | func calcGwxParamsREADONLY ( | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | $Tuple2(nil, [ | |
470 | + | @Callable(al) | |
471 | + | func calcGwxParamsREADONLY (bO,bP,bQ) = { | |
472 | + | let bR = (bP + bQ) | |
473 | + | let bS = -(fraction(bO, e, bQ)) | |
474 | + | let bT = (fraction(bO, e, bQ) * bR) | |
475 | + | $Tuple2(nil, [bS, bT, aG()]) | |
416 | 476 | } | |
417 | 477 | ||
418 | 478 | ||
419 | 479 | ||
420 | - | @Callable( | |
421 | - | func calcGwxAmountStartREADONLY ( | |
422 | - | let | |
423 | - | let | |
424 | - | $Tuple2(nil, [ | |
480 | + | @Callable(al) | |
481 | + | func calcGwxAmountStartREADONLY (bU,bV,bW) = { | |
482 | + | let bX = fraction(bV, f, bW) | |
483 | + | let bY = fraction(bU, bX, f) | |
484 | + | $Tuple2(nil, [bY]) | |
425 | 485 | } | |
426 | 486 | ||
427 | 487 | ||
428 | 488 | ||
429 | - | @Callable( | |
430 | - | func constructor (B,C,D,E) = if ((this != | |
489 | + | @Callable(al) | |
490 | + | func constructor (B,C,D,E) = if ((this != al.caller)) | |
431 | 491 | then throw("not authorized") | |
432 | 492 | else [StringEntry(y(), A(B, C, D, E))] | |
433 | 493 | ||
434 | 494 | ||
435 | 495 | ||
436 | - | @Callable( | |
437 | - | func constructorV2 ( | |
496 | + | @Callable(al) | |
497 | + | func constructorV2 (bZ) = if ((this != al.caller)) | |
438 | 498 | then throw("not authorized") | |
439 | - | else [StringEntry(o(), | |
499 | + | else [StringEntry(o(), bZ)] | |
440 | 500 | ||
441 | 501 | ||
442 | 502 | ||
443 | - | @Callable( | |
444 | - | func constructorV3 ( | |
503 | + | @Callable(al) | |
504 | + | func constructorV3 (ca) = if ((this != al.caller)) | |
445 | 505 | then throw("not authorized") | |
446 | 506 | else { | |
447 | - | let | |
507 | + | let cb = if (isDefined(getInteger(this, K()))) | |
448 | 508 | then nil | |
449 | 509 | else [IntegerEntry(K(), -1)] | |
450 | - | ( | |
510 | + | (cb :+ StringEntry(r(), ca)) | |
451 | 511 | } | |
452 | 512 | ||
453 | 513 | ||
454 | 514 | ||
455 | - | @Callable( | |
456 | - | func onEmissionForGwxStart () = if (( | |
515 | + | @Callable(al) | |
516 | + | func onEmissionForGwxStart () = if ((al.caller != q)) | |
457 | 517 | then throw("permissions denied") | |
458 | 518 | else [IntegerEntry(F(), height)] | |
459 | 519 | ||
460 | 520 | ||
461 | 521 | ||
462 | - | @Callable( | |
463 | - | func latestPeriodEmissionRewardsREADONLY ( | |
464 | - | let | |
465 | - | $Tuple2(nil, [h( | |
522 | + | @Callable(al) | |
523 | + | func latestPeriodEmissionRewardsREADONLY (bG) = { | |
524 | + | let T = aG() | |
525 | + | $Tuple2(nil, [h(U(T))]) | |
466 | 526 | } | |
467 | 527 | ||
468 | 528 | ||
469 | 529 | ||
470 | - | @Callable( | |
471 | - | func calcD ( | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | if (( | |
530 | + | @Callable(al) | |
531 | + | func calcD (cc,cd,ce,cf,cg) = { | |
532 | + | let ch = toBigInt(2) | |
533 | + | let ci = parseBigIntValue(cf) | |
534 | + | let cj = parseBigIntValue(cg) | |
535 | + | let ck = parseBigIntValue(cc) | |
536 | + | let cl = parseBigIntValue(cd) | |
537 | + | let cm = (parseBigIntValue(ce) * ci) | |
538 | + | let cn = (ck + cl) | |
539 | + | if ((cn == g)) | |
480 | 540 | then $Tuple2(nil, toString(g)) | |
481 | 541 | else { | |
482 | - | let | |
483 | - | let | |
484 | - | func | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | $Tuple2( | |
542 | + | let co = (cm * ch) | |
543 | + | let cp = [1, 2, 3, 4, 5, 6, 7] | |
544 | + | func cq (cr,cs) = { | |
545 | + | let ct = cr | |
546 | + | let cu = ct._1 | |
547 | + | let cv = ct._2 | |
548 | + | let cw = (((cu * cu) * cu) / (((ck * cl) * ch) * ch)) | |
549 | + | let cx = (((((co * cn) / ci) + (cw * ch)) * cu) / ((((co - ci) * cu) / ci) + ((ch + toBigInt(1)) * cw))) | |
550 | + | $Tuple2(cx, cu) | |
491 | 551 | } | |
492 | 552 | ||
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | func | |
498 | - | then | |
499 | - | else | |
553 | + | let cy = { | |
554 | + | let cz = cp | |
555 | + | let cA = size(cz) | |
556 | + | let cB = $Tuple2(cn, unit) | |
557 | + | func cC (cD,cE) = if ((cE >= cA)) | |
558 | + | then cD | |
559 | + | else cq(cD, cz[cE]) | |
500 | 560 | ||
501 | - | func | |
502 | - | then | |
561 | + | func cF (cD,cE) = if ((cE >= cA)) | |
562 | + | then cD | |
503 | 563 | else throw("List size exceeds 7") | |
504 | 564 | ||
505 | - | | |
565 | + | cF(cC(cC(cC(cC(cC(cC(cC(cB, 0), 1), 2), 3), 4), 5), 6), 7) | |
506 | 566 | } | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | if (( | |
511 | - | then $Tuple2(nil, toString( | |
512 | - | else throw(("D calculation error, dDiff = " + toString( | |
567 | + | let cx = cy._1 | |
568 | + | let cv = cy._2 | |
569 | + | let cG = m((cx - value(cv))) | |
570 | + | if ((cj >= cG)) | |
571 | + | then $Tuple2(nil, toString(cx)) | |
572 | + | else throw(("D calculation error, dDiff = " + toString(cG))) | |
513 | 573 | } | |
514 | 574 | } | |
515 | 575 | ||
516 | 576 |
github/deemru/w8io/169f3d6 194.78 ms ◑