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