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