tx · 7B4BJQ9ihYXCgDa9mmhZUBXr85d1mxT1rRuNQyCNYk6a 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02700000 Waves 2023.03.24 14:58 [2504059] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "7B4BJQ9ihYXCgDa9mmhZUBXr85d1mxT1rRuNQyCNYk6a", "fee": 2700000, "feeAssetId": null, "timestamp": 1679659133757, "version": 2, "chainId": 84, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "5w7XEtN4rkAmr2yFXMQRC4zWJi4khhemz7mPv3PHV8ihMCwTHtUpsxrTXGjTCay5hEGdN8t7oUaQzKKZdFqmtGy7" ], "script": "base64:BgLwLwgCEggKBggIAQEBCBIFCgMBCAISAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgASABIFCgMICAQSAwoBCBIDCgEIEgQKAggIEgQKAggIEgMKAQgSACIDU0VQIgZTQ0FMRTgiBU1VTFQ4Ig5QT09MV0VJR0hUTVVMVCIHd3JhcEVyciIDbXNnIgh0aHJvd0VyciIEc3RyZiIHYWRkcmVzcyIDa2V5IgNpb3oiA2lvZCIKZGVmYXVsdFZhbCIDaW9mIgNhYnMiA3ZhbCIDYWFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgJhaSIGdmFsSW50IhtrZXlSZWZlcnJhbHNDb250cmFjdEFkZHJlc3MiHnJlZmVycmFsc0NvbnRyYWN0QWRkcmVzc09yRmFpbCIWa2V5UmVmZXJyYWxQcm9ncmFtTmFtZSIacmVmZXJyYWxQcm9ncmFtTmFtZURlZmF1bHQiE3JlZmVycmFsUHJvZ3JhbU5hbWUiEWtleUZhY3RvcnlBZGRyZXNzIhhJZHhGYWN0b3J5Q2ZnU3Rha2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TdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmZ1AQJmdgAEAmZ3BAFyCQECYUUAAwkAAQIFAXICCkJ5dGVWZWN0b3IEAmFLBQFyBQJhSwMJAAECBQFyAgRVbml0CAUCZnUPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmZ1CWJvZHlCeXRlcwkAkQMCCAUCZnUGcHJvb2ZzAAAFAmZ3t3Tp4A==", "height": 2504059, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FrmrX26juBRC6YB1Q4YFgRADYaRda8jQKgHKhw9yxZS4 Next: RstxjT3A62mftuWWm7EP7AU1SbwQNdj9X6DRhbcaBkr Diff:
Old | New | Differences | |
---|---|---|---|
144 | 144 | func aj () = "%s%s__emission__startBlock" | |
145 | 145 | ||
146 | 146 | ||
147 | - | func ak () = "%s%s__ | |
147 | + | func ak () = "%s%s__boostingV2__startBlock" | |
148 | 148 | ||
149 | 149 | ||
150 | - | func al () = "%s%s__ | |
150 | + | func al () = "%s%s__boostingV2__integral" | |
151 | 151 | ||
152 | 152 | ||
153 | - | func am () = "%s__ | |
153 | + | func am () = "%s%s__emission__duration" | |
154 | 154 | ||
155 | 155 | ||
156 | - | func an () = "%s%s__ | |
156 | + | func an () = "%s%s__emission__endBlock" | |
157 | 157 | ||
158 | 158 | ||
159 | - | let ao = 1 | |
160 | - | ||
161 | - | let ap = 2 | |
162 | - | ||
163 | - | let aq = 3 | |
164 | - | ||
165 | - | let ar = 4 | |
166 | - | ||
167 | - | let as = 5 | |
168 | - | ||
169 | - | func at () = "%s__config" | |
159 | + | func ao () = "%s__nextPeriod" | |
170 | 160 | ||
171 | 161 | ||
172 | - | func | |
162 | + | func ap () = "%s%s__gwxRewardEmissionPart__startHeight" | |
173 | 163 | ||
174 | 164 | ||
175 | - | let | |
165 | + | let aq = 1 | |
176 | 166 | ||
177 | - | func aw (ax,ay,az,aA,av) = makeString(["%s%d%d%d", ax, ay, az, aA, av], a) | |
167 | + | let ar = 2 | |
168 | + | ||
169 | + | let as = 3 | |
170 | + | ||
171 | + | let at = 4 | |
172 | + | ||
173 | + | let au = 5 | |
174 | + | ||
175 | + | func av () = "%s__config" | |
178 | 176 | ||
179 | 177 | ||
180 | - | func | |
178 | + | func aw () = split(h(this, av()), a) | |
181 | 179 | ||
182 | 180 | ||
183 | - | func aC () = { | |
181 | + | let ax = addressFromStringValue(aw()[au]) | |
182 | + | ||
183 | + | func ay (az,aA,aB,aC,ax) = makeString(["%s%d%d%d", az, aA, aB, aC, ax], a) | |
184 | + | ||
185 | + | ||
186 | + | func aD (az,aA,aB,aC,ax) = ay(az, toString(aA), toString(aB), toString(aC), ax) | |
187 | + | ||
188 | + | ||
189 | + | func aE () = { | |
184 | 190 | let r = getString(af()) | |
185 | 191 | if ($isInstanceOf(r, "String")) | |
186 | 192 | then { | |
187 | - | let | |
188 | - | fromBase58String( | |
193 | + | let aF = r | |
194 | + | fromBase58String(aF) | |
189 | 195 | } | |
190 | 196 | else if ($isInstanceOf(r, "Unit")) | |
191 | 197 | then unit | |
193 | 199 | } | |
194 | 200 | ||
195 | 201 | ||
196 | - | func | |
202 | + | func aG () = { | |
197 | 203 | let r = getString(ag()) | |
198 | 204 | if ($isInstanceOf(r, "String")) | |
199 | 205 | then { | |
200 | - | let | |
201 | - | fromBase58String( | |
206 | + | let aF = r | |
207 | + | fromBase58String(aF) | |
202 | 208 | } | |
203 | 209 | else if ($isInstanceOf(r, "Unit")) | |
204 | 210 | then unit | |
206 | 212 | } | |
207 | 213 | ||
208 | 214 | ||
209 | - | func | |
210 | - | let | |
211 | - | let r = | |
215 | + | func aH (aI) = { | |
216 | + | let aJ = throw("Permission denied") | |
217 | + | let r = aE() | |
212 | 218 | if ($isInstanceOf(r, "ByteVector")) | |
213 | 219 | then { | |
214 | - | let | |
215 | - | if (( | |
220 | + | let aK = r | |
221 | + | if ((aI.callerPublicKey == aK)) | |
216 | 222 | then true | |
217 | - | else | |
223 | + | else aJ | |
218 | 224 | } | |
219 | 225 | else if ($isInstanceOf(r, "Unit")) | |
220 | - | then if (( | |
226 | + | then if ((aI.caller == this)) | |
221 | 227 | then true | |
222 | - | else | |
228 | + | else aJ | |
223 | 229 | else throw("Match error") | |
224 | 230 | } | |
225 | 231 | ||
226 | 232 | ||
227 | - | let | |
233 | + | let aL = 1 | |
228 | 234 | ||
229 | - | let | |
235 | + | let aM = 2 | |
230 | 236 | ||
231 | - | let | |
237 | + | let aN = 3 | |
232 | 238 | ||
233 | - | let | |
239 | + | let aO = 4 | |
234 | 240 | ||
235 | - | let | |
241 | + | let aP = 5 | |
236 | 242 | ||
237 | - | let | |
243 | + | let aQ = 6 | |
238 | 244 | ||
239 | - | func | |
245 | + | func aR (aS) = makeString(["%s%s__lock", aS], a) | |
240 | 246 | ||
241 | 247 | ||
242 | - | func | |
248 | + | func aT (aS) = split(h(this, aR(aS)), a) | |
243 | 249 | ||
244 | 250 | ||
245 | - | func | |
251 | + | func aU (aV,aW,aX,aY,aZ,ba,bb,bc) = makeString(["%d%d%d%d%d%d%d%d", aV, aW, aX, aY, aZ, ba, bb, bc], a) | |
246 | 252 | ||
247 | 253 | ||
248 | - | func | |
254 | + | func bd (aV,aW,aX,aY,aZ,ba,bc) = aU(aV, toString(aW), toString(aX), toString(aY), toString(aZ), toString(ba), toString(lastBlock.timestamp), toString(bc)) | |
249 | 255 | ||
250 | 256 | ||
251 | - | func | |
257 | + | func be () = "%s__nextUserNum" | |
252 | 258 | ||
253 | 259 | ||
254 | - | func | |
260 | + | func bf (aS) = makeString(["%s%s%s__mapping__user2num", aS], a) | |
255 | 261 | ||
256 | 262 | ||
257 | - | func | |
263 | + | func bg (V) = makeString(["%s%s%s__mapping__num2user", V], a) | |
258 | 264 | ||
259 | 265 | ||
260 | - | func | |
266 | + | func bh (aV) = makeString(["%s%d%s__paramByUserNum", aV, "amount"], a) | |
261 | 267 | ||
262 | 268 | ||
263 | - | func | |
269 | + | func bi (aV) = makeString(["%s%d%s__paramByUserNum", aV, "start"], a) | |
264 | 270 | ||
265 | 271 | ||
266 | - | func | |
272 | + | func bj (aV) = makeString(["%s%d%s__paramByUserNum", aV, "duration"], a) | |
267 | 273 | ||
268 | 274 | ||
269 | - | func | |
275 | + | func bk (aV) = makeString(["%s%d%s__paramByUserNum", aV, "k"], a) | |
270 | 276 | ||
271 | 277 | ||
272 | - | func | |
278 | + | func bl (aV) = makeString(["%s%d%s__paramByUserNum", aV, "b"], a) | |
273 | 279 | ||
274 | 280 | ||
275 | - | func | |
281 | + | func bm (aV,bn) = makeString(["%s%d%s%d__paramByPeriod", aV, "k", bn], a) | |
276 | 282 | ||
277 | 283 | ||
278 | - | func | |
284 | + | func bo (aV,bn) = makeString(["%s%d%s%d__paramByPeriod", aV, "b", bn], a) | |
279 | 285 | ||
280 | 286 | ||
281 | - | func | |
287 | + | func bp () = "%s%s__stats__activeTotalLocked" | |
282 | 288 | ||
283 | 289 | ||
284 | - | func | |
290 | + | func bq () = "%s%s__stats__locksDurationSumInBlocks" | |
285 | 291 | ||
286 | 292 | ||
287 | - | func | |
293 | + | func br () = "%s%s__stats__locksCount" | |
288 | 294 | ||
289 | 295 | ||
290 | - | func | |
296 | + | func bs () = "%s%s__stats__activeUsersCount" | |
291 | 297 | ||
292 | 298 | ||
293 | - | func | |
299 | + | func bt (aV) = makeString(["%s%d__userBoostEmissionLastIntV2", aV], a) | |
294 | 300 | ||
295 | 301 | ||
296 | - | func | |
302 | + | func bu (aV,bv) = makeString(["%s%d__userBoostEmissionLastIntV2", aV, bv], a) | |
297 | 303 | ||
298 | 304 | ||
299 | - | func | |
305 | + | func bw (aV) = makeString(["%s%d__maxBoostInt", aV], a) | |
300 | 306 | ||
301 | 307 | ||
302 | - | func | |
308 | + | func bx () = "%s%s__maxBoostInt__total" | |
303 | 309 | ||
304 | 310 | ||
305 | - | func | |
311 | + | func by (aV) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aV], a) | |
306 | 312 | ||
307 | 313 | ||
308 | - | func | |
314 | + | func bz (aV) = makeString(["%s%d__userBoostClaimed", aV], a) | |
309 | 315 | ||
310 | 316 | ||
311 | - | func | |
317 | + | func bA () = "%s%s__gwxCached__total" | |
312 | 318 | ||
313 | 319 | ||
314 | - | func | |
320 | + | func bB () = "%s__gwxCachedTotalCorrective" | |
315 | 321 | ||
316 | 322 | ||
317 | - | ||
323 | + | func bC (bD,bE,i,bF) = makeString(["%s%s%s%s%d", "vote", bD, bE, toString(i), toString(bF)], a) | |
318 | 324 | ||
319 | - | let ab = Y(bA) | |
320 | 325 | ||
321 | - | ||
326 | + | func bG (bF) = makeString(["%s%d", "startHeight", toString(bF)], a) | |
322 | 327 | ||
323 | - | let bC = ad(ab) | |
324 | 328 | ||
325 | - | ||
329 | + | func bH () = makeString(["%s", "currentEpochUi"], a) | |
326 | 330 | ||
327 | - | let bE = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), e("lp_staking_pools contract address is undefined"))), e("invalid lp_staking_pools contract address")) | |
328 | 331 | ||
329 | - | ||
332 | + | func bI (bJ,bF) = makeString(["%s%s%d", "votingResultStaked", bJ, toString(bF)], a) | |
330 | 333 | ||
331 | - | let bG = addressFromStringValue(getStringValue(bA, bF)) | |
332 | 334 | ||
333 | - | func bH (bI) = { | |
334 | - | let bJ = makeString(["%s", "currentEpochUi"], a) | |
335 | - | let bK = getIntegerValue(bG, bJ) | |
336 | - | let bL = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
337 | - | let bM = getInteger(this, bL) | |
338 | - | let bN = valueOrElse(getInteger(this, by()), 0) | |
339 | - | let bO = if (isDefined(bM)) | |
340 | - | then (bK >= value(bM)) | |
335 | + | func bK (bJ,bF) = makeString(["%s%s%d", "votingResultStakedIntegral", bJ, toString(bF)], a) | |
336 | + | ||
337 | + | ||
338 | + | func bL (bJ,bF) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bJ, toString(bF)], a) | |
339 | + | ||
340 | + | ||
341 | + | func bM (bJ,i,bF) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bJ, toString(i), toString(bF)], a) | |
342 | + | ||
343 | + | ||
344 | + | func bN (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegral", bJ, toString(i), toString(bF)], a) | |
345 | + | ||
346 | + | ||
347 | + | func bO (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bJ, toString(i), toString(bF)], a) | |
348 | + | ||
349 | + | ||
350 | + | func bP (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bJ, toString(i), toString(bF)], a) | |
351 | + | ||
352 | + | ||
353 | + | func bQ (bR,bJ) = makeString(["%s%s%s", "staked", bR, bJ], a) | |
354 | + | ||
355 | + | ||
356 | + | let bS = W() | |
357 | + | ||
358 | + | let ab = Y(bS) | |
359 | + | ||
360 | + | let bT = ac(ab) | |
361 | + | ||
362 | + | let bU = ad(ab) | |
363 | + | ||
364 | + | let bV = ae(ab) | |
365 | + | ||
366 | + | let bW = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), e("lp_staking_pools contract address is undefined"))), e("invalid lp_staking_pools contract address")) | |
367 | + | ||
368 | + | let bX = makeString(["%s", "votingEmissionContract"], a) | |
369 | + | ||
370 | + | let bY = addressFromStringValue(getStringValue(bS, bX)) | |
371 | + | ||
372 | + | let bZ = { | |
373 | + | let ca = invoke(bT, "getBoostCoeffREADONLY", nil, nil) | |
374 | + | if ($isInstanceOf(ca, "Int")) | |
375 | + | then ca | |
376 | + | else throw(($getType(ca) + " couldn't be cast to Int")) | |
377 | + | } | |
378 | + | ||
379 | + | func cb (cc) = { | |
380 | + | let cd = getIntegerValue(bY, bH()) | |
381 | + | let ce = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
382 | + | let cf = getInteger(this, ce) | |
383 | + | let cg = valueOrElse(getInteger(this, bA()), 0) | |
384 | + | let ch = if (isDefined(cf)) | |
385 | + | then (cd >= value(cf)) | |
341 | 386 | else false | |
342 | - | let | |
343 | - | then | |
387 | + | let ci = if (if (ch) | |
388 | + | then cc | |
344 | 389 | else false) | |
345 | - | then valueOrElse(getInteger(this, | |
390 | + | then valueOrElse(getInteger(this, bB()), 0) | |
346 | 391 | else 0 | |
347 | - | max([0, ( | |
392 | + | max([0, (cg + ci)]) | |
348 | 393 | } | |
349 | 394 | ||
350 | 395 | ||
351 | - | func | |
352 | - | let | |
353 | - | let | |
354 | - | StringEntry( | |
396 | + | func cj (ck,cl,aW,cm,aY,cn,co,aI) = { | |
397 | + | let cp = makeString(["%s%s%s%s__history", ck, cl, toBase58String(aI.transactionId)], a) | |
398 | + | let cq = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aW), toString(cm), toString(aY), toString(cn), toString(co)], a) | |
399 | + | StringEntry(cp, cq) | |
355 | 400 | } | |
356 | 401 | ||
357 | 402 | ||
358 | - | func | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | [IntegerEntry( | |
403 | + | func cr (cs,ct,cu,cv) = { | |
404 | + | let cw = bq() | |
405 | + | let cx = br() | |
406 | + | let cy = bs() | |
407 | + | let cz = bp() | |
408 | + | let cA = k(this, cw) | |
409 | + | let cB = k(this, cx) | |
410 | + | let cC = k(this, cy) | |
411 | + | let cD = k(this, cz) | |
412 | + | [IntegerEntry(cw, (cA + ct)), IntegerEntry(cx, (cB + cu)), IntegerEntry(cy, (cC + cv)), IntegerEntry(cz, (cD + cs))] | |
368 | 413 | } | |
369 | 414 | ||
370 | 415 | ||
371 | - | func | |
372 | - | let | |
373 | - | ((( | |
416 | + | func cE (cF,cG,cH) = { | |
417 | + | let cI = 1000 | |
418 | + | (((cF * cH) + cG) / cI) | |
374 | 419 | } | |
375 | 420 | ||
376 | 421 | ||
377 | - | func | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | [IntegerEntry( | |
422 | + | func cJ (aS,aV,aW,aX,aY,cn,co,bn) = { | |
423 | + | let cK = bh(aV) | |
424 | + | let cL = bi(aV) | |
425 | + | let cM = bj(aV) | |
426 | + | let cN = bk(aV) | |
427 | + | let cO = bl(aV) | |
428 | + | let cP = bm(aV, bn) | |
429 | + | let cQ = bo(aV, bn) | |
430 | + | let bc = cE(cn, co, height) | |
431 | + | [IntegerEntry(cK, aW), IntegerEntry(cL, aX), IntegerEntry(cM, aY), IntegerEntry(cN, cn), IntegerEntry(cO, co), IntegerEntry(cP, cn), IntegerEntry(cQ, co), StringEntry(aR(aS), bd(aV, aW, aX, aY, cn, co, bc))] | |
387 | 432 | } | |
388 | 433 | ||
389 | 434 | ||
390 | - | func | |
435 | + | func cR (aI,cS) = if ((size(aI.payments) > 1)) | |
391 | 436 | then throw("only one payment is allowed") | |
392 | - | else if ((size( | |
437 | + | else if ((size(aI.payments) == 0)) | |
393 | 438 | then 0 | |
394 | 439 | else { | |
395 | - | let | |
396 | - | if ((value( | |
440 | + | let cT = aI.payments[0] | |
441 | + | if ((value(cT.assetId) != cS)) | |
397 | 442 | then throw("invalid asset id in payment") | |
398 | - | else | |
443 | + | else cT.amount | |
399 | 444 | } | |
400 | 445 | ||
401 | 446 | ||
402 | - | func | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
447 | + | func cU (aS,cV) = { | |
448 | + | let cW = "empty" | |
449 | + | let cX = bf(aS) | |
450 | + | let aV = valueOrElse(getString(cX), cW) | |
451 | + | let cn = valueOrElse(getInteger(bk(aV)), 0) | |
452 | + | let co = valueOrElse(getInteger(bl(aV)), 0) | |
453 | + | let cY = cE(cn, co, cV) | |
454 | + | let bc = if ((0 > cY)) | |
410 | 455 | then 0 | |
411 | - | else | |
412 | - | | |
456 | + | else cY | |
457 | + | bc | |
413 | 458 | } | |
414 | 459 | ||
415 | 460 | ||
416 | - | func | |
461 | + | func cZ (aS) = cU(aS, height) | |
417 | 462 | ||
418 | 463 | ||
419 | - | func cH () = { | |
420 | - | let bJ = makeString(["%s", "currentEpochUi"], a) | |
421 | - | let cI = { | |
422 | - | let bK = value(getInteger(bG, bJ)) | |
423 | - | let cJ = (bK - 1) | |
424 | - | if ((0 > cJ)) | |
464 | + | func da () = { | |
465 | + | let db = { | |
466 | + | let cd = value(getInteger(bY, bH())) | |
467 | + | let dc = (cd - 1) | |
468 | + | if ((0 > dc)) | |
425 | 469 | then g("invalid epoch") | |
426 | - | else $Tuple2( | |
470 | + | else $Tuple2(cd, dc) | |
427 | 471 | } | |
428 | - | let bK = cI._1 | |
429 | - | let cJ = cI._2 | |
430 | - | func cK (cL) = makeString(["%s%d", "startHeight", toString(cL)], a) | |
431 | - | ||
432 | - | let cM = value(getInteger(bG, cK(bK))) | |
433 | - | $Tuple2(cJ, cM) | |
472 | + | let cd = db._1 | |
473 | + | let dc = db._2 | |
474 | + | let dd = value(getInteger(bY, bG(cd))) | |
475 | + | $Tuple2(dc, dd) | |
434 | 476 | } | |
435 | 477 | ||
436 | 478 | ||
437 | - | func cN (cO,cP,i,cL) = makeString(["%s%s%s%s%d", "vote", cO, cP, toString(i), toString(cL)], a) | |
438 | - | ||
439 | - | ||
440 | - | func cQ (cR,cL) = makeString(["%s%s%d", "votingResultStaked", cR, toString(cL)], a) | |
441 | - | ||
442 | - | ||
443 | - | func cS (cR,cL) = makeString(["%s%s%d", "votingResultStakedIntegral", cR, toString(cL)], a) | |
444 | - | ||
445 | - | ||
446 | - | func cT (cR,cL) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", cR, toString(cL)], a) | |
447 | - | ||
448 | - | ||
449 | - | func cU (cR,i,cL) = makeString(["%s%s%s%d", "voteStakedIntegral", cR, toString(i), toString(cL)], a) | |
450 | - | ||
451 | - | ||
452 | - | func cV (cR,i,cL) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", cR, toString(i), toString(cL)], a) | |
453 | - | ||
454 | - | ||
455 | - | func cW (cR) = { | |
456 | - | let cX = cH() | |
457 | - | let cJ = cX._1 | |
458 | - | let cM = cX._2 | |
459 | - | let cY = valueOrElse(getInteger(bG, cQ(cR, cJ)), 0) | |
460 | - | let cZ = valueOrElse(getInteger(this, cQ(cR, cJ)), cY) | |
461 | - | cZ | |
479 | + | func de (bJ) = { | |
480 | + | let df = 4 | |
481 | + | let dg = 5 | |
482 | + | let dh = { | |
483 | + | let ca = invoke(bS, "getPoolConfigByLpAssetIdREADONLY", [bJ], nil) | |
484 | + | if ($isInstanceOf(ca, "List[Any]")) | |
485 | + | then ca | |
486 | + | else throw(($getType(ca) + " couldn't be cast to List[Any]")) | |
487 | + | } | |
488 | + | let bD = { | |
489 | + | let ca = dh[df] | |
490 | + | if ($isInstanceOf(ca, "String")) | |
491 | + | then ca | |
492 | + | else throw(($getType(ca) + " couldn't be cast to String")) | |
493 | + | } | |
494 | + | let bE = { | |
495 | + | let ca = dh[dg] | |
496 | + | if ($isInstanceOf(ca, "String")) | |
497 | + | then ca | |
498 | + | else throw(($getType(ca) + " couldn't be cast to String")) | |
499 | + | } | |
500 | + | $Tuple2(bD, bE) | |
462 | 501 | } | |
463 | 502 | ||
464 | 503 | ||
465 | - | func da (cR,db) = { | |
466 | - | let dc = cH() | |
467 | - | let cJ = dc._1 | |
468 | - | let cM = dc._2 | |
469 | - | let cZ = cW(cR) | |
470 | - | let dd = (cZ + db) | |
471 | - | let de = cS(cR, cJ) | |
472 | - | let df = valueOrElse(getInteger(this, de), 0) | |
473 | - | let dg = cT(cR, cJ) | |
474 | - | let dh = valueOrElse(getInteger(this, dg), cM) | |
475 | - | let di = (height - dh) | |
476 | - | let dj = ((di * cZ) + df) | |
477 | - | $Tuple2([IntegerEntry(cQ(cR, cJ), dd), IntegerEntry(dg, height), IntegerEntry(de, dj)], dj) | |
504 | + | func di (bJ,bR) = { | |
505 | + | let aS = addressFromStringValue(bR) | |
506 | + | let dj = da() | |
507 | + | let dc = dj._1 | |
508 | + | let dd = dj._2 | |
509 | + | let dk = de(bJ) | |
510 | + | let bD = dk._1 | |
511 | + | let bE = dk._2 | |
512 | + | let dl = bC(bD, bE, aS, dc) | |
513 | + | let dm = valueOrElse(getInteger(bY, dl), 0) | |
514 | + | dm | |
478 | 515 | } | |
479 | 516 | ||
480 | 517 | ||
481 | - | func dk (cR,dl,dm) = { | |
482 | - | let dn = cH() | |
483 | - | let cJ = dn._1 | |
484 | - | let cM = dn._2 | |
485 | - | let aQ = addressFromStringValue(dl) | |
486 | - | let do = 4 | |
487 | - | let dp = 5 | |
488 | - | let dq = { | |
489 | - | let dr = invoke(bA, "getPoolConfigByLpAssetId", [cR], nil) | |
490 | - | if ($isInstanceOf(dr, "List[Any]")) | |
491 | - | then dr | |
492 | - | else throw(($getType(dr) + " couldn't be cast to List[Any]")) | |
493 | - | } | |
494 | - | let cO = { | |
495 | - | let dr = dq[do] | |
496 | - | if ($isInstanceOf(dr, "String")) | |
497 | - | then dr | |
498 | - | else throw(($getType(dr) + " couldn't be cast to String")) | |
499 | - | } | |
500 | - | let cP = { | |
501 | - | let dr = dq[dp] | |
502 | - | if ($isInstanceOf(dr, "String")) | |
503 | - | then dr | |
504 | - | else throw(($getType(dr) + " couldn't be cast to String")) | |
505 | - | } | |
506 | - | let ds = valueOrElse(getInteger(bG, cN(cO, cP, aQ, cJ)), 0) | |
507 | - | let dt = if ((ds == 0)) | |
508 | - | then nil | |
509 | - | else { | |
510 | - | let db = if (dm) | |
511 | - | then ds | |
512 | - | else -(ds) | |
513 | - | let du = da(cR, db) | |
514 | - | let dv = du._1 | |
515 | - | let dj = du._2 | |
516 | - | let dw = if (dm) | |
517 | - | then 0 | |
518 | - | else ds | |
519 | - | let dx = cU(cR, aQ, cJ) | |
520 | - | let dy = valueOrElse(getInteger(this, dx), 0) | |
521 | - | let dz = cV(cR, aQ, cJ) | |
522 | - | let dA = valueOrElse(getInteger(this, dz), cM) | |
523 | - | let dB = (height - dA) | |
524 | - | let dC = ((dB * dw) + dy) | |
525 | - | let dD = [IntegerEntry(dz, height), IntegerEntry(dx, dC)] | |
526 | - | (dv ++ dD) | |
527 | - | } | |
528 | - | dt | |
518 | + | func dn (bJ,bR) = { | |
519 | + | let do = valueOrElse(getInteger(bU, bQ(bR, bJ)), 0) | |
520 | + | let dm = di(bJ, bR) | |
521 | + | if ((do == 0)) | |
522 | + | then 0 | |
523 | + | else dm | |
529 | 524 | } | |
530 | 525 | ||
531 | 526 | ||
532 | - | func dE (cR,dl,dF) = { | |
533 | - | let cD = "EMPTY" | |
534 | - | let dG = valueOrElse(getString(this, aP(dl)), cD) | |
535 | - | if ((dG == cD)) | |
527 | + | func dp (bJ) = { | |
528 | + | let dq = da() | |
529 | + | let dc = dq._1 | |
530 | + | let dd = dq._2 | |
531 | + | let dr = valueOrElse(getInteger(bY, bI(bJ, dc)), 0) | |
532 | + | let ds = valueOrElse(getInteger(this, bI(bJ, dc)), dr) | |
533 | + | ds | |
534 | + | } | |
535 | + | ||
536 | + | ||
537 | + | func dt (bJ) = { | |
538 | + | let du = da() | |
539 | + | let dc = du._1 | |
540 | + | let dd = du._2 | |
541 | + | let ds = dp(bJ) | |
542 | + | let dv = valueOrElse(getInteger(this, bK(bJ, dc)), 0) | |
543 | + | let dw = valueOrElse(getInteger(this, bL(bJ, dc)), dd) | |
544 | + | let dx = (height - dw) | |
545 | + | let dy = ((dx * ds) + dv) | |
546 | + | dy | |
547 | + | } | |
548 | + | ||
549 | + | ||
550 | + | func dz (bJ,dA) = { | |
551 | + | let dB = da() | |
552 | + | let dc = dB._1 | |
553 | + | let dd = dB._2 | |
554 | + | let ds = dp(bJ) | |
555 | + | let dC = (ds + dA) | |
556 | + | let dy = dt(bJ) | |
557 | + | [IntegerEntry(bI(bJ, dc), dC), IntegerEntry(bL(bJ, dc), height), IntegerEntry(bK(bJ, dc), dy)] | |
558 | + | } | |
559 | + | ||
560 | + | ||
561 | + | func dD (bJ,bR) = { | |
562 | + | let dE = da() | |
563 | + | let dc = dE._1 | |
564 | + | let dd = dE._2 | |
565 | + | let aS = addressFromStringValue(bR) | |
566 | + | let dF = dn(bJ, bR) | |
567 | + | let dG = valueOrElse(getInteger(this, bN(bJ, aS, dc)), 0) | |
568 | + | let dH = valueOrElse(getInteger(this, bO(bJ, aS, dc)), dd) | |
569 | + | let dI = (height - dH) | |
570 | + | let dJ = ((dI * dF) + dG) | |
571 | + | dJ | |
572 | + | } | |
573 | + | ||
574 | + | ||
575 | + | func dK (bJ,bR,dL) = { | |
576 | + | let dM = da() | |
577 | + | let dc = dM._1 | |
578 | + | let dd = dM._2 | |
579 | + | let aS = addressFromStringValue(bR) | |
580 | + | let dN = di(bJ, bR) | |
581 | + | let dO = if ((dN == 0)) | |
582 | + | then nil | |
583 | + | else { | |
584 | + | let dA = if (dL) | |
585 | + | then dN | |
586 | + | else -(dN) | |
587 | + | let dP = dz(bJ, dA) | |
588 | + | let dJ = dD(bJ, bR) | |
589 | + | let dQ = [IntegerEntry(bO(bJ, aS, dc), height), IntegerEntry(bN(bJ, aS, dc), dJ)] | |
590 | + | (dP ++ dQ) | |
591 | + | } | |
592 | + | dO | |
593 | + | } | |
594 | + | ||
595 | + | ||
596 | + | func dR (bJ,bR) = { | |
597 | + | let dS = da() | |
598 | + | let dc = dS._1 | |
599 | + | let dd = dS._2 | |
600 | + | let aS = addressFromStringValue(bR) | |
601 | + | let dT = bP(bJ, aS, dc) | |
602 | + | let dU = valueOrElse(getInteger(this, dT), 0) | |
603 | + | let dV = bM(bJ, aS, dc) | |
604 | + | let dW = valueOrElse(getInteger(this, dV), 0) | |
605 | + | let dJ = dD(bJ, bR) | |
606 | + | let dy = dt(bJ) | |
607 | + | let dX = (dJ - dU) | |
608 | + | let dY = (dy - dW) | |
609 | + | $Tuple3([IntegerEntry(dT, dJ), IntegerEntry(dV, dy)], dX, dY) | |
610 | + | } | |
611 | + | ||
612 | + | ||
613 | + | func dZ () = { | |
614 | + | let ea = n(bT, ah()) | |
615 | + | let eb = getInteger(bT, ak()) | |
616 | + | let ec = getInteger(this, al()) | |
617 | + | let ed = n(bT, an()) | |
618 | + | let cH = if ((height > ed)) | |
619 | + | then ed | |
620 | + | else height | |
621 | + | let ee = { | |
622 | + | let r = eb | |
623 | + | if ($isInstanceOf(r, "Int")) | |
624 | + | then { | |
625 | + | let ef = r | |
626 | + | max([(cH - ef), 0]) | |
627 | + | } | |
628 | + | else if ($isInstanceOf(r, "Unit")) | |
629 | + | then 0 | |
630 | + | else throw("Match error") | |
631 | + | } | |
632 | + | let eg = ((ea * (bZ - 1)) / bZ) | |
633 | + | let eh = valueOrElse(ec, 0) | |
634 | + | let ei = ((eg * ee) + eh) | |
635 | + | $Tuple2([IntegerEntry(al(), ei), IntegerEntry(ak(), height)], ei) | |
636 | + | } | |
637 | + | ||
638 | + | ||
639 | + | func ej (bJ,bR,ek) = { | |
640 | + | let el = getString(this, aR(bR)) | |
641 | + | if ((el == unit)) | |
536 | 642 | then $Tuple3(0, nil, "userRecord::is::empty") | |
537 | 643 | else { | |
538 | - | let dH = split(dG, a) | |
539 | - | let dI = dH[aJ] | |
540 | - | let dJ = valueOrElse(getInteger(bD, an()), 0) | |
541 | - | let dK = "empty" | |
542 | - | let dL = if ((cR != dK)) | |
644 | + | let em = split(value(el), a) | |
645 | + | let en = em[aL] | |
646 | + | let eo = "empty" | |
647 | + | let ep = if ((bJ != eo)) | |
543 | 648 | then { | |
544 | - | let dM = valueOrErrorMessage(getString(bA, N(cR)), ("unsupported lp asset " + cR)) | |
545 | - | let dN = getIntegerValue(bA, R(dM)) | |
546 | - | let dO = valueOrElse(getInteger(bA, T(dM, 0)), dN) | |
547 | - | $Tuple2(dO, dN) | |
649 | + | let eq = valueOrErrorMessage(getString(bS, N(bJ)), ("unsupported lp asset " + bJ)) | |
650 | + | getIntegerValue(bS, R(eq)) | |
548 | 651 | } | |
549 | - | else if (dF) | |
550 | - | then $Tuple2(0, 0) | |
551 | - | else throw(("not readonly mode: unsupported lp asset " + cR)) | |
552 | - | let dP = dL._1 | |
553 | - | let dQ = dL._2 | |
554 | - | let dR = n(bB, ah()) | |
555 | - | let dS = n(bB, aj()) | |
556 | - | let dT = n(bB, al()) | |
557 | - | let co = if ((height > dT)) | |
558 | - | then dT | |
559 | - | else height | |
560 | - | let dU = max([(co - dS), 0]) | |
561 | - | let dV = bs(dI, cR) | |
562 | - | let dW = br(dI) | |
563 | - | let dX = valueOrElse(getInteger(this, dV), k(this, dW)) | |
564 | - | let dY = (((dR * dU) * 2) / 3) | |
565 | - | let dZ = (dY - dX) | |
566 | - | let ea = fraction(dZ, 3, (2 * dR)) | |
567 | - | let eb = (co - ea) | |
568 | - | let ec = max([(dJ - eb), 0]) | |
569 | - | let ed = ((co - eb) - ec) | |
570 | - | if (if (if ((0 > eb)) | |
571 | - | then true | |
572 | - | else (0 > ed)) | |
573 | - | then true | |
574 | - | else (o(((ec + ed) - ea)) >= 1)) | |
575 | - | then throw(((((((((((("invalid udh calc: udh=" + toString(ea)) + " uLastH=") + toString(eb)) + " udh0=") + toString(ec)) + " udh1=") + toString(ed)) + " lpAssetId=") + cR) + " userAddress=") + dl)) | |
576 | - | else if ((0 > dZ)) | |
577 | - | then throw("wrong calculations") | |
578 | - | else { | |
579 | - | let ee = bu(dI) | |
580 | - | let ef = bv() | |
581 | - | let eg = k(this, ee) | |
582 | - | let eh = k(this, ef) | |
583 | - | let ei = bH(true) | |
584 | - | let ej = cG(dl) | |
585 | - | let ek = bw(dI) | |
586 | - | let el = k(this, ek) | |
587 | - | let em = if ((ea == 0)) | |
588 | - | then 0 | |
589 | - | else fraction(dZ, ec, ea) | |
590 | - | let en = if ((ea == 0)) | |
591 | - | then 0 | |
592 | - | else fraction(dZ, ed, ea) | |
593 | - | let eo = fraction(em, dP, d) | |
594 | - | let ep = fraction(en, dQ, d) | |
595 | - | let eq = if ((ei == 0)) | |
596 | - | then 0 | |
597 | - | else fraction(eo, ej, ei) | |
598 | - | let er = if ((ei == 0)) | |
599 | - | then 0 | |
600 | - | else fraction(ep, ej, ei) | |
601 | - | let es = (eq + er) | |
602 | - | let et = bx(dI) | |
603 | - | let eu = k(this, et) | |
604 | - | let ev = (es - eu) | |
605 | - | let ew = [IntegerEntry(dV, dY)] | |
606 | - | let ex = makeString([toString(dX), toString(dZ), toString(eu), toString(ev), toString(dP), toString(dQ), toString(co), toString(ea), toString(eb), toString(ec), toString(ed), toString(ej), toString(ei)], ":") | |
607 | - | $Tuple3(es, ew, ex) | |
608 | - | } | |
652 | + | else if (ek) | |
653 | + | then 0 | |
654 | + | else throw(("not readonly mode: unsupported lp asset " + bJ)) | |
655 | + | let er = bu(en, bJ) | |
656 | + | let es = bt(en) | |
657 | + | let et = valueOrElse(getInteger(this, er), k(this, es)) | |
658 | + | let ei = dZ()._2 | |
659 | + | let eu = (ei - et) | |
660 | + | if ((0 > eu)) | |
661 | + | then throw("wrong calculations") | |
662 | + | else { | |
663 | + | let ev = dR(bJ, bR) | |
664 | + | let ew = ev._1 | |
665 | + | let ex = ev._2 | |
666 | + | let ey = ev._3 | |
667 | + | let ez = fraction(eu, ep, d) | |
668 | + | let eA = if ((ey == 0)) | |
669 | + | then 0 | |
670 | + | else fraction(ez, ex, ey) | |
671 | + | let eB = ([IntegerEntry(er, ei)] ++ ew) | |
672 | + | let eC = makeString([toString(et), toString(eu), toString(ep), toString(ex), toString(ey)], ":") | |
673 | + | $Tuple3(eA, eB, eC) | |
674 | + | } | |
609 | 675 | } | |
610 | 676 | } | |
611 | 677 | ||
612 | 678 | ||
613 | - | func | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | if ((size( | |
679 | + | func eD (aI,aY) = { | |
680 | + | let eE = aw() | |
681 | + | let eF = eE[aq] | |
682 | + | let az = fromBase58String(eF) | |
683 | + | let aA = parseIntValue(eE[ar]) | |
684 | + | let aB = parseIntValue(eE[as]) | |
685 | + | let aC = parseIntValue(eE[at]) | |
686 | + | if ((size(aI.payments) != 1)) | |
621 | 687 | then throw("invalid payment - exact one payment must be attached") | |
622 | 688 | else { | |
623 | - | let | |
624 | - | let | |
625 | - | if (( | |
626 | - | then throw((("invalid asset is in payment - " + | |
689 | + | let cT = aI.payments[0] | |
690 | + | let eG = cT.amount | |
691 | + | if ((az != value(cT.assetId))) | |
692 | + | then throw((("invalid asset is in payment - " + eF) + " is expected")) | |
627 | 693 | else { | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | then value(getString( | |
633 | - | else toString(n(this, | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | if (if (( | |
640 | - | then ( | |
694 | + | let eH = be() | |
695 | + | let bR = toString(aI.caller) | |
696 | + | let eI = isDefined(getString(bf(bR))) | |
697 | + | let en = if (eI) | |
698 | + | then value(getString(bf(bR))) | |
699 | + | else toString(n(this, eH)) | |
700 | + | let aV = parseIntValue(en) | |
701 | + | let cm = height | |
702 | + | let cL = bi(en) | |
703 | + | let cM = bj(en) | |
704 | + | let cK = bh(en) | |
705 | + | if (if ((aA > eG)) | |
706 | + | then (aI.caller != bW) | |
641 | 707 | else false) | |
642 | - | then throw(("amount is less then minLockAmount=" + toString( | |
643 | - | else if (( | |
644 | - | then throw(("passed duration is less then minLockDuration=" + toString( | |
645 | - | else if (( | |
646 | - | then throw(("passed duration is greater then maxLockDuration=" + toString( | |
647 | - | else if (if ( | |
648 | - | then ((n(this, | |
708 | + | then throw(("amount is less then minLockAmount=" + toString(aA))) | |
709 | + | else if ((aB > aY)) | |
710 | + | then throw(("passed duration is less then minLockDuration=" + toString(aB))) | |
711 | + | else if ((aY > aC)) | |
712 | + | then throw(("passed duration is greater then maxLockDuration=" + toString(aC))) | |
713 | + | else if (if (eI) | |
714 | + | then ((n(this, cL) + n(this, cM)) >= cm) | |
649 | 715 | else false) | |
650 | 716 | then throw("there is an active lock - consider to use increaseLock") | |
651 | - | else if ((k(this, | |
652 | - | then throw(("there are locked WXs - consider to use increaseLock " + | |
717 | + | else if ((k(this, cK) > 0)) | |
718 | + | then throw(("there are locked WXs - consider to use increaseLock " + cK)) | |
653 | 719 | else { | |
654 | - | let eE = fraction(aW, c, aA) | |
655 | - | let eF = fraction(eB, eE, c) | |
656 | - | let eG = q(invoke(av, "calcGwxParamsREADONLY", [eF, bT, aW], nil)) | |
657 | - | let bU = t(eG[0]) | |
658 | - | let bV = t(eG[1]) | |
659 | - | let bl = toString(t(eG[2])) | |
660 | - | let dR = n(bB, ah()) | |
661 | - | let dS = n(bB, aj()) | |
662 | - | let dT = n(bB, al()) | |
663 | - | let co = if ((height > dT)) | |
664 | - | then dT | |
665 | - | else height | |
666 | - | let dU = max([(co - dS), 0]) | |
667 | - | let dW = br(dI) | |
668 | - | let dY = (((dR * dU) * 2) / 3) | |
669 | - | let ee = bu(dI) | |
670 | - | let ef = bv() | |
671 | - | let eg = ((eF * aW) / 2) | |
672 | - | let eh = k(this, ef) | |
673 | - | let bN = bH(false) | |
674 | - | let eH = if (eD) | |
720 | + | let eJ = fraction(aY, c, aC) | |
721 | + | let eK = fraction(eG, eJ, c) | |
722 | + | let eL = q(invoke(ax, "calcGwxParamsREADONLY", [eK, cm, aY], nil)) | |
723 | + | let cn = t(eL[0]) | |
724 | + | let co = t(eL[1]) | |
725 | + | let bn = toString(t(eL[2])) | |
726 | + | let cg = cb(false) | |
727 | + | let es = bt(en) | |
728 | + | let ei = dZ()._2 | |
729 | + | let eM = if (eI) | |
675 | 730 | then nil | |
676 | - | else [IntegerEntry( | |
677 | - | $Tuple2((((( | |
731 | + | else [IntegerEntry(eH, (aV + 1)), StringEntry(bf(bR), en), StringEntry(bg(en), bR)] | |
732 | + | $Tuple2(((((eM ++ cJ(bR, en, eG, cm, aY, cn, co, bn)) ++ cr(eG, aY, 1, if (eI) | |
678 | 733 | then 0 | |
679 | - | else 1)) :+ | |
734 | + | else 1)) :+ cj("lock", bR, eG, cm, aY, cn, co, aI)) ++ [IntegerEntry(es, ei), IntegerEntry(bA(), (cg + eK))]), eK) | |
680 | 735 | } | |
681 | 736 | } | |
682 | 737 | } | |
683 | 738 | } | |
684 | 739 | ||
685 | 740 | ||
686 | - | @Callable( | |
687 | - | func constructor ( | |
688 | - | let | |
689 | - | if (( | |
690 | - | then ([IntegerEntry( | |
741 | + | @Callable(aI) | |
742 | + | func constructor (eN,eO,aA,eP,eQ,ax) = { | |
743 | + | let eR = aH(aI) | |
744 | + | if ((eR == eR)) | |
745 | + | then ([IntegerEntry(be(), 0), StringEntry(av(), aD(eO, aA, eP, eQ, ax)), StringEntry(A(), eN)] ++ cr(0, 0, 0, 0)) | |
691 | 746 | else throw("Strict value is not equal to itself.") | |
692 | 747 | } | |
693 | 748 | ||
694 | 749 | ||
695 | 750 | ||
696 | - | @Callable( | |
697 | - | func lockRef ( | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
751 | + | @Callable(aI) | |
752 | + | func lockRef (aY,eS,eT) = { | |
753 | + | let eU = eD(aI, aY) | |
754 | + | let eV = eU._1 | |
755 | + | let eK = eU._2 | |
756 | + | let eW = toString(aI.caller) | |
757 | + | let eX = if (if ((eS == "")) | |
703 | 758 | then true | |
704 | - | else ( | |
759 | + | else (eT == base58'')) | |
705 | 760 | then unit | |
706 | - | else invoke(w, "createPair", [z, | |
707 | - | if (( | |
761 | + | else invoke(w, "createPair", [z, eS, eW, eT], nil) | |
762 | + | if ((eX == eX)) | |
708 | 763 | then { | |
709 | - | let | |
710 | - | if (( | |
711 | - | then $Tuple2( | |
764 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
765 | + | if ((eY == eY)) | |
766 | + | then $Tuple2(eV, unit) | |
712 | 767 | else throw("Strict value is not equal to itself.") | |
713 | 768 | } | |
714 | 769 | else throw("Strict value is not equal to itself.") | |
716 | 771 | ||
717 | 772 | ||
718 | 773 | ||
719 | - | @Callable( | |
720 | - | func lock ( | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | if (( | |
726 | - | then $Tuple2( | |
774 | + | @Callable(aI) | |
775 | + | func lock (aY) = { | |
776 | + | let eZ = eD(aI, aY) | |
777 | + | let eV = eZ._1 | |
778 | + | let eK = eZ._2 | |
779 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
780 | + | if ((eY == eY)) | |
781 | + | then $Tuple2(eV, unit) | |
727 | 782 | else throw("Strict value is not equal to itself.") | |
728 | 783 | } | |
729 | 784 | ||
730 | 785 | ||
731 | 786 | ||
732 | - | @Callable( | |
733 | - | func increaseLock ( | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | if ((0 > | |
787 | + | @Callable(aI) | |
788 | + | func increaseLock (fa) = { | |
789 | + | let eE = aw() | |
790 | + | let eF = eE[aq] | |
791 | + | let az = fromBase58String(eF) | |
792 | + | let aB = parseIntValue(eE[as]) | |
793 | + | let aC = parseIntValue(eE[at]) | |
794 | + | let eG = cR(aI, az) | |
795 | + | let bR = toString(aI.caller) | |
796 | + | let em = aT(bR) | |
797 | + | let en = em[aL] | |
798 | + | let fb = parseIntValue(em[aM]) | |
799 | + | let cm = parseIntValue(em[aN]) | |
800 | + | let fc = parseIntValue(em[aO]) | |
801 | + | let fd = (cm + fc) | |
802 | + | let fe = max([(fd - height), 0]) | |
803 | + | let ff = (fb + eG) | |
804 | + | let fg = (fe + fa) | |
805 | + | if ((0 > fa)) | |
751 | 806 | then throw("duration is less then zero") | |
752 | - | else if (( | |
753 | - | then throw(("lockDurationNew is less then minLockDuration=" + toString( | |
754 | - | else if (( | |
755 | - | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString( | |
807 | + | else if ((aB > fg)) | |
808 | + | then throw(("lockDurationNew is less then minLockDuration=" + toString(aB))) | |
809 | + | else if ((fg > aC)) | |
810 | + | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(aC))) | |
756 | 811 | else { | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | if (( | |
812 | + | let eJ = fraction(fg, c, aC) | |
813 | + | let eK = fraction(ff, eJ, c) | |
814 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
815 | + | if ((eY == eY)) | |
761 | 816 | then { | |
762 | - | let fc = height | |
763 | - | let eG = q(invoke(av, "calcGwxParamsREADONLY", [eF, fc, fb], nil)) | |
764 | - | let bU = t(eG[0]) | |
765 | - | let bV = t(eG[1]) | |
766 | - | let bl = toString(t(eG[2])) | |
767 | - | let dR = n(bB, ah()) | |
768 | - | let dS = n(bB, aj()) | |
769 | - | let dT = n(bB, al()) | |
770 | - | let co = if ((height > dT)) | |
771 | - | then dT | |
772 | - | else height | |
773 | - | let dU = max([(co - dS), 0]) | |
774 | - | let dW = br(dI) | |
775 | - | let dX = k(this, dW) | |
776 | - | let dY = (((dR * dU) * 2) / 3) | |
777 | - | let dZ = (dY - dX) | |
778 | - | if ((0 > dZ)) | |
779 | - | then throw("wrong calculations") | |
817 | + | let fh = height | |
818 | + | let eL = q(invoke(ax, "calcGwxParamsREADONLY", [eK, fh, fg], nil)) | |
819 | + | let cn = t(eL[0]) | |
820 | + | let co = t(eL[1]) | |
821 | + | let bn = toString(t(eL[2])) | |
822 | + | let fi = cZ(bR) | |
823 | + | let fj = (eK - fi) | |
824 | + | if ((0 > fj)) | |
825 | + | then throw(("gwxDiff is less then 0: " + toString(fj))) | |
780 | 826 | else { | |
781 | - | let ee = bu(dI) | |
782 | - | let ef = bv() | |
783 | - | let eg = k(this, ee) | |
784 | - | let eh = k(this, ef) | |
785 | - | let fd = cG(dl) | |
786 | - | let fe = (eF - fd) | |
787 | - | if ((0 > fe)) | |
788 | - | then throw(("gwxDiff is less then 0: " + toString(fe))) | |
789 | - | else { | |
790 | - | let bN = bH(false) | |
791 | - | let ei = bH(true) | |
792 | - | let ek = bw(dI) | |
793 | - | let el = k(this, ek) | |
794 | - | let es = fraction(dZ, fd, ei) | |
795 | - | let ff = ((eF * fb) / 2) | |
796 | - | let fg = ((fd * eZ) / 2) | |
797 | - | let fh = (ff - fg) | |
798 | - | (((cq(dl, dI, fa, fc, fb, bU, bV, bl) ++ bY(eB, eV, 0, 0)) :+ bQ("lock", dl, eB, bT, fb, bU, bV, aG)) ++ [IntegerEntry(by(), (bN + fe))]) | |
799 | - | } | |
827 | + | let cg = cb(false) | |
828 | + | let fk = cb(true) | |
829 | + | (((cJ(bR, en, ff, fh, fg, cn, co, bn) ++ cr(eG, fa, 0, 0)) :+ cj("lock", bR, eG, cm, fg, cn, co, aI)) ++ [IntegerEntry(bA(), (cg + fj))]) | |
800 | 830 | } | |
801 | 831 | } | |
802 | 832 | else throw("Strict value is not equal to itself.") | |
805 | 835 | ||
806 | 836 | ||
807 | 837 | ||
808 | - | @Callable( | |
809 | - | func claimWxBoost ( | |
838 | + | @Callable(aI) | |
839 | + | func claimWxBoost (bJ,bR) = if ((bU != aI.caller)) | |
810 | 840 | then throw("permissions denied") | |
811 | 841 | else { | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | $Tuple2( | |
842 | + | let fl = ej(bJ, bR, false) | |
843 | + | let fm = fl._1 | |
844 | + | let eB = fl._2 | |
845 | + | let eC = fl._3 | |
846 | + | $Tuple2(eB, [fm]) | |
817 | 847 | } | |
818 | 848 | ||
819 | 849 | ||
820 | 850 | ||
821 | - | @Callable( | |
822 | - | func claimWxBoostREADONLY ( | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | $Tuple2(nil, [ | |
851 | + | @Callable(aI) | |
852 | + | func claimWxBoostREADONLY (bJ,bR) = { | |
853 | + | let fn = ej(bJ, bR, true) | |
854 | + | let fm = fn._1 | |
855 | + | let eB = fn._2 | |
856 | + | let eC = fn._3 | |
857 | + | $Tuple2(nil, [fm, eC]) | |
828 | 858 | } | |
829 | 859 | ||
830 | 860 | ||
831 | 861 | ||
832 | - | @Callable( | |
833 | - | func unlock ( | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | if (( | |
843 | - | then throw((("wait " + toString( | |
844 | - | else if ((0 >= | |
862 | + | @Callable(aI) | |
863 | + | func unlock (aS) = { | |
864 | + | let em = aT(aS) | |
865 | + | let en = em[aL] | |
866 | + | let fb = parseIntValue(em[aM]) | |
867 | + | let cm = parseIntValue(em[aN]) | |
868 | + | let fc = parseIntValue(em[aO]) | |
869 | + | let fd = (cm + fc) | |
870 | + | let eE = aw() | |
871 | + | let az = fromBase58String(eE[aq]) | |
872 | + | if ((fd >= height)) | |
873 | + | then throw((("wait " + toString(fd)) + " to unlock")) | |
874 | + | else if ((0 >= fb)) | |
845 | 875 | then throw("nothing to unlock") | |
846 | 876 | else { | |
847 | - | let | |
848 | - | ((( | |
877 | + | let bn = valueOrElse(getInteger(ax, ao()), 0) | |
878 | + | (((cJ(aS, en, 0, cm, fc, 0, 0, toString(bn)) ++ cr(-(fb), 0, 0, -1)) :+ cj("unlock", aS, fb, cm, fc, 0, 0, aI)) :+ ScriptTransfer(addressFromStringValue(aS), fb, az)) | |
849 | 879 | } | |
850 | 880 | } | |
851 | 881 | ||
852 | 882 | ||
853 | 883 | ||
854 | - | @Callable( | |
855 | - | func gwxUserInfoREADONLY ( | |
856 | - | let | |
857 | - | $Tuple2(nil, [ | |
884 | + | @Callable(aI) | |
885 | + | func gwxUserInfoREADONLY (aS) = { | |
886 | + | let bc = cZ(aS) | |
887 | + | $Tuple2(nil, [bc]) | |
858 | 888 | } | |
859 | 889 | ||
860 | 890 | ||
861 | 891 | ||
862 | - | @Callable( | |
863 | - | func userMaxDurationREADONLY ( | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | if (( | |
868 | - | then $Tuple2(nil, $Tuple2("lock", | |
892 | + | @Callable(aI) | |
893 | + | func userMaxDurationREADONLY (bR) = { | |
894 | + | let eE = aw() | |
895 | + | let aC = parseIntValue(eE[at]) | |
896 | + | let el = getString(this, aR(bR)) | |
897 | + | if ((el == unit)) | |
898 | + | then $Tuple2(nil, $Tuple2("lock", aC)) | |
869 | 899 | else { | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | $Tuple2(nil, $Tuple2("increaseLock", | |
900 | + | let em = split(value(el), a) | |
901 | + | let cm = parseIntValue(em[aN]) | |
902 | + | let fc = parseIntValue(em[aO]) | |
903 | + | let fd = (cm + fc) | |
904 | + | let fe = max([(fd - height), 0]) | |
905 | + | let fo = (aC - fe) | |
906 | + | $Tuple2(nil, $Tuple2("increaseLock", fo)) | |
877 | 907 | } | |
878 | 908 | } | |
879 | 909 | ||
880 | 910 | ||
881 | 911 | ||
882 | - | @Callable( | |
883 | - | func getUserGwxAmountAtHeightREADONLY ( | |
884 | - | let | |
885 | - | $Tuple2(nil, | |
912 | + | @Callable(aI) | |
913 | + | func getUserGwxAmountAtHeightREADONLY (aS,cV) = { | |
914 | + | let bc = cU(aS, cV) | |
915 | + | $Tuple2(nil, bc) | |
886 | 916 | } | |
887 | 917 | ||
888 | 918 | ||
889 | 919 | ||
890 | - | @Callable( | |
891 | - | func getTotalCachedGwxREADONLY () = $Tuple2(nil, | |
920 | + | @Callable(aI) | |
921 | + | func getTotalCachedGwxREADONLY () = $Tuple2(nil, cb(true)) | |
892 | 922 | ||
893 | 923 | ||
894 | 924 | ||
895 | - | @Callable( | |
896 | - | func | |
897 | - | let | |
925 | + | @Callable(aI) | |
926 | + | func onBoostEmissionUpdate () = { | |
927 | + | let eR = if ((aI.caller == bT)) | |
898 | 928 | then true | |
899 | - | else aF(aG) | |
900 | - | if ((eM == eM)) | |
929 | + | else aH(aI) | |
930 | + | if ((eR == eR)) | |
931 | + | then dZ() | |
932 | + | else throw("Strict value is not equal to itself.") | |
933 | + | } | |
934 | + | ||
935 | + | ||
936 | + | ||
937 | + | @Callable(aI) | |
938 | + | func onStakedVoteUpdate (bJ,bR,dL) = { | |
939 | + | let eR = if ((aI.caller == bU)) | |
940 | + | then true | |
941 | + | else aH(aI) | |
942 | + | if ((eR == eR)) | |
901 | 943 | then { | |
902 | - | let | |
903 | - | $Tuple2( | |
944 | + | let dO = dK(bJ, bR, dL) | |
945 | + | $Tuple2(dO, unit) | |
904 | 946 | } | |
905 | 947 | else throw("Strict value is not equal to itself.") | |
906 | 948 | } | |
907 | 949 | ||
908 | 950 | ||
909 | 951 | ||
910 | - | @Callable( | |
911 | - | func getVotingResultStakedREADONLY ( | |
952 | + | @Callable(aI) | |
953 | + | func getVotingResultStakedREADONLY (bJ) = $Tuple2(nil, dp(bJ)) | |
912 | 954 | ||
913 | 955 | ||
914 | 956 | ||
915 | - | @Callable(aG) | |
916 | - | func setManager (fm) = { | |
917 | - | let eM = aF(aG) | |
918 | - | if ((eM == eM)) | |
957 | + | @Callable(aI) | |
958 | + | func getVotingResultStakedIntegralREADONLY (bJ) = $Tuple2(nil, dt(bJ)) | |
959 | + | ||
960 | + | ||
961 | + | ||
962 | + | @Callable(aI) | |
963 | + | func getUserVoteFinalizedREADONLY (bJ,bR) = $Tuple2(nil, di(bJ, bR)) | |
964 | + | ||
965 | + | ||
966 | + | ||
967 | + | @Callable(aI) | |
968 | + | func getUserVoteStakedIntegralREADONLY (bJ,bR) = $Tuple2(nil, dD(bJ, bR)) | |
969 | + | ||
970 | + | ||
971 | + | ||
972 | + | @Callable(aI) | |
973 | + | func setManager (fp) = { | |
974 | + | let eR = aH(aI) | |
975 | + | if ((eR == eR)) | |
919 | 976 | then { | |
920 | - | let | |
921 | - | if (( | |
922 | - | then [StringEntry(ag(), | |
977 | + | let fq = fromBase58String(fp) | |
978 | + | if ((fq == fq)) | |
979 | + | then [StringEntry(ag(), fp)] | |
923 | 980 | else throw("Strict value is not equal to itself.") | |
924 | 981 | } | |
925 | 982 | else throw("Strict value is not equal to itself.") | |
927 | 984 | ||
928 | 985 | ||
929 | 986 | ||
930 | - | @Callable( | |
987 | + | @Callable(aI) | |
931 | 988 | func confirmManager () = { | |
932 | - | let | |
933 | - | let | |
989 | + | let fr = aG() | |
990 | + | let fs = if (isDefined(fr)) | |
934 | 991 | then true | |
935 | 992 | else throw("No pending manager") | |
936 | - | if (( | |
993 | + | if ((fs == fs)) | |
937 | 994 | then { | |
938 | - | let | |
995 | + | let ft = if ((aI.callerPublicKey == value(fr))) | |
939 | 996 | then true | |
940 | 997 | else throw("You are not pending manager") | |
941 | - | if (( | |
942 | - | then [StringEntry(af(), toBase58String(value( | |
998 | + | if ((ft == ft)) | |
999 | + | then [StringEntry(af(), toBase58String(value(fr))), DeleteEntry(ag())] | |
943 | 1000 | else throw("Strict value is not equal to itself.") | |
944 | 1001 | } | |
945 | 1002 | else throw("Strict value is not equal to itself.") | |
946 | 1003 | } | |
947 | 1004 | ||
948 | 1005 | ||
949 | - | @Verifier( | |
950 | - | func | |
951 | - | let | |
952 | - | let r = | |
1006 | + | @Verifier(fu) | |
1007 | + | func fv () = { | |
1008 | + | let fw = { | |
1009 | + | let r = aE() | |
953 | 1010 | if ($isInstanceOf(r, "ByteVector")) | |
954 | 1011 | then { | |
955 | - | let | |
956 | - | | |
1012 | + | let aK = r | |
1013 | + | aK | |
957 | 1014 | } | |
958 | 1015 | else if ($isInstanceOf(r, "Unit")) | |
959 | - | then | |
1016 | + | then fu.senderPublicKey | |
960 | 1017 | else throw("Match error") | |
961 | 1018 | } | |
962 | - | sigVerify( | |
1019 | + | sigVerify(fu.bodyBytes, fu.proofs[0], fw) | |
963 | 1020 | } | |
964 | 1021 |
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 = 8 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | 12 | func e (f) = makeString(["boosting.ride:", f], " ") | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func g (f) = throw(e(f)) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func h (i,j) = valueOrErrorMessage(getString(i, j), (("mandatory this." + j) + " is not defined")) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func k (i,j) = valueOrElse(getInteger(i, j), 0) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func l (i,j,m) = valueOrElse(getInteger(i, j), m) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func n (i,j) = valueOrErrorMessage(getInteger(i, j), (("mandatory this." + j) + " is not defined")) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func o (p) = if ((0 > p)) | |
31 | 31 | then -(p) | |
32 | 32 | else p | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func q (p) = { | |
36 | 36 | let r = p | |
37 | 37 | if ($isInstanceOf(r, "List[Any]")) | |
38 | 38 | then { | |
39 | 39 | let s = r | |
40 | 40 | s | |
41 | 41 | } | |
42 | 42 | else throw("fail to cast into List[Any]") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func t (p) = { | |
47 | 47 | let r = p | |
48 | 48 | if ($isInstanceOf(r, "Int")) | |
49 | 49 | then { | |
50 | 50 | let u = r | |
51 | 51 | u | |
52 | 52 | } | |
53 | 53 | else throw("fail to cast into Int") | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func v () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | let w = addressFromStringValue(h(this, v())) | |
61 | 61 | ||
62 | 62 | let x = makeString(["%s%s", "referral", "programName"], a) | |
63 | 63 | ||
64 | 64 | let y = "wxlock" | |
65 | 65 | ||
66 | 66 | let z = valueOrElse(getString(this, x), y) | |
67 | 67 | ||
68 | 68 | func A () = "%s%s__config__factoryAddress" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | let B = 1 | |
72 | 72 | ||
73 | 73 | let C = 2 | |
74 | 74 | ||
75 | 75 | let D = 3 | |
76 | 76 | ||
77 | 77 | let E = 4 | |
78 | 78 | ||
79 | 79 | let F = 5 | |
80 | 80 | ||
81 | 81 | let G = 6 | |
82 | 82 | ||
83 | 83 | let H = 7 | |
84 | 84 | ||
85 | 85 | let I = 8 | |
86 | 86 | ||
87 | 87 | let J = 9 | |
88 | 88 | ||
89 | 89 | let K = 10 | |
90 | 90 | ||
91 | 91 | let L = 11 | |
92 | 92 | ||
93 | 93 | func M () = "%s__factoryConfig" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func P () = "%s__lpTokensList" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func Q (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func R (S) = makeString(["%s%s", "poolWeight", S], a) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func T (U,V) = ((("%s%s__poolWeight__" + U) + "__") + toString(V)) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func W () = addressFromStringValue(h(this, A())) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func X () = split(valueOrElse(getString(W(), P()), ""), a) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Y (Z) = split(h(Z, M()), a) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aa (ab) = addressFromStringValue(ab[C]) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ac (ab) = addressFromStringValue(ab[F]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ad (ab) = addressFromStringValue(ab[B]) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ae (ab) = addressFromStringValue(ab[K]) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func af () = "%s__managerPublicKey" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ag () = "%s__pendingManagerPublicKey" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ah () = "%s%s__ratePerBlock__current" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ai () = "%s%s__ratePerBlockMax__current" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aj () = "%s%s__emission__startBlock" | |
145 | 145 | ||
146 | 146 | ||
147 | - | func ak () = "%s%s__ | |
147 | + | func ak () = "%s%s__boostingV2__startBlock" | |
148 | 148 | ||
149 | 149 | ||
150 | - | func al () = "%s%s__ | |
150 | + | func al () = "%s%s__boostingV2__integral" | |
151 | 151 | ||
152 | 152 | ||
153 | - | func am () = "%s__ | |
153 | + | func am () = "%s%s__emission__duration" | |
154 | 154 | ||
155 | 155 | ||
156 | - | func an () = "%s%s__ | |
156 | + | func an () = "%s%s__emission__endBlock" | |
157 | 157 | ||
158 | 158 | ||
159 | - | let ao = 1 | |
160 | - | ||
161 | - | let ap = 2 | |
162 | - | ||
163 | - | let aq = 3 | |
164 | - | ||
165 | - | let ar = 4 | |
166 | - | ||
167 | - | let as = 5 | |
168 | - | ||
169 | - | func at () = "%s__config" | |
159 | + | func ao () = "%s__nextPeriod" | |
170 | 160 | ||
171 | 161 | ||
172 | - | func | |
162 | + | func ap () = "%s%s__gwxRewardEmissionPart__startHeight" | |
173 | 163 | ||
174 | 164 | ||
175 | - | let | |
165 | + | let aq = 1 | |
176 | 166 | ||
177 | - | func aw (ax,ay,az,aA,av) = makeString(["%s%d%d%d", ax, ay, az, aA, av], a) | |
167 | + | let ar = 2 | |
168 | + | ||
169 | + | let as = 3 | |
170 | + | ||
171 | + | let at = 4 | |
172 | + | ||
173 | + | let au = 5 | |
174 | + | ||
175 | + | func av () = "%s__config" | |
178 | 176 | ||
179 | 177 | ||
180 | - | func | |
178 | + | func aw () = split(h(this, av()), a) | |
181 | 179 | ||
182 | 180 | ||
183 | - | func aC () = { | |
181 | + | let ax = addressFromStringValue(aw()[au]) | |
182 | + | ||
183 | + | func ay (az,aA,aB,aC,ax) = makeString(["%s%d%d%d", az, aA, aB, aC, ax], a) | |
184 | + | ||
185 | + | ||
186 | + | func aD (az,aA,aB,aC,ax) = ay(az, toString(aA), toString(aB), toString(aC), ax) | |
187 | + | ||
188 | + | ||
189 | + | func aE () = { | |
184 | 190 | let r = getString(af()) | |
185 | 191 | if ($isInstanceOf(r, "String")) | |
186 | 192 | then { | |
187 | - | let | |
188 | - | fromBase58String( | |
193 | + | let aF = r | |
194 | + | fromBase58String(aF) | |
189 | 195 | } | |
190 | 196 | else if ($isInstanceOf(r, "Unit")) | |
191 | 197 | then unit | |
192 | 198 | else throw("Match error") | |
193 | 199 | } | |
194 | 200 | ||
195 | 201 | ||
196 | - | func | |
202 | + | func aG () = { | |
197 | 203 | let r = getString(ag()) | |
198 | 204 | if ($isInstanceOf(r, "String")) | |
199 | 205 | then { | |
200 | - | let | |
201 | - | fromBase58String( | |
206 | + | let aF = r | |
207 | + | fromBase58String(aF) | |
202 | 208 | } | |
203 | 209 | else if ($isInstanceOf(r, "Unit")) | |
204 | 210 | then unit | |
205 | 211 | else throw("Match error") | |
206 | 212 | } | |
207 | 213 | ||
208 | 214 | ||
209 | - | func | |
210 | - | let | |
211 | - | let r = | |
215 | + | func aH (aI) = { | |
216 | + | let aJ = throw("Permission denied") | |
217 | + | let r = aE() | |
212 | 218 | if ($isInstanceOf(r, "ByteVector")) | |
213 | 219 | then { | |
214 | - | let | |
215 | - | if (( | |
220 | + | let aK = r | |
221 | + | if ((aI.callerPublicKey == aK)) | |
216 | 222 | then true | |
217 | - | else | |
223 | + | else aJ | |
218 | 224 | } | |
219 | 225 | else if ($isInstanceOf(r, "Unit")) | |
220 | - | then if (( | |
226 | + | then if ((aI.caller == this)) | |
221 | 227 | then true | |
222 | - | else | |
228 | + | else aJ | |
223 | 229 | else throw("Match error") | |
224 | 230 | } | |
225 | 231 | ||
226 | 232 | ||
227 | - | let | |
233 | + | let aL = 1 | |
228 | 234 | ||
229 | - | let | |
235 | + | let aM = 2 | |
230 | 236 | ||
231 | - | let | |
237 | + | let aN = 3 | |
232 | 238 | ||
233 | - | let | |
239 | + | let aO = 4 | |
234 | 240 | ||
235 | - | let | |
241 | + | let aP = 5 | |
236 | 242 | ||
237 | - | let | |
243 | + | let aQ = 6 | |
238 | 244 | ||
239 | - | func | |
245 | + | func aR (aS) = makeString(["%s%s__lock", aS], a) | |
240 | 246 | ||
241 | 247 | ||
242 | - | func | |
248 | + | func aT (aS) = split(h(this, aR(aS)), a) | |
243 | 249 | ||
244 | 250 | ||
245 | - | func | |
251 | + | func aU (aV,aW,aX,aY,aZ,ba,bb,bc) = makeString(["%d%d%d%d%d%d%d%d", aV, aW, aX, aY, aZ, ba, bb, bc], a) | |
246 | 252 | ||
247 | 253 | ||
248 | - | func | |
254 | + | func bd (aV,aW,aX,aY,aZ,ba,bc) = aU(aV, toString(aW), toString(aX), toString(aY), toString(aZ), toString(ba), toString(lastBlock.timestamp), toString(bc)) | |
249 | 255 | ||
250 | 256 | ||
251 | - | func | |
257 | + | func be () = "%s__nextUserNum" | |
252 | 258 | ||
253 | 259 | ||
254 | - | func | |
260 | + | func bf (aS) = makeString(["%s%s%s__mapping__user2num", aS], a) | |
255 | 261 | ||
256 | 262 | ||
257 | - | func | |
263 | + | func bg (V) = makeString(["%s%s%s__mapping__num2user", V], a) | |
258 | 264 | ||
259 | 265 | ||
260 | - | func | |
266 | + | func bh (aV) = makeString(["%s%d%s__paramByUserNum", aV, "amount"], a) | |
261 | 267 | ||
262 | 268 | ||
263 | - | func | |
269 | + | func bi (aV) = makeString(["%s%d%s__paramByUserNum", aV, "start"], a) | |
264 | 270 | ||
265 | 271 | ||
266 | - | func | |
272 | + | func bj (aV) = makeString(["%s%d%s__paramByUserNum", aV, "duration"], a) | |
267 | 273 | ||
268 | 274 | ||
269 | - | func | |
275 | + | func bk (aV) = makeString(["%s%d%s__paramByUserNum", aV, "k"], a) | |
270 | 276 | ||
271 | 277 | ||
272 | - | func | |
278 | + | func bl (aV) = makeString(["%s%d%s__paramByUserNum", aV, "b"], a) | |
273 | 279 | ||
274 | 280 | ||
275 | - | func | |
281 | + | func bm (aV,bn) = makeString(["%s%d%s%d__paramByPeriod", aV, "k", bn], a) | |
276 | 282 | ||
277 | 283 | ||
278 | - | func | |
284 | + | func bo (aV,bn) = makeString(["%s%d%s%d__paramByPeriod", aV, "b", bn], a) | |
279 | 285 | ||
280 | 286 | ||
281 | - | func | |
287 | + | func bp () = "%s%s__stats__activeTotalLocked" | |
282 | 288 | ||
283 | 289 | ||
284 | - | func | |
290 | + | func bq () = "%s%s__stats__locksDurationSumInBlocks" | |
285 | 291 | ||
286 | 292 | ||
287 | - | func | |
293 | + | func br () = "%s%s__stats__locksCount" | |
288 | 294 | ||
289 | 295 | ||
290 | - | func | |
296 | + | func bs () = "%s%s__stats__activeUsersCount" | |
291 | 297 | ||
292 | 298 | ||
293 | - | func | |
299 | + | func bt (aV) = makeString(["%s%d__userBoostEmissionLastIntV2", aV], a) | |
294 | 300 | ||
295 | 301 | ||
296 | - | func | |
302 | + | func bu (aV,bv) = makeString(["%s%d__userBoostEmissionLastIntV2", aV, bv], a) | |
297 | 303 | ||
298 | 304 | ||
299 | - | func | |
305 | + | func bw (aV) = makeString(["%s%d__maxBoostInt", aV], a) | |
300 | 306 | ||
301 | 307 | ||
302 | - | func | |
308 | + | func bx () = "%s%s__maxBoostInt__total" | |
303 | 309 | ||
304 | 310 | ||
305 | - | func | |
311 | + | func by (aV) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aV], a) | |
306 | 312 | ||
307 | 313 | ||
308 | - | func | |
314 | + | func bz (aV) = makeString(["%s%d__userBoostClaimed", aV], a) | |
309 | 315 | ||
310 | 316 | ||
311 | - | func | |
317 | + | func bA () = "%s%s__gwxCached__total" | |
312 | 318 | ||
313 | 319 | ||
314 | - | func | |
320 | + | func bB () = "%s__gwxCachedTotalCorrective" | |
315 | 321 | ||
316 | 322 | ||
317 | - | ||
323 | + | func bC (bD,bE,i,bF) = makeString(["%s%s%s%s%d", "vote", bD, bE, toString(i), toString(bF)], a) | |
318 | 324 | ||
319 | - | let ab = Y(bA) | |
320 | 325 | ||
321 | - | ||
326 | + | func bG (bF) = makeString(["%s%d", "startHeight", toString(bF)], a) | |
322 | 327 | ||
323 | - | let bC = ad(ab) | |
324 | 328 | ||
325 | - | ||
329 | + | func bH () = makeString(["%s", "currentEpochUi"], a) | |
326 | 330 | ||
327 | - | let bE = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), e("lp_staking_pools contract address is undefined"))), e("invalid lp_staking_pools contract address")) | |
328 | 331 | ||
329 | - | ||
332 | + | func bI (bJ,bF) = makeString(["%s%s%d", "votingResultStaked", bJ, toString(bF)], a) | |
330 | 333 | ||
331 | - | let bG = addressFromStringValue(getStringValue(bA, bF)) | |
332 | 334 | ||
333 | - | func bH (bI) = { | |
334 | - | let bJ = makeString(["%s", "currentEpochUi"], a) | |
335 | - | let bK = getIntegerValue(bG, bJ) | |
336 | - | let bL = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
337 | - | let bM = getInteger(this, bL) | |
338 | - | let bN = valueOrElse(getInteger(this, by()), 0) | |
339 | - | let bO = if (isDefined(bM)) | |
340 | - | then (bK >= value(bM)) | |
335 | + | func bK (bJ,bF) = makeString(["%s%s%d", "votingResultStakedIntegral", bJ, toString(bF)], a) | |
336 | + | ||
337 | + | ||
338 | + | func bL (bJ,bF) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bJ, toString(bF)], a) | |
339 | + | ||
340 | + | ||
341 | + | func bM (bJ,i,bF) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bJ, toString(i), toString(bF)], a) | |
342 | + | ||
343 | + | ||
344 | + | func bN (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegral", bJ, toString(i), toString(bF)], a) | |
345 | + | ||
346 | + | ||
347 | + | func bO (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bJ, toString(i), toString(bF)], a) | |
348 | + | ||
349 | + | ||
350 | + | func bP (bJ,i,bF) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bJ, toString(i), toString(bF)], a) | |
351 | + | ||
352 | + | ||
353 | + | func bQ (bR,bJ) = makeString(["%s%s%s", "staked", bR, bJ], a) | |
354 | + | ||
355 | + | ||
356 | + | let bS = W() | |
357 | + | ||
358 | + | let ab = Y(bS) | |
359 | + | ||
360 | + | let bT = ac(ab) | |
361 | + | ||
362 | + | let bU = ad(ab) | |
363 | + | ||
364 | + | let bV = ae(ab) | |
365 | + | ||
366 | + | let bW = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), e("lp_staking_pools contract address is undefined"))), e("invalid lp_staking_pools contract address")) | |
367 | + | ||
368 | + | let bX = makeString(["%s", "votingEmissionContract"], a) | |
369 | + | ||
370 | + | let bY = addressFromStringValue(getStringValue(bS, bX)) | |
371 | + | ||
372 | + | let bZ = { | |
373 | + | let ca = invoke(bT, "getBoostCoeffREADONLY", nil, nil) | |
374 | + | if ($isInstanceOf(ca, "Int")) | |
375 | + | then ca | |
376 | + | else throw(($getType(ca) + " couldn't be cast to Int")) | |
377 | + | } | |
378 | + | ||
379 | + | func cb (cc) = { | |
380 | + | let cd = getIntegerValue(bY, bH()) | |
381 | + | let ce = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
382 | + | let cf = getInteger(this, ce) | |
383 | + | let cg = valueOrElse(getInteger(this, bA()), 0) | |
384 | + | let ch = if (isDefined(cf)) | |
385 | + | then (cd >= value(cf)) | |
341 | 386 | else false | |
342 | - | let | |
343 | - | then | |
387 | + | let ci = if (if (ch) | |
388 | + | then cc | |
344 | 389 | else false) | |
345 | - | then valueOrElse(getInteger(this, | |
390 | + | then valueOrElse(getInteger(this, bB()), 0) | |
346 | 391 | else 0 | |
347 | - | max([0, ( | |
392 | + | max([0, (cg + ci)]) | |
348 | 393 | } | |
349 | 394 | ||
350 | 395 | ||
351 | - | func | |
352 | - | let | |
353 | - | let | |
354 | - | StringEntry( | |
396 | + | func cj (ck,cl,aW,cm,aY,cn,co,aI) = { | |
397 | + | let cp = makeString(["%s%s%s%s__history", ck, cl, toBase58String(aI.transactionId)], a) | |
398 | + | let cq = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aW), toString(cm), toString(aY), toString(cn), toString(co)], a) | |
399 | + | StringEntry(cp, cq) | |
355 | 400 | } | |
356 | 401 | ||
357 | 402 | ||
358 | - | func | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | [IntegerEntry( | |
403 | + | func cr (cs,ct,cu,cv) = { | |
404 | + | let cw = bq() | |
405 | + | let cx = br() | |
406 | + | let cy = bs() | |
407 | + | let cz = bp() | |
408 | + | let cA = k(this, cw) | |
409 | + | let cB = k(this, cx) | |
410 | + | let cC = k(this, cy) | |
411 | + | let cD = k(this, cz) | |
412 | + | [IntegerEntry(cw, (cA + ct)), IntegerEntry(cx, (cB + cu)), IntegerEntry(cy, (cC + cv)), IntegerEntry(cz, (cD + cs))] | |
368 | 413 | } | |
369 | 414 | ||
370 | 415 | ||
371 | - | func | |
372 | - | let | |
373 | - | ((( | |
416 | + | func cE (cF,cG,cH) = { | |
417 | + | let cI = 1000 | |
418 | + | (((cF * cH) + cG) / cI) | |
374 | 419 | } | |
375 | 420 | ||
376 | 421 | ||
377 | - | func | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | [IntegerEntry( | |
422 | + | func cJ (aS,aV,aW,aX,aY,cn,co,bn) = { | |
423 | + | let cK = bh(aV) | |
424 | + | let cL = bi(aV) | |
425 | + | let cM = bj(aV) | |
426 | + | let cN = bk(aV) | |
427 | + | let cO = bl(aV) | |
428 | + | let cP = bm(aV, bn) | |
429 | + | let cQ = bo(aV, bn) | |
430 | + | let bc = cE(cn, co, height) | |
431 | + | [IntegerEntry(cK, aW), IntegerEntry(cL, aX), IntegerEntry(cM, aY), IntegerEntry(cN, cn), IntegerEntry(cO, co), IntegerEntry(cP, cn), IntegerEntry(cQ, co), StringEntry(aR(aS), bd(aV, aW, aX, aY, cn, co, bc))] | |
387 | 432 | } | |
388 | 433 | ||
389 | 434 | ||
390 | - | func | |
435 | + | func cR (aI,cS) = if ((size(aI.payments) > 1)) | |
391 | 436 | then throw("only one payment is allowed") | |
392 | - | else if ((size( | |
437 | + | else if ((size(aI.payments) == 0)) | |
393 | 438 | then 0 | |
394 | 439 | else { | |
395 | - | let | |
396 | - | if ((value( | |
440 | + | let cT = aI.payments[0] | |
441 | + | if ((value(cT.assetId) != cS)) | |
397 | 442 | then throw("invalid asset id in payment") | |
398 | - | else | |
443 | + | else cT.amount | |
399 | 444 | } | |
400 | 445 | ||
401 | 446 | ||
402 | - | func | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
447 | + | func cU (aS,cV) = { | |
448 | + | let cW = "empty" | |
449 | + | let cX = bf(aS) | |
450 | + | let aV = valueOrElse(getString(cX), cW) | |
451 | + | let cn = valueOrElse(getInteger(bk(aV)), 0) | |
452 | + | let co = valueOrElse(getInteger(bl(aV)), 0) | |
453 | + | let cY = cE(cn, co, cV) | |
454 | + | let bc = if ((0 > cY)) | |
410 | 455 | then 0 | |
411 | - | else | |
412 | - | | |
456 | + | else cY | |
457 | + | bc | |
413 | 458 | } | |
414 | 459 | ||
415 | 460 | ||
416 | - | func | |
461 | + | func cZ (aS) = cU(aS, height) | |
417 | 462 | ||
418 | 463 | ||
419 | - | func cH () = { | |
420 | - | let bJ = makeString(["%s", "currentEpochUi"], a) | |
421 | - | let cI = { | |
422 | - | let bK = value(getInteger(bG, bJ)) | |
423 | - | let cJ = (bK - 1) | |
424 | - | if ((0 > cJ)) | |
464 | + | func da () = { | |
465 | + | let db = { | |
466 | + | let cd = value(getInteger(bY, bH())) | |
467 | + | let dc = (cd - 1) | |
468 | + | if ((0 > dc)) | |
425 | 469 | then g("invalid epoch") | |
426 | - | else $Tuple2( | |
470 | + | else $Tuple2(cd, dc) | |
427 | 471 | } | |
428 | - | let bK = cI._1 | |
429 | - | let cJ = cI._2 | |
430 | - | func cK (cL) = makeString(["%s%d", "startHeight", toString(cL)], a) | |
431 | - | ||
432 | - | let cM = value(getInteger(bG, cK(bK))) | |
433 | - | $Tuple2(cJ, cM) | |
472 | + | let cd = db._1 | |
473 | + | let dc = db._2 | |
474 | + | let dd = value(getInteger(bY, bG(cd))) | |
475 | + | $Tuple2(dc, dd) | |
434 | 476 | } | |
435 | 477 | ||
436 | 478 | ||
437 | - | func cN (cO,cP,i,cL) = makeString(["%s%s%s%s%d", "vote", cO, cP, toString(i), toString(cL)], a) | |
438 | - | ||
439 | - | ||
440 | - | func cQ (cR,cL) = makeString(["%s%s%d", "votingResultStaked", cR, toString(cL)], a) | |
441 | - | ||
442 | - | ||
443 | - | func cS (cR,cL) = makeString(["%s%s%d", "votingResultStakedIntegral", cR, toString(cL)], a) | |
444 | - | ||
445 | - | ||
446 | - | func cT (cR,cL) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", cR, toString(cL)], a) | |
447 | - | ||
448 | - | ||
449 | - | func cU (cR,i,cL) = makeString(["%s%s%s%d", "voteStakedIntegral", cR, toString(i), toString(cL)], a) | |
450 | - | ||
451 | - | ||
452 | - | func cV (cR,i,cL) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", cR, toString(i), toString(cL)], a) | |
453 | - | ||
454 | - | ||
455 | - | func cW (cR) = { | |
456 | - | let cX = cH() | |
457 | - | let cJ = cX._1 | |
458 | - | let cM = cX._2 | |
459 | - | let cY = valueOrElse(getInteger(bG, cQ(cR, cJ)), 0) | |
460 | - | let cZ = valueOrElse(getInteger(this, cQ(cR, cJ)), cY) | |
461 | - | cZ | |
479 | + | func de (bJ) = { | |
480 | + | let df = 4 | |
481 | + | let dg = 5 | |
482 | + | let dh = { | |
483 | + | let ca = invoke(bS, "getPoolConfigByLpAssetIdREADONLY", [bJ], nil) | |
484 | + | if ($isInstanceOf(ca, "List[Any]")) | |
485 | + | then ca | |
486 | + | else throw(($getType(ca) + " couldn't be cast to List[Any]")) | |
487 | + | } | |
488 | + | let bD = { | |
489 | + | let ca = dh[df] | |
490 | + | if ($isInstanceOf(ca, "String")) | |
491 | + | then ca | |
492 | + | else throw(($getType(ca) + " couldn't be cast to String")) | |
493 | + | } | |
494 | + | let bE = { | |
495 | + | let ca = dh[dg] | |
496 | + | if ($isInstanceOf(ca, "String")) | |
497 | + | then ca | |
498 | + | else throw(($getType(ca) + " couldn't be cast to String")) | |
499 | + | } | |
500 | + | $Tuple2(bD, bE) | |
462 | 501 | } | |
463 | 502 | ||
464 | 503 | ||
465 | - | func da (cR,db) = { | |
466 | - | let dc = cH() | |
467 | - | let cJ = dc._1 | |
468 | - | let cM = dc._2 | |
469 | - | let cZ = cW(cR) | |
470 | - | let dd = (cZ + db) | |
471 | - | let de = cS(cR, cJ) | |
472 | - | let df = valueOrElse(getInteger(this, de), 0) | |
473 | - | let dg = cT(cR, cJ) | |
474 | - | let dh = valueOrElse(getInteger(this, dg), cM) | |
475 | - | let di = (height - dh) | |
476 | - | let dj = ((di * cZ) + df) | |
477 | - | $Tuple2([IntegerEntry(cQ(cR, cJ), dd), IntegerEntry(dg, height), IntegerEntry(de, dj)], dj) | |
504 | + | func di (bJ,bR) = { | |
505 | + | let aS = addressFromStringValue(bR) | |
506 | + | let dj = da() | |
507 | + | let dc = dj._1 | |
508 | + | let dd = dj._2 | |
509 | + | let dk = de(bJ) | |
510 | + | let bD = dk._1 | |
511 | + | let bE = dk._2 | |
512 | + | let dl = bC(bD, bE, aS, dc) | |
513 | + | let dm = valueOrElse(getInteger(bY, dl), 0) | |
514 | + | dm | |
478 | 515 | } | |
479 | 516 | ||
480 | 517 | ||
481 | - | func dk (cR,dl,dm) = { | |
482 | - | let dn = cH() | |
483 | - | let cJ = dn._1 | |
484 | - | let cM = dn._2 | |
485 | - | let aQ = addressFromStringValue(dl) | |
486 | - | let do = 4 | |
487 | - | let dp = 5 | |
488 | - | let dq = { | |
489 | - | let dr = invoke(bA, "getPoolConfigByLpAssetId", [cR], nil) | |
490 | - | if ($isInstanceOf(dr, "List[Any]")) | |
491 | - | then dr | |
492 | - | else throw(($getType(dr) + " couldn't be cast to List[Any]")) | |
493 | - | } | |
494 | - | let cO = { | |
495 | - | let dr = dq[do] | |
496 | - | if ($isInstanceOf(dr, "String")) | |
497 | - | then dr | |
498 | - | else throw(($getType(dr) + " couldn't be cast to String")) | |
499 | - | } | |
500 | - | let cP = { | |
501 | - | let dr = dq[dp] | |
502 | - | if ($isInstanceOf(dr, "String")) | |
503 | - | then dr | |
504 | - | else throw(($getType(dr) + " couldn't be cast to String")) | |
505 | - | } | |
506 | - | let ds = valueOrElse(getInteger(bG, cN(cO, cP, aQ, cJ)), 0) | |
507 | - | let dt = if ((ds == 0)) | |
508 | - | then nil | |
509 | - | else { | |
510 | - | let db = if (dm) | |
511 | - | then ds | |
512 | - | else -(ds) | |
513 | - | let du = da(cR, db) | |
514 | - | let dv = du._1 | |
515 | - | let dj = du._2 | |
516 | - | let dw = if (dm) | |
517 | - | then 0 | |
518 | - | else ds | |
519 | - | let dx = cU(cR, aQ, cJ) | |
520 | - | let dy = valueOrElse(getInteger(this, dx), 0) | |
521 | - | let dz = cV(cR, aQ, cJ) | |
522 | - | let dA = valueOrElse(getInteger(this, dz), cM) | |
523 | - | let dB = (height - dA) | |
524 | - | let dC = ((dB * dw) + dy) | |
525 | - | let dD = [IntegerEntry(dz, height), IntegerEntry(dx, dC)] | |
526 | - | (dv ++ dD) | |
527 | - | } | |
528 | - | dt | |
518 | + | func dn (bJ,bR) = { | |
519 | + | let do = valueOrElse(getInteger(bU, bQ(bR, bJ)), 0) | |
520 | + | let dm = di(bJ, bR) | |
521 | + | if ((do == 0)) | |
522 | + | then 0 | |
523 | + | else dm | |
529 | 524 | } | |
530 | 525 | ||
531 | 526 | ||
532 | - | func dE (cR,dl,dF) = { | |
533 | - | let cD = "EMPTY" | |
534 | - | let dG = valueOrElse(getString(this, aP(dl)), cD) | |
535 | - | if ((dG == cD)) | |
527 | + | func dp (bJ) = { | |
528 | + | let dq = da() | |
529 | + | let dc = dq._1 | |
530 | + | let dd = dq._2 | |
531 | + | let dr = valueOrElse(getInteger(bY, bI(bJ, dc)), 0) | |
532 | + | let ds = valueOrElse(getInteger(this, bI(bJ, dc)), dr) | |
533 | + | ds | |
534 | + | } | |
535 | + | ||
536 | + | ||
537 | + | func dt (bJ) = { | |
538 | + | let du = da() | |
539 | + | let dc = du._1 | |
540 | + | let dd = du._2 | |
541 | + | let ds = dp(bJ) | |
542 | + | let dv = valueOrElse(getInteger(this, bK(bJ, dc)), 0) | |
543 | + | let dw = valueOrElse(getInteger(this, bL(bJ, dc)), dd) | |
544 | + | let dx = (height - dw) | |
545 | + | let dy = ((dx * ds) + dv) | |
546 | + | dy | |
547 | + | } | |
548 | + | ||
549 | + | ||
550 | + | func dz (bJ,dA) = { | |
551 | + | let dB = da() | |
552 | + | let dc = dB._1 | |
553 | + | let dd = dB._2 | |
554 | + | let ds = dp(bJ) | |
555 | + | let dC = (ds + dA) | |
556 | + | let dy = dt(bJ) | |
557 | + | [IntegerEntry(bI(bJ, dc), dC), IntegerEntry(bL(bJ, dc), height), IntegerEntry(bK(bJ, dc), dy)] | |
558 | + | } | |
559 | + | ||
560 | + | ||
561 | + | func dD (bJ,bR) = { | |
562 | + | let dE = da() | |
563 | + | let dc = dE._1 | |
564 | + | let dd = dE._2 | |
565 | + | let aS = addressFromStringValue(bR) | |
566 | + | let dF = dn(bJ, bR) | |
567 | + | let dG = valueOrElse(getInteger(this, bN(bJ, aS, dc)), 0) | |
568 | + | let dH = valueOrElse(getInteger(this, bO(bJ, aS, dc)), dd) | |
569 | + | let dI = (height - dH) | |
570 | + | let dJ = ((dI * dF) + dG) | |
571 | + | dJ | |
572 | + | } | |
573 | + | ||
574 | + | ||
575 | + | func dK (bJ,bR,dL) = { | |
576 | + | let dM = da() | |
577 | + | let dc = dM._1 | |
578 | + | let dd = dM._2 | |
579 | + | let aS = addressFromStringValue(bR) | |
580 | + | let dN = di(bJ, bR) | |
581 | + | let dO = if ((dN == 0)) | |
582 | + | then nil | |
583 | + | else { | |
584 | + | let dA = if (dL) | |
585 | + | then dN | |
586 | + | else -(dN) | |
587 | + | let dP = dz(bJ, dA) | |
588 | + | let dJ = dD(bJ, bR) | |
589 | + | let dQ = [IntegerEntry(bO(bJ, aS, dc), height), IntegerEntry(bN(bJ, aS, dc), dJ)] | |
590 | + | (dP ++ dQ) | |
591 | + | } | |
592 | + | dO | |
593 | + | } | |
594 | + | ||
595 | + | ||
596 | + | func dR (bJ,bR) = { | |
597 | + | let dS = da() | |
598 | + | let dc = dS._1 | |
599 | + | let dd = dS._2 | |
600 | + | let aS = addressFromStringValue(bR) | |
601 | + | let dT = bP(bJ, aS, dc) | |
602 | + | let dU = valueOrElse(getInteger(this, dT), 0) | |
603 | + | let dV = bM(bJ, aS, dc) | |
604 | + | let dW = valueOrElse(getInteger(this, dV), 0) | |
605 | + | let dJ = dD(bJ, bR) | |
606 | + | let dy = dt(bJ) | |
607 | + | let dX = (dJ - dU) | |
608 | + | let dY = (dy - dW) | |
609 | + | $Tuple3([IntegerEntry(dT, dJ), IntegerEntry(dV, dy)], dX, dY) | |
610 | + | } | |
611 | + | ||
612 | + | ||
613 | + | func dZ () = { | |
614 | + | let ea = n(bT, ah()) | |
615 | + | let eb = getInteger(bT, ak()) | |
616 | + | let ec = getInteger(this, al()) | |
617 | + | let ed = n(bT, an()) | |
618 | + | let cH = if ((height > ed)) | |
619 | + | then ed | |
620 | + | else height | |
621 | + | let ee = { | |
622 | + | let r = eb | |
623 | + | if ($isInstanceOf(r, "Int")) | |
624 | + | then { | |
625 | + | let ef = r | |
626 | + | max([(cH - ef), 0]) | |
627 | + | } | |
628 | + | else if ($isInstanceOf(r, "Unit")) | |
629 | + | then 0 | |
630 | + | else throw("Match error") | |
631 | + | } | |
632 | + | let eg = ((ea * (bZ - 1)) / bZ) | |
633 | + | let eh = valueOrElse(ec, 0) | |
634 | + | let ei = ((eg * ee) + eh) | |
635 | + | $Tuple2([IntegerEntry(al(), ei), IntegerEntry(ak(), height)], ei) | |
636 | + | } | |
637 | + | ||
638 | + | ||
639 | + | func ej (bJ,bR,ek) = { | |
640 | + | let el = getString(this, aR(bR)) | |
641 | + | if ((el == unit)) | |
536 | 642 | then $Tuple3(0, nil, "userRecord::is::empty") | |
537 | 643 | else { | |
538 | - | let dH = split(dG, a) | |
539 | - | let dI = dH[aJ] | |
540 | - | let dJ = valueOrElse(getInteger(bD, an()), 0) | |
541 | - | let dK = "empty" | |
542 | - | let dL = if ((cR != dK)) | |
644 | + | let em = split(value(el), a) | |
645 | + | let en = em[aL] | |
646 | + | let eo = "empty" | |
647 | + | let ep = if ((bJ != eo)) | |
543 | 648 | then { | |
544 | - | let dM = valueOrErrorMessage(getString(bA, N(cR)), ("unsupported lp asset " + cR)) | |
545 | - | let dN = getIntegerValue(bA, R(dM)) | |
546 | - | let dO = valueOrElse(getInteger(bA, T(dM, 0)), dN) | |
547 | - | $Tuple2(dO, dN) | |
649 | + | let eq = valueOrErrorMessage(getString(bS, N(bJ)), ("unsupported lp asset " + bJ)) | |
650 | + | getIntegerValue(bS, R(eq)) | |
548 | 651 | } | |
549 | - | else if (dF) | |
550 | - | then $Tuple2(0, 0) | |
551 | - | else throw(("not readonly mode: unsupported lp asset " + cR)) | |
552 | - | let dP = dL._1 | |
553 | - | let dQ = dL._2 | |
554 | - | let dR = n(bB, ah()) | |
555 | - | let dS = n(bB, aj()) | |
556 | - | let dT = n(bB, al()) | |
557 | - | let co = if ((height > dT)) | |
558 | - | then dT | |
559 | - | else height | |
560 | - | let dU = max([(co - dS), 0]) | |
561 | - | let dV = bs(dI, cR) | |
562 | - | let dW = br(dI) | |
563 | - | let dX = valueOrElse(getInteger(this, dV), k(this, dW)) | |
564 | - | let dY = (((dR * dU) * 2) / 3) | |
565 | - | let dZ = (dY - dX) | |
566 | - | let ea = fraction(dZ, 3, (2 * dR)) | |
567 | - | let eb = (co - ea) | |
568 | - | let ec = max([(dJ - eb), 0]) | |
569 | - | let ed = ((co - eb) - ec) | |
570 | - | if (if (if ((0 > eb)) | |
571 | - | then true | |
572 | - | else (0 > ed)) | |
573 | - | then true | |
574 | - | else (o(((ec + ed) - ea)) >= 1)) | |
575 | - | then throw(((((((((((("invalid udh calc: udh=" + toString(ea)) + " uLastH=") + toString(eb)) + " udh0=") + toString(ec)) + " udh1=") + toString(ed)) + " lpAssetId=") + cR) + " userAddress=") + dl)) | |
576 | - | else if ((0 > dZ)) | |
577 | - | then throw("wrong calculations") | |
578 | - | else { | |
579 | - | let ee = bu(dI) | |
580 | - | let ef = bv() | |
581 | - | let eg = k(this, ee) | |
582 | - | let eh = k(this, ef) | |
583 | - | let ei = bH(true) | |
584 | - | let ej = cG(dl) | |
585 | - | let ek = bw(dI) | |
586 | - | let el = k(this, ek) | |
587 | - | let em = if ((ea == 0)) | |
588 | - | then 0 | |
589 | - | else fraction(dZ, ec, ea) | |
590 | - | let en = if ((ea == 0)) | |
591 | - | then 0 | |
592 | - | else fraction(dZ, ed, ea) | |
593 | - | let eo = fraction(em, dP, d) | |
594 | - | let ep = fraction(en, dQ, d) | |
595 | - | let eq = if ((ei == 0)) | |
596 | - | then 0 | |
597 | - | else fraction(eo, ej, ei) | |
598 | - | let er = if ((ei == 0)) | |
599 | - | then 0 | |
600 | - | else fraction(ep, ej, ei) | |
601 | - | let es = (eq + er) | |
602 | - | let et = bx(dI) | |
603 | - | let eu = k(this, et) | |
604 | - | let ev = (es - eu) | |
605 | - | let ew = [IntegerEntry(dV, dY)] | |
606 | - | let ex = makeString([toString(dX), toString(dZ), toString(eu), toString(ev), toString(dP), toString(dQ), toString(co), toString(ea), toString(eb), toString(ec), toString(ed), toString(ej), toString(ei)], ":") | |
607 | - | $Tuple3(es, ew, ex) | |
608 | - | } | |
652 | + | else if (ek) | |
653 | + | then 0 | |
654 | + | else throw(("not readonly mode: unsupported lp asset " + bJ)) | |
655 | + | let er = bu(en, bJ) | |
656 | + | let es = bt(en) | |
657 | + | let et = valueOrElse(getInteger(this, er), k(this, es)) | |
658 | + | let ei = dZ()._2 | |
659 | + | let eu = (ei - et) | |
660 | + | if ((0 > eu)) | |
661 | + | then throw("wrong calculations") | |
662 | + | else { | |
663 | + | let ev = dR(bJ, bR) | |
664 | + | let ew = ev._1 | |
665 | + | let ex = ev._2 | |
666 | + | let ey = ev._3 | |
667 | + | let ez = fraction(eu, ep, d) | |
668 | + | let eA = if ((ey == 0)) | |
669 | + | then 0 | |
670 | + | else fraction(ez, ex, ey) | |
671 | + | let eB = ([IntegerEntry(er, ei)] ++ ew) | |
672 | + | let eC = makeString([toString(et), toString(eu), toString(ep), toString(ex), toString(ey)], ":") | |
673 | + | $Tuple3(eA, eB, eC) | |
674 | + | } | |
609 | 675 | } | |
610 | 676 | } | |
611 | 677 | ||
612 | 678 | ||
613 | - | func | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | if ((size( | |
679 | + | func eD (aI,aY) = { | |
680 | + | let eE = aw() | |
681 | + | let eF = eE[aq] | |
682 | + | let az = fromBase58String(eF) | |
683 | + | let aA = parseIntValue(eE[ar]) | |
684 | + | let aB = parseIntValue(eE[as]) | |
685 | + | let aC = parseIntValue(eE[at]) | |
686 | + | if ((size(aI.payments) != 1)) | |
621 | 687 | then throw("invalid payment - exact one payment must be attached") | |
622 | 688 | else { | |
623 | - | let | |
624 | - | let | |
625 | - | if (( | |
626 | - | then throw((("invalid asset is in payment - " + | |
689 | + | let cT = aI.payments[0] | |
690 | + | let eG = cT.amount | |
691 | + | if ((az != value(cT.assetId))) | |
692 | + | then throw((("invalid asset is in payment - " + eF) + " is expected")) | |
627 | 693 | else { | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | then value(getString( | |
633 | - | else toString(n(this, | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | if (if (( | |
640 | - | then ( | |
694 | + | let eH = be() | |
695 | + | let bR = toString(aI.caller) | |
696 | + | let eI = isDefined(getString(bf(bR))) | |
697 | + | let en = if (eI) | |
698 | + | then value(getString(bf(bR))) | |
699 | + | else toString(n(this, eH)) | |
700 | + | let aV = parseIntValue(en) | |
701 | + | let cm = height | |
702 | + | let cL = bi(en) | |
703 | + | let cM = bj(en) | |
704 | + | let cK = bh(en) | |
705 | + | if (if ((aA > eG)) | |
706 | + | then (aI.caller != bW) | |
641 | 707 | else false) | |
642 | - | then throw(("amount is less then minLockAmount=" + toString( | |
643 | - | else if (( | |
644 | - | then throw(("passed duration is less then minLockDuration=" + toString( | |
645 | - | else if (( | |
646 | - | then throw(("passed duration is greater then maxLockDuration=" + toString( | |
647 | - | else if (if ( | |
648 | - | then ((n(this, | |
708 | + | then throw(("amount is less then minLockAmount=" + toString(aA))) | |
709 | + | else if ((aB > aY)) | |
710 | + | then throw(("passed duration is less then minLockDuration=" + toString(aB))) | |
711 | + | else if ((aY > aC)) | |
712 | + | then throw(("passed duration is greater then maxLockDuration=" + toString(aC))) | |
713 | + | else if (if (eI) | |
714 | + | then ((n(this, cL) + n(this, cM)) >= cm) | |
649 | 715 | else false) | |
650 | 716 | then throw("there is an active lock - consider to use increaseLock") | |
651 | - | else if ((k(this, | |
652 | - | then throw(("there are locked WXs - consider to use increaseLock " + | |
717 | + | else if ((k(this, cK) > 0)) | |
718 | + | then throw(("there are locked WXs - consider to use increaseLock " + cK)) | |
653 | 719 | else { | |
654 | - | let eE = fraction(aW, c, aA) | |
655 | - | let eF = fraction(eB, eE, c) | |
656 | - | let eG = q(invoke(av, "calcGwxParamsREADONLY", [eF, bT, aW], nil)) | |
657 | - | let bU = t(eG[0]) | |
658 | - | let bV = t(eG[1]) | |
659 | - | let bl = toString(t(eG[2])) | |
660 | - | let dR = n(bB, ah()) | |
661 | - | let dS = n(bB, aj()) | |
662 | - | let dT = n(bB, al()) | |
663 | - | let co = if ((height > dT)) | |
664 | - | then dT | |
665 | - | else height | |
666 | - | let dU = max([(co - dS), 0]) | |
667 | - | let dW = br(dI) | |
668 | - | let dY = (((dR * dU) * 2) / 3) | |
669 | - | let ee = bu(dI) | |
670 | - | let ef = bv() | |
671 | - | let eg = ((eF * aW) / 2) | |
672 | - | let eh = k(this, ef) | |
673 | - | let bN = bH(false) | |
674 | - | let eH = if (eD) | |
720 | + | let eJ = fraction(aY, c, aC) | |
721 | + | let eK = fraction(eG, eJ, c) | |
722 | + | let eL = q(invoke(ax, "calcGwxParamsREADONLY", [eK, cm, aY], nil)) | |
723 | + | let cn = t(eL[0]) | |
724 | + | let co = t(eL[1]) | |
725 | + | let bn = toString(t(eL[2])) | |
726 | + | let cg = cb(false) | |
727 | + | let es = bt(en) | |
728 | + | let ei = dZ()._2 | |
729 | + | let eM = if (eI) | |
675 | 730 | then nil | |
676 | - | else [IntegerEntry( | |
677 | - | $Tuple2((((( | |
731 | + | else [IntegerEntry(eH, (aV + 1)), StringEntry(bf(bR), en), StringEntry(bg(en), bR)] | |
732 | + | $Tuple2(((((eM ++ cJ(bR, en, eG, cm, aY, cn, co, bn)) ++ cr(eG, aY, 1, if (eI) | |
678 | 733 | then 0 | |
679 | - | else 1)) :+ | |
734 | + | else 1)) :+ cj("lock", bR, eG, cm, aY, cn, co, aI)) ++ [IntegerEntry(es, ei), IntegerEntry(bA(), (cg + eK))]), eK) | |
680 | 735 | } | |
681 | 736 | } | |
682 | 737 | } | |
683 | 738 | } | |
684 | 739 | ||
685 | 740 | ||
686 | - | @Callable( | |
687 | - | func constructor ( | |
688 | - | let | |
689 | - | if (( | |
690 | - | then ([IntegerEntry( | |
741 | + | @Callable(aI) | |
742 | + | func constructor (eN,eO,aA,eP,eQ,ax) = { | |
743 | + | let eR = aH(aI) | |
744 | + | if ((eR == eR)) | |
745 | + | then ([IntegerEntry(be(), 0), StringEntry(av(), aD(eO, aA, eP, eQ, ax)), StringEntry(A(), eN)] ++ cr(0, 0, 0, 0)) | |
691 | 746 | else throw("Strict value is not equal to itself.") | |
692 | 747 | } | |
693 | 748 | ||
694 | 749 | ||
695 | 750 | ||
696 | - | @Callable( | |
697 | - | func lockRef ( | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
751 | + | @Callable(aI) | |
752 | + | func lockRef (aY,eS,eT) = { | |
753 | + | let eU = eD(aI, aY) | |
754 | + | let eV = eU._1 | |
755 | + | let eK = eU._2 | |
756 | + | let eW = toString(aI.caller) | |
757 | + | let eX = if (if ((eS == "")) | |
703 | 758 | then true | |
704 | - | else ( | |
759 | + | else (eT == base58'')) | |
705 | 760 | then unit | |
706 | - | else invoke(w, "createPair", [z, | |
707 | - | if (( | |
761 | + | else invoke(w, "createPair", [z, eS, eW, eT], nil) | |
762 | + | if ((eX == eX)) | |
708 | 763 | then { | |
709 | - | let | |
710 | - | if (( | |
711 | - | then $Tuple2( | |
764 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
765 | + | if ((eY == eY)) | |
766 | + | then $Tuple2(eV, unit) | |
712 | 767 | else throw("Strict value is not equal to itself.") | |
713 | 768 | } | |
714 | 769 | else throw("Strict value is not equal to itself.") | |
715 | 770 | } | |
716 | 771 | ||
717 | 772 | ||
718 | 773 | ||
719 | - | @Callable( | |
720 | - | func lock ( | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | let | |
725 | - | if (( | |
726 | - | then $Tuple2( | |
774 | + | @Callable(aI) | |
775 | + | func lock (aY) = { | |
776 | + | let eZ = eD(aI, aY) | |
777 | + | let eV = eZ._1 | |
778 | + | let eK = eZ._2 | |
779 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
780 | + | if ((eY == eY)) | |
781 | + | then $Tuple2(eV, unit) | |
727 | 782 | else throw("Strict value is not equal to itself.") | |
728 | 783 | } | |
729 | 784 | ||
730 | 785 | ||
731 | 786 | ||
732 | - | @Callable( | |
733 | - | func increaseLock ( | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | if ((0 > | |
787 | + | @Callable(aI) | |
788 | + | func increaseLock (fa) = { | |
789 | + | let eE = aw() | |
790 | + | let eF = eE[aq] | |
791 | + | let az = fromBase58String(eF) | |
792 | + | let aB = parseIntValue(eE[as]) | |
793 | + | let aC = parseIntValue(eE[at]) | |
794 | + | let eG = cR(aI, az) | |
795 | + | let bR = toString(aI.caller) | |
796 | + | let em = aT(bR) | |
797 | + | let en = em[aL] | |
798 | + | let fb = parseIntValue(em[aM]) | |
799 | + | let cm = parseIntValue(em[aN]) | |
800 | + | let fc = parseIntValue(em[aO]) | |
801 | + | let fd = (cm + fc) | |
802 | + | let fe = max([(fd - height), 0]) | |
803 | + | let ff = (fb + eG) | |
804 | + | let fg = (fe + fa) | |
805 | + | if ((0 > fa)) | |
751 | 806 | then throw("duration is less then zero") | |
752 | - | else if (( | |
753 | - | then throw(("lockDurationNew is less then minLockDuration=" + toString( | |
754 | - | else if (( | |
755 | - | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString( | |
807 | + | else if ((aB > fg)) | |
808 | + | then throw(("lockDurationNew is less then minLockDuration=" + toString(aB))) | |
809 | + | else if ((fg > aC)) | |
810 | + | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(aC))) | |
756 | 811 | else { | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | if (( | |
812 | + | let eJ = fraction(fg, c, aC) | |
813 | + | let eK = fraction(ff, eJ, c) | |
814 | + | let eY = invoke(ax, "updateReferralActivity", [toString(aI.caller), eK], nil) | |
815 | + | if ((eY == eY)) | |
761 | 816 | then { | |
762 | - | let fc = height | |
763 | - | let eG = q(invoke(av, "calcGwxParamsREADONLY", [eF, fc, fb], nil)) | |
764 | - | let bU = t(eG[0]) | |
765 | - | let bV = t(eG[1]) | |
766 | - | let bl = toString(t(eG[2])) | |
767 | - | let dR = n(bB, ah()) | |
768 | - | let dS = n(bB, aj()) | |
769 | - | let dT = n(bB, al()) | |
770 | - | let co = if ((height > dT)) | |
771 | - | then dT | |
772 | - | else height | |
773 | - | let dU = max([(co - dS), 0]) | |
774 | - | let dW = br(dI) | |
775 | - | let dX = k(this, dW) | |
776 | - | let dY = (((dR * dU) * 2) / 3) | |
777 | - | let dZ = (dY - dX) | |
778 | - | if ((0 > dZ)) | |
779 | - | then throw("wrong calculations") | |
817 | + | let fh = height | |
818 | + | let eL = q(invoke(ax, "calcGwxParamsREADONLY", [eK, fh, fg], nil)) | |
819 | + | let cn = t(eL[0]) | |
820 | + | let co = t(eL[1]) | |
821 | + | let bn = toString(t(eL[2])) | |
822 | + | let fi = cZ(bR) | |
823 | + | let fj = (eK - fi) | |
824 | + | if ((0 > fj)) | |
825 | + | then throw(("gwxDiff is less then 0: " + toString(fj))) | |
780 | 826 | else { | |
781 | - | let ee = bu(dI) | |
782 | - | let ef = bv() | |
783 | - | let eg = k(this, ee) | |
784 | - | let eh = k(this, ef) | |
785 | - | let fd = cG(dl) | |
786 | - | let fe = (eF - fd) | |
787 | - | if ((0 > fe)) | |
788 | - | then throw(("gwxDiff is less then 0: " + toString(fe))) | |
789 | - | else { | |
790 | - | let bN = bH(false) | |
791 | - | let ei = bH(true) | |
792 | - | let ek = bw(dI) | |
793 | - | let el = k(this, ek) | |
794 | - | let es = fraction(dZ, fd, ei) | |
795 | - | let ff = ((eF * fb) / 2) | |
796 | - | let fg = ((fd * eZ) / 2) | |
797 | - | let fh = (ff - fg) | |
798 | - | (((cq(dl, dI, fa, fc, fb, bU, bV, bl) ++ bY(eB, eV, 0, 0)) :+ bQ("lock", dl, eB, bT, fb, bU, bV, aG)) ++ [IntegerEntry(by(), (bN + fe))]) | |
799 | - | } | |
827 | + | let cg = cb(false) | |
828 | + | let fk = cb(true) | |
829 | + | (((cJ(bR, en, ff, fh, fg, cn, co, bn) ++ cr(eG, fa, 0, 0)) :+ cj("lock", bR, eG, cm, fg, cn, co, aI)) ++ [IntegerEntry(bA(), (cg + fj))]) | |
800 | 830 | } | |
801 | 831 | } | |
802 | 832 | else throw("Strict value is not equal to itself.") | |
803 | 833 | } | |
804 | 834 | } | |
805 | 835 | ||
806 | 836 | ||
807 | 837 | ||
808 | - | @Callable( | |
809 | - | func claimWxBoost ( | |
838 | + | @Callable(aI) | |
839 | + | func claimWxBoost (bJ,bR) = if ((bU != aI.caller)) | |
810 | 840 | then throw("permissions denied") | |
811 | 841 | else { | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | $Tuple2( | |
842 | + | let fl = ej(bJ, bR, false) | |
843 | + | let fm = fl._1 | |
844 | + | let eB = fl._2 | |
845 | + | let eC = fl._3 | |
846 | + | $Tuple2(eB, [fm]) | |
817 | 847 | } | |
818 | 848 | ||
819 | 849 | ||
820 | 850 | ||
821 | - | @Callable( | |
822 | - | func claimWxBoostREADONLY ( | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | $Tuple2(nil, [ | |
851 | + | @Callable(aI) | |
852 | + | func claimWxBoostREADONLY (bJ,bR) = { | |
853 | + | let fn = ej(bJ, bR, true) | |
854 | + | let fm = fn._1 | |
855 | + | let eB = fn._2 | |
856 | + | let eC = fn._3 | |
857 | + | $Tuple2(nil, [fm, eC]) | |
828 | 858 | } | |
829 | 859 | ||
830 | 860 | ||
831 | 861 | ||
832 | - | @Callable( | |
833 | - | func unlock ( | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | if (( | |
843 | - | then throw((("wait " + toString( | |
844 | - | else if ((0 >= | |
862 | + | @Callable(aI) | |
863 | + | func unlock (aS) = { | |
864 | + | let em = aT(aS) | |
865 | + | let en = em[aL] | |
866 | + | let fb = parseIntValue(em[aM]) | |
867 | + | let cm = parseIntValue(em[aN]) | |
868 | + | let fc = parseIntValue(em[aO]) | |
869 | + | let fd = (cm + fc) | |
870 | + | let eE = aw() | |
871 | + | let az = fromBase58String(eE[aq]) | |
872 | + | if ((fd >= height)) | |
873 | + | then throw((("wait " + toString(fd)) + " to unlock")) | |
874 | + | else if ((0 >= fb)) | |
845 | 875 | then throw("nothing to unlock") | |
846 | 876 | else { | |
847 | - | let | |
848 | - | ((( | |
877 | + | let bn = valueOrElse(getInteger(ax, ao()), 0) | |
878 | + | (((cJ(aS, en, 0, cm, fc, 0, 0, toString(bn)) ++ cr(-(fb), 0, 0, -1)) :+ cj("unlock", aS, fb, cm, fc, 0, 0, aI)) :+ ScriptTransfer(addressFromStringValue(aS), fb, az)) | |
849 | 879 | } | |
850 | 880 | } | |
851 | 881 | ||
852 | 882 | ||
853 | 883 | ||
854 | - | @Callable( | |
855 | - | func gwxUserInfoREADONLY ( | |
856 | - | let | |
857 | - | $Tuple2(nil, [ | |
884 | + | @Callable(aI) | |
885 | + | func gwxUserInfoREADONLY (aS) = { | |
886 | + | let bc = cZ(aS) | |
887 | + | $Tuple2(nil, [bc]) | |
858 | 888 | } | |
859 | 889 | ||
860 | 890 | ||
861 | 891 | ||
862 | - | @Callable( | |
863 | - | func userMaxDurationREADONLY ( | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | if (( | |
868 | - | then $Tuple2(nil, $Tuple2("lock", | |
892 | + | @Callable(aI) | |
893 | + | func userMaxDurationREADONLY (bR) = { | |
894 | + | let eE = aw() | |
895 | + | let aC = parseIntValue(eE[at]) | |
896 | + | let el = getString(this, aR(bR)) | |
897 | + | if ((el == unit)) | |
898 | + | then $Tuple2(nil, $Tuple2("lock", aC)) | |
869 | 899 | else { | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | $Tuple2(nil, $Tuple2("increaseLock", | |
900 | + | let em = split(value(el), a) | |
901 | + | let cm = parseIntValue(em[aN]) | |
902 | + | let fc = parseIntValue(em[aO]) | |
903 | + | let fd = (cm + fc) | |
904 | + | let fe = max([(fd - height), 0]) | |
905 | + | let fo = (aC - fe) | |
906 | + | $Tuple2(nil, $Tuple2("increaseLock", fo)) | |
877 | 907 | } | |
878 | 908 | } | |
879 | 909 | ||
880 | 910 | ||
881 | 911 | ||
882 | - | @Callable( | |
883 | - | func getUserGwxAmountAtHeightREADONLY ( | |
884 | - | let | |
885 | - | $Tuple2(nil, | |
912 | + | @Callable(aI) | |
913 | + | func getUserGwxAmountAtHeightREADONLY (aS,cV) = { | |
914 | + | let bc = cU(aS, cV) | |
915 | + | $Tuple2(nil, bc) | |
886 | 916 | } | |
887 | 917 | ||
888 | 918 | ||
889 | 919 | ||
890 | - | @Callable( | |
891 | - | func getTotalCachedGwxREADONLY () = $Tuple2(nil, | |
920 | + | @Callable(aI) | |
921 | + | func getTotalCachedGwxREADONLY () = $Tuple2(nil, cb(true)) | |
892 | 922 | ||
893 | 923 | ||
894 | 924 | ||
895 | - | @Callable( | |
896 | - | func | |
897 | - | let | |
925 | + | @Callable(aI) | |
926 | + | func onBoostEmissionUpdate () = { | |
927 | + | let eR = if ((aI.caller == bT)) | |
898 | 928 | then true | |
899 | - | else aF(aG) | |
900 | - | if ((eM == eM)) | |
929 | + | else aH(aI) | |
930 | + | if ((eR == eR)) | |
931 | + | then dZ() | |
932 | + | else throw("Strict value is not equal to itself.") | |
933 | + | } | |
934 | + | ||
935 | + | ||
936 | + | ||
937 | + | @Callable(aI) | |
938 | + | func onStakedVoteUpdate (bJ,bR,dL) = { | |
939 | + | let eR = if ((aI.caller == bU)) | |
940 | + | then true | |
941 | + | else aH(aI) | |
942 | + | if ((eR == eR)) | |
901 | 943 | then { | |
902 | - | let | |
903 | - | $Tuple2( | |
944 | + | let dO = dK(bJ, bR, dL) | |
945 | + | $Tuple2(dO, unit) | |
904 | 946 | } | |
905 | 947 | else throw("Strict value is not equal to itself.") | |
906 | 948 | } | |
907 | 949 | ||
908 | 950 | ||
909 | 951 | ||
910 | - | @Callable( | |
911 | - | func getVotingResultStakedREADONLY ( | |
952 | + | @Callable(aI) | |
953 | + | func getVotingResultStakedREADONLY (bJ) = $Tuple2(nil, dp(bJ)) | |
912 | 954 | ||
913 | 955 | ||
914 | 956 | ||
915 | - | @Callable(aG) | |
916 | - | func setManager (fm) = { | |
917 | - | let eM = aF(aG) | |
918 | - | if ((eM == eM)) | |
957 | + | @Callable(aI) | |
958 | + | func getVotingResultStakedIntegralREADONLY (bJ) = $Tuple2(nil, dt(bJ)) | |
959 | + | ||
960 | + | ||
961 | + | ||
962 | + | @Callable(aI) | |
963 | + | func getUserVoteFinalizedREADONLY (bJ,bR) = $Tuple2(nil, di(bJ, bR)) | |
964 | + | ||
965 | + | ||
966 | + | ||
967 | + | @Callable(aI) | |
968 | + | func getUserVoteStakedIntegralREADONLY (bJ,bR) = $Tuple2(nil, dD(bJ, bR)) | |
969 | + | ||
970 | + | ||
971 | + | ||
972 | + | @Callable(aI) | |
973 | + | func setManager (fp) = { | |
974 | + | let eR = aH(aI) | |
975 | + | if ((eR == eR)) | |
919 | 976 | then { | |
920 | - | let | |
921 | - | if (( | |
922 | - | then [StringEntry(ag(), | |
977 | + | let fq = fromBase58String(fp) | |
978 | + | if ((fq == fq)) | |
979 | + | then [StringEntry(ag(), fp)] | |
923 | 980 | else throw("Strict value is not equal to itself.") | |
924 | 981 | } | |
925 | 982 | else throw("Strict value is not equal to itself.") | |
926 | 983 | } | |
927 | 984 | ||
928 | 985 | ||
929 | 986 | ||
930 | - | @Callable( | |
987 | + | @Callable(aI) | |
931 | 988 | func confirmManager () = { | |
932 | - | let | |
933 | - | let | |
989 | + | let fr = aG() | |
990 | + | let fs = if (isDefined(fr)) | |
934 | 991 | then true | |
935 | 992 | else throw("No pending manager") | |
936 | - | if (( | |
993 | + | if ((fs == fs)) | |
937 | 994 | then { | |
938 | - | let | |
995 | + | let ft = if ((aI.callerPublicKey == value(fr))) | |
939 | 996 | then true | |
940 | 997 | else throw("You are not pending manager") | |
941 | - | if (( | |
942 | - | then [StringEntry(af(), toBase58String(value( | |
998 | + | if ((ft == ft)) | |
999 | + | then [StringEntry(af(), toBase58String(value(fr))), DeleteEntry(ag())] | |
943 | 1000 | else throw("Strict value is not equal to itself.") | |
944 | 1001 | } | |
945 | 1002 | else throw("Strict value is not equal to itself.") | |
946 | 1003 | } | |
947 | 1004 | ||
948 | 1005 | ||
949 | - | @Verifier( | |
950 | - | func | |
951 | - | let | |
952 | - | let r = | |
1006 | + | @Verifier(fu) | |
1007 | + | func fv () = { | |
1008 | + | let fw = { | |
1009 | + | let r = aE() | |
953 | 1010 | if ($isInstanceOf(r, "ByteVector")) | |
954 | 1011 | then { | |
955 | - | let | |
956 | - | | |
1012 | + | let aK = r | |
1013 | + | aK | |
957 | 1014 | } | |
958 | 1015 | else if ($isInstanceOf(r, "Unit")) | |
959 | - | then | |
1016 | + | then fu.senderPublicKey | |
960 | 1017 | else throw("Match error") | |
961 | 1018 | } | |
962 | - | sigVerify( | |
1019 | + | sigVerify(fu.bodyBytes, fu.proofs[0], fw) | |
963 | 1020 | } | |
964 | 1021 |
github/deemru/w8io/026f985 265.81 ms ◑