tx · GGk1hvnsGMhTSEFzjow7a8MvGzs3unWsy2fUhy7ZAqZi 3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb: -0.01000000 Waves 2021.11.24 02:07 [1804315] smart account 3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb > SELF 0.00000000 Waves
{ "type": 13, "id": "GGk1hvnsGMhTSEFzjow7a8MvGzs3unWsy2fUhy7ZAqZi", "fee": 1000000, "feeAssetId": null, "timestamp": 1637708829814, "version": 1, "sender": "3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb", "senderPublicKey": "5LCbyfeLnA6WFFq4M6L7AEzy8ktT8sL9A5JXoyuaxCCJ", "proofs": [ "5wffS3M33b4oWJcSkDbixKqwMrqfqMZcG1HVBXtqqnUVk2ntAYKWfzr6WXtwpZY6YQem68QD1eCQ7RKcWEnazcyH" ], "script": "base64:AAIFAAAAAAAAABoIAhIDCgEIEgASBAoCCAESAwoBCBIECgIICAAAADoAAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgBAAAAD2dldFN0cmluZ09yRmFpbAAAAAEAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQiAAAAAQUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAAYZ2V0U3RyaW5nQnlBZGRyZXNzT3JGYWlsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAptYW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AEuQAAAAIJAARMAAAAAgIAAAAKJXMlcyVkJWQlcwkABEwAAAACBQAAAAxscEFzc2V0SWRTdHIJAARMAAAAAgUAAAAOdXNlckFkZHJlc3NTdHIJAARMAAAAAgkAAaQAAAABBQAAAAx1c2VyV3hSZXdhcmQJAARMAAAAAgIAAAABMAkABEwAAAACBQAAAAVkZWJ1ZwUAAAADbmlsBQAAAANTRVAAAAAAb3J07w==", "chainId": 84, "height": 1804315, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B7jw4ffAMNnYp6gZvdY82ZezFCAikLNkxK5GVLb5QJSD Next: 5bhc79hGkAVU7bQqQYphYdyAVRnAbFSiW4fWqKoeSp5Y Diff:
Old | New | Differences | |
---|---|---|---|
198 | 198 | let aW = (aG / aS) | |
199 | 199 | let aX = height | |
200 | 200 | let aY = height | |
201 | - | let aZ = makeString([toString(aU), toString(av), toString(aT), toString(at), toString(aQ), toString(aR), toString(aC), toString(aG), toString(aF), toString(aD)], "::") | |
201 | + | let aZ = makeString([toString(aU), toString(av), toString(aT), toString(at), toString(aQ), toString(aR), toString(aC), toString(aG), toString(aF), toString(aD), toString(height)], "::") | |
202 | 202 | $Tuple3(aU, [IntegerEntry(aH, av), IntegerEntry(aI, aX), IntegerEntry(aJ, aU), IntegerEntry(aK, aY), IntegerEntry(aL, aW), IntegerEntry(aw, aV)], aZ) | |
203 | 203 | } | |
204 | 204 | ||
227 | 227 | let aB = T(S) | |
228 | 228 | let at = U(aA) | |
229 | 229 | let aC = U(aB) | |
230 | - | let aD = getIntegerValue(aq, B(ay)) | |
231 | - | let aE = n(ar, N()) | |
232 | - | let aF = n(ar, L()) | |
233 | - | let aG = fraction(aF, aD, (f * 3)) | |
234 | - | let aH = ad(S) | |
235 | - | let aI = ae(S) | |
236 | - | let aJ = af(S, R) | |
237 | - | let aK = ag(S, R) | |
238 | - | let aL = ah(S) | |
239 | - | let aw = ai(S, R) | |
240 | - | let aM = l(this, aI, aE) | |
241 | - | let aN = k(this, aH) | |
242 | - | let aO = k(this, aJ) | |
243 | - | let be = k(this, aK) | |
244 | - | let aP = k(this, aL) | |
245 | - | let aQ = max([(height - aM), 0]) | |
246 | - | let aR = if ((aP != 0)) | |
247 | - | then aP | |
248 | - | else (aG / aC) | |
249 | - | let aS = (aC + an) | |
250 | - | let av = (aN + (aR * aQ)) | |
251 | - | let aT = if (if ((be == 0)) | |
252 | - | then (at > 0) | |
253 | - | else false) | |
254 | - | then 0 | |
255 | - | else if ((at == 0)) | |
256 | - | then av | |
257 | - | else if (if ((be > 0)) | |
258 | - | then (at > 0) | |
259 | - | else false) | |
260 | - | then n(this, aw) | |
261 | - | else throw("Invalid condition") | |
262 | - | let aU = (aO + ((av - aT) * at)) | |
263 | - | let aV = av | |
264 | - | let aW = (aG / aS) | |
265 | - | let aX = height | |
266 | - | let aY = height | |
267 | - | [IntegerEntry(aA, (at + an)), IntegerEntry(aB, aS), ao("stake", R, S, an, ba.transactionId)] | |
230 | + | let be = ax(S, R, ay, an) | |
231 | + | let aU = be._1 | |
232 | + | let bf = be._2 | |
233 | + | let aZ = be._3 | |
234 | + | ([IntegerEntry(aA, (at + an)), IntegerEntry(aB, (aC + an)), ao("stake", R, S, an, ba.transactionId)] ++ bf) | |
268 | 235 | } | |
269 | 236 | ||
270 | 237 | ||
300 | 267 | let at = U(aA) | |
301 | 268 | let aC = U(aB) | |
302 | 269 | let ay = i(aq, A(S)) | |
303 | - | let | |
270 | + | let bg = b | |
304 | 271 | let aD = getIntegerValue(aq, B(ay)) | |
305 | 272 | let aF = n(ar, L()) | |
306 | 273 | let aE = n(ar, N()) | |
307 | - | let | |
274 | + | let bh = if ((aE > height)) | |
308 | 275 | then 0 | |
309 | 276 | else (height - aE) | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let aU = | |
314 | - | let | |
315 | - | let aZ = | |
316 | - | $Tuple2(nil, makeString(["%s%s%d%d%s", S, R, toString( | |
277 | + | let bi = fraction((aF * bh), aD, bg) | |
278 | + | let bj = fraction(bi, at, aC) | |
279 | + | let bk = ax(S, R, ay, 0) | |
280 | + | let aU = bk._1 | |
281 | + | let bf = bk._2 | |
282 | + | let aZ = bk._3 | |
283 | + | $Tuple2(nil, makeString(["%s%s%d%d%s", S, R, toString(bj), "0", aZ], e)) | |
317 | 284 | } | |
318 | 285 | ||
319 | 286 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | func g (h) = valueOrErrorMessage(getString(h), (("mandatory this." + h) + " is not defined")) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (j,h) = valueOrErrorMessage(getString(j, h), (((("mandatory " + toString(j)) + ".") + h) + " is not defined")) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func k (j,h) = valueOrElse(getInteger(j, h), 0) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func l (j,h,m) = valueOrElse(getInteger(j, h), m) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func n (j,h) = valueOrErrorMessage(getInteger(j, h), (("mandatory this." + h) + " is not defined")) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func o () = "%s%s__config__factoryAddress" | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 5 | |
43 | 43 | ||
44 | 44 | let u = 6 | |
45 | 45 | ||
46 | 46 | let v = 7 | |
47 | 47 | ||
48 | 48 | func w () = "%s__factoryConfig" | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], e) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func z () = "%s__lpTokensList" | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func A (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], e) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func B (C) = makeString(["%s%s", "poolWeight", C], e) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func D () = addressFromStringValue(g(o())) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func E () = split(valueOrElse(getString(D(), z()), ""), e) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func F (G) = split(i(G, w()), e) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func H (I) = addressFromStringValue(I[q]) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func J (I) = addressFromStringValue(I[t]) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func K (I) = addressFromStringValue(I[p]) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func L () = "%s%s__ratePerBlock__current" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func M () = "%s%s__ratePerBlockMax__current" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func N () = "%s%s__emission__startBlock" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func O () = "%s%s__emission__duration" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func P () = "%s%s__emission__endBlock" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func Q (R,S) = makeString(["%s%s%s__staked", R, S], e) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func T (S) = ("%s%s%s__staked__total__" + S) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func U (h) = valueOrElse(getInteger(this, h), 0) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func V (W) = makeString(["%s%s%s", W, "total", "bal"], e) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func X (W,Y) = makeString(["%s%s%s", W, Y, "bal"], e) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func Z (W) = makeString(["%s%s%s", W, "total", "balINT"], e) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func aa (W,Y) = makeString(["%s%s%s", W, Y, "balINT"], e) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ab (W) = makeString(["%s%s%s", W, "total", "lastUpd"], e) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ac (W,Y) = makeString(["%s%s%s", W, Y, "lastUpd"], e) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ad (W) = makeString(["%s%s%s%s", W, "common", "lpInt"], e) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ae (W) = makeString(["%s%s%s%s", W, "common", "lpIntH"], e) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func af (W,Y) = makeString(["%s%s%s%s", W, Y, "lpInt"], e) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ag (W,Y) = makeString(["%s%s%s%s", W, Y, "lpIntH"], e) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ah (W) = makeString(["%s", W, "wxPerLp"], e) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ai (W,Y) = makeString(["%s%s%s%s", W, Y, "uIntL"], e) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aj (ak,Y,al) = makeString(["%s%s%s%s__history", ak, Y, al], e) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func am (Y,W,ak,an) = makeString(["%s%s%s%d%d%d", Y, W, ak, toString(height), toString(lastBlock.timestamp), toString(an)], e) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ao (ak,Y,W,an,ap) = StringEntry(aj(ak, Y, toBase58String(ap)), am(Y, W, ak, an)) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | let aq = D() | |
151 | 151 | ||
152 | 152 | let I = F(aq) | |
153 | 153 | ||
154 | 154 | let ar = J(I) | |
155 | 155 | ||
156 | 156 | func as (at,au,av,aw) = if (if ((au == 0)) | |
157 | 157 | then (at > 0) | |
158 | 158 | else false) | |
159 | 159 | then 0 | |
160 | 160 | else if ((at == 0)) | |
161 | 161 | then av | |
162 | 162 | else if (if ((au > 0)) | |
163 | 163 | then (at > 0) | |
164 | 164 | else false) | |
165 | 165 | then n(this, aw) | |
166 | 166 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func ax (S,R,ay,az) = { | |
170 | 170 | let aA = Q(R, S) | |
171 | 171 | let aB = T(S) | |
172 | 172 | let at = U(aA) | |
173 | 173 | let aC = U(aB) | |
174 | 174 | let aD = getIntegerValue(aq, B(ay)) | |
175 | 175 | let aE = n(ar, N()) | |
176 | 176 | let aF = n(ar, L()) | |
177 | 177 | let aG = fraction(aF, aD, f) | |
178 | 178 | let aH = ad(S) | |
179 | 179 | let aI = ae(S) | |
180 | 180 | let aJ = af(S, R) | |
181 | 181 | let aK = ag(S, R) | |
182 | 182 | let aL = ah(S) | |
183 | 183 | let aw = ai(S, R) | |
184 | 184 | let aM = l(this, aI, aE) | |
185 | 185 | let aN = k(this, aH) | |
186 | 186 | let aO = k(this, aJ) | |
187 | 187 | let au = k(this, aK) | |
188 | 188 | let aP = k(this, aL) | |
189 | 189 | let aQ = max([(height - aM), 0]) | |
190 | 190 | let aR = if ((aP != 0)) | |
191 | 191 | then aP | |
192 | 192 | else fraction(aG, b, aC) | |
193 | 193 | let aS = (aC + az) | |
194 | 194 | let av = (aN + (aR * aQ)) | |
195 | 195 | let aT = as(at, au, av, aw) | |
196 | 196 | let aU = (aO + fraction((av - aT), at, b)) | |
197 | 197 | let aV = av | |
198 | 198 | let aW = (aG / aS) | |
199 | 199 | let aX = height | |
200 | 200 | let aY = height | |
201 | - | let aZ = makeString([toString(aU), toString(av), toString(aT), toString(at), toString(aQ), toString(aR), toString(aC), toString(aG), toString(aF), toString(aD)], "::") | |
201 | + | let aZ = makeString([toString(aU), toString(av), toString(aT), toString(at), toString(aQ), toString(aR), toString(aC), toString(aG), toString(aF), toString(aD), toString(height)], "::") | |
202 | 202 | $Tuple3(aU, [IntegerEntry(aH, av), IntegerEntry(aI, aX), IntegerEntry(aJ, aU), IntegerEntry(aK, aY), IntegerEntry(aL, aW), IntegerEntry(aw, aV)], aZ) | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | @Callable(ba) | |
207 | 207 | func constructor (bb) = if ((ba.caller != this)) | |
208 | 208 | then throw("not authorized") | |
209 | 209 | else [StringEntry(o(), bb)] | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(ba) | |
214 | 214 | func stake () = if ((size(ba.payments) != 1)) | |
215 | 215 | then throw("invalid payment - exact one payment must be attached") | |
216 | 216 | else { | |
217 | 217 | let bc = ba.payments[0] | |
218 | 218 | let W = value(bc.assetId) | |
219 | 219 | let S = toBase58String(W) | |
220 | 220 | let an = bc.amount | |
221 | 221 | let ay = valueOrErrorMessage(getString(aq, x(S)), ("unsupported lp asset " + S)) | |
222 | 222 | let bd = toString(ba.caller) | |
223 | 223 | let R = if ((bd == ay)) | |
224 | 224 | then toString(ba.originCaller) | |
225 | 225 | else bd | |
226 | 226 | let aA = Q(R, S) | |
227 | 227 | let aB = T(S) | |
228 | 228 | let at = U(aA) | |
229 | 229 | let aC = U(aB) | |
230 | - | let aD = getIntegerValue(aq, B(ay)) | |
231 | - | let aE = n(ar, N()) | |
232 | - | let aF = n(ar, L()) | |
233 | - | let aG = fraction(aF, aD, (f * 3)) | |
234 | - | let aH = ad(S) | |
235 | - | let aI = ae(S) | |
236 | - | let aJ = af(S, R) | |
237 | - | let aK = ag(S, R) | |
238 | - | let aL = ah(S) | |
239 | - | let aw = ai(S, R) | |
240 | - | let aM = l(this, aI, aE) | |
241 | - | let aN = k(this, aH) | |
242 | - | let aO = k(this, aJ) | |
243 | - | let be = k(this, aK) | |
244 | - | let aP = k(this, aL) | |
245 | - | let aQ = max([(height - aM), 0]) | |
246 | - | let aR = if ((aP != 0)) | |
247 | - | then aP | |
248 | - | else (aG / aC) | |
249 | - | let aS = (aC + an) | |
250 | - | let av = (aN + (aR * aQ)) | |
251 | - | let aT = if (if ((be == 0)) | |
252 | - | then (at > 0) | |
253 | - | else false) | |
254 | - | then 0 | |
255 | - | else if ((at == 0)) | |
256 | - | then av | |
257 | - | else if (if ((be > 0)) | |
258 | - | then (at > 0) | |
259 | - | else false) | |
260 | - | then n(this, aw) | |
261 | - | else throw("Invalid condition") | |
262 | - | let aU = (aO + ((av - aT) * at)) | |
263 | - | let aV = av | |
264 | - | let aW = (aG / aS) | |
265 | - | let aX = height | |
266 | - | let aY = height | |
267 | - | [IntegerEntry(aA, (at + an)), IntegerEntry(aB, aS), ao("stake", R, S, an, ba.transactionId)] | |
230 | + | let be = ax(S, R, ay, an) | |
231 | + | let aU = be._1 | |
232 | + | let bf = be._2 | |
233 | + | let aZ = be._3 | |
234 | + | ([IntegerEntry(aA, (at + an)), IntegerEntry(aB, (aC + an)), ao("stake", R, S, an, ba.transactionId)] ++ bf) | |
268 | 235 | } | |
269 | 236 | ||
270 | 237 | ||
271 | 238 | ||
272 | 239 | @Callable(ba) | |
273 | 240 | func unstake (S,an) = { | |
274 | 241 | let R = toString(ba.caller) | |
275 | 242 | let W = fromBase58String(S) | |
276 | 243 | if (!(isDefined(getString(aq, x(S))))) | |
277 | 244 | then throw(("unsupported lp asset " + S)) | |
278 | 245 | else { | |
279 | 246 | let aA = Q(R, S) | |
280 | 247 | let aB = T(S) | |
281 | 248 | let at = U(aA) | |
282 | 249 | let aC = U(aB) | |
283 | 250 | if ((an > at)) | |
284 | 251 | then throw("passed amount is less then available") | |
285 | 252 | else [IntegerEntry(aA, (at - an)), IntegerEntry(aB, (aC - an)), ScriptTransfer(ba.caller, an, W), ao("unstake", R, S, an, ba.transactionId)] | |
286 | 253 | } | |
287 | 254 | } | |
288 | 255 | ||
289 | 256 | ||
290 | 257 | ||
291 | 258 | @Callable(ba) | |
292 | 259 | func claimWx (S) = throw("temporary disabled") | |
293 | 260 | ||
294 | 261 | ||
295 | 262 | ||
296 | 263 | @Callable(ba) | |
297 | 264 | func claimWxREADONLY (S,R) = { | |
298 | 265 | let aA = Q(R, S) | |
299 | 266 | let aB = T(S) | |
300 | 267 | let at = U(aA) | |
301 | 268 | let aC = U(aB) | |
302 | 269 | let ay = i(aq, A(S)) | |
303 | - | let | |
270 | + | let bg = b | |
304 | 271 | let aD = getIntegerValue(aq, B(ay)) | |
305 | 272 | let aF = n(ar, L()) | |
306 | 273 | let aE = n(ar, N()) | |
307 | - | let | |
274 | + | let bh = if ((aE > height)) | |
308 | 275 | then 0 | |
309 | 276 | else (height - aE) | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let aU = | |
314 | - | let | |
315 | - | let aZ = | |
316 | - | $Tuple2(nil, makeString(["%s%s%d%d%s", S, R, toString( | |
277 | + | let bi = fraction((aF * bh), aD, bg) | |
278 | + | let bj = fraction(bi, at, aC) | |
279 | + | let bk = ax(S, R, ay, 0) | |
280 | + | let aU = bk._1 | |
281 | + | let bf = bk._2 | |
282 | + | let aZ = bk._3 | |
283 | + | $Tuple2(nil, makeString(["%s%s%d%d%s", S, R, toString(bj), "0", aZ], e)) | |
317 | 284 | } | |
318 | 285 | ||
319 | 286 |
github/deemru/w8io/169f3d6 44.55 ms ◑