tx · 9jhVTEgXfRXWDH2D1zrFnskFRYyh8hVuUgxsi9VPGi3h

3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J:  -0.03000000 Waves

2023.10.12 10:28 [2795087] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves

{ "type": 13, "id": "9jhVTEgXfRXWDH2D1zrFnskFRYyh8hVuUgxsi9VPGi3h", "fee": 3000000, "feeAssetId": null, "timestamp": 1697095733198, "version": 2, "chainId": 84, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "2mRrx8nCy4fkzrF8ZoNhEShghLv22uHSLTiaw6vtgkfYPZZRkaSUJNhVqLX9B9kmNjwMsEqoYaVH44SFVoAssEhH", "5xJgt8gVubkLTVQ5ApDErWyZYHL9ZpgJWVzDJaKweSJ1yd3XEMUEePhvq1FSfJkxynJNfZsyuxXW4bG6xPdYxMUN", "4AnBbPFC1iVsWtXcGPknyEnwgDNr3ZknGX17x2YMcR2pKw4jH55aPHwSoPZbxg3aDoenFHhBokhha4p2WswyjMDk" ], "script": "base64:BgIzCAISBwoFCAgBAQgSBAoCAQESABIDCgEBEgASABIAEgASABIDCgEIEgQKAggBEgQKAggBXwAJc2VwYXJhdG9yAgJfXwADU0VQAgJfXwAFTVVMVDYAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDYJALYCAQUFTVVMVDYABk1VTFRYOAkAtgIBBQVNVUxUOAAHTVVMVFgxOAkAtgIBAICAkLu61q3wDQAKV0FWRVNJRFNUUgIFV0FWRVMAB1dBVkVTSUQJANkEAQUKV0FWRVNJRFNUUgAJREFZTUlMTElTAIC4mSkACU1BWEJBU0tFVAAJABlJZHhDb250cm9sQ2ZnTmV1dHJpbm9EYXBwAAEAGElkeENvbnRyb2xDZmdBdWN0aW9uRGFwcAACABRJZHhDb250cm9sQ2ZnUnBkR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0AAIAAQAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAwkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAwACAAAJAGcCBQVjb3VudAAD86fOXQ==", "height": 2795087, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HD72t3xgpSkMgXpcCMTnkF2JHPpQN3rPRgYYatgnBTMq Next: none Diff:
OldNewDifferences
7575 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
7676
7777 let govContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
78+
79+let neutrinoDaoContract = addressFromStringValue("3PEiiJRkV66T1NW7MoY3DGgCaxoDRCez8fL")
7880
7981 let RENEW_START_HEIGHT = valueOrElse(getInteger(this, keyCfgX2GnsbtOfferHeightStart()), 0)
8082
314316 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
315317 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
316318 func forEachAssetCacheUserReward (accum,asset) = {
317- let $t01139311528 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
318- let rewardTotal = $t01139311528._1
319- let cached = $t01139311528._2
320- let dynamic = $t01139311528._3
321- let rewardCachedPartKEY = $t01139311528._4
319+ let $t01148211617 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
320+ let rewardTotal = $t01148211617._1
321+ let cached = $t01148211617._2
322+ let dynamic = $t01148211617._3
323+ let rewardCachedPartKEY = $t01148211617._4
322324 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
323325 }
324326
365367 if ((size(i.payments) > 0))
366368 then throw("payments are not accepted")
367369 else {
368- let $t01446914590 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
369- let isNewUser = $t01446914590._1
370- let stakedAmount = $t01446914590._2
371- let stakingStart = $t01446914590._3
372- let gNsbtAmount = $t01446914590._4
370+ let $t01455814679 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
371+ let isNewUser = $t01455814679._1
372+ let stakedAmount = $t01455814679._2
373+ let stakingStart = $t01455814679._3
374+ let gNsbtAmount = $t01455814679._4
373375 let stakedAmountX = toBigInt(gNsbtAmount)
374376 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
375377 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
376378 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
377379 func forEachAssetCalcUnclaimedReward (accum,asset) = {
378- let $t01496015098 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
379- let rewardTotal = $t01496015098._1
380- let cached = $t01496015098._2
381- let dynamic = $t01496015098._3
382- let rewardCachedPartKEY = $t01496015098._4
380+ let $t01504915187 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
381+ let rewardTotal = $t01504915187._1
382+ let cached = $t01504915187._2
383+ let dynamic = $t01504915187._3
384+ let rewardCachedPartKEY = $t01504915187._4
383385 let claimedKEY = keyClaimed(userAddressStr, asset)
384- let $t01515815195 = accum
385- let data = $t01515815195._1
386- let claimedAmtByAsset = $t01515815195._2
386+ let $t01524715284 = accum
387+ let data = $t01524715284._1
388+ let claimedAmtByAsset = $t01524715284._2
387389 let newPart = makeString([asset, toString(rewardTotal)], ":")
388390 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
389391 if ((0 >= rewardTotal))
391393 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
392394 }
393395
394- let $t01565515768 = {
396+ let $t01574415857 = {
395397 let $l = supportedAssetsList
396398 let $s = size($l)
397399 let $acc0 = $Tuple2(nil, "")
405407
406408 $f0_2($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)
407409 }
408- let transfers = $t01565515768._1
409- let claimedAmtByAssetResult = $t01565515768._2
410+ let transfers = $t01574415857._1
411+ let claimedAmtByAssetResult = $t01574415857._2
410412 if ((0 >= size(transfers)))
411413 then $Tuple2(nil, 0)
412414 else $Tuple2(((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))), size(transfers))
424426 func commonX2Gnsbt (userAddress,i) = if (!(isBonusPeriod(height)))
425427 then throw("No 'Double gNSBT action' available now")
426428 else {
427- let $t01633016391 = commonClaim(userAddress, i)
428- let claimActions = $t01633016391._1
429- let claimResult = $t01633016391._2
430- let $t01639416519 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
431- let isNewUser = $t01639416519._1
432- let lockAmount = $t01639416519._2
433- let lockStartHeight = $t01639416519._3
434- let currUserGnsbt = $t01639416519._4
429+ let $t01641916480 = commonClaim(userAddress, i)
430+ let claimActions = $t01641916480._1
431+ let claimResult = $t01641916480._2
432+ let $t01648316608 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
433+ let isNewUser = $t01648316608._1
434+ let lockAmount = $t01648316608._2
435+ let lockStartHeight = $t01648316608._3
436+ let currUserGnsbt = $t01648316608._4
435437 if (isNewUser)
436438 then throw("You have nothing to restake")
437439 else {
443445 if (userConsentedToX2Gnsbt)
444446 then throw("User has already doubled its gNSBT value")
445447 else {
446- let $t01693617022 = StatsResult(0, 0, 0, deltaUserGnsbt)
447- let statsEntries = $t01693617022._1
448- let totalStaked = $t01693617022._2
449- let totalStakedNew = $t01693617022._3
448+ let $t01702517111 = StatsResult(0, 0, 0, deltaUserGnsbt)
449+ let statsEntries = $t01702517111._1
450+ let totalStaked = $t01702517111._2
451+ let totalStakedNew = $t01702517111._3
450452 $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) ++ statsEntries) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult)
451453 }
452454 }
469471
470472 @Callable(i)
471473 func stake () = {
472- let $t01812818190 = getParamsOrFail()
473- let bondAssetId = $t01812818190._1
474- let minLockAmount = $t01812818190._2
475- let halfLife = $t01812818190._3
474+ let $t01821718279 = getParamsOrFail()
475+ let bondAssetId = $t01821718279._1
476+ let minLockAmount = $t01821718279._2
477+ let halfLife = $t01821718279._3
476478 if ((size(i.payments) != 1))
477479 then throw("Invalid payments size")
478480 else {
485487 else {
486488 let userAddress = i.caller
487489 let userAddressStr = toString(i.caller)
488- let $t01873218857 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
489- let isNewUser = $t01873218857._1
490- let lockAmount = $t01873218857._2
491- let lockStartHeight = $t01873218857._3
492- let currUserGnsbt = $t01873218857._4
490+ let $t01882118946 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
491+ let isNewUser = $t01882118946._1
492+ let lockAmount = $t01882118946._2
493+ let lockStartHeight = $t01882118946._3
494+ let currUserGnsbt = $t01882118946._4
493495 let mergedAmount = if (isNewUser)
494496 then amount
495497 else (amount + lockAmount)
512514 let x2GnsbtConsentEntry = if (isNewUser)
513515 then [BooleanEntry(userConsentedToX2GnsbtKEY, true)]
514516 else nil
515- let $t01986119979 = StatsResult(amount, 1, if (isNewUser)
517+ let $t01995020068 = StatsResult(amount, 1, if (isNewUser)
516518 then 1
517519 else 0, deltaUserGnsbt)
518- let statsEntries = $t01986119979._1
519- let totalStaked = $t01986119979._2
520- let totalStakedNew = $t01986119979._3
520+ let statsEntries = $t01995020068._1
521+ let totalStaked = $t01995020068._2
522+ let totalStakedNew = $t01995020068._3
521523 (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight, (currUserGnsbt + deltaUserGnsbt))) ++ statsEntries) ++ x2GnsbtConsentEntry)
522524 }
523525 }
532534 else {
533535 let userAddress = i.caller
534536 let userAddressStr = toString(userAddress)
535- let $t02052520587 = getParamsOrFail()
536- let bondAssetId = $t02052520587._1
537- let minLockAmount = $t02052520587._2
538- let halfLife = $t02052520587._3
539- let $t02059020679 = getUserParamsOrFail(userAddress)
540- let isNewUser = $t02059020679._1
541- let lockAmount = $t02059020679._2
542- let lockStart = $t02059020679._3
543- let currUserGnsbt = $t02059020679._4
537+ let $t02061420676 = getParamsOrFail()
538+ let bondAssetId = $t02061420676._1
539+ let minLockAmount = $t02061420676._2
540+ let halfLife = $t02061420676._3
541+ let $t02067920768 = getUserParamsOrFail(userAddress)
542+ let isNewUser = $t02067920768._1
543+ let lockAmount = $t02067920768._2
544+ let lockStart = $t02067920768._3
545+ let currUserGnsbt = $t02067920768._4
544546 if ((0 >= lockAmount))
545547 then throw("Nothing to unstake")
546548 else if ((amount > lockAmount))
555557 let bonusGnsbtPart = (currUserGnsbt - lockAmount)
556558 let bonusNsbtAmount = min([amount, bonusGnsbtPart])
557559 let deltaGnsbt = (bonusNsbtAmount + amount)
558- let $t02151721688 = StatsResult(-(amount), if ((amount == lockAmount))
560+ let $t02160621777 = StatsResult(-(amount), if ((amount == lockAmount))
559561 then -1
560562 else 0, if ((amount == lockAmount))
561563 then -1
562564 else 0, -(deltaGnsbt))
563- let statsEntries = $t02151721688._1
564- let totalStaked = $t02151721688._2
565- let totalStakedNew = $t02151721688._3
565+ let statsEntries = $t02160621777._1
566+ let totalStaked = $t02160621777._2
567+ let totalStakedNew = $t02160621777._3
566568 ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart, (currUserGnsbt - deltaGnsbt))) ++ statsEntries)
567569 }
568570 }
685687 }
686688 else {
687689 let userAddress = addressFromStringValue(userAddressStr)
688- let $t02575525874 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
689- let isNewUser = $t02575525874._1
690- let stakedAmount = $t02575525874._2
691- let stakingStart = $t02575525874._3
692- let userGnsbt = $t02575525874._4
690+ let $t02584425963 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
691+ let isNewUser = $t02584425963._1
692+ let stakedAmount = $t02584425963._2
693+ let stakingStart = $t02584425963._3
694+ let userGnsbt = $t02584425963._4
693695 let stakedAmountX = toBigInt(userGnsbt)
694696 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
695697 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
696698 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
697699 func forEachAssetCalcUnclaimedReward (accum,asset) = {
698- let $t02621726355 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
699- let rewardTotal = $t02621726355._1
700- let cached = $t02621726355._2
701- let dynamic = $t02621726355._3
702- let rewardCachedPartKEY = $t02621726355._4
700+ let $t02630626444 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
701+ let rewardTotal = $t02630626444._1
702+ let cached = $t02630626444._2
703+ let dynamic = $t02630626444._3
704+ let rewardCachedPartKEY = $t02630626444._4
703705 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
704706 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
705707 }
756758 let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0)
757759 let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalNsbtAmt)
758760 if ((userAddressStr == ""))
759- then $Tuple2(nil, [0, totalNsbtAmt, 0, 0, totalGnsbt])
761+ then $Tuple2(nil, [0, totalNsbtAmt, 0, 0, totalGnsbt, (nsbtDiff * 2)])
760762 else {
761763 let userAddress = toAddressOrFail(userAddressStr)
762- let $t02814528270 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
763- let isNewUser = $t02814528270._1
764- let userNsbtAmt = $t02814528270._2
765- let stakingStart = $t02814528270._3
766- let currentUserGnsbt = $t02814528270._4
764+ let $t02824628371 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
765+ let isNewUser = $t02824628371._1
766+ let userNsbtAmt = $t02824628371._2
767+ let stakingStart = $t02824628371._3
768+ let currentUserGnsbt = $t02824628371._4
767769 let userConsentTuple = readUserConsentToX2Gnsbt(addressFromStringValue(userAddressStr))
768770 let userConsentedToX2GnsbtKEY = userConsentTuple._1
769771 let userConsentedToX2Gnsbt = userConsentTuple._2
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let SEP = "__"
77
88 let MULT6 = 1000000
99
1010 let MULT8 = 100000000
1111
1212 let MULTX6 = toBigInt(MULT6)
1313
1414 let MULTX8 = toBigInt(MULT8)
1515
1616 let MULTX18 = toBigInt(1000000000000000000)
1717
1818 let WAVESIDSTR = "WAVES"
1919
2020 let WAVESID = fromBase58String(WAVESIDSTR)
2121
2222 let DAYMILLIS = 86400000
2323
2424 let MAXBASKET = 9
2525
2626 let IdxControlCfgNeutrinoDapp = 1
2727
2828 let IdxControlCfgAuctionDapp = 2
2929
3030 let IdxControlCfgRpdDapp = 3
3131
3232 let IdxControlCfgMathDapp = 4
3333
3434 let IdxControlCfgLiquidationDapp = 5
3535
3636 let IdxControlCfgRestDapp = 6
3737
3838 let IdxControlCfgNodeRegistryDapp = 7
3939
4040 let IdxControlCfgNsbtStakingDapp = 8
4141
4242 let IdxControlCfgMediatorDapp = 9
4343
4444 let IdxControlCfgGovernanceDapp = 13
4545
4646 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
4747
4848
4949 func keyCfgX2GnsbtOfferHeightStart () = "%s%s__config__x2GnsbtOfferHeightStart"
5050
5151
5252 func keyCfgX2GnsbtOfferHeightEnd () = "%s%s__config__x2GnsbtOfferHeightEnd"
5353
5454
5555 func keyControlAddress () = "%s%s__config__controlAddress"
5656
5757
5858 func keyControlCfg () = "%s__controlConfig"
5959
6060
6161 func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP)
6262
6363
6464 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
6565
6666
6767 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
6868
6969 let controlCfg = readControlCfgOrFail(controlContract)
7070
7171 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
7272
7373 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
7474
7575 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
7676
7777 let govContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
78+
79+let neutrinoDaoContract = addressFromStringValue("3PEiiJRkV66T1NW7MoY3DGgCaxoDRCez8fL")
7880
7981 let RENEW_START_HEIGHT = valueOrElse(getInteger(this, keyCfgX2GnsbtOfferHeightStart()), 0)
8082
8183 let RENEW_END_HEIGHT = valueOrElse(getInteger(this, keyCfgX2GnsbtOfferHeightEnd()), 0)
8284
8385 func keyBondAsset () = "bond_asset_id"
8486
8587
8688 func keyUserGnsbtReleaseTime (userAddr) = ("%s%s_userGnsbtReleaseTime__" + userAddr)
8789
8890
8991 func keyNeutrinoContractAddress () = "%s__neutrinoContractAddress"
9092
9193
9294 func keyMathContractAddress () = "%s__mathContract"
9395
9496
9597 func keyMinLockAmount () = "%s__minLockAmount"
9698
9799
98100 func keyHalfLife () = "%s__halfLife"
99101
100102
101103 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator)
102104
103105
104106 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator)
105107
106108
107109 func keyLockParamUserGnsbt (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "gNsbt"], separator)
108110
109111
110112 func keyUserConsentedToX2Gnsbt (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "consentedToX2Gnsbt"], separator)
111113
112114
113115 func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator)
114116
115117
116118 func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator)
117119
118120
119121 func keyLockParamTotalGnsbt () = makeString(["%s%s", "stats", "activeTotalGnsbt"], separator)
120122
121123
122124 func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator)
123125
124126
125127 func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator)
126128
127129
128130 func keyStatsDepositAmtByDay (timestamp) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(timestamp)], separator)
129131
130132
131133 func keyStatsDepositAmtTotals () = makeString(["%s%s%d", "stats", "depositAmtTotals"], separator)
132134
133135
134136 func keyNextPeriod () = "%s__nextPeriod"
135137
136138
137139 func keySupportedRewardAssets () = "supportedRewardAssets"
138140
139141
140142 func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator)
141143
142144
143145 func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator)
144146
145147
146148 func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator)
147149
148150
149151 func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator)
150152
151153
152154 func keyClaimed (userAddress,tkn) = makeString(["%s%s%s", "clm", userAddress, tkn], separator)
153155
154156
155157 func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator)
156158
157159
158160 func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult)
159161
160162
161163 func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0)
162164
163165
164166 func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal)
165167
166168
167169 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined"))
168170
169171
170172 func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal)
171173
172174
173175 func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr))
174176
175177
176178 func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR))
177179 then unit
178180 else fromBase58String(assetStr)
179181
180182
181183 func asInt (val) = match val {
182184 case valInt: Int =>
183185 valInt
184186 case _ =>
185187 throw("fail to cast into Int")
186188 }
187189
188190
189191 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)
190192
191193
192194 func formatClaimHistoryRecord (user,claimedRewards) = makeString(["%s%d%d%s", user, toString(lastBlock.height), toString(lastBlock.timestamp), claimedRewards], separator)
193195
194196
195197 func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart))
196198
197199
198200 func ClaimHistoryEntry (userAddress,txId,claimedRewards) = StringEntry(keyHistoryRecord("claim", userAddress, txId), formatClaimHistoryRecord(toString(userAddress), claimedRewards))
199201
200202
201203 func StatsResult (totalLockedInc,lockCountInc,usersCountInc,totalGnsbtInc) = {
202204 let locksCount = getIntOrZero(keyStatsLocksCount())
203205 let usersCount = getIntOrZero(keyStatsUsersCount())
204206 let totalAmount = getIntOrZero(keyLockParamTotalAmount())
205207 let totalAmountNew = (totalAmount + totalLockedInc)
206208 let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalAmount)
207209 $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew), IntegerEntry(keyLockParamTotalGnsbt(), (totalGnsbt + totalGnsbtInc))], totalAmount, totalAmountNew)
208210 }
209211
210212
211213 func LockParamsEntry (userAddress,nsbtAmount,start,gNsbtAmount) = [IntegerEntry(keyLockParamUserAmount(userAddress), nsbtAmount), IntegerEntry(keyLockParamUserGnsbt(userAddress), gNsbtAmount), IntegerEntry(keyLockParamStartBlock(userAddress), start)]
212214
213215
214216 func getParamsOrFail () = $Tuple3(fromBase58String(getStringValue(neutrinoContract, keyBondAsset())), getIntOrFail(keyMinLockAmount()), getIntOrFail(keyHalfLife()))
215217
216218
217219 func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0)
218220
219221
220222 func isBonusPeriod (h) = if ((h >= RENEW_START_HEIGHT))
221223 then (RENEW_END_HEIGHT >= h)
222224 else false
223225
224226
225227 func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress))
226228 then {
227229 let amount = getIntOrFail(keyLockParamUserAmount(userAddress))
228230 $Tuple4(false, amount, getIntOrFail(keyLockParamStartBlock(userAddress)), getIntOrElse(keyLockParamUserGnsbt(userAddress), amount))
229231 }
230232 else unit
231233
232234
233235 func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined"))
234236
235237
236238 let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "")
237239
238240 let supportedAssetsList = split(supportedAssetsStr, "_")
239241
240242 func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = {
241243 let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId)
242244 let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0"))
243245 let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0"))
244246 let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18))
245247 let rewardCachedPartKEY = keyReward(userAddress, assetId)
246248 let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0)
247249 $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY)
248250 }
249251
250252
251253 func toStartOfDay (timestamp) = ((timestamp / DAYMILLIS) * DAYMILLIS)
252254
253255
254256 func findElementPosition (src,element,sep) = {
255257 let elementStart = valueOrErrorMessage(indexOf(src, element), ((("there is no substring " + element) + " in ") + src))
256258 if ((elementStart == 0))
257259 then 0
258260 else {
259261 let left = take(src, elementStart)
260262 (size(split(left, sep)) - 1)
261263 }
262264 }
263265
264266
265267 let DepositTotalsPREFIX = "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d"
266268
267269 let defaultTotalsDATA = (DepositTotalsPREFIX + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0")
268270
269271 func padList (in) = {
270272 let currSize = (size(in) - 1)
271273 func listPadder (acc,idx) = if ((currSize > idx))
272274 then acc
273275 else (acc :+ "0")
274276
275277 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
276278 let $s = size($l)
277279 let $acc0 = in
278280 func $f0_1 ($a,$i) = if (($i >= $s))
279281 then $a
280282 else listPadder($a, $l[$i])
281283
282284 func $f0_2 ($a,$i) = if (($i >= $s))
283285 then $a
284286 else throw("List size exceeds 18")
285287
286288 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18)
287289 }
288290
289291
290292 func padString (in) = {
291293 let currSize = (size(split_4C(in, SEP)) - 1)
292294 func strPadder (acc,idx) = if ((currSize > idx))
293295 then acc
294296 else (acc + "__0")
295297
296298 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
297299 let $s = size($l)
298300 let $acc0 = in
299301 func $f0_1 ($a,$i) = if (($i >= $s))
300302 then $a
301303 else strPadder($a, $l[$i])
302304
303305 func $f0_2 ($a,$i) = if (($i >= $s))
304306 then $a
305307 else throw("List size exceeds 18")
306308
307309 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18)
308310 }
309311
310312
311313 func RewardEntries (isNewUser,userAddress,stakedAmount) = {
312314 let stakedAmountX = toBigInt(stakedAmount)
313315 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress)
314316 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
315317 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
316318 func forEachAssetCacheUserReward (accum,asset) = {
317- let $t01139311528 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
318- let rewardTotal = $t01139311528._1
319- let cached = $t01139311528._2
320- let dynamic = $t01139311528._3
321- let rewardCachedPartKEY = $t01139311528._4
319+ let $t01148211617 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
320+ let rewardTotal = $t01148211617._1
321+ let cached = $t01148211617._2
322+ let dynamic = $t01148211617._3
323+ let rewardCachedPartKEY = $t01148211617._4
322324 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
323325 }
324326
325327 if (if ((depositNumLast == -1))
326328 then (depositNumUser == -1)
327329 else false)
328330 then nil
329331 else if (if ((depositNumLast == -1))
330332 then (depositNumUser > -1)
331333 else false)
332334 then throw("invalid depositNumLast and depositNumUser state")
333335 else if (if ((depositNumLast > -1))
334336 then (depositNumUser >= -1)
335337 else false)
336338 then if (isNewUser)
337339 then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)]
338340 else ({
339341 let $l = supportedAssetsList
340342 let $s = size($l)
341343 let $acc0 = nil
342344 func $f0_1 ($a,$i) = if (($i >= $s))
343345 then $a
344346 else forEachAssetCacheUserReward($a, $l[$i])
345347
346348 func $f0_2 ($a,$i) = if (($i >= $s))
347349 then $a
348350 else throw("List size exceeds 9")
349351
350352 $f0_2($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)
351353 } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast))
352354 else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser)))
353355 }
354356
355357
356358 func IncrementNotDistributedRewardEntry (tkn,amountInc) = {
357359 let notDistributedRewardKEY = keyNotDistributedReward(tkn)
358360 let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0)
359361 IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))
360362 }
361363
362364
363365 func commonClaim (userAddress,i) = {
364366 let userAddressStr = toString(userAddress)
365367 if ((size(i.payments) > 0))
366368 then throw("payments are not accepted")
367369 else {
368- let $t01446914590 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
369- let isNewUser = $t01446914590._1
370- let stakedAmount = $t01446914590._2
371- let stakingStart = $t01446914590._3
372- let gNsbtAmount = $t01446914590._4
370+ let $t01455814679 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
371+ let isNewUser = $t01455814679._1
372+ let stakedAmount = $t01455814679._2
373+ let stakingStart = $t01455814679._3
374+ let gNsbtAmount = $t01455814679._4
373375 let stakedAmountX = toBigInt(gNsbtAmount)
374376 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
375377 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
376378 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
377379 func forEachAssetCalcUnclaimedReward (accum,asset) = {
378- let $t01496015098 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
379- let rewardTotal = $t01496015098._1
380- let cached = $t01496015098._2
381- let dynamic = $t01496015098._3
382- let rewardCachedPartKEY = $t01496015098._4
380+ let $t01504915187 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
381+ let rewardTotal = $t01504915187._1
382+ let cached = $t01504915187._2
383+ let dynamic = $t01504915187._3
384+ let rewardCachedPartKEY = $t01504915187._4
383385 let claimedKEY = keyClaimed(userAddressStr, asset)
384- let $t01515815195 = accum
385- let data = $t01515815195._1
386- let claimedAmtByAsset = $t01515815195._2
386+ let $t01524715284 = accum
387+ let data = $t01524715284._1
388+ let claimedAmtByAsset = $t01524715284._2
387389 let newPart = makeString([asset, toString(rewardTotal)], ":")
388390 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
389391 if ((0 >= rewardTotal))
390392 then $Tuple2(data, claimedAmtByAssetNew)
391393 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
392394 }
393395
394- let $t01565515768 = {
396+ let $t01574415857 = {
395397 let $l = supportedAssetsList
396398 let $s = size($l)
397399 let $acc0 = $Tuple2(nil, "")
398400 func $f0_1 ($a,$i) = if (($i >= $s))
399401 then $a
400402 else forEachAssetCalcUnclaimedReward($a, $l[$i])
401403
402404 func $f0_2 ($a,$i) = if (($i >= $s))
403405 then $a
404406 else throw("List size exceeds 9")
405407
406408 $f0_2($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)
407409 }
408- let transfers = $t01565515768._1
409- let claimedAmtByAssetResult = $t01565515768._2
410+ let transfers = $t01574415857._1
411+ let claimedAmtByAssetResult = $t01574415857._2
410412 if ((0 >= size(transfers)))
411413 then $Tuple2(nil, 0)
412414 else $Tuple2(((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))), size(transfers))
413415 }
414416 }
415417
416418
417419 func readUserConsentToX2Gnsbt (userAddress) = {
418420 let key = keyUserConsentedToX2Gnsbt(userAddress)
419421 let val = valueOrElse(getBoolean(this, key), false)
420422 $Tuple2(key, val)
421423 }
422424
423425
424426 func commonX2Gnsbt (userAddress,i) = if (!(isBonusPeriod(height)))
425427 then throw("No 'Double gNSBT action' available now")
426428 else {
427- let $t01633016391 = commonClaim(userAddress, i)
428- let claimActions = $t01633016391._1
429- let claimResult = $t01633016391._2
430- let $t01639416519 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
431- let isNewUser = $t01639416519._1
432- let lockAmount = $t01639416519._2
433- let lockStartHeight = $t01639416519._3
434- let currUserGnsbt = $t01639416519._4
429+ let $t01641916480 = commonClaim(userAddress, i)
430+ let claimActions = $t01641916480._1
431+ let claimResult = $t01641916480._2
432+ let $t01648316608 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
433+ let isNewUser = $t01648316608._1
434+ let lockAmount = $t01648316608._2
435+ let lockStartHeight = $t01648316608._3
436+ let currUserGnsbt = $t01648316608._4
435437 if (isNewUser)
436438 then throw("You have nothing to restake")
437439 else {
438440 let deltaUserGnsbt = currUserGnsbt
439441 let newUserGnsbt = (currUserGnsbt + deltaUserGnsbt)
440442 let userConsentTuple = readUserConsentToX2Gnsbt(userAddress)
441443 let userConsentedToX2GnsbtKEY = userConsentTuple._1
442444 let userConsentedToX2Gnsbt = userConsentTuple._2
443445 if (userConsentedToX2Gnsbt)
444446 then throw("User has already doubled its gNSBT value")
445447 else {
446- let $t01693617022 = StatsResult(0, 0, 0, deltaUserGnsbt)
447- let statsEntries = $t01693617022._1
448- let totalStaked = $t01693617022._2
449- let totalStakedNew = $t01693617022._3
448+ let $t01702517111 = StatsResult(0, 0, 0, deltaUserGnsbt)
449+ let statsEntries = $t01702517111._1
450+ let totalStaked = $t01702517111._2
451+ let totalStakedNew = $t01702517111._3
450452 $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) ++ statsEntries) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult)
451453 }
452454 }
453455 }
454456
455457
456458 @Callable(i)
457459 func constructorV1 (neutrinoContractAddress,mathContractAddress,minLockAmount,halfLife,supportedRewardAssets) = if ((i.caller != this))
458460 then throw("Permission denied")
459461 else [StringEntry(keyNeutrinoContractAddress(), neutrinoContractAddress), StringEntry(keyMathContractAddress(), mathContractAddress), IntegerEntry(keyMinLockAmount(), minLockAmount), IntegerEntry(keyHalfLife(), halfLife), StringEntry(keySupportedRewardAssets(), supportedRewardAssets)]
460462
461463
462464
463465 @Callable(i)
464466 func constructorV2 (x2GnsbtOfferHeightStart,x2GnsbtOfferHeightEnd) = if ((i.caller != this))
465467 then throw("Permission denied")
466468 else [IntegerEntry(keyCfgX2GnsbtOfferHeightStart(), x2GnsbtOfferHeightStart), IntegerEntry(keyCfgX2GnsbtOfferHeightEnd(), x2GnsbtOfferHeightEnd)]
467469
468470
469471
470472 @Callable(i)
471473 func stake () = {
472- let $t01812818190 = getParamsOrFail()
473- let bondAssetId = $t01812818190._1
474- let minLockAmount = $t01812818190._2
475- let halfLife = $t01812818190._3
474+ let $t01821718279 = getParamsOrFail()
475+ let bondAssetId = $t01821718279._1
476+ let minLockAmount = $t01821718279._2
477+ let halfLife = $t01821718279._3
476478 if ((size(i.payments) != 1))
477479 then throw("Invalid payments size")
478480 else {
479481 let payment = i.payments[0]
480482 let amount = payment.amount
481483 let invalidAssetMessage = (("Invalid asset. " + toBase58String(bondAssetId)) + " is expected")
482484 let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage)
483485 if ((assetId != bondAssetId))
484486 then throw(invalidAssetMessage)
485487 else {
486488 let userAddress = i.caller
487489 let userAddressStr = toString(i.caller)
488- let $t01873218857 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
489- let isNewUser = $t01873218857._1
490- let lockAmount = $t01873218857._2
491- let lockStartHeight = $t01873218857._3
492- let currUserGnsbt = $t01873218857._4
490+ let $t01882118946 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
491+ let isNewUser = $t01882118946._1
492+ let lockAmount = $t01882118946._2
493+ let lockStartHeight = $t01882118946._3
494+ let currUserGnsbt = $t01882118946._4
493495 let mergedAmount = if (isNewUser)
494496 then amount
495497 else (amount + lockAmount)
496498 let mergedStartHeight = if (isNewUser)
497499 then height
498500 else asInt(invoke(mathContract, "mergeStakesREADONLY", [amount, height, lockAmount, lockStartHeight, halfLife], nil))
499501 if ((minLockAmount > mergedAmount))
500502 then throw(("Min lock amount is " + toString(minLockAmount)))
501503 else {
502504 let userConsentTuple = readUserConsentToX2Gnsbt(userAddress)
503505 let userConsentedToX2GnsbtKEY = userConsentTuple._1
504506 let userConsentedToX2Gnsbt = userConsentTuple._2
505507 let deltaUserGnsbt = if (if (isBonusPeriod(height))
506508 then if (isNewUser)
507509 then true
508510 else userConsentedToX2Gnsbt
509511 else false)
510512 then (2 * amount)
511513 else amount
512514 let x2GnsbtConsentEntry = if (isNewUser)
513515 then [BooleanEntry(userConsentedToX2GnsbtKEY, true)]
514516 else nil
515- let $t01986119979 = StatsResult(amount, 1, if (isNewUser)
517+ let $t01995020068 = StatsResult(amount, 1, if (isNewUser)
516518 then 1
517519 else 0, deltaUserGnsbt)
518- let statsEntries = $t01986119979._1
519- let totalStaked = $t01986119979._2
520- let totalStakedNew = $t01986119979._3
520+ let statsEntries = $t01995020068._1
521+ let totalStaked = $t01995020068._2
522+ let totalStakedNew = $t01995020068._3
521523 (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight, (currUserGnsbt + deltaUserGnsbt))) ++ statsEntries) ++ x2GnsbtConsentEntry)
522524 }
523525 }
524526 }
525527 }
526528
527529
528530
529531 @Callable(i)
530532 func unstake (amount) = if ((size(i.payments) != 0))
531533 then throw("unstake doesn't require any payment")
532534 else {
533535 let userAddress = i.caller
534536 let userAddressStr = toString(userAddress)
535- let $t02052520587 = getParamsOrFail()
536- let bondAssetId = $t02052520587._1
537- let minLockAmount = $t02052520587._2
538- let halfLife = $t02052520587._3
539- let $t02059020679 = getUserParamsOrFail(userAddress)
540- let isNewUser = $t02059020679._1
541- let lockAmount = $t02059020679._2
542- let lockStart = $t02059020679._3
543- let currUserGnsbt = $t02059020679._4
537+ let $t02061420676 = getParamsOrFail()
538+ let bondAssetId = $t02061420676._1
539+ let minLockAmount = $t02061420676._2
540+ let halfLife = $t02061420676._3
541+ let $t02067920768 = getUserParamsOrFail(userAddress)
542+ let isNewUser = $t02067920768._1
543+ let lockAmount = $t02067920768._2
544+ let lockStart = $t02067920768._3
545+ let currUserGnsbt = $t02067920768._4
544546 if ((0 >= lockAmount))
545547 then throw("Nothing to unstake")
546548 else if ((amount > lockAmount))
547549 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(lockAmount)))
548550 else {
549551 let t = value(blockInfoByHeight(height)).timestamp
550552 let releaseTime = valueOrElse(getInteger(govContract, keyUserGnsbtReleaseTime(userAddressStr)), 0)
551553 if ((releaseTime >= t))
552554 then throw(("Your gNsbt are taking part in voting, cannot unstake until " + toString(releaseTime)))
553555 else {
554556 let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil))
555557 let bonusGnsbtPart = (currUserGnsbt - lockAmount)
556558 let bonusNsbtAmount = min([amount, bonusGnsbtPart])
557559 let deltaGnsbt = (bonusNsbtAmount + amount)
558- let $t02151721688 = StatsResult(-(amount), if ((amount == lockAmount))
560+ let $t02160621777 = StatsResult(-(amount), if ((amount == lockAmount))
559561 then -1
560562 else 0, if ((amount == lockAmount))
561563 then -1
562564 else 0, -(deltaGnsbt))
563- let statsEntries = $t02151721688._1
564- let totalStaked = $t02151721688._2
565- let totalStakedNew = $t02151721688._3
565+ let statsEntries = $t02160621777._1
566+ let totalStaked = $t02160621777._2
567+ let totalStakedNew = $t02160621777._3
566568 ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart, (currUserGnsbt - deltaGnsbt))) ++ statsEntries)
567569 }
568570 }
569571 }
570572
571573
572574
573575 @Callable(i)
574576 func deposit () = {
575577 let totalStaked = getIntOrElse(keyLockParamTotalGnsbt(), getIntOrElse(keyLockParamTotalAmount(), 0))
576578 if ((0 > totalStaked))
577579 then throw("TODO: case is not supported")
578580 else {
579581 let depositNumLastKEY = keyDepositNumLast()
580582 let depositNumLast = getIntOrElse(depositNumLastKEY, -1)
581583 let depositNumNew = (depositNumLast + 1)
582584 let totalsKEY = keyStatsDepositAmtTotals()
583585 let byDayKEY = keyStatsDepositAmtByDay(toStartOfDay(lastBlock.timestamp))
584586 let currTotals = padList(split(valueOrElse(getString(totalsKEY), defaultTotalsDATA), SEP))
585587 func dep (acc,pmt) = {
586588 let amount = pmt.amount
587589 let pmtAssetIdStr = toBase58String(valueOrElse(pmt.assetId, WAVESID))
588590 if (!(contains(supportedAssetsStr, pmtAssetIdStr)))
589591 then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr))
590592 else if ((totalStaked == 0))
591593 then $Tuple4((acc._1 :+ IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount)), (acc._2 :+ pmtAssetIdStr), (acc._3 :+ toBigInt(0)), (acc._4 :+ amount))
592594 else {
593595 let rewardPerNsbtX18 = fraction(toBigInt(amount), MULTX18, toBigInt(totalStaked))
594596 $Tuple4(acc._1, (acc._2 :+ pmtAssetIdStr), (acc._3 :+ rewardPerNsbtX18), (acc._4 :+ amount))
595597 }
596598 }
597599
598600 let pmtsResult = {
599601 let $l = i.payments
600602 let $s = size($l)
601603 let $acc0 = $Tuple4(nil, nil, nil, nil)
602604 func $f0_1 ($a,$i) = if (($i >= $s))
603605 then $a
604606 else dep($a, $l[$i])
605607
606608 func $f0_2 ($a,$i) = if (($i >= $s))
607609 then $a
608610 else throw("List size exceeds 10")
609611
610612 $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)
611613 }
612614 func refreshRewardUpdateTotals (accum,nextAsset) = {
613615 let k = accum._3
614616 let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0")
615617 let idx = indexOf(pmtsResult._2, nextAsset)
616618 let sum = if (isDefined(idx))
617619 then {
618620 let j = value(idx)
619621 let statsDelta = pmtsResult._4[j]
620622 $Tuple2(toString((parseBigIntValue(sumLastStr) + pmtsResult._3[j])), toString((parseIntValue(currTotals[(k + 1)]) + statsDelta)))
621623 }
622624 else $Tuple2(sumLastStr, currTotals[(k + 1)])
623625 $Tuple3((accum._1 :+ StringEntry(keyRewardPerNsbtSumAt(depositNumNew, nextAsset), sum._1)), ((accum._2 + SEP) + sum._2), (k + 1))
624626 }
625627
626628 let assetsResult = {
627629 let $l = supportedAssetsList
628630 let $s = size($l)
629631 let $acc0 = $Tuple3(nil, DepositTotalsPREFIX, 0)
630632 func $f1_1 ($a,$i) = if (($i >= $s))
631633 then $a
632634 else refreshRewardUpdateTotals($a, $l[$i])
633635
634636 func $f1_2 ($a,$i) = if (($i >= $s))
635637 then $a
636638 else throw("List size exceeds 9")
637639
638640 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9)
639641 }
640642 let totals = padString(assetsResult._2)
641643 $Tuple2(((((pmtsResult._1 ++ assetsResult._1) :+ IntegerEntry(depositNumLastKEY, depositNumNew)) :+ StringEntry(totalsKEY, totals)) :+ StringEntry(byDayKEY, totals)), depositNumNew)
642644 }
643645 }
644646
645647
646648
647649 @Callable(i)
648650 func claimRewards () = commonClaim(i.caller, i)
649651
650652
651653
652654 @Callable(i)
653655 func claimRewardsByOriginCaller () = commonClaim(i.originCaller, i)
654656
655657
656658
657659 @Callable(i)
658660 func x2Gnsbt () = commonX2Gnsbt(i.caller, i)
659661
660662
661663
662664 @Callable(i)
663665 func x2GnsbtByOriginCaller () = commonX2Gnsbt(i.originCaller, i)
664666
665667
666668
667669 @Callable(i)
668670 func unclaimedRewardsREADONLY (userAddressStr) = {
669671 func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_")
670672
671673 let unclaimedRewardStr = if ((userAddressStr == ""))
672674 then {
673675 let $l = supportedAssetsList
674676 let $s = size($l)
675677 let $acc0 = ""
676678 func $f0_1 ($a,$i) = if (($i >= $s))
677679 then $a
678680 else forEachAssetZeroReward($a, $l[$i])
679681
680682 func $f0_2 ($a,$i) = if (($i >= $s))
681683 then $a
682684 else throw("List size exceeds 9")
683685
684686 $f0_2($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)
685687 }
686688 else {
687689 let userAddress = addressFromStringValue(userAddressStr)
688- let $t02575525874 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
689- let isNewUser = $t02575525874._1
690- let stakedAmount = $t02575525874._2
691- let stakingStart = $t02575525874._3
692- let userGnsbt = $t02575525874._4
690+ let $t02584425963 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
691+ let isNewUser = $t02584425963._1
692+ let stakedAmount = $t02584425963._2
693+ let stakingStart = $t02584425963._3
694+ let userGnsbt = $t02584425963._4
693695 let stakedAmountX = toBigInt(userGnsbt)
694696 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
695697 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
696698 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
697699 func forEachAssetCalcUnclaimedReward (accum,asset) = {
698- let $t02621726355 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
699- let rewardTotal = $t02621726355._1
700- let cached = $t02621726355._2
701- let dynamic = $t02621726355._3
702- let rewardCachedPartKEY = $t02621726355._4
700+ let $t02630626444 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
701+ let rewardTotal = $t02630626444._1
702+ let cached = $t02630626444._2
703+ let dynamic = $t02630626444._3
704+ let rewardCachedPartKEY = $t02630626444._4
703705 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
704706 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
705707 }
706708
707709 let $l = supportedAssetsList
708710 let $s = size($l)
709711 let $acc0 = ""
710712 func $f0_1 ($a,$i) = if (($i >= $s))
711713 then $a
712714 else forEachAssetCalcUnclaimedReward($a, $l[$i])
713715
714716 func $f0_2 ($a,$i) = if (($i >= $s))
715717 then $a
716718 else throw("List size exceeds 9")
717719
718720 $f0_2($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)
719721 }
720722 $Tuple2(nil, dropRight(unclaimedRewardStr, 1))
721723 }
722724
723725
724726
725727 @Callable(i)
726728 func nsbtUnstakingSYSREADONLY (userAddressStrOrEmpty,unstakeAmtP) = {
727729 let resultArray = if ((userAddressStrOrEmpty == ""))
728730 then [0, 0, 0, 0]
729731 else {
730732 let userAddress = addressFromStringValue(userAddressStrOrEmpty)
731733 let cfgDATA = getParamsOrFail()
732734 let nsbtAssetId = cfgDATA._1
733735 let minLockAmount = cfgDATA._2
734736 let halfLife = cfgDATA._3
735737 let userDATA = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
736738 let isNewUser = userDATA._1
737739 let stakedAmount = userDATA._2
738740 let lockStart = userDATA._3
739741 let unstakeAmt = if ((unstakeAmtP > stakedAmount))
740742 then stakedAmount
741743 else unstakeAmtP
742744 let stakedAmountNEW = (stakedAmount - unstakeAmt)
743745 let comissionAmount = if ((unstakeAmt == 0))
744746 then 0
745747 else asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [unstakeAmt, lockStart, halfLife], nil))
746748 let receiveAmount = (unstakeAmt - comissionAmount)
747749 [stakedAmount, stakedAmountNEW, receiveAmount, comissionAmount]
748750 }
749751 $Tuple2(nil, resultArray)
750752 }
751753
752754
753755
754756 @Callable(i)
755757 func nsbtStakingSYSREADONLY (userAddressStr,nsbtDiff) = {
756758 let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0)
757759 let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalNsbtAmt)
758760 if ((userAddressStr == ""))
759- then $Tuple2(nil, [0, totalNsbtAmt, 0, 0, totalGnsbt])
761+ then $Tuple2(nil, [0, totalNsbtAmt, 0, 0, totalGnsbt, (nsbtDiff * 2)])
760762 else {
761763 let userAddress = toAddressOrFail(userAddressStr)
762- let $t02814528270 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
763- let isNewUser = $t02814528270._1
764- let userNsbtAmt = $t02814528270._2
765- let stakingStart = $t02814528270._3
766- let currentUserGnsbt = $t02814528270._4
764+ let $t02824628371 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
765+ let isNewUser = $t02824628371._1
766+ let userNsbtAmt = $t02824628371._2
767+ let stakingStart = $t02824628371._3
768+ let currentUserGnsbt = $t02824628371._4
767769 let userConsentTuple = readUserConsentToX2Gnsbt(addressFromStringValue(userAddressStr))
768770 let userConsentedToX2GnsbtKEY = userConsentTuple._1
769771 let userConsentedToX2Gnsbt = userConsentTuple._2
770772 let deltaUserGnsbt = if (if (isBonusPeriod(height))
771773 then if (isNewUser)
772774 then true
773775 else userConsentedToX2Gnsbt
774776 else false)
775777 then (2 * nsbtDiff)
776778 else nsbtDiff
777779 $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart, currentUserGnsbt, totalGnsbt, deltaUserGnsbt])
778780 }
779781 }
780782
781783
782784 @Verifier(tx)
783785 func verify () = {
784786 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
785787 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
786788 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
787789 then 1
788790 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
789791 then 1
790792 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
791793 then 1
792794 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
793795 then 2
794796 else 0))
795797 (count >= 3)
796798 }
797799

github/deemru/w8io/169f3d6 
111.06 ms