tx · 8nAmz4b52GRuJxvKgapCad3GjtggsPCwpCA8s2M9ebJW

3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J:  -0.02500000 Waves

2023.03.01 16:44 [2471076] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves

{ "type": 13, "id": "8nAmz4b52GRuJxvKgapCad3GjtggsPCwpCA8s2M9ebJW", "fee": 2500000, "feeAssetId": null, "timestamp": 1677678259774, "version": 2, "chainId": 84, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "2o2CxHoxBaxmfUustzjQUZhhAAvdyzn66d1jpygqC9yDwt9BnJg2YASmad1rg5EfJquYZVZwe51vXwrrqS5eu6hQ", "g3xtzPDFG1RrixZKATxJJCQ81X7naCSFxpXRuDmPLQxQcUHL3Thw1WcDgBQcSYA766groVKZKXN4ahiqgCNQMCo", "3wGjZTr95TTSQhDiWKa9jkCj7fyYVxb2ThgwwcTvpofAwgRR6BUvTLvTPp23hvVMz1HEUZDnUNRMwvZ4NzZB1Yty" ], "script": "base64:BgIpCAISBwoFCAgBAQgSABIDCgEBEgASABIAEgMKAQgSBAoCCAESBAoCCAFRAAlzZXBhcmF0b3ICAl9fAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ABk1VTFRYNgkAtgIBBQVNVUxUNgAGTVVMVFg4CQC2AgEFBU1VTFQ4AAdNVUxUWDE4CQC2AgEAgICQu7rWrfANAApXQVZFU0lEU1RSAgVXQVZFUwAHV0FWRVNJRAkA2QQBBQpXQVZFU0lEU1RSAAlEQVlNSUxMSVMAgLiZKQAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAABABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAgAUSWR4Q29udHJvbENmZ1JwZERhcHAAAwAVSWR4Q29udHJvbENmZ01hdGhE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0OUJ5ZjhRbXBaV2VEVlJpbTR5VjcJAMwIAgIsRFV1dUxqWHU5OG5Cd1pjN2Zxd0NUanRBM25uUndnVGJrTVNyNVNVMk5tRFIJAMwIAgIsRFV1dUxqWHU5OG5Cd1pjN2Zxd0NUanRBM25uUndnVGJrTVNyNVNVMk5tRFIFA25pbAUDU0VQBBBwdWJLZXlBZG1pbnNMaXN0CQC1CQIJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUPY29udHJvbENvbnRyYWN0Agwlc19fbXVsdGlzaWcFE3B1YktleUFkbWluc0xpc3RTdHIFA1NFUAQFY291bnQJAGQCCQBkAgkAZAIDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAAAAAEAAAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEJANkEAQkAkQMCBRBwdWJLZXlBZG1pbnNMaXN0AAEAAQAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAgABAAADCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwADCQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAADAAIAAAkAZwIFBWNvdW50AAOU6Kz7", "height": 2471076, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DkR5VwKLzDvUNktFVrtBLJMsbqLxK2h5fxFcHFyz9mmN Next: 8XRVz3C9SW18UN3dZCdJnc9DtfFpsQxNvSECtHRfA9ZJ 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 IdxControlCfgNeutrinoDapp = 1
2525
2626 let IdxControlCfgAuctionDapp = 2
2727
2828 let IdxControlCfgRpdDapp = 3
2929
3030 let IdxControlCfgMathDapp = 4
3131
3232 let IdxControlCfgLiquidationDapp = 5
3333
3434 let IdxControlCfgRestDapp = 6
3535
3636 let IdxControlCfgNodeRegistryDapp = 7
3737
3838 let IdxControlCfgNsbtStakingDapp = 8
3939
4040 let IdxControlCfgMediatorDapp = 9
4141
4242 let IdxControlCfgGovernanceDapp = 13
4343
4444 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
4545
4646
4747 func keyControlAddress () = "%s%s__config__controlAddress"
4848
4949
5050 func keyControlCfg () = "%s__controlConfig"
5151
5252
5353 func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP)
5454
5555
5656 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
5757
5858
5959 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
6060
6161 let controlCfg = readControlCfgOrFail(controlContract)
6262
6363 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
6464
6565 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
6666
6767 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
6868
6969 let govContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
7070
7171 func keyBondAsset () = "bond_asset_id"
7272
7373
7474 func keyUserGnsbtReleaseTime (userAddr) = ("%s%s_userGnsbtReleaseTime__" + userAddr)
7575
7676
7777 func keyNeutrinoContractAddress () = "%s__neutrinoContractAddress"
7878
7979
8080 func keyMathContractAddress () = "%s__mathContract"
8181
8282
8383 func keyMinLockAmount () = "%s__minLockAmount"
8484
8585
8686 func keyHalfLife () = "%s__halfLife"
8787
8888
8989 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator)
9090
9191
9292 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator)
9393
9494
9595 func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator)
9696
9797
9898 func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator)
9999
100100
101101 func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator)
102102
103103
104104 func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator)
105105
106106
107107 func keyStatsDepositAmtByDay (timestamp) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(timestamp)], separator)
108108
109109
110110 func keyStatsDepositAmtTotals () = makeString(["%s%s%d", "stats", "depositAmtTotals"], separator)
111111
112112
113113 func keyNextPeriod () = "%s__nextPeriod"
114114
115115
116116 func keySupportedRewardAssets () = "supportedRewardAssets"
117117
118118
119119 func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator)
120120
121121
122122 func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator)
123123
124124
125125 func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator)
126126
127127
128128 func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator)
129129
130130
131131 func keyClaimed (userAddress,tkn) = makeString(["%s%s%s", "clm", userAddress, tkn], separator)
132132
133133
134134 func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator)
135135
136136
137137 func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult)
138138
139139
140140 func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0)
141141
142142
143143 func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal)
144144
145145
146146 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined"))
147147
148148
149149 func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal)
150150
151151
152152 func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr))
153153
154154
155155 func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR))
156156 then unit
157157 else fromBase58String(assetStr)
158158
159159
160160 func asInt (val) = match val {
161161 case valInt: Int =>
162162 valInt
163163 case _ =>
164164 throw("fail to cast into Int")
165165 }
166166
167167
168168 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)
169169
170170
171171 func formatClaimHistoryRecord (user,claimedRewards) = makeString(["%s%d%d%s", user, toString(lastBlock.height), toString(lastBlock.timestamp), claimedRewards], separator)
172172
173173
174174 func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart))
175175
176176
177177 func ClaimHistoryEntry (userAddress,txId,claimedRewards) = StringEntry(keyHistoryRecord("claim", userAddress, txId), formatClaimHistoryRecord(toString(userAddress), claimedRewards))
178178
179179
180180 func StatsResult (totalLockedInc,lockCountInc,usersCountInc) = {
181181 let locksCount = getIntOrZero(keyStatsLocksCount())
182182 let usersCount = getIntOrZero(keyStatsUsersCount())
183183 let totalAmount = getIntOrZero(keyLockParamTotalAmount())
184184 let totalAmountNew = (totalAmount + totalLockedInc)
185185 $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew)], totalAmount, totalAmountNew)
186186 }
187187
188188
189189 func LockParamsEntry (userAddress,amount,start) = [IntegerEntry(keyLockParamUserAmount(userAddress), amount), IntegerEntry(keyLockParamStartBlock(userAddress), start)]
190190
191191
192192 func getParamsOrFail () = $Tuple3(fromBase58String(getStringValue(neutrinoContract, keyBondAsset())), getIntOrFail(keyMinLockAmount()), getIntOrFail(keyHalfLife()))
193193
194194
195195 func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0)
196196
197197
198198 func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress))
199199 then $Tuple3(false, getIntOrFail(keyLockParamUserAmount(userAddress)), getIntOrFail(keyLockParamStartBlock(userAddress)))
200200 else unit
201201
202202
203203 func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined"))
204204
205205
206206 let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "")
207207
208208 let supportedAssetsList = split(supportedAssetsStr, "_")
209209
210210 func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = {
211211 let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId)
212212 let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0"))
213213 let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0"))
214214 let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18))
215215 let rewardCachedPartKEY = keyReward(userAddress, assetId)
216216 let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0)
217217 $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY)
218218 }
219219
220220
221221 func toStartOfDay (timestamp) = ((timestamp / DAYMILLIS) * DAYMILLIS)
222222
223223
224224 func findElementPosition (src,element,sep) = {
225225 let elementStart = valueOrErrorMessage(indexOf(src, element), ((("there is no substring " + element) + " in ") + src))
226226 if ((elementStart == 0))
227227 then 0
228228 else {
229229 let left = take(src, elementStart)
230230 (size(split(left, sep)) - 1)
231231 }
232232 }
233233
234234
235235 let DepositTotalsPREFIX = "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d"
236236
237237 let defaultTotalsDATA = (DepositTotalsPREFIX + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0")
238238
239239 func RewardEntries (isNewUser,userAddress,stakedAmount) = {
240240 let stakedAmountX = toBigInt(stakedAmount)
241241 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress)
242242 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
243243 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
244244 func forEachAssetCacheUserReward (accum,asset) = {
245245 let $t095209655 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
246246 let rewardTotal = $t095209655._1
247247 let cached = $t095209655._2
248248 let dynamic = $t095209655._3
249249 let rewardCachedPartKEY = $t095209655._4
250250 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
251251 }
252252
253253 if (if ((depositNumLast == -1))
254254 then (depositNumUser == -1)
255255 else false)
256256 then nil
257257 else if (if ((depositNumLast == -1))
258258 then (depositNumUser > -1)
259259 else false)
260260 then throw("invalid depositNumLast and depositNumUser state")
261261 else if (if ((depositNumLast > -1))
262262 then (depositNumUser >= -1)
263263 else false)
264264 then if (isNewUser)
265265 then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)]
266266 else ({
267267 let $l = supportedAssetsList
268268 let $s = size($l)
269269 let $acc0 = nil
270270 func $f0_1 ($a,$i) = if (($i >= $s))
271271 then $a
272272 else forEachAssetCacheUserReward($a, $l[$i])
273273
274274 func $f0_2 ($a,$i) = if (($i >= $s))
275275 then $a
276276 else throw("List size exceeds 9")
277277
278278 $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)
279279 } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast))
280280 else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser)))
281281 }
282282
283283
284284 func IncrementNotDistributedRewardEntry (tkn,amountInc) = {
285285 let notDistributedRewardKEY = keyNotDistributedReward(tkn)
286286 let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0)
287287 IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))
288288 }
289289
290290
291291 func commonClaim (userAddress,i) = {
292292 let userAddressStr = toString(userAddress)
293293 if ((size(i.payments) > 0))
294294 then throw("payments are not accepted")
295295 else {
296296 let $t01259612701 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
297297 let isNewUser = $t01259612701._1
298298 let stakedAmount = $t01259612701._2
299299 let stakingStart = $t01259612701._3
300300 let stakedAmountX = toBigInt(stakedAmount)
301301 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
302302 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
303303 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
304304 func forEachAssetCalcUnclaimedReward (accum,asset) = {
305305 let $t01307213210 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
306306 let rewardTotal = $t01307213210._1
307307 let cached = $t01307213210._2
308308 let dynamic = $t01307213210._3
309309 let rewardCachedPartKEY = $t01307213210._4
310310 let claimedKEY = keyClaimed(userAddressStr, asset)
311311 let $t01327013307 = accum
312312 let data = $t01327013307._1
313313 let claimedAmtByAsset = $t01327013307._2
314314 let newPart = makeString([asset, toString(rewardTotal)], ":")
315315 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
316316 if ((0 >= rewardTotal))
317317 then $Tuple2(data, claimedAmtByAssetNew)
318318 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
319319 }
320320
321321 let $t01376713880 = {
322322 let $l = supportedAssetsList
323323 let $s = size($l)
324324 let $acc0 = $Tuple2(nil, "")
325325 func $f0_1 ($a,$i) = if (($i >= $s))
326326 then $a
327327 else forEachAssetCalcUnclaimedReward($a, $l[$i])
328328
329329 func $f0_2 ($a,$i) = if (($i >= $s))
330330 then $a
331331 else throw("List size exceeds 9")
332332
333333 $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)
334334 }
335335 let transfers = $t01376713880._1
336336 let claimedAmtByAssetResult = $t01376713880._2
337337 if ((0 >= size(transfers)))
338338 then $Tuple2(nil, 0)
339339 else $Tuple2(((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))), size(transfers))
340340 }
341341 }
342342
343343
344344 @Callable(i)
345345 func constructorV1 (neutrinoContractAddress,mathContractAddress,minLockAmount,halfLife,supportedRewardAssets) = if ((i.caller != this))
346346 then throw("Permission denied")
347347 else [StringEntry(keyNeutrinoContractAddress(), neutrinoContractAddress), StringEntry(keyMathContractAddress(), mathContractAddress), IntegerEntry(keyMinLockAmount(), minLockAmount), IntegerEntry(keyHalfLife(), halfLife), StringEntry(keySupportedRewardAssets(), supportedRewardAssets)]
348348
349349
350350
351351 @Callable(i)
352352 func stake () = {
353353 let $t01473114793 = getParamsOrFail()
354354 let bondAssetId = $t01473114793._1
355355 let minLockAmount = $t01473114793._2
356356 let halfLife = $t01473114793._3
357357 if ((size(i.payments) != 1))
358358 then throw("Invalid payments size")
359359 else {
360360 let payment = i.payments[0]
361361 let amount = payment.amount
362362 let invalidAssetMessage = (("Invalid asset. " + toBase58String(bondAssetId)) + " is expected")
363363 let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage)
364364 if ((assetId != bondAssetId))
365365 then throw(invalidAssetMessage)
366366 else {
367367 let userAddress = i.caller
368368 let userAddressStr = toString(i.caller)
369369 let $t01533515442 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, -1))
370370 let isNewUser = $t01533515442._1
371371 let lockAmount = $t01533515442._2
372372 let lockStartHeight = $t01533515442._3
373373 let mergedAmount = if (isNewUser)
374374 then amount
375375 else (amount + lockAmount)
376376 let mergedStartHeight = if (isNewUser)
377377 then height
378378 else asInt(invoke(mathContract, "mergeStakesREADONLY", [amount, height, lockAmount, lockStartHeight, halfLife], nil))
379379 if ((minLockAmount > mergedAmount))
380380 then throw(("Min lock amount is " + toString(minLockAmount)))
381381 else {
382382 let $t01580315905 = StatsResult(amount, 1, if (isNewUser)
383383 then 1
384384 else 0)
385385 let statsEntries = $t01580315905._1
386386 let totalStaked = $t01580315905._2
387387 let totalStakedNew = $t01580315905._3
388388 ((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight)) ++ statsEntries)
389389 }
390390 }
391391 }
392392 }
393393
394394
395395
396396 @Callable(i)
397397 func unstake (amount) = if ((size(i.payments) != 0))
398398 then throw("unstake doesn't require any payment")
399399 else {
400400 let userAddress = i.caller
401401 let userAddressStr = toString(userAddress)
402402 let $t01639116453 = getParamsOrFail()
403403 let bondAssetId = $t01639116453._1
404404 let minLockAmount = $t01639116453._2
405405 let halfLife = $t01639116453._3
406406 let $t01645616530 = getUserParamsOrFail(userAddress)
407407 let isNewUser = $t01645616530._1
408408 let lockAmount = $t01645616530._2
409409 let lockStart = $t01645616530._3
410410 if ((0 >= lockAmount))
411411 then throw("Nothing to unstake")
412412 else if ((amount > lockAmount))
413413 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(lockAmount)))
414414 else {
415415 let t = value(blockInfoByHeight(height)).timestamp
416416 let releaseTime = valueOrElse(getInteger(govContract, keyUserGnsbtReleaseTime(userAddressStr)), 0)
417417 if ((releaseTime >= t))
418418 then throw(("Your gNsbt are taking part in voting, cannot unstake until " + toString(releaseTime)))
419419 else {
420420 let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil))
421421 let $t01717117325 = StatsResult(-(amount), if ((amount == lockAmount))
422422 then -1
423423 else 0, if ((amount == lockAmount))
424424 then -1
425425 else 0)
426426 let statsEntries = $t01717117325._1
427427 let totalStaked = $t01717117325._2
428428 let totalStakedNew = $t01717117325._3
429429 ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart)) ++ statsEntries)
430430 }
431431 }
432432 }
433433
434434
435435
436436 @Callable(i)
437437 func deposit () = {
438438 let totalStaked = getIntOrElse(keyLockParamTotalAmount(), 0)
439439 if ((0 > totalStaked))
440440 then throw("TODO: case is not supported")
441441 else {
442442 let depositNumLastKEY = keyDepositNumLast()
443443 let depositNumLast = getIntOrElse(depositNumLastKEY, -1)
444444 let depositNumNew = (depositNumLast + 1)
445445 let totalsKEY = keyStatsDepositAmtTotals()
446446 let byDayKEY = keyStatsDepositAmtByDay(toStartOfDay(lastBlock.timestamp))
447447 let currTotals = split(valueOrElse(getString(totalsKEY), defaultTotalsDATA), SEP)
448448 let currByDay = split(valueOrElse(getString(byDayKEY), defaultTotalsDATA), SEP)
449449 func dep (acc,pmt) = {
450450 let amount = pmt.amount
451451 let pmtAssetIdStr = toBase58String(valueOrElse(pmt.assetId, WAVESID))
452452 if (!(contains(supportedAssetsStr, pmtAssetIdStr)))
453453 then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr))
454454 else if ((totalStaked == 0))
455455 then $Tuple4((acc._1 :+ IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount)), (acc._2 :+ pmtAssetIdStr), (acc._3 :+ toBigInt(0)), (acc._4 :+ amount))
456456 else {
457457 let rewardPerNsbtX18 = fraction(toBigInt(amount), MULTX18, toBigInt(totalStaked))
458458 $Tuple4(acc._1, (acc._2 :+ pmtAssetIdStr), (acc._3 :+ rewardPerNsbtX18), (acc._4 :+ amount))
459459 }
460460 }
461461
462462 let pmtsResult = {
463463 let $l = i.payments
464464 let $s = size($l)
465465 let $acc0 = $Tuple4(nil, nil, nil, nil)
466466 func $f0_1 ($a,$i) = if (($i >= $s))
467467 then $a
468468 else dep($a, $l[$i])
469469
470470 func $f0_2 ($a,$i) = if (($i >= $s))
471471 then $a
472472 else throw("List size exceeds 10")
473473
474474 $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)
475475 }
476476 func refreshRewardUpdateTotals (accum,nextAsset) = {
477477 let k = accum._4
478478 let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0")
479479 let idx = indexOf(pmtsResult._2, nextAsset)
480480 let sum = if (isDefined(idx))
481481 then {
482482 let j = value(idx)
483483 let statsDelta = pmtsResult._4[j]
484484 $Tuple3(toString((parseBigIntValue(sumLastStr) + pmtsResult._3[j])), toString((parseIntValue(currTotals[(k + 1)]) + statsDelta)), toString((parseIntValue(currByDay[(k + 1)]) + statsDelta)))
485485 }
486486 else $Tuple3(sumLastStr, currTotals[(k + 1)], currByDay[(k + 1)])
487487 $Tuple4((accum._1 :+ StringEntry(keyRewardPerNsbtSumAt(depositNumNew, nextAsset), sum._1)), ((accum._2 + SEP) + sum._2), ((accum._3 + SEP) + sum._3), (k + 1))
488488 }
489489
490490 let assetsResult = {
491491 let $l = supportedAssetsList
492492 let $s = size($l)
493493 let $acc0 = $Tuple4(nil, DepositTotalsPREFIX, DepositTotalsPREFIX, 0)
494494 func $f1_1 ($a,$i) = if (($i >= $s))
495495 then $a
496496 else refreshRewardUpdateTotals($a, $l[$i])
497497
498498 func $f1_2 ($a,$i) = if (($i >= $s))
499499 then $a
500500 else throw("List size exceeds 9")
501501
502502 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9)
503503 }
504504 $Tuple2(((((pmtsResult._1 ++ assetsResult._1) :+ IntegerEntry(depositNumLastKEY, depositNumNew)) :+ StringEntry(totalsKEY, assetsResult._2)) :+ StringEntry(byDayKEY, assetsResult._3)), depositNumNew)
505505 }
506506 }
507507
508508
509509
510510 @Callable(i)
511511 func claimRewards () = commonClaim(i.caller, i)
512512
513513
514514
515515 @Callable(i)
516516 func claimRewardsByOriginCaller () = commonClaim(i.originCaller, i)
517517
518518
519519
520520 @Callable(i)
521521 func unclaimedRewardsREADONLY (userAddressStr) = {
522522 func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_")
523523
524524 let unclaimedRewardStr = if ((userAddressStr == ""))
525525 then {
526526 let $l = supportedAssetsList
527527 let $s = size($l)
528528 let $acc0 = ""
529529 func $f0_1 ($a,$i) = if (($i >= $s))
530530 then $a
531531 else forEachAssetZeroReward($a, $l[$i])
532532
533533 func $f0_2 ($a,$i) = if (($i >= $s))
534534 then $a
535535 else throw("List size exceeds 9")
536536
537537 $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)
538538 }
539539 else {
540540 let userAddress = addressFromStringValue(userAddressStr)
541541 let $t02125621361 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
542542 let isNewUser = $t02125621361._1
543543 let stakedAmount = $t02125621361._2
544544 let stakingStart = $t02125621361._3
545545 let stakedAmountX = toBigInt(stakedAmount)
546546 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
547547 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
548548 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
549549 func forEachAssetCalcUnclaimedReward (accum,asset) = {
550550 let $t02170721845 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
551551 let rewardTotal = $t02170721845._1
552552 let cached = $t02170721845._2
553553 let dynamic = $t02170721845._3
554554 let rewardCachedPartKEY = $t02170721845._4
555555 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
556556 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
557557 }
558558
559559 let $l = supportedAssetsList
560560 let $s = size($l)
561561 let $acc0 = ""
562562 func $f0_1 ($a,$i) = if (($i >= $s))
563563 then $a
564564 else forEachAssetCalcUnclaimedReward($a, $l[$i])
565565
566566 func $f0_2 ($a,$i) = if (($i >= $s))
567567 then $a
568568 else throw("List size exceeds 9")
569569
570570 $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)
571571 }
572572 $Tuple2(nil, dropRight(unclaimedRewardStr, 1))
573573 }
574574
575575
576576
577577 @Callable(i)
578578 func nsbtUnstakingSYSREADONLY (userAddressStrOrEmpty,unstakeAmtP) = {
579579 let resultArray = if ((userAddressStrOrEmpty == ""))
580580 then [0, 0, 0, 0]
581581 else {
582582 let userAddress = addressFromStringValue(userAddressStrOrEmpty)
583583 let cfgDATA = getParamsOrFail()
584584 let nsbtAssetId = cfgDATA._1
585585 let minLockAmount = cfgDATA._2
586586 let halfLife = cfgDATA._3
587587 let userDATA = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
588588 let isNewUser = userDATA._1
589589 let stakedAmount = userDATA._2
590590 let lockStart = userDATA._3
591591 let unstakeAmt = if ((unstakeAmtP > stakedAmount))
592592 then stakedAmount
593593 else unstakeAmtP
594594 let stakedAmountNEW = (stakedAmount - unstakeAmt)
595595 let comissionAmount = if ((unstakeAmt == 0))
596596 then 0
597597 else asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [unstakeAmt, lockStart, halfLife], nil))
598598 let receiveAmount = (unstakeAmt - comissionAmount)
599599 [stakedAmount, stakedAmountNEW, receiveAmount, comissionAmount]
600600 }
601601 $Tuple2(nil, resultArray)
602602 }
603603
604604
605605
606606 @Callable(i)
607607 func nsbtStakingSYSREADONLY (userAddressStr,nsbtDiff) = {
608608 let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0)
609609 if ((userAddressStr == ""))
610610 then $Tuple2(nil, [0, totalNsbtAmt, 0])
611611 else {
612612 let userAddress = toAddressOrFail(userAddressStr)
613613 let $t02352323627 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
614614 let isNewUser = $t02352323627._1
615615 let userNsbtAmt = $t02352323627._2
616616 let stakingStart = $t02352323627._3
617617 $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart])
618618 }
619619 }
620620
621621
622622 @Verifier(tx)
623623 func verify () = {
624624 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
625625 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
626626 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
627627 then 1
628628 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
629629 then 1
630630 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
631631 then 1
632632 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
633633 then 2
634634 else 0))
635635 (count >= 3)
636636 }
637637

github/deemru/w8io/169f3d6 
96.61 ms