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