tx · 5bhc79hGkAVU7bQqQYphYdyAVRnAbFSiW4fWqKoeSp5Y 3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb: -0.01000000 Waves 2021.11.24 02:24 [1804337] smart account 3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb > SELF 0.00000000 Waves
{ "type": 13, "id": "5bhc79hGkAVU7bQqQYphYdyAVRnAbFSiW4fWqKoeSp5Y", "fee": 1000000, "feeAssetId": null, "timestamp": 1637709899998, "version": 1, "sender": "3N9Q1fto4gNiBzBhunuF57xU7chekeJBzJb", "senderPublicKey": "5LCbyfeLnA6WFFq4M6L7AEzy8ktT8sL9A5JXoyuaxCCJ", "proofs": [ "2PnwnyVtqbCAiwPPPhiBa88H9gShZn5dAWpj5SP6fsTAuQGZGAfrN3CWAFyQJFmHo8izWrfWuosN1MiXpjKZRJPd" ], "script": "base64:AAIFAAAAAAAAABoIAhIDCgEIEgASBAoCCAESAwoBCBIECgIICAAAADwAAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgBAAAAD2dldFN0cmluZ09yRmFpbAAAAAEAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQiAAAAAQUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAAYZ2V0U3RyaW5nQnlBZGRyZXNzT3JGYWlsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAApt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AAEGVtaXNzaW9uQ29udHJhY3QJAQAAABVrZXlFbWlzc2lvblN0YXJ0QmxvY2sAAAAABAAAAAxwYXNzZWRCbG9ja3MDCQAAZgAAAAIFAAAAEmVtaXNzaW9uU3RhcnRCbG9jawUAAAAGaGVpZ2h0AAAAAAAAAAAACQAAZQAAAAIFAAAABmhlaWdodAUAAAASZW1pc3Npb25TdGFydEJsb2NrBAAAAA5wb29sV3hFbWlzc2lvbgkAAGsAAAADCQAAaAAAAAIFAAAAEnd4RW1pc3Npb25QZXJCbG9jawUAAAAMcGFzc2VkQmxvY2tzBQAAAApwb29sV2VpZ2h0BQAAAA5wb29sV2VpZ2h0TXVsdAQAAAAMdXNlcld4UmV3YXJkCQAAawAAAAMFAAAADnBvb2xXeEVtaXNzaW9uBQAAAAxzdGFrZWRCeVVzZXIFAAAAC3N0YWtlZFRvdGFsBAAAAA0kdDAxMzg5ODE0MDEwCQEAAAAQcmVmcmVzaElOVEVHUkFMUwAAAAQFAAAADGxwQXNzZXRJZFN0cgUAAAAOdXNlckFkZHJlc3NTdHIFAAAADnBvb2xBZGRyZXNzU3RyAAAAAAAAAAAABAAAABB3eFRvQ2xhaW1Vc2VyTmV3CAUAAAANJHQwMTM4OTgxNDAxMAAAAAJfMQQAAAANaW50ZWdyYWxTVEFURQgFAAAADSR0MDEzODk4MTQwMTAAAAACXzIEAAAABWRlYnVnCAUAAAANJHQwMTM4OTgxNDAxMAAAAAJfMwkABRQAAAACBQAAAANuaWwJAAS5AAAAAgkABEwAAAACAgAAAAolcyVzJWQlZCVzCQAETAAAAAIFAAAADGxwQXNzZXRJZFN0cgkABEwAAAACBQAAAA51c2VyQWRkcmVzc1N0cgkABEwAAAACCQABpAAAAAEFAAAADHVzZXJXeFJld2FyZAkABEwAAAACAgAAAAEwCQAETAAAAAIFAAAABWRlYnVnBQAAAANuaWwFAAAAA1NFUAAAAADtIsDk", "chainId": 84, "height": 1804337, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GGk1hvnsGMhTSEFzjow7a8MvGzs3unWsy2fUhy7ZAqZi Next: EtWz3xvMC8e5yLGQpwFmoTub6fVaA1f4vYYy8uySL8Yr Diff:
Old | New | Differences | |
---|---|---|---|
99 | 99 | func T (S) = ("%s%s%s__staked__total__" + S) | |
100 | 100 | ||
101 | 101 | ||
102 | - | func U ( | |
102 | + | func U (R,S) = makeString(["%s%s%s__claimed", R, S], e) | |
103 | 103 | ||
104 | 104 | ||
105 | - | func V ( | |
105 | + | func V (S) = makeString(["%s%s%s__claimed", "total", S], e) | |
106 | 106 | ||
107 | 107 | ||
108 | - | func | |
108 | + | func W (h) = valueOrElse(getInteger(this, h), 0) | |
109 | 109 | ||
110 | 110 | ||
111 | - | func | |
111 | + | func X (Y) = makeString(["%s%s%s", Y, "total", "bal"], e) | |
112 | 112 | ||
113 | 113 | ||
114 | - | func | |
114 | + | func Z (Y,aa) = makeString(["%s%s%s", Y, aa, "bal"], e) | |
115 | 115 | ||
116 | 116 | ||
117 | - | func ab ( | |
117 | + | func ab (Y) = makeString(["%s%s%s", Y, "total", "balINT"], e) | |
118 | 118 | ||
119 | 119 | ||
120 | - | func ac ( | |
120 | + | func ac (Y,aa) = makeString(["%s%s%s", Y, aa, "balINT"], e) | |
121 | 121 | ||
122 | 122 | ||
123 | - | func ad ( | |
123 | + | func ad (Y) = makeString(["%s%s%s", Y, "total", "lastUpd"], e) | |
124 | 124 | ||
125 | 125 | ||
126 | - | func ae ( | |
126 | + | func ae (Y,aa) = makeString(["%s%s%s", Y, aa, "lastUpd"], e) | |
127 | 127 | ||
128 | 128 | ||
129 | - | func af ( | |
129 | + | func af (Y) = makeString(["%s%s%s%s", Y, "common", "lpInt"], e) | |
130 | 130 | ||
131 | 131 | ||
132 | - | func ag ( | |
132 | + | func ag (Y) = makeString(["%s%s%s%s", Y, "common", "lpIntH"], e) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func ah ( | |
135 | + | func ah (Y,aa) = makeString(["%s%s%s%s", Y, aa, "lpInt"], e) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func ai ( | |
138 | + | func ai (Y,aa) = makeString(["%s%s%s%s", Y, aa, "lpIntH"], e) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func aj ( | |
141 | + | func aj (Y) = makeString(["%s", Y, "wxPerLp"], e) | |
142 | 142 | ||
143 | 143 | ||
144 | - | func | |
144 | + | func ak (Y,aa) = makeString(["%s%s%s%s", Y, aa, "uIntL"], e) | |
145 | 145 | ||
146 | 146 | ||
147 | - | func | |
147 | + | func al (am,aa,an) = makeString(["%s%s%s%s__history", am, aa, an], e) | |
148 | 148 | ||
149 | 149 | ||
150 | - | ||
150 | + | func ao (aa,Y,am,ap) = makeString(["%s%s%s%d%d%d", aa, Y, am, toString(height), toString(lastBlock.timestamp), toString(ap)], e) | |
151 | 151 | ||
152 | - | let I = F(aq) | |
153 | 152 | ||
154 | - | ||
153 | + | func aq (am,aa,Y,ap,ar) = StringEntry(al(am, aa, toBase58String(ar)), ao(aa, Y, am, ap)) | |
155 | 154 | ||
156 | - | func as (at,au,av,aw) = if (if ((au == 0)) | |
157 | - | then (at > 0) | |
155 | + | ||
156 | + | let as = D() | |
157 | + | ||
158 | + | let I = F(as) | |
159 | + | ||
160 | + | let at = J(I) | |
161 | + | ||
162 | + | func au (av,aw,ax,ay) = if (if ((aw == 0)) | |
163 | + | then (av > 0) | |
158 | 164 | else false) | |
159 | 165 | then 0 | |
160 | - | else if (( | |
161 | - | then | |
162 | - | else if (if (( | |
163 | - | then ( | |
166 | + | else if ((av == 0)) | |
167 | + | then ax | |
168 | + | else if (if ((aw > 0)) | |
169 | + | then (av > 0) | |
164 | 170 | else false) | |
165 | - | then n(this, | |
171 | + | then n(this, ay) | |
166 | 172 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
167 | 173 | ||
168 | 174 | ||
169 | - | func | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | then | |
192 | - | else fraction( | |
193 | - | let | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | $Tuple3( | |
175 | + | func az (S,R,aA,aB) = { | |
176 | + | let aC = Q(R, S) | |
177 | + | let aD = T(S) | |
178 | + | let av = W(aC) | |
179 | + | let aE = W(aD) | |
180 | + | let aF = getIntegerValue(as, B(aA)) | |
181 | + | let aG = n(at, N()) | |
182 | + | let aH = n(at, L()) | |
183 | + | let aI = fraction(aH, aF, f) | |
184 | + | let aJ = af(S) | |
185 | + | let aK = ag(S) | |
186 | + | let aL = ah(S, R) | |
187 | + | let aM = ai(S, R) | |
188 | + | let aN = aj(S) | |
189 | + | let ay = ak(S, R) | |
190 | + | let aO = l(this, aK, aG) | |
191 | + | let aP = k(this, aJ) | |
192 | + | let aQ = k(this, aL) | |
193 | + | let aw = k(this, aM) | |
194 | + | let aR = k(this, aN) | |
195 | + | let aS = max([(height - aO), 0]) | |
196 | + | let aT = if ((aR != 0)) | |
197 | + | then aR | |
198 | + | else fraction(aI, b, aE) | |
199 | + | let aU = (aE + aB) | |
200 | + | let ax = (aP + (aT * aS)) | |
201 | + | let aV = au(av, aw, ax, ay) | |
202 | + | let aW = (aQ + fraction((ax - aV), av, b)) | |
203 | + | let aX = ax | |
204 | + | let aY = (aI / aU) | |
205 | + | let aZ = height | |
206 | + | let ba = height | |
207 | + | let bb = makeString([toString(aW), toString(ax), toString(aV), toString(av), toString(aS), toString(aT), toString(aE), toString(aI), toString(aH), toString(aF), toString(height)], "::") | |
208 | + | $Tuple3(aW, [IntegerEntry(aJ, ax), IntegerEntry(aK, aZ), IntegerEntry(aL, aW), IntegerEntry(aM, ba), IntegerEntry(aN, aY), IntegerEntry(ay, aX)], bb) | |
203 | 209 | } | |
204 | 210 | ||
205 | 211 | ||
206 | - | @Callable( | |
207 | - | func constructor ( | |
212 | + | @Callable(bc) | |
213 | + | func constructor (bd) = if ((bc.caller != this)) | |
208 | 214 | then throw("not authorized") | |
209 | - | else [StringEntry(o(), | |
215 | + | else [StringEntry(o(), bd)] | |
210 | 216 | ||
211 | 217 | ||
212 | 218 | ||
213 | - | @Callable( | |
214 | - | func stake () = if ((size( | |
219 | + | @Callable(bc) | |
220 | + | func stake () = if ((size(bc.payments) != 1)) | |
215 | 221 | then throw("invalid payment - exact one payment must be attached") | |
216 | 222 | else { | |
217 | - | let | |
218 | - | let | |
219 | - | let S = toBase58String( | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let R = if (( | |
224 | - | then toString( | |
225 | - | else | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | ||
223 | + | let be = bc.payments[0] | |
224 | + | let Y = value(be.assetId) | |
225 | + | let S = toBase58String(Y) | |
226 | + | let ap = be.amount | |
227 | + | let aA = valueOrErrorMessage(getString(as, x(S)), ("unsupported lp asset " + S)) | |
228 | + | let bf = toString(bc.caller) | |
229 | + | let R = if ((bf == aA)) | |
230 | + | then toString(bc.originCaller) | |
231 | + | else bf | |
232 | + | let aC = Q(R, S) | |
233 | + | let aD = T(S) | |
234 | + | let av = W(aC) | |
235 | + | let aE = W(aD) | |
236 | + | let bg = az(S, R, aA, ap) | |
237 | + | let aW = bg._1 | |
238 | + | let bh = bg._2 | |
239 | + | let bb = bg._3 | |
240 | + | [IntegerEntry(aC, (av + ap)), IntegerEntry(aD, (aE + ap)), aq("stake", R, S, ap, bc.transactionId)] | |
235 | 241 | } | |
236 | 242 | ||
237 | 243 | ||
238 | 244 | ||
239 | - | @Callable( | |
240 | - | func unstake (S, | |
241 | - | let R = toString( | |
242 | - | let | |
243 | - | if (!(isDefined(getString( | |
245 | + | @Callable(bc) | |
246 | + | func unstake (S,ap) = { | |
247 | + | let R = toString(bc.caller) | |
248 | + | let Y = fromBase58String(S) | |
249 | + | if (!(isDefined(getString(as, x(S))))) | |
244 | 250 | then throw(("unsupported lp asset " + S)) | |
245 | 251 | else { | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | if (( | |
252 | + | let aC = Q(R, S) | |
253 | + | let aD = T(S) | |
254 | + | let av = W(aC) | |
255 | + | let aE = W(aD) | |
256 | + | if ((ap > av)) | |
251 | 257 | then throw("passed amount is less then available") | |
252 | - | else [IntegerEntry( | |
258 | + | else [IntegerEntry(aC, (av - ap)), IntegerEntry(aD, (aE - ap)), ScriptTransfer(bc.caller, ap, Y), aq("unstake", R, S, ap, bc.transactionId)] | |
253 | 259 | } | |
254 | 260 | } | |
255 | 261 | ||
256 | 262 | ||
257 | 263 | ||
258 | - | @Callable(ba) | |
259 | - | func claimWx (S) = throw("temporary disabled") | |
264 | + | @Callable(bc) | |
265 | + | func claimWx (S) = { | |
266 | + | let R = toString(bc.caller) | |
267 | + | if (!(isDefined(getString(as, x(S))))) | |
268 | + | then throw(("unsupported lp asset " + S)) | |
269 | + | else { | |
270 | + | let bi = U(S, R) | |
271 | + | let bj = V(S) | |
272 | + | throw("temporary disabled") | |
273 | + | } | |
274 | + | } | |
260 | 275 | ||
261 | 276 | ||
262 | 277 | ||
263 | - | @Callable( | |
278 | + | @Callable(bc) | |
264 | 279 | func claimWxREADONLY (S,R) = { | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
280 | + | let aC = Q(R, S) | |
281 | + | let aD = T(S) | |
282 | + | let av = W(aC) | |
283 | + | let aE = W(aD) | |
284 | + | let aA = i(as, A(S)) | |
285 | + | let bk = b | |
286 | + | let aF = getIntegerValue(as, B(aA)) | |
287 | + | let aH = n(at, L()) | |
288 | + | let aG = n(at, N()) | |
289 | + | let bl = if ((aG > height)) | |
275 | 290 | then 0 | |
276 | - | else (height - | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | $Tuple2(nil, makeString(["%s%s%d%d%s", S, R, toString( | |
291 | + | else (height - aG) | |
292 | + | let bm = fraction((aH * bl), aF, bk) | |
293 | + | let bn = fraction(bm, av, aE) | |
294 | + | let bo = az(S, R, aA, 0) | |
295 | + | let aW = bo._1 | |
296 | + | let bh = bo._2 | |
297 | + | let bb = bo._3 | |
298 | + | $Tuple2(nil, makeString(["%s%s%d%d%s", S, R, toString(bn), "0", bb], e)) | |
284 | 299 | } | |
285 | 300 | ||
286 | 301 |
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 | - | func U ( | |
102 | + | func U (R,S) = makeString(["%s%s%s__claimed", R, S], e) | |
103 | 103 | ||
104 | 104 | ||
105 | - | func V ( | |
105 | + | func V (S) = makeString(["%s%s%s__claimed", "total", S], e) | |
106 | 106 | ||
107 | 107 | ||
108 | - | func | |
108 | + | func W (h) = valueOrElse(getInteger(this, h), 0) | |
109 | 109 | ||
110 | 110 | ||
111 | - | func | |
111 | + | func X (Y) = makeString(["%s%s%s", Y, "total", "bal"], e) | |
112 | 112 | ||
113 | 113 | ||
114 | - | func | |
114 | + | func Z (Y,aa) = makeString(["%s%s%s", Y, aa, "bal"], e) | |
115 | 115 | ||
116 | 116 | ||
117 | - | func ab ( | |
117 | + | func ab (Y) = makeString(["%s%s%s", Y, "total", "balINT"], e) | |
118 | 118 | ||
119 | 119 | ||
120 | - | func ac ( | |
120 | + | func ac (Y,aa) = makeString(["%s%s%s", Y, aa, "balINT"], e) | |
121 | 121 | ||
122 | 122 | ||
123 | - | func ad ( | |
123 | + | func ad (Y) = makeString(["%s%s%s", Y, "total", "lastUpd"], e) | |
124 | 124 | ||
125 | 125 | ||
126 | - | func ae ( | |
126 | + | func ae (Y,aa) = makeString(["%s%s%s", Y, aa, "lastUpd"], e) | |
127 | 127 | ||
128 | 128 | ||
129 | - | func af ( | |
129 | + | func af (Y) = makeString(["%s%s%s%s", Y, "common", "lpInt"], e) | |
130 | 130 | ||
131 | 131 | ||
132 | - | func ag ( | |
132 | + | func ag (Y) = makeString(["%s%s%s%s", Y, "common", "lpIntH"], e) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func ah ( | |
135 | + | func ah (Y,aa) = makeString(["%s%s%s%s", Y, aa, "lpInt"], e) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func ai ( | |
138 | + | func ai (Y,aa) = makeString(["%s%s%s%s", Y, aa, "lpIntH"], e) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func aj ( | |
141 | + | func aj (Y) = makeString(["%s", Y, "wxPerLp"], e) | |
142 | 142 | ||
143 | 143 | ||
144 | - | func | |
144 | + | func ak (Y,aa) = makeString(["%s%s%s%s", Y, aa, "uIntL"], e) | |
145 | 145 | ||
146 | 146 | ||
147 | - | func | |
147 | + | func al (am,aa,an) = makeString(["%s%s%s%s__history", am, aa, an], e) | |
148 | 148 | ||
149 | 149 | ||
150 | - | ||
150 | + | func ao (aa,Y,am,ap) = makeString(["%s%s%s%d%d%d", aa, Y, am, toString(height), toString(lastBlock.timestamp), toString(ap)], e) | |
151 | 151 | ||
152 | - | let I = F(aq) | |
153 | 152 | ||
154 | - | ||
153 | + | func aq (am,aa,Y,ap,ar) = StringEntry(al(am, aa, toBase58String(ar)), ao(aa, Y, am, ap)) | |
155 | 154 | ||
156 | - | func as (at,au,av,aw) = if (if ((au == 0)) | |
157 | - | then (at > 0) | |
155 | + | ||
156 | + | let as = D() | |
157 | + | ||
158 | + | let I = F(as) | |
159 | + | ||
160 | + | let at = J(I) | |
161 | + | ||
162 | + | func au (av,aw,ax,ay) = if (if ((aw == 0)) | |
163 | + | then (av > 0) | |
158 | 164 | else false) | |
159 | 165 | then 0 | |
160 | - | else if (( | |
161 | - | then | |
162 | - | else if (if (( | |
163 | - | then ( | |
166 | + | else if ((av == 0)) | |
167 | + | then ax | |
168 | + | else if (if ((aw > 0)) | |
169 | + | then (av > 0) | |
164 | 170 | else false) | |
165 | - | then n(this, | |
171 | + | then n(this, ay) | |
166 | 172 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
167 | 173 | ||
168 | 174 | ||
169 | - | func | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | then | |
192 | - | else fraction( | |
193 | - | let | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | $Tuple3( | |
175 | + | func az (S,R,aA,aB) = { | |
176 | + | let aC = Q(R, S) | |
177 | + | let aD = T(S) | |
178 | + | let av = W(aC) | |
179 | + | let aE = W(aD) | |
180 | + | let aF = getIntegerValue(as, B(aA)) | |
181 | + | let aG = n(at, N()) | |
182 | + | let aH = n(at, L()) | |
183 | + | let aI = fraction(aH, aF, f) | |
184 | + | let aJ = af(S) | |
185 | + | let aK = ag(S) | |
186 | + | let aL = ah(S, R) | |
187 | + | let aM = ai(S, R) | |
188 | + | let aN = aj(S) | |
189 | + | let ay = ak(S, R) | |
190 | + | let aO = l(this, aK, aG) | |
191 | + | let aP = k(this, aJ) | |
192 | + | let aQ = k(this, aL) | |
193 | + | let aw = k(this, aM) | |
194 | + | let aR = k(this, aN) | |
195 | + | let aS = max([(height - aO), 0]) | |
196 | + | let aT = if ((aR != 0)) | |
197 | + | then aR | |
198 | + | else fraction(aI, b, aE) | |
199 | + | let aU = (aE + aB) | |
200 | + | let ax = (aP + (aT * aS)) | |
201 | + | let aV = au(av, aw, ax, ay) | |
202 | + | let aW = (aQ + fraction((ax - aV), av, b)) | |
203 | + | let aX = ax | |
204 | + | let aY = (aI / aU) | |
205 | + | let aZ = height | |
206 | + | let ba = height | |
207 | + | let bb = makeString([toString(aW), toString(ax), toString(aV), toString(av), toString(aS), toString(aT), toString(aE), toString(aI), toString(aH), toString(aF), toString(height)], "::") | |
208 | + | $Tuple3(aW, [IntegerEntry(aJ, ax), IntegerEntry(aK, aZ), IntegerEntry(aL, aW), IntegerEntry(aM, ba), IntegerEntry(aN, aY), IntegerEntry(ay, aX)], bb) | |
203 | 209 | } | |
204 | 210 | ||
205 | 211 | ||
206 | - | @Callable( | |
207 | - | func constructor ( | |
212 | + | @Callable(bc) | |
213 | + | func constructor (bd) = if ((bc.caller != this)) | |
208 | 214 | then throw("not authorized") | |
209 | - | else [StringEntry(o(), | |
215 | + | else [StringEntry(o(), bd)] | |
210 | 216 | ||
211 | 217 | ||
212 | 218 | ||
213 | - | @Callable( | |
214 | - | func stake () = if ((size( | |
219 | + | @Callable(bc) | |
220 | + | func stake () = if ((size(bc.payments) != 1)) | |
215 | 221 | then throw("invalid payment - exact one payment must be attached") | |
216 | 222 | else { | |
217 | - | let | |
218 | - | let | |
219 | - | let S = toBase58String( | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let R = if (( | |
224 | - | then toString( | |
225 | - | else | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | ||
223 | + | let be = bc.payments[0] | |
224 | + | let Y = value(be.assetId) | |
225 | + | let S = toBase58String(Y) | |
226 | + | let ap = be.amount | |
227 | + | let aA = valueOrErrorMessage(getString(as, x(S)), ("unsupported lp asset " + S)) | |
228 | + | let bf = toString(bc.caller) | |
229 | + | let R = if ((bf == aA)) | |
230 | + | then toString(bc.originCaller) | |
231 | + | else bf | |
232 | + | let aC = Q(R, S) | |
233 | + | let aD = T(S) | |
234 | + | let av = W(aC) | |
235 | + | let aE = W(aD) | |
236 | + | let bg = az(S, R, aA, ap) | |
237 | + | let aW = bg._1 | |
238 | + | let bh = bg._2 | |
239 | + | let bb = bg._3 | |
240 | + | [IntegerEntry(aC, (av + ap)), IntegerEntry(aD, (aE + ap)), aq("stake", R, S, ap, bc.transactionId)] | |
235 | 241 | } | |
236 | 242 | ||
237 | 243 | ||
238 | 244 | ||
239 | - | @Callable( | |
240 | - | func unstake (S, | |
241 | - | let R = toString( | |
242 | - | let | |
243 | - | if (!(isDefined(getString( | |
245 | + | @Callable(bc) | |
246 | + | func unstake (S,ap) = { | |
247 | + | let R = toString(bc.caller) | |
248 | + | let Y = fromBase58String(S) | |
249 | + | if (!(isDefined(getString(as, x(S))))) | |
244 | 250 | then throw(("unsupported lp asset " + S)) | |
245 | 251 | else { | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | if (( | |
252 | + | let aC = Q(R, S) | |
253 | + | let aD = T(S) | |
254 | + | let av = W(aC) | |
255 | + | let aE = W(aD) | |
256 | + | if ((ap > av)) | |
251 | 257 | then throw("passed amount is less then available") | |
252 | - | else [IntegerEntry( | |
258 | + | else [IntegerEntry(aC, (av - ap)), IntegerEntry(aD, (aE - ap)), ScriptTransfer(bc.caller, ap, Y), aq("unstake", R, S, ap, bc.transactionId)] | |
253 | 259 | } | |
254 | 260 | } | |
255 | 261 | ||
256 | 262 | ||
257 | 263 | ||
258 | - | @Callable(ba) | |
259 | - | func claimWx (S) = throw("temporary disabled") | |
264 | + | @Callable(bc) | |
265 | + | func claimWx (S) = { | |
266 | + | let R = toString(bc.caller) | |
267 | + | if (!(isDefined(getString(as, x(S))))) | |
268 | + | then throw(("unsupported lp asset " + S)) | |
269 | + | else { | |
270 | + | let bi = U(S, R) | |
271 | + | let bj = V(S) | |
272 | + | throw("temporary disabled") | |
273 | + | } | |
274 | + | } | |
260 | 275 | ||
261 | 276 | ||
262 | 277 | ||
263 | - | @Callable( | |
278 | + | @Callable(bc) | |
264 | 279 | func claimWxREADONLY (S,R) = { | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
280 | + | let aC = Q(R, S) | |
281 | + | let aD = T(S) | |
282 | + | let av = W(aC) | |
283 | + | let aE = W(aD) | |
284 | + | let aA = i(as, A(S)) | |
285 | + | let bk = b | |
286 | + | let aF = getIntegerValue(as, B(aA)) | |
287 | + | let aH = n(at, L()) | |
288 | + | let aG = n(at, N()) | |
289 | + | let bl = if ((aG > height)) | |
275 | 290 | then 0 | |
276 | - | else (height - | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | $Tuple2(nil, makeString(["%s%s%d%d%s", S, R, toString( | |
291 | + | else (height - aG) | |
292 | + | let bm = fraction((aH * bl), aF, bk) | |
293 | + | let bn = fraction(bm, av, aE) | |
294 | + | let bo = az(S, R, aA, 0) | |
295 | + | let aW = bo._1 | |
296 | + | let bh = bo._2 | |
297 | + | let bb = bo._3 | |
298 | + | $Tuple2(nil, makeString(["%s%s%d%d%s", S, R, toString(bn), "0", bb], e)) | |
284 | 299 | } | |
285 | 300 | ||
286 | 301 |
github/deemru/w8io/026f985 80.34 ms ◑