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