tx · E9gAqUH1Z8mkHbm3WA7PuJ6LcJtfqf8YPasCL2gwpmhC

3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J:  -0.02600000 Waves

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

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

github/deemru/w8io/026f985 
58.28 ms