tx · BPc8E4DJmBDdKqE58NFoQaajKT35tKuEqz8aBYMFufUR

3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy:  -0.03100000 Waves

2022.11.25 17:09 [2332724] smart account 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy > SELF 0.00000000 Waves

{ "type": 13, "id": "BPc8E4DJmBDdKqE58NFoQaajKT35tKuEqz8aBYMFufUR", "fee": 3100000, "feeAssetId": null, "timestamp": 1669385375209, "version": 2, "chainId": 84, "sender": "3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy", "senderPublicKey": "FK9j3YFWVChXKESTn33fMZz1JseCNMMqHhfB7smxJo4e", "proofs": [ "2CLuduHpiB4AZay7gqvL9fQwb1fKvTPXt86zovDKupQw5pPFDh33g8vhF2JznPm3iNQqLYWvFSjqfRUx6Z77Juc4" ], "script": "base64:BgIvCAISBQoDAQgIEgASABIDCgEBEgASABIAEgMKAQgSAwoBCBIECgIIARIDCgEBEgBpAAlzZXBhcmF0b3ICAl9fAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ABk1VTFRYNgkAtgIBBQVNVUxUNgAGTVVMVFg4CQC2AgEFBU1VTFQ4AAdNVUxUWDE4CQC2AgEAgICQu7rWrfANAApXQVZFU0lEU1RSAgVXQVZFUwAHV0FWRVNJRAkA2QQBBQpXQVZFU0lEU1RSAAlEQVlNSUxMSVMAgLiZKQANREVGQVVMVFBFUklPRAkAaAIAoAsADgAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAABABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAgAUSWR4Q29udHJvbENmZ1JwZERhcHAAAwAVSWR4Q29udHJvbENmZ01hdGhEYXBwAAQAHElkeENvbnRyb2xDZmdMaXF1aWRhdGlvbkRhcHAABQAVSWR4Q29udHJvbENmZ1Jlc3REYXBwAAYAHUlkeENvbnRyb2xDZmdOb2RlUmVnaXN0cnlEYXBwAAcAHElkeENvbnRyb2xDZmd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bgCwmEYJAJQKAgUDbmlsCQDMCAIFCm1pbkxvY2tBbXQJAMwIAgkAaAIFEmduc2J0RnJvbVN1cmZDb2VmZgUFTVVMVDYJAMwIAgUgc3VyZlZvdGluZ1Bvd2VyUmVzdHJpY3RpdmVQZXJpb2QJAMwIAgUbYnJUb1N0YXJ0U3VyZlRyYW5zZm9ybWF0aW9uBQNuaWwADLrcUA==", "height": 2332724, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ct8W11t2G1ttQsodNs5mHhYVhHNptaAmvS9NpgtE5rCK Next: GsLUb9dpdNVscnP7U2ijTwc3kesXhUnLCAcBec14k8wU Diff:
OldNewDifferences
391391 let totalMature = valueOrElse(getInteger(keyTotalMature()), getIntOrZero(keyLockParamTotalAmount()))
392392 let totalTeen = getIntOrZero(keyTotalTeen())
393393 let totalKid = getIntOrZero(keyTotalKid())
394- let userMature = valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
394+ let userMature = if ((userAddressStr == ""))
395+ then 0
396+ else valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
395397 let userTeen = getIntOrZero(keyUserTeen(userAddressStr))
396398 let userKid = getIntOrZero(keyUserKid(userAddressStr))
397399 let tmp = if ((period > getIntOrZero(keyLastUserPeriodProcessed(userAddressStr))))
423425 let totalMature = valueOrElse(getInteger(keyTotalMature()), getIntOrZero(keyLockParamTotalAmount()))
424426 let totalTeen = getIntOrZero(keyTotalTeen())
425427 let totalKid = getIntOrZero(keyTotalKid())
426- let userMature = valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
428+ let userMature = if ((userAddressStr == ""))
429+ then 0
430+ else valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
427431 let userTeen = getIntOrZero(keyUserTeen(userAddressStr))
428432 let userKid = getIntOrZero(keyUserKid(userAddressStr))
429433 let um = userDecrease(userMature, amountToRemove)
444448
445449
446450 func commonStake (userAddress,i) = {
447- let $t02108321137 = getParamsOrFail()
448- let stakedAssetId = $t02108321137._1
449- let minLockAmount = $t02108321137._2
451+ let $t02115921213 = getParamsOrFail()
452+ let stakedAssetId = $t02115921213._1
453+ let minLockAmount = $t02115921213._2
450454 if ((size(i.payments) != 1))
451455 then throw("Invalid payments size")
452456 else {
468472 if ((minLockAmount > stakedAmountNEW))
469473 then throw(("Min lock amount is " + toString(minLockAmount)))
470474 else {
471- let $t02199122093 = StatsResult(amount, 1, if (isNewUser)
475+ let $t02206722169 = StatsResult(amount, 1, if (isNewUser)
472476 then 1
473477 else 0)
474- let statsEntries = $t02199122093._1
475- let totalStaked = $t02199122093._2
476- let totalStakedNew = $t02199122093._3
478+ let statsEntries = $t02206722169._1
479+ let totalStaked = $t02206722169._2
480+ let totalStakedNew = $t02206722169._3
477481 (((([HistoryRecordEntry("stake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeightNEW)] ++ RewardEntries(isNewUser, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeightNEW)) ++ statsEntries) ++ r._1)
478482 }
479483 }
486490 if ((size(i.payments) > 0))
487491 then throw("payments are not accepted")
488492 else {
489- let $t02260022705 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
490- let isNewUser = $t02260022705._1
491- let stakedAmount = $t02260022705._2
492- let stakingStart = $t02260022705._3
493+ let $t02267622781 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
494+ let isNewUser = $t02267622781._1
495+ let stakedAmount = $t02267622781._2
496+ let stakingStart = $t02267622781._3
493497 let stakedAmountX = toBigInt(stakedAmount)
494498 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
495499 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
496500 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
497501 func forEachAssetCalcUnclaimedReward (accum,asset) = {
498- let $t02307623214 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
499- let rewardTotal = $t02307623214._1
500- let cached = $t02307623214._2
501- let dynamic = $t02307623214._3
502- let rewardCachedPartKEY = $t02307623214._4
502+ let $t02315223290 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
503+ let rewardTotal = $t02315223290._1
504+ let cached = $t02315223290._2
505+ let dynamic = $t02315223290._3
506+ let rewardCachedPartKEY = $t02315223290._4
503507 let claimedKEY = keyClaimed(userAddressStr, asset)
504- let $t02327423311 = accum
505- let data = $t02327423311._1
506- let claimedAmtByAsset = $t02327423311._2
508+ let $t02335023387 = accum
509+ let data = $t02335023387._1
510+ let claimedAmtByAsset = $t02335023387._2
507511 let newPart = makeString([asset, toString(rewardTotal)], ":")
508512 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
509513 if ((0 >= rewardTotal))
511515 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
512516 }
513517
514- let $t02377123884 = {
518+ let $t02384723960 = {
515519 let $l = supportedAssetsList
516520 let $s = size($l)
517521 let $acc0 = $Tuple2(nil, "")
525529
526530 $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)
527531 }
528- let transfers = $t02377123884._1
529- let claimedAmtByAssetResult = $t02377123884._2
532+ let transfers = $t02384723960._1
533+ let claimedAmtByAssetResult = $t02384723960._2
530534 if ((0 >= size(transfers)))
531535 then $Tuple2(nil, 0)
532536 else $Tuple2(((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))), size(transfers))
557561 else {
558562 let userAddress = i.caller
559563 let userAddressStr = toString(userAddress)
560- let $t02481824872 = getParamsOrFail()
561- let stakedAssetId = $t02481824872._1
562- let minLockAmount = $t02481824872._2
563- let $t02487524959 = getUserParamsOrFail(userAddress)
564- let isNewUser = $t02487524959._1
565- let stakedAmount = $t02487524959._2
566- let vpEffectiveHeight = $t02487524959._3
564+ let $t02489424948 = getParamsOrFail()
565+ let stakedAssetId = $t02489424948._1
566+ let minLockAmount = $t02489424948._2
567+ let $t02495125035 = getUserParamsOrFail(userAddress)
568+ let isNewUser = $t02495125035._1
569+ let stakedAmount = $t02495125035._2
570+ let vpEffectiveHeight = $t02495125035._3
567571 let swapParamsSTRUCT = asSwapParamsSTRUCT(reentrantInvoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStr, 0], nil))
568572 let swapLimitSpentInUsdn = swapParamsSTRUCT._2
569573 let blcks2LmtReset = swapParamsSTRUCT._3
575579 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(stakedAmount)))
576580 else {
577581 let stakedAmountNEW = (stakedAmount - amount)
578- let $t02559725755 = StatsResult(-(amount), if ((amount == stakedAmount))
582+ let $t02567325831 = StatsResult(-(amount), if ((amount == stakedAmount))
579583 then -1
580584 else 0, if ((amount == stakedAmount))
581585 then -1
582586 else 0)
583- let statsEntries = $t02559725755._1
584- let totalStaked = $t02559725755._2
585- let totalStakedNew = $t02559725755._3
587+ let statsEntries = $t02567325831._1
588+ let totalStaked = $t02567325831._2
589+ let totalStakedNew = $t02567325831._3
586590 (((([ScriptTransfer(userAddress, amount, stakedAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeight)] ++ RewardEntries(false, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeight)) ++ statsEntries) ++ onUnstake(userAddressStr, amount)._1)
587591 }
588592 }
674678 }
675679 else {
676680 let userAddress = addressFromStringValue(userAddressStr)
677- let $t02847728582 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
678- let isNewUser = $t02847728582._1
679- let stakedAmount = $t02847728582._2
680- let stakingStart = $t02847728582._3
681+ let $t02855328658 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
682+ let isNewUser = $t02855328658._1
683+ let stakedAmount = $t02855328658._2
684+ let stakingStart = $t02855328658._3
681685 let stakedAmountX = toBigInt(stakedAmount)
682686 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
683687 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
684688 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
685689 func forEachAssetCalcUnclaimedReward (accum,asset) = {
686- let $t02892829066 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
687- let rewardTotal = $t02892829066._1
688- let cached = $t02892829066._2
689- let dynamic = $t02892829066._3
690- let rewardCachedPartKEY = $t02892829066._4
690+ let $t02900429142 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
691+ let rewardTotal = $t02900429142._1
692+ let cached = $t02900429142._2
693+ let dynamic = $t02900429142._3
694+ let rewardCachedPartKEY = $t02900429142._4
691695 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
692696 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
693697 }
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 DEFAULTPERIOD = (1440 * 14)
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 IdxControlCfgSurfStakingDapp = 10
4545
4646 let IdxControlCfgGnsbtControllerDapp = 11
4747
4848 let IdxControlCfgRestV2Dapp = 12
4949
5050 let IdxControlCfgGovernanceDapp = 13
5151
5252 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
5353
5454
5555 func keyControlAddress () = "%s%s__config__controlAddress"
5656
5757
5858 func keyControlCfg () = "%s__controlConfig"
5959
6060
6161 func keyGnsbtFromSurfCoeff () = "%s%s__cfg__gnsbtFromSurfCoeff"
6262
6363
6464 func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP)
6565
6666
6767 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
6868
6969
7070 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
7171
7272 let controlCfg = readControlCfgOrFail(controlContract)
7373
7474 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
7575
7676 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
7777
7878 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
7979
8080 let govContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
8181
8282 let gnsbtFromSurfCoeff = valueOrElse(getInteger(this, keyGnsbtFromSurfCoeff()), 300)
8383
8484 func keyBondAsset () = "bond_asset_id"
8585
8686
8787 func keyAuctionContractAddress () = "auction_contract"
8888
8989
9090 func keyMinLockAmount () = "%s__minLockAmount"
9191
9292
9393 func keyStakedAssetId () = "%s__stakedAssetId"
9494
9595
9696 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator)
9797
9898
9999 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator)
100100
101101
102102 func keyLockParamVotingPowerEffectiveHeight (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "vpEffectiveHeight"], separator)
103103
104104
105105 func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator)
106106
107107
108108 func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator)
109109
110110
111111 func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator)
112112
113113
114114 func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator)
115115
116116
117117 func keyStatsDepositAmtByDay (timestamp) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(timestamp)], separator)
118118
119119
120120 func keyStatsDepositAmtTotals () = makeString(["%s%s", "stats", "depositAmtTotals"], separator)
121121
122122
123123 func keySupportedRewardAssets () = "supportedRewardAssets"
124124
125125
126126 func keyDepositNumLast () = makeString(["%s%s", "dep", "lastNum"], separator)
127127
128128
129129 func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s", "userRwdFromDepNum", userAddress], separator)
130130
131131
132132 func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator)
133133
134134
135135 func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator)
136136
137137
138138 func keyClaimed (userAddress,tkn) = makeString(["%s%s%s", "clm", userAddress, tkn], separator)
139139
140140
141141 func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator)
142142
143143
144144 func keyVpPeriodDuration () = makeString(["%s%s", "vp", "periodDuration"], separator)
145145
146146
147147 func keyLastTotalsPeriodProcessed () = makeString(["%s%s", "vp", "lastTotalsPeriodProcessed"], separator)
148148
149149
150150 func keyLastUserPeriodProcessed (userAddress) = makeString(["%s%s%s", "vp", "lastUserPeriodProcessed", userAddress], separator)
151151
152152
153153 func keyTotalMature () = makeString(["%s%s", "vp", "totalMature"], separator)
154154
155155
156156 func keyTotalTeen () = makeString(["%s%s", "vp", "totalTeen"], separator)
157157
158158
159159 func keyTotalKid () = makeString(["%s%s", "vp", "totalKid"], separator)
160160
161161
162162 func keyUserMature (userAddress) = makeString(["%s%s%s", "vp", "userMature", userAddress], separator)
163163
164164
165165 func keyUserTeen (userAddress) = makeString(["%s%s%s", "vp", "userTeen", userAddress], separator)
166166
167167
168168 func keyUserKid (userAddress) = makeString(["%s%s%s", "vp", "userKid", userAddress], separator)
169169
170170
171171 func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult)
172172
173173
174174 func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0)
175175
176176
177177 func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal)
178178
179179
180180 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined"))
181181
182182
183183 func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal)
184184
185185
186186 func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr))
187187
188188
189189 func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR))
190190 then unit
191191 else fromBase58String(assetStr)
192192
193193
194194 func asInt (val) = match val {
195195 case valInt: Int =>
196196 valInt
197197 case _ =>
198198 throw("fail to cast into Int")
199199 }
200200
201201
202202 func asSwapParamsSTRUCT (v) = match v {
203203 case struct: (Int, Int, Int, Int, Int, Int, Int) =>
204204 struct
205205 case _ =>
206206 throw("fail to cast into Int")
207207 }
208208
209209
210210 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)
211211
212212
213213 func formatClaimHistoryRecord (user,claimedRewards) = makeString(["%s%d%d%s", user, toString(lastBlock.height), toString(lastBlock.timestamp), claimedRewards], separator)
214214
215215
216216 func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart))
217217
218218
219219 func ClaimHistoryEntry (userAddress,txId,claimedRewards) = StringEntry(keyHistoryRecord("claim", userAddress, txId), formatClaimHistoryRecord(toString(userAddress), claimedRewards))
220220
221221
222222 func StatsResult (totalLockedInc,lockCountInc,usersCountInc) = {
223223 let locksCount = getIntOrZero(keyStatsLocksCount())
224224 let usersCount = getIntOrZero(keyStatsUsersCount())
225225 let totalAmount = getIntOrZero(keyLockParamTotalAmount())
226226 let totalAmountNew = (totalAmount + totalLockedInc)
227227 $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew)], totalAmount, totalAmountNew)
228228 }
229229
230230
231231 func LockParamsEntry (userAddress,amount,votingPowerEffectiveHeight) = [IntegerEntry(keyLockParamUserAmount(userAddress), amount), IntegerEntry(keyLockParamStartBlock(userAddress), votingPowerEffectiveHeight)]
232232
233233
234234 func getParamsOrFail () = $Tuple2(fromBase58String(getStringOrFail(this, keyStakedAssetId())), getIntOrFail(keyMinLockAmount()))
235235
236236
237237 func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0)
238238
239239
240240 func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress))
241241 then $Tuple3(false, getIntOrFail(keyLockParamUserAmount(userAddress)), getIntOrFail(keyLockParamStartBlock(userAddress)))
242242 else unit
243243
244244
245245 func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined"))
246246
247247
248248 let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "")
249249
250250 let supportedAssetsList = split(supportedAssetsStr, "_")
251251
252252 func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = {
253253 let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId)
254254 let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0"))
255255 let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0"))
256256 let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18))
257257 let rewardCachedPartKEY = keyReward(userAddress, assetId)
258258 let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0)
259259 $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY)
260260 }
261261
262262
263263 func toStartOfDay (timestamp) = ((timestamp / DAYMILLIS) * DAYMILLIS)
264264
265265
266266 func findElementPosition (src,element,sep) = {
267267 let elementStart = valueOrErrorMessage(indexOf(src, element), ((("there is no substring " + element) + " in ") + src))
268268 if ((elementStart == 0))
269269 then 0
270270 else {
271271 let left = take(src, elementStart)
272272 (size(split(left, sep)) - 1)
273273 }
274274 }
275275
276276
277277 let DepositTotalsPREFIX = "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d"
278278
279279 func updateDepositTotals (currVal,idxToUpdate,deltaAmt) = {
280280 let currArr = split(currVal, SEP)
281281 func updDepTotByIdx (idx) = if ((idx != idxToUpdate))
282282 then currArr[idx]
283283 else toString((parseIntValue(currArr[idx]) + deltaAmt))
284284
285285 makeString([DepositTotalsPREFIX, updDepTotByIdx(1), updDepTotByIdx(2), updDepTotByIdx(3), updDepTotByIdx(4), updDepTotByIdx(5), updDepTotByIdx(6), updDepTotByIdx(7), updDepTotByIdx(8), updDepTotByIdx(9), updDepTotByIdx(10), updDepTotByIdx(11), updDepTotByIdx(12), updDepTotByIdx(13), updDepTotByIdx(14), updDepTotByIdx(15), updDepTotByIdx(16), updDepTotByIdx(17), updDepTotByIdx(18)], SEP)
286286 }
287287
288288
289289 func DepositsTotalsEntries (depositAmount,assetIdStr) = {
290290 let startOfDay = toStartOfDay(lastBlock.timestamp)
291291 let byDayKEY = keyStatsDepositAmtByDay(startOfDay)
292292 let totalsKEY = keyStatsDepositAmtTotals()
293293 let position = findElementPosition(supportedAssetsStr, assetIdStr, "_")
294294 let defaultDATA = (DepositTotalsPREFIX + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0")
295295 let currTotalsDATA = valueOrElse(getString(this, totalsKEY), defaultDATA)
296296 let newTotalsDATA = updateDepositTotals(currTotalsDATA, (position + 1), depositAmount)
297297 [StringEntry(totalsKEY, newTotalsDATA), StringEntry(byDayKEY, newTotalsDATA)]
298298 }
299299
300300
301301 func RewardEntries (isNewUser,userAddress,stakedAmount) = {
302302 let stakedAmountX = toBigInt(stakedAmount)
303303 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress)
304304 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
305305 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
306306 func forEachAssetCacheUserReward (accum,asset) = {
307307 let $t01210412239 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
308308 let rewardTotal = $t01210412239._1
309309 let cached = $t01210412239._2
310310 let dynamic = $t01210412239._3
311311 let rewardCachedPartKEY = $t01210412239._4
312312 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
313313 }
314314
315315 if (if ((depositNumLast == -1))
316316 then (depositNumUser == -1)
317317 else false)
318318 then nil
319319 else if (if ((depositNumLast == -1))
320320 then (depositNumUser > -1)
321321 else false)
322322 then throw("invalid depositNumLast and depositNumUser state")
323323 else if (if ((depositNumLast > -1))
324324 then (depositNumUser >= -1)
325325 else false)
326326 then if (isNewUser)
327327 then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)]
328328 else ({
329329 let $l = supportedAssetsList
330330 let $s = size($l)
331331 let $acc0 = nil
332332 func $f0_1 ($a,$i) = if (($i >= $s))
333333 then $a
334334 else forEachAssetCacheUserReward($a, $l[$i])
335335
336336 func $f0_2 ($a,$i) = if (($i >= $s))
337337 then $a
338338 else throw("List size exceeds 9")
339339
340340 $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)
341341 } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast))
342342 else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser)))
343343 }
344344
345345
346346 func IncrementNotDistributedRewardEntry (tkn,amountInc) = {
347347 let notDistributedRewardKEY = keyNotDistributedReward(tkn)
348348 let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0)
349349 [IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))]
350350 }
351351
352352
353353 func surfToGnsbt (surfAmt) = (surfAmt / gnsbtFromSurfCoeff)
354354
355355
356356 func mergeStake (userAddress,amountToAdd,userTeen,userKid) = {
357357 let $t01516215272 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
358358 let isNewUser = $t01516215272._1
359359 let stakedAmount = $t01516215272._2
360360 let vpEffectiveHeight = $t01516215272._3
361361 let stakedAmountNEW = if (isNewUser)
362362 then amountToAdd
363363 else (amountToAdd + stakedAmount)
364364 let W2 = getIntOrElse(keyVpPeriodDuration(), DEFAULTPERIOD)
365365 let period = (height / W2)
366366 let vpEffectivePeriodNEW = if ((userKid > 0))
367367 then (period + 2)
368368 else if ((userTeen > 0))
369369 then (period + 1)
370370 else period
371371 $Tuple5(isNewUser, stakedAmount, vpEffectiveHeight, stakedAmountNEW, (vpEffectivePeriodNEW * W2))
372372 }
373373
374374
375375 func updateTotals () = {
376376 let period = (height / getIntOrElse(keyVpPeriodDuration(), DEFAULTPERIOD))
377377 if ((period > getIntOrZero(keyLastTotalsPeriodProcessed())))
378378 then {
379379 let totalMature = valueOrElse(getInteger(keyTotalMature()), getIntOrZero(keyLockParamTotalAmount()))
380380 [IntegerEntry(keyTotalMature(), (totalMature + getIntOrZero(keyTotalTeen()))), IntegerEntry(keyTotalTeen(), getIntOrZero(keyTotalKid())), IntegerEntry(keyTotalKid(), 0), IntegerEntry(keyLastTotalsPeriodProcessed(), period)]
381381 }
382382 else nil
383383 }
384384
385385
386386 func onStake (userAddressStr,amountToAdd) = if ((0 > amountToAdd))
387387 then throw("amountToAdd should be >= 0")
388388 else {
389389 let W2 = getIntOrElse(keyVpPeriodDuration(), DEFAULTPERIOD)
390390 let period = (height / W2)
391391 let totalMature = valueOrElse(getInteger(keyTotalMature()), getIntOrZero(keyLockParamTotalAmount()))
392392 let totalTeen = getIntOrZero(keyTotalTeen())
393393 let totalKid = getIntOrZero(keyTotalKid())
394- let userMature = valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
394+ let userMature = if ((userAddressStr == ""))
395+ then 0
396+ else valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
395397 let userTeen = getIntOrZero(keyUserTeen(userAddressStr))
396398 let userKid = getIntOrZero(keyUserKid(userAddressStr))
397399 let tmp = if ((period > getIntOrZero(keyLastUserPeriodProcessed(userAddressStr))))
398400 then $Tuple7((totalMature + userTeen), (totalTeen + (userKid - userTeen)), (totalKid - userKid), (userMature + userTeen), userKid, 0, [IntegerEntry(keyLastUserPeriodProcessed(userAddressStr), period)])
399401 else $Tuple7(totalMature, totalTeen, totalKid, userMature, userTeen, userKid, nil)
400402 let totals = if ((period > getIntOrZero(keyLastTotalsPeriodProcessed())))
401403 then $Tuple4([IntegerEntry(keyTotalMature(), (tmp._1 + tmp._2)), IntegerEntry(keyTotalTeen(), tmp._3), IntegerEntry(keyTotalKid(), 0), IntegerEntry(keyLastTotalsPeriodProcessed(), period)], (tmp._1 + tmp._2), tmp._3, 0)
402404 else $Tuple4(nil, totalMature, totalTeen, totalKid)
403405 let newKid = fraction(amountToAdd, (height % W2), W2)
404406 let newTeen = (amountToAdd - newKid)
405407 $Tuple7(((((totals._1 :+ IntegerEntry(keyUserMature(userAddressStr), tmp._4)) :+ IntegerEntry(keyUserTeen(userAddressStr), (tmp._5 + newTeen))) :+ IntegerEntry(keyUserKid(userAddressStr), (tmp._6 + newKid))) ++ tmp._7), totals._2, totals._3, totals._4, tmp._4, (tmp._5 + newTeen), (tmp._6 + newKid))
406408 }
407409
408410
409411 let IdxNewDiff = 0
410412
411413 let IdxNewGnsbt = 1
412414
413415 func userDecrease (gnsbt,diff) = if ((diff >= gnsbt))
414416 then [(diff - gnsbt), 0]
415417 else [0, (gnsbt - diff)]
416418
417419
418420 func onUnstake (userAddressStr,amountToRemove) = if ((amountToRemove >= 0))
419421 then throw("amountToRemove should be < 0")
420422 else {
421423 let W2 = getIntOrElse(keyVpPeriodDuration(), DEFAULTPERIOD)
422424 let period = (height / W2)
423425 let totalMature = valueOrElse(getInteger(keyTotalMature()), getIntOrZero(keyLockParamTotalAmount()))
424426 let totalTeen = getIntOrZero(keyTotalTeen())
425427 let totalKid = getIntOrZero(keyTotalKid())
426- let userMature = valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
428+ let userMature = if ((userAddressStr == ""))
429+ then 0
430+ else valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
427431 let userTeen = getIntOrZero(keyUserTeen(userAddressStr))
428432 let userKid = getIntOrZero(keyUserKid(userAddressStr))
429433 let um = userDecrease(userMature, amountToRemove)
430434 let ut = userDecrease(userTeen, um[IdxNewDiff])
431435 let uk = userDecrease(userKid, ut[IdxNewDiff])
432436 if ((uk[IdxNewDiff] != 0))
433437 then throw("Should not happen")
434438 else {
435439 let tmp = if ((period > getIntOrZero(keyLastUserPeriodProcessed(userAddressStr))))
436440 then $Tuple7((totalMature + ut[IdxNewGnsbt]), (totalTeen + (uk[IdxNewGnsbt] - ut[IdxNewGnsbt])), (totalKid - uk[IdxNewGnsbt]), (um[IdxNewGnsbt] + ut[IdxNewGnsbt]), uk[IdxNewGnsbt], 0, [IntegerEntry(keyLastUserPeriodProcessed(userAddressStr), period)])
437441 else $Tuple7(totalMature, totalTeen, totalKid, um[IdxNewGnsbt], ut[IdxNewGnsbt], uk[IdxNewGnsbt], nil)
438442 let totals = if ((period > getIntOrZero(keyLastTotalsPeriodProcessed())))
439443 then $Tuple4([IntegerEntry(keyTotalMature(), (tmp._1 + tmp._2)), IntegerEntry(keyTotalTeen(), tmp._3), IntegerEntry(keyTotalKid(), 0), IntegerEntry(keyLastTotalsPeriodProcessed(), period)], (tmp._1 + tmp._2), tmp._3, 0)
440444 else $Tuple4(nil, totalMature, totalTeen, totalKid)
441445 $Tuple7(((((totals._1 :+ IntegerEntry(keyUserMature(userAddressStr), tmp._4)) :+ IntegerEntry(keyUserTeen(userAddressStr), tmp._5)) :+ IntegerEntry(keyUserKid(userAddressStr), tmp._6)) ++ tmp._7), totals._2, totals._3, totals._4, tmp._4, tmp._5, tmp._6)
442446 }
443447 }
444448
445449
446450 func commonStake (userAddress,i) = {
447- let $t02108321137 = getParamsOrFail()
448- let stakedAssetId = $t02108321137._1
449- let minLockAmount = $t02108321137._2
451+ let $t02115921213 = getParamsOrFail()
452+ let stakedAssetId = $t02115921213._1
453+ let minLockAmount = $t02115921213._2
450454 if ((size(i.payments) != 1))
451455 then throw("Invalid payments size")
452456 else {
453457 let payment = i.payments[0]
454458 let amount = payment.amount
455459 let invalidAssetMessage = (("Invalid asset. " + toBase58String(stakedAssetId)) + " is expected")
456460 let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage)
457461 if ((assetId != stakedAssetId))
458462 then throw(invalidAssetMessage)
459463 else {
460464 let userAddressStr = toString(userAddress)
461465 let r = onStake(userAddressStr, amount)
462466 let mergedData = mergeStake(userAddress, amount, r._6, r._7)
463467 let isNewUser = mergedData._1
464468 let stakedAmount = mergedData._2
465469 let vpEffectiveHeight = mergedData._3
466470 let stakedAmountNEW = mergedData._4
467471 let vpEffectiveHeightNEW = mergedData._5
468472 if ((minLockAmount > stakedAmountNEW))
469473 then throw(("Min lock amount is " + toString(minLockAmount)))
470474 else {
471- let $t02199122093 = StatsResult(amount, 1, if (isNewUser)
475+ let $t02206722169 = StatsResult(amount, 1, if (isNewUser)
472476 then 1
473477 else 0)
474- let statsEntries = $t02199122093._1
475- let totalStaked = $t02199122093._2
476- let totalStakedNew = $t02199122093._3
478+ let statsEntries = $t02206722169._1
479+ let totalStaked = $t02206722169._2
480+ let totalStakedNew = $t02206722169._3
477481 (((([HistoryRecordEntry("stake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeightNEW)] ++ RewardEntries(isNewUser, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeightNEW)) ++ statsEntries) ++ r._1)
478482 }
479483 }
480484 }
481485 }
482486
483487
484488 func commonClaim (userAddress,i) = {
485489 let userAddressStr = toString(userAddress)
486490 if ((size(i.payments) > 0))
487491 then throw("payments are not accepted")
488492 else {
489- let $t02260022705 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
490- let isNewUser = $t02260022705._1
491- let stakedAmount = $t02260022705._2
492- let stakingStart = $t02260022705._3
493+ let $t02267622781 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
494+ let isNewUser = $t02267622781._1
495+ let stakedAmount = $t02267622781._2
496+ let stakingStart = $t02267622781._3
493497 let stakedAmountX = toBigInt(stakedAmount)
494498 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
495499 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
496500 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
497501 func forEachAssetCalcUnclaimedReward (accum,asset) = {
498- let $t02307623214 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
499- let rewardTotal = $t02307623214._1
500- let cached = $t02307623214._2
501- let dynamic = $t02307623214._3
502- let rewardCachedPartKEY = $t02307623214._4
502+ let $t02315223290 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
503+ let rewardTotal = $t02315223290._1
504+ let cached = $t02315223290._2
505+ let dynamic = $t02315223290._3
506+ let rewardCachedPartKEY = $t02315223290._4
503507 let claimedKEY = keyClaimed(userAddressStr, asset)
504- let $t02327423311 = accum
505- let data = $t02327423311._1
506- let claimedAmtByAsset = $t02327423311._2
508+ let $t02335023387 = accum
509+ let data = $t02335023387._1
510+ let claimedAmtByAsset = $t02335023387._2
507511 let newPart = makeString([asset, toString(rewardTotal)], ":")
508512 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
509513 if ((0 >= rewardTotal))
510514 then $Tuple2(data, claimedAmtByAssetNew)
511515 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
512516 }
513517
514- let $t02377123884 = {
518+ let $t02384723960 = {
515519 let $l = supportedAssetsList
516520 let $s = size($l)
517521 let $acc0 = $Tuple2(nil, "")
518522 func $f0_1 ($a,$i) = if (($i >= $s))
519523 then $a
520524 else forEachAssetCalcUnclaimedReward($a, $l[$i])
521525
522526 func $f0_2 ($a,$i) = if (($i >= $s))
523527 then $a
524528 else throw("List size exceeds 9")
525529
526530 $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)
527531 }
528- let transfers = $t02377123884._1
529- let claimedAmtByAssetResult = $t02377123884._2
532+ let transfers = $t02384723960._1
533+ let claimedAmtByAssetResult = $t02384723960._2
530534 if ((0 >= size(transfers)))
531535 then $Tuple2(nil, 0)
532536 else $Tuple2(((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))), size(transfers))
533537 }
534538 }
535539
536540
537541 @Callable(i)
538542 func constructor (minLockAmount,supportedRewardAssets,stakedAssetId) = if ((i.caller != this))
539543 then throw("Permission denied")
540544 else [IntegerEntry(keyMinLockAmount(), minLockAmount), StringEntry(keySupportedRewardAssets(), supportedRewardAssets), StringEntry(keyStakedAssetId(), stakedAssetId)]
541545
542546
543547
544548 @Callable(i)
545549 func stake () = commonStake(i.caller, i)
546550
547551
548552
549553 @Callable(i)
550554 func stakeByOriginCaller () = commonStake(i.originCaller, i)
551555
552556
553557
554558 @Callable(i)
555559 func unstake (amount) = if ((size(i.payments) != 0))
556560 then throw("unstake doesn't require any payment")
557561 else {
558562 let userAddress = i.caller
559563 let userAddressStr = toString(userAddress)
560- let $t02481824872 = getParamsOrFail()
561- let stakedAssetId = $t02481824872._1
562- let minLockAmount = $t02481824872._2
563- let $t02487524959 = getUserParamsOrFail(userAddress)
564- let isNewUser = $t02487524959._1
565- let stakedAmount = $t02487524959._2
566- let vpEffectiveHeight = $t02487524959._3
564+ let $t02489424948 = getParamsOrFail()
565+ let stakedAssetId = $t02489424948._1
566+ let minLockAmount = $t02489424948._2
567+ let $t02495125035 = getUserParamsOrFail(userAddress)
568+ let isNewUser = $t02495125035._1
569+ let stakedAmount = $t02495125035._2
570+ let vpEffectiveHeight = $t02495125035._3
567571 let swapParamsSTRUCT = asSwapParamsSTRUCT(reentrantInvoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStr, 0], nil))
568572 let swapLimitSpentInUsdn = swapParamsSTRUCT._2
569573 let blcks2LmtReset = swapParamsSTRUCT._3
570574 if ((swapLimitSpentInUsdn > 0))
571575 then throw((("You have already made a swap operation. Wait " + toString((height + blcks2LmtReset))) + " height to unstake"))
572576 else if ((0 >= stakedAmount))
573577 then throw("Nothing to unstake")
574578 else if ((amount > stakedAmount))
575579 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(stakedAmount)))
576580 else {
577581 let stakedAmountNEW = (stakedAmount - amount)
578- let $t02559725755 = StatsResult(-(amount), if ((amount == stakedAmount))
582+ let $t02567325831 = StatsResult(-(amount), if ((amount == stakedAmount))
579583 then -1
580584 else 0, if ((amount == stakedAmount))
581585 then -1
582586 else 0)
583- let statsEntries = $t02559725755._1
584- let totalStaked = $t02559725755._2
585- let totalStakedNew = $t02559725755._3
587+ let statsEntries = $t02567325831._1
588+ let totalStaked = $t02567325831._2
589+ let totalStakedNew = $t02567325831._3
586590 (((([ScriptTransfer(userAddress, amount, stakedAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeight)] ++ RewardEntries(false, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeight)) ++ statsEntries) ++ onUnstake(userAddressStr, amount)._1)
587591 }
588592 }
589593
590594
591595
592596 @Callable(i)
593597 func deposit () = if ((size(i.payments) != 1))
594598 then throw("exact 1 payment is allowed only")
595599 else {
596600 let pmt = i.payments[0]
597601 let amount = pmt.amount
598602 let pmtAssetId = valueOrElse(pmt.assetId, WAVESID)
599603 let pmtAssetIdStr = toBase58String(pmtAssetId)
600604 let pmtMultX = if ((pmtAssetId == WAVESID))
601605 then MULTX8
602606 else MULTX6
603607 let amountX = toBigInt(amount)
604608 let totalStaked = getIntOrElse(keyLockParamTotalAmount(), 0)
605609 let totalStakedX = toBigInt(totalStaked)
606610 if ((0 > totalStaked))
607611 then throw("TODO: case is not supported")
608612 else if ((totalStaked == 0))
609613 then IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount)
610614 else {
611615 let rewardPerNsbtX18 = fraction(amountX, MULTX18, totalStakedX)
612616 let depositNumLastKEY = keyDepositNumLast()
613617 let depositNumLast = getIntOrElse(depositNumLastKEY, -1)
614618 let depositNumNew = (depositNumLast + 1)
615619 if (!(contains(supportedAssetsStr, pmtAssetIdStr)))
616620 then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr))
617621 else {
618622 func refreshRewardPerNsbtSUM (accum,nextAsset) = {
619623 let rewardPerNsbtSumNewKEY = keyRewardPerNsbtSumAt(depositNumNew, nextAsset)
620624 let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0")
621625 (accum :+ (if ((nextAsset == pmtAssetIdStr))
622626 then StringEntry(rewardPerNsbtSumNewKEY, toString((parseBigIntValue(sumLastStr) + rewardPerNsbtX18)))
623627 else StringEntry(rewardPerNsbtSumNewKEY, sumLastStr)))
624628 }
625629
626630 ((({
627631 let $l = supportedAssetsList
628632 let $s = size($l)
629633 let $acc0 = nil
630634 func $f0_1 ($a,$i) = if (($i >= $s))
631635 then $a
632636 else refreshRewardPerNsbtSUM($a, $l[$i])
633637
634638 func $f0_2 ($a,$i) = if (($i >= $s))
635639 then $a
636640 else throw("List size exceeds 9")
637641
638642 $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)
639643 } :+ IntegerEntry(depositNumLastKEY, depositNumNew)) ++ DepositsTotalsEntries(amount, pmtAssetIdStr)) ++ updateTotals())
640644 }
641645 }
642646 }
643647
644648
645649
646650 @Callable(i)
647651 func claimRewards () = commonClaim(i.caller, i)
648652
649653
650654
651655 @Callable(i)
652656 func claimRewardsByOriginCaller () = commonClaim(i.originCaller, i)
653657
654658
655659
656660 @Callable(i)
657661 func unclaimedRewardsREADONLY (userAddressStr) = {
658662 func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_")
659663
660664 let unclaimedRewardStr = if ((userAddressStr == ""))
661665 then {
662666 let $l = supportedAssetsList
663667 let $s = size($l)
664668 let $acc0 = ""
665669 func $f0_1 ($a,$i) = if (($i >= $s))
666670 then $a
667671 else forEachAssetZeroReward($a, $l[$i])
668672
669673 func $f0_2 ($a,$i) = if (($i >= $s))
670674 then $a
671675 else throw("List size exceeds 9")
672676
673677 $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)
674678 }
675679 else {
676680 let userAddress = addressFromStringValue(userAddressStr)
677- let $t02847728582 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
678- let isNewUser = $t02847728582._1
679- let stakedAmount = $t02847728582._2
680- let stakingStart = $t02847728582._3
681+ let $t02855328658 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
682+ let isNewUser = $t02855328658._1
683+ let stakedAmount = $t02855328658._2
684+ let stakingStart = $t02855328658._3
681685 let stakedAmountX = toBigInt(stakedAmount)
682686 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
683687 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
684688 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
685689 func forEachAssetCalcUnclaimedReward (accum,asset) = {
686- let $t02892829066 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
687- let rewardTotal = $t02892829066._1
688- let cached = $t02892829066._2
689- let dynamic = $t02892829066._3
690- let rewardCachedPartKEY = $t02892829066._4
690+ let $t02900429142 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
691+ let rewardTotal = $t02900429142._1
692+ let cached = $t02900429142._2
693+ let dynamic = $t02900429142._3
694+ let rewardCachedPartKEY = $t02900429142._4
691695 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
692696 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
693697 }
694698
695699 let $l = supportedAssetsList
696700 let $s = size($l)
697701 let $acc0 = ""
698702 func $f0_1 ($a,$i) = if (($i >= $s))
699703 then $a
700704 else forEachAssetCalcUnclaimedReward($a, $l[$i])
701705
702706 func $f0_2 ($a,$i) = if (($i >= $s))
703707 then $a
704708 else throw("List size exceeds 9")
705709
706710 $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)
707711 }
708712 $Tuple2(nil, dropRight(unclaimedRewardStr, 1))
709713 }
710714
711715
712716
713717 @Callable(i)
714718 func updateVotingPower (userAddressStr) = if (!(isDefined(addressFromString(userAddressStr))))
715719 then throw("Invalid user address")
716720 else {
717721 let r = onStake(userAddressStr, 0)
718722 $Tuple2(r._1, [surfToGnsbt(r._2), surfToGnsbt(r._3), surfToGnsbt(r._4), surfToGnsbt(r._5), surfToGnsbt(r._6), surfToGnsbt(r._7)])
719723 }
720724
721725
722726
723727 @Callable(i)
724728 func surfStakingSYSREADONLY (userAddressStrOrEmpty,surfDiff) = {
725729 let surfTotal = getIntOrElse(keyLockParamTotalAmount(), 0)
726730 let gnsbtFromSurfTotal = surfToGnsbt(surfTotal)
727731 let r = if ((surfDiff >= 0))
728732 then onStake(userAddressStrOrEmpty, surfDiff)
729733 else onUnstake(userAddressStrOrEmpty, surfDiff)
730734 if ((userAddressStrOrEmpty == ""))
731735 then $Tuple2(nil, [0, surfTotal, 0, gnsbtFromSurfTotal, height, height, surfToGnsbt(r._2), surfToGnsbt(r._3), surfToGnsbt(r._4), surfToGnsbt(r._5), surfToGnsbt(r._6), surfToGnsbt(r._7)])
732736 else {
733737 let userAddress = toAddressOrFail(userAddressStrOrEmpty)
734738 let mergedData = mergeStake(userAddress, surfDiff, r._6, r._7)
735739 let stakedAmount = mergedData._2
736740 let vpEffectiveHeight = mergedData._3
737741 let stakedAmountNEW = mergedData._4
738742 let vpEffectiveHeightNEW = mergedData._5
739743 let surfUser = stakedAmount
740744 let gnsbtFromSurfUser = surfToGnsbt(surfUser)
741745 $Tuple2(nil, [surfUser, surfTotal, gnsbtFromSurfUser, gnsbtFromSurfTotal, vpEffectiveHeight, vpEffectiveHeightNEW, surfToGnsbt(r._2), surfToGnsbt(r._3), surfToGnsbt(r._4), surfToGnsbt(r._5), surfToGnsbt(r._6), surfToGnsbt(r._7)])
742746 }
743747 }
744748
745749
746750
747751 @Callable(i)
748752 func gnsbtFromSurfSYSREADONLY (surfAmt) = $Tuple2(nil, surfToGnsbt(surfAmt))
749753
750754
751755
752756 @Callable(i)
753757 func configSYSREADONLY () = {
754758 let minLockAmt = getIntegerValue(keyMinLockAmount())
755759 let surfVotingPowerRestrictivePeriod = DEFAULTPERIOD
756760 let brToStartSurfTransformation = 1150000
757761 $Tuple2(nil, [minLockAmt, (gnsbtFromSurfCoeff * MULT6), surfVotingPowerRestrictivePeriod, brToStartSurfTransformation])
758762 }
759763
760764

github/deemru/w8io/026f985 
120.49 ms