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