tx · CG7KVqCcnKv6x8HarFkyTrUWRkxG6c1CMjuJ9uw5zoNC

3MyN19SDzDpXyEtabWvag2P5mkeFrdFVd4h:  -0.01900000 Waves

2022.10.14 12:00 [2271812] smart account 3MyN19SDzDpXyEtabWvag2P5mkeFrdFVd4h > SELF 0.00000000 Waves

{ "type": 13, "id": "CG7KVqCcnKv6x8HarFkyTrUWRkxG6c1CMjuJ9uw5zoNC", "fee": 1900000, "feeAssetId": null, "timestamp": 1665738129490, "version": 1, "sender": "3MyN19SDzDpXyEtabWvag2P5mkeFrdFVd4h", "senderPublicKey": "4HqqczFwZHAsxp1oNq8dQkRStfCKBL79X99icQ2B6FYn", "proofs": [ "ciYKCLGoLbiCwYjUGGnajqsese9XWKRndkEJkC8WMCtFg8DFydBb1WDWp4VWhPA9FZSyS266kL5saDg73926bq3" ], "script": "base64:BgIlCAISBQoDAQgIEgASABIDCgEBEgASABIAEgMKAQgSBAoCCAESAEwAC3JldmlzaW9uTnVtAgAACXNlcGFyYXRvcgICX18AA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDgAgMLXLwAGTVVMVFg2CQC2AgEFBU1VTFQ2AAZNVUxUWDgJALYCAQUFTVVMVDgAB01VTFRYMTgJALYCAQCAgJC7utat8A0AGUlkeENvbnRyb2xDZmdOZXV0cmlub0RhcHAAAQAYSWR4Q29udHJvbENmZ0F1Y3Rpb25EYXBwAAIAFElkeENvbnRyb2xDZmdScGREYXBwAAMAFUlkeENvbnRyb2xDZmdNYXRoRGFwcAAEABxJZHhDb250cm9sQ2ZnTGlxdWlkYXRpb25EYXBwAAUAFUlkeENvbnRyb2xDZmdSZXN0RGFwcAAGAB1JZHhDb250cm9sQ2ZnTm9kZVJlZ2lzdHJ5RGFwcAAHABxJZHhDb250cm9sQ2ZnTnNidFN0YWtpbmdEYXBwAAgAGUlkeENvbnRyb2xDZmdNZWRpYXRvckRhcHAACQAcSWR4Q29udHJvbENmZ1N1cmZTdGFraW5nRGFwcAAKACBJZHhDb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NzU3RyT3JFbXB0eQQKbWVyZ2VkRGF0YQkBCm1lcmdlU3Rha2UCBQt1c2VyQWRkcmVzcwUIdXNkbkRpZmYECWlzTmV3VXNlcggFCm1lcmdlZERhdGECXzEEDHN0YWtlZEFtb3VudAgFCm1lcmdlZERhdGECXzIEEXZwRWZmZWN0aXZlSGVpZ2h0CAUKbWVyZ2VkRGF0YQJfMwQPc3Rha2VkQW1vdW50TkVXCAUKbWVyZ2VkRGF0YQJfNAQUdnBFZmZlY3RpdmVIZWlnaHRORVcIBQptZXJnZWREYXRhAl81BAh1c2RuVXNlcgUMc3Rha2VkQW1vdW50CQCUCgIFA25pbAkAzAgCBQh1c2RuVXNlcgkAzAgCBQl1c2RuVG90YWwJAMwIAgAACQDMCAIAAAkAzAgCBRF2cEVmZmVjdGl2ZUhlaWdodAkAzAgCBRR2cEVmZmVjdGl2ZUhlaWdodE5FVwUDbmlsAWkBEWNvbmZpZ1NZU1JFQURPTkxZAAQKbWluTG9ja0FtdAkBEUBleHRyTmF0aXZlKDEwNTUpAQkBEGtleU1pbkxvY2tBbW91bnQACQCUCgIFA25pbAkAzAgCBQptaW5Mb2NrQW10BQNuaWwA0yQ9mQ==", "chainId": 84, "height": 2271812, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E3yMgRXnYujy2oV8W5LDv98PeUamSkJTT1ZuDPSXTS8W Next: EuP2aX2tH2ZQYRYmZmHRg9P7PpKetkVW2xd3gDa6rgaF Diff:
OldNewDifferences
217217 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
218218 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
219219 func forEachAssetCacheUserReward (accum,asset) = {
220- let $t086918826 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
221- let rewardTotal = $t086918826._1
222- let cached = $t086918826._2
223- let dynamic = $t086918826._3
224- let rewardCachedPartKEY = $t086918826._4
220+ let $t087088843 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
221+ let rewardTotal = $t087088843._1
222+ let cached = $t087088843._2
223+ let dynamic = $t087088843._3
224+ let rewardCachedPartKEY = $t087088843._4
225225 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
226226 }
227227
278278
279279
280280 func mergeStake (userAddress,amountToAdd) = {
281- let $t01241112521 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
282- let isNewUser = $t01241112521._1
283- let stakedAmount = $t01241112521._2
284- let vpEffectiveHeight = $t01241112521._3
281+ let $t01065810768 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
282+ let isNewUser = $t01065810768._1
283+ let stakedAmount = $t01065810768._2
284+ let vpEffectiveHeight = $t01065810768._3
285285 let stakedAmountNEW = if (isNewUser)
286286 then amountToAdd
287287 else (amountToAdd + stakedAmount)
294294
295295
296296 func commonStake (userAddress,i) = {
297- let $t01300713061 = getParamsOrFail()
298- let stakedAssetId = $t01300713061._1
299- let minLockAmount = $t01300713061._2
297+ let $t01125411308 = getParamsOrFail()
298+ let stakedAssetId = $t01125411308._1
299+ let minLockAmount = $t01125411308._2
300300 if ((size(i.payments) != 1))
301301 then throw("Invalid payments size")
302302 else {
317317 if ((minLockAmount > stakedAmountNEW))
318318 then throw(("Min lock amount is " + toString(minLockAmount)))
319319 else {
320- let $t01386013962 = StatsResult(amount, 1, if (isNewUser)
320+ let $t01210712209 = StatsResult(amount, 1, if (isNewUser)
321321 then 1
322322 else 0)
323- let statsEntries = $t01386013962._1
324- let totalStaked = $t01386013962._2
325- let totalStakedNew = $t01386013962._3
323+ let statsEntries = $t01210712209._1
324+ let totalStaked = $t01210712209._2
325+ let totalStakedNew = $t01210712209._3
326326 ((([HistoryRecordEntry("stake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeightNEW)] ++ RewardEntries(isNewUser, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeightNEW)) ++ statsEntries)
327327 }
328328 }
335335 if ((size(i.payments) > 0))
336336 then throw("payments are not accepted")
337337 else {
338- let $t01444114546 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
339- let isNewUser = $t01444114546._1
340- let stakedAmount = $t01444114546._2
341- let stakingStart = $t01444114546._3
338+ let $t01268812793 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
339+ let isNewUser = $t01268812793._1
340+ let stakedAmount = $t01268812793._2
341+ let stakingStart = $t01268812793._3
342342 let stakedAmountX = toBigInt(stakedAmount)
343343 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
344344 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
345345 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
346346 func forEachAssetCalcUnclaimedReward (accum,asset) = {
347- let $t01491715055 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
348- let rewardTotal = $t01491715055._1
349- let cached = $t01491715055._2
350- let dynamic = $t01491715055._3
351- let rewardCachedPartKEY = $t01491715055._4
347+ let $t01316413302 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
348+ let rewardTotal = $t01316413302._1
349+ let cached = $t01316413302._2
350+ let dynamic = $t01316413302._3
351+ let rewardCachedPartKEY = $t01316413302._4
352352 let claimedKEY = keyClaimed(userAddressStr, asset)
353- let $t01511515152 = accum
354- let data = $t01511515152._1
355- let claimedAmtByAsset = $t01511515152._2
353+ let $t01336213399 = accum
354+ let data = $t01336213399._1
355+ let claimedAmtByAsset = $t01336213399._2
356356 let newPart = makeString([asset, toString(rewardTotal)], ":")
357357 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
358358 if ((0 >= rewardTotal))
360360 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
361361 }
362362
363- let $t01561215726 = {
363+ let $t01385913973 = {
364364 let $l = supportedAssetsList
365365 let $s = size($l)
366366 let $acc0 = $Tuple2(nil, "")
374374
375375 $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)
376376 }
377- let transfers = $t01561215726._1
378- let claimedAmtByAssetResult = $t01561215726._2
377+ let transfers = $t01385913973._1
378+ let claimedAmtByAssetResult = $t01385913973._2
379379 if ((0 >= size(transfers)))
380380 then nil
381381 else ((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1)))
406406 else {
407407 let userAddress = i.caller
408408 let userAddressStr = toString(userAddress)
409- let $t01663516689 = getParamsOrFail()
410- let stakedAssetId = $t01663516689._1
411- let minLockAmount = $t01663516689._2
412- let $t01669216776 = getUserParamsOrFail(userAddress)
413- let isNewUser = $t01669216776._1
414- let stakedAmount = $t01669216776._2
415- let vpEffectiveHeight = $t01669216776._3
409+ let $t01488214936 = getParamsOrFail()
410+ let stakedAssetId = $t01488214936._1
411+ let minLockAmount = $t01488214936._2
412+ let $t01493915023 = getUserParamsOrFail(userAddress)
413+ let isNewUser = $t01493915023._1
414+ let stakedAmount = $t01493915023._2
415+ let vpEffectiveHeight = $t01493915023._3
416416 let swapParamsSTRUCT = asSwapParamsSTRUCT(reentrantInvoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStr, 0], nil))
417417 let swapLimitSpentInUsdn = swapParamsSTRUCT._2
418418 let blcks2LmtReset = swapParamsSTRUCT._3
424424 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(stakedAmount)))
425425 else {
426426 let stakedAmountNEW = (stakedAmount - amount)
427- let $t01741417572 = StatsResult(-(amount), if ((amount == stakedAmount))
427+ let $t01566115819 = StatsResult(-(amount), if ((amount == stakedAmount))
428428 then -1
429429 else 0, if ((amount == stakedAmount))
430430 then -1
431431 else 0)
432- let statsEntries = $t01741417572._1
433- let totalStaked = $t01741417572._2
434- let totalStakedNew = $t01741417572._3
432+ let statsEntries = $t01566115819._1
433+ let totalStaked = $t01566115819._2
434+ let totalStakedNew = $t01566115819._3
435435 ((([ScriptTransfer(userAddress, amount, stakedAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeight)] ++ RewardEntries(false, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeight)) ++ statsEntries)
436436 }
437437 }
521521 }
522522 else {
523523 let userAddress = addressFromStringValue(userAddressStr)
524- let $t02008920194 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
525- let isNewUser = $t02008920194._1
526- let stakedAmount = $t02008920194._2
527- let stakingStart = $t02008920194._3
524+ let $t01833618441 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
525+ let isNewUser = $t01833618441._1
526+ let stakedAmount = $t01833618441._2
527+ let stakingStart = $t01833618441._3
528528 let stakedAmountX = toBigInt(stakedAmount)
529529 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
530530 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
531531 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
532532 func forEachAssetCalcUnclaimedReward (accum,asset) = {
533- let $t02054020678 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
534- let rewardTotal = $t02054020678._1
535- let cached = $t02054020678._2
536- let dynamic = $t02054020678._3
537- let rewardCachedPartKEY = $t02054020678._4
533+ let $t01878718925 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
534+ let rewardTotal = $t01878718925._1
535+ let cached = $t01878718925._2
536+ let dynamic = $t01878718925._3
537+ let rewardCachedPartKEY = $t01878718925._4
538538 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
539539 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
540540 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let revisionNum = ""
55
66 let separator = "__"
77
88 let SEP = "__"
99
1010 let MULT6 = 1000000
1111
1212 let MULT8 = 100000000
1313
1414 let MULTX6 = toBigInt(MULT6)
1515
1616 let MULTX8 = toBigInt(MULT8)
1717
1818 let MULTX18 = toBigInt(1000000000000000000)
1919
2020 let IdxControlCfgNeutrinoDapp = 1
2121
2222 let IdxControlCfgAuctionDapp = 2
2323
2424 let IdxControlCfgRpdDapp = 3
2525
2626 let IdxControlCfgMathDapp = 4
2727
2828 let IdxControlCfgLiquidationDapp = 5
2929
3030 let IdxControlCfgRestDapp = 6
3131
3232 let IdxControlCfgNodeRegistryDapp = 7
3333
3434 let IdxControlCfgNsbtStakingDapp = 8
3535
3636 let IdxControlCfgMediatorDapp = 9
3737
3838 let IdxControlCfgSurfStakingDapp = 10
3939
4040 let IdxControlCfgGnsbtControllerDapp = 11
4141
4242 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
4343
4444
4545 func keyControlAddress () = "%s%s__config__controlAddress"
4646
4747
4848 func keyControlCfg () = "%s__controlConfig"
4949
5050
5151 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
5252
5353
5454 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
5555
5656
5757 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP"))
5858
5959 let controlCfg = readControlCfgOrFail(controlContract)
6060
6161 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
6262
6363 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
6464
6565 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
6666
6767 func keyBondAsset () = "bond_asset_id"
6868
6969
7070 func keyAuctionContractAddress () = "auction_contract"
7171
7272
7373 func keyMinLockAmount () = "%s__minLockAmount"
7474
7575
7676 func keyStakedAssetId () = "%s__stakedAssetId"
7777
7878
7979 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator)
8080
8181
8282 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator)
8383
8484
8585 func keyLockParamVotingPowerEffectiveHeight (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "vpEffectiveHeight"], separator)
8686
8787
8888 func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator)
8989
9090
9191 func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator)
9292
9393
9494 func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator)
9595
9696
9797 func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator)
9898
9999
100100 func keyNextPeriod () = "%s__nextPeriod"
101101
102102
103103 func keySupportedRewardAssets () = "supportedRewardAssets"
104104
105105
106106 func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator)
107107
108108
109109 func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator)
110110
111111
112112 func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator)
113113
114114
115115 func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator)
116116
117117
118118 func keyClaimed (userAddress,tkn) = makeString(["%s%s%s", "clm", userAddress, tkn], separator)
119119
120120
121121 func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator)
122122
123123
124124 func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult)
125125
126126
127127 func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0)
128128
129129
130130 func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal)
131131
132132
133133 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined"))
134134
135135
136136 func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal)
137137
138138
139139 func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr))
140140
141141
142142 func toAssetVect (assetStr) = fromBase58String(assetStr)
143143
144144
145145 func asInt (val) = match val {
146146 case valInt: Int =>
147147 valInt
148148 case _ =>
149149 throw("fail to cast into Int")
150150 }
151151
152152
153153 func asSwapParamsSTRUCT (v) = match v {
154154 case struct: (Int, Int, Int, Int, Int, Int, Int) =>
155155 struct
156156 case _ =>
157157 throw("fail to cast into Int")
158158 }
159159
160160
161161 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)
162162
163163
164164 func formatClaimHistoryRecord (user,claimedRewards) = makeString(["%s%d%d%s", user, toString(lastBlock.height), toString(lastBlock.timestamp), claimedRewards], separator)
165165
166166
167167 func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart))
168168
169169
170170 func ClaimHistoryEntry (userAddress,txId,claimedRewards) = StringEntry(keyHistoryRecord("claim", userAddress, txId), formatClaimHistoryRecord(toString(userAddress), claimedRewards))
171171
172172
173173 func StatsResult (totalLockedInc,lockCountInc,usersCountInc) = {
174174 let locksCount = getIntOrZero(keyStatsLocksCount())
175175 let usersCount = getIntOrZero(keyStatsUsersCount())
176176 let totalAmount = getIntOrZero(keyLockParamTotalAmount())
177177 let totalAmountNew = (totalAmount + totalLockedInc)
178178 $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew)], totalAmount, totalAmountNew)
179179 }
180180
181181
182182 func LockParamsEntry (userAddress,amount,votingPowerEffectiveHeight) = [IntegerEntry(keyLockParamUserAmount(userAddress), amount), IntegerEntry(keyLockParamStartBlock(userAddress), votingPowerEffectiveHeight)]
183183
184184
185185 func getParamsOrFail () = $Tuple2(fromBase58String(getStringOrFail(this, keyStakedAssetId())), getIntOrFail(keyMinLockAmount()))
186186
187187
188188 func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0)
189189
190190
191191 func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress))
192192 then $Tuple3(false, getIntOrFail(keyLockParamUserAmount(userAddress)), getIntOrFail(keyLockParamStartBlock(userAddress)))
193193 else unit
194194
195195
196196 func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined"))
197197
198198
199199 let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "")
200200
201201 let supportedAssetsList = split(supportedAssetsStr, "_")
202202
203203 func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = {
204204 let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId)
205205 let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0"))
206206 let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0"))
207207 let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18))
208208 let rewardCachedPartKEY = keyReward(userAddress, assetId)
209209 let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0)
210210 $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY)
211211 }
212212
213213
214214 func RewardEntries (isNewUser,userAddress,stakedAmount) = {
215215 let stakedAmountX = toBigInt(stakedAmount)
216216 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress)
217217 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
218218 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
219219 func forEachAssetCacheUserReward (accum,asset) = {
220- let $t086918826 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
221- let rewardTotal = $t086918826._1
222- let cached = $t086918826._2
223- let dynamic = $t086918826._3
224- let rewardCachedPartKEY = $t086918826._4
220+ let $t087088843 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
221+ let rewardTotal = $t087088843._1
222+ let cached = $t087088843._2
223+ let dynamic = $t087088843._3
224+ let rewardCachedPartKEY = $t087088843._4
225225 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
226226 }
227227
228228 if (if ((depositNumLast == -1))
229229 then (depositNumUser == -1)
230230 else false)
231231 then nil
232232 else if (if ((depositNumLast == -1))
233233 then (depositNumUser > -1)
234234 else false)
235235 then throw("invalid depositNumLast and depositNumUser state")
236236 else if (if ((depositNumLast > -1))
237237 then (depositNumUser >= -1)
238238 else false)
239239 then if (isNewUser)
240240 then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)]
241241 else ({
242242 let $l = supportedAssetsList
243243 let $s = size($l)
244244 let $acc0 = nil
245245 func $f0_1 ($a,$i) = if (($i >= $s))
246246 then $a
247247 else forEachAssetCacheUserReward($a, $l[$i])
248248
249249 func $f0_2 ($a,$i) = if (($i >= $s))
250250 then $a
251251 else throw("List size exceeds 10")
252252
253253 $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)
254254 } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast))
255255 else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser)))
256256 }
257257
258258
259259 func IncrementNotDistributedRewardEntry (tkn,amountInc) = {
260260 let notDistributedRewardKEY = keyNotDistributedReward(tkn)
261261 let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0)
262262 [IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))]
263263 }
264264
265265
266266 func mergeVotingPowerEffectiveHeight (quarantinePeriod,vpEffectiveHeight,stakedAmt,stakedAmtNEW) = {
267267 let remainingToWait = (vpEffectiveHeight - height)
268268 if ((0 >= remainingToWait))
269269 then (height + quarantinePeriod)
270270 else {
271271 let alreadyWaited = (quarantinePeriod - remainingToWait)
272272 let kX8 = if ((stakedAmtNEW != 0))
273273 then fraction(stakedAmt, MULT8, stakedAmtNEW)
274274 else vpEffectiveHeight
275275 ((quarantinePeriod + height) - fraction(alreadyWaited, kX8, MULT8))
276276 }
277277 }
278278
279279
280280 func mergeStake (userAddress,amountToAdd) = {
281- let $t01241112521 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
282- let isNewUser = $t01241112521._1
283- let stakedAmount = $t01241112521._2
284- let vpEffectiveHeight = $t01241112521._3
281+ let $t01065810768 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
282+ let isNewUser = $t01065810768._1
283+ let stakedAmount = $t01065810768._2
284+ let vpEffectiveHeight = $t01065810768._3
285285 let stakedAmountNEW = if (isNewUser)
286286 then amountToAdd
287287 else (amountToAdd + stakedAmount)
288288 let quarantinePeriod = (1440 * 14)
289289 let vpEffectiveHeightNEW = if (isNewUser)
290290 then (quarantinePeriod + height)
291291 else mergeVotingPowerEffectiveHeight(quarantinePeriod, vpEffectiveHeight, stakedAmount, stakedAmountNEW)
292292 $Tuple5(isNewUser, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeightNEW)
293293 }
294294
295295
296296 func commonStake (userAddress,i) = {
297- let $t01300713061 = getParamsOrFail()
298- let stakedAssetId = $t01300713061._1
299- let minLockAmount = $t01300713061._2
297+ let $t01125411308 = getParamsOrFail()
298+ let stakedAssetId = $t01125411308._1
299+ let minLockAmount = $t01125411308._2
300300 if ((size(i.payments) != 1))
301301 then throw("Invalid payments size")
302302 else {
303303 let payment = i.payments[0]
304304 let amount = payment.amount
305305 let invalidAssetMessage = (("Invalid asset. " + toBase58String(stakedAssetId)) + " is expected")
306306 let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage)
307307 if ((assetId != stakedAssetId))
308308 then throw(invalidAssetMessage)
309309 else {
310310 let userAddressStr = toString(userAddress)
311311 let mergedData = mergeStake(userAddress, amount)
312312 let isNewUser = mergedData._1
313313 let stakedAmount = mergedData._2
314314 let vpEffectiveHeight = mergedData._3
315315 let stakedAmountNEW = mergedData._4
316316 let vpEffectiveHeightNEW = mergedData._5
317317 if ((minLockAmount > stakedAmountNEW))
318318 then throw(("Min lock amount is " + toString(minLockAmount)))
319319 else {
320- let $t01386013962 = StatsResult(amount, 1, if (isNewUser)
320+ let $t01210712209 = StatsResult(amount, 1, if (isNewUser)
321321 then 1
322322 else 0)
323- let statsEntries = $t01386013962._1
324- let totalStaked = $t01386013962._2
325- let totalStakedNew = $t01386013962._3
323+ let statsEntries = $t01210712209._1
324+ let totalStaked = $t01210712209._2
325+ let totalStakedNew = $t01210712209._3
326326 ((([HistoryRecordEntry("stake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeightNEW)] ++ RewardEntries(isNewUser, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeightNEW)) ++ statsEntries)
327327 }
328328 }
329329 }
330330 }
331331
332332
333333 func commonClaim (userAddress,i) = {
334334 let userAddressStr = toString(userAddress)
335335 if ((size(i.payments) > 0))
336336 then throw("payments are not accepted")
337337 else {
338- let $t01444114546 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
339- let isNewUser = $t01444114546._1
340- let stakedAmount = $t01444114546._2
341- let stakingStart = $t01444114546._3
338+ let $t01268812793 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
339+ let isNewUser = $t01268812793._1
340+ let stakedAmount = $t01268812793._2
341+ let stakingStart = $t01268812793._3
342342 let stakedAmountX = toBigInt(stakedAmount)
343343 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
344344 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
345345 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
346346 func forEachAssetCalcUnclaimedReward (accum,asset) = {
347- let $t01491715055 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
348- let rewardTotal = $t01491715055._1
349- let cached = $t01491715055._2
350- let dynamic = $t01491715055._3
351- let rewardCachedPartKEY = $t01491715055._4
347+ let $t01316413302 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
348+ let rewardTotal = $t01316413302._1
349+ let cached = $t01316413302._2
350+ let dynamic = $t01316413302._3
351+ let rewardCachedPartKEY = $t01316413302._4
352352 let claimedKEY = keyClaimed(userAddressStr, asset)
353- let $t01511515152 = accum
354- let data = $t01511515152._1
355- let claimedAmtByAsset = $t01511515152._2
353+ let $t01336213399 = accum
354+ let data = $t01336213399._1
355+ let claimedAmtByAsset = $t01336213399._2
356356 let newPart = makeString([asset, toString(rewardTotal)], ":")
357357 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
358358 if ((0 >= rewardTotal))
359359 then $Tuple2(data, claimedAmtByAssetNew)
360360 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
361361 }
362362
363- let $t01561215726 = {
363+ let $t01385913973 = {
364364 let $l = supportedAssetsList
365365 let $s = size($l)
366366 let $acc0 = $Tuple2(nil, "")
367367 func $f0_1 ($a,$i) = if (($i >= $s))
368368 then $a
369369 else forEachAssetCalcUnclaimedReward($a, $l[$i])
370370
371371 func $f0_2 ($a,$i) = if (($i >= $s))
372372 then $a
373373 else throw("List size exceeds 10")
374374
375375 $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)
376376 }
377- let transfers = $t01561215726._1
378- let claimedAmtByAssetResult = $t01561215726._2
377+ let transfers = $t01385913973._1
378+ let claimedAmtByAssetResult = $t01385913973._2
379379 if ((0 >= size(transfers)))
380380 then nil
381381 else ((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1)))
382382 }
383383 }
384384
385385
386386 @Callable(i)
387387 func constructor (minLockAmount,supportedRewardAssets,stakedAssetId) = if ((i.caller != this))
388388 then throw("Permission denied")
389389 else [IntegerEntry(keyMinLockAmount(), minLockAmount), StringEntry(keySupportedRewardAssets(), supportedRewardAssets), StringEntry(keyStakedAssetId(), stakedAssetId)]
390390
391391
392392
393393 @Callable(i)
394394 func stake () = commonStake(i.caller, i)
395395
396396
397397
398398 @Callable(i)
399399 func stakeByOriginCaller () = commonStake(i.originCaller, i)
400400
401401
402402
403403 @Callable(i)
404404 func unstake (amount) = if ((size(i.payments) != 0))
405405 then throw("unstake doesn't require any payment")
406406 else {
407407 let userAddress = i.caller
408408 let userAddressStr = toString(userAddress)
409- let $t01663516689 = getParamsOrFail()
410- let stakedAssetId = $t01663516689._1
411- let minLockAmount = $t01663516689._2
412- let $t01669216776 = getUserParamsOrFail(userAddress)
413- let isNewUser = $t01669216776._1
414- let stakedAmount = $t01669216776._2
415- let vpEffectiveHeight = $t01669216776._3
409+ let $t01488214936 = getParamsOrFail()
410+ let stakedAssetId = $t01488214936._1
411+ let minLockAmount = $t01488214936._2
412+ let $t01493915023 = getUserParamsOrFail(userAddress)
413+ let isNewUser = $t01493915023._1
414+ let stakedAmount = $t01493915023._2
415+ let vpEffectiveHeight = $t01493915023._3
416416 let swapParamsSTRUCT = asSwapParamsSTRUCT(reentrantInvoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStr, 0], nil))
417417 let swapLimitSpentInUsdn = swapParamsSTRUCT._2
418418 let blcks2LmtReset = swapParamsSTRUCT._3
419419 if ((swapLimitSpentInUsdn > 0))
420420 then throw((("You have already made a swap operation. Wait " + toString((height + blcks2LmtReset))) + " height to unstake"))
421421 else if ((0 >= stakedAmount))
422422 then throw("Nothing to unstake")
423423 else if ((amount > stakedAmount))
424424 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(stakedAmount)))
425425 else {
426426 let stakedAmountNEW = (stakedAmount - amount)
427- let $t01741417572 = StatsResult(-(amount), if ((amount == stakedAmount))
427+ let $t01566115819 = StatsResult(-(amount), if ((amount == stakedAmount))
428428 then -1
429429 else 0, if ((amount == stakedAmount))
430430 then -1
431431 else 0)
432- let statsEntries = $t01741417572._1
433- let totalStaked = $t01741417572._2
434- let totalStakedNew = $t01741417572._3
432+ let statsEntries = $t01566115819._1
433+ let totalStaked = $t01566115819._2
434+ let totalStakedNew = $t01566115819._3
435435 ((([ScriptTransfer(userAddress, amount, stakedAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeight)] ++ RewardEntries(false, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeight)) ++ statsEntries)
436436 }
437437 }
438438
439439
440440
441441 @Callable(i)
442442 func deposit () = if ((size(i.payments) != 1))
443443 then throw("exact 1 payment is allowed only")
444444 else {
445445 let pmt = i.payments[0]
446446 let amount = pmt.amount
447447 let pmtAssetId = value(pmt.assetId)
448448 let pmtAssetIdStr = toBase58String(pmtAssetId)
449449 let pmtMultX = MULTX6
450450 let amountX = toBigInt(amount)
451451 let totalStaked = getIntOrElse(keyLockParamTotalAmount(), 0)
452452 let totalStakedX = toBigInt(totalStaked)
453453 if ((0 > totalStaked))
454454 then throw("TODO: case is not supported")
455455 else if ((totalStaked == 0))
456456 then IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount)
457457 else {
458458 let rewardPerNsbtX18 = fraction(amountX, MULTX18, totalStakedX)
459459 let depositNumLastKEY = keyDepositNumLast()
460460 let depositNumLast = getIntOrElse(depositNumLastKEY, -1)
461461 let depositNumNew = (depositNumLast + 1)
462462 if (!(contains(supportedAssetsStr, pmtAssetIdStr)))
463463 then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr))
464464 else {
465465 func refreshRewardPerNsbtSUM (accum,nextAsset) = {
466466 let rewardPerNsbtSumNewKEY = keyRewardPerNsbtSumAt(depositNumNew, nextAsset)
467467 let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0")
468468 (accum :+ (if ((nextAsset == pmtAssetIdStr))
469469 then StringEntry(rewardPerNsbtSumNewKEY, toString((parseBigIntValue(sumLastStr) + rewardPerNsbtX18)))
470470 else StringEntry(rewardPerNsbtSumNewKEY, sumLastStr)))
471471 }
472472
473473 ({
474474 let $l = supportedAssetsList
475475 let $s = size($l)
476476 let $acc0 = nil
477477 func $f0_1 ($a,$i) = if (($i >= $s))
478478 then $a
479479 else refreshRewardPerNsbtSUM($a, $l[$i])
480480
481481 func $f0_2 ($a,$i) = if (($i >= $s))
482482 then $a
483483 else throw("List size exceeds 10")
484484
485485 $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)
486486 } :+ IntegerEntry(depositNumLastKEY, depositNumNew))
487487 }
488488 }
489489 }
490490
491491
492492
493493 @Callable(i)
494494 func claimRewards () = commonClaim(i.caller, i)
495495
496496
497497
498498 @Callable(i)
499499 func claimRewardsByOriginCaller () = commonClaim(i.originCaller, i)
500500
501501
502502
503503 @Callable(i)
504504 func unclaimedRewardsREADONLY (userAddressStr) = {
505505 func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_")
506506
507507 let unclaimedRewardStr = if ((userAddressStr == ""))
508508 then {
509509 let $l = supportedAssetsList
510510 let $s = size($l)
511511 let $acc0 = ""
512512 func $f0_1 ($a,$i) = if (($i >= $s))
513513 then $a
514514 else forEachAssetZeroReward($a, $l[$i])
515515
516516 func $f0_2 ($a,$i) = if (($i >= $s))
517517 then $a
518518 else throw("List size exceeds 10")
519519
520520 $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)
521521 }
522522 else {
523523 let userAddress = addressFromStringValue(userAddressStr)
524- let $t02008920194 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
525- let isNewUser = $t02008920194._1
526- let stakedAmount = $t02008920194._2
527- let stakingStart = $t02008920194._3
524+ let $t01833618441 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
525+ let isNewUser = $t01833618441._1
526+ let stakedAmount = $t01833618441._2
527+ let stakingStart = $t01833618441._3
528528 let stakedAmountX = toBigInt(stakedAmount)
529529 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
530530 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
531531 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
532532 func forEachAssetCalcUnclaimedReward (accum,asset) = {
533- let $t02054020678 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
534- let rewardTotal = $t02054020678._1
535- let cached = $t02054020678._2
536- let dynamic = $t02054020678._3
537- let rewardCachedPartKEY = $t02054020678._4
533+ let $t01878718925 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
534+ let rewardTotal = $t01878718925._1
535+ let cached = $t01878718925._2
536+ let dynamic = $t01878718925._3
537+ let rewardCachedPartKEY = $t01878718925._4
538538 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
539539 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
540540 }
541541
542542 let $l = supportedAssetsList
543543 let $s = size($l)
544544 let $acc0 = ""
545545 func $f0_1 ($a,$i) = if (($i >= $s))
546546 then $a
547547 else forEachAssetCalcUnclaimedReward($a, $l[$i])
548548
549549 func $f0_2 ($a,$i) = if (($i >= $s))
550550 then $a
551551 else throw("List size exceeds 10")
552552
553553 $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)
554554 }
555555 $Tuple2(nil, dropRight(unclaimedRewardStr, 1))
556556 }
557557
558558
559559
560560 @Callable(i)
561561 func usdnStakingSYSREADONLY (userAddressStrOrEmpty,usdnDiff) = {
562562 let usdnTotal = getIntOrElse(keyLockParamTotalAmount(), 0)
563563 if ((userAddressStrOrEmpty == ""))
564564 then $Tuple2(nil, [0, usdnTotal, 0, 0, 0, height, height])
565565 else {
566566 let userAddress = toAddressOrFail(userAddressStrOrEmpty)
567567 let mergedData = mergeStake(userAddress, usdnDiff)
568568 let isNewUser = mergedData._1
569569 let stakedAmount = mergedData._2
570570 let vpEffectiveHeight = mergedData._3
571571 let stakedAmountNEW = mergedData._4
572572 let vpEffectiveHeightNEW = mergedData._5
573573 let usdnUser = stakedAmount
574574 $Tuple2(nil, [usdnUser, usdnTotal, 0, 0, vpEffectiveHeight, vpEffectiveHeightNEW])
575575 }
576576 }
577577
578578
579579
580580 @Callable(i)
581581 func configSYSREADONLY () = {
582582 let minLockAmt = getIntegerValue(keyMinLockAmount())
583583 $Tuple2(nil, [minLockAmt])
584584 }
585585
586586

github/deemru/w8io/026f985 
77.58 ms