tx · Exks2UkriPFqjRP5E8F3QS8vd8gYfCLqdJdYVVTQQwU1 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02300000 Waves 2023.02.15 15:58 [2450754] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "Exks2UkriPFqjRP5E8F3QS8vd8gYfCLqdJdYVVTQQwU1", "fee": 2300000, "feeAssetId": null, "timestamp": 1676465943347, "version": 2, "chainId": 84, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "5ooLQnVwA4TFt8Ea9Sftt92mwwFx63oTgM5un41rmrnUAYh41wAuBN7cxjzVDvrhJcC1XD9VJn6fW1pDCgcAGDL5" ], "script": "base64:BgKbJggCEggKBggIAQEBCBIFCgMBCAISAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIECgIIARIAEgMKAQgSACIDU0VQIgZTQ0FMRTgiBU1VTFQ4Ig5QT09MV0VJR0hUTVVMVCIHd3JhcEVyciIDbXNnIgh0aHJvd0VyciIEc3RyZiIHYWRkcmVzcyIDa2V5IgNpb3oiA2lvZCIKZGVmYXVsdFZhbCIDaW9mIgNhYnMiA3ZhbCIDYWFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgJhaSIGdmFsSW50IhtrZXlSZWZlcnJhbHNDb250cmFjdEFkZHJlc3MiHnJlZmVycmFsc0NvbnRyYWN0QWRkcmVzc09yRmFpbCIWa2V5UmVmZXJyYWxQcm9ncmFtTmFtZSIacmVmZXJyYWxQcm9ncmFtTmFtZURlZmF1bHQiE3JlZmVycmFsUHJvZ3JhbU5hbWUiEWtleUZhY3RvcnlBZGRyZXNzIhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAiFElkeEZ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zCQCRAwIIBQJlQQZwcm9vZnMAAAUCZUMmWFT+", "height": 2450754, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2aqxbZWuHHMFndQpkSuvdwNXtU2oUhxgPx9M3XKQYnbL Next: BskLMfXpLaR9V9pDsWzAWTWriKeW8XPeQk4d2whGb51u Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | - | func e (f | |
12 | + | func e (f) = makeString(["boosting.ride:", f], " ") | |
13 | 13 | ||
14 | 14 | ||
15 | - | func | |
15 | + | func g (f) = throw(e(f)) | |
16 | 16 | ||
17 | 17 | ||
18 | - | func | |
18 | + | func h (i,j) = valueOrErrorMessage(getString(i, j), (("mandatory this." + j) + " is not defined")) | |
19 | 19 | ||
20 | 20 | ||
21 | - | func k ( | |
21 | + | func k (i,j) = valueOrElse(getInteger(i, j), 0) | |
22 | 22 | ||
23 | 23 | ||
24 | - | func l (m) = if ((0 > m)) | |
25 | - | then -(m) | |
26 | - | else m | |
24 | + | func l (i,j,m) = valueOrElse(getInteger(i, j), m) | |
27 | 25 | ||
28 | 26 | ||
29 | - | func n (m) = { | |
30 | - | let o = m | |
31 | - | if ($isInstanceOf(o, "List[Any]")) | |
27 | + | func n (i,j) = valueOrErrorMessage(getInteger(i, j), (("mandatory this." + j) + " is not defined")) | |
28 | + | ||
29 | + | ||
30 | + | func o (p) = if ((0 > p)) | |
31 | + | then -(p) | |
32 | + | else p | |
33 | + | ||
34 | + | ||
35 | + | func q (p) = { | |
36 | + | let r = p | |
37 | + | if ($isInstanceOf(r, "List[Any]")) | |
32 | 38 | then { | |
33 | - | let | |
34 | - | | |
39 | + | let s = r | |
40 | + | s | |
35 | 41 | } | |
36 | 42 | else throw("fail to cast into List[Any]") | |
37 | 43 | } | |
38 | 44 | ||
39 | 45 | ||
40 | - | func | |
41 | - | let | |
42 | - | if ($isInstanceOf( | |
46 | + | func t (p) = { | |
47 | + | let r = p | |
48 | + | if ($isInstanceOf(r, "Int")) | |
43 | 49 | then { | |
44 | - | let | |
45 | - | | |
50 | + | let u = r | |
51 | + | u | |
46 | 52 | } | |
47 | 53 | else throw("fail to cast into Int") | |
48 | 54 | } | |
49 | 55 | ||
50 | 56 | ||
51 | - | func | |
57 | + | func v () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
52 | 58 | ||
53 | 59 | ||
54 | - | let | |
60 | + | let w = addressFromStringValue(h(this, v())) | |
55 | 61 | ||
56 | - | let | |
62 | + | let x = makeString(["%s%s", "referral", "programName"], a) | |
57 | 63 | ||
58 | - | let | |
64 | + | let y = "wxlock" | |
59 | 65 | ||
60 | - | let | |
66 | + | let z = valueOrElse(getString(this, x), y) | |
61 | 67 | ||
62 | - | func | |
68 | + | func A () = "%s%s__config__factoryAddress" | |
63 | 69 | ||
64 | 70 | ||
65 | - | let | |
71 | + | let B = 1 | |
66 | 72 | ||
67 | - | let | |
73 | + | let C = 2 | |
68 | 74 | ||
69 | - | let | |
75 | + | let D = 3 | |
70 | 76 | ||
71 | - | let | |
77 | + | let E = 4 | |
72 | 78 | ||
73 | - | let | |
79 | + | let F = 5 | |
74 | 80 | ||
75 | - | let | |
81 | + | let G = 6 | |
76 | 82 | ||
77 | - | let | |
83 | + | let H = 7 | |
78 | 84 | ||
79 | - | let | |
85 | + | let I = 8 | |
80 | 86 | ||
81 | - | let | |
87 | + | let J = 9 | |
82 | 88 | ||
83 | - | let | |
89 | + | let K = 10 | |
84 | 90 | ||
85 | - | let | |
91 | + | let L = 11 | |
86 | 92 | ||
87 | - | func | |
93 | + | func M () = "%s__factoryConfig" | |
88 | 94 | ||
89 | 95 | ||
90 | - | func | |
96 | + | func N (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a) | |
91 | 97 | ||
92 | 98 | ||
93 | - | func | |
99 | + | func P () = "%s__lpTokensList" | |
94 | 100 | ||
95 | 101 | ||
96 | - | func | |
102 | + | func Q (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a) | |
97 | 103 | ||
98 | 104 | ||
99 | - | func | |
105 | + | func R (S) = makeString(["%s%s", "poolWeight", S], a) | |
100 | 106 | ||
101 | 107 | ||
102 | - | func | |
108 | + | func T (U,V) = ((("%s%s__poolWeight__" + U) + "__") + toString(V)) | |
103 | 109 | ||
104 | 110 | ||
105 | - | func | |
111 | + | func W () = addressFromStringValue(h(this, A())) | |
106 | 112 | ||
107 | 113 | ||
108 | - | func | |
114 | + | func X () = split(valueOrElse(getString(W(), P()), ""), a) | |
109 | 115 | ||
110 | 116 | ||
111 | - | func | |
117 | + | func Y (Z) = split(h(Z, M()), a) | |
112 | 118 | ||
113 | 119 | ||
114 | - | func | |
120 | + | func aa (ab) = addressFromStringValue(ab[C]) | |
115 | 121 | ||
116 | 122 | ||
117 | - | func | |
123 | + | func ac (ab) = addressFromStringValue(ab[F]) | |
118 | 124 | ||
119 | 125 | ||
120 | - | func | |
126 | + | func ad (ab) = addressFromStringValue(ab[B]) | |
121 | 127 | ||
122 | 128 | ||
123 | - | func | |
129 | + | func ae (ab) = addressFromStringValue(ab[K]) | |
124 | 130 | ||
125 | 131 | ||
126 | - | func | |
132 | + | func af () = "%s__managerPublicKey" | |
127 | 133 | ||
128 | 134 | ||
129 | - | func | |
135 | + | func ag () = "%s__pendingManagerPublicKey" | |
130 | 136 | ||
131 | 137 | ||
132 | - | func | |
138 | + | func ah () = "%s%s__ratePerBlock__current" | |
133 | 139 | ||
134 | 140 | ||
135 | - | func | |
141 | + | func ai () = "%s%s__ratePerBlockMax__current" | |
136 | 142 | ||
137 | 143 | ||
138 | - | func | |
144 | + | func aj () = "%s%s__emission__startBlock" | |
139 | 145 | ||
140 | 146 | ||
141 | - | func | |
147 | + | func ak () = "%s%s__boostingV2__startBlock" | |
142 | 148 | ||
143 | 149 | ||
144 | - | func | |
150 | + | func al () = "%s%s__emission__duration" | |
145 | 151 | ||
146 | 152 | ||
147 | - | func | |
153 | + | func am () = "%s%s__emission__endBlock" | |
148 | 154 | ||
149 | 155 | ||
150 | - | func | |
156 | + | func an () = "%s__nextPeriod" | |
151 | 157 | ||
152 | 158 | ||
153 | - | func | |
159 | + | func ao () = "%s%s__gwxRewardEmissionPart__startHeight" | |
154 | 160 | ||
155 | 161 | ||
156 | - | let | |
162 | + | let ap = 1 | |
157 | 163 | ||
158 | - | let | |
164 | + | let aq = 2 | |
159 | 165 | ||
160 | - | let | |
166 | + | let ar = 3 | |
161 | 167 | ||
162 | - | let | |
168 | + | let as = 4 | |
163 | 169 | ||
164 | - | let | |
170 | + | let at = 5 | |
165 | 171 | ||
166 | - | func | |
172 | + | func au () = "%s__config" | |
167 | 173 | ||
168 | 174 | ||
169 | - | func | |
175 | + | func av () = split(h(this, au()), a) | |
170 | 176 | ||
171 | 177 | ||
172 | - | let | |
178 | + | let aw = addressFromStringValue(av()[at]) | |
173 | 179 | ||
174 | - | func | |
180 | + | func ax (ay,az,aA,aB,aw) = makeString(["%s%d%d%d", ay, az, aA, aB, aw], a) | |
175 | 181 | ||
176 | 182 | ||
177 | - | func | |
183 | + | func aC (ay,az,aA,aB,aw) = ax(ay, toString(az), toString(aA), toString(aB), aw) | |
178 | 184 | ||
179 | 185 | ||
180 | - | func | |
181 | - | let | |
182 | - | if ($isInstanceOf( | |
186 | + | func aD () = { | |
187 | + | let r = getString(af()) | |
188 | + | if ($isInstanceOf(r, "String")) | |
183 | 189 | then { | |
184 | - | let | |
185 | - | fromBase58String( | |
190 | + | let aE = r | |
191 | + | fromBase58String(aE) | |
186 | 192 | } | |
187 | - | else if ($isInstanceOf( | |
193 | + | else if ($isInstanceOf(r, "Unit")) | |
188 | 194 | then unit | |
189 | 195 | else throw("Match error") | |
190 | 196 | } | |
191 | 197 | ||
192 | 198 | ||
193 | - | func | |
194 | - | let | |
195 | - | if ($isInstanceOf( | |
199 | + | func aF () = { | |
200 | + | let r = getString(ag()) | |
201 | + | if ($isInstanceOf(r, "String")) | |
196 | 202 | then { | |
197 | - | let | |
198 | - | fromBase58String( | |
203 | + | let aE = r | |
204 | + | fromBase58String(aE) | |
199 | 205 | } | |
200 | - | else if ($isInstanceOf( | |
206 | + | else if ($isInstanceOf(r, "Unit")) | |
201 | 207 | then unit | |
202 | 208 | else throw("Match error") | |
203 | 209 | } | |
204 | 210 | ||
205 | 211 | ||
206 | - | func | |
207 | - | let | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
212 | + | func aG (aH) = { | |
213 | + | let aI = throw("Permission denied") | |
214 | + | let r = aD() | |
215 | + | if ($isInstanceOf(r, "ByteVector")) | |
210 | 216 | then { | |
211 | - | let | |
212 | - | if (( | |
217 | + | let aJ = r | |
218 | + | if ((aH.callerPublicKey == aJ)) | |
213 | 219 | then true | |
214 | - | else | |
220 | + | else aI | |
215 | 221 | } | |
216 | - | else if ($isInstanceOf( | |
217 | - | then if (( | |
222 | + | else if ($isInstanceOf(r, "Unit")) | |
223 | + | then if ((aH.caller == this)) | |
218 | 224 | then true | |
219 | - | else | |
225 | + | else aI | |
220 | 226 | else throw("Match error") | |
221 | 227 | } | |
222 | 228 | ||
223 | 229 | ||
224 | - | let | |
230 | + | let aK = 1 | |
225 | 231 | ||
226 | - | let | |
232 | + | let aL = 2 | |
227 | 233 | ||
228 | - | let | |
234 | + | let aM = 3 | |
229 | 235 | ||
230 | - | let | |
236 | + | let aN = 4 | |
231 | 237 | ||
232 | - | let | |
238 | + | let aO = 5 | |
233 | 239 | ||
234 | - | let | |
240 | + | let aP = 6 | |
235 | 241 | ||
236 | - | func | |
242 | + | func aQ (aR) = makeString(["%s%s__lock", aR], a) | |
237 | 243 | ||
238 | 244 | ||
239 | - | func | |
245 | + | func aS (aR) = split(h(this, aQ(aR)), a) | |
240 | 246 | ||
241 | 247 | ||
242 | - | func | |
248 | + | func aT (aU,aV,aW,aX,aY,aZ,ba,bb) = makeString(["%d%d%d%d%d%d%d%d", aU, aV, aW, aX, aY, aZ, ba, bb], a) | |
243 | 249 | ||
244 | 250 | ||
245 | - | func | |
251 | + | func bc (aU,aV,aW,aX,aY,aZ,bb) = aT(aU, toString(aV), toString(aW), toString(aX), toString(aY), toString(aZ), toString(lastBlock.timestamp), toString(bb)) | |
246 | 252 | ||
247 | 253 | ||
248 | - | func | |
254 | + | func bd () = "%s__nextUserNum" | |
249 | 255 | ||
250 | 256 | ||
251 | - | func | |
257 | + | func be (aR) = makeString(["%s%s%s__mapping__user2num", aR], a) | |
252 | 258 | ||
253 | 259 | ||
254 | - | func | |
260 | + | func bf (V) = makeString(["%s%s%s__mapping__num2user", V], a) | |
255 | 261 | ||
256 | 262 | ||
257 | - | func | |
263 | + | func bg (aU) = makeString(["%s%d%s__paramByUserNum", aU, "amount"], a) | |
258 | 264 | ||
259 | 265 | ||
260 | - | func | |
266 | + | func bh (aU) = makeString(["%s%d%s__paramByUserNum", aU, "start"], a) | |
261 | 267 | ||
262 | 268 | ||
263 | - | func | |
269 | + | func bi (aU) = makeString(["%s%d%s__paramByUserNum", aU, "duration"], a) | |
264 | 270 | ||
265 | 271 | ||
266 | - | func | |
272 | + | func bj (aU) = makeString(["%s%d%s__paramByUserNum", aU, "k"], a) | |
267 | 273 | ||
268 | 274 | ||
269 | - | func | |
275 | + | func bk (aU) = makeString(["%s%d%s__paramByUserNum", aU, "b"], a) | |
270 | 276 | ||
271 | 277 | ||
272 | - | func | |
278 | + | func bl (aU,bm) = makeString(["%s%d%s%d__paramByPeriod", aU, "k", bm], a) | |
273 | 279 | ||
274 | 280 | ||
275 | - | func | |
281 | + | func bn (aU,bm) = makeString(["%s%d%s%d__paramByPeriod", aU, "b", bm], a) | |
276 | 282 | ||
277 | 283 | ||
278 | - | func | |
284 | + | func bo () = "%s%s__stats__activeTotalLocked" | |
279 | 285 | ||
280 | 286 | ||
281 | - | func | |
287 | + | func bp () = "%s%s__stats__locksDurationSumInBlocks" | |
282 | 288 | ||
283 | 289 | ||
284 | - | func | |
290 | + | func bq () = "%s%s__stats__locksCount" | |
285 | 291 | ||
286 | 292 | ||
287 | - | func | |
293 | + | func br () = "%s%s__stats__activeUsersCount" | |
288 | 294 | ||
289 | 295 | ||
290 | - | func | |
296 | + | func bs (aU) = makeString(["%s%d__userBoostEmissionLastIntV2", aU], a) | |
291 | 297 | ||
292 | 298 | ||
293 | - | func | |
299 | + | func bt (aU,bu) = makeString(["%s%d__userBoostEmissionLastIntV2", aU, bu], a) | |
294 | 300 | ||
295 | 301 | ||
296 | - | func | |
302 | + | func bv (aU) = makeString(["%s%d__maxBoostInt", aU], a) | |
297 | 303 | ||
298 | 304 | ||
299 | - | func | |
305 | + | func bw () = "%s%s__maxBoostInt__total" | |
300 | 306 | ||
301 | 307 | ||
302 | - | func | |
308 | + | func bx (aU) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aU], a) | |
303 | 309 | ||
304 | 310 | ||
305 | - | func | |
311 | + | func by (aU) = makeString(["%s%d__userBoostClaimed", aU], a) | |
306 | 312 | ||
307 | 313 | ||
308 | - | func | |
314 | + | func bz () = "%s%s__gwxCached__total" | |
309 | 315 | ||
310 | 316 | ||
311 | - | func | |
317 | + | func bA () = "%s__gwxCachedTotalCorrective" | |
312 | 318 | ||
313 | 319 | ||
314 | - | let | |
320 | + | let bB = W() | |
315 | 321 | ||
316 | - | let | |
322 | + | let ab = Y(bB) | |
317 | 323 | ||
318 | - | let | |
324 | + | let bC = ac(ab) | |
319 | 325 | ||
320 | - | let | |
326 | + | let bD = ad(ab) | |
321 | 327 | ||
322 | - | let | |
328 | + | let bE = ae(ab) | |
323 | 329 | ||
324 | - | let | |
330 | + | let bF = makeString(["%s", "votingEmissionContract"], a) | |
325 | 331 | ||
326 | - | let | |
332 | + | let bG = addressFromStringValue(getStringValue(bB, bF)) | |
327 | 333 | ||
328 | - | let | |
329 | - | let | |
330 | - | if ($isInstanceOf( | |
331 | - | then | |
332 | - | else throw(($getType( | |
334 | + | let bH = { | |
335 | + | let bI = invoke(bC, "getBoostCoeffREADONLY", nil, nil) | |
336 | + | if ($isInstanceOf(bI, "Int")) | |
337 | + | then bI | |
338 | + | else throw(($getType(bI) + " couldn't be cast to Int")) | |
333 | 339 | } | |
334 | 340 | ||
335 | - | func | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | then ( | |
341 | + | func bJ (bK) = { | |
342 | + | let bL = makeString(["%s", "currentEpochUi"], a) | |
343 | + | let bM = getIntegerValue(bG, bL) | |
344 | + | let bN = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
345 | + | let bO = getInteger(this, bN) | |
346 | + | let bP = valueOrElse(getInteger(this, bz()), 0) | |
347 | + | let bQ = if (isDefined(bO)) | |
348 | + | then (bM >= value(bO)) | |
343 | 349 | else false | |
344 | - | let | |
345 | - | then | |
350 | + | let bR = if (if (bQ) | |
351 | + | then bK | |
346 | 352 | else false) | |
347 | - | then valueOrElse(getInteger(this, | |
353 | + | then valueOrElse(getInteger(this, bA()), 0) | |
348 | 354 | else 0 | |
349 | - | max([0, ( | |
355 | + | max([0, (bP + bR)]) | |
350 | 356 | } | |
351 | 357 | ||
352 | 358 | ||
353 | - | func | |
354 | - | let | |
355 | - | let | |
356 | - | StringEntry( | |
359 | + | func bS (bT,bU,aV,bV,aX,bW,bX,aH) = { | |
360 | + | let bY = makeString(["%s%s%s%s__history", bT, bU, toBase58String(aH.transactionId)], a) | |
361 | + | let bZ = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aV), toString(bV), toString(aX), toString(bW), toString(bX)], a) | |
362 | + | StringEntry(bY, bZ) | |
357 | 363 | } | |
358 | 364 | ||
359 | 365 | ||
360 | - | func | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | [ | |
366 | + | func ca (cb,cc,cd,ce) = { | |
367 | + | let cf = bp() | |
368 | + | let cg = bq() | |
369 | + | let ch = br() | |
370 | + | let ci = bo() | |
371 | + | let cj = k(this, cf) | |
372 | + | let ck = k(this, cg) | |
373 | + | let cl = k(this, ch) | |
374 | + | let cm = k(this, ci) | |
375 | + | [IntegerEntry(cf, (cj + cc)), IntegerEntry(cg, (ck + cd)), IntegerEntry(ch, (cl + ce)), IntegerEntry(ci, (cm + cb))] | |
370 | 376 | } | |
371 | 377 | ||
372 | 378 | ||
373 | - | func | |
374 | - | let | |
375 | - | ((( | |
379 | + | func cn (co,cp,cq) = { | |
380 | + | let cr = 1000 | |
381 | + | (((co * cq) + cp) / cr) | |
376 | 382 | } | |
377 | 383 | ||
378 | 384 | ||
379 | - | func | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | [ | |
385 | + | func cs (aR,aU,aV,aW,aX,bW,bX,bm) = { | |
386 | + | let ct = bg(aU) | |
387 | + | let cu = bh(aU) | |
388 | + | let cv = bi(aU) | |
389 | + | let cw = bj(aU) | |
390 | + | let cx = bk(aU) | |
391 | + | let cy = bl(aU, bm) | |
392 | + | let cz = bn(aU, bm) | |
393 | + | let bb = cn(bW, bX, height) | |
394 | + | [IntegerEntry(ct, aV), IntegerEntry(cu, aW), IntegerEntry(cv, aX), IntegerEntry(cw, bW), IntegerEntry(cx, bX), IntegerEntry(cy, bW), IntegerEntry(cz, bX), StringEntry(aQ(aR), bc(aU, aV, aW, aX, bW, bX, bb))] | |
389 | 395 | } | |
390 | 396 | ||
391 | 397 | ||
392 | - | func | |
398 | + | func cA (aH,cB) = if ((size(aH.payments) > 1)) | |
393 | 399 | then throw("only one payment is allowed") | |
394 | - | else if ((size( | |
400 | + | else if ((size(aH.payments) == 0)) | |
395 | 401 | then 0 | |
396 | 402 | else { | |
397 | - | let | |
398 | - | if ((value( | |
403 | + | let cC = aH.payments[0] | |
404 | + | if ((value(cC.assetId) != cB)) | |
399 | 405 | then throw("invalid asset id in payment") | |
400 | - | else | |
406 | + | else cC.amount | |
401 | 407 | } | |
402 | 408 | ||
403 | 409 | ||
404 | - | func | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
410 | + | func cD (aR,cE) = { | |
411 | + | let cF = "empty" | |
412 | + | let cG = be(aR) | |
413 | + | let aU = valueOrElse(getString(cG), cF) | |
414 | + | let bW = valueOrElse(getInteger(bj(aU)), 0) | |
415 | + | let bX = valueOrElse(getInteger(bk(aU)), 0) | |
416 | + | let cH = cn(bW, bX, cE) | |
417 | + | let bb = if ((0 > cH)) | |
412 | 418 | then 0 | |
413 | - | else | |
414 | - | | |
419 | + | else cH | |
420 | + | bb | |
415 | 421 | } | |
416 | 422 | ||
417 | 423 | ||
418 | - | func | |
424 | + | func cI (aR) = cD(aR, height) | |
419 | 425 | ||
420 | 426 | ||
421 | - | func cG (cH,cI,cJ) = { | |
422 | - | let cC = "EMPTY" | |
423 | - | let cK = valueOrElse(getString(this, aN(cI)), cC) | |
424 | - | if ((cK == cC)) | |
427 | + | func cJ (cK,cL) = { | |
428 | + | let aR = addressFromStringValue(cL) | |
429 | + | let cM = 4 | |
430 | + | let cN = 5 | |
431 | + | let cO = { | |
432 | + | let bI = invoke(bB, "getPoolConfigByLpAssetId", [cK], nil) | |
433 | + | if ($isInstanceOf(bI, "List[Any]")) | |
434 | + | then bI | |
435 | + | else throw(($getType(bI) + " couldn't be cast to List[Any]")) | |
436 | + | } | |
437 | + | let cP = { | |
438 | + | let bI = cO[cM] | |
439 | + | if ($isInstanceOf(bI, "String")) | |
440 | + | then bI | |
441 | + | else throw(($getType(bI) + " couldn't be cast to String")) | |
442 | + | } | |
443 | + | let cQ = { | |
444 | + | let bI = cO[cN] | |
445 | + | if ($isInstanceOf(bI, "String")) | |
446 | + | then bI | |
447 | + | else throw(($getType(bI) + " couldn't be cast to String")) | |
448 | + | } | |
449 | + | let cR = makeString(["%s", "currentEpoch"], a) | |
450 | + | let cS = { | |
451 | + | let cT = (value(getInteger(this, cR)) - 1) | |
452 | + | if ((0 > cT)) | |
453 | + | then g("invalid epoch") | |
454 | + | else cT | |
455 | + | } | |
456 | + | func cU (cV,i,cT) = makeString(["%s%s%s%s%d", "vote", cP, cQ, toString(i), toString(cT)], a) | |
457 | + | ||
458 | + | func cW (cV,cT) = makeString(["%s%s%s%d", "votingResult", cP, cQ, toString(cT)], a) | |
459 | + | ||
460 | + | let cV = $Tuple2(cP, cQ) | |
461 | + | let cX = valueOrElse(getInteger(this, cU(cV, aR, cS)), 0) | |
462 | + | let cY = valueOrElse(getInteger(this, cW(cV, cS)), 0) | |
463 | + | $Tuple2(cX, cY) | |
464 | + | } | |
465 | + | ||
466 | + | ||
467 | + | func cZ (cK,cL,da) = { | |
468 | + | let cF = "EMPTY" | |
469 | + | let db = valueOrElse(getString(this, aQ(cL)), cF) | |
470 | + | if ((db == cF)) | |
425 | 471 | then $Tuple3(0, nil, "userRecord::is::empty") | |
426 | 472 | else { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
473 | + | let dc = split(db, a) | |
474 | + | let dd = dc[aK] | |
475 | + | let de = "empty" | |
476 | + | let df = if ((cK != de)) | |
431 | 477 | then { | |
432 | - | let | |
433 | - | getIntegerValue( | |
478 | + | let dg = valueOrErrorMessage(getString(bB, N(cK)), ("unsupported lp asset " + cK)) | |
479 | + | getIntegerValue(bB, R(dg)) | |
434 | 480 | } | |
435 | - | else if ( | |
481 | + | else if (da) | |
436 | 482 | then 0 | |
437 | - | else throw(("not readonly mode: unsupported lp asset " + | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | then | |
483 | + | else throw(("not readonly mode: unsupported lp asset " + cK)) | |
484 | + | let dh = n(bC, ah()) | |
485 | + | let di = n(bC, ak()) | |
486 | + | let dj = n(bC, am()) | |
487 | + | let cq = if ((height > dj)) | |
488 | + | then dj | |
443 | 489 | else height | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | if ((0 > | |
490 | + | let dk = max([(cq - di), 0]) | |
491 | + | let dl = bt(dd, cK) | |
492 | + | let dm = bs(dd) | |
493 | + | let dn = valueOrElse(getInteger(this, dl), k(this, dm)) | |
494 | + | let do = (((dh * dk) * (bH - 1)) / bH) | |
495 | + | let dp = (do - dn) | |
496 | + | let dq = fraction(dp, bH, ((bH - 1) * dh)) | |
497 | + | let dr = (cq - dq) | |
498 | + | if ((0 > dp)) | |
453 | 499 | then throw("wrong calculations") | |
454 | 500 | else { | |
455 | - | let db = bs(cM) | |
456 | - | let dc = bt() | |
457 | - | let dd = h(this, db) | |
458 | - | let de = h(this, dc) | |
459 | - | let df = { | |
460 | - | let bF = invoke(bD, "getVoteInfoREADONLY", [cH, cI], nil) | |
461 | - | if ($isInstanceOf(bF, "(Int, Int)")) | |
462 | - | then bF | |
463 | - | else throw(($getType(bF) + " couldn't be cast to (Int, Int)")) | |
464 | - | } | |
465 | - | let dg = df._1 | |
466 | - | let dh = df._2 | |
467 | - | let di = bu(cM) | |
468 | - | let dj = h(this, di) | |
469 | - | let dk = fraction(cY, cO, d) | |
470 | - | let dl = if ((dh == 0)) | |
501 | + | let ds = bv(dd) | |
502 | + | let dt = bw() | |
503 | + | let du = k(this, ds) | |
504 | + | let dv = k(this, dt) | |
505 | + | let dw = cJ(cK, cL) | |
506 | + | let cX = dw._1 | |
507 | + | let dx = dw._2 | |
508 | + | let dy = bx(dd) | |
509 | + | let dz = k(this, dy) | |
510 | + | let dA = fraction(dp, df, d) | |
511 | + | let dB = if ((dx == 0)) | |
471 | 512 | then 0 | |
472 | - | else fraction( | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | $Tuple3( | |
513 | + | else fraction(dA, cX, dx) | |
514 | + | let dC = by(dd) | |
515 | + | let dD = k(this, dC) | |
516 | + | let dE = (dB - dD) | |
517 | + | let dF = [IntegerEntry(dl, do)] | |
518 | + | let dG = makeString([toString(dn), toString(dp), toString(dD), toString(dE), toString(df), toString(cq), toString(dq), toString(dr), toString(cX), toString(dx)], ":") | |
519 | + | $Tuple3(dB, dF, dG) | |
479 | 520 | } | |
480 | 521 | } | |
481 | 522 | } | |
482 | 523 | ||
483 | 524 | ||
484 | - | func | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | if ((size( | |
525 | + | func dH (aH,aX) = { | |
526 | + | let dI = av() | |
527 | + | let dJ = dI[ap] | |
528 | + | let ay = fromBase58String(dJ) | |
529 | + | let az = parseIntValue(dI[aq]) | |
530 | + | let aA = parseIntValue(dI[ar]) | |
531 | + | let aB = parseIntValue(dI[as]) | |
532 | + | if ((size(aH.payments) != 1)) | |
492 | 533 | then throw("invalid payment - exact one payment must be attached") | |
493 | 534 | else { | |
494 | - | let | |
495 | - | let | |
496 | - | if (( | |
497 | - | then throw((("invalid asset is in payment - " + | |
535 | + | let cC = aH.payments[0] | |
536 | + | let dK = cC.amount | |
537 | + | if ((ay != value(cC.assetId))) | |
538 | + | then throw((("invalid asset is in payment - " + dJ) + " is expected")) | |
498 | 539 | else { | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | then value(getString( | |
504 | - | else toString( | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | if (( | |
511 | - | then throw(("amount is less then minLockAmount=" + toString( | |
512 | - | else if (( | |
513 | - | then throw(("passed duration is less then minLockDuration=" + toString( | |
514 | - | else if (( | |
515 | - | then throw(("passed duration is greater then maxLockDuration=" + toString( | |
516 | - | else if (if ( | |
517 | - | then (( | |
540 | + | let dL = bd() | |
541 | + | let cL = toString(aH.caller) | |
542 | + | let dM = isDefined(getString(be(cL))) | |
543 | + | let dd = if (dM) | |
544 | + | then value(getString(be(cL))) | |
545 | + | else toString(n(this, dL)) | |
546 | + | let aU = parseIntValue(dd) | |
547 | + | let bV = height | |
548 | + | let cu = bh(dd) | |
549 | + | let cv = bi(dd) | |
550 | + | let ct = bg(dd) | |
551 | + | if ((az > dK)) | |
552 | + | then throw(("amount is less then minLockAmount=" + toString(az))) | |
553 | + | else if ((aA > aX)) | |
554 | + | then throw(("passed duration is less then minLockDuration=" + toString(aA))) | |
555 | + | else if ((aX > aB)) | |
556 | + | then throw(("passed duration is greater then maxLockDuration=" + toString(aB))) | |
557 | + | else if (if (dM) | |
558 | + | then ((n(this, cu) + n(this, cv)) >= bV) | |
518 | 559 | else false) | |
519 | 560 | then throw("there is an active lock - consider to use increaseLock") | |
520 | - | else if (( | |
521 | - | then throw(("there are locked WXs - consider to use increaseLock " + | |
561 | + | else if ((k(this, ct) > 0)) | |
562 | + | then throw(("there are locked WXs - consider to use increaseLock " + ct)) | |
522 | 563 | else { | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | then | |
564 | + | let dN = fraction(aX, c, aB) | |
565 | + | let dO = fraction(dK, dN, c) | |
566 | + | let dP = q(invoke(aw, "calcGwxParamsREADONLY", [dO, bV, aX], nil)) | |
567 | + | let bW = t(dP[0]) | |
568 | + | let bX = t(dP[1]) | |
569 | + | let bm = toString(t(dP[2])) | |
570 | + | let dh = n(bC, ah()) | |
571 | + | let dQ = n(bC, aj()) | |
572 | + | let dj = n(bC, am()) | |
573 | + | let cq = if ((height > dj)) | |
574 | + | then dj | |
534 | 575 | else height | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
576 | + | let dk = max([(cq - dQ), 0]) | |
577 | + | let dm = bs(dd) | |
578 | + | let do = (((dh * dk) * 2) / 3) | |
579 | + | let ds = bv(dd) | |
580 | + | let dt = bw() | |
581 | + | let du = ((dO * aX) / 2) | |
582 | + | let dv = k(this, dt) | |
583 | + | let bP = bJ(false) | |
584 | + | let dR = if (dM) | |
544 | 585 | then nil | |
545 | - | else [IntegerEntry( | |
546 | - | $Tuple2((((( | |
586 | + | else [IntegerEntry(dL, (aU + 1)), StringEntry(be(cL), dd), StringEntry(bf(dd), cL)] | |
587 | + | $Tuple2(((((dR ++ cs(cL, dd, dK, bV, aX, bW, bX, bm)) ++ ca(dK, aX, 1, if (dM) | |
547 | 588 | then 0 | |
548 | - | else 1)) :+ | |
589 | + | else 1)) :+ bS("lock", cL, dK, bV, aX, bW, bX, aH)) ++ [IntegerEntry(dm, do), IntegerEntry(bz(), (bP + dO))]), dO) | |
549 | 590 | } | |
550 | 591 | } | |
551 | 592 | } | |
552 | 593 | } | |
553 | 594 | ||
554 | 595 | ||
555 | - | @Callable( | |
556 | - | func constructor ( | |
557 | - | let | |
558 | - | if (( | |
559 | - | then ([IntegerEntry( | |
596 | + | @Callable(aH) | |
597 | + | func constructor (dS,dT,az,dU,dV,aw) = { | |
598 | + | let dW = aG(aH) | |
599 | + | if ((dW == dW)) | |
600 | + | then ([IntegerEntry(bd(), 0), StringEntry(au(), aC(dT, az, dU, dV, aw)), StringEntry(A(), dS)] ++ ca(0, 0, 0, 0)) | |
560 | 601 | else throw("Strict value is not equal to itself.") | |
561 | 602 | } | |
562 | 603 | ||
563 | 604 | ||
564 | 605 | ||
565 | - | @Callable( | |
566 | - | func lockRef ( | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
606 | + | @Callable(aH) | |
607 | + | func lockRef (aX,dX,dY) = { | |
608 | + | let dZ = dH(aH, aX) | |
609 | + | let ea = dZ._1 | |
610 | + | let dO = dZ._2 | |
611 | + | let eb = toString(aH.caller) | |
612 | + | let ec = if (if ((dX == "")) | |
572 | 613 | then true | |
573 | - | else ( | |
614 | + | else (dY == base58'')) | |
574 | 615 | then unit | |
575 | - | else invoke( | |
576 | - | if (( | |
616 | + | else invoke(w, "createPair", [z, dX, eb, dY], nil) | |
617 | + | if ((ec == ec)) | |
577 | 618 | then { | |
578 | - | let | |
579 | - | if (( | |
580 | - | then $Tuple2( | |
619 | + | let ed = invoke(aw, "updateReferralActivity", [toString(aH.caller), dO], nil) | |
620 | + | if ((ed == ed)) | |
621 | + | then $Tuple2(ea, unit) | |
581 | 622 | else throw("Strict value is not equal to itself.") | |
582 | 623 | } | |
583 | 624 | else throw("Strict value is not equal to itself.") | |
585 | 626 | ||
586 | 627 | ||
587 | 628 | ||
588 | - | @Callable( | |
589 | - | func lock ( | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | if (( | |
595 | - | then $Tuple2( | |
629 | + | @Callable(aH) | |
630 | + | func lock (aX) = { | |
631 | + | let ee = dH(aH, aX) | |
632 | + | let ea = ee._1 | |
633 | + | let dO = ee._2 | |
634 | + | let ed = invoke(aw, "updateReferralActivity", [toString(aH.caller), dO], nil) | |
635 | + | if ((ed == ed)) | |
636 | + | then $Tuple2(ea, unit) | |
596 | 637 | else throw("Strict value is not equal to itself.") | |
597 | 638 | } | |
598 | 639 | ||
599 | 640 | ||
600 | 641 | ||
601 | - | @Callable( | |
602 | - | func increaseLock ( | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | if ((0 > | |
642 | + | @Callable(aH) | |
643 | + | func increaseLock (ef) = { | |
644 | + | let dI = av() | |
645 | + | let dJ = dI[ap] | |
646 | + | let ay = fromBase58String(dJ) | |
647 | + | let aA = parseIntValue(dI[ar]) | |
648 | + | let aB = parseIntValue(dI[as]) | |
649 | + | let dK = cA(aH, ay) | |
650 | + | let cL = toString(aH.caller) | |
651 | + | let dc = aS(cL) | |
652 | + | let dd = dc[aK] | |
653 | + | let eg = parseIntValue(dc[aL]) | |
654 | + | let bV = parseIntValue(dc[aM]) | |
655 | + | let eh = parseIntValue(dc[aN]) | |
656 | + | let ei = (bV + eh) | |
657 | + | let ej = max([(ei - height), 0]) | |
658 | + | let ek = (eg + dK) | |
659 | + | let el = (ej + ef) | |
660 | + | if ((0 > ef)) | |
620 | 661 | then throw("duration is less then zero") | |
621 | - | else if (( | |
622 | - | then throw(("lockDurationNew is less then minLockDuration=" + toString( | |
623 | - | else if (( | |
624 | - | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString( | |
662 | + | else if ((aA > el)) | |
663 | + | then throw(("lockDurationNew is less then minLockDuration=" + toString(aA))) | |
664 | + | else if ((el > aB)) | |
665 | + | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(aB))) | |
625 | 666 | else { | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | if (( | |
667 | + | let dN = fraction(el, c, aB) | |
668 | + | let dO = fraction(ek, dN, c) | |
669 | + | let ed = invoke(aw, "updateReferralActivity", [toString(aH.caller), dO], nil) | |
670 | + | if ((ed == ed)) | |
630 | 671 | then { | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | then | |
672 | + | let em = height | |
673 | + | let dP = q(invoke(aw, "calcGwxParamsREADONLY", [dO, em, el], nil)) | |
674 | + | let bW = t(dP[0]) | |
675 | + | let bX = t(dP[1]) | |
676 | + | let bm = toString(t(dP[2])) | |
677 | + | let dh = n(bC, ah()) | |
678 | + | let dQ = n(bC, aj()) | |
679 | + | let dj = n(bC, am()) | |
680 | + | let cq = if ((height > dj)) | |
681 | + | then dj | |
641 | 682 | else height | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | if ((0 > | |
683 | + | let dk = max([(cq - dQ), 0]) | |
684 | + | let dm = bs(dd) | |
685 | + | let dn = k(this, dm) | |
686 | + | let do = (((dh * dk) * 2) / 3) | |
687 | + | let dp = (do - dn) | |
688 | + | if ((0 > dp)) | |
648 | 689 | then throw("wrong calculations") | |
649 | 690 | else { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | if ((0 > | |
657 | - | then throw(("gwxDiff is less then 0: " + toString( | |
691 | + | let ds = bv(dd) | |
692 | + | let dt = bw() | |
693 | + | let du = k(this, ds) | |
694 | + | let dv = k(this, dt) | |
695 | + | let en = cI(cL) | |
696 | + | let eo = (dO - en) | |
697 | + | if ((0 > eo)) | |
698 | + | then throw(("gwxDiff is less then 0: " + toString(eo))) | |
658 | 699 | else { | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | ((( | |
700 | + | let bP = bJ(false) | |
701 | + | let ep = bJ(true) | |
702 | + | let dy = bx(dd) | |
703 | + | let dz = k(this, dy) | |
704 | + | let dB = fraction(dp, en, ep) | |
705 | + | let eq = ((dO * el) / 2) | |
706 | + | let er = ((en * ej) / 2) | |
707 | + | let es = (eq - er) | |
708 | + | (((cs(cL, dd, ek, em, el, bW, bX, bm) ++ ca(dK, ef, 0, 0)) :+ bS("lock", cL, dK, bV, el, bW, bX, aH)) ++ [IntegerEntry(bz(), (bP + eo))]) | |
668 | 709 | } | |
669 | 710 | } | |
670 | 711 | } | |
674 | 715 | ||
675 | 716 | ||
676 | 717 | ||
677 | - | @Callable( | |
678 | - | func claimWxBoost ( | |
718 | + | @Callable(aH) | |
719 | + | func claimWxBoost (cK,cL) = if ((bD != aH.caller)) | |
679 | 720 | then throw("permissions denied") | |
680 | 721 | else { | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | $Tuple2( | |
722 | + | let et = cZ(cK, cL, false) | |
723 | + | let dE = et._1 | |
724 | + | let dF = et._2 | |
725 | + | let dG = et._3 | |
726 | + | $Tuple2(dF, [dE]) | |
686 | 727 | } | |
687 | 728 | ||
688 | 729 | ||
689 | 730 | ||
690 | - | @Callable( | |
691 | - | func claimWxBoostREADONLY ( | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | $Tuple2(nil, [ | |
731 | + | @Callable(aH) | |
732 | + | func claimWxBoostREADONLY (cK,cL) = { | |
733 | + | let eu = cZ(cK, cL, true) | |
734 | + | let dE = eu._1 | |
735 | + | let dF = eu._2 | |
736 | + | let dG = eu._3 | |
737 | + | $Tuple2(nil, [dE, dG]) | |
697 | 738 | } | |
698 | 739 | ||
699 | 740 | ||
700 | 741 | ||
701 | - | @Callable( | |
702 | - | func unlock ( | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | if (( | |
712 | - | then throw((("wait " + toString( | |
713 | - | else if ((0 >= | |
742 | + | @Callable(aH) | |
743 | + | func unlock (aR) = { | |
744 | + | let dc = aS(aR) | |
745 | + | let dd = dc[aK] | |
746 | + | let eg = parseIntValue(dc[aL]) | |
747 | + | let bV = parseIntValue(dc[aM]) | |
748 | + | let eh = parseIntValue(dc[aN]) | |
749 | + | let ei = (bV + eh) | |
750 | + | let dI = av() | |
751 | + | let ay = fromBase58String(dI[ap]) | |
752 | + | if ((ei >= height)) | |
753 | + | then throw((("wait " + toString(ei)) + " to unlock")) | |
754 | + | else if ((0 >= eg)) | |
714 | 755 | then throw("nothing to unlock") | |
715 | 756 | else { | |
716 | - | let | |
717 | - | ((( | |
757 | + | let bm = valueOrElse(getInteger(aw, an()), 0) | |
758 | + | (((cs(aR, dd, 0, bV, eh, 0, 0, toString(bm)) ++ ca(-(eg), 0, 0, -1)) :+ bS("unlock", aR, eg, bV, eh, 0, 0, aH)) :+ ScriptTransfer(addressFromStringValue(aR), eg, ay)) | |
718 | 759 | } | |
719 | 760 | } | |
720 | 761 | ||
721 | 762 | ||
722 | 763 | ||
723 | - | @Callable( | |
724 | - | func gwxUserInfoREADONLY ( | |
725 | - | let | |
726 | - | $Tuple2(nil, [ | |
764 | + | @Callable(aH) | |
765 | + | func gwxUserInfoREADONLY (aR) = { | |
766 | + | let bb = cI(aR) | |
767 | + | $Tuple2(nil, [bb]) | |
727 | 768 | } | |
728 | 769 | ||
729 | 770 | ||
730 | 771 | ||
731 | - | @Callable( | |
732 | - | func getUserGwxAmountAtHeightREADONLY ( | |
733 | - | let | |
734 | - | $Tuple2(nil, | |
772 | + | @Callable(aH) | |
773 | + | func getUserGwxAmountAtHeightREADONLY (aR,cE) = { | |
774 | + | let bb = cD(aR, cE) | |
775 | + | $Tuple2(nil, bb) | |
735 | 776 | } | |
736 | 777 | ||
737 | 778 | ||
738 | 779 | ||
739 | - | @Callable( | |
740 | - | func getTotalCachedGwxREADONLY () = $Tuple2(nil, | |
780 | + | @Callable(aH) | |
781 | + | func getTotalCachedGwxREADONLY () = $Tuple2(nil, bJ(true)) | |
741 | 782 | ||
742 | 783 | ||
743 | 784 | ||
744 | - | @Callable( | |
745 | - | func setManager ( | |
746 | - | let | |
747 | - | if (( | |
785 | + | @Callable(aH) | |
786 | + | func setManager (ev) = { | |
787 | + | let dW = aG(aH) | |
788 | + | if ((dW == dW)) | |
748 | 789 | then { | |
749 | - | let | |
750 | - | if (( | |
751 | - | then [StringEntry( | |
790 | + | let ew = fromBase58String(ev) | |
791 | + | if ((ew == ew)) | |
792 | + | then [StringEntry(ag(), ev)] | |
752 | 793 | else throw("Strict value is not equal to itself.") | |
753 | 794 | } | |
754 | 795 | else throw("Strict value is not equal to itself.") | |
756 | 797 | ||
757 | 798 | ||
758 | 799 | ||
759 | - | @Callable( | |
800 | + | @Callable(aH) | |
760 | 801 | func confirmManager () = { | |
761 | - | let | |
762 | - | let | |
802 | + | let ex = aF() | |
803 | + | let ey = if (isDefined(ex)) | |
763 | 804 | then true | |
764 | 805 | else throw("No pending manager") | |
765 | - | if (( | |
806 | + | if ((ey == ey)) | |
766 | 807 | then { | |
767 | - | let | |
808 | + | let ez = if ((aH.callerPublicKey == value(ex))) | |
768 | 809 | then true | |
769 | 810 | else throw("You are not pending manager") | |
770 | - | if (( | |
771 | - | then [StringEntry( | |
811 | + | if ((ez == ez)) | |
812 | + | then [StringEntry(af(), toBase58String(value(ex))), DeleteEntry(ag())] | |
772 | 813 | else throw("Strict value is not equal to itself.") | |
773 | 814 | } | |
774 | 815 | else throw("Strict value is not equal to itself.") | |
775 | 816 | } | |
776 | 817 | ||
777 | 818 | ||
778 | - | @Verifier( | |
779 | - | func | |
780 | - | let | |
781 | - | let | |
782 | - | if ($isInstanceOf( | |
819 | + | @Verifier(eA) | |
820 | + | func eB () = { | |
821 | + | let eC = { | |
822 | + | let r = aD() | |
823 | + | if ($isInstanceOf(r, "ByteVector")) | |
783 | 824 | then { | |
784 | - | let | |
785 | - | | |
825 | + | let aJ = r | |
826 | + | aJ | |
786 | 827 | } | |
787 | - | else if ($isInstanceOf( | |
788 | - | then | |
828 | + | else if ($isInstanceOf(r, "Unit")) | |
829 | + | then eA.senderPublicKey | |
789 | 830 | else throw("Match error") | |
790 | 831 | } | |
791 | - | sigVerify( | |
832 | + | sigVerify(eA.bodyBytes, eA.proofs[0], eC) | |
792 | 833 | } | |
793 | 834 |
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 = 8 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | - | func e (f | |
12 | + | func e (f) = makeString(["boosting.ride:", f], " ") | |
13 | 13 | ||
14 | 14 | ||
15 | - | func | |
15 | + | func g (f) = throw(e(f)) | |
16 | 16 | ||
17 | 17 | ||
18 | - | func | |
18 | + | func h (i,j) = valueOrErrorMessage(getString(i, j), (("mandatory this." + j) + " is not defined")) | |
19 | 19 | ||
20 | 20 | ||
21 | - | func k ( | |
21 | + | func k (i,j) = valueOrElse(getInteger(i, j), 0) | |
22 | 22 | ||
23 | 23 | ||
24 | - | func l (m) = if ((0 > m)) | |
25 | - | then -(m) | |
26 | - | else m | |
24 | + | func l (i,j,m) = valueOrElse(getInteger(i, j), m) | |
27 | 25 | ||
28 | 26 | ||
29 | - | func n (m) = { | |
30 | - | let o = m | |
31 | - | if ($isInstanceOf(o, "List[Any]")) | |
27 | + | func n (i,j) = valueOrErrorMessage(getInteger(i, j), (("mandatory this." + j) + " is not defined")) | |
28 | + | ||
29 | + | ||
30 | + | func o (p) = if ((0 > p)) | |
31 | + | then -(p) | |
32 | + | else p | |
33 | + | ||
34 | + | ||
35 | + | func q (p) = { | |
36 | + | let r = p | |
37 | + | if ($isInstanceOf(r, "List[Any]")) | |
32 | 38 | then { | |
33 | - | let | |
34 | - | | |
39 | + | let s = r | |
40 | + | s | |
35 | 41 | } | |
36 | 42 | else throw("fail to cast into List[Any]") | |
37 | 43 | } | |
38 | 44 | ||
39 | 45 | ||
40 | - | func | |
41 | - | let | |
42 | - | if ($isInstanceOf( | |
46 | + | func t (p) = { | |
47 | + | let r = p | |
48 | + | if ($isInstanceOf(r, "Int")) | |
43 | 49 | then { | |
44 | - | let | |
45 | - | | |
50 | + | let u = r | |
51 | + | u | |
46 | 52 | } | |
47 | 53 | else throw("fail to cast into Int") | |
48 | 54 | } | |
49 | 55 | ||
50 | 56 | ||
51 | - | func | |
57 | + | func v () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
52 | 58 | ||
53 | 59 | ||
54 | - | let | |
60 | + | let w = addressFromStringValue(h(this, v())) | |
55 | 61 | ||
56 | - | let | |
62 | + | let x = makeString(["%s%s", "referral", "programName"], a) | |
57 | 63 | ||
58 | - | let | |
64 | + | let y = "wxlock" | |
59 | 65 | ||
60 | - | let | |
66 | + | let z = valueOrElse(getString(this, x), y) | |
61 | 67 | ||
62 | - | func | |
68 | + | func A () = "%s%s__config__factoryAddress" | |
63 | 69 | ||
64 | 70 | ||
65 | - | let | |
71 | + | let B = 1 | |
66 | 72 | ||
67 | - | let | |
73 | + | let C = 2 | |
68 | 74 | ||
69 | - | let | |
75 | + | let D = 3 | |
70 | 76 | ||
71 | - | let | |
77 | + | let E = 4 | |
72 | 78 | ||
73 | - | let | |
79 | + | let F = 5 | |
74 | 80 | ||
75 | - | let | |
81 | + | let G = 6 | |
76 | 82 | ||
77 | - | let | |
83 | + | let H = 7 | |
78 | 84 | ||
79 | - | let | |
85 | + | let I = 8 | |
80 | 86 | ||
81 | - | let | |
87 | + | let J = 9 | |
82 | 88 | ||
83 | - | let | |
89 | + | let K = 10 | |
84 | 90 | ||
85 | - | let | |
91 | + | let L = 11 | |
86 | 92 | ||
87 | - | func | |
93 | + | func M () = "%s__factoryConfig" | |
88 | 94 | ||
89 | 95 | ||
90 | - | func | |
96 | + | func N (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a) | |
91 | 97 | ||
92 | 98 | ||
93 | - | func | |
99 | + | func P () = "%s__lpTokensList" | |
94 | 100 | ||
95 | 101 | ||
96 | - | func | |
102 | + | func Q (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a) | |
97 | 103 | ||
98 | 104 | ||
99 | - | func | |
105 | + | func R (S) = makeString(["%s%s", "poolWeight", S], a) | |
100 | 106 | ||
101 | 107 | ||
102 | - | func | |
108 | + | func T (U,V) = ((("%s%s__poolWeight__" + U) + "__") + toString(V)) | |
103 | 109 | ||
104 | 110 | ||
105 | - | func | |
111 | + | func W () = addressFromStringValue(h(this, A())) | |
106 | 112 | ||
107 | 113 | ||
108 | - | func | |
114 | + | func X () = split(valueOrElse(getString(W(), P()), ""), a) | |
109 | 115 | ||
110 | 116 | ||
111 | - | func | |
117 | + | func Y (Z) = split(h(Z, M()), a) | |
112 | 118 | ||
113 | 119 | ||
114 | - | func | |
120 | + | func aa (ab) = addressFromStringValue(ab[C]) | |
115 | 121 | ||
116 | 122 | ||
117 | - | func | |
123 | + | func ac (ab) = addressFromStringValue(ab[F]) | |
118 | 124 | ||
119 | 125 | ||
120 | - | func | |
126 | + | func ad (ab) = addressFromStringValue(ab[B]) | |
121 | 127 | ||
122 | 128 | ||
123 | - | func | |
129 | + | func ae (ab) = addressFromStringValue(ab[K]) | |
124 | 130 | ||
125 | 131 | ||
126 | - | func | |
132 | + | func af () = "%s__managerPublicKey" | |
127 | 133 | ||
128 | 134 | ||
129 | - | func | |
135 | + | func ag () = "%s__pendingManagerPublicKey" | |
130 | 136 | ||
131 | 137 | ||
132 | - | func | |
138 | + | func ah () = "%s%s__ratePerBlock__current" | |
133 | 139 | ||
134 | 140 | ||
135 | - | func | |
141 | + | func ai () = "%s%s__ratePerBlockMax__current" | |
136 | 142 | ||
137 | 143 | ||
138 | - | func | |
144 | + | func aj () = "%s%s__emission__startBlock" | |
139 | 145 | ||
140 | 146 | ||
141 | - | func | |
147 | + | func ak () = "%s%s__boostingV2__startBlock" | |
142 | 148 | ||
143 | 149 | ||
144 | - | func | |
150 | + | func al () = "%s%s__emission__duration" | |
145 | 151 | ||
146 | 152 | ||
147 | - | func | |
153 | + | func am () = "%s%s__emission__endBlock" | |
148 | 154 | ||
149 | 155 | ||
150 | - | func | |
156 | + | func an () = "%s__nextPeriod" | |
151 | 157 | ||
152 | 158 | ||
153 | - | func | |
159 | + | func ao () = "%s%s__gwxRewardEmissionPart__startHeight" | |
154 | 160 | ||
155 | 161 | ||
156 | - | let | |
162 | + | let ap = 1 | |
157 | 163 | ||
158 | - | let | |
164 | + | let aq = 2 | |
159 | 165 | ||
160 | - | let | |
166 | + | let ar = 3 | |
161 | 167 | ||
162 | - | let | |
168 | + | let as = 4 | |
163 | 169 | ||
164 | - | let | |
170 | + | let at = 5 | |
165 | 171 | ||
166 | - | func | |
172 | + | func au () = "%s__config" | |
167 | 173 | ||
168 | 174 | ||
169 | - | func | |
175 | + | func av () = split(h(this, au()), a) | |
170 | 176 | ||
171 | 177 | ||
172 | - | let | |
178 | + | let aw = addressFromStringValue(av()[at]) | |
173 | 179 | ||
174 | - | func | |
180 | + | func ax (ay,az,aA,aB,aw) = makeString(["%s%d%d%d", ay, az, aA, aB, aw], a) | |
175 | 181 | ||
176 | 182 | ||
177 | - | func | |
183 | + | func aC (ay,az,aA,aB,aw) = ax(ay, toString(az), toString(aA), toString(aB), aw) | |
178 | 184 | ||
179 | 185 | ||
180 | - | func | |
181 | - | let | |
182 | - | if ($isInstanceOf( | |
186 | + | func aD () = { | |
187 | + | let r = getString(af()) | |
188 | + | if ($isInstanceOf(r, "String")) | |
183 | 189 | then { | |
184 | - | let | |
185 | - | fromBase58String( | |
190 | + | let aE = r | |
191 | + | fromBase58String(aE) | |
186 | 192 | } | |
187 | - | else if ($isInstanceOf( | |
193 | + | else if ($isInstanceOf(r, "Unit")) | |
188 | 194 | then unit | |
189 | 195 | else throw("Match error") | |
190 | 196 | } | |
191 | 197 | ||
192 | 198 | ||
193 | - | func | |
194 | - | let | |
195 | - | if ($isInstanceOf( | |
199 | + | func aF () = { | |
200 | + | let r = getString(ag()) | |
201 | + | if ($isInstanceOf(r, "String")) | |
196 | 202 | then { | |
197 | - | let | |
198 | - | fromBase58String( | |
203 | + | let aE = r | |
204 | + | fromBase58String(aE) | |
199 | 205 | } | |
200 | - | else if ($isInstanceOf( | |
206 | + | else if ($isInstanceOf(r, "Unit")) | |
201 | 207 | then unit | |
202 | 208 | else throw("Match error") | |
203 | 209 | } | |
204 | 210 | ||
205 | 211 | ||
206 | - | func | |
207 | - | let | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
212 | + | func aG (aH) = { | |
213 | + | let aI = throw("Permission denied") | |
214 | + | let r = aD() | |
215 | + | if ($isInstanceOf(r, "ByteVector")) | |
210 | 216 | then { | |
211 | - | let | |
212 | - | if (( | |
217 | + | let aJ = r | |
218 | + | if ((aH.callerPublicKey == aJ)) | |
213 | 219 | then true | |
214 | - | else | |
220 | + | else aI | |
215 | 221 | } | |
216 | - | else if ($isInstanceOf( | |
217 | - | then if (( | |
222 | + | else if ($isInstanceOf(r, "Unit")) | |
223 | + | then if ((aH.caller == this)) | |
218 | 224 | then true | |
219 | - | else | |
225 | + | else aI | |
220 | 226 | else throw("Match error") | |
221 | 227 | } | |
222 | 228 | ||
223 | 229 | ||
224 | - | let | |
230 | + | let aK = 1 | |
225 | 231 | ||
226 | - | let | |
232 | + | let aL = 2 | |
227 | 233 | ||
228 | - | let | |
234 | + | let aM = 3 | |
229 | 235 | ||
230 | - | let | |
236 | + | let aN = 4 | |
231 | 237 | ||
232 | - | let | |
238 | + | let aO = 5 | |
233 | 239 | ||
234 | - | let | |
240 | + | let aP = 6 | |
235 | 241 | ||
236 | - | func | |
242 | + | func aQ (aR) = makeString(["%s%s__lock", aR], a) | |
237 | 243 | ||
238 | 244 | ||
239 | - | func | |
245 | + | func aS (aR) = split(h(this, aQ(aR)), a) | |
240 | 246 | ||
241 | 247 | ||
242 | - | func | |
248 | + | func aT (aU,aV,aW,aX,aY,aZ,ba,bb) = makeString(["%d%d%d%d%d%d%d%d", aU, aV, aW, aX, aY, aZ, ba, bb], a) | |
243 | 249 | ||
244 | 250 | ||
245 | - | func | |
251 | + | func bc (aU,aV,aW,aX,aY,aZ,bb) = aT(aU, toString(aV), toString(aW), toString(aX), toString(aY), toString(aZ), toString(lastBlock.timestamp), toString(bb)) | |
246 | 252 | ||
247 | 253 | ||
248 | - | func | |
254 | + | func bd () = "%s__nextUserNum" | |
249 | 255 | ||
250 | 256 | ||
251 | - | func | |
257 | + | func be (aR) = makeString(["%s%s%s__mapping__user2num", aR], a) | |
252 | 258 | ||
253 | 259 | ||
254 | - | func | |
260 | + | func bf (V) = makeString(["%s%s%s__mapping__num2user", V], a) | |
255 | 261 | ||
256 | 262 | ||
257 | - | func | |
263 | + | func bg (aU) = makeString(["%s%d%s__paramByUserNum", aU, "amount"], a) | |
258 | 264 | ||
259 | 265 | ||
260 | - | func | |
266 | + | func bh (aU) = makeString(["%s%d%s__paramByUserNum", aU, "start"], a) | |
261 | 267 | ||
262 | 268 | ||
263 | - | func | |
269 | + | func bi (aU) = makeString(["%s%d%s__paramByUserNum", aU, "duration"], a) | |
264 | 270 | ||
265 | 271 | ||
266 | - | func | |
272 | + | func bj (aU) = makeString(["%s%d%s__paramByUserNum", aU, "k"], a) | |
267 | 273 | ||
268 | 274 | ||
269 | - | func | |
275 | + | func bk (aU) = makeString(["%s%d%s__paramByUserNum", aU, "b"], a) | |
270 | 276 | ||
271 | 277 | ||
272 | - | func | |
278 | + | func bl (aU,bm) = makeString(["%s%d%s%d__paramByPeriod", aU, "k", bm], a) | |
273 | 279 | ||
274 | 280 | ||
275 | - | func | |
281 | + | func bn (aU,bm) = makeString(["%s%d%s%d__paramByPeriod", aU, "b", bm], a) | |
276 | 282 | ||
277 | 283 | ||
278 | - | func | |
284 | + | func bo () = "%s%s__stats__activeTotalLocked" | |
279 | 285 | ||
280 | 286 | ||
281 | - | func | |
287 | + | func bp () = "%s%s__stats__locksDurationSumInBlocks" | |
282 | 288 | ||
283 | 289 | ||
284 | - | func | |
290 | + | func bq () = "%s%s__stats__locksCount" | |
285 | 291 | ||
286 | 292 | ||
287 | - | func | |
293 | + | func br () = "%s%s__stats__activeUsersCount" | |
288 | 294 | ||
289 | 295 | ||
290 | - | func | |
296 | + | func bs (aU) = makeString(["%s%d__userBoostEmissionLastIntV2", aU], a) | |
291 | 297 | ||
292 | 298 | ||
293 | - | func | |
299 | + | func bt (aU,bu) = makeString(["%s%d__userBoostEmissionLastIntV2", aU, bu], a) | |
294 | 300 | ||
295 | 301 | ||
296 | - | func | |
302 | + | func bv (aU) = makeString(["%s%d__maxBoostInt", aU], a) | |
297 | 303 | ||
298 | 304 | ||
299 | - | func | |
305 | + | func bw () = "%s%s__maxBoostInt__total" | |
300 | 306 | ||
301 | 307 | ||
302 | - | func | |
308 | + | func bx (aU) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aU], a) | |
303 | 309 | ||
304 | 310 | ||
305 | - | func | |
311 | + | func by (aU) = makeString(["%s%d__userBoostClaimed", aU], a) | |
306 | 312 | ||
307 | 313 | ||
308 | - | func | |
314 | + | func bz () = "%s%s__gwxCached__total" | |
309 | 315 | ||
310 | 316 | ||
311 | - | func | |
317 | + | func bA () = "%s__gwxCachedTotalCorrective" | |
312 | 318 | ||
313 | 319 | ||
314 | - | let | |
320 | + | let bB = W() | |
315 | 321 | ||
316 | - | let | |
322 | + | let ab = Y(bB) | |
317 | 323 | ||
318 | - | let | |
324 | + | let bC = ac(ab) | |
319 | 325 | ||
320 | - | let | |
326 | + | let bD = ad(ab) | |
321 | 327 | ||
322 | - | let | |
328 | + | let bE = ae(ab) | |
323 | 329 | ||
324 | - | let | |
330 | + | let bF = makeString(["%s", "votingEmissionContract"], a) | |
325 | 331 | ||
326 | - | let | |
332 | + | let bG = addressFromStringValue(getStringValue(bB, bF)) | |
327 | 333 | ||
328 | - | let | |
329 | - | let | |
330 | - | if ($isInstanceOf( | |
331 | - | then | |
332 | - | else throw(($getType( | |
334 | + | let bH = { | |
335 | + | let bI = invoke(bC, "getBoostCoeffREADONLY", nil, nil) | |
336 | + | if ($isInstanceOf(bI, "Int")) | |
337 | + | then bI | |
338 | + | else throw(($getType(bI) + " couldn't be cast to Int")) | |
333 | 339 | } | |
334 | 340 | ||
335 | - | func | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | then ( | |
341 | + | func bJ (bK) = { | |
342 | + | let bL = makeString(["%s", "currentEpochUi"], a) | |
343 | + | let bM = getIntegerValue(bG, bL) | |
344 | + | let bN = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
345 | + | let bO = getInteger(this, bN) | |
346 | + | let bP = valueOrElse(getInteger(this, bz()), 0) | |
347 | + | let bQ = if (isDefined(bO)) | |
348 | + | then (bM >= value(bO)) | |
343 | 349 | else false | |
344 | - | let | |
345 | - | then | |
350 | + | let bR = if (if (bQ) | |
351 | + | then bK | |
346 | 352 | else false) | |
347 | - | then valueOrElse(getInteger(this, | |
353 | + | then valueOrElse(getInteger(this, bA()), 0) | |
348 | 354 | else 0 | |
349 | - | max([0, ( | |
355 | + | max([0, (bP + bR)]) | |
350 | 356 | } | |
351 | 357 | ||
352 | 358 | ||
353 | - | func | |
354 | - | let | |
355 | - | let | |
356 | - | StringEntry( | |
359 | + | func bS (bT,bU,aV,bV,aX,bW,bX,aH) = { | |
360 | + | let bY = makeString(["%s%s%s%s__history", bT, bU, toBase58String(aH.transactionId)], a) | |
361 | + | let bZ = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aV), toString(bV), toString(aX), toString(bW), toString(bX)], a) | |
362 | + | StringEntry(bY, bZ) | |
357 | 363 | } | |
358 | 364 | ||
359 | 365 | ||
360 | - | func | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | [ | |
366 | + | func ca (cb,cc,cd,ce) = { | |
367 | + | let cf = bp() | |
368 | + | let cg = bq() | |
369 | + | let ch = br() | |
370 | + | let ci = bo() | |
371 | + | let cj = k(this, cf) | |
372 | + | let ck = k(this, cg) | |
373 | + | let cl = k(this, ch) | |
374 | + | let cm = k(this, ci) | |
375 | + | [IntegerEntry(cf, (cj + cc)), IntegerEntry(cg, (ck + cd)), IntegerEntry(ch, (cl + ce)), IntegerEntry(ci, (cm + cb))] | |
370 | 376 | } | |
371 | 377 | ||
372 | 378 | ||
373 | - | func | |
374 | - | let | |
375 | - | ((( | |
379 | + | func cn (co,cp,cq) = { | |
380 | + | let cr = 1000 | |
381 | + | (((co * cq) + cp) / cr) | |
376 | 382 | } | |
377 | 383 | ||
378 | 384 | ||
379 | - | func | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | [ | |
385 | + | func cs (aR,aU,aV,aW,aX,bW,bX,bm) = { | |
386 | + | let ct = bg(aU) | |
387 | + | let cu = bh(aU) | |
388 | + | let cv = bi(aU) | |
389 | + | let cw = bj(aU) | |
390 | + | let cx = bk(aU) | |
391 | + | let cy = bl(aU, bm) | |
392 | + | let cz = bn(aU, bm) | |
393 | + | let bb = cn(bW, bX, height) | |
394 | + | [IntegerEntry(ct, aV), IntegerEntry(cu, aW), IntegerEntry(cv, aX), IntegerEntry(cw, bW), IntegerEntry(cx, bX), IntegerEntry(cy, bW), IntegerEntry(cz, bX), StringEntry(aQ(aR), bc(aU, aV, aW, aX, bW, bX, bb))] | |
389 | 395 | } | |
390 | 396 | ||
391 | 397 | ||
392 | - | func | |
398 | + | func cA (aH,cB) = if ((size(aH.payments) > 1)) | |
393 | 399 | then throw("only one payment is allowed") | |
394 | - | else if ((size( | |
400 | + | else if ((size(aH.payments) == 0)) | |
395 | 401 | then 0 | |
396 | 402 | else { | |
397 | - | let | |
398 | - | if ((value( | |
403 | + | let cC = aH.payments[0] | |
404 | + | if ((value(cC.assetId) != cB)) | |
399 | 405 | then throw("invalid asset id in payment") | |
400 | - | else | |
406 | + | else cC.amount | |
401 | 407 | } | |
402 | 408 | ||
403 | 409 | ||
404 | - | func | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
410 | + | func cD (aR,cE) = { | |
411 | + | let cF = "empty" | |
412 | + | let cG = be(aR) | |
413 | + | let aU = valueOrElse(getString(cG), cF) | |
414 | + | let bW = valueOrElse(getInteger(bj(aU)), 0) | |
415 | + | let bX = valueOrElse(getInteger(bk(aU)), 0) | |
416 | + | let cH = cn(bW, bX, cE) | |
417 | + | let bb = if ((0 > cH)) | |
412 | 418 | then 0 | |
413 | - | else | |
414 | - | | |
419 | + | else cH | |
420 | + | bb | |
415 | 421 | } | |
416 | 422 | ||
417 | 423 | ||
418 | - | func | |
424 | + | func cI (aR) = cD(aR, height) | |
419 | 425 | ||
420 | 426 | ||
421 | - | func cG (cH,cI,cJ) = { | |
422 | - | let cC = "EMPTY" | |
423 | - | let cK = valueOrElse(getString(this, aN(cI)), cC) | |
424 | - | if ((cK == cC)) | |
427 | + | func cJ (cK,cL) = { | |
428 | + | let aR = addressFromStringValue(cL) | |
429 | + | let cM = 4 | |
430 | + | let cN = 5 | |
431 | + | let cO = { | |
432 | + | let bI = invoke(bB, "getPoolConfigByLpAssetId", [cK], nil) | |
433 | + | if ($isInstanceOf(bI, "List[Any]")) | |
434 | + | then bI | |
435 | + | else throw(($getType(bI) + " couldn't be cast to List[Any]")) | |
436 | + | } | |
437 | + | let cP = { | |
438 | + | let bI = cO[cM] | |
439 | + | if ($isInstanceOf(bI, "String")) | |
440 | + | then bI | |
441 | + | else throw(($getType(bI) + " couldn't be cast to String")) | |
442 | + | } | |
443 | + | let cQ = { | |
444 | + | let bI = cO[cN] | |
445 | + | if ($isInstanceOf(bI, "String")) | |
446 | + | then bI | |
447 | + | else throw(($getType(bI) + " couldn't be cast to String")) | |
448 | + | } | |
449 | + | let cR = makeString(["%s", "currentEpoch"], a) | |
450 | + | let cS = { | |
451 | + | let cT = (value(getInteger(this, cR)) - 1) | |
452 | + | if ((0 > cT)) | |
453 | + | then g("invalid epoch") | |
454 | + | else cT | |
455 | + | } | |
456 | + | func cU (cV,i,cT) = makeString(["%s%s%s%s%d", "vote", cP, cQ, toString(i), toString(cT)], a) | |
457 | + | ||
458 | + | func cW (cV,cT) = makeString(["%s%s%s%d", "votingResult", cP, cQ, toString(cT)], a) | |
459 | + | ||
460 | + | let cV = $Tuple2(cP, cQ) | |
461 | + | let cX = valueOrElse(getInteger(this, cU(cV, aR, cS)), 0) | |
462 | + | let cY = valueOrElse(getInteger(this, cW(cV, cS)), 0) | |
463 | + | $Tuple2(cX, cY) | |
464 | + | } | |
465 | + | ||
466 | + | ||
467 | + | func cZ (cK,cL,da) = { | |
468 | + | let cF = "EMPTY" | |
469 | + | let db = valueOrElse(getString(this, aQ(cL)), cF) | |
470 | + | if ((db == cF)) | |
425 | 471 | then $Tuple3(0, nil, "userRecord::is::empty") | |
426 | 472 | else { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
473 | + | let dc = split(db, a) | |
474 | + | let dd = dc[aK] | |
475 | + | let de = "empty" | |
476 | + | let df = if ((cK != de)) | |
431 | 477 | then { | |
432 | - | let | |
433 | - | getIntegerValue( | |
478 | + | let dg = valueOrErrorMessage(getString(bB, N(cK)), ("unsupported lp asset " + cK)) | |
479 | + | getIntegerValue(bB, R(dg)) | |
434 | 480 | } | |
435 | - | else if ( | |
481 | + | else if (da) | |
436 | 482 | then 0 | |
437 | - | else throw(("not readonly mode: unsupported lp asset " + | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | then | |
483 | + | else throw(("not readonly mode: unsupported lp asset " + cK)) | |
484 | + | let dh = n(bC, ah()) | |
485 | + | let di = n(bC, ak()) | |
486 | + | let dj = n(bC, am()) | |
487 | + | let cq = if ((height > dj)) | |
488 | + | then dj | |
443 | 489 | else height | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | if ((0 > | |
490 | + | let dk = max([(cq - di), 0]) | |
491 | + | let dl = bt(dd, cK) | |
492 | + | let dm = bs(dd) | |
493 | + | let dn = valueOrElse(getInteger(this, dl), k(this, dm)) | |
494 | + | let do = (((dh * dk) * (bH - 1)) / bH) | |
495 | + | let dp = (do - dn) | |
496 | + | let dq = fraction(dp, bH, ((bH - 1) * dh)) | |
497 | + | let dr = (cq - dq) | |
498 | + | if ((0 > dp)) | |
453 | 499 | then throw("wrong calculations") | |
454 | 500 | else { | |
455 | - | let db = bs(cM) | |
456 | - | let dc = bt() | |
457 | - | let dd = h(this, db) | |
458 | - | let de = h(this, dc) | |
459 | - | let df = { | |
460 | - | let bF = invoke(bD, "getVoteInfoREADONLY", [cH, cI], nil) | |
461 | - | if ($isInstanceOf(bF, "(Int, Int)")) | |
462 | - | then bF | |
463 | - | else throw(($getType(bF) + " couldn't be cast to (Int, Int)")) | |
464 | - | } | |
465 | - | let dg = df._1 | |
466 | - | let dh = df._2 | |
467 | - | let di = bu(cM) | |
468 | - | let dj = h(this, di) | |
469 | - | let dk = fraction(cY, cO, d) | |
470 | - | let dl = if ((dh == 0)) | |
501 | + | let ds = bv(dd) | |
502 | + | let dt = bw() | |
503 | + | let du = k(this, ds) | |
504 | + | let dv = k(this, dt) | |
505 | + | let dw = cJ(cK, cL) | |
506 | + | let cX = dw._1 | |
507 | + | let dx = dw._2 | |
508 | + | let dy = bx(dd) | |
509 | + | let dz = k(this, dy) | |
510 | + | let dA = fraction(dp, df, d) | |
511 | + | let dB = if ((dx == 0)) | |
471 | 512 | then 0 | |
472 | - | else fraction( | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | $Tuple3( | |
513 | + | else fraction(dA, cX, dx) | |
514 | + | let dC = by(dd) | |
515 | + | let dD = k(this, dC) | |
516 | + | let dE = (dB - dD) | |
517 | + | let dF = [IntegerEntry(dl, do)] | |
518 | + | let dG = makeString([toString(dn), toString(dp), toString(dD), toString(dE), toString(df), toString(cq), toString(dq), toString(dr), toString(cX), toString(dx)], ":") | |
519 | + | $Tuple3(dB, dF, dG) | |
479 | 520 | } | |
480 | 521 | } | |
481 | 522 | } | |
482 | 523 | ||
483 | 524 | ||
484 | - | func | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | if ((size( | |
525 | + | func dH (aH,aX) = { | |
526 | + | let dI = av() | |
527 | + | let dJ = dI[ap] | |
528 | + | let ay = fromBase58String(dJ) | |
529 | + | let az = parseIntValue(dI[aq]) | |
530 | + | let aA = parseIntValue(dI[ar]) | |
531 | + | let aB = parseIntValue(dI[as]) | |
532 | + | if ((size(aH.payments) != 1)) | |
492 | 533 | then throw("invalid payment - exact one payment must be attached") | |
493 | 534 | else { | |
494 | - | let | |
495 | - | let | |
496 | - | if (( | |
497 | - | then throw((("invalid asset is in payment - " + | |
535 | + | let cC = aH.payments[0] | |
536 | + | let dK = cC.amount | |
537 | + | if ((ay != value(cC.assetId))) | |
538 | + | then throw((("invalid asset is in payment - " + dJ) + " is expected")) | |
498 | 539 | else { | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | then value(getString( | |
504 | - | else toString( | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | if (( | |
511 | - | then throw(("amount is less then minLockAmount=" + toString( | |
512 | - | else if (( | |
513 | - | then throw(("passed duration is less then minLockDuration=" + toString( | |
514 | - | else if (( | |
515 | - | then throw(("passed duration is greater then maxLockDuration=" + toString( | |
516 | - | else if (if ( | |
517 | - | then (( | |
540 | + | let dL = bd() | |
541 | + | let cL = toString(aH.caller) | |
542 | + | let dM = isDefined(getString(be(cL))) | |
543 | + | let dd = if (dM) | |
544 | + | then value(getString(be(cL))) | |
545 | + | else toString(n(this, dL)) | |
546 | + | let aU = parseIntValue(dd) | |
547 | + | let bV = height | |
548 | + | let cu = bh(dd) | |
549 | + | let cv = bi(dd) | |
550 | + | let ct = bg(dd) | |
551 | + | if ((az > dK)) | |
552 | + | then throw(("amount is less then minLockAmount=" + toString(az))) | |
553 | + | else if ((aA > aX)) | |
554 | + | then throw(("passed duration is less then minLockDuration=" + toString(aA))) | |
555 | + | else if ((aX > aB)) | |
556 | + | then throw(("passed duration is greater then maxLockDuration=" + toString(aB))) | |
557 | + | else if (if (dM) | |
558 | + | then ((n(this, cu) + n(this, cv)) >= bV) | |
518 | 559 | else false) | |
519 | 560 | then throw("there is an active lock - consider to use increaseLock") | |
520 | - | else if (( | |
521 | - | then throw(("there are locked WXs - consider to use increaseLock " + | |
561 | + | else if ((k(this, ct) > 0)) | |
562 | + | then throw(("there are locked WXs - consider to use increaseLock " + ct)) | |
522 | 563 | else { | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | then | |
564 | + | let dN = fraction(aX, c, aB) | |
565 | + | let dO = fraction(dK, dN, c) | |
566 | + | let dP = q(invoke(aw, "calcGwxParamsREADONLY", [dO, bV, aX], nil)) | |
567 | + | let bW = t(dP[0]) | |
568 | + | let bX = t(dP[1]) | |
569 | + | let bm = toString(t(dP[2])) | |
570 | + | let dh = n(bC, ah()) | |
571 | + | let dQ = n(bC, aj()) | |
572 | + | let dj = n(bC, am()) | |
573 | + | let cq = if ((height > dj)) | |
574 | + | then dj | |
534 | 575 | else height | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
576 | + | let dk = max([(cq - dQ), 0]) | |
577 | + | let dm = bs(dd) | |
578 | + | let do = (((dh * dk) * 2) / 3) | |
579 | + | let ds = bv(dd) | |
580 | + | let dt = bw() | |
581 | + | let du = ((dO * aX) / 2) | |
582 | + | let dv = k(this, dt) | |
583 | + | let bP = bJ(false) | |
584 | + | let dR = if (dM) | |
544 | 585 | then nil | |
545 | - | else [IntegerEntry( | |
546 | - | $Tuple2((((( | |
586 | + | else [IntegerEntry(dL, (aU + 1)), StringEntry(be(cL), dd), StringEntry(bf(dd), cL)] | |
587 | + | $Tuple2(((((dR ++ cs(cL, dd, dK, bV, aX, bW, bX, bm)) ++ ca(dK, aX, 1, if (dM) | |
547 | 588 | then 0 | |
548 | - | else 1)) :+ | |
589 | + | else 1)) :+ bS("lock", cL, dK, bV, aX, bW, bX, aH)) ++ [IntegerEntry(dm, do), IntegerEntry(bz(), (bP + dO))]), dO) | |
549 | 590 | } | |
550 | 591 | } | |
551 | 592 | } | |
552 | 593 | } | |
553 | 594 | ||
554 | 595 | ||
555 | - | @Callable( | |
556 | - | func constructor ( | |
557 | - | let | |
558 | - | if (( | |
559 | - | then ([IntegerEntry( | |
596 | + | @Callable(aH) | |
597 | + | func constructor (dS,dT,az,dU,dV,aw) = { | |
598 | + | let dW = aG(aH) | |
599 | + | if ((dW == dW)) | |
600 | + | then ([IntegerEntry(bd(), 0), StringEntry(au(), aC(dT, az, dU, dV, aw)), StringEntry(A(), dS)] ++ ca(0, 0, 0, 0)) | |
560 | 601 | else throw("Strict value is not equal to itself.") | |
561 | 602 | } | |
562 | 603 | ||
563 | 604 | ||
564 | 605 | ||
565 | - | @Callable( | |
566 | - | func lockRef ( | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
606 | + | @Callable(aH) | |
607 | + | func lockRef (aX,dX,dY) = { | |
608 | + | let dZ = dH(aH, aX) | |
609 | + | let ea = dZ._1 | |
610 | + | let dO = dZ._2 | |
611 | + | let eb = toString(aH.caller) | |
612 | + | let ec = if (if ((dX == "")) | |
572 | 613 | then true | |
573 | - | else ( | |
614 | + | else (dY == base58'')) | |
574 | 615 | then unit | |
575 | - | else invoke( | |
576 | - | if (( | |
616 | + | else invoke(w, "createPair", [z, dX, eb, dY], nil) | |
617 | + | if ((ec == ec)) | |
577 | 618 | then { | |
578 | - | let | |
579 | - | if (( | |
580 | - | then $Tuple2( | |
619 | + | let ed = invoke(aw, "updateReferralActivity", [toString(aH.caller), dO], nil) | |
620 | + | if ((ed == ed)) | |
621 | + | then $Tuple2(ea, unit) | |
581 | 622 | else throw("Strict value is not equal to itself.") | |
582 | 623 | } | |
583 | 624 | else throw("Strict value is not equal to itself.") | |
584 | 625 | } | |
585 | 626 | ||
586 | 627 | ||
587 | 628 | ||
588 | - | @Callable( | |
589 | - | func lock ( | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | if (( | |
595 | - | then $Tuple2( | |
629 | + | @Callable(aH) | |
630 | + | func lock (aX) = { | |
631 | + | let ee = dH(aH, aX) | |
632 | + | let ea = ee._1 | |
633 | + | let dO = ee._2 | |
634 | + | let ed = invoke(aw, "updateReferralActivity", [toString(aH.caller), dO], nil) | |
635 | + | if ((ed == ed)) | |
636 | + | then $Tuple2(ea, unit) | |
596 | 637 | else throw("Strict value is not equal to itself.") | |
597 | 638 | } | |
598 | 639 | ||
599 | 640 | ||
600 | 641 | ||
601 | - | @Callable( | |
602 | - | func increaseLock ( | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | if ((0 > | |
642 | + | @Callable(aH) | |
643 | + | func increaseLock (ef) = { | |
644 | + | let dI = av() | |
645 | + | let dJ = dI[ap] | |
646 | + | let ay = fromBase58String(dJ) | |
647 | + | let aA = parseIntValue(dI[ar]) | |
648 | + | let aB = parseIntValue(dI[as]) | |
649 | + | let dK = cA(aH, ay) | |
650 | + | let cL = toString(aH.caller) | |
651 | + | let dc = aS(cL) | |
652 | + | let dd = dc[aK] | |
653 | + | let eg = parseIntValue(dc[aL]) | |
654 | + | let bV = parseIntValue(dc[aM]) | |
655 | + | let eh = parseIntValue(dc[aN]) | |
656 | + | let ei = (bV + eh) | |
657 | + | let ej = max([(ei - height), 0]) | |
658 | + | let ek = (eg + dK) | |
659 | + | let el = (ej + ef) | |
660 | + | if ((0 > ef)) | |
620 | 661 | then throw("duration is less then zero") | |
621 | - | else if (( | |
622 | - | then throw(("lockDurationNew is less then minLockDuration=" + toString( | |
623 | - | else if (( | |
624 | - | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString( | |
662 | + | else if ((aA > el)) | |
663 | + | then throw(("lockDurationNew is less then minLockDuration=" + toString(aA))) | |
664 | + | else if ((el > aB)) | |
665 | + | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(aB))) | |
625 | 666 | else { | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | if (( | |
667 | + | let dN = fraction(el, c, aB) | |
668 | + | let dO = fraction(ek, dN, c) | |
669 | + | let ed = invoke(aw, "updateReferralActivity", [toString(aH.caller), dO], nil) | |
670 | + | if ((ed == ed)) | |
630 | 671 | then { | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | then | |
672 | + | let em = height | |
673 | + | let dP = q(invoke(aw, "calcGwxParamsREADONLY", [dO, em, el], nil)) | |
674 | + | let bW = t(dP[0]) | |
675 | + | let bX = t(dP[1]) | |
676 | + | let bm = toString(t(dP[2])) | |
677 | + | let dh = n(bC, ah()) | |
678 | + | let dQ = n(bC, aj()) | |
679 | + | let dj = n(bC, am()) | |
680 | + | let cq = if ((height > dj)) | |
681 | + | then dj | |
641 | 682 | else height | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | if ((0 > | |
683 | + | let dk = max([(cq - dQ), 0]) | |
684 | + | let dm = bs(dd) | |
685 | + | let dn = k(this, dm) | |
686 | + | let do = (((dh * dk) * 2) / 3) | |
687 | + | let dp = (do - dn) | |
688 | + | if ((0 > dp)) | |
648 | 689 | then throw("wrong calculations") | |
649 | 690 | else { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | if ((0 > | |
657 | - | then throw(("gwxDiff is less then 0: " + toString( | |
691 | + | let ds = bv(dd) | |
692 | + | let dt = bw() | |
693 | + | let du = k(this, ds) | |
694 | + | let dv = k(this, dt) | |
695 | + | let en = cI(cL) | |
696 | + | let eo = (dO - en) | |
697 | + | if ((0 > eo)) | |
698 | + | then throw(("gwxDiff is less then 0: " + toString(eo))) | |
658 | 699 | else { | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | ((( | |
700 | + | let bP = bJ(false) | |
701 | + | let ep = bJ(true) | |
702 | + | let dy = bx(dd) | |
703 | + | let dz = k(this, dy) | |
704 | + | let dB = fraction(dp, en, ep) | |
705 | + | let eq = ((dO * el) / 2) | |
706 | + | let er = ((en * ej) / 2) | |
707 | + | let es = (eq - er) | |
708 | + | (((cs(cL, dd, ek, em, el, bW, bX, bm) ++ ca(dK, ef, 0, 0)) :+ bS("lock", cL, dK, bV, el, bW, bX, aH)) ++ [IntegerEntry(bz(), (bP + eo))]) | |
668 | 709 | } | |
669 | 710 | } | |
670 | 711 | } | |
671 | 712 | else throw("Strict value is not equal to itself.") | |
672 | 713 | } | |
673 | 714 | } | |
674 | 715 | ||
675 | 716 | ||
676 | 717 | ||
677 | - | @Callable( | |
678 | - | func claimWxBoost ( | |
718 | + | @Callable(aH) | |
719 | + | func claimWxBoost (cK,cL) = if ((bD != aH.caller)) | |
679 | 720 | then throw("permissions denied") | |
680 | 721 | else { | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | $Tuple2( | |
722 | + | let et = cZ(cK, cL, false) | |
723 | + | let dE = et._1 | |
724 | + | let dF = et._2 | |
725 | + | let dG = et._3 | |
726 | + | $Tuple2(dF, [dE]) | |
686 | 727 | } | |
687 | 728 | ||
688 | 729 | ||
689 | 730 | ||
690 | - | @Callable( | |
691 | - | func claimWxBoostREADONLY ( | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | $Tuple2(nil, [ | |
731 | + | @Callable(aH) | |
732 | + | func claimWxBoostREADONLY (cK,cL) = { | |
733 | + | let eu = cZ(cK, cL, true) | |
734 | + | let dE = eu._1 | |
735 | + | let dF = eu._2 | |
736 | + | let dG = eu._3 | |
737 | + | $Tuple2(nil, [dE, dG]) | |
697 | 738 | } | |
698 | 739 | ||
699 | 740 | ||
700 | 741 | ||
701 | - | @Callable( | |
702 | - | func unlock ( | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | if (( | |
712 | - | then throw((("wait " + toString( | |
713 | - | else if ((0 >= | |
742 | + | @Callable(aH) | |
743 | + | func unlock (aR) = { | |
744 | + | let dc = aS(aR) | |
745 | + | let dd = dc[aK] | |
746 | + | let eg = parseIntValue(dc[aL]) | |
747 | + | let bV = parseIntValue(dc[aM]) | |
748 | + | let eh = parseIntValue(dc[aN]) | |
749 | + | let ei = (bV + eh) | |
750 | + | let dI = av() | |
751 | + | let ay = fromBase58String(dI[ap]) | |
752 | + | if ((ei >= height)) | |
753 | + | then throw((("wait " + toString(ei)) + " to unlock")) | |
754 | + | else if ((0 >= eg)) | |
714 | 755 | then throw("nothing to unlock") | |
715 | 756 | else { | |
716 | - | let | |
717 | - | ((( | |
757 | + | let bm = valueOrElse(getInteger(aw, an()), 0) | |
758 | + | (((cs(aR, dd, 0, bV, eh, 0, 0, toString(bm)) ++ ca(-(eg), 0, 0, -1)) :+ bS("unlock", aR, eg, bV, eh, 0, 0, aH)) :+ ScriptTransfer(addressFromStringValue(aR), eg, ay)) | |
718 | 759 | } | |
719 | 760 | } | |
720 | 761 | ||
721 | 762 | ||
722 | 763 | ||
723 | - | @Callable( | |
724 | - | func gwxUserInfoREADONLY ( | |
725 | - | let | |
726 | - | $Tuple2(nil, [ | |
764 | + | @Callable(aH) | |
765 | + | func gwxUserInfoREADONLY (aR) = { | |
766 | + | let bb = cI(aR) | |
767 | + | $Tuple2(nil, [bb]) | |
727 | 768 | } | |
728 | 769 | ||
729 | 770 | ||
730 | 771 | ||
731 | - | @Callable( | |
732 | - | func getUserGwxAmountAtHeightREADONLY ( | |
733 | - | let | |
734 | - | $Tuple2(nil, | |
772 | + | @Callable(aH) | |
773 | + | func getUserGwxAmountAtHeightREADONLY (aR,cE) = { | |
774 | + | let bb = cD(aR, cE) | |
775 | + | $Tuple2(nil, bb) | |
735 | 776 | } | |
736 | 777 | ||
737 | 778 | ||
738 | 779 | ||
739 | - | @Callable( | |
740 | - | func getTotalCachedGwxREADONLY () = $Tuple2(nil, | |
780 | + | @Callable(aH) | |
781 | + | func getTotalCachedGwxREADONLY () = $Tuple2(nil, bJ(true)) | |
741 | 782 | ||
742 | 783 | ||
743 | 784 | ||
744 | - | @Callable( | |
745 | - | func setManager ( | |
746 | - | let | |
747 | - | if (( | |
785 | + | @Callable(aH) | |
786 | + | func setManager (ev) = { | |
787 | + | let dW = aG(aH) | |
788 | + | if ((dW == dW)) | |
748 | 789 | then { | |
749 | - | let | |
750 | - | if (( | |
751 | - | then [StringEntry( | |
790 | + | let ew = fromBase58String(ev) | |
791 | + | if ((ew == ew)) | |
792 | + | then [StringEntry(ag(), ev)] | |
752 | 793 | else throw("Strict value is not equal to itself.") | |
753 | 794 | } | |
754 | 795 | else throw("Strict value is not equal to itself.") | |
755 | 796 | } | |
756 | 797 | ||
757 | 798 | ||
758 | 799 | ||
759 | - | @Callable( | |
800 | + | @Callable(aH) | |
760 | 801 | func confirmManager () = { | |
761 | - | let | |
762 | - | let | |
802 | + | let ex = aF() | |
803 | + | let ey = if (isDefined(ex)) | |
763 | 804 | then true | |
764 | 805 | else throw("No pending manager") | |
765 | - | if (( | |
806 | + | if ((ey == ey)) | |
766 | 807 | then { | |
767 | - | let | |
808 | + | let ez = if ((aH.callerPublicKey == value(ex))) | |
768 | 809 | then true | |
769 | 810 | else throw("You are not pending manager") | |
770 | - | if (( | |
771 | - | then [StringEntry( | |
811 | + | if ((ez == ez)) | |
812 | + | then [StringEntry(af(), toBase58String(value(ex))), DeleteEntry(ag())] | |
772 | 813 | else throw("Strict value is not equal to itself.") | |
773 | 814 | } | |
774 | 815 | else throw("Strict value is not equal to itself.") | |
775 | 816 | } | |
776 | 817 | ||
777 | 818 | ||
778 | - | @Verifier( | |
779 | - | func | |
780 | - | let | |
781 | - | let | |
782 | - | if ($isInstanceOf( | |
819 | + | @Verifier(eA) | |
820 | + | func eB () = { | |
821 | + | let eC = { | |
822 | + | let r = aD() | |
823 | + | if ($isInstanceOf(r, "ByteVector")) | |
783 | 824 | then { | |
784 | - | let | |
785 | - | | |
825 | + | let aJ = r | |
826 | + | aJ | |
786 | 827 | } | |
787 | - | else if ($isInstanceOf( | |
788 | - | then | |
828 | + | else if ($isInstanceOf(r, "Unit")) | |
829 | + | then eA.senderPublicKey | |
789 | 830 | else throw("Match error") | |
790 | 831 | } | |
791 | - | sigVerify( | |
832 | + | sigVerify(eA.bodyBytes, eA.proofs[0], eC) | |
792 | 833 | } | |
793 | 834 |
github/deemru/w8io/026f985 349.42 ms ◑