tx · 7etKT7XUQjwwfrWitaju1cJvoNDDynuYXbi87DYRM714

3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy:  -0.03100000 Waves

2023.03.01 18:28 [2471180] smart account 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy > SELF 0.00000000 Waves

{ "type": 13, "id": "7etKT7XUQjwwfrWitaju1cJvoNDDynuYXbi87DYRM714", "fee": 3100000, "feeAssetId": null, "timestamp": 1677684527256, "version": 2, "chainId": 84, "sender": "3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy", "senderPublicKey": "FK9j3YFWVChXKESTn33fMZz1JseCNMMqHhfB7smxJo4e", "proofs": [ "vCfFfU7ZtpJLb8uL5jDzhSNTms5Qyfmc1XsgRzEDZBf32RGsJBGfZ6VpSaj9jh9kono5swbWx6kfGTKgsS7Q5nk" ], "script": "base64:BgIvCAISBQoDAQgIEgASABIDCgEBEgASABIAEgMKAQgSAwoBCBIECgIIARIDCgEBEgBoAAlzZXBhcmF0b3ICAl9fAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ABk1VTFRYNgkAtgIBBQVNVUxUNgAGTVVMVFg4CQC2AgEFBU1VTFQ4AAdNVUxUWDE4CQC2AgEAgICQu7rWrfANAApXQVZFU0lEU1RSAgVXQVZFUwAHV0FWRVNJRAkA2QQBBQpXQVZFU0lEU1RSAAlEQVlNSUxMSVMAgLiZKQANREVGQVVMVFBFUklPRAkAaAIAoAsADgAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAABABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAgAUSWR4Q29udHJvbENmZ1JwZERhcHAAAwAVSWR4Q29udHJvbENmZ01hdGhEYXBwAAQAHElkeENvbnRyb2xDZmdMaXF1aWRhdGlvbkRhcHAABQAVSWR4Q29udHJvbENmZ1Jlc3REYXBwAAYAHUlkeENvbnRyb2xDZmdOb2RlUmVnaXN0cnlEYXBwAAcAHElkeENvbnRyb2xDZmd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entComplexity": 0 } View: original | compacted Prev: D8nCrZjFz3MAFFfDgPadLBbjhSijxEE1emYRayEDzyie Next: 4ux4K8gvKEFmfVZM2xizmVXtrD35gqaR6jJqsgNqwzX2 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%d", "stats", "depositAmtTotals"], separator)
121121
122122
123123 func keySupportedRewardAssets () = "supportedRewardAssets"
124124
125125
126126 func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator)
127127
128128
129129 func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%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 let defaultTotalsDATA = (DepositTotalsPREFIX + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0")
280280
281281 func RewardEntries (isNewUser,userAddress,stakedAmount) = {
282282 let stakedAmountX = toBigInt(stakedAmount)
283283 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress)
284284 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
285285 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
286286 func forEachAssetCacheUserReward (accum,asset) = {
287287 let $t01083110966 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
288288 let rewardTotal = $t01083110966._1
289289 let cached = $t01083110966._2
290290 let dynamic = $t01083110966._3
291291 let rewardCachedPartKEY = $t01083110966._4
292292 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
293293 }
294294
295295 if (if ((depositNumLast == -1))
296296 then (depositNumUser == -1)
297297 else false)
298298 then nil
299299 else if (if ((depositNumLast == -1))
300300 then (depositNumUser > -1)
301301 else false)
302302 then throw("invalid depositNumLast and depositNumUser state")
303303 else if (if ((depositNumLast > -1))
304304 then (depositNumUser >= -1)
305305 else false)
306306 then if (isNewUser)
307307 then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)]
308308 else ({
309309 let $l = supportedAssetsList
310310 let $s = size($l)
311311 let $acc0 = nil
312312 func $f0_1 ($a,$i) = if (($i >= $s))
313313 then $a
314314 else forEachAssetCacheUserReward($a, $l[$i])
315315
316316 func $f0_2 ($a,$i) = if (($i >= $s))
317317 then $a
318318 else throw("List size exceeds 9")
319319
320320 $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)
321321 } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast))
322322 else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser)))
323323 }
324324
325325
326326 func IncrementNotDistributedRewardEntry (tkn,amountInc) = {
327327 let notDistributedRewardKEY = keyNotDistributedReward(tkn)
328328 let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0)
329329 IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))
330330 }
331331
332332
333333 func surfToGnsbt (surfAmt) = (surfAmt / gnsbtFromSurfCoeff)
334334
335335
336336 func mergeStake (userAddress,amountToAdd,userTeen,userKid) = {
337337 let $t01388713997 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
338338 let isNewUser = $t01388713997._1
339339 let stakedAmount = $t01388713997._2
340340 let vpEffectiveHeight = $t01388713997._3
341341 let stakedAmountNEW = if (isNewUser)
342342 then amountToAdd
343343 else (amountToAdd + stakedAmount)
344344 let W2 = getIntOrElse(keyVpPeriodDuration(), DEFAULTPERIOD)
345345 let period = (height / W2)
346346 let vpEffectivePeriodNEW = if ((userKid > 0))
347347 then (period + 2)
348348 else if ((userTeen > 0))
349349 then (period + 1)
350350 else period
351351 $Tuple5(isNewUser, stakedAmount, vpEffectiveHeight, stakedAmountNEW, (vpEffectivePeriodNEW * W2))
352352 }
353353
354354
355355 func updateTotals () = {
356356 let period = (height / getIntOrElse(keyVpPeriodDuration(), DEFAULTPERIOD))
357357 if ((period > getIntOrZero(keyLastTotalsPeriodProcessed())))
358358 then {
359359 let totalMature = valueOrElse(getInteger(keyTotalMature()), getIntOrZero(keyLockParamTotalAmount()))
360360 [IntegerEntry(keyTotalMature(), (totalMature + getIntOrZero(keyTotalTeen()))), IntegerEntry(keyTotalTeen(), getIntOrZero(keyTotalKid())), IntegerEntry(keyTotalKid(), 0), IntegerEntry(keyLastTotalsPeriodProcessed(), period)]
361361 }
362362 else nil
363363 }
364364
365365
366366 func onStake (userAddressStr,amountToAdd) = if ((0 > amountToAdd))
367367 then throw("amountToAdd should be >= 0")
368368 else {
369369 let W2 = getIntOrElse(keyVpPeriodDuration(), DEFAULTPERIOD)
370370 let period = (height / W2)
371371 let totalMature = valueOrElse(getInteger(keyTotalMature()), getIntOrZero(keyLockParamTotalAmount()))
372372 let totalTeen = getIntOrZero(keyTotalTeen())
373373 let totalKid = getIntOrZero(keyTotalKid())
374374 let userMature = if ((userAddressStr == ""))
375375 then 0
376376 else valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
377377 let userTeen = getIntOrZero(keyUserTeen(userAddressStr))
378378 let userKid = getIntOrZero(keyUserKid(userAddressStr))
379379 let tmp = if ((period > getIntOrZero(keyLastUserPeriodProcessed(userAddressStr))))
380380 then $Tuple7((totalMature + userTeen), (totalTeen + (userKid - userTeen)), (totalKid - userKid), (userMature + userTeen), userKid, 0, [IntegerEntry(keyLastUserPeriodProcessed(userAddressStr), period)])
381381 else $Tuple7(totalMature, totalTeen, totalKid, userMature, userTeen, userKid, nil)
382382 let totals = if ((period > getIntOrZero(keyLastTotalsPeriodProcessed())))
383383 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)
384384 else $Tuple4(nil, totalMature, totalTeen, totalKid)
385385 let newKid = fraction(amountToAdd, (height % W2), W2)
386386 let newTeen = (amountToAdd - newKid)
387387 $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))
388388 }
389389
390390
391391 let IdxNewDiff = 0
392392
393393 let IdxNewGnsbt = 1
394394
395395 func userDecrease (gnsbt,diff) = if ((diff >= gnsbt))
396396 then [(diff - gnsbt), 0]
397397 else [0, (gnsbt - diff)]
398398
399399
400400 func onUnstake (userAddressStr,amountToRemove) = if ((0 >= amountToRemove))
401401 then throw("amountToRemove should be > 0")
402402 else {
403403 let W2 = getIntOrElse(keyVpPeriodDuration(), DEFAULTPERIOD)
404404 let period = (height / W2)
405405 let totalMature = valueOrElse(getInteger(keyTotalMature()), getIntOrZero(keyLockParamTotalAmount()))
406406 let totalTeen = getIntOrZero(keyTotalTeen())
407407 let totalKid = getIntOrZero(keyTotalKid())
408408 let userMature = if ((userAddressStr == ""))
409409 then 0
410410 else valueOrElse(getInteger(keyUserMature(userAddressStr)), getIntOrZero(keyLockParamUserAmount(addressFromStringValue(userAddressStr))))
411411 let userTeen = getIntOrZero(keyUserTeen(userAddressStr))
412412 let userKid = getIntOrZero(keyUserKid(userAddressStr))
413413 let um = userDecrease(userMature, amountToRemove)
414414 let ut = userDecrease(userTeen, um[IdxNewDiff])
415415 let uk = userDecrease(userKid, ut[IdxNewDiff])
416416 if ((uk[IdxNewDiff] != 0))
417417 then throw("Should not happen")
418418 else {
419419 let tmp = if ((period > getIntOrZero(keyLastUserPeriodProcessed(userAddressStr))))
420420 then $Tuple7((totalMature + ut[IdxNewGnsbt]), (totalTeen + (uk[IdxNewGnsbt] - ut[IdxNewGnsbt])), (totalKid - uk[IdxNewGnsbt]), (um[IdxNewGnsbt] + ut[IdxNewGnsbt]), uk[IdxNewGnsbt], 0, [IntegerEntry(keyLastUserPeriodProcessed(userAddressStr), period)])
421421 else $Tuple7(totalMature, totalTeen, totalKid, um[IdxNewGnsbt], ut[IdxNewGnsbt], uk[IdxNewGnsbt], nil)
422422 let totals = if ((period > getIntOrZero(keyLastTotalsPeriodProcessed())))
423423 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)
424424 else $Tuple4(nil, totalMature, totalTeen, totalKid)
425425 $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)
426426 }
427427 }
428428
429429
430430 func commonStake (userAddress,i) = {
431431 let $t01988419938 = getParamsOrFail()
432432 let stakedAssetId = $t01988419938._1
433433 let minLockAmount = $t01988419938._2
434434 if ((size(i.payments) != 1))
435435 then throw("Invalid payments size")
436436 else {
437437 let payment = i.payments[0]
438438 let amount = payment.amount
439439 let invalidAssetMessage = (("Invalid asset. " + toBase58String(stakedAssetId)) + " is expected")
440440 let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage)
441441 if ((assetId != stakedAssetId))
442442 then throw(invalidAssetMessage)
443443 else {
444444 let userAddressStr = toString(userAddress)
445445 let r = onStake(userAddressStr, amount)
446446 let mergedData = mergeStake(userAddress, amount, r._6, r._7)
447447 let isNewUser = mergedData._1
448448 let stakedAmount = mergedData._2
449449 let vpEffectiveHeight = mergedData._3
450450 let stakedAmountNEW = mergedData._4
451451 let vpEffectiveHeightNEW = mergedData._5
452452 if ((minLockAmount > stakedAmountNEW))
453453 then throw(("Min lock amount is " + toString(minLockAmount)))
454454 else {
455455 let $t02079220894 = StatsResult(amount, 1, if (isNewUser)
456456 then 1
457457 else 0)
458458 let statsEntries = $t02079220894._1
459459 let totalStaked = $t02079220894._2
460460 let totalStakedNew = $t02079220894._3
461461 (((([HistoryRecordEntry("stake", userAddress, i.transactionId, stakedAmount, vpEffectiveHeight, stakedAmountNEW, vpEffectiveHeightNEW)] ++ RewardEntries(isNewUser, userAddressStr, stakedAmount)) ++ LockParamsEntry(userAddress, stakedAmountNEW, vpEffectiveHeightNEW)) ++ statsEntries) ++ r._1)
462462 }
463463 }
464464 }
465465 }
466466
467467
468468 func commonClaim (userAddress,i) = {
469469 let userAddressStr = toString(userAddress)
470470 if ((size(i.payments) > 0))
471471 then throw("payments are not accepted")
472472 else {
473473 let $t02140121506 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
474474 let isNewUser = $t02140121506._1
475475 let stakedAmount = $t02140121506._2
476476 let stakingStart = $t02140121506._3
477477 let stakedAmountX = toBigInt(stakedAmount)
478478 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
479479 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
480480 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
481481 func forEachAssetCalcUnclaimedReward (accum,asset) = {
482482 let $t02187722015 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
483483 let rewardTotal = $t02187722015._1
484484 let cached = $t02187722015._2
485485 let dynamic = $t02187722015._3
486486 let rewardCachedPartKEY = $t02187722015._4
487487 let claimedKEY = keyClaimed(userAddressStr, asset)
488488 let $t02207522112 = accum
489489 let data = $t02207522112._1
490490 let claimedAmtByAsset = $t02207522112._2
491491 let newPart = makeString([asset, toString(rewardTotal)], ":")
492492 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
493493 if ((0 >= rewardTotal))
494494 then $Tuple2(data, claimedAmtByAssetNew)
495495 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
496496 }
497497
498498 let $t02257222685 = {
499499 let $l = supportedAssetsList
500500 let $s = size($l)
501501 let $acc0 = $Tuple2(nil, "")
502502 func $f0_1 ($a,$i) = if (($i >= $s))
503503 then $a
504504 else forEachAssetCalcUnclaimedReward($a, $l[$i])
505505
506506 func $f0_2 ($a,$i) = if (($i >= $s))
507507 then $a
508508 else throw("List size exceeds 9")
509509
510510 $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)
511511 }
512512 let transfers = $t02257222685._1
513513 let claimedAmtByAssetResult = $t02257222685._2
514514 if ((0 >= size(transfers)))
515515 then $Tuple2(nil, 0)
516516 else $Tuple2(((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))), size(transfers))
517517 }
518518 }
519519
520520
521521 @Callable(i)
522522 func constructorV1 (minLockAmount,supportedRewardAssets,stakedAssetId) = if ((i.caller != this))
523523 then throw("Permission denied")
524524 else [IntegerEntry(keyMinLockAmount(), minLockAmount), StringEntry(keySupportedRewardAssets(), supportedRewardAssets), StringEntry(keyStakedAssetId(), stakedAssetId)]
525525
526526
527527
528528 @Callable(i)
529529 func stake () = commonStake(i.caller, i)
530530
531531
532532
533533 @Callable(i)
534534 func stakeByOriginCaller () = commonStake(i.originCaller, i)
535535
536536
537537
538538 @Callable(i)
539539 func unstake (amount) = if ((size(i.payments) != 0))
540540 then throw("unstake doesn't require any payment")
541541 else {
542542 let userAddress = i.caller
543543 let userAddressStr = toString(userAddress)
544544 let $t02362123675 = getParamsOrFail()
545545 let stakedAssetId = $t02362123675._1
546546 let minLockAmount = $t02362123675._2
547547 let $t02367823762 = getUserParamsOrFail(userAddress)
548548 let isNewUser = $t02367823762._1
549549 let stakedAmount = $t02367823762._2
550550 let vpEffectiveHeight = $t02367823762._3
551551 let swapParamsSTRUCT = asSwapParamsSTRUCT(reentrantInvoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStr, 0], nil))
552552 let swapLimitSpentInUsdn = swapParamsSTRUCT._2
553553 let blcks2LmtReset = swapParamsSTRUCT._3
554554 if ((swapLimitSpentInUsdn > 0))
555555 then throw((("You have already made a swap operation. Wait " + toString((height + blcks2LmtReset))) + " height to unstake"))
556556 else if ((0 >= stakedAmount))
557557 then throw("Nothing to unstake")
558558 else if ((amount > stakedAmount))
559559 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(stakedAmount)))
560560 else {
561561 let stakedAmountNEW = (stakedAmount - amount)
562562 let $t02440024558 = StatsResult(-(amount), if ((amount == stakedAmount))
563563 then -1
564564 else 0, if ((amount == stakedAmount))
565565 then -1
566566 else 0)
567567 let statsEntries = $t02440024558._1
568568 let totalStaked = $t02440024558._2
569569 let totalStakedNew = $t02440024558._3
570570 (((([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)
571571 }
572572 }
573573
574574
575575
576576 @Callable(i)
577577 func deposit () = {
578578 let totalStaked = getIntOrElse(keyLockParamTotalAmount(), 0)
579579 if ((0 > totalStaked))
580580 then throw("TODO: case is not supported")
581581 else {
582582 let depositNumLastKEY = keyDepositNumLast()
583583 let depositNumLast = getIntOrElse(depositNumLastKEY, -1)
584584 let depositNumNew = (depositNumLast + 1)
585585 let totalsKEY = keyStatsDepositAmtTotals()
586586 let byDayKEY = keyStatsDepositAmtByDay(toStartOfDay(lastBlock.timestamp))
587587 let currTotals = split(valueOrElse(getString(totalsKEY), defaultTotalsDATA), SEP)
588588 let currByDay = split(valueOrElse(getString(byDayKEY), defaultTotalsDATA), SEP)
589589 func dep (acc,pmt) = {
590590 let amount = pmt.amount
591591 let pmtAssetIdStr = toBase58String(valueOrElse(pmt.assetId, WAVESID))
592592 if (!(contains(supportedAssetsStr, pmtAssetIdStr)))
593593 then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr))
594594 else if ((totalStaked == 0))
595595 then $Tuple4((acc._1 :+ IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount)), (acc._2 :+ pmtAssetIdStr), (acc._3 :+ toBigInt(0)), (acc._4 :+ amount))
596596 else {
597597 let rewardPerNsbtX18 = fraction(toBigInt(amount), MULTX18, toBigInt(totalStaked))
598598 $Tuple4(acc._1, (acc._2 :+ pmtAssetIdStr), (acc._3 :+ rewardPerNsbtX18), (acc._4 :+ amount))
599599 }
600600 }
601601
602602 let pmtsResult = {
603603 let $l = i.payments
604604 let $s = size($l)
605605 let $acc0 = $Tuple4(nil, nil, nil, nil)
606606 func $f0_1 ($a,$i) = if (($i >= $s))
607607 then $a
608608 else dep($a, $l[$i])
609609
610610 func $f0_2 ($a,$i) = if (($i >= $s))
611611 then $a
612612 else throw("List size exceeds 10")
613613
614614 $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)
615615 }
616616 func refreshRewardUpdateTotals (accum,nextAsset) = {
617617 let k = accum._4
618618 let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0")
619619 let idx = indexOf(pmtsResult._2, nextAsset)
620620 let sum = if (isDefined(idx))
621621 then {
622622 let j = value(idx)
623623 let statsDelta = pmtsResult._4[j]
624624 $Tuple3(toString((parseBigIntValue(sumLastStr) + pmtsResult._3[j])), toString((parseIntValue(currTotals[(k + 1)]) + statsDelta)), toString((parseIntValue(currByDay[(k + 1)]) + statsDelta)))
625625 }
626626 else $Tuple3(sumLastStr, currTotals[(k + 1)], currByDay[(k + 1)])
627627 $Tuple4((accum._1 :+ StringEntry(keyRewardPerNsbtSumAt(depositNumNew, nextAsset), sum._1)), ((accum._2 + SEP) + sum._2), ((accum._3 + SEP) + sum._3), (k + 1))
628628 }
629629
630630 let assetsResult = {
631631 let $l = supportedAssetsList
632632 let $s = size($l)
633633 let $acc0 = $Tuple4(nil, DepositTotalsPREFIX, DepositTotalsPREFIX, 0)
634634 func $f1_1 ($a,$i) = if (($i >= $s))
635635 then $a
636636 else refreshRewardUpdateTotals($a, $l[$i])
637637
638638 func $f1_2 ($a,$i) = if (($i >= $s))
639639 then $a
640640 else throw("List size exceeds 9")
641641
642642 $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)
643643 }
644644 $Tuple2((((((pmtsResult._1 ++ assetsResult._1) ++ updateTotals()) :+ IntegerEntry(depositNumLastKEY, depositNumNew)) :+ StringEntry(totalsKEY, assetsResult._2)) :+ StringEntry(byDayKEY, assetsResult._3)), depositNumNew)
645645 }
646646 }
647647
648648
649649
650650 @Callable(i)
651651 func claimRewards () = commonClaim(i.caller, i)
652652
653653
654654
655655 @Callable(i)
656656 func claimRewardsByOriginCaller () = commonClaim(i.originCaller, i)
657657
658658
659659
660660 @Callable(i)
661661 func unclaimedRewardsREADONLY (userAddressStr) = {
662662 func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_")
663663
664664 let unclaimedRewardStr = if ((userAddressStr == ""))
665665 then {
666666 let $l = supportedAssetsList
667667 let $s = size($l)
668668 let $acc0 = ""
669669 func $f0_1 ($a,$i) = if (($i >= $s))
670670 then $a
671671 else forEachAssetZeroReward($a, $l[$i])
672672
673673 func $f0_2 ($a,$i) = if (($i >= $s))
674674 then $a
675675 else throw("List size exceeds 9")
676676
677677 $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)
678678 }
679679 else {
680680 let userAddress = addressFromStringValue(userAddressStr)
681681 let $t02848428589 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0))
682682 let isNewUser = $t02848428589._1
683683 let stakedAmount = $t02848428589._2
684684 let stakingStart = $t02848428589._3
685685 let stakedAmountX = toBigInt(stakedAmount)
686686 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
687687 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
688688 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
689689 func forEachAssetCalcUnclaimedReward (accum,asset) = {
690690 let $t02893529073 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
691691 let rewardTotal = $t02893529073._1
692692 let cached = $t02893529073._2
693693 let dynamic = $t02893529073._3
694694 let rewardCachedPartKEY = $t02893529073._4
695695 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
696696 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
697697 }
698698
699699 let $l = supportedAssetsList
700700 let $s = size($l)
701701 let $acc0 = ""
702702 func $f0_1 ($a,$i) = if (($i >= $s))
703703 then $a
704704 else forEachAssetCalcUnclaimedReward($a, $l[$i])
705705
706706 func $f0_2 ($a,$i) = if (($i >= $s))
707707 then $a
708708 else throw("List size exceeds 9")
709709
710710 $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)
711711 }
712712 $Tuple2(nil, dropRight(unclaimedRewardStr, 1))
713713 }
714714
715715
716716
717717 @Callable(i)
718718 func updateVotingPower (userAddressStr) = if (!(isDefined(addressFromString(userAddressStr))))
719719 then throw("Invalid user address")
720720 else {
721721 let r = onStake(userAddressStr, 0)
722722 $Tuple2(r._1, [surfToGnsbt(r._2), surfToGnsbt(r._3), surfToGnsbt(r._4), surfToGnsbt(r._5), surfToGnsbt(r._6), surfToGnsbt(r._7)])
723723 }
724724
725725
726726
727727 @Callable(i)
728728 func surfStakingSYSREADONLY (userAddressStrOrEmpty,surfDiff) = {
729729 let surfTotal = getIntOrElse(keyLockParamTotalAmount(), 0)
730730 let gnsbtFromSurfTotal = surfToGnsbt(surfTotal)
731731 let r = if ((surfDiff >= 0))
732732 then onStake(userAddressStrOrEmpty, surfDiff)
733733 else onUnstake(userAddressStrOrEmpty, -(surfDiff))
734734 if ((userAddressStrOrEmpty == ""))
735735 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)])
736736 else {
737737 let userAddress = toAddressOrFail(userAddressStrOrEmpty)
738738 let mergedData = mergeStake(userAddress, surfDiff, r._6, r._7)
739739 let stakedAmount = mergedData._2
740740 let vpEffectiveHeight = mergedData._3
741741 let stakedAmountNEW = mergedData._4
742742 let vpEffectiveHeightNEW = mergedData._5
743743 let surfUser = stakedAmount
744744 let gnsbtFromSurfUser = surfToGnsbt(surfUser)
745745 $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)])
746746 }
747747 }
748748
749749
750750
751751 @Callable(i)
752752 func gnsbtFromSurfSYSREADONLY (surfAmt) = $Tuple2(nil, surfToGnsbt(surfAmt))
753753
754754
755755
756756 @Callable(i)
757757 func configSYSREADONLY () = {
758758 let minLockAmt = getIntegerValue(keyMinLockAmount())
759759 let surfVotingPowerRestrictivePeriod = DEFAULTPERIOD
760760 let brToStartSurfTransformation = 1150000
761761 $Tuple2(nil, [minLockAmt, (gnsbtFromSurfCoeff * MULT6), surfVotingPowerRestrictivePeriod, brToStartSurfTransformation])
762762 }
763763
764764

github/deemru/w8io/026f985 
59.79 ms