tx · 5HtetvPxVF4qncRXZvhm9D3z1uCBUy7ehSNoELQHYnro 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy: -0.04000000 Waves 2022.08.05 06:28 [2170645] smart account 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy > SELF 0.00000000 Waves
{ "type": 13, "id": "5HtetvPxVF4qncRXZvhm9D3z1uCBUy7ehSNoELQHYnro", "fee": 4000000, "feeAssetId": null, "timestamp": 1659670026130, "version": 1, "sender": "3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy", "senderPublicKey": "FK9j3YFWVChXKESTn33fMZz1JseCNMMqHhfB7smxJo4e", "proofs": [ "51M6nNDFsdbbDWTTQxSD71RSC6QsQDRSyivLJSuQZwHKHwnsKZKhwwv8vqTCVfEXeXeUgUnAUjd6B9FxKXFWVMi3" ], "script": "base64:BgIlCAISBQoDAQgIEgASABIDCgEBEgASABIAEgMKAQgSBAoCCAESAE0ACXNlcGFyYXRvcgICX18AA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDgAgMLXLwAGTVVMVFg2CQC2AgEFBU1VTFQ2AAZNVUxUWDgJALYCAQUFTVVMVDgAB01VTFRYMTgJALYCAQCAgJC7utat8A0ACldBVkVTSURTVFICBVdBVkVTAAdXQVZFU0lECQDZBAEFCldBVkVTSURTVFIAGUlkeENvbnRyb2xDZmdOZXV0cmlub0RhcHAAAQAYSWR4Q29udHJvbENmZ0F1Y3Rpb25EYXBwAAIAFElkeENvbnRyb2xDZmdScGREYXBwAAMAFUlkeENvbnRyb2xDZmdNYXRoRGFwcAAEABxJZHhDb250cm9sQ2ZnTGlxdWlkYXRpb25EYXBwAAUAFUlkeENvbnRyb2xDZmdSZXN0RGFwcAAGAB1JZHhDb250cm9sQ2ZnTm9kZVJlZ2lzdHJ5RGFwcAAHABxJZHhDb250cm9sQ2ZnTnNidFN0YWtpbmdEYXBwAAgAGUlkeENvbnRyb2xDZmdNZWRpYXRvckRhcHAACQAcSWR4Q29udHJ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VIZWlnaHQJAMwIAgUUdnBFZmZlY3RpdmVIZWlnaHRORVcFA25pbAFpARFjb25maWdTWVNSRUFET05MWQAECm1pbkxvY2tBbXQJARFAZXh0ck5hdGl2ZSgxMDU1KQEJARBrZXlNaW5Mb2NrQW1vdW50AAQSZ25zYnRGcm9tU3VyZkNvZWZmCQBoAgA8BQVNVUxUNgQgc3VyZlZvdGluZ1Bvd2VyUmVzdHJpY3RpdmVQZXJpb2QJAGgCAKALAA4EG2JyVG9TdGFydFN1cmZUcmFuc2Zvcm1hdGlvbgCwmEYJAJQKAgUDbmlsCQDMCAIFCm1pbkxvY2tBbXQJAMwIAgUSZ25zYnRGcm9tU3VyZkNvZWZmCQDMCAIFIHN1cmZWb3RpbmdQb3dlclJlc3RyaWN0aXZlUGVyaW9kCQDMCAIFG2JyVG9TdGFydFN1cmZUcmFuc2Zvcm1hdGlvbgUDbmlsAKfFJNE=", "chainId": 84, "height": 2170645, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FFYCwJFGmeUJNTzFug8KKXGm2fuXWAmtVZZd3Bzvx6fs Next: ATGScZ2BnkhhsgpdgkAYoeFEXYbXSJHxdc4eZnYCaAtS Diff:
Old | New | Differences | |
---|---|---|---|
84 | 84 | func O (N) = makeString(["%s%s%s", "paramByUser", toString(N), "start"], a) | |
85 | 85 | ||
86 | 86 | ||
87 | - | func P ( | |
87 | + | func P (N) = makeString(["%s%s%s", "paramByUser", toString(N), "vpEffectiveHeight"], a) | |
88 | 88 | ||
89 | 89 | ||
90 | - | func | |
90 | + | func Q (R,N,S) = makeString(["%s%s%s%s", "history", R, toString(N), toBase58String(S)], a) | |
91 | 91 | ||
92 | 92 | ||
93 | - | func T () = makeString(["%s%s", "stats", " | |
93 | + | func T () = makeString(["%s%s", "stats", "activeTotalLocked"], a) | |
94 | 94 | ||
95 | 95 | ||
96 | - | func U () = makeString(["%s%s", "stats", " | |
96 | + | func U () = makeString(["%s%s", "stats", "locksCount"], a) | |
97 | 97 | ||
98 | 98 | ||
99 | - | func V () = "%s | |
99 | + | func V () = makeString(["%s%s", "stats", "activeUsersCount"], a) | |
100 | 100 | ||
101 | 101 | ||
102 | - | func W () = " | |
102 | + | func W () = "%s__nextPeriod" | |
103 | 103 | ||
104 | 104 | ||
105 | - | func X () = | |
105 | + | func X () = "supportedRewardAssets" | |
106 | 106 | ||
107 | 107 | ||
108 | - | func Y ( | |
108 | + | func Y () = makeString(["%s%s%s", "dep", "lastNum"], a) | |
109 | 109 | ||
110 | 110 | ||
111 | - | func Z ( | |
111 | + | func Z (N) = makeString(["%s%s%s", "userRwdFromDepNum", N], a) | |
112 | 112 | ||
113 | 113 | ||
114 | - | func | |
114 | + | func aa (ab,ac) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(ab), ac], a) | |
115 | 115 | ||
116 | 116 | ||
117 | - | func ad (N, | |
117 | + | func ad (N,ac) = makeString(["%s%s%s", "rwd", N, ac], a) | |
118 | 118 | ||
119 | 119 | ||
120 | - | func ae ( | |
120 | + | func ae (N,ac) = makeString(["%s%s%s", "clm", N, ac], a) | |
121 | 121 | ||
122 | 122 | ||
123 | - | func af ( | |
123 | + | func af (ac) = makeString(["%s%s", "notDistributed", ac], a) | |
124 | 124 | ||
125 | 125 | ||
126 | - | func | |
126 | + | func ag (ah,ai) = fraction(toBigInt(ah), g, ai) | |
127 | 127 | ||
128 | 128 | ||
129 | - | func aj (w | |
129 | + | func aj (w) = valueOrElse(getInteger(this, w), 0) | |
130 | 130 | ||
131 | 131 | ||
132 | - | func | |
132 | + | func ak (w,al) = valueOrElse(getInteger(this, w), al) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func am (w | |
135 | + | func am (w) = valueOrErrorMessage(getInteger(this, w), (("Mandatory this." + w) + " is not defined")) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func an ( | |
138 | + | func an (w,al) = valueOrElse(getString(this, w), al) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func ap (aq) = if ((aq == h)) | |
142 | - | then unit | |
143 | - | else fromBase58String(aq) | |
141 | + | func ao (ap) = valueOrErrorMessage(addressFromString(ap), ("couldn't parse passed addressStr=" + ap)) | |
144 | 142 | ||
145 | 143 | ||
146 | - | func ar (as) = { | |
147 | - | let at = as | |
148 | - | if ($isInstanceOf(at, "Int")) | |
144 | + | func aq (ar) = if ((ar == h)) | |
145 | + | then unit | |
146 | + | else fromBase58String(ar) | |
147 | + | ||
148 | + | ||
149 | + | func as (at) = { | |
150 | + | let au = at | |
151 | + | if ($isInstanceOf(au, "Int")) | |
149 | 152 | then { | |
150 | - | let | |
151 | - | | |
153 | + | let av = au | |
154 | + | av | |
152 | 155 | } | |
153 | 156 | else throw("fail to cast into Int") | |
154 | 157 | } | |
155 | 158 | ||
156 | 159 | ||
157 | - | func | |
160 | + | func aw (ax,ay,az,aA) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(ax), toString(ay), toString(az), toString(aA)], a) | |
158 | 161 | ||
159 | 162 | ||
160 | - | func | |
163 | + | func aB (aC,aD) = makeString(["%s%d%d%s", aC, toString(lastBlock.height), toString(lastBlock.timestamp), aD], a) | |
161 | 164 | ||
162 | 165 | ||
163 | - | func | |
166 | + | func aE (R,N,S,ax,ay,az,aA) = StringEntry(Q(R, N, S), aw(ax, ay, az, aA)) | |
164 | 167 | ||
165 | 168 | ||
166 | - | func | |
169 | + | func aF (N,S,aD) = StringEntry(Q("claim", N, S), aB(toString(N), aD)) | |
167 | 170 | ||
168 | 171 | ||
169 | - | func | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | $Tuple3([ | |
172 | + | func aG (aH,aI,aJ) = { | |
173 | + | let aK = aj(U()) | |
174 | + | let aL = aj(V()) | |
175 | + | let aM = aj(T()) | |
176 | + | let aN = (aM + aH) | |
177 | + | $Tuple3([IntegerEntry(U(), (aK + aI)), IntegerEntry(V(), (aL + aJ)), IntegerEntry(T(), aN)], aM, aN) | |
175 | 178 | } | |
176 | 179 | ||
177 | 180 | ||
178 | - | func | |
181 | + | func aO (N,aP,aQ) = [IntegerEntry(M(N), aP), IntegerEntry(O(N), aQ)] | |
179 | 182 | ||
180 | 183 | ||
181 | - | func | |
184 | + | func aR () = $Tuple2(fromBase58String(u(this, L())), am(K())) | |
182 | 185 | ||
183 | 186 | ||
184 | - | func | |
187 | + | func aS (N) = (ak(M(N), 0) > 0) | |
185 | 188 | ||
186 | 189 | ||
187 | - | func | |
188 | - | then $Tuple3(false, | |
190 | + | func aT (N) = if (aS(N)) | |
191 | + | then $Tuple3(false, am(M(N)), am(O(N))) | |
189 | 192 | else unit | |
190 | 193 | ||
191 | 194 | ||
192 | - | func | |
195 | + | func aU (N) = valueOrErrorMessage(aT(N), (("User " + toString(N)) + " is not defined")) | |
193 | 196 | ||
194 | 197 | ||
195 | - | let | |
198 | + | let aV = an(X(), "") | |
196 | 199 | ||
197 | - | let | |
200 | + | let aW = split(aV, "_") | |
198 | 201 | ||
199 | - | func | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | $Tuple4(( | |
202 | + | func aX (N,aY,aZ,ba,bb) = { | |
203 | + | let bc = aa(bb, aY) | |
204 | + | let bd = parseBigIntValue(an(aa(bb, aY), "0")) | |
205 | + | let be = parseBigIntValue(an(aa(ba, aY), "0")) | |
206 | + | let bf = toInt(fraction((bd - be), aZ, g)) | |
207 | + | let bg = ad(N, aY) | |
208 | + | let bh = ak(bg, 0) | |
209 | + | $Tuple4((bh + bf), bh, bf, bg) | |
207 | 210 | } | |
208 | 211 | ||
209 | 212 | ||
210 | - | func | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | func | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | ( | |
213 | + | func bi (bj,N,bk) = { | |
214 | + | let aZ = toBigInt(bk) | |
215 | + | let bl = Z(N) | |
216 | + | let ba = ak(bl, -1) | |
217 | + | let bb = ak(Y(), -1) | |
218 | + | func bm (bn,bo) = { | |
219 | + | let bp = aX(N, bo, aZ, ba, bb) | |
220 | + | let bq = bp._1 | |
221 | + | let br = bp._2 | |
222 | + | let bs = bp._3 | |
223 | + | let bg = bp._4 | |
224 | + | (bn :+ IntegerEntry(bg, bq)) | |
222 | 225 | } | |
223 | 226 | ||
224 | - | if (if (( | |
225 | - | then ( | |
227 | + | if (if ((bb == -1)) | |
228 | + | then (ba == -1) | |
226 | 229 | else false) | |
227 | 230 | then nil | |
228 | - | else if (if (( | |
229 | - | then ( | |
231 | + | else if (if ((bb == -1)) | |
232 | + | then (ba > -1) | |
230 | 233 | else false) | |
231 | 234 | then throw("invalid depositNumLast and depositNumUser state") | |
232 | - | else if (if (( | |
233 | - | then ( | |
235 | + | else if (if ((bb > -1)) | |
236 | + | then (ba >= -1) | |
234 | 237 | else false) | |
235 | - | then if ( | |
236 | - | then [IntegerEntry( | |
238 | + | then if (bj) | |
239 | + | then [IntegerEntry(bl, bb)] | |
237 | 240 | else ({ | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | func | |
242 | - | then | |
243 | - | else | |
241 | + | let bt = aW | |
242 | + | let bu = size(bt) | |
243 | + | let bv = nil | |
244 | + | func bw (bx,by) = if ((by >= bu)) | |
245 | + | then bx | |
246 | + | else bm(bx, bt[by]) | |
244 | 247 | ||
245 | - | func | |
246 | - | then | |
248 | + | func bz (bx,by) = if ((by >= bu)) | |
249 | + | then bx | |
247 | 250 | else throw("List size exceeds 10") | |
248 | 251 | ||
249 | - | | |
250 | - | } :+ IntegerEntry( | |
251 | - | else throw(((("uncovered condition: depositNumLast=" + toString( | |
252 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
253 | + | } :+ IntegerEntry(bl, bb)) | |
254 | + | else throw(((("uncovered condition: depositNumLast=" + toString(bb)) + " depositNumUser=") + toString(ba))) | |
252 | 255 | } | |
253 | 256 | ||
254 | 257 | ||
255 | - | func | |
256 | - | let | |
257 | - | let | |
258 | - | [IntegerEntry( | |
258 | + | func bA (ac,bB) = { | |
259 | + | let bC = af(ac) | |
260 | + | let bD = ak(bC, 0) | |
261 | + | [IntegerEntry(bC, (bD + bB))] | |
259 | 262 | } | |
260 | 263 | ||
261 | 264 | ||
262 | - | func | |
265 | + | func bE (bF) = (bF / 60) | |
263 | 266 | ||
264 | 267 | ||
265 | - | func bF (N,bG) = { | |
266 | - | let bH = aQ() | |
267 | - | let bI = bH._1 | |
268 | - | let bJ = bH._2 | |
269 | - | if ((size(bG.payments) != 1)) | |
268 | + | func bG (bH,bI,bJ,bK) = { | |
269 | + | let bL = (bI - height) | |
270 | + | if ((0 >= bL)) | |
271 | + | then (height + bH) | |
272 | + | else { | |
273 | + | let bM = (bH - bL) | |
274 | + | let bN = fraction(bJ, d, bK) | |
275 | + | ((bH + height) - fraction(bM, bN, d)) | |
276 | + | } | |
277 | + | } | |
278 | + | ||
279 | + | ||
280 | + | func bO (N,bP) = { | |
281 | + | let bQ = valueOrElse(aT(N), $Tuple3(true, 0, 0)) | |
282 | + | let bj = bQ._1 | |
283 | + | let bk = bQ._2 | |
284 | + | let bI = bQ._3 | |
285 | + | let bR = if (bj) | |
286 | + | then bP | |
287 | + | else (bP + bk) | |
288 | + | let bH = (1440 * 14) | |
289 | + | let bS = if (bj) | |
290 | + | then (bH + height) | |
291 | + | else bG(bH, bI, bk, bR) | |
292 | + | $Tuple5(bj, bk, bI, bR, bS) | |
293 | + | } | |
294 | + | ||
295 | + | ||
296 | + | func bT (N,bU) = { | |
297 | + | let bV = aR() | |
298 | + | let bW = bV._1 | |
299 | + | let bX = bV._2 | |
300 | + | if ((size(bU.payments) != 1)) | |
270 | 301 | then throw("Invalid payments size") | |
271 | 302 | else { | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | if (( | |
277 | - | then throw( | |
303 | + | let bY = bU.payments[0] | |
304 | + | let aP = bY.amount | |
305 | + | let bZ = (("Invalid asset. " + toBase58String(bW)) + " is expected") | |
306 | + | let aY = valueOrErrorMessage(bY.assetId, bZ) | |
307 | + | if ((aY != bW)) | |
308 | + | then throw(bZ) | |
278 | 309 | else { | |
279 | - | let bM = toString(N) | |
280 | - | let bN = 0 | |
281 | - | let bO = 0 | |
282 | - | let bP = valueOrElse(aS(N), $Tuple3(true, 0, -1)) | |
283 | - | let bi = bP._1 | |
284 | - | let bj = bP._2 | |
285 | - | let bQ = bP._3 | |
286 | - | let bR = if (bi) | |
287 | - | then aO | |
288 | - | else (aO + bj) | |
289 | - | let bS = if (bi) | |
290 | - | then height | |
291 | - | else (height + (1440 * 14)) | |
292 | - | if ((bJ > bR)) | |
293 | - | then throw(("Min lock amount is " + toString(bJ))) | |
310 | + | let ca = toString(N) | |
311 | + | let cb = bO(N, aP) | |
312 | + | let bj = cb._1 | |
313 | + | let bk = cb._2 | |
314 | + | let bI = cb._3 | |
315 | + | let bR = cb._4 | |
316 | + | let bS = cb._5 | |
317 | + | if ((bX > bR)) | |
318 | + | then throw(("Min lock amount is " + toString(bX))) | |
294 | 319 | else { | |
295 | - | let | |
320 | + | let cc = aG(aP, 1, if (bj) | |
296 | 321 | then 1 | |
297 | 322 | else 0) | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | ((([ | |
323 | + | let cd = cc._1 | |
324 | + | let ce = cc._2 | |
325 | + | let cf = cc._3 | |
326 | + | ((([aE("stake", N, bU.transactionId, bk, bI, bR, bS)] ++ bi(bj, ca, bk)) ++ aO(N, bR, bS)) ++ cd) | |
302 | 327 | } | |
303 | 328 | } | |
304 | 329 | } | |
305 | 330 | } | |
306 | 331 | ||
307 | 332 | ||
308 | - | func | |
309 | - | let | |
310 | - | if ((size( | |
333 | + | func cg (N,bU) = { | |
334 | + | let ca = toString(N) | |
335 | + | if ((size(bU.payments) > 0)) | |
311 | 336 | then throw("payments are not accepted") | |
312 | 337 | else { | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | func | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | if ((0 >= | |
334 | - | then $Tuple2( | |
335 | - | else $Tuple2(((( | |
338 | + | let ch = valueOrElse(aT(N), $Tuple3(true, 0, 0)) | |
339 | + | let bj = ch._1 | |
340 | + | let bk = ch._2 | |
341 | + | let ci = ch._3 | |
342 | + | let aZ = toBigInt(bk) | |
343 | + | let bl = Z(ca) | |
344 | + | let ba = ak(bl, -1) | |
345 | + | let bb = ak(Y(), -1) | |
346 | + | func cj (bn,bo) = { | |
347 | + | let ck = aX(ca, bo, aZ, ba, bb) | |
348 | + | let bq = ck._1 | |
349 | + | let br = ck._2 | |
350 | + | let bs = ck._3 | |
351 | + | let bg = ck._4 | |
352 | + | let cl = ae(ca, bo) | |
353 | + | let cm = bn | |
354 | + | let cn = cm._1 | |
355 | + | let co = cm._2 | |
356 | + | let cp = makeString([bo, toString(bq)], ":") | |
357 | + | let cq = makeString([co, cp], "_") | |
358 | + | if ((0 >= bq)) | |
359 | + | then $Tuple2(cn, cq) | |
360 | + | else $Tuple2((((cn :+ ScriptTransfer(N, bq, aq(bo))) :+ IntegerEntry(cl, (valueOrElse(getInteger(cl), 0) + bq))) :+ IntegerEntry(bg, 0)), cq) | |
336 | 361 | } | |
337 | 362 | ||
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | func | |
343 | - | then | |
344 | - | else | |
363 | + | let cr = { | |
364 | + | let bt = aW | |
365 | + | let bu = size(bt) | |
366 | + | let bv = $Tuple2(nil, "") | |
367 | + | func bw (bx,by) = if ((by >= bu)) | |
368 | + | then bx | |
369 | + | else cj(bx, bt[by]) | |
345 | 370 | ||
346 | - | func | |
347 | - | then | |
371 | + | func bz (bx,by) = if ((by >= bu)) | |
372 | + | then bx | |
348 | 373 | else throw("List size exceeds 10") | |
349 | 374 | ||
350 | - | | |
375 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
351 | 376 | } | |
352 | - | let | |
353 | - | let | |
354 | - | if ((0 >= size( | |
377 | + | let cs = cr._1 | |
378 | + | let ct = cr._2 | |
379 | + | if ((0 >= size(cs))) | |
355 | 380 | then nil | |
356 | - | else (( | |
381 | + | else ((cs :+ IntegerEntry(bl, bb)) :+ aF(N, bU.transactionId, drop(ct, 1))) | |
357 | 382 | } | |
358 | 383 | } | |
359 | 384 | ||
360 | 385 | ||
361 | - | @Callable( | |
362 | - | func constructor ( | |
386 | + | @Callable(bU) | |
387 | + | func constructor (bX,cu,bW) = if ((bU.caller != this)) | |
363 | 388 | then throw("Permission denied") | |
364 | - | else [IntegerEntry(K(), | |
389 | + | else [IntegerEntry(K(), bX), StringEntry(X(), cu), StringEntry(L(), bW)] | |
365 | 390 | ||
366 | 391 | ||
367 | 392 | ||
368 | - | @Callable( | |
369 | - | func stake () = | |
393 | + | @Callable(bU) | |
394 | + | func stake () = bT(bU.caller, bU) | |
370 | 395 | ||
371 | 396 | ||
372 | 397 | ||
373 | - | @Callable( | |
374 | - | func stakeByOriginCaller () = | |
398 | + | @Callable(bU) | |
399 | + | func stakeByOriginCaller () = bT(bU.originCaller, bU) | |
375 | 400 | ||
376 | 401 | ||
377 | 402 | ||
378 | - | @Callable( | |
379 | - | func unstake ( | |
403 | + | @Callable(bU) | |
404 | + | func unstake (aP) = if ((size(bU.payments) != 0)) | |
380 | 405 | then throw("unstake doesn't require any payment") | |
381 | 406 | else { | |
382 | - | let N = | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | if ((0 >= | |
407 | + | let N = bU.caller | |
408 | + | let ca = toString(N) | |
409 | + | let cv = aR() | |
410 | + | let bW = cv._1 | |
411 | + | let bX = cv._2 | |
412 | + | let cw = aU(N) | |
413 | + | let bj = cw._1 | |
414 | + | let cx = cw._2 | |
415 | + | let cy = cw._3 | |
416 | + | if ((0 >= cx)) | |
392 | 417 | then throw("Nothing to unstake") | |
393 | - | else if (( | |
394 | - | then throw(((("Requested " + toString( | |
418 | + | else if ((aP > cx)) | |
419 | + | then throw(((("Requested " + toString(aP)) + ", but staked only ") + toString(cx))) | |
395 | 420 | else { | |
396 | - | let | |
421 | + | let cz = aG(-(aP), if ((aP == cx)) | |
397 | 422 | then -1 | |
398 | - | else 0, if (( | |
423 | + | else 0, if ((aP == cx)) | |
399 | 424 | then -1 | |
400 | 425 | else 0) | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | ((([ScriptTransfer(N, | |
426 | + | let cd = cz._1 | |
427 | + | let ce = cz._2 | |
428 | + | let cf = cz._3 | |
429 | + | ((([ScriptTransfer(N, aP, bW), aE("unstake", N, bU.transactionId, cx, cy, (cx - aP), cy)] ++ bi(false, ca, cx)) ++ aO(N, (cx - aP), cy)) ++ cd) | |
405 | 430 | } | |
406 | 431 | } | |
407 | 432 | ||
408 | 433 | ||
409 | 434 | ||
410 | - | @Callable( | |
411 | - | func deposit () = if ((size( | |
435 | + | @Callable(bU) | |
436 | + | func deposit () = if ((size(bU.payments) != 1)) | |
412 | 437 | then throw("exact 1 payment is allowed only") | |
413 | 438 | else { | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
439 | + | let cA = bU.payments[0] | |
440 | + | let aP = cA.amount | |
441 | + | let cB = valueOrElse(cA.assetId, i) | |
442 | + | let cC = toBase58String(cB) | |
443 | + | let cD = if ((cB == i)) | |
419 | 444 | then f | |
420 | 445 | else e | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if ((0 > | |
446 | + | let cE = toBigInt(aP) | |
447 | + | let ce = ak(T(), 0) | |
448 | + | let cF = toBigInt(ce) | |
449 | + | if ((0 > ce)) | |
425 | 450 | then throw("TODO: case is not supported") | |
426 | - | else if (( | |
427 | - | then | |
451 | + | else if ((ce == 0)) | |
452 | + | then bA(cC, aP) | |
428 | 453 | else { | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | if (!(contains( | |
434 | - | then throw((( | |
454 | + | let cG = fraction(cE, g, cF) | |
455 | + | let cH = Y() | |
456 | + | let bb = ak(cH, -1) | |
457 | + | let cI = (bb + 1) | |
458 | + | if (!(contains(aV, cC))) | |
459 | + | then throw(((aV + " doesn't contain ") + cC)) | |
435 | 460 | else { | |
436 | - | func | |
437 | - | let | |
438 | - | let | |
439 | - | ( | |
440 | - | then StringEntry( | |
441 | - | else StringEntry( | |
461 | + | func cJ (bn,cK) = { | |
462 | + | let cL = aa(cI, cK) | |
463 | + | let cM = an(aa(bb, cK), "0") | |
464 | + | (bn :+ (if ((cK == cC)) | |
465 | + | then StringEntry(cL, toString((parseBigIntValue(cM) + cG))) | |
466 | + | else StringEntry(cL, cM))) | |
442 | 467 | } | |
443 | 468 | ||
444 | 469 | ({ | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | func | |
449 | - | then | |
450 | - | else | |
470 | + | let bt = aW | |
471 | + | let bu = size(bt) | |
472 | + | let bv = nil | |
473 | + | func bw (bx,by) = if ((by >= bu)) | |
474 | + | then bx | |
475 | + | else cJ(bx, bt[by]) | |
451 | 476 | ||
452 | - | func | |
453 | - | then | |
477 | + | func bz (bx,by) = if ((by >= bu)) | |
478 | + | then bx | |
454 | 479 | else throw("List size exceeds 10") | |
455 | 480 | ||
456 | - | | |
457 | - | } :+ IntegerEntry( | |
481 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
482 | + | } :+ IntegerEntry(cH, cI)) | |
458 | 483 | } | |
459 | 484 | } | |
460 | 485 | } | |
461 | 486 | ||
462 | 487 | ||
463 | 488 | ||
464 | - | @Callable( | |
465 | - | func claimRewards () = | |
489 | + | @Callable(bU) | |
490 | + | func claimRewards () = cg(bU.caller, bU) | |
466 | 491 | ||
467 | 492 | ||
468 | 493 | ||
469 | - | @Callable( | |
470 | - | func claimRewardsByOriginCaller () = | |
494 | + | @Callable(bU) | |
495 | + | func claimRewardsByOriginCaller () = cg(bU.originCaller, bU) | |
471 | 496 | ||
472 | 497 | ||
473 | 498 | ||
474 | - | @Callable( | |
475 | - | func unclaimedRewardsREADONLY ( | |
476 | - | func | |
499 | + | @Callable(bU) | |
500 | + | func unclaimedRewardsREADONLY (ca) = { | |
501 | + | func cN (bn,bo) = ((bn + makeString([bo, "0", "0"], ":")) + "_") | |
477 | 502 | ||
478 | - | let | |
503 | + | let cO = if ((ca == "")) | |
479 | 504 | then { | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | func | |
484 | - | then | |
485 | - | else | |
505 | + | let bt = aW | |
506 | + | let bu = size(bt) | |
507 | + | let bv = "" | |
508 | + | func bw (bx,by) = if ((by >= bu)) | |
509 | + | then bx | |
510 | + | else cN(bx, bt[by]) | |
486 | 511 | ||
487 | - | func | |
488 | - | then | |
512 | + | func bz (bx,by) = if ((by >= bu)) | |
513 | + | then bx | |
489 | 514 | else throw("List size exceeds 10") | |
490 | 515 | ||
491 | - | | |
516 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
492 | 517 | } | |
493 | 518 | else { | |
494 | - | let N = addressFromStringValue( | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | func | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | (( | |
519 | + | let N = addressFromStringValue(ca) | |
520 | + | let cP = valueOrElse(aT(N), $Tuple3(true, 0, 0)) | |
521 | + | let bj = cP._1 | |
522 | + | let bk = cP._2 | |
523 | + | let ci = cP._3 | |
524 | + | let aZ = toBigInt(bk) | |
525 | + | let bl = Z(ca) | |
526 | + | let ba = ak(bl, -1) | |
527 | + | let bb = ak(Y(), -1) | |
528 | + | func cj (bn,bo) = { | |
529 | + | let cQ = aX(ca, bo, aZ, ba, bb) | |
530 | + | let bq = cQ._1 | |
531 | + | let br = cQ._2 | |
532 | + | let bs = cQ._3 | |
533 | + | let bg = cQ._4 | |
534 | + | let cR = valueOrElse(getInteger(ae(ca, bo)), 0) | |
535 | + | ((bn + makeString([bo, toString(bq), toString(cR)], ":")) + "_") | |
511 | 536 | } | |
512 | 537 | ||
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | func | |
517 | - | then | |
518 | - | else | |
538 | + | let bt = aW | |
539 | + | let bu = size(bt) | |
540 | + | let bv = "" | |
541 | + | func bw (bx,by) = if ((by >= bu)) | |
542 | + | then bx | |
543 | + | else cj(bx, bt[by]) | |
519 | 544 | ||
520 | - | func | |
521 | - | then | |
545 | + | func bz (bx,by) = if ((by >= bu)) | |
546 | + | then bx | |
522 | 547 | else throw("List size exceeds 10") | |
523 | 548 | ||
524 | - | | |
549 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
525 | 550 | } | |
526 | - | $Tuple2(nil, dropRight( | |
551 | + | $Tuple2(nil, dropRight(cO, 1)) | |
527 | 552 | } | |
528 | 553 | ||
529 | 554 | ||
530 | 555 | ||
531 | - | @Callable( | |
532 | - | func surfStakingSYSREADONLY ( | |
533 | - | let | |
534 | - | let | |
535 | - | if (( | |
536 | - | then $Tuple2(nil, [0, | |
556 | + | @Callable(bU) | |
557 | + | func surfStakingSYSREADONLY (cS,cT) = { | |
558 | + | let cU = ak(T(), 0) | |
559 | + | let cV = bE(cU) | |
560 | + | if ((cS == "")) | |
561 | + | then $Tuple2(nil, [0, cU, 0, cV, 0, height, height]) | |
537 | 562 | else { | |
538 | - | let N = an(cJ) | |
539 | - | let cM = valueOrElse(aS(N), $Tuple3(true, 0, 0)) | |
540 | - | let bi = cM._1 | |
541 | - | let cN = cM._2 | |
542 | - | let bZ = cM._3 | |
543 | - | let cO = bD(cN) | |
544 | - | $Tuple2(nil, [cN, cK, cO, cL, bZ]) | |
563 | + | let N = ao(cS) | |
564 | + | let cb = bO(N, cT) | |
565 | + | let bj = cb._1 | |
566 | + | let bk = cb._2 | |
567 | + | let bI = cb._3 | |
568 | + | let bR = cb._4 | |
569 | + | let bS = cb._5 | |
570 | + | let cW = bk | |
571 | + | let cX = bE(cW) | |
572 | + | $Tuple2(nil, [cW, cU, cX, cV, bI, bS]) | |
545 | 573 | } | |
546 | 574 | } | |
547 | 575 | ||
548 | 576 | ||
549 | 577 | ||
550 | - | @Callable( | |
578 | + | @Callable(bU) | |
551 | 579 | func configSYSREADONLY () = { | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | $Tuple2(nil, [ | |
580 | + | let cY = getIntegerValue(K()) | |
581 | + | let cZ = (60 * c) | |
582 | + | let da = (1440 * 14) | |
583 | + | let db = 1150000 | |
584 | + | $Tuple2(nil, [cY, cZ, da, db]) | |
557 | 585 | } | |
558 | 586 | ||
559 | 587 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = 1000000 | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(c) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(d) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1000000000000000000) | |
17 | 17 | ||
18 | 18 | let h = "WAVES" | |
19 | 19 | ||
20 | 20 | let i = fromBase58String(h) | |
21 | 21 | ||
22 | 22 | let j = 1 | |
23 | 23 | ||
24 | 24 | let k = 2 | |
25 | 25 | ||
26 | 26 | let l = 3 | |
27 | 27 | ||
28 | 28 | let m = 4 | |
29 | 29 | ||
30 | 30 | let n = 5 | |
31 | 31 | ||
32 | 32 | let o = 6 | |
33 | 33 | ||
34 | 34 | let p = 7 | |
35 | 35 | ||
36 | 36 | let q = 8 | |
37 | 37 | ||
38 | 38 | let r = 9 | |
39 | 39 | ||
40 | 40 | let s = 10 | |
41 | 41 | ||
42 | 42 | let t = 11 | |
43 | 43 | ||
44 | 44 | func u (v,w) = valueOrErrorMessage(getString(v, w), (((("mandatory " + toString(v)) + ".") + w) + " is not defined")) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func x () = "%s%s__config__controlAddress" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func y () = "%s__controlConfig" | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func z (A) = split(u(A, y()), b) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func B (C,D) = valueOrErrorMessage(addressFromString(C[D]), ("Control cfg doesn't contain address at index " + toString(D))) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | let E = addressFromStringValue(valueOrElse(getString(this, x()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
60 | 60 | ||
61 | 61 | let C = z(E) | |
62 | 62 | ||
63 | 63 | let F = B(C, m) | |
64 | 64 | ||
65 | 65 | let G = B(C, j) | |
66 | 66 | ||
67 | 67 | let H = B(C, k) | |
68 | 68 | ||
69 | 69 | func I () = "bond_asset_id" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func J () = "auction_contract" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func K () = "%s__minLockAmount" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func L () = "%s__stakedAssetId" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func M (N) = makeString(["%s%s%s", "paramByUser", toString(N), "amount"], a) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func O (N) = makeString(["%s%s%s", "paramByUser", toString(N), "start"], a) | |
85 | 85 | ||
86 | 86 | ||
87 | - | func P ( | |
87 | + | func P (N) = makeString(["%s%s%s", "paramByUser", toString(N), "vpEffectiveHeight"], a) | |
88 | 88 | ||
89 | 89 | ||
90 | - | func | |
90 | + | func Q (R,N,S) = makeString(["%s%s%s%s", "history", R, toString(N), toBase58String(S)], a) | |
91 | 91 | ||
92 | 92 | ||
93 | - | func T () = makeString(["%s%s", "stats", " | |
93 | + | func T () = makeString(["%s%s", "stats", "activeTotalLocked"], a) | |
94 | 94 | ||
95 | 95 | ||
96 | - | func U () = makeString(["%s%s", "stats", " | |
96 | + | func U () = makeString(["%s%s", "stats", "locksCount"], a) | |
97 | 97 | ||
98 | 98 | ||
99 | - | func V () = "%s | |
99 | + | func V () = makeString(["%s%s", "stats", "activeUsersCount"], a) | |
100 | 100 | ||
101 | 101 | ||
102 | - | func W () = " | |
102 | + | func W () = "%s__nextPeriod" | |
103 | 103 | ||
104 | 104 | ||
105 | - | func X () = | |
105 | + | func X () = "supportedRewardAssets" | |
106 | 106 | ||
107 | 107 | ||
108 | - | func Y ( | |
108 | + | func Y () = makeString(["%s%s%s", "dep", "lastNum"], a) | |
109 | 109 | ||
110 | 110 | ||
111 | - | func Z ( | |
111 | + | func Z (N) = makeString(["%s%s%s", "userRwdFromDepNum", N], a) | |
112 | 112 | ||
113 | 113 | ||
114 | - | func | |
114 | + | func aa (ab,ac) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(ab), ac], a) | |
115 | 115 | ||
116 | 116 | ||
117 | - | func ad (N, | |
117 | + | func ad (N,ac) = makeString(["%s%s%s", "rwd", N, ac], a) | |
118 | 118 | ||
119 | 119 | ||
120 | - | func ae ( | |
120 | + | func ae (N,ac) = makeString(["%s%s%s", "clm", N, ac], a) | |
121 | 121 | ||
122 | 122 | ||
123 | - | func af ( | |
123 | + | func af (ac) = makeString(["%s%s", "notDistributed", ac], a) | |
124 | 124 | ||
125 | 125 | ||
126 | - | func | |
126 | + | func ag (ah,ai) = fraction(toBigInt(ah), g, ai) | |
127 | 127 | ||
128 | 128 | ||
129 | - | func aj (w | |
129 | + | func aj (w) = valueOrElse(getInteger(this, w), 0) | |
130 | 130 | ||
131 | 131 | ||
132 | - | func | |
132 | + | func ak (w,al) = valueOrElse(getInteger(this, w), al) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func am (w | |
135 | + | func am (w) = valueOrErrorMessage(getInteger(this, w), (("Mandatory this." + w) + " is not defined")) | |
136 | 136 | ||
137 | 137 | ||
138 | - | func an ( | |
138 | + | func an (w,al) = valueOrElse(getString(this, w), al) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func ap (aq) = if ((aq == h)) | |
142 | - | then unit | |
143 | - | else fromBase58String(aq) | |
141 | + | func ao (ap) = valueOrErrorMessage(addressFromString(ap), ("couldn't parse passed addressStr=" + ap)) | |
144 | 142 | ||
145 | 143 | ||
146 | - | func ar (as) = { | |
147 | - | let at = as | |
148 | - | if ($isInstanceOf(at, "Int")) | |
144 | + | func aq (ar) = if ((ar == h)) | |
145 | + | then unit | |
146 | + | else fromBase58String(ar) | |
147 | + | ||
148 | + | ||
149 | + | func as (at) = { | |
150 | + | let au = at | |
151 | + | if ($isInstanceOf(au, "Int")) | |
149 | 152 | then { | |
150 | - | let | |
151 | - | | |
153 | + | let av = au | |
154 | + | av | |
152 | 155 | } | |
153 | 156 | else throw("fail to cast into Int") | |
154 | 157 | } | |
155 | 158 | ||
156 | 159 | ||
157 | - | func | |
160 | + | func aw (ax,ay,az,aA) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(ax), toString(ay), toString(az), toString(aA)], a) | |
158 | 161 | ||
159 | 162 | ||
160 | - | func | |
163 | + | func aB (aC,aD) = makeString(["%s%d%d%s", aC, toString(lastBlock.height), toString(lastBlock.timestamp), aD], a) | |
161 | 164 | ||
162 | 165 | ||
163 | - | func | |
166 | + | func aE (R,N,S,ax,ay,az,aA) = StringEntry(Q(R, N, S), aw(ax, ay, az, aA)) | |
164 | 167 | ||
165 | 168 | ||
166 | - | func | |
169 | + | func aF (N,S,aD) = StringEntry(Q("claim", N, S), aB(toString(N), aD)) | |
167 | 170 | ||
168 | 171 | ||
169 | - | func | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | let | |
174 | - | $Tuple3([ | |
172 | + | func aG (aH,aI,aJ) = { | |
173 | + | let aK = aj(U()) | |
174 | + | let aL = aj(V()) | |
175 | + | let aM = aj(T()) | |
176 | + | let aN = (aM + aH) | |
177 | + | $Tuple3([IntegerEntry(U(), (aK + aI)), IntegerEntry(V(), (aL + aJ)), IntegerEntry(T(), aN)], aM, aN) | |
175 | 178 | } | |
176 | 179 | ||
177 | 180 | ||
178 | - | func | |
181 | + | func aO (N,aP,aQ) = [IntegerEntry(M(N), aP), IntegerEntry(O(N), aQ)] | |
179 | 182 | ||
180 | 183 | ||
181 | - | func | |
184 | + | func aR () = $Tuple2(fromBase58String(u(this, L())), am(K())) | |
182 | 185 | ||
183 | 186 | ||
184 | - | func | |
187 | + | func aS (N) = (ak(M(N), 0) > 0) | |
185 | 188 | ||
186 | 189 | ||
187 | - | func | |
188 | - | then $Tuple3(false, | |
190 | + | func aT (N) = if (aS(N)) | |
191 | + | then $Tuple3(false, am(M(N)), am(O(N))) | |
189 | 192 | else unit | |
190 | 193 | ||
191 | 194 | ||
192 | - | func | |
195 | + | func aU (N) = valueOrErrorMessage(aT(N), (("User " + toString(N)) + " is not defined")) | |
193 | 196 | ||
194 | 197 | ||
195 | - | let | |
198 | + | let aV = an(X(), "") | |
196 | 199 | ||
197 | - | let | |
200 | + | let aW = split(aV, "_") | |
198 | 201 | ||
199 | - | func | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | $Tuple4(( | |
202 | + | func aX (N,aY,aZ,ba,bb) = { | |
203 | + | let bc = aa(bb, aY) | |
204 | + | let bd = parseBigIntValue(an(aa(bb, aY), "0")) | |
205 | + | let be = parseBigIntValue(an(aa(ba, aY), "0")) | |
206 | + | let bf = toInt(fraction((bd - be), aZ, g)) | |
207 | + | let bg = ad(N, aY) | |
208 | + | let bh = ak(bg, 0) | |
209 | + | $Tuple4((bh + bf), bh, bf, bg) | |
207 | 210 | } | |
208 | 211 | ||
209 | 212 | ||
210 | - | func | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | func | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | ( | |
213 | + | func bi (bj,N,bk) = { | |
214 | + | let aZ = toBigInt(bk) | |
215 | + | let bl = Z(N) | |
216 | + | let ba = ak(bl, -1) | |
217 | + | let bb = ak(Y(), -1) | |
218 | + | func bm (bn,bo) = { | |
219 | + | let bp = aX(N, bo, aZ, ba, bb) | |
220 | + | let bq = bp._1 | |
221 | + | let br = bp._2 | |
222 | + | let bs = bp._3 | |
223 | + | let bg = bp._4 | |
224 | + | (bn :+ IntegerEntry(bg, bq)) | |
222 | 225 | } | |
223 | 226 | ||
224 | - | if (if (( | |
225 | - | then ( | |
227 | + | if (if ((bb == -1)) | |
228 | + | then (ba == -1) | |
226 | 229 | else false) | |
227 | 230 | then nil | |
228 | - | else if (if (( | |
229 | - | then ( | |
231 | + | else if (if ((bb == -1)) | |
232 | + | then (ba > -1) | |
230 | 233 | else false) | |
231 | 234 | then throw("invalid depositNumLast and depositNumUser state") | |
232 | - | else if (if (( | |
233 | - | then ( | |
235 | + | else if (if ((bb > -1)) | |
236 | + | then (ba >= -1) | |
234 | 237 | else false) | |
235 | - | then if ( | |
236 | - | then [IntegerEntry( | |
238 | + | then if (bj) | |
239 | + | then [IntegerEntry(bl, bb)] | |
237 | 240 | else ({ | |
238 | - | let | |
239 | - | let | |
240 | - | let | |
241 | - | func | |
242 | - | then | |
243 | - | else | |
241 | + | let bt = aW | |
242 | + | let bu = size(bt) | |
243 | + | let bv = nil | |
244 | + | func bw (bx,by) = if ((by >= bu)) | |
245 | + | then bx | |
246 | + | else bm(bx, bt[by]) | |
244 | 247 | ||
245 | - | func | |
246 | - | then | |
248 | + | func bz (bx,by) = if ((by >= bu)) | |
249 | + | then bx | |
247 | 250 | else throw("List size exceeds 10") | |
248 | 251 | ||
249 | - | | |
250 | - | } :+ IntegerEntry( | |
251 | - | else throw(((("uncovered condition: depositNumLast=" + toString( | |
252 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
253 | + | } :+ IntegerEntry(bl, bb)) | |
254 | + | else throw(((("uncovered condition: depositNumLast=" + toString(bb)) + " depositNumUser=") + toString(ba))) | |
252 | 255 | } | |
253 | 256 | ||
254 | 257 | ||
255 | - | func | |
256 | - | let | |
257 | - | let | |
258 | - | [IntegerEntry( | |
258 | + | func bA (ac,bB) = { | |
259 | + | let bC = af(ac) | |
260 | + | let bD = ak(bC, 0) | |
261 | + | [IntegerEntry(bC, (bD + bB))] | |
259 | 262 | } | |
260 | 263 | ||
261 | 264 | ||
262 | - | func | |
265 | + | func bE (bF) = (bF / 60) | |
263 | 266 | ||
264 | 267 | ||
265 | - | func bF (N,bG) = { | |
266 | - | let bH = aQ() | |
267 | - | let bI = bH._1 | |
268 | - | let bJ = bH._2 | |
269 | - | if ((size(bG.payments) != 1)) | |
268 | + | func bG (bH,bI,bJ,bK) = { | |
269 | + | let bL = (bI - height) | |
270 | + | if ((0 >= bL)) | |
271 | + | then (height + bH) | |
272 | + | else { | |
273 | + | let bM = (bH - bL) | |
274 | + | let bN = fraction(bJ, d, bK) | |
275 | + | ((bH + height) - fraction(bM, bN, d)) | |
276 | + | } | |
277 | + | } | |
278 | + | ||
279 | + | ||
280 | + | func bO (N,bP) = { | |
281 | + | let bQ = valueOrElse(aT(N), $Tuple3(true, 0, 0)) | |
282 | + | let bj = bQ._1 | |
283 | + | let bk = bQ._2 | |
284 | + | let bI = bQ._3 | |
285 | + | let bR = if (bj) | |
286 | + | then bP | |
287 | + | else (bP + bk) | |
288 | + | let bH = (1440 * 14) | |
289 | + | let bS = if (bj) | |
290 | + | then (bH + height) | |
291 | + | else bG(bH, bI, bk, bR) | |
292 | + | $Tuple5(bj, bk, bI, bR, bS) | |
293 | + | } | |
294 | + | ||
295 | + | ||
296 | + | func bT (N,bU) = { | |
297 | + | let bV = aR() | |
298 | + | let bW = bV._1 | |
299 | + | let bX = bV._2 | |
300 | + | if ((size(bU.payments) != 1)) | |
270 | 301 | then throw("Invalid payments size") | |
271 | 302 | else { | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | if (( | |
277 | - | then throw( | |
303 | + | let bY = bU.payments[0] | |
304 | + | let aP = bY.amount | |
305 | + | let bZ = (("Invalid asset. " + toBase58String(bW)) + " is expected") | |
306 | + | let aY = valueOrErrorMessage(bY.assetId, bZ) | |
307 | + | if ((aY != bW)) | |
308 | + | then throw(bZ) | |
278 | 309 | else { | |
279 | - | let bM = toString(N) | |
280 | - | let bN = 0 | |
281 | - | let bO = 0 | |
282 | - | let bP = valueOrElse(aS(N), $Tuple3(true, 0, -1)) | |
283 | - | let bi = bP._1 | |
284 | - | let bj = bP._2 | |
285 | - | let bQ = bP._3 | |
286 | - | let bR = if (bi) | |
287 | - | then aO | |
288 | - | else (aO + bj) | |
289 | - | let bS = if (bi) | |
290 | - | then height | |
291 | - | else (height + (1440 * 14)) | |
292 | - | if ((bJ > bR)) | |
293 | - | then throw(("Min lock amount is " + toString(bJ))) | |
310 | + | let ca = toString(N) | |
311 | + | let cb = bO(N, aP) | |
312 | + | let bj = cb._1 | |
313 | + | let bk = cb._2 | |
314 | + | let bI = cb._3 | |
315 | + | let bR = cb._4 | |
316 | + | let bS = cb._5 | |
317 | + | if ((bX > bR)) | |
318 | + | then throw(("Min lock amount is " + toString(bX))) | |
294 | 319 | else { | |
295 | - | let | |
320 | + | let cc = aG(aP, 1, if (bj) | |
296 | 321 | then 1 | |
297 | 322 | else 0) | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | ((([ | |
323 | + | let cd = cc._1 | |
324 | + | let ce = cc._2 | |
325 | + | let cf = cc._3 | |
326 | + | ((([aE("stake", N, bU.transactionId, bk, bI, bR, bS)] ++ bi(bj, ca, bk)) ++ aO(N, bR, bS)) ++ cd) | |
302 | 327 | } | |
303 | 328 | } | |
304 | 329 | } | |
305 | 330 | } | |
306 | 331 | ||
307 | 332 | ||
308 | - | func | |
309 | - | let | |
310 | - | if ((size( | |
333 | + | func cg (N,bU) = { | |
334 | + | let ca = toString(N) | |
335 | + | if ((size(bU.payments) > 0)) | |
311 | 336 | then throw("payments are not accepted") | |
312 | 337 | else { | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | func | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | if ((0 >= | |
334 | - | then $Tuple2( | |
335 | - | else $Tuple2(((( | |
338 | + | let ch = valueOrElse(aT(N), $Tuple3(true, 0, 0)) | |
339 | + | let bj = ch._1 | |
340 | + | let bk = ch._2 | |
341 | + | let ci = ch._3 | |
342 | + | let aZ = toBigInt(bk) | |
343 | + | let bl = Z(ca) | |
344 | + | let ba = ak(bl, -1) | |
345 | + | let bb = ak(Y(), -1) | |
346 | + | func cj (bn,bo) = { | |
347 | + | let ck = aX(ca, bo, aZ, ba, bb) | |
348 | + | let bq = ck._1 | |
349 | + | let br = ck._2 | |
350 | + | let bs = ck._3 | |
351 | + | let bg = ck._4 | |
352 | + | let cl = ae(ca, bo) | |
353 | + | let cm = bn | |
354 | + | let cn = cm._1 | |
355 | + | let co = cm._2 | |
356 | + | let cp = makeString([bo, toString(bq)], ":") | |
357 | + | let cq = makeString([co, cp], "_") | |
358 | + | if ((0 >= bq)) | |
359 | + | then $Tuple2(cn, cq) | |
360 | + | else $Tuple2((((cn :+ ScriptTransfer(N, bq, aq(bo))) :+ IntegerEntry(cl, (valueOrElse(getInteger(cl), 0) + bq))) :+ IntegerEntry(bg, 0)), cq) | |
336 | 361 | } | |
337 | 362 | ||
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | func | |
343 | - | then | |
344 | - | else | |
363 | + | let cr = { | |
364 | + | let bt = aW | |
365 | + | let bu = size(bt) | |
366 | + | let bv = $Tuple2(nil, "") | |
367 | + | func bw (bx,by) = if ((by >= bu)) | |
368 | + | then bx | |
369 | + | else cj(bx, bt[by]) | |
345 | 370 | ||
346 | - | func | |
347 | - | then | |
371 | + | func bz (bx,by) = if ((by >= bu)) | |
372 | + | then bx | |
348 | 373 | else throw("List size exceeds 10") | |
349 | 374 | ||
350 | - | | |
375 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
351 | 376 | } | |
352 | - | let | |
353 | - | let | |
354 | - | if ((0 >= size( | |
377 | + | let cs = cr._1 | |
378 | + | let ct = cr._2 | |
379 | + | if ((0 >= size(cs))) | |
355 | 380 | then nil | |
356 | - | else (( | |
381 | + | else ((cs :+ IntegerEntry(bl, bb)) :+ aF(N, bU.transactionId, drop(ct, 1))) | |
357 | 382 | } | |
358 | 383 | } | |
359 | 384 | ||
360 | 385 | ||
361 | - | @Callable( | |
362 | - | func constructor ( | |
386 | + | @Callable(bU) | |
387 | + | func constructor (bX,cu,bW) = if ((bU.caller != this)) | |
363 | 388 | then throw("Permission denied") | |
364 | - | else [IntegerEntry(K(), | |
389 | + | else [IntegerEntry(K(), bX), StringEntry(X(), cu), StringEntry(L(), bW)] | |
365 | 390 | ||
366 | 391 | ||
367 | 392 | ||
368 | - | @Callable( | |
369 | - | func stake () = | |
393 | + | @Callable(bU) | |
394 | + | func stake () = bT(bU.caller, bU) | |
370 | 395 | ||
371 | 396 | ||
372 | 397 | ||
373 | - | @Callable( | |
374 | - | func stakeByOriginCaller () = | |
398 | + | @Callable(bU) | |
399 | + | func stakeByOriginCaller () = bT(bU.originCaller, bU) | |
375 | 400 | ||
376 | 401 | ||
377 | 402 | ||
378 | - | @Callable( | |
379 | - | func unstake ( | |
403 | + | @Callable(bU) | |
404 | + | func unstake (aP) = if ((size(bU.payments) != 0)) | |
380 | 405 | then throw("unstake doesn't require any payment") | |
381 | 406 | else { | |
382 | - | let N = | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | if ((0 >= | |
407 | + | let N = bU.caller | |
408 | + | let ca = toString(N) | |
409 | + | let cv = aR() | |
410 | + | let bW = cv._1 | |
411 | + | let bX = cv._2 | |
412 | + | let cw = aU(N) | |
413 | + | let bj = cw._1 | |
414 | + | let cx = cw._2 | |
415 | + | let cy = cw._3 | |
416 | + | if ((0 >= cx)) | |
392 | 417 | then throw("Nothing to unstake") | |
393 | - | else if (( | |
394 | - | then throw(((("Requested " + toString( | |
418 | + | else if ((aP > cx)) | |
419 | + | then throw(((("Requested " + toString(aP)) + ", but staked only ") + toString(cx))) | |
395 | 420 | else { | |
396 | - | let | |
421 | + | let cz = aG(-(aP), if ((aP == cx)) | |
397 | 422 | then -1 | |
398 | - | else 0, if (( | |
423 | + | else 0, if ((aP == cx)) | |
399 | 424 | then -1 | |
400 | 425 | else 0) | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | ((([ScriptTransfer(N, | |
426 | + | let cd = cz._1 | |
427 | + | let ce = cz._2 | |
428 | + | let cf = cz._3 | |
429 | + | ((([ScriptTransfer(N, aP, bW), aE("unstake", N, bU.transactionId, cx, cy, (cx - aP), cy)] ++ bi(false, ca, cx)) ++ aO(N, (cx - aP), cy)) ++ cd) | |
405 | 430 | } | |
406 | 431 | } | |
407 | 432 | ||
408 | 433 | ||
409 | 434 | ||
410 | - | @Callable( | |
411 | - | func deposit () = if ((size( | |
435 | + | @Callable(bU) | |
436 | + | func deposit () = if ((size(bU.payments) != 1)) | |
412 | 437 | then throw("exact 1 payment is allowed only") | |
413 | 438 | else { | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
439 | + | let cA = bU.payments[0] | |
440 | + | let aP = cA.amount | |
441 | + | let cB = valueOrElse(cA.assetId, i) | |
442 | + | let cC = toBase58String(cB) | |
443 | + | let cD = if ((cB == i)) | |
419 | 444 | then f | |
420 | 445 | else e | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if ((0 > | |
446 | + | let cE = toBigInt(aP) | |
447 | + | let ce = ak(T(), 0) | |
448 | + | let cF = toBigInt(ce) | |
449 | + | if ((0 > ce)) | |
425 | 450 | then throw("TODO: case is not supported") | |
426 | - | else if (( | |
427 | - | then | |
451 | + | else if ((ce == 0)) | |
452 | + | then bA(cC, aP) | |
428 | 453 | else { | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | if (!(contains( | |
434 | - | then throw((( | |
454 | + | let cG = fraction(cE, g, cF) | |
455 | + | let cH = Y() | |
456 | + | let bb = ak(cH, -1) | |
457 | + | let cI = (bb + 1) | |
458 | + | if (!(contains(aV, cC))) | |
459 | + | then throw(((aV + " doesn't contain ") + cC)) | |
435 | 460 | else { | |
436 | - | func | |
437 | - | let | |
438 | - | let | |
439 | - | ( | |
440 | - | then StringEntry( | |
441 | - | else StringEntry( | |
461 | + | func cJ (bn,cK) = { | |
462 | + | let cL = aa(cI, cK) | |
463 | + | let cM = an(aa(bb, cK), "0") | |
464 | + | (bn :+ (if ((cK == cC)) | |
465 | + | then StringEntry(cL, toString((parseBigIntValue(cM) + cG))) | |
466 | + | else StringEntry(cL, cM))) | |
442 | 467 | } | |
443 | 468 | ||
444 | 469 | ({ | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | func | |
449 | - | then | |
450 | - | else | |
470 | + | let bt = aW | |
471 | + | let bu = size(bt) | |
472 | + | let bv = nil | |
473 | + | func bw (bx,by) = if ((by >= bu)) | |
474 | + | then bx | |
475 | + | else cJ(bx, bt[by]) | |
451 | 476 | ||
452 | - | func | |
453 | - | then | |
477 | + | func bz (bx,by) = if ((by >= bu)) | |
478 | + | then bx | |
454 | 479 | else throw("List size exceeds 10") | |
455 | 480 | ||
456 | - | | |
457 | - | } :+ IntegerEntry( | |
481 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
482 | + | } :+ IntegerEntry(cH, cI)) | |
458 | 483 | } | |
459 | 484 | } | |
460 | 485 | } | |
461 | 486 | ||
462 | 487 | ||
463 | 488 | ||
464 | - | @Callable( | |
465 | - | func claimRewards () = | |
489 | + | @Callable(bU) | |
490 | + | func claimRewards () = cg(bU.caller, bU) | |
466 | 491 | ||
467 | 492 | ||
468 | 493 | ||
469 | - | @Callable( | |
470 | - | func claimRewardsByOriginCaller () = | |
494 | + | @Callable(bU) | |
495 | + | func claimRewardsByOriginCaller () = cg(bU.originCaller, bU) | |
471 | 496 | ||
472 | 497 | ||
473 | 498 | ||
474 | - | @Callable( | |
475 | - | func unclaimedRewardsREADONLY ( | |
476 | - | func | |
499 | + | @Callable(bU) | |
500 | + | func unclaimedRewardsREADONLY (ca) = { | |
501 | + | func cN (bn,bo) = ((bn + makeString([bo, "0", "0"], ":")) + "_") | |
477 | 502 | ||
478 | - | let | |
503 | + | let cO = if ((ca == "")) | |
479 | 504 | then { | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | func | |
484 | - | then | |
485 | - | else | |
505 | + | let bt = aW | |
506 | + | let bu = size(bt) | |
507 | + | let bv = "" | |
508 | + | func bw (bx,by) = if ((by >= bu)) | |
509 | + | then bx | |
510 | + | else cN(bx, bt[by]) | |
486 | 511 | ||
487 | - | func | |
488 | - | then | |
512 | + | func bz (bx,by) = if ((by >= bu)) | |
513 | + | then bx | |
489 | 514 | else throw("List size exceeds 10") | |
490 | 515 | ||
491 | - | | |
516 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
492 | 517 | } | |
493 | 518 | else { | |
494 | - | let N = addressFromStringValue( | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | func | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | (( | |
519 | + | let N = addressFromStringValue(ca) | |
520 | + | let cP = valueOrElse(aT(N), $Tuple3(true, 0, 0)) | |
521 | + | let bj = cP._1 | |
522 | + | let bk = cP._2 | |
523 | + | let ci = cP._3 | |
524 | + | let aZ = toBigInt(bk) | |
525 | + | let bl = Z(ca) | |
526 | + | let ba = ak(bl, -1) | |
527 | + | let bb = ak(Y(), -1) | |
528 | + | func cj (bn,bo) = { | |
529 | + | let cQ = aX(ca, bo, aZ, ba, bb) | |
530 | + | let bq = cQ._1 | |
531 | + | let br = cQ._2 | |
532 | + | let bs = cQ._3 | |
533 | + | let bg = cQ._4 | |
534 | + | let cR = valueOrElse(getInteger(ae(ca, bo)), 0) | |
535 | + | ((bn + makeString([bo, toString(bq), toString(cR)], ":")) + "_") | |
511 | 536 | } | |
512 | 537 | ||
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | func | |
517 | - | then | |
518 | - | else | |
538 | + | let bt = aW | |
539 | + | let bu = size(bt) | |
540 | + | let bv = "" | |
541 | + | func bw (bx,by) = if ((by >= bu)) | |
542 | + | then bx | |
543 | + | else cj(bx, bt[by]) | |
519 | 544 | ||
520 | - | func | |
521 | - | then | |
545 | + | func bz (bx,by) = if ((by >= bu)) | |
546 | + | then bx | |
522 | 547 | else throw("List size exceeds 10") | |
523 | 548 | ||
524 | - | | |
549 | + | bz(bw(bw(bw(bw(bw(bw(bw(bw(bw(bw(bv, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
525 | 550 | } | |
526 | - | $Tuple2(nil, dropRight( | |
551 | + | $Tuple2(nil, dropRight(cO, 1)) | |
527 | 552 | } | |
528 | 553 | ||
529 | 554 | ||
530 | 555 | ||
531 | - | @Callable( | |
532 | - | func surfStakingSYSREADONLY ( | |
533 | - | let | |
534 | - | let | |
535 | - | if (( | |
536 | - | then $Tuple2(nil, [0, | |
556 | + | @Callable(bU) | |
557 | + | func surfStakingSYSREADONLY (cS,cT) = { | |
558 | + | let cU = ak(T(), 0) | |
559 | + | let cV = bE(cU) | |
560 | + | if ((cS == "")) | |
561 | + | then $Tuple2(nil, [0, cU, 0, cV, 0, height, height]) | |
537 | 562 | else { | |
538 | - | let N = an(cJ) | |
539 | - | let cM = valueOrElse(aS(N), $Tuple3(true, 0, 0)) | |
540 | - | let bi = cM._1 | |
541 | - | let cN = cM._2 | |
542 | - | let bZ = cM._3 | |
543 | - | let cO = bD(cN) | |
544 | - | $Tuple2(nil, [cN, cK, cO, cL, bZ]) | |
563 | + | let N = ao(cS) | |
564 | + | let cb = bO(N, cT) | |
565 | + | let bj = cb._1 | |
566 | + | let bk = cb._2 | |
567 | + | let bI = cb._3 | |
568 | + | let bR = cb._4 | |
569 | + | let bS = cb._5 | |
570 | + | let cW = bk | |
571 | + | let cX = bE(cW) | |
572 | + | $Tuple2(nil, [cW, cU, cX, cV, bI, bS]) | |
545 | 573 | } | |
546 | 574 | } | |
547 | 575 | ||
548 | 576 | ||
549 | 577 | ||
550 | - | @Callable( | |
578 | + | @Callable(bU) | |
551 | 579 | func configSYSREADONLY () = { | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | $Tuple2(nil, [ | |
580 | + | let cY = getIntegerValue(K()) | |
581 | + | let cZ = (60 * c) | |
582 | + | let da = (1440 * 14) | |
583 | + | let db = 1150000 | |
584 | + | $Tuple2(nil, [cY, cZ, da, db]) | |
557 | 585 | } | |
558 | 586 | ||
559 | 587 |
github/deemru/w8io/026f985 187.13 ms ◑