tx · 5WiKyA1KQfvsWUt4BFKaDJfAKLpeyhebAVsEceEqi5FU 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J: -0.01400000 Waves 2022.04.25 19:27 [2024261] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves
{ "type": 13, "id": "5WiKyA1KQfvsWUt4BFKaDJfAKLpeyhebAVsEceEqi5FU", "fee": 1400000, "feeAssetId": null, "timestamp": 1650904144769, "version": 1, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "dQJUDmC3tjc2V6SVDcHijoGudP3hqPYviyt3zfaFUAjARXsTLxmWRT1B2mv8347h8mhCYfxhwZ6ZXuRRAS2TLnf" ], "script": "base64:AAIFAAAAAAAAACAIAhIHCgUICAEBCBIAEgMKAQESABIAEgMKAQgSAwoBCAAAADQAAAAACXNlcGFyYXRvcgIAAAACX18AAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAGTVVMVFg2CQABNgAAAAEFAAAABU1VTFQ2AAAAAAZNVUxUWDgJAAE2AAAAAQUAAAAFTVVMVDgAAAAAB01VTFRYMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKV0FWRVNJRFNUUgIAAAAFV0FWRVMAAAAAB1dBVkVTSUQJAAJZAAAAAQUAAAAKV0FWRVNJRFNUUgEAAAAMa2V5Qm9uZEFzc2V0AAAAAAIAAAANYm9uZF9hc3NldF9pZAEAAAAZa2V5QXVjdGlvbkNvbnRyYWN0QWRkcmVzcwAAAAACAAAAEGF1Y3Rpb25fY29udHJhY3QBAAAAGmtleU5ldXRyaW5vQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAbJXNfX25ldXRyaW5vQ29udHJhY3RBZGRyZXNzAQAAABZrZXlNYXRoQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAQJ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AAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAACAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAMJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADNB1d5Q==", "chainId": 84, "height": 2024261, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6dE1gqpaf9zpKivoEwrQki2CfnyWWU8EdDSXpQKEPL6m Next: FANvdUD69AmAbDDCwtvkxuKJzLMN9ehHWEFBEepVWrrp Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let revisionNum = "" | |
5 | - | ||
6 | 4 | let separator = "__" | |
7 | 5 | ||
8 | 6 | let MULT6 = 1000000 | |
175 | 173 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
176 | 174 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
177 | 175 | func forEachAssetCacheUserReward (accum,asset) = { | |
178 | - | let $ | |
179 | - | let rewardTotal = $ | |
180 | - | let cached = $ | |
181 | - | let dynamic = $ | |
182 | - | let rewardCachedPartKEY = $ | |
176 | + | let $t074007535 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast) | |
177 | + | let rewardTotal = $t074007535._1 | |
178 | + | let cached = $t074007535._2 | |
179 | + | let dynamic = $t074007535._3 | |
180 | + | let rewardCachedPartKEY = $t074007535._4 | |
183 | 181 | (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal)) | |
184 | 182 | } | |
185 | 183 | ||
249 | 247 | ||
250 | 248 | @Callable(i) | |
251 | 249 | func stake () = { | |
252 | - | let $ | |
253 | - | let auctionContract = $ | |
254 | - | let bondAssetId = $ | |
255 | - | let minLockAmount = $ | |
256 | - | let halfLife = $ | |
250 | + | let $t01118911268 = getParamsOrFail() | |
251 | + | let auctionContract = $t01118911268._1 | |
252 | + | let bondAssetId = $t01118911268._2 | |
253 | + | let minLockAmount = $t01118911268._3 | |
254 | + | let halfLife = $t01118911268._4 | |
257 | 255 | if ((size(i.payments) != 1)) | |
258 | 256 | then throw("Invalid payments size") | |
259 | 257 | else { | |
266 | 264 | else { | |
267 | 265 | let userAddress = i.caller | |
268 | 266 | let userAddressStr = toString(i.caller) | |
269 | - | let $ | |
270 | - | let isNewUser = $ | |
271 | - | let lockAmount = $ | |
272 | - | let lockStartHeight = $ | |
267 | + | let $t01181011917 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, -1)) | |
268 | + | let isNewUser = $t01181011917._1 | |
269 | + | let lockAmount = $t01181011917._2 | |
270 | + | let lockStartHeight = $t01181011917._3 | |
273 | 271 | let mergedAmount = if (isNewUser) | |
274 | 272 | then amount | |
275 | 273 | else (amount + lockAmount) | |
282 | 280 | if ((minLockAmount > mergedAmount)) | |
283 | 281 | then throw(("Min lock amount is " + toString(minLockAmount))) | |
284 | 282 | else { | |
285 | - | let $ | |
283 | + | let $t01236712469 = StatsResult(amount, 1, if (isNewUser) | |
286 | 284 | then 1 | |
287 | 285 | else 0) | |
288 | - | let statsEntries = $ | |
289 | - | let totalStaked = $ | |
290 | - | let totalStakedNew = $ | |
286 | + | let statsEntries = $t01236712469._1 | |
287 | + | let totalStaked = $t01236712469._2 | |
288 | + | let totalStakedNew = $t01236712469._3 | |
291 | 289 | ((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight)) ++ statsEntries) | |
292 | 290 | } | |
293 | 291 | } | |
302 | 300 | else { | |
303 | 301 | let userAddress = i.caller | |
304 | 302 | let userAddressStr = toString(userAddress) | |
305 | - | let $ | |
306 | - | let auctionAddress = $ | |
307 | - | let bondAssetId = $ | |
308 | - | let minLockAmount = $ | |
309 | - | let halfLife = $ | |
310 | - | let $ | |
311 | - | let isNewUser = $ | |
312 | - | let lockAmount = $ | |
313 | - | let lockStart = $ | |
303 | + | let $t01295513033 = getParamsOrFail() | |
304 | + | let auctionAddress = $t01295513033._1 | |
305 | + | let bondAssetId = $t01295513033._2 | |
306 | + | let minLockAmount = $t01295513033._3 | |
307 | + | let halfLife = $t01295513033._4 | |
308 | + | let $t01303613110 = getUserParamsOrFail(userAddress) | |
309 | + | let isNewUser = $t01303613110._1 | |
310 | + | let lockAmount = $t01303613110._2 | |
311 | + | let lockStart = $t01303613110._3 | |
314 | 312 | if ((0 >= lockAmount)) | |
315 | 313 | then throw("Nothing to unstake") | |
316 | 314 | else if ((amount > lockAmount)) | |
318 | 316 | else { | |
319 | 317 | let mathContract = addressFromStringValue(getStringOrFail(keyMathContractAddress())) | |
320 | 318 | let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil)) | |
321 | - | let $ | |
319 | + | let $t01351113665 = StatsResult(-(amount), if ((amount == lockAmount)) | |
322 | 320 | then -1 | |
323 | 321 | else 0, if ((amount == lockAmount)) | |
324 | 322 | then -1 | |
325 | 323 | else 0) | |
326 | - | let statsEntries = $ | |
327 | - | let totalStaked = $ | |
328 | - | let totalStakedNew = $ | |
324 | + | let statsEntries = $t01351113665._1 | |
325 | + | let totalStaked = $t01351113665._2 | |
326 | + | let totalStakedNew = $t01351113665._3 | |
329 | 327 | ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(Address(auctionAddress), comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart)) ++ statsEntries) | |
330 | 328 | } | |
331 | 329 | } | |
393 | 391 | if ((size(i.payments) > 0)) | |
394 | 392 | then throw("payments are not accepted") | |
395 | 393 | else { | |
396 | - | let $ | |
397 | - | let isNewUser = $ | |
398 | - | let stakedAmount = $ | |
399 | - | let stakingStart = $ | |
394 | + | let $t01592116026 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
395 | + | let isNewUser = $t01592116026._1 | |
396 | + | let stakedAmount = $t01592116026._2 | |
397 | + | let stakingStart = $t01592116026._3 | |
400 | 398 | let stakedAmountX = toBigInt(stakedAmount) | |
401 | 399 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
402 | 400 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
403 | 401 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
404 | 402 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
405 | - | let $ | |
406 | - | let rewardTotal = $ | |
407 | - | let cached = $ | |
408 | - | let dynamic = $ | |
409 | - | let rewardCachedPartKEY = $ | |
403 | + | let $t01639716535 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
404 | + | let rewardTotal = $t01639716535._1 | |
405 | + | let cached = $t01639716535._2 | |
406 | + | let dynamic = $t01639716535._3 | |
407 | + | let rewardCachedPartKEY = $t01639716535._4 | |
410 | 408 | let claimedKEY = keyClaimed(userAddressStr, asset) | |
411 | - | let $ | |
412 | - | let data = $ | |
413 | - | let claimedAmtByAsset = $ | |
409 | + | let $t01659516632 = accum | |
410 | + | let data = $t01659516632._1 | |
411 | + | let claimedAmtByAsset = $t01659516632._2 | |
414 | 412 | let newPart = makeString([asset, toString(rewardTotal)], ":") | |
415 | 413 | let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_") | |
416 | 414 | if ((0 >= rewardTotal)) | |
418 | 416 | else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew) | |
419 | 417 | } | |
420 | 418 | ||
421 | - | let $ | |
419 | + | let $t01709217206 = { | |
422 | 420 | let $l = supportedAssetsList | |
423 | 421 | let $s = size($l) | |
424 | 422 | let $acc0 = $Tuple2(nil, "") | |
432 | 430 | ||
433 | 431 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
434 | 432 | } | |
435 | - | let transfers = $ | |
436 | - | let claimedAmtByAssetResult = $ | |
433 | + | let transfers = $t01709217206._1 | |
434 | + | let claimedAmtByAssetResult = $t01709217206._2 | |
437 | 435 | if ((0 >= size(transfers))) | |
438 | 436 | then throw("nothing to claim") | |
439 | 437 | else ((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))) | |
463 | 461 | } | |
464 | 462 | else { | |
465 | 463 | let userAddress = addressFromStringValue(userAddressStr) | |
466 | - | let $ | |
467 | - | let isNewUser = $ | |
468 | - | let stakedAmount = $ | |
469 | - | let stakingStart = $ | |
464 | + | let $t01786517970 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
465 | + | let isNewUser = $t01786517970._1 | |
466 | + | let stakedAmount = $t01786517970._2 | |
467 | + | let stakingStart = $t01786517970._3 | |
470 | 468 | let stakedAmountX = toBigInt(stakedAmount) | |
471 | 469 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
472 | 470 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
473 | 471 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
474 | 472 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
475 | - | let $ | |
476 | - | let rewardTotal = $ | |
477 | - | let cached = $ | |
478 | - | let dynamic = $ | |
479 | - | let rewardCachedPartKEY = $ | |
473 | + | let $t01831618454 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
474 | + | let rewardTotal = $t01831618454._1 | |
475 | + | let cached = $t01831618454._2 | |
476 | + | let dynamic = $t01831618454._3 | |
477 | + | let rewardCachedPartKEY = $t01831618454._4 | |
480 | 478 | let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0) | |
481 | - | ((accum + makeString([asset, | |
479 | + | ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_") | |
482 | 480 | } | |
483 | 481 | ||
484 | 482 | let $l = supportedAssetsList | |
506 | 504 | then $Tuple2(nil, [0, totalNsbtAmt, 0]) | |
507 | 505 | else { | |
508 | 506 | let userAddress = toAddressOrFail(userAddressStr) | |
509 | - | let $ | |
510 | - | let isNewUser = $ | |
511 | - | let userNsbtAmt = $ | |
512 | - | let stakingStart = $ | |
507 | + | let $t01905819162 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
508 | + | let isNewUser = $t01905819162._1 | |
509 | + | let userNsbtAmt = $t01905819162._2 | |
510 | + | let stakingStart = $t01905819162._3 | |
513 | 511 | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart]) | |
514 | 512 | } | |
515 | 513 | } | |
516 | 514 | ||
517 | 515 | ||
516 | + | @Verifier(tx) | |
517 | + | func verify () = { | |
518 | + | let pubKeyAdminsList = ["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
519 | + | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
520 | + | then 1 | |
521 | + | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
522 | + | then 1 | |
523 | + | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
524 | + | then 1 | |
525 | + | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
526 | + | then 2 | |
527 | + | else 0)) | |
528 | + | (count >= 3) | |
529 | + | } | |
530 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let revisionNum = "" | |
5 | - | ||
6 | 4 | let separator = "__" | |
7 | 5 | ||
8 | 6 | let MULT6 = 1000000 | |
9 | 7 | ||
10 | 8 | let MULT8 = 100000000 | |
11 | 9 | ||
12 | 10 | let MULTX6 = toBigInt(MULT6) | |
13 | 11 | ||
14 | 12 | let MULTX8 = toBigInt(MULT8) | |
15 | 13 | ||
16 | 14 | let MULTX18 = toBigInt(1000000000000000000) | |
17 | 15 | ||
18 | 16 | let WAVESIDSTR = "WAVES" | |
19 | 17 | ||
20 | 18 | let WAVESID = fromBase58String(WAVESIDSTR) | |
21 | 19 | ||
22 | 20 | func keyBondAsset () = "bond_asset_id" | |
23 | 21 | ||
24 | 22 | ||
25 | 23 | func keyAuctionContractAddress () = "auction_contract" | |
26 | 24 | ||
27 | 25 | ||
28 | 26 | func keyNeutrinoContractAddress () = "%s__neutrinoContractAddress" | |
29 | 27 | ||
30 | 28 | ||
31 | 29 | func keyMathContractAddress () = "%s__mathContract" | |
32 | 30 | ||
33 | 31 | ||
34 | 32 | func keyMinLockAmount () = "%s__minLockAmount" | |
35 | 33 | ||
36 | 34 | ||
37 | 35 | func keyHalfLife () = "%s__halfLife" | |
38 | 36 | ||
39 | 37 | ||
40 | 38 | func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator) | |
41 | 39 | ||
42 | 40 | ||
43 | 41 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator) | |
44 | 42 | ||
45 | 43 | ||
46 | 44 | func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator) | |
47 | 45 | ||
48 | 46 | ||
49 | 47 | func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator) | |
50 | 48 | ||
51 | 49 | ||
52 | 50 | func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator) | |
53 | 51 | ||
54 | 52 | ||
55 | 53 | func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator) | |
56 | 54 | ||
57 | 55 | ||
58 | 56 | func keyNextPeriod () = "%s__nextPeriod" | |
59 | 57 | ||
60 | 58 | ||
61 | 59 | func keySupportedRewardAssets () = "supportedRewardAssets" | |
62 | 60 | ||
63 | 61 | ||
64 | 62 | func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator) | |
65 | 63 | ||
66 | 64 | ||
67 | 65 | func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator) | |
68 | 66 | ||
69 | 67 | ||
70 | 68 | func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator) | |
71 | 69 | ||
72 | 70 | ||
73 | 71 | func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator) | |
74 | 72 | ||
75 | 73 | ||
76 | 74 | func keyClaimed (userAddress,tkn) = makeString(["%s%s%s", "clm", userAddress, tkn], separator) | |
77 | 75 | ||
78 | 76 | ||
79 | 77 | func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator) | |
80 | 78 | ||
81 | 79 | ||
82 | 80 | func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult) | |
83 | 81 | ||
84 | 82 | ||
85 | 83 | func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0) | |
86 | 84 | ||
87 | 85 | ||
88 | 86 | func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal) | |
89 | 87 | ||
90 | 88 | ||
91 | 89 | func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined")) | |
92 | 90 | ||
93 | 91 | ||
94 | 92 | func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal) | |
95 | 93 | ||
96 | 94 | ||
97 | 95 | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (("Mandatory this." + key) + " is not defined")) | |
98 | 96 | ||
99 | 97 | ||
100 | 98 | func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr)) | |
101 | 99 | ||
102 | 100 | ||
103 | 101 | func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR)) | |
104 | 102 | then unit | |
105 | 103 | else fromBase58String(assetStr) | |
106 | 104 | ||
107 | 105 | ||
108 | 106 | func asInt (val) = match val { | |
109 | 107 | case valInt: Int => | |
110 | 108 | valInt | |
111 | 109 | case _ => | |
112 | 110 | throw("fail to cast into Int") | |
113 | 111 | } | |
114 | 112 | ||
115 | 113 | ||
116 | 114 | func formatHistoryRecord (oldAmount,oldStart,newAmount,newStart) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(oldAmount), toString(oldStart), toString(newAmount), toString(newStart)], separator) | |
117 | 115 | ||
118 | 116 | ||
119 | 117 | func formatClaimHistoryRecord (user,claimedRewards) = makeString(["%s%d%d%s", user, toString(lastBlock.height), toString(lastBlock.timestamp), claimedRewards], separator) | |
120 | 118 | ||
121 | 119 | ||
122 | 120 | func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart)) | |
123 | 121 | ||
124 | 122 | ||
125 | 123 | func ClaimHistoryEntry (userAddress,txId,claimedRewards) = StringEntry(keyHistoryRecord("claim", userAddress, txId), formatClaimHistoryRecord(toString(userAddress), claimedRewards)) | |
126 | 124 | ||
127 | 125 | ||
128 | 126 | func StatsResult (totalLockedInc,lockCountInc,usersCountInc) = { | |
129 | 127 | let locksCount = getIntOrZero(keyStatsLocksCount()) | |
130 | 128 | let usersCount = getIntOrZero(keyStatsUsersCount()) | |
131 | 129 | let totalAmount = getIntOrZero(keyLockParamTotalAmount()) | |
132 | 130 | let totalAmountNew = (totalAmount + totalLockedInc) | |
133 | 131 | $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew)], totalAmount, totalAmountNew) | |
134 | 132 | } | |
135 | 133 | ||
136 | 134 | ||
137 | 135 | func LockParamsEntry (userAddress,amount,start) = [IntegerEntry(keyLockParamUserAmount(userAddress), amount), IntegerEntry(keyLockParamStartBlock(userAddress), start)] | |
138 | 136 | ||
139 | 137 | ||
140 | 138 | func getParamsOrFail () = { | |
141 | 139 | let neutrinoContract = addressFromStringValue(getStringOrFail(keyNeutrinoContractAddress())) | |
142 | 140 | $Tuple4(fromBase58String(getStringValue(neutrinoContract, keyAuctionContractAddress())), fromBase58String(getStringValue(neutrinoContract, keyBondAsset())), getIntOrFail(keyMinLockAmount()), getIntOrFail(keyHalfLife())) | |
143 | 141 | } | |
144 | 142 | ||
145 | 143 | ||
146 | 144 | func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0) | |
147 | 145 | ||
148 | 146 | ||
149 | 147 | func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress)) | |
150 | 148 | then $Tuple3(false, getIntOrFail(keyLockParamUserAmount(userAddress)), getIntOrFail(keyLockParamStartBlock(userAddress))) | |
151 | 149 | else unit | |
152 | 150 | ||
153 | 151 | ||
154 | 152 | func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined")) | |
155 | 153 | ||
156 | 154 | ||
157 | 155 | let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "") | |
158 | 156 | ||
159 | 157 | let supportedAssetsList = split(supportedAssetsStr, "_") | |
160 | 158 | ||
161 | 159 | func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = { | |
162 | 160 | let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId) | |
163 | 161 | let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0")) | |
164 | 162 | let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0")) | |
165 | 163 | let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18)) | |
166 | 164 | let rewardCachedPartKEY = keyReward(userAddress, assetId) | |
167 | 165 | let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0) | |
168 | 166 | $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY) | |
169 | 167 | } | |
170 | 168 | ||
171 | 169 | ||
172 | 170 | func RewardEntries (isNewUser,userAddress,stakedAmount) = { | |
173 | 171 | let stakedAmountX = toBigInt(stakedAmount) | |
174 | 172 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress) | |
175 | 173 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
176 | 174 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
177 | 175 | func forEachAssetCacheUserReward (accum,asset) = { | |
178 | - | let $ | |
179 | - | let rewardTotal = $ | |
180 | - | let cached = $ | |
181 | - | let dynamic = $ | |
182 | - | let rewardCachedPartKEY = $ | |
176 | + | let $t074007535 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast) | |
177 | + | let rewardTotal = $t074007535._1 | |
178 | + | let cached = $t074007535._2 | |
179 | + | let dynamic = $t074007535._3 | |
180 | + | let rewardCachedPartKEY = $t074007535._4 | |
183 | 181 | (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal)) | |
184 | 182 | } | |
185 | 183 | ||
186 | 184 | if (if ((depositNumLast == -1)) | |
187 | 185 | then (depositNumUser == -1) | |
188 | 186 | else false) | |
189 | 187 | then nil | |
190 | 188 | else if (if ((depositNumLast == -1)) | |
191 | 189 | then (depositNumUser > -1) | |
192 | 190 | else false) | |
193 | 191 | then throw("invalid depositNumLast and depositNumUser state") | |
194 | 192 | else if (if ((depositNumLast > -1)) | |
195 | 193 | then (depositNumUser == -1) | |
196 | 194 | else false) | |
197 | 195 | then if (isNewUser) | |
198 | 196 | then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)] | |
199 | 197 | else ({ | |
200 | 198 | let $l = supportedAssetsList | |
201 | 199 | let $s = size($l) | |
202 | 200 | let $acc0 = nil | |
203 | 201 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
204 | 202 | then $a | |
205 | 203 | else forEachAssetCacheUserReward($a, $l[$i]) | |
206 | 204 | ||
207 | 205 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
208 | 206 | then $a | |
209 | 207 | else throw("List size exceeds 10") | |
210 | 208 | ||
211 | 209 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
212 | 210 | } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) | |
213 | 211 | else if (if ((depositNumLast > -1)) | |
214 | 212 | then (depositNumUser > -1) | |
215 | 213 | else false) | |
216 | 214 | then if (isNewUser) | |
217 | 215 | then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)] | |
218 | 216 | else ({ | |
219 | 217 | let $l = supportedAssetsList | |
220 | 218 | let $s = size($l) | |
221 | 219 | let $acc0 = nil | |
222 | 220 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
223 | 221 | then $a | |
224 | 222 | else forEachAssetCacheUserReward($a, $l[$i]) | |
225 | 223 | ||
226 | 224 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
227 | 225 | then $a | |
228 | 226 | else throw("List size exceeds 10") | |
229 | 227 | ||
230 | 228 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
231 | 229 | } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) | |
232 | 230 | else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser))) | |
233 | 231 | } | |
234 | 232 | ||
235 | 233 | ||
236 | 234 | func IncrementNotDistributedRewardEntry (tkn,amountInc) = { | |
237 | 235 | let notDistributedRewardKEY = keyNotDistributedReward(tkn) | |
238 | 236 | let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0) | |
239 | 237 | [IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))] | |
240 | 238 | } | |
241 | 239 | ||
242 | 240 | ||
243 | 241 | @Callable(i) | |
244 | 242 | func constructor (neutrinoContractAddress,mathContractAddress,minLockAmount,halfLife,supportedRewardAssets) = if ((i.caller != this)) | |
245 | 243 | then throw("Permission denied") | |
246 | 244 | else [StringEntry(keyNeutrinoContractAddress(), neutrinoContractAddress), StringEntry(keyMathContractAddress(), mathContractAddress), IntegerEntry(keyMinLockAmount(), minLockAmount), IntegerEntry(keyHalfLife(), halfLife), StringEntry(keySupportedRewardAssets(), supportedRewardAssets)] | |
247 | 245 | ||
248 | 246 | ||
249 | 247 | ||
250 | 248 | @Callable(i) | |
251 | 249 | func stake () = { | |
252 | - | let $ | |
253 | - | let auctionContract = $ | |
254 | - | let bondAssetId = $ | |
255 | - | let minLockAmount = $ | |
256 | - | let halfLife = $ | |
250 | + | let $t01118911268 = getParamsOrFail() | |
251 | + | let auctionContract = $t01118911268._1 | |
252 | + | let bondAssetId = $t01118911268._2 | |
253 | + | let minLockAmount = $t01118911268._3 | |
254 | + | let halfLife = $t01118911268._4 | |
257 | 255 | if ((size(i.payments) != 1)) | |
258 | 256 | then throw("Invalid payments size") | |
259 | 257 | else { | |
260 | 258 | let payment = i.payments[0] | |
261 | 259 | let amount = payment.amount | |
262 | 260 | let invalidAssetMessage = (("Invalid asset. " + toBase58String(bondAssetId)) + " is expected") | |
263 | 261 | let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage) | |
264 | 262 | if ((assetId != bondAssetId)) | |
265 | 263 | then throw(invalidAssetMessage) | |
266 | 264 | else { | |
267 | 265 | let userAddress = i.caller | |
268 | 266 | let userAddressStr = toString(i.caller) | |
269 | - | let $ | |
270 | - | let isNewUser = $ | |
271 | - | let lockAmount = $ | |
272 | - | let lockStartHeight = $ | |
267 | + | let $t01181011917 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, -1)) | |
268 | + | let isNewUser = $t01181011917._1 | |
269 | + | let lockAmount = $t01181011917._2 | |
270 | + | let lockStartHeight = $t01181011917._3 | |
273 | 271 | let mergedAmount = if (isNewUser) | |
274 | 272 | then amount | |
275 | 273 | else (amount + lockAmount) | |
276 | 274 | let mergedStartHeight = if (isNewUser) | |
277 | 275 | then height | |
278 | 276 | else { | |
279 | 277 | let mathContract = addressFromStringValue(getStringOrFail(keyMathContractAddress())) | |
280 | 278 | asInt(invoke(mathContract, "mergeStakesREADONLY", [amount, height, lockAmount, lockStartHeight, halfLife], nil)) | |
281 | 279 | } | |
282 | 280 | if ((minLockAmount > mergedAmount)) | |
283 | 281 | then throw(("Min lock amount is " + toString(minLockAmount))) | |
284 | 282 | else { | |
285 | - | let $ | |
283 | + | let $t01236712469 = StatsResult(amount, 1, if (isNewUser) | |
286 | 284 | then 1 | |
287 | 285 | else 0) | |
288 | - | let statsEntries = $ | |
289 | - | let totalStaked = $ | |
290 | - | let totalStakedNew = $ | |
286 | + | let statsEntries = $t01236712469._1 | |
287 | + | let totalStaked = $t01236712469._2 | |
288 | + | let totalStakedNew = $t01236712469._3 | |
291 | 289 | ((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight)) ++ statsEntries) | |
292 | 290 | } | |
293 | 291 | } | |
294 | 292 | } | |
295 | 293 | } | |
296 | 294 | ||
297 | 295 | ||
298 | 296 | ||
299 | 297 | @Callable(i) | |
300 | 298 | func unstake (amount) = if ((size(i.payments) != 0)) | |
301 | 299 | then throw("unstake doesn't require any payment") | |
302 | 300 | else { | |
303 | 301 | let userAddress = i.caller | |
304 | 302 | let userAddressStr = toString(userAddress) | |
305 | - | let $ | |
306 | - | let auctionAddress = $ | |
307 | - | let bondAssetId = $ | |
308 | - | let minLockAmount = $ | |
309 | - | let halfLife = $ | |
310 | - | let $ | |
311 | - | let isNewUser = $ | |
312 | - | let lockAmount = $ | |
313 | - | let lockStart = $ | |
303 | + | let $t01295513033 = getParamsOrFail() | |
304 | + | let auctionAddress = $t01295513033._1 | |
305 | + | let bondAssetId = $t01295513033._2 | |
306 | + | let minLockAmount = $t01295513033._3 | |
307 | + | let halfLife = $t01295513033._4 | |
308 | + | let $t01303613110 = getUserParamsOrFail(userAddress) | |
309 | + | let isNewUser = $t01303613110._1 | |
310 | + | let lockAmount = $t01303613110._2 | |
311 | + | let lockStart = $t01303613110._3 | |
314 | 312 | if ((0 >= lockAmount)) | |
315 | 313 | then throw("Nothing to unstake") | |
316 | 314 | else if ((amount > lockAmount)) | |
317 | 315 | then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(lockAmount))) | |
318 | 316 | else { | |
319 | 317 | let mathContract = addressFromStringValue(getStringOrFail(keyMathContractAddress())) | |
320 | 318 | let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil)) | |
321 | - | let $ | |
319 | + | let $t01351113665 = StatsResult(-(amount), if ((amount == lockAmount)) | |
322 | 320 | then -1 | |
323 | 321 | else 0, if ((amount == lockAmount)) | |
324 | 322 | then -1 | |
325 | 323 | else 0) | |
326 | - | let statsEntries = $ | |
327 | - | let totalStaked = $ | |
328 | - | let totalStakedNew = $ | |
324 | + | let statsEntries = $t01351113665._1 | |
325 | + | let totalStaked = $t01351113665._2 | |
326 | + | let totalStakedNew = $t01351113665._3 | |
329 | 327 | ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(Address(auctionAddress), comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart)) ++ statsEntries) | |
330 | 328 | } | |
331 | 329 | } | |
332 | 330 | ||
333 | 331 | ||
334 | 332 | ||
335 | 333 | @Callable(i) | |
336 | 334 | func deposit () = if ((size(i.payments) != 1)) | |
337 | 335 | then throw("exact 1 payment is allowed only") | |
338 | 336 | else { | |
339 | 337 | let pmt = i.payments[0] | |
340 | 338 | let amount = pmt.amount | |
341 | 339 | let pmtAssetId = valueOrElse(pmt.assetId, WAVESID) | |
342 | 340 | let pmtAssetIdStr = toBase58String(pmtAssetId) | |
343 | 341 | let pmtMultX = if ((pmtAssetId == WAVESID)) | |
344 | 342 | then MULTX8 | |
345 | 343 | else MULTX6 | |
346 | 344 | let amountX = toBigInt(amount) | |
347 | 345 | let totalStaked = getIntOrElse(keyLockParamTotalAmount(), 0) | |
348 | 346 | let totalStakedX = toBigInt(totalStaked) | |
349 | 347 | if ((0 > totalStaked)) | |
350 | 348 | then throw("TODO: case is not supported") | |
351 | 349 | else if ((totalStaked == 0)) | |
352 | 350 | then IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount) | |
353 | 351 | else { | |
354 | 352 | let rewardPerNsbtX18 = fraction(amountX, MULTX18, totalStakedX) | |
355 | 353 | let depositNumLastKEY = keyDepositNumLast() | |
356 | 354 | let depositNumLast = getIntOrElse(depositNumLastKEY, -1) | |
357 | 355 | let depositNumNew = (depositNumLast + 1) | |
358 | 356 | if (!(contains(supportedAssetsStr, pmtAssetIdStr))) | |
359 | 357 | then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr)) | |
360 | 358 | else { | |
361 | 359 | func refreshRewardPerNsbtSUM (accum,nextAsset) = { | |
362 | 360 | let rewardPerNsbtSumNewKEY = keyRewardPerNsbtSumAt(depositNumNew, nextAsset) | |
363 | 361 | let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0") | |
364 | 362 | (accum :+ (if ((nextAsset == pmtAssetIdStr)) | |
365 | 363 | then StringEntry(rewardPerNsbtSumNewKEY, toString((parseBigIntValue(sumLastStr) + rewardPerNsbtX18))) | |
366 | 364 | else StringEntry(rewardPerNsbtSumNewKEY, sumLastStr))) | |
367 | 365 | } | |
368 | 366 | ||
369 | 367 | ({ | |
370 | 368 | let $l = supportedAssetsList | |
371 | 369 | let $s = size($l) | |
372 | 370 | let $acc0 = nil | |
373 | 371 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
374 | 372 | then $a | |
375 | 373 | else refreshRewardPerNsbtSUM($a, $l[$i]) | |
376 | 374 | ||
377 | 375 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
378 | 376 | then $a | |
379 | 377 | else throw("List size exceeds 10") | |
380 | 378 | ||
381 | 379 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
382 | 380 | } :+ IntegerEntry(depositNumLastKEY, depositNumNew)) | |
383 | 381 | } | |
384 | 382 | } | |
385 | 383 | } | |
386 | 384 | ||
387 | 385 | ||
388 | 386 | ||
389 | 387 | @Callable(i) | |
390 | 388 | func claimRewards () = { | |
391 | 389 | let userAddress = i.caller | |
392 | 390 | let userAddressStr = toString(userAddress) | |
393 | 391 | if ((size(i.payments) > 0)) | |
394 | 392 | then throw("payments are not accepted") | |
395 | 393 | else { | |
396 | - | let $ | |
397 | - | let isNewUser = $ | |
398 | - | let stakedAmount = $ | |
399 | - | let stakingStart = $ | |
394 | + | let $t01592116026 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
395 | + | let isNewUser = $t01592116026._1 | |
396 | + | let stakedAmount = $t01592116026._2 | |
397 | + | let stakingStart = $t01592116026._3 | |
400 | 398 | let stakedAmountX = toBigInt(stakedAmount) | |
401 | 399 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
402 | 400 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
403 | 401 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
404 | 402 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
405 | - | let $ | |
406 | - | let rewardTotal = $ | |
407 | - | let cached = $ | |
408 | - | let dynamic = $ | |
409 | - | let rewardCachedPartKEY = $ | |
403 | + | let $t01639716535 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
404 | + | let rewardTotal = $t01639716535._1 | |
405 | + | let cached = $t01639716535._2 | |
406 | + | let dynamic = $t01639716535._3 | |
407 | + | let rewardCachedPartKEY = $t01639716535._4 | |
410 | 408 | let claimedKEY = keyClaimed(userAddressStr, asset) | |
411 | - | let $ | |
412 | - | let data = $ | |
413 | - | let claimedAmtByAsset = $ | |
409 | + | let $t01659516632 = accum | |
410 | + | let data = $t01659516632._1 | |
411 | + | let claimedAmtByAsset = $t01659516632._2 | |
414 | 412 | let newPart = makeString([asset, toString(rewardTotal)], ":") | |
415 | 413 | let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_") | |
416 | 414 | if ((0 >= rewardTotal)) | |
417 | 415 | then $Tuple2(data, claimedAmtByAssetNew) | |
418 | 416 | else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew) | |
419 | 417 | } | |
420 | 418 | ||
421 | - | let $ | |
419 | + | let $t01709217206 = { | |
422 | 420 | let $l = supportedAssetsList | |
423 | 421 | let $s = size($l) | |
424 | 422 | let $acc0 = $Tuple2(nil, "") | |
425 | 423 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
426 | 424 | then $a | |
427 | 425 | else forEachAssetCalcUnclaimedReward($a, $l[$i]) | |
428 | 426 | ||
429 | 427 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
430 | 428 | then $a | |
431 | 429 | else throw("List size exceeds 10") | |
432 | 430 | ||
433 | 431 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
434 | 432 | } | |
435 | - | let transfers = $ | |
436 | - | let claimedAmtByAssetResult = $ | |
433 | + | let transfers = $t01709217206._1 | |
434 | + | let claimedAmtByAssetResult = $t01709217206._2 | |
437 | 435 | if ((0 >= size(transfers))) | |
438 | 436 | then throw("nothing to claim") | |
439 | 437 | else ((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))) | |
440 | 438 | } | |
441 | 439 | } | |
442 | 440 | ||
443 | 441 | ||
444 | 442 | ||
445 | 443 | @Callable(i) | |
446 | 444 | func unclaimedRewardsREADONLY (userAddressStr) = { | |
447 | 445 | func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_") | |
448 | 446 | ||
449 | 447 | let unclaimedRewardStr = if ((userAddressStr == "")) | |
450 | 448 | then { | |
451 | 449 | let $l = supportedAssetsList | |
452 | 450 | let $s = size($l) | |
453 | 451 | let $acc0 = "" | |
454 | 452 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
455 | 453 | then $a | |
456 | 454 | else forEachAssetZeroReward($a, $l[$i]) | |
457 | 455 | ||
458 | 456 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
459 | 457 | then $a | |
460 | 458 | else throw("List size exceeds 10") | |
461 | 459 | ||
462 | 460 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
463 | 461 | } | |
464 | 462 | else { | |
465 | 463 | let userAddress = addressFromStringValue(userAddressStr) | |
466 | - | let $ | |
467 | - | let isNewUser = $ | |
468 | - | let stakedAmount = $ | |
469 | - | let stakingStart = $ | |
464 | + | let $t01786517970 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
465 | + | let isNewUser = $t01786517970._1 | |
466 | + | let stakedAmount = $t01786517970._2 | |
467 | + | let stakingStart = $t01786517970._3 | |
470 | 468 | let stakedAmountX = toBigInt(stakedAmount) | |
471 | 469 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
472 | 470 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
473 | 471 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
474 | 472 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
475 | - | let $ | |
476 | - | let rewardTotal = $ | |
477 | - | let cached = $ | |
478 | - | let dynamic = $ | |
479 | - | let rewardCachedPartKEY = $ | |
473 | + | let $t01831618454 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
474 | + | let rewardTotal = $t01831618454._1 | |
475 | + | let cached = $t01831618454._2 | |
476 | + | let dynamic = $t01831618454._3 | |
477 | + | let rewardCachedPartKEY = $t01831618454._4 | |
480 | 478 | let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0) | |
481 | - | ((accum + makeString([asset, | |
479 | + | ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_") | |
482 | 480 | } | |
483 | 481 | ||
484 | 482 | let $l = supportedAssetsList | |
485 | 483 | let $s = size($l) | |
486 | 484 | let $acc0 = "" | |
487 | 485 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
488 | 486 | then $a | |
489 | 487 | else forEachAssetCalcUnclaimedReward($a, $l[$i]) | |
490 | 488 | ||
491 | 489 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
492 | 490 | then $a | |
493 | 491 | else throw("List size exceeds 10") | |
494 | 492 | ||
495 | 493 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
496 | 494 | } | |
497 | 495 | $Tuple2(nil, dropRight(unclaimedRewardStr, 1)) | |
498 | 496 | } | |
499 | 497 | ||
500 | 498 | ||
501 | 499 | ||
502 | 500 | @Callable(i) | |
503 | 501 | func nsbtStakingSYSREADONLY (userAddressStr) = { | |
504 | 502 | let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0) | |
505 | 503 | if ((userAddressStr == "")) | |
506 | 504 | then $Tuple2(nil, [0, totalNsbtAmt, 0]) | |
507 | 505 | else { | |
508 | 506 | let userAddress = toAddressOrFail(userAddressStr) | |
509 | - | let $ | |
510 | - | let isNewUser = $ | |
511 | - | let userNsbtAmt = $ | |
512 | - | let stakingStart = $ | |
507 | + | let $t01905819162 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
508 | + | let isNewUser = $t01905819162._1 | |
509 | + | let userNsbtAmt = $t01905819162._2 | |
510 | + | let stakingStart = $t01905819162._3 | |
513 | 511 | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart]) | |
514 | 512 | } | |
515 | 513 | } | |
516 | 514 | ||
517 | 515 | ||
516 | + | @Verifier(tx) | |
517 | + | func verify () = { | |
518 | + | let pubKeyAdminsList = ["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
519 | + | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
520 | + | then 1 | |
521 | + | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
522 | + | then 1 | |
523 | + | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
524 | + | then 1 | |
525 | + | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
526 | + | then 2 | |
527 | + | else 0)) | |
528 | + | (count >= 3) | |
529 | + | } | |
530 | + |
github/deemru/w8io/169f3d6 111.77 ms ◑