tx · C8gsepRXBqWsZ5eXKAhQtsymAfNhN4Gq38ubzxoGZtRV

3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy:  -0.03200000 Waves

2023.03.28 08:06 [2509362] smart account 3N5yarEiTQccnnuerogYT3BxM5Zc5bRgDZy > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
82.46 ms