tx · 2ugweH89aAqAbn47dYAZ4fG6q8uaKMVMM8igJafuEXYD

3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J:  -0.01400000 Waves

2022.03.17 13:31 [1967820] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves

{ "type": 13, "id": "2ugweH89aAqAbn47dYAZ4fG6q8uaKMVMM8igJafuEXYD", "fee": 1400000, "feeAssetId": null, "timestamp": 1647513102364, "version": 1, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "3yjkMStyy2fygvWMTKJ8F29WA91f1bALwWXFHXZfwa5pvGWMUcDeyBgyMK9QgiWqs17nyphTtCjicmPTYhquoFTw" ], "script": "base64:AAIFAAAAAAAAACAIAhIHCgUICAEBCBIAEgMKAQESABIAEgMKAQgSAwoBCAAAADEAAAAACXNlcGFyYXRvcgIAAAACX18AAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAGTVVMVFg2CQABNgAAAAEFAAAABU1VTFQ2AAAAAAZNVUxUWDgJAAE2AAAAAQUAAAAFTVVMVDgAAAAAB01VTFRYMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKV0FWRVNJRFNUUgIAAAAFV0FWRVMAAAAAB1dBVkVTSUQJAAJZAAAAAQUAAAAKV0FWRVNJRFNUUgEAAAAMa2V5Qm9uZEFzc2V0AAAAAAIAAAANYm9uZF9hc3NldF9pZAEAAAAZa2V5QXVjdGlvbkNvbnRyYWN0QWRkcmVzcwAAAAACAAAAEGF1Y3Rpb25fY29udHJhY3QBAAAAGmtleU5ldXRyaW5vQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAbJXNfX25ldXRyaW5vQ29udHJhY3RBZGRyZXNzAQAAABZrZXlNYXRoQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAQJXNfX21h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AAAIFAAAADHRvdGFsTnNidEFtdAkABEwAAAACAAAAAAAAAAAABQAAAANuaWwEAAAAC3VzZXJBZGRyZXNzCQEAAAAPdG9BZGRyZXNzT3JGYWlsAAAAAQUAAAAOdXNlckFkZHJlc3NTdHIEAAAADSR0MDE3OTQ0MTgwNDgJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAABNnZXRVc2VyUGFyYW1zT3JVbml0AAAAAQUAAAALdXNlckFkZHJlc3MJAAUVAAAAAwYAAAAAAAAAAAAAAAAAAAAAAAAEAAAACWlzTmV3VXNlcggFAAAADSR0MDE3OTQ0MTgwNDgAAAACXzEEAAAAC3VzZXJOc2J0QW10CAUAAAANJHQwMTc5NDQxODA0OAAAAAJfMgQAAAAMc3Rha2luZ1N0YXJ0CAUAAAANJHQwMTc5NDQxODA0OAAAAAJfMwkABRQAAAACBQAAAANuaWwJAARMAAAAAgUAAAALdXNlck5zYnRBbXQJAARMAAAAAgUAAAAMdG90YWxOc2J0QW10CQAETAAAAAIFAAAADHN0YWtpbmdTdGFydAUAAAADbmlsAAAAAPk2QTg=", "chainId": 84, "height": 1967820, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4SajAxuPevgLaVq1n46WFcN2jw5jxd6ew1AEQWtWtyTS Next: EQWgVZuHMZ1EUuDmVr2NRCT7Cqmms6aufdYXKUSsBMSe Diff:
OldNewDifferences
462462
463463
464464 @Callable(i)
465-func nsbtStakingSYSREADONLY (userAddressStr) = if ((userAddressStr == ""))
466- then $Tuple2(nil, $Tuple2(0, 0))
467- else {
468- let userAddress = toAddressOrFail(userAddressStr)
469- let $t01786617970 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
470- let isNewUser = $t01786617970._1
471- let userNsbtAmt = $t01786617970._2
472- let stakingStart = $t01786617970._3
473- let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0)
474- $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart])
475- }
465+func nsbtStakingSYSREADONLY (userAddressStr) = {
466+ let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0)
467+ if ((userAddressStr == ""))
468+ then $Tuple2(nil, [0, totalNsbtAmt, 0])
469+ else {
470+ let userAddress = toAddressOrFail(userAddressStr)
471+ let $t01794418048 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
472+ let isNewUser = $t01794418048._1
473+ let userNsbtAmt = $t01794418048._2
474+ let stakingStart = $t01794418048._3
475+ $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart])
476+ }
477+ }
476478
477479
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let MULT6 = 1000000
77
88 let MULT8 = 100000000
99
1010 let MULTX6 = toBigInt(MULT6)
1111
1212 let MULTX8 = toBigInt(MULT8)
1313
1414 let MULTX18 = toBigInt(1000000000000000000)
1515
1616 let WAVESIDSTR = "WAVES"
1717
1818 let WAVESID = fromBase58String(WAVESIDSTR)
1919
2020 func keyBondAsset () = "bond_asset_id"
2121
2222
2323 func keyAuctionContractAddress () = "auction_contract"
2424
2525
2626 func keyNeutrinoContractAddress () = "%s__neutrinoContractAddress"
2727
2828
2929 func keyMathContractAddress () = "%s__mathContract"
3030
3131
3232 func keyMinLockAmount () = "%s__minLockAmount"
3333
3434
3535 func keyHalfLife () = "%s__halfLife"
3636
3737
3838 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator)
3939
4040
4141 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator)
4242
4343
4444 func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator)
4545
4646
4747 func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator)
4848
4949
5050 func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator)
5151
5252
5353 func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator)
5454
5555
5656 func keyNextPeriod () = "%s__nextPeriod"
5757
5858
5959 func keySupportedRewardAssets () = "supportedRewardAssets"
6060
6161
6262 func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator)
6363
6464
6565 func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator)
6666
6767
6868 func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator)
6969
7070
7171 func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator)
7272
7373
7474 func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator)
7575
7676
7777 func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult)
7878
7979
8080 func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0)
8181
8282
8383 func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal)
8484
8585
8686 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined"))
8787
8888
8989 func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal)
9090
9191
9292 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (("Mandatory this." + key) + " is not defined"))
9393
9494
9595 func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr))
9696
9797
9898 func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR))
9999 then unit
100100 else fromBase58String(assetStr)
101101
102102
103103 func asInt (val) = match val {
104104 case valInt: Int =>
105105 valInt
106106 case _ =>
107107 throw("fail to cast into Int")
108108 }
109109
110110
111111 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)
112112
113113
114114 func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart))
115115
116116
117117 func StatsResult (totalLockedInc,lockCountInc,usersCountInc) = {
118118 let locksCount = getIntOrZero(keyStatsLocksCount())
119119 let usersCount = getIntOrZero(keyStatsUsersCount())
120120 let totalAmount = getIntOrZero(keyLockParamTotalAmount())
121121 let totalAmountNew = (totalAmount + totalLockedInc)
122122 $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew)], totalAmount, totalAmountNew)
123123 }
124124
125125
126126 func LockParamsEntry (userAddress,amount,start) = [IntegerEntry(keyLockParamUserAmount(userAddress), amount), IntegerEntry(keyLockParamStartBlock(userAddress), start)]
127127
128128
129129 func getParamsOrFail () = {
130130 let neutrinoContract = addressFromStringValue(getStringOrFail(keyNeutrinoContractAddress()))
131131 $Tuple4(fromBase58String(getStringValue(neutrinoContract, keyAuctionContractAddress())), fromBase58String(getStringValue(neutrinoContract, keyBondAsset())), getIntOrFail(keyMinLockAmount()), getIntOrFail(keyHalfLife()))
132132 }
133133
134134
135135 func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0)
136136
137137
138138 func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress))
139139 then $Tuple3(false, getIntOrFail(keyLockParamUserAmount(userAddress)), getIntOrFail(keyLockParamStartBlock(userAddress)))
140140 else unit
141141
142142
143143 func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined"))
144144
145145
146146 let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "")
147147
148148 let supportedAssetsList = split(supportedAssetsStr, "_")
149149
150150 func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = {
151151 let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId)
152152 let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0"))
153153 let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0"))
154154 let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18))
155155 let rewardCachedPartKEY = keyReward(userAddress, assetId)
156156 let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0)
157157 $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY)
158158 }
159159
160160
161161 func RewardEntries (isNewUser,userAddress,stakedAmount) = {
162162 let stakedAmountX = toBigInt(stakedAmount)
163163 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress)
164164 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
165165 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
166166 func forEachAssetCacheUserReward (accum,asset) = {
167167 let $t067986933 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
168168 let rewardTotal = $t067986933._1
169169 let cached = $t067986933._2
170170 let dynamic = $t067986933._3
171171 let rewardCachedPartKEY = $t067986933._4
172172 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
173173 }
174174
175175 if (if ((depositNumLast == -1))
176176 then (depositNumUser == -1)
177177 else false)
178178 then nil
179179 else if (if ((depositNumLast == -1))
180180 then (depositNumUser > -1)
181181 else false)
182182 then throw("invalid depositNumLast and depositNumUser state")
183183 else if (if ((depositNumLast > -1))
184184 then (depositNumUser == -1)
185185 else false)
186186 then if (isNewUser)
187187 then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)]
188188 else throw("isNewUser must not be false in 5 + 6 cases")
189189 else if (if ((depositNumLast > -1))
190190 then (depositNumUser > -1)
191191 else false)
192192 then if (isNewUser)
193193 then throw((((("invalid management for isNewUser=" + toString(isNewUser)) + " and depositNumUser=") + toString(depositNumUser)) + " during full unstake"))
194194 else ({
195195 let $l = supportedAssetsList
196196 let $s = size($l)
197197 let $acc0 = nil
198198 func $f0_1 ($a,$i) = if (($i >= $s))
199199 then $a
200200 else forEachAssetCacheUserReward($a, $l[$i])
201201
202202 func $f0_2 ($a,$i) = if (($i >= $s))
203203 then $a
204204 else throw("List size exceeds 10")
205205
206206 $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)
207207 } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast))
208208 else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser)))
209209 }
210210
211211
212212 func IncrementNotDistributedRewardEntry (tkn,amountInc) = {
213213 let notDistributedRewardKEY = keyNotDistributedReward(tkn)
214214 let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0)
215215 [IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))]
216216 }
217217
218218
219219 @Callable(i)
220220 func constructor (neutrinoContractAddress,mathContractAddress,minLockAmount,halfLife,supportedRewardAssets) = if ((i.caller != this))
221221 then throw("Permission denied")
222222 else [StringEntry(keyNeutrinoContractAddress(), neutrinoContractAddress), StringEntry(keyMathContractAddress(), mathContractAddress), IntegerEntry(keyMinLockAmount(), minLockAmount), IntegerEntry(keyHalfLife(), halfLife), StringEntry(keySupportedRewardAssets(), supportedRewardAssets)]
223223
224224
225225
226226 @Callable(i)
227227 func stake () = {
228228 let $t01080310882 = getParamsOrFail()
229229 let auctionContract = $t01080310882._1
230230 let bondAssetId = $t01080310882._2
231231 let minLockAmount = $t01080310882._3
232232 let halfLife = $t01080310882._4
233233 if ((size(i.payments) != 1))
234234 then throw("Invalid payments size")
235235 else {
236236 let payment = i.payments[0]
237237 let amount = payment.amount
238238 let invalidAssetMessage = (("Invalid asset. " + toBase58String(bondAssetId)) + " is expected")
239239 let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage)
240240 if ((assetId != bondAssetId))
241241 then throw(invalidAssetMessage)
242242 else {
243243 let userAddress = i.caller
244244 let userAddressStr = toString(i.caller)
245245 let $t01142411531 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, -1))
246246 let isNewUser = $t01142411531._1
247247 let lockAmount = $t01142411531._2
248248 let lockStartHeight = $t01142411531._3
249249 let mergedAmount = if (isNewUser)
250250 then amount
251251 else (amount + lockAmount)
252252 let mergedStartHeight = if (isNewUser)
253253 then height
254254 else {
255255 let mathContract = addressFromStringValue(getStringOrFail(keyMathContractAddress()))
256256 asInt(invoke(mathContract, "mergeStakesREADONLY", [amount, height, lockAmount, lockStartHeight, halfLife], nil))
257257 }
258258 if ((minLockAmount > mergedAmount))
259259 then throw(("Min lock amount is " + toString(minLockAmount)))
260260 else {
261261 let $t01198112083 = StatsResult(amount, 1, if (isNewUser)
262262 then 1
263263 else 0)
264264 let statsEntries = $t01198112083._1
265265 let totalStaked = $t01198112083._2
266266 let totalStakedNew = $t01198112083._3
267267 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
268268 ((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight)) ++ statsEntries) :+ IntegerEntry(keyUserRewardFromDepositNum(userAddressStr), getIntOrElse(keyDepositNumLast(), -1)))
269269 }
270270 }
271271 }
272272 }
273273
274274
275275
276276 @Callable(i)
277277 func unstake (amount) = {
278278 let userAddress = i.caller
279279 let userAddressStr = toString(userAddress)
280280 let $t01258812666 = getParamsOrFail()
281281 let auctionAddress = $t01258812666._1
282282 let bondAssetId = $t01258812666._2
283283 let minLockAmount = $t01258812666._3
284284 let halfLife = $t01258812666._4
285285 let $t01266912743 = getUserParamsOrFail(userAddress)
286286 let isNewUser = $t01266912743._1
287287 let lockAmount = $t01266912743._2
288288 let lockStart = $t01266912743._3
289289 if ((0 >= lockAmount))
290290 then throw("Nothing to unstake")
291291 else if ((amount > lockAmount))
292292 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(lockAmount)))
293293 else {
294294 let mathContract = addressFromStringValue(getStringOrFail(keyMathContractAddress()))
295295 let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil))
296296 let $t01314413298 = StatsResult(-(amount), if ((amount == lockAmount))
297297 then -1
298298 else 0, if ((amount == lockAmount))
299299 then -1
300300 else 0)
301301 let statsEntries = $t01314413298._1
302302 let totalStaked = $t01314413298._2
303303 let totalStakedNew = $t01314413298._3
304304 ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(Address(auctionAddress), comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart)) ++ statsEntries)
305305 }
306306 }
307307
308308
309309
310310 @Callable(i)
311311 func deposit () = if ((size(i.payments) != 1))
312312 then throw("exact 1 payment is allowed only")
313313 else {
314314 let pmt = i.payments[0]
315315 let amount = pmt.amount
316316 let pmtAssetId = valueOrElse(pmt.assetId, WAVESID)
317317 let pmtAssetIdStr = toBase58String(pmtAssetId)
318318 let pmtMultX = if ((pmtAssetId == WAVESID))
319319 then MULTX8
320320 else MULTX6
321321 let amountX = toBigInt(amount)
322322 let totalStaked = getIntOrElse(keyLockParamTotalAmount(), 0)
323323 let totalStakedX = toBigInt(totalStaked)
324324 if ((0 > totalStaked))
325325 then throw("TODO: case is not supported")
326326 else if ((totalStaked == 0))
327327 then IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount)
328328 else {
329329 let rewardPerNsbtX18 = fraction(amountX, MULTX18, totalStakedX)
330330 let depositNumLastKEY = keyDepositNumLast()
331331 let depositNumLast = getIntOrElse(depositNumLastKEY, -1)
332332 let depositNumNew = (depositNumLast + 1)
333333 if (!(contains(supportedAssetsStr, pmtAssetIdStr)))
334334 then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr))
335335 else {
336336 func refreshRewardPerNsbtSUM (accum,nextAsset) = {
337337 let rewardPerNsbtSumNewKEY = keyRewardPerNsbtSumAt(depositNumNew, nextAsset)
338338 let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0")
339339 (accum :+ (if ((nextAsset == pmtAssetIdStr))
340340 then StringEntry(rewardPerNsbtSumNewKEY, toString((parseBigIntValue(sumLastStr) + rewardPerNsbtX18)))
341341 else StringEntry(rewardPerNsbtSumNewKEY, sumLastStr)))
342342 }
343343
344344 ({
345345 let $l = supportedAssetsList
346346 let $s = size($l)
347347 let $acc0 = nil
348348 func $f0_1 ($a,$i) = if (($i >= $s))
349349 then $a
350350 else refreshRewardPerNsbtSUM($a, $l[$i])
351351
352352 func $f0_2 ($a,$i) = if (($i >= $s))
353353 then $a
354354 else throw("List size exceeds 10")
355355
356356 $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)
357357 } :+ IntegerEntry(depositNumLastKEY, depositNumNew))
358358 }
359359 }
360360 }
361361
362362
363363
364364 @Callable(i)
365365 func claimRewards () = {
366366 let userAddress = i.caller
367367 let userAddressStr = toString(userAddress)
368368 let $t01548015585 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
369369 let isNewUser = $t01548015585._1
370370 let stakedAmount = $t01548015585._2
371371 let stakingStart = $t01548015585._3
372372 let stakedAmountX = toBigInt(stakedAmount)
373373 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
374374 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
375375 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
376376 func forEachAssetCalcUnclaimedReward (accum,asset) = {
377377 let $t01594616084 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
378378 let rewardTotal = $t01594616084._1
379379 let cached = $t01594616084._2
380380 let dynamic = $t01594616084._3
381381 let rewardCachedPartKEY = $t01594616084._4
382382 if ((0 >= rewardTotal))
383383 then accum
384384 else ((accum :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(rewardCachedPartKEY, 0))
385385 }
386386
387387 let transfers = {
388388 let $l = supportedAssetsList
389389 let $s = size($l)
390390 let $acc0 = nil
391391 func $f0_1 ($a,$i) = if (($i >= $s))
392392 then $a
393393 else forEachAssetCalcUnclaimedReward($a, $l[$i])
394394
395395 func $f0_2 ($a,$i) = if (($i >= $s))
396396 then $a
397397 else throw("List size exceeds 10")
398398
399399 $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)
400400 }
401401 if ((0 >= size(transfers)))
402402 then throw("nothing to claim")
403403 else transfers
404404 }
405405
406406
407407
408408 @Callable(i)
409409 func unclaimedRewardsREADONLY (userAddressStr) = {
410410 func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_")
411411
412412 let unclaimedRewardStr = if ((userAddressStr == ""))
413413 then {
414414 let $l = supportedAssetsList
415415 let $s = size($l)
416416 let $acc0 = ""
417417 func $f0_1 ($a,$i) = if (($i >= $s))
418418 then $a
419419 else forEachAssetZeroReward($a, $l[$i])
420420
421421 func $f0_2 ($a,$i) = if (($i >= $s))
422422 then $a
423423 else throw("List size exceeds 10")
424424
425425 $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)
426426 }
427427 else {
428428 let userAddress = addressFromStringValue(userAddressStr)
429429 let $t01684816953 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
430430 let isNewUser = $t01684816953._1
431431 let stakedAmount = $t01684816953._2
432432 let stakingStart = $t01684816953._3
433433 let stakedAmountX = toBigInt(stakedAmount)
434434 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
435435 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
436436 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
437437 func forEachAssetCalcUnclaimedReward (accum,asset) = {
438438 let $t01729917437 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
439439 let rewardTotal = $t01729917437._1
440440 let cached = $t01729917437._2
441441 let dynamic = $t01729917437._3
442442 let rewardCachedPartKEY = $t01729917437._4
443443 ((accum + makeString([asset, toString(rewardTotal), "0"], ":")) + "_")
444444 }
445445
446446 let $l = supportedAssetsList
447447 let $s = size($l)
448448 let $acc0 = ""
449449 func $f0_1 ($a,$i) = if (($i >= $s))
450450 then $a
451451 else forEachAssetCalcUnclaimedReward($a, $l[$i])
452452
453453 func $f0_2 ($a,$i) = if (($i >= $s))
454454 then $a
455455 else throw("List size exceeds 10")
456456
457457 $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)
458458 }
459459 $Tuple2(nil, dropRight(unclaimedRewardStr, 1))
460460 }
461461
462462
463463
464464 @Callable(i)
465-func nsbtStakingSYSREADONLY (userAddressStr) = if ((userAddressStr == ""))
466- then $Tuple2(nil, $Tuple2(0, 0))
467- else {
468- let userAddress = toAddressOrFail(userAddressStr)
469- let $t01786617970 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
470- let isNewUser = $t01786617970._1
471- let userNsbtAmt = $t01786617970._2
472- let stakingStart = $t01786617970._3
473- let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0)
474- $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart])
475- }
465+func nsbtStakingSYSREADONLY (userAddressStr) = {
466+ let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0)
467+ if ((userAddressStr == ""))
468+ then $Tuple2(nil, [0, totalNsbtAmt, 0])
469+ else {
470+ let userAddress = toAddressOrFail(userAddressStr)
471+ let $t01794418048 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
472+ let isNewUser = $t01794418048._1
473+ let userNsbtAmt = $t01794418048._2
474+ let stakingStart = $t01794418048._3
475+ $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart])
476+ }
477+ }
476478
477479

github/deemru/w8io/169f3d6 
60.24 ms