tx · 9infFmSwSemZgNBGjP6kd7DHhHBQY9QavdZYVBD9Gx69 3N74cvawpTtuuCbAasBo7oMJYrohgZYFCTj: -0.01400000 Waves 2021.12.23 18:15 [1847071] smart account 3N74cvawpTtuuCbAasBo7oMJYrohgZYFCTj > SELF 0.00000000 Waves
{ "type": 13, "id": "9infFmSwSemZgNBGjP6kd7DHhHBQY9QavdZYVBD9Gx69", "fee": 1400000, "feeAssetId": null, "timestamp": 1640272537014, "version": 1, "sender": "3N74cvawpTtuuCbAasBo7oMJYrohgZYFCTj", "senderPublicKey": "BgnyKECwUvFW1ThWpgKbmHMmJXJRgg5K56jKHZwVMbXL", "proofs": [ "y3qayji1NQAh4wZu4AvZbgZgYo6P5VizxXJFDBwsbUwejweMqaKuvJUYPzmnXdJXFWixCHLVoN2zMwcNehhcJT8" ], "script": "base64:AAIFAAAAAAAAAEUIAhIHCgUCAQEBARIAEgASBwoFAgEBAQESABIDCgEIEgUKAwEBARIFCgMBAQESBgoECAgIARIDCgEIEgASBwoFCAgICAgAAAAsAAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAANTRVACAAAAAl9fAAAAAAhNQVhERVBUSAAAAAAAAAAAEQAAAAAJVVNFUkRFUFRIAAAAAAAAAAAaAAAAAAVTQ0FMRQAAAAAAAAAD6AAAAAAFTVVMVDgAAAAAAAX14QAAAAAACnplcm9CaWdJbnQJAAE2AAAAAQAAAAAAAAAAAAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AgAAAAABAAAAD2dldFN0cmluZ09yRmFpbAAAAAEAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQiA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WZmID0gCQABpgAAAAEFAAAABWREaWZmAAAAAI9PY2A=", "chainId": 84, "height": 1847071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D6GLY9gYQZkDJVecwJrXyrhsktQuPmBR1mzChqvVWbNM Next: none Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | let e = 1000 | |
13 | 13 | ||
14 | - | func f (g) = valueOrElse(getInteger(this, g), 0) | |
14 | + | let f = 100000000 | |
15 | + | ||
16 | + | let g = toBigInt(0) | |
17 | + | ||
18 | + | func h (i) = valueOrElse(getInteger(this, i), 0) | |
15 | 19 | ||
16 | 20 | ||
17 | - | func | |
21 | + | func j (i) = valueOrElse(getString(this, i), "") | |
18 | 22 | ||
19 | 23 | ||
20 | - | func | |
24 | + | func k (i) = valueOrErrorMessage(getString(i), (("mandatory this." + i) + " is not defined")) | |
21 | 25 | ||
22 | 26 | ||
23 | - | let j = 1 | |
24 | - | ||
25 | - | let k = 2 | |
26 | - | ||
27 | - | let l = 3 | |
28 | - | ||
29 | - | let m = 4 | |
30 | - | ||
31 | - | func n () = "%s__config" | |
27 | + | func l (m) = if ((g > m)) | |
28 | + | then -(m) | |
29 | + | else m | |
32 | 30 | ||
33 | 31 | ||
34 | - | func | |
32 | + | func n () = "%s%s__config__factoryAddress" | |
35 | 33 | ||
36 | 34 | ||
37 | - | func p (q,r,s,t) = makeString(["%s%s%s%d", q, r, s, toString(t)], b) | |
35 | + | let o = k(n()) | |
36 | + | ||
37 | + | let p = addressFromStringValue(o) | |
38 | + | ||
39 | + | let q = 1 | |
40 | + | ||
41 | + | let r = 2 | |
42 | + | ||
43 | + | let s = 3 | |
44 | + | ||
45 | + | let t = 4 | |
46 | + | ||
47 | + | func u () = "%s__config" | |
38 | 48 | ||
39 | 49 | ||
40 | - | func | |
50 | + | func v () = split(k(u()), b) | |
41 | 51 | ||
42 | 52 | ||
43 | - | func | |
53 | + | func w (x,y,z,A) = makeString(["%s%s%s%d", x, y, z, toString(A)], b) | |
44 | 54 | ||
45 | 55 | ||
46 | - | func | |
56 | + | func B () = "%s%s__gwxRewardEmissionPart__startHeight" | |
47 | 57 | ||
48 | 58 | ||
49 | - | func | |
59 | + | func C () = "%s__nextUserNum" | |
50 | 60 | ||
51 | 61 | ||
52 | - | func | |
62 | + | func D () = "%s__nextProcessedUser" | |
53 | 63 | ||
54 | 64 | ||
55 | - | func | |
65 | + | func E () = "%s__latestPeriod" | |
56 | 66 | ||
57 | 67 | ||
58 | - | func | |
68 | + | func F () = "%s__nextPeriod" | |
59 | 69 | ||
60 | 70 | ||
61 | - | func | |
71 | + | func G () = "%s__nextProcessedPeriod" | |
62 | 72 | ||
63 | 73 | ||
64 | - | func | |
74 | + | func H (I) = makeString(["%s%d__nextClaimedPeriod", toString(I)], b) | |
65 | 75 | ||
66 | 76 | ||
67 | - | func | |
77 | + | func J (I) = makeString(["%s%d__lastProcessedPeriod", toString(I)], b) | |
68 | 78 | ||
69 | 79 | ||
70 | - | func | |
80 | + | func K (L) = makeString(["%s%d__startHeightForPeriod", toString(L)], b) | |
71 | 81 | ||
72 | 82 | ||
73 | - | func | |
83 | + | func M (L) = makeString(["%s%d__totalAmountForPeriod", toString(L)], b) | |
74 | 84 | ||
75 | 85 | ||
76 | - | func I (J,K,L,M,N,O) = { | |
77 | - | let P = makeString(["%s%s%s%s__history", J, K, toBase58String(O.transactionId)], b) | |
78 | - | let Q = makeString(["%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(L), toString(M), toString(N)], b) | |
79 | - | StringEntry(P, Q) | |
86 | + | func N (L) = makeString(["%s%d__totalWeightForPeriod", toString(L)], b) | |
87 | + | ||
88 | + | ||
89 | + | func O (L,I) = makeString(["%s%d%s%d__paramByPeriod", toString(I), "k", toString(L)], b) | |
90 | + | ||
91 | + | ||
92 | + | func P (L,I) = makeString(["%s%d%s%d__paramByPeriod", toString(I), "b", toString(L)], b) | |
93 | + | ||
94 | + | ||
95 | + | func Q (R,S,T,U,V,W) = { | |
96 | + | let X = makeString(["%s%s%s%s__history", R, S, toBase58String(W.transactionId)], b) | |
97 | + | let Y = makeString(["%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(T), toString(U), toString(V)], b) | |
98 | + | StringEntry(X, Y) | |
80 | 99 | } | |
81 | 100 | ||
82 | 101 | ||
83 | - | func | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | if (isDefined( | |
102 | + | func Z (aa,ab,L,I) = { | |
103 | + | let ac = J(I) | |
104 | + | let ad = O(L, I) | |
105 | + | let ae = getInteger(aa, ad) | |
106 | + | if (isDefined(ae)) | |
88 | 107 | then { | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | if (( | |
93 | - | then $Tuple2(( | |
108 | + | let af = value(ae) | |
109 | + | let ag = value(getInteger(aa, P(L, I))) | |
110 | + | let ah = ((af * ab) + ag) | |
111 | + | if ((ah > 0)) | |
112 | + | then $Tuple2((ah / e), [IntegerEntry(ac, L)]) | |
94 | 113 | else $Tuple2(0, nil) | |
95 | 114 | } | |
96 | 115 | else { | |
97 | - | let | |
98 | - | if (isDefined( | |
116 | + | let ai = getInteger(this, ac) | |
117 | + | if (isDefined(ai)) | |
99 | 118 | then { | |
100 | - | let | |
101 | - | let | |
102 | - | let | |
103 | - | let | |
104 | - | if (( | |
105 | - | then $Tuple2(( | |
119 | + | let aj = value(ai) | |
120 | + | let af = value(getInteger(aa, O(aj, I))) | |
121 | + | let ag = value(getInteger(aa, P(aj, I))) | |
122 | + | let ah = ((af * ab) + ag) | |
123 | + | if ((ah > 0)) | |
124 | + | then $Tuple2((ah / e), nil) | |
106 | 125 | else $Tuple2(0, nil) | |
107 | 126 | } | |
108 | 127 | else $Tuple2(0, nil) | |
110 | 129 | } | |
111 | 130 | ||
112 | 131 | ||
113 | - | func | |
114 | - | let | |
115 | - | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String( | |
132 | + | func ak (z,al) = { | |
133 | + | let i = makeString(["%s%s%s", "mapping", "user2num", al], b) | |
134 | + | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String(z)), i), ((("User address " + al) + " is not found in boosting contract data, key=") + i))) | |
116 | 135 | } | |
117 | 136 | ||
118 | 137 | ||
119 | - | func | |
138 | + | func am () = h(F()) | |
120 | 139 | ||
121 | 140 | ||
122 | - | func | |
123 | - | let | |
124 | - | if (( | |
141 | + | func an (ao,L,S,ap,aq) = { | |
142 | + | let ar = invoke(this, "processNextBatch", [ao, L, S, ap, aq], nil) | |
143 | + | if ((ar == ar)) | |
125 | 144 | then { | |
126 | - | let | |
127 | - | if ($isInstanceOf( | |
145 | + | let as = ar | |
146 | + | if ($isInstanceOf(as, "(Int, Int, Int)")) | |
128 | 147 | then { | |
129 | - | let | |
130 | - | | |
148 | + | let at = as | |
149 | + | at | |
131 | 150 | } | |
132 | 151 | else throw("Incorrect invoke result") | |
133 | 152 | } | |
135 | 154 | } | |
136 | 155 | ||
137 | 156 | ||
138 | - | func | |
139 | - | then | |
140 | - | else $Tuple3(( | |
157 | + | func au (ao,U,V,ap,av,aq) = if ((V >= (U + 1))) | |
158 | + | then an(ao, (U + 1), 0, (ap - 1), 0) | |
159 | + | else $Tuple3((U + 1), 0, 0) | |
141 | 160 | ||
142 | 161 | ||
143 | - | func | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | if (if (( | |
150 | - | then ( | |
162 | + | func aw (ao,U,ax,ap,ay) = { | |
163 | + | let aa = Address(ao) | |
164 | + | let V = h(E()) | |
165 | + | let az = valueOrElse(getInteger(aa, C()), 0) | |
166 | + | let av = N(U) | |
167 | + | let ab = h(K(U)) | |
168 | + | if (if ((ap > 0)) | |
169 | + | then (V >= U) | |
151 | 170 | else false) | |
152 | 171 | then { | |
153 | - | let | |
154 | - | let | |
155 | - | if (( | |
172 | + | let aA = Z(aa, ab, U, ax) | |
173 | + | let aB = (ay + aA._1) | |
174 | + | if ((az > (ax + 1))) | |
156 | 175 | then { | |
157 | - | let | |
158 | - | let | |
159 | - | if (( | |
176 | + | let aC = Z(aa, ab, U, (ax + 1)) | |
177 | + | let aD = (aB + aC._1) | |
178 | + | if ((az > (ax + 2))) | |
160 | 179 | then { | |
161 | - | let | |
162 | - | let | |
163 | - | if (( | |
180 | + | let aE = Z(aa, ab, U, (ax + 2)) | |
181 | + | let aF = (aD + aE._1) | |
182 | + | if ((az > (ax + 3))) | |
164 | 183 | then { | |
165 | - | let | |
166 | - | let | |
167 | - | if (( | |
184 | + | let aG = Z(aa, ab, U, (ax + 3)) | |
185 | + | let aH = (aF + aG._1) | |
186 | + | if ((az > (ax + 4))) | |
168 | 187 | then { | |
169 | - | let | |
170 | - | let | |
171 | - | if (( | |
188 | + | let aI = Z(aa, ab, U, (ax + 4)) | |
189 | + | let aJ = (aH + aI._1) | |
190 | + | if ((az > (ax + 5))) | |
172 | 191 | then { | |
173 | - | let | |
174 | - | let | |
175 | - | if (( | |
192 | + | let aK = Z(aa, ab, U, (ax + 5)) | |
193 | + | let aL = (aJ + aK._1) | |
194 | + | if ((az > (ax + 6))) | |
176 | 195 | then { | |
177 | - | let | |
178 | - | $Tuple4(((((( | |
196 | + | let aM = an(ao, U, (ax + 6), (ap - 1), aL) | |
197 | + | $Tuple4((((((aA._2 ++ aC._2) ++ aE._2) ++ aG._2) ++ aI._2) ++ aK._2), aM._1, aM._2, aM._3) | |
179 | 198 | } | |
180 | 199 | else { | |
181 | - | let | |
182 | - | $Tuple4((((((([IntegerEntry( | |
200 | + | let aM = au(ao, U, V, ap, av, aL) | |
201 | + | $Tuple4((((((([IntegerEntry(av, aL)] ++ aA._2) ++ aC._2) ++ aE._2) ++ aG._2) ++ aI._2) ++ aK._2), aM._1, aM._2, aM._3) | |
183 | 202 | } | |
184 | 203 | } | |
185 | 204 | else { | |
186 | - | let | |
187 | - | $Tuple4(((((([IntegerEntry( | |
205 | + | let aN = au(ao, U, V, ap, av, aJ) | |
206 | + | $Tuple4(((((([IntegerEntry(av, aJ)] ++ aA._2) ++ aC._2) ++ aE._2) ++ aG._2) ++ aI._2), aN._1, aN._2, aN._3) | |
188 | 207 | } | |
189 | 208 | } | |
190 | 209 | else { | |
191 | - | let | |
192 | - | $Tuple4((((([IntegerEntry( | |
210 | + | let aO = au(ao, U, V, ap, av, aH) | |
211 | + | $Tuple4((((([IntegerEntry(av, aH)] ++ aA._2) ++ aC._2) ++ aE._2) ++ aG._2), aO._1, aO._2, aO._3) | |
193 | 212 | } | |
194 | 213 | } | |
195 | 214 | else { | |
196 | - | let | |
197 | - | $Tuple4(((([IntegerEntry( | |
215 | + | let aP = au(ao, U, V, ap, av, aF) | |
216 | + | $Tuple4(((([IntegerEntry(av, aF)] ++ aA._2) ++ aC._2) ++ aE._2), aP._1, aP._2, aP._3) | |
198 | 217 | } | |
199 | 218 | } | |
200 | 219 | else { | |
201 | - | let | |
202 | - | $Tuple4((([IntegerEntry( | |
220 | + | let aQ = au(ao, U, V, ap, av, aD) | |
221 | + | $Tuple4((([IntegerEntry(av, aD)] ++ aA._2) ++ aC._2), aQ._1, aQ._2, aQ._3) | |
203 | 222 | } | |
204 | 223 | } | |
205 | 224 | else { | |
206 | - | let | |
207 | - | $Tuple4(([IntegerEntry( | |
225 | + | let aR = au(ao, U, V, ap, av, aB) | |
226 | + | $Tuple4(([IntegerEntry(av, aB)] ++ aA._2), aR._1, aR._2, aR._3) | |
208 | 227 | } | |
209 | 228 | } | |
210 | - | else if (( | |
211 | - | then $Tuple4(nil, | |
212 | - | else $Tuple4([IntegerEntry( | |
229 | + | else if ((ax == 0)) | |
230 | + | then $Tuple4(nil, U, 0, 0) | |
231 | + | else $Tuple4([IntegerEntry(av, ay)], U, ax, 0) | |
213 | 232 | } | |
214 | 233 | ||
215 | 234 | ||
216 | - | func | |
217 | - | let | |
218 | - | if (( | |
235 | + | func aS (ao,L,S,ap,aT) = { | |
236 | + | let ar = invoke(this, "claimNextBatch", [ao, L, S, ap, aT], nil) | |
237 | + | if ((ar == ar)) | |
219 | 238 | then { | |
220 | - | let | |
221 | - | if ($isInstanceOf( | |
239 | + | let as = ar | |
240 | + | if ($isInstanceOf(as, "(Int, Int)")) | |
222 | 241 | then { | |
223 | - | let | |
224 | - | | |
242 | + | let at = as | |
243 | + | at | |
225 | 244 | } | |
226 | 245 | else throw("Incorrect invoke result") | |
227 | 246 | } | |
229 | 248 | } | |
230 | 249 | ||
231 | 250 | ||
232 | - | func | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | if (if ((0 >= | |
251 | + | func aU (ao,U,ax,ap,aV) = { | |
252 | + | let aa = Address(ao) | |
253 | + | let V = h(G()) | |
254 | + | let ay = h(N(U)) | |
255 | + | let ab = h(K(U)) | |
256 | + | let aW = Z(aa, ab, U, ax) | |
257 | + | let aX = aW._1 | |
258 | + | let aY = aW._2 | |
259 | + | let aZ = fraction(h(M(U)), aX, ay) | |
260 | + | if (if ((0 >= ap)) | |
242 | 261 | then true | |
243 | - | else (( | |
244 | - | then $Tuple2(( | |
245 | - | else | |
262 | + | else ((U + 1) >= V)) | |
263 | + | then $Tuple2((U + 1), (aV + aZ)) | |
264 | + | else aS(ao, (U + 1), ax, (ap - 1), (aV + aZ)) | |
246 | 265 | } | |
247 | 266 | ||
248 | 267 | ||
249 | - | func | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | if (( | |
268 | + | func ba (al) = { | |
269 | + | let bb = v() | |
270 | + | let bc = ak(bb[s], al) | |
271 | + | let U = h(H(bc)) | |
272 | + | let V = h(G()) | |
273 | + | if ((U >= V)) | |
255 | 274 | then throw("Nothing to claim") | |
256 | 275 | else { | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | $Tuple5( | |
276 | + | let ao = fromBase58String(bb[s]) | |
277 | + | let bd = aU(ao, U, bc, d, 0) | |
278 | + | let L = bd._1 | |
279 | + | let T = bd._2 | |
280 | + | $Tuple5(L, T, bc, bb, V) | |
262 | 281 | } | |
263 | 282 | } | |
264 | 283 | ||
265 | 284 | ||
266 | - | @Callable( | |
267 | - | func processNextBatch ( | |
285 | + | @Callable(W) | |
286 | + | func processNextBatch (ao,U,ax,ap,ay) = if ((W.caller != this)) | |
268 | 287 | then throw("Should be called by this script only") | |
269 | 288 | else { | |
270 | - | let | |
271 | - | $Tuple2( | |
289 | + | let be = aw(ao, U, ax, ap, ay) | |
290 | + | $Tuple2(be._1, $Tuple3(be._2, be._3, be._4)) | |
272 | 291 | } | |
273 | 292 | ||
274 | 293 | ||
275 | 294 | ||
276 | - | @Callable( | |
295 | + | @Callable(W) | |
277 | 296 | func processPendingPeriodsAndUsers () = { | |
278 | - | let | |
279 | - | if (( | |
297 | + | let U = h(G()) | |
298 | + | if ((U > h(E()))) | |
280 | 299 | then throw("Nothing to process") | |
281 | 300 | else { | |
282 | - | let | |
283 | - | let | |
284 | - | if (( | |
301 | + | let bb = v() | |
302 | + | let ap = parseIntValue(bb[t]) | |
303 | + | if ((ap > c)) | |
285 | 304 | then throw("Depth exceeds MAXDEPTH") | |
286 | 305 | else { | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | (( | |
306 | + | let ao = fromBase58String(bb[s]) | |
307 | + | let ax = h(D()) | |
308 | + | let ay = h(N(U)) | |
309 | + | let at = aw(ao, U, ax, ap, ay) | |
310 | + | ((at._1 :+ IntegerEntry(G(), at._2)) :+ IntegerEntry(D(), at._3)) | |
292 | 311 | } | |
293 | 312 | } | |
294 | 313 | } | |
295 | 314 | ||
296 | 315 | ||
297 | 316 | ||
298 | - | @Callable( | |
317 | + | @Callable(W) | |
299 | 318 | func deposit () = { | |
300 | - | let | |
301 | - | if (( | |
319 | + | let bb = v() | |
320 | + | if ((W.caller != Address(fromBase58String(bb[r])))) | |
302 | 321 | then throw("Wrong caller address") | |
303 | 322 | else { | |
304 | - | let | |
305 | - | if (( | |
323 | + | let bf = value(value(W.payments[0]).assetId) | |
324 | + | if ((bf != fromBase58String(bb[q]))) | |
306 | 325 | then throw("Wrong payment asset") | |
307 | 326 | else { | |
308 | - | let | |
309 | - | [IntegerEntry( | |
327 | + | let L = am() | |
328 | + | [IntegerEntry(E(), L), IntegerEntry(K(L), height), IntegerEntry(M(L), value(W.payments[0]).amount), IntegerEntry(F(), (L + 1))] | |
310 | 329 | } | |
311 | 330 | } | |
312 | 331 | } | |
313 | 332 | ||
314 | 333 | ||
315 | 334 | ||
316 | - | @Callable( | |
317 | - | func claimNextBatch ( | |
335 | + | @Callable(W) | |
336 | + | func claimNextBatch (ao,U,ax,ap,ay) = if ((W.caller != this)) | |
318 | 337 | then throw("Should be called by this script only") | |
319 | 338 | else { | |
320 | - | let | |
321 | - | $Tuple2(nil, | |
339 | + | let bg = aU(ao, U, ax, ap, ay) | |
340 | + | $Tuple2(nil, bg) | |
322 | 341 | } | |
323 | 342 | ||
324 | 343 | ||
325 | 344 | ||
326 | - | @Callable( | |
345 | + | @Callable(W) | |
327 | 346 | func claimReward () = { | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | $Tuple2([IntegerEntry( | |
347 | + | let bh = toString(W.caller) | |
348 | + | let bi = ba(bh) | |
349 | + | let L = bi._1 | |
350 | + | let T = bi._2 | |
351 | + | let bc = bi._3 | |
352 | + | let bb = bi._4 | |
353 | + | let V = bi._5 | |
354 | + | $Tuple2([IntegerEntry(H(bc), L), ScriptTransfer(W.caller, T, fromBase58String(bb[q])), Q("claim", bh, T, L, V, W)], T) | |
336 | 355 | } | |
337 | 356 | ||
338 | 357 | ||
339 | 358 | ||
340 | - | @Callable( | |
341 | - | func claimRewardREADONLY ( | |
342 | - | let | |
343 | - | let | |
344 | - | $Tuple2(nil, | |
359 | + | @Callable(W) | |
360 | + | func claimRewardREADONLY (bh) = { | |
361 | + | let bj = ba(bh) | |
362 | + | let T = bj._2 | |
363 | + | $Tuple2(nil, T) | |
345 | 364 | } | |
346 | 365 | ||
347 | 366 | ||
348 | 367 | ||
349 | - | @Callable( | |
350 | - | func calcGwxParamsREADONLY ( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | $Tuple2(nil, [ | |
368 | + | @Callable(W) | |
369 | + | func calcGwxParamsREADONLY (bk,bl,bm) = { | |
370 | + | let bn = (bl + bm) | |
371 | + | let bo = -(fraction(bk, e, bm)) | |
372 | + | let bp = (fraction(bk, e, bm) * bn) | |
373 | + | $Tuple2(nil, [bo, bp, am()]) | |
355 | 374 | } | |
356 | 375 | ||
357 | 376 | ||
358 | 377 | ||
359 | - | @Callable(O) | |
360 | - | func constructor (q,r,s,t) = if ((this != O.caller)) | |
378 | + | @Callable(W) | |
379 | + | func calcGwxAmountStartREADONLY (bq,br,bs) = { | |
380 | + | let bt = fraction(br, f, bs) | |
381 | + | let bu = fraction(bq, bt, f) | |
382 | + | $Tuple2(nil, [bu]) | |
383 | + | } | |
384 | + | ||
385 | + | ||
386 | + | ||
387 | + | @Callable(W) | |
388 | + | func constructor (x,y,z,A) = if ((this != W.caller)) | |
361 | 389 | then throw("not authorized") | |
362 | - | else [StringEntry(n(), p(q, r, s, t))] | |
390 | + | else [StringEntry(u(), w(x, y, z, A))] | |
391 | + | ||
392 | + | ||
393 | + | ||
394 | + | @Callable(W) | |
395 | + | func constructorV2 (bv) = if ((this != W.caller)) | |
396 | + | then throw("not authorized") | |
397 | + | else [StringEntry(n(), bv)] | |
398 | + | ||
399 | + | ||
400 | + | ||
401 | + | @Callable(W) | |
402 | + | func onEmissionForGwxStart () = if ((W.caller != p)) | |
403 | + | then throw("permissions denied") | |
404 | + | else [IntegerEntry(B(), height)] | |
405 | + | ||
406 | + | ||
407 | + | ||
408 | + | @Callable(W) | |
409 | + | func calcD (bw,bx,by,bz,bA) = { | |
410 | + | let bB = toBigInt(2) | |
411 | + | let bC = parseBigIntValue(bz) | |
412 | + | let bD = parseBigIntValue(bA) | |
413 | + | let bE = parseBigIntValue(bw) | |
414 | + | let bF = parseBigIntValue(bx) | |
415 | + | let bG = (parseBigIntValue(by) * bC) | |
416 | + | let bH = (bE + bF) | |
417 | + | if ((bH == g)) | |
418 | + | then $Tuple2(nil, toString(g)) | |
419 | + | else { | |
420 | + | let bI = (bG * bB) | |
421 | + | let bJ = [1, 2, 3, 4, 5, 6, 7] | |
422 | + | func bK (bL,bM) = { | |
423 | + | let bN = bL | |
424 | + | let bO = bN._1 | |
425 | + | let bP = bN._2 | |
426 | + | let bQ = (((bO * bO) * bO) / (((bE * bF) * bB) * bB)) | |
427 | + | let bR = (((((bI * bH) / bC) + (bQ * bB)) * bO) / ((((bI - bC) * bO) / bC) + ((bB + toBigInt(1)) * bQ))) | |
428 | + | $Tuple2(bR, bO) | |
429 | + | } | |
430 | + | ||
431 | + | let bS = { | |
432 | + | let bT = bJ | |
433 | + | let bU = size(bT) | |
434 | + | let bV = $Tuple2(bH, unit) | |
435 | + | func bW (bX,bY) = if ((bY >= bU)) | |
436 | + | then bX | |
437 | + | else bK(bX, bT[bY]) | |
438 | + | ||
439 | + | func bZ (bX,bY) = if ((bY >= bU)) | |
440 | + | then bX | |
441 | + | else throw("List size exceeds 7") | |
442 | + | ||
443 | + | bZ(bW(bW(bW(bW(bW(bW(bW(bV, 0), 1), 2), 3), 4), 5), 6), 7) | |
444 | + | } | |
445 | + | let bR = bS._1 | |
446 | + | let bP = bS._2 | |
447 | + | let ca = l((bR - value(bP))) | |
448 | + | if ((bD >= ca)) | |
449 | + | then $Tuple2(nil, toString(bR)) | |
450 | + | else throw(("D calculation error, dDiff = " + toString(ca))) | |
451 | + | } | |
452 | + | } | |
363 | 453 | ||
364 | 454 |
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 | - | func f (g) = valueOrElse(getInteger(this, g), 0) | |
14 | + | let f = 100000000 | |
15 | + | ||
16 | + | let g = toBigInt(0) | |
17 | + | ||
18 | + | func h (i) = valueOrElse(getInteger(this, i), 0) | |
15 | 19 | ||
16 | 20 | ||
17 | - | func | |
21 | + | func j (i) = valueOrElse(getString(this, i), "") | |
18 | 22 | ||
19 | 23 | ||
20 | - | func | |
24 | + | func k (i) = valueOrErrorMessage(getString(i), (("mandatory this." + i) + " is not defined")) | |
21 | 25 | ||
22 | 26 | ||
23 | - | let j = 1 | |
24 | - | ||
25 | - | let k = 2 | |
26 | - | ||
27 | - | let l = 3 | |
28 | - | ||
29 | - | let m = 4 | |
30 | - | ||
31 | - | func n () = "%s__config" | |
27 | + | func l (m) = if ((g > m)) | |
28 | + | then -(m) | |
29 | + | else m | |
32 | 30 | ||
33 | 31 | ||
34 | - | func | |
32 | + | func n () = "%s%s__config__factoryAddress" | |
35 | 33 | ||
36 | 34 | ||
37 | - | func p (q,r,s,t) = makeString(["%s%s%s%d", q, r, s, toString(t)], b) | |
35 | + | let o = k(n()) | |
36 | + | ||
37 | + | let p = addressFromStringValue(o) | |
38 | + | ||
39 | + | let q = 1 | |
40 | + | ||
41 | + | let r = 2 | |
42 | + | ||
43 | + | let s = 3 | |
44 | + | ||
45 | + | let t = 4 | |
46 | + | ||
47 | + | func u () = "%s__config" | |
38 | 48 | ||
39 | 49 | ||
40 | - | func | |
50 | + | func v () = split(k(u()), b) | |
41 | 51 | ||
42 | 52 | ||
43 | - | func | |
53 | + | func w (x,y,z,A) = makeString(["%s%s%s%d", x, y, z, toString(A)], b) | |
44 | 54 | ||
45 | 55 | ||
46 | - | func | |
56 | + | func B () = "%s%s__gwxRewardEmissionPart__startHeight" | |
47 | 57 | ||
48 | 58 | ||
49 | - | func | |
59 | + | func C () = "%s__nextUserNum" | |
50 | 60 | ||
51 | 61 | ||
52 | - | func | |
62 | + | func D () = "%s__nextProcessedUser" | |
53 | 63 | ||
54 | 64 | ||
55 | - | func | |
65 | + | func E () = "%s__latestPeriod" | |
56 | 66 | ||
57 | 67 | ||
58 | - | func | |
68 | + | func F () = "%s__nextPeriod" | |
59 | 69 | ||
60 | 70 | ||
61 | - | func | |
71 | + | func G () = "%s__nextProcessedPeriod" | |
62 | 72 | ||
63 | 73 | ||
64 | - | func | |
74 | + | func H (I) = makeString(["%s%d__nextClaimedPeriod", toString(I)], b) | |
65 | 75 | ||
66 | 76 | ||
67 | - | func | |
77 | + | func J (I) = makeString(["%s%d__lastProcessedPeriod", toString(I)], b) | |
68 | 78 | ||
69 | 79 | ||
70 | - | func | |
80 | + | func K (L) = makeString(["%s%d__startHeightForPeriod", toString(L)], b) | |
71 | 81 | ||
72 | 82 | ||
73 | - | func | |
83 | + | func M (L) = makeString(["%s%d__totalAmountForPeriod", toString(L)], b) | |
74 | 84 | ||
75 | 85 | ||
76 | - | func I (J,K,L,M,N,O) = { | |
77 | - | let P = makeString(["%s%s%s%s__history", J, K, toBase58String(O.transactionId)], b) | |
78 | - | let Q = makeString(["%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(L), toString(M), toString(N)], b) | |
79 | - | StringEntry(P, Q) | |
86 | + | func N (L) = makeString(["%s%d__totalWeightForPeriod", toString(L)], b) | |
87 | + | ||
88 | + | ||
89 | + | func O (L,I) = makeString(["%s%d%s%d__paramByPeriod", toString(I), "k", toString(L)], b) | |
90 | + | ||
91 | + | ||
92 | + | func P (L,I) = makeString(["%s%d%s%d__paramByPeriod", toString(I), "b", toString(L)], b) | |
93 | + | ||
94 | + | ||
95 | + | func Q (R,S,T,U,V,W) = { | |
96 | + | let X = makeString(["%s%s%s%s__history", R, S, toBase58String(W.transactionId)], b) | |
97 | + | let Y = makeString(["%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(T), toString(U), toString(V)], b) | |
98 | + | StringEntry(X, Y) | |
80 | 99 | } | |
81 | 100 | ||
82 | 101 | ||
83 | - | func | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | if (isDefined( | |
102 | + | func Z (aa,ab,L,I) = { | |
103 | + | let ac = J(I) | |
104 | + | let ad = O(L, I) | |
105 | + | let ae = getInteger(aa, ad) | |
106 | + | if (isDefined(ae)) | |
88 | 107 | then { | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | if (( | |
93 | - | then $Tuple2(( | |
108 | + | let af = value(ae) | |
109 | + | let ag = value(getInteger(aa, P(L, I))) | |
110 | + | let ah = ((af * ab) + ag) | |
111 | + | if ((ah > 0)) | |
112 | + | then $Tuple2((ah / e), [IntegerEntry(ac, L)]) | |
94 | 113 | else $Tuple2(0, nil) | |
95 | 114 | } | |
96 | 115 | else { | |
97 | - | let | |
98 | - | if (isDefined( | |
116 | + | let ai = getInteger(this, ac) | |
117 | + | if (isDefined(ai)) | |
99 | 118 | then { | |
100 | - | let | |
101 | - | let | |
102 | - | let | |
103 | - | let | |
104 | - | if (( | |
105 | - | then $Tuple2(( | |
119 | + | let aj = value(ai) | |
120 | + | let af = value(getInteger(aa, O(aj, I))) | |
121 | + | let ag = value(getInteger(aa, P(aj, I))) | |
122 | + | let ah = ((af * ab) + ag) | |
123 | + | if ((ah > 0)) | |
124 | + | then $Tuple2((ah / e), nil) | |
106 | 125 | else $Tuple2(0, nil) | |
107 | 126 | } | |
108 | 127 | else $Tuple2(0, nil) | |
109 | 128 | } | |
110 | 129 | } | |
111 | 130 | ||
112 | 131 | ||
113 | - | func | |
114 | - | let | |
115 | - | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String( | |
132 | + | func ak (z,al) = { | |
133 | + | let i = makeString(["%s%s%s", "mapping", "user2num", al], b) | |
134 | + | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String(z)), i), ((("User address " + al) + " is not found in boosting contract data, key=") + i))) | |
116 | 135 | } | |
117 | 136 | ||
118 | 137 | ||
119 | - | func | |
138 | + | func am () = h(F()) | |
120 | 139 | ||
121 | 140 | ||
122 | - | func | |
123 | - | let | |
124 | - | if (( | |
141 | + | func an (ao,L,S,ap,aq) = { | |
142 | + | let ar = invoke(this, "processNextBatch", [ao, L, S, ap, aq], nil) | |
143 | + | if ((ar == ar)) | |
125 | 144 | then { | |
126 | - | let | |
127 | - | if ($isInstanceOf( | |
145 | + | let as = ar | |
146 | + | if ($isInstanceOf(as, "(Int, Int, Int)")) | |
128 | 147 | then { | |
129 | - | let | |
130 | - | | |
148 | + | let at = as | |
149 | + | at | |
131 | 150 | } | |
132 | 151 | else throw("Incorrect invoke result") | |
133 | 152 | } | |
134 | 153 | else throw("Strict value is not equal to itself.") | |
135 | 154 | } | |
136 | 155 | ||
137 | 156 | ||
138 | - | func | |
139 | - | then | |
140 | - | else $Tuple3(( | |
157 | + | func au (ao,U,V,ap,av,aq) = if ((V >= (U + 1))) | |
158 | + | then an(ao, (U + 1), 0, (ap - 1), 0) | |
159 | + | else $Tuple3((U + 1), 0, 0) | |
141 | 160 | ||
142 | 161 | ||
143 | - | func | |
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | if (if (( | |
150 | - | then ( | |
162 | + | func aw (ao,U,ax,ap,ay) = { | |
163 | + | let aa = Address(ao) | |
164 | + | let V = h(E()) | |
165 | + | let az = valueOrElse(getInteger(aa, C()), 0) | |
166 | + | let av = N(U) | |
167 | + | let ab = h(K(U)) | |
168 | + | if (if ((ap > 0)) | |
169 | + | then (V >= U) | |
151 | 170 | else false) | |
152 | 171 | then { | |
153 | - | let | |
154 | - | let | |
155 | - | if (( | |
172 | + | let aA = Z(aa, ab, U, ax) | |
173 | + | let aB = (ay + aA._1) | |
174 | + | if ((az > (ax + 1))) | |
156 | 175 | then { | |
157 | - | let | |
158 | - | let | |
159 | - | if (( | |
176 | + | let aC = Z(aa, ab, U, (ax + 1)) | |
177 | + | let aD = (aB + aC._1) | |
178 | + | if ((az > (ax + 2))) | |
160 | 179 | then { | |
161 | - | let | |
162 | - | let | |
163 | - | if (( | |
180 | + | let aE = Z(aa, ab, U, (ax + 2)) | |
181 | + | let aF = (aD + aE._1) | |
182 | + | if ((az > (ax + 3))) | |
164 | 183 | then { | |
165 | - | let | |
166 | - | let | |
167 | - | if (( | |
184 | + | let aG = Z(aa, ab, U, (ax + 3)) | |
185 | + | let aH = (aF + aG._1) | |
186 | + | if ((az > (ax + 4))) | |
168 | 187 | then { | |
169 | - | let | |
170 | - | let | |
171 | - | if (( | |
188 | + | let aI = Z(aa, ab, U, (ax + 4)) | |
189 | + | let aJ = (aH + aI._1) | |
190 | + | if ((az > (ax + 5))) | |
172 | 191 | then { | |
173 | - | let | |
174 | - | let | |
175 | - | if (( | |
192 | + | let aK = Z(aa, ab, U, (ax + 5)) | |
193 | + | let aL = (aJ + aK._1) | |
194 | + | if ((az > (ax + 6))) | |
176 | 195 | then { | |
177 | - | let | |
178 | - | $Tuple4(((((( | |
196 | + | let aM = an(ao, U, (ax + 6), (ap - 1), aL) | |
197 | + | $Tuple4((((((aA._2 ++ aC._2) ++ aE._2) ++ aG._2) ++ aI._2) ++ aK._2), aM._1, aM._2, aM._3) | |
179 | 198 | } | |
180 | 199 | else { | |
181 | - | let | |
182 | - | $Tuple4((((((([IntegerEntry( | |
200 | + | let aM = au(ao, U, V, ap, av, aL) | |
201 | + | $Tuple4((((((([IntegerEntry(av, aL)] ++ aA._2) ++ aC._2) ++ aE._2) ++ aG._2) ++ aI._2) ++ aK._2), aM._1, aM._2, aM._3) | |
183 | 202 | } | |
184 | 203 | } | |
185 | 204 | else { | |
186 | - | let | |
187 | - | $Tuple4(((((([IntegerEntry( | |
205 | + | let aN = au(ao, U, V, ap, av, aJ) | |
206 | + | $Tuple4(((((([IntegerEntry(av, aJ)] ++ aA._2) ++ aC._2) ++ aE._2) ++ aG._2) ++ aI._2), aN._1, aN._2, aN._3) | |
188 | 207 | } | |
189 | 208 | } | |
190 | 209 | else { | |
191 | - | let | |
192 | - | $Tuple4((((([IntegerEntry( | |
210 | + | let aO = au(ao, U, V, ap, av, aH) | |
211 | + | $Tuple4((((([IntegerEntry(av, aH)] ++ aA._2) ++ aC._2) ++ aE._2) ++ aG._2), aO._1, aO._2, aO._3) | |
193 | 212 | } | |
194 | 213 | } | |
195 | 214 | else { | |
196 | - | let | |
197 | - | $Tuple4(((([IntegerEntry( | |
215 | + | let aP = au(ao, U, V, ap, av, aF) | |
216 | + | $Tuple4(((([IntegerEntry(av, aF)] ++ aA._2) ++ aC._2) ++ aE._2), aP._1, aP._2, aP._3) | |
198 | 217 | } | |
199 | 218 | } | |
200 | 219 | else { | |
201 | - | let | |
202 | - | $Tuple4((([IntegerEntry( | |
220 | + | let aQ = au(ao, U, V, ap, av, aD) | |
221 | + | $Tuple4((([IntegerEntry(av, aD)] ++ aA._2) ++ aC._2), aQ._1, aQ._2, aQ._3) | |
203 | 222 | } | |
204 | 223 | } | |
205 | 224 | else { | |
206 | - | let | |
207 | - | $Tuple4(([IntegerEntry( | |
225 | + | let aR = au(ao, U, V, ap, av, aB) | |
226 | + | $Tuple4(([IntegerEntry(av, aB)] ++ aA._2), aR._1, aR._2, aR._3) | |
208 | 227 | } | |
209 | 228 | } | |
210 | - | else if (( | |
211 | - | then $Tuple4(nil, | |
212 | - | else $Tuple4([IntegerEntry( | |
229 | + | else if ((ax == 0)) | |
230 | + | then $Tuple4(nil, U, 0, 0) | |
231 | + | else $Tuple4([IntegerEntry(av, ay)], U, ax, 0) | |
213 | 232 | } | |
214 | 233 | ||
215 | 234 | ||
216 | - | func | |
217 | - | let | |
218 | - | if (( | |
235 | + | func aS (ao,L,S,ap,aT) = { | |
236 | + | let ar = invoke(this, "claimNextBatch", [ao, L, S, ap, aT], nil) | |
237 | + | if ((ar == ar)) | |
219 | 238 | then { | |
220 | - | let | |
221 | - | if ($isInstanceOf( | |
239 | + | let as = ar | |
240 | + | if ($isInstanceOf(as, "(Int, Int)")) | |
222 | 241 | then { | |
223 | - | let | |
224 | - | | |
242 | + | let at = as | |
243 | + | at | |
225 | 244 | } | |
226 | 245 | else throw("Incorrect invoke result") | |
227 | 246 | } | |
228 | 247 | else throw("Strict value is not equal to itself.") | |
229 | 248 | } | |
230 | 249 | ||
231 | 250 | ||
232 | - | func | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | if (if ((0 >= | |
251 | + | func aU (ao,U,ax,ap,aV) = { | |
252 | + | let aa = Address(ao) | |
253 | + | let V = h(G()) | |
254 | + | let ay = h(N(U)) | |
255 | + | let ab = h(K(U)) | |
256 | + | let aW = Z(aa, ab, U, ax) | |
257 | + | let aX = aW._1 | |
258 | + | let aY = aW._2 | |
259 | + | let aZ = fraction(h(M(U)), aX, ay) | |
260 | + | if (if ((0 >= ap)) | |
242 | 261 | then true | |
243 | - | else (( | |
244 | - | then $Tuple2(( | |
245 | - | else | |
262 | + | else ((U + 1) >= V)) | |
263 | + | then $Tuple2((U + 1), (aV + aZ)) | |
264 | + | else aS(ao, (U + 1), ax, (ap - 1), (aV + aZ)) | |
246 | 265 | } | |
247 | 266 | ||
248 | 267 | ||
249 | - | func | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | if (( | |
268 | + | func ba (al) = { | |
269 | + | let bb = v() | |
270 | + | let bc = ak(bb[s], al) | |
271 | + | let U = h(H(bc)) | |
272 | + | let V = h(G()) | |
273 | + | if ((U >= V)) | |
255 | 274 | then throw("Nothing to claim") | |
256 | 275 | else { | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | let | |
261 | - | $Tuple5( | |
276 | + | let ao = fromBase58String(bb[s]) | |
277 | + | let bd = aU(ao, U, bc, d, 0) | |
278 | + | let L = bd._1 | |
279 | + | let T = bd._2 | |
280 | + | $Tuple5(L, T, bc, bb, V) | |
262 | 281 | } | |
263 | 282 | } | |
264 | 283 | ||
265 | 284 | ||
266 | - | @Callable( | |
267 | - | func processNextBatch ( | |
285 | + | @Callable(W) | |
286 | + | func processNextBatch (ao,U,ax,ap,ay) = if ((W.caller != this)) | |
268 | 287 | then throw("Should be called by this script only") | |
269 | 288 | else { | |
270 | - | let | |
271 | - | $Tuple2( | |
289 | + | let be = aw(ao, U, ax, ap, ay) | |
290 | + | $Tuple2(be._1, $Tuple3(be._2, be._3, be._4)) | |
272 | 291 | } | |
273 | 292 | ||
274 | 293 | ||
275 | 294 | ||
276 | - | @Callable( | |
295 | + | @Callable(W) | |
277 | 296 | func processPendingPeriodsAndUsers () = { | |
278 | - | let | |
279 | - | if (( | |
297 | + | let U = h(G()) | |
298 | + | if ((U > h(E()))) | |
280 | 299 | then throw("Nothing to process") | |
281 | 300 | else { | |
282 | - | let | |
283 | - | let | |
284 | - | if (( | |
301 | + | let bb = v() | |
302 | + | let ap = parseIntValue(bb[t]) | |
303 | + | if ((ap > c)) | |
285 | 304 | then throw("Depth exceeds MAXDEPTH") | |
286 | 305 | else { | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | (( | |
306 | + | let ao = fromBase58String(bb[s]) | |
307 | + | let ax = h(D()) | |
308 | + | let ay = h(N(U)) | |
309 | + | let at = aw(ao, U, ax, ap, ay) | |
310 | + | ((at._1 :+ IntegerEntry(G(), at._2)) :+ IntegerEntry(D(), at._3)) | |
292 | 311 | } | |
293 | 312 | } | |
294 | 313 | } | |
295 | 314 | ||
296 | 315 | ||
297 | 316 | ||
298 | - | @Callable( | |
317 | + | @Callable(W) | |
299 | 318 | func deposit () = { | |
300 | - | let | |
301 | - | if (( | |
319 | + | let bb = v() | |
320 | + | if ((W.caller != Address(fromBase58String(bb[r])))) | |
302 | 321 | then throw("Wrong caller address") | |
303 | 322 | else { | |
304 | - | let | |
305 | - | if (( | |
323 | + | let bf = value(value(W.payments[0]).assetId) | |
324 | + | if ((bf != fromBase58String(bb[q]))) | |
306 | 325 | then throw("Wrong payment asset") | |
307 | 326 | else { | |
308 | - | let | |
309 | - | [IntegerEntry( | |
327 | + | let L = am() | |
328 | + | [IntegerEntry(E(), L), IntegerEntry(K(L), height), IntegerEntry(M(L), value(W.payments[0]).amount), IntegerEntry(F(), (L + 1))] | |
310 | 329 | } | |
311 | 330 | } | |
312 | 331 | } | |
313 | 332 | ||
314 | 333 | ||
315 | 334 | ||
316 | - | @Callable( | |
317 | - | func claimNextBatch ( | |
335 | + | @Callable(W) | |
336 | + | func claimNextBatch (ao,U,ax,ap,ay) = if ((W.caller != this)) | |
318 | 337 | then throw("Should be called by this script only") | |
319 | 338 | else { | |
320 | - | let | |
321 | - | $Tuple2(nil, | |
339 | + | let bg = aU(ao, U, ax, ap, ay) | |
340 | + | $Tuple2(nil, bg) | |
322 | 341 | } | |
323 | 342 | ||
324 | 343 | ||
325 | 344 | ||
326 | - | @Callable( | |
345 | + | @Callable(W) | |
327 | 346 | func claimReward () = { | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | $Tuple2([IntegerEntry( | |
347 | + | let bh = toString(W.caller) | |
348 | + | let bi = ba(bh) | |
349 | + | let L = bi._1 | |
350 | + | let T = bi._2 | |
351 | + | let bc = bi._3 | |
352 | + | let bb = bi._4 | |
353 | + | let V = bi._5 | |
354 | + | $Tuple2([IntegerEntry(H(bc), L), ScriptTransfer(W.caller, T, fromBase58String(bb[q])), Q("claim", bh, T, L, V, W)], T) | |
336 | 355 | } | |
337 | 356 | ||
338 | 357 | ||
339 | 358 | ||
340 | - | @Callable( | |
341 | - | func claimRewardREADONLY ( | |
342 | - | let | |
343 | - | let | |
344 | - | $Tuple2(nil, | |
359 | + | @Callable(W) | |
360 | + | func claimRewardREADONLY (bh) = { | |
361 | + | let bj = ba(bh) | |
362 | + | let T = bj._2 | |
363 | + | $Tuple2(nil, T) | |
345 | 364 | } | |
346 | 365 | ||
347 | 366 | ||
348 | 367 | ||
349 | - | @Callable( | |
350 | - | func calcGwxParamsREADONLY ( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | $Tuple2(nil, [ | |
368 | + | @Callable(W) | |
369 | + | func calcGwxParamsREADONLY (bk,bl,bm) = { | |
370 | + | let bn = (bl + bm) | |
371 | + | let bo = -(fraction(bk, e, bm)) | |
372 | + | let bp = (fraction(bk, e, bm) * bn) | |
373 | + | $Tuple2(nil, [bo, bp, am()]) | |
355 | 374 | } | |
356 | 375 | ||
357 | 376 | ||
358 | 377 | ||
359 | - | @Callable(O) | |
360 | - | func constructor (q,r,s,t) = if ((this != O.caller)) | |
378 | + | @Callable(W) | |
379 | + | func calcGwxAmountStartREADONLY (bq,br,bs) = { | |
380 | + | let bt = fraction(br, f, bs) | |
381 | + | let bu = fraction(bq, bt, f) | |
382 | + | $Tuple2(nil, [bu]) | |
383 | + | } | |
384 | + | ||
385 | + | ||
386 | + | ||
387 | + | @Callable(W) | |
388 | + | func constructor (x,y,z,A) = if ((this != W.caller)) | |
361 | 389 | then throw("not authorized") | |
362 | - | else [StringEntry(n(), p(q, r, s, t))] | |
390 | + | else [StringEntry(u(), w(x, y, z, A))] | |
391 | + | ||
392 | + | ||
393 | + | ||
394 | + | @Callable(W) | |
395 | + | func constructorV2 (bv) = if ((this != W.caller)) | |
396 | + | then throw("not authorized") | |
397 | + | else [StringEntry(n(), bv)] | |
398 | + | ||
399 | + | ||
400 | + | ||
401 | + | @Callable(W) | |
402 | + | func onEmissionForGwxStart () = if ((W.caller != p)) | |
403 | + | then throw("permissions denied") | |
404 | + | else [IntegerEntry(B(), height)] | |
405 | + | ||
406 | + | ||
407 | + | ||
408 | + | @Callable(W) | |
409 | + | func calcD (bw,bx,by,bz,bA) = { | |
410 | + | let bB = toBigInt(2) | |
411 | + | let bC = parseBigIntValue(bz) | |
412 | + | let bD = parseBigIntValue(bA) | |
413 | + | let bE = parseBigIntValue(bw) | |
414 | + | let bF = parseBigIntValue(bx) | |
415 | + | let bG = (parseBigIntValue(by) * bC) | |
416 | + | let bH = (bE + bF) | |
417 | + | if ((bH == g)) | |
418 | + | then $Tuple2(nil, toString(g)) | |
419 | + | else { | |
420 | + | let bI = (bG * bB) | |
421 | + | let bJ = [1, 2, 3, 4, 5, 6, 7] | |
422 | + | func bK (bL,bM) = { | |
423 | + | let bN = bL | |
424 | + | let bO = bN._1 | |
425 | + | let bP = bN._2 | |
426 | + | let bQ = (((bO * bO) * bO) / (((bE * bF) * bB) * bB)) | |
427 | + | let bR = (((((bI * bH) / bC) + (bQ * bB)) * bO) / ((((bI - bC) * bO) / bC) + ((bB + toBigInt(1)) * bQ))) | |
428 | + | $Tuple2(bR, bO) | |
429 | + | } | |
430 | + | ||
431 | + | let bS = { | |
432 | + | let bT = bJ | |
433 | + | let bU = size(bT) | |
434 | + | let bV = $Tuple2(bH, unit) | |
435 | + | func bW (bX,bY) = if ((bY >= bU)) | |
436 | + | then bX | |
437 | + | else bK(bX, bT[bY]) | |
438 | + | ||
439 | + | func bZ (bX,bY) = if ((bY >= bU)) | |
440 | + | then bX | |
441 | + | else throw("List size exceeds 7") | |
442 | + | ||
443 | + | bZ(bW(bW(bW(bW(bW(bW(bW(bV, 0), 1), 2), 3), 4), 5), 6), 7) | |
444 | + | } | |
445 | + | let bR = bS._1 | |
446 | + | let bP = bS._2 | |
447 | + | let ca = l((bR - value(bP))) | |
448 | + | if ((bD >= ca)) | |
449 | + | then $Tuple2(nil, toString(bR)) | |
450 | + | else throw(("D calculation error, dDiff = " + toString(ca))) | |
451 | + | } | |
452 | + | } | |
363 | 453 | ||
364 | 454 |
github/deemru/w8io/169f3d6 136.51 ms ◑