tx · Gsn8hUuJ3TctkoqY5qkGHEW3qdZnVrpKeHRo2JfzMB9R

3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J:  -0.03000000 Waves

2023.10.11 16:38 [2794021] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves

{ "type": 13, "id": "Gsn8hUuJ3TctkoqY5qkGHEW3qdZnVrpKeHRo2JfzMB9R", "fee": 3000000, "feeAssetId": null, "timestamp": 1697031529384, "version": 2, "chainId": 84, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "2qykY7haa6a4E9L6zWNDH61X51fSgejGQksQusLeWhQtQckKdHN9cpxJ9r3DTXywaHmK4jszahWa5xvndqaLwPHH", "5Vuhsb171dMgALXwqcmrcxKt9FuWPF9xXoHKWoaA7fPVct2C1AQ3GK7pUBbhLt2Qdsshjf9LxeMMpUx6n12BGMPd", "2tAVRzxobBuQksnuA6hrPjWp49YPCQxPoZ5zTCqZFiSavCVmbXu9raXe2wJsbHDWfdBPN6ywANvUZkkHcLjerH4X" ], "script": "base64:BgIzCAISBwoFCAgBAQgSBAoCAQESABIDCgEBEgASABIAEgASABIDCgEIEgQKAggBEgQKAggBXgAJc2VwYXJhdG9yAgJfXwADU0VQAgJfXwAFTVVMVDYAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDYJALYCAQUFTVVMVDYABk1VTFRYOAkAtgIBBQVNVUxUOAAHTVVMVFgxOAkAtgIBAICAkLu61q3wDQAKV0FWRVNJRFNUUgIFV0FWRVMAB1dBVkVTSUQJANkEAQUKV0FWRVNJRFNUUgAJREFZTUlMTElTAIC4mSkACU1BWEJBU0tFVAAJABlJZHhDb250cm9sQ2ZnTmV1dHJpbm9EYXBwAAEAGElkeENvbnRyb2xDZmdBdWN0aW9uRGFwcAACABRJZHhDb250cm9sQ2ZnUnBkRGFwc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QDMCAICLERVdXVMalh1OThuQndaYzdmcXdDVGp0QTNublJ3Z1Ria01TcjVTVTJObURSCQDMCAICLERVdXVMalh1OThuQndaYzdmcXdDVGp0QTNublJ3Z1Ria01TcjVTVTJObURSBQNuaWwFA1NFUAQQcHViS2V5QWRtaW5zTGlzdAkAtQkCCQELdmFsdWVPckVsc2UCCQCdCAIFD2NvbnRyb2xDb250cmFjdAIMJXNfX211bHRpc2lnBRNwdWJLZXlBZG1pbnNMaXN0U3RyBQNTRVAEBWNvdW50CQBkAgkAZAIJAGQCAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAAABAAADCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABCQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAABAAEAAAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIJANkEAQkAkQMCBRBwdWJLZXlBZG1pbnNMaXN0AAIAAQAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAwkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAwACAAAJAGcCBQVjb3VudAADPm5gpQ==", "height": 2794021, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4EVkYYtm3ADUPKvwauKoi8qTiV8QeXKz9gZjPCEGd25Y Next: HD72t3xgpSkMgXpcCMTnkF2JHPpQN3rPRgYYatgnBTMq Diff:
OldNewDifferences
435435 if (isNewUser)
436436 then throw("You have nothing to restake")
437437 else {
438- let newUserGnsbt = (2 * lockAmount)
439- let totalNsbt = getIntOrZero(keyLockParamTotalAmount())
440- let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalNsbt)
441- let newTotalGnsbt = ((totalGnsbt - currUserGnsbt) + newUserGnsbt)
438+ let deltaUserGnsbt = currUserGnsbt
439+ let newUserGnsbt = (currUserGnsbt + deltaUserGnsbt)
442440 let userConsentTuple = readUserConsentToX2Gnsbt(userAddress)
443441 let userConsentedToX2GnsbtKEY = userConsentTuple._1
444442 let userConsentedToX2Gnsbt = userConsentTuple._2
445443 if (userConsentedToX2Gnsbt)
446444 then throw("User has already doubled its gNSBT value")
447- else $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) :+ IntegerEntry(keyLockParamTotalGnsbt(), newTotalGnsbt)) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult)
445+ else {
446+ let $t01693617022 = StatsResult(0, 0, 0, deltaUserGnsbt)
447+ let statsEntries = $t01693617022._1
448+ let totalStaked = $t01693617022._2
449+ let totalStakedNew = $t01693617022._3
450+ $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) ++ statsEntries) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult)
451+ }
448452 }
449453 }
450454
465469
466470 @Callable(i)
467471 func stake () = {
468- let $t01821518277 = getParamsOrFail()
469- let bondAssetId = $t01821518277._1
470- let minLockAmount = $t01821518277._2
471- let halfLife = $t01821518277._3
472+ let $t01812818190 = getParamsOrFail()
473+ let bondAssetId = $t01812818190._1
474+ let minLockAmount = $t01812818190._2
475+ let halfLife = $t01812818190._3
472476 if ((size(i.payments) != 1))
473477 then throw("Invalid payments size")
474478 else {
481485 else {
482486 let userAddress = i.caller
483487 let userAddressStr = toString(i.caller)
484- let $t01881918944 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
485- let isNewUser = $t01881918944._1
486- let lockAmount = $t01881918944._2
487- let lockStartHeight = $t01881918944._3
488- let currUserGnsbt = $t01881918944._4
488+ let $t01873218857 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
489+ let isNewUser = $t01873218857._1
490+ let lockAmount = $t01873218857._2
491+ let lockStartHeight = $t01873218857._3
492+ let currUserGnsbt = $t01873218857._4
489493 let mergedAmount = if (isNewUser)
490494 then amount
491495 else (amount + lockAmount)
508512 let x2GnsbtConsentEntry = if (isNewUser)
509513 then [BooleanEntry(userConsentedToX2GnsbtKEY, true)]
510514 else nil
511- let $t01994820066 = StatsResult(amount, 1, if (isNewUser)
515+ let $t01986119979 = StatsResult(amount, 1, if (isNewUser)
512516 then 1
513517 else 0, deltaUserGnsbt)
514- let statsEntries = $t01994820066._1
515- let totalStaked = $t01994820066._2
516- let totalStakedNew = $t01994820066._3
517- (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight, (currUserGnsbt + deltaUserGnsbt))) ++ statsEntries) ++ x2GnsbtConsentEntry)
518+ let statsEntries = $t01986119979._1
519+ let totalStaked = $t01986119979._2
520+ let totalStakedNew = $t01986119979._3
521+ (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight, (currUserGnsbt + deltaUserGnsbt))) ++ statsEntries) ++ x2GnsbtConsentEntry)
518522 }
519523 }
520524 }
528532 else {
529533 let userAddress = i.caller
530534 let userAddressStr = toString(userAddress)
531- let $t02060920671 = getParamsOrFail()
532- let bondAssetId = $t02060920671._1
533- let minLockAmount = $t02060920671._2
534- let halfLife = $t02060920671._3
535- let $t02067420763 = getUserParamsOrFail(userAddress)
536- let isNewUser = $t02067420763._1
537- let lockAmount = $t02067420763._2
538- let lockStart = $t02067420763._3
539- let currUserGnsbt = $t02067420763._4
535+ let $t02052520587 = getParamsOrFail()
536+ let bondAssetId = $t02052520587._1
537+ let minLockAmount = $t02052520587._2
538+ let halfLife = $t02052520587._3
539+ let $t02059020679 = getUserParamsOrFail(userAddress)
540+ let isNewUser = $t02059020679._1
541+ let lockAmount = $t02059020679._2
542+ let lockStart = $t02059020679._3
543+ let currUserGnsbt = $t02059020679._4
540544 if ((0 >= lockAmount))
541545 then throw("Nothing to unstake")
542546 else if ((amount > lockAmount))
551555 let bonusGnsbtPart = (currUserGnsbt - lockAmount)
552556 let bonusNsbtAmount = min([amount, bonusGnsbtPart])
553557 let deltaGnsbt = (bonusNsbtAmount + amount)
554- let $t02160121772 = StatsResult(-(amount), if ((amount == lockAmount))
558+ let $t02151721688 = StatsResult(-(amount), if ((amount == lockAmount))
555559 then -1
556560 else 0, if ((amount == lockAmount))
557561 then -1
558562 else 0, -(deltaGnsbt))
559- let statsEntries = $t02160121772._1
560- let totalStaked = $t02160121772._2
561- let totalStakedNew = $t02160121772._3
562- ((([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, (currUserGnsbt - deltaGnsbt))) ++ statsEntries)
563+ let statsEntries = $t02151721688._1
564+ let totalStaked = $t02151721688._2
565+ let totalStakedNew = $t02151721688._3
566+ ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart, (currUserGnsbt - deltaGnsbt))) ++ statsEntries)
563567 }
564568 }
565569 }
681685 }
682686 else {
683687 let userAddress = addressFromStringValue(userAddressStr)
684- let $t02583625955 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
685- let isNewUser = $t02583625955._1
686- let stakedAmount = $t02583625955._2
687- let stakingStart = $t02583625955._3
688- let userGnsbt = $t02583625955._4
688+ let $t02575525874 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
689+ let isNewUser = $t02575525874._1
690+ let stakedAmount = $t02575525874._2
691+ let stakingStart = $t02575525874._3
692+ let userGnsbt = $t02575525874._4
689693 let stakedAmountX = toBigInt(userGnsbt)
690694 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
691695 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
692696 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
693697 func forEachAssetCalcUnclaimedReward (accum,asset) = {
694- let $t02629826436 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
695- let rewardTotal = $t02629826436._1
696- let cached = $t02629826436._2
697- let dynamic = $t02629826436._3
698- let rewardCachedPartKEY = $t02629826436._4
698+ let $t02621726355 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
699+ let rewardTotal = $t02621726355._1
700+ let cached = $t02621726355._2
701+ let dynamic = $t02621726355._3
702+ let rewardCachedPartKEY = $t02621726355._4
699703 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
700704 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
701705 }
755759 then $Tuple2(nil, [0, totalNsbtAmt, 0, 0, totalGnsbt])
756760 else {
757761 let userAddress = toAddressOrFail(userAddressStr)
758- let $t02822628344 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
759- let isNewUser = $t02822628344._1
760- let userNsbtAmt = $t02822628344._2
761- let stakingStart = $t02822628344._3
762- let userGnsbt = $t02822628344._4
762+ let $t02814528263 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
763+ let isNewUser = $t02814528263._1
764+ let userNsbtAmt = $t02814528263._2
765+ let stakingStart = $t02814528263._3
766+ let userGnsbt = $t02814528263._4
763767 $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart, userGnsbt, totalGnsbt])
764768 }
765769 }
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 keyCfgX2GnsbtOfferHeightStart () = "%s%s__config__x2GnsbtOfferHeightStart"
5050
5151
5252 func keyCfgX2GnsbtOfferHeightEnd () = "%s%s__config__x2GnsbtOfferHeightEnd"
5353
5454
5555 func keyControlAddress () = "%s%s__config__controlAddress"
5656
5757
5858 func keyControlCfg () = "%s__controlConfig"
5959
6060
6161 func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP)
6262
6363
6464 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
6565
6666
6767 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
6868
6969 let controlCfg = readControlCfgOrFail(controlContract)
7070
7171 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
7272
7373 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
7474
7575 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
7676
7777 let govContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
7878
7979 let RENEW_START_HEIGHT = valueOrElse(getInteger(this, keyCfgX2GnsbtOfferHeightStart()), 0)
8080
8181 let RENEW_END_HEIGHT = valueOrElse(getInteger(this, keyCfgX2GnsbtOfferHeightEnd()), 0)
8282
8383 func keyBondAsset () = "bond_asset_id"
8484
8585
8686 func keyUserGnsbtReleaseTime (userAddr) = ("%s%s_userGnsbtReleaseTime__" + userAddr)
8787
8888
8989 func keyNeutrinoContractAddress () = "%s__neutrinoContractAddress"
9090
9191
9292 func keyMathContractAddress () = "%s__mathContract"
9393
9494
9595 func keyMinLockAmount () = "%s__minLockAmount"
9696
9797
9898 func keyHalfLife () = "%s__halfLife"
9999
100100
101101 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator)
102102
103103
104104 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator)
105105
106106
107107 func keyLockParamUserGnsbt (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "gNsbt"], separator)
108108
109109
110110 func keyUserConsentedToX2Gnsbt (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "consentedToX2Gnsbt"], separator)
111111
112112
113113 func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator)
114114
115115
116116 func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator)
117117
118118
119119 func keyLockParamTotalGnsbt () = makeString(["%s%s", "stats", "activeTotalGnsbt"], separator)
120120
121121
122122 func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator)
123123
124124
125125 func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator)
126126
127127
128128 func keyStatsDepositAmtByDay (timestamp) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(timestamp)], separator)
129129
130130
131131 func keyStatsDepositAmtTotals () = makeString(["%s%s%d", "stats", "depositAmtTotals"], separator)
132132
133133
134134 func keyNextPeriod () = "%s__nextPeriod"
135135
136136
137137 func keySupportedRewardAssets () = "supportedRewardAssets"
138138
139139
140140 func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator)
141141
142142
143143 func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator)
144144
145145
146146 func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator)
147147
148148
149149 func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator)
150150
151151
152152 func keyClaimed (userAddress,tkn) = makeString(["%s%s%s", "clm", userAddress, tkn], separator)
153153
154154
155155 func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator)
156156
157157
158158 func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult)
159159
160160
161161 func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0)
162162
163163
164164 func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal)
165165
166166
167167 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined"))
168168
169169
170170 func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal)
171171
172172
173173 func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr))
174174
175175
176176 func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR))
177177 then unit
178178 else fromBase58String(assetStr)
179179
180180
181181 func asInt (val) = match val {
182182 case valInt: Int =>
183183 valInt
184184 case _ =>
185185 throw("fail to cast into Int")
186186 }
187187
188188
189189 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)
190190
191191
192192 func formatClaimHistoryRecord (user,claimedRewards) = makeString(["%s%d%d%s", user, toString(lastBlock.height), toString(lastBlock.timestamp), claimedRewards], separator)
193193
194194
195195 func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart))
196196
197197
198198 func ClaimHistoryEntry (userAddress,txId,claimedRewards) = StringEntry(keyHistoryRecord("claim", userAddress, txId), formatClaimHistoryRecord(toString(userAddress), claimedRewards))
199199
200200
201201 func StatsResult (totalLockedInc,lockCountInc,usersCountInc,totalGnsbtInc) = {
202202 let locksCount = getIntOrZero(keyStatsLocksCount())
203203 let usersCount = getIntOrZero(keyStatsUsersCount())
204204 let totalAmount = getIntOrZero(keyLockParamTotalAmount())
205205 let totalAmountNew = (totalAmount + totalLockedInc)
206206 let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalAmount)
207207 $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew), IntegerEntry(keyLockParamTotalGnsbt(), (totalGnsbt + totalGnsbtInc))], totalAmount, totalAmountNew)
208208 }
209209
210210
211211 func LockParamsEntry (userAddress,nsbtAmount,start,gNsbtAmount) = [IntegerEntry(keyLockParamUserAmount(userAddress), nsbtAmount), IntegerEntry(keyLockParamUserGnsbt(userAddress), gNsbtAmount), IntegerEntry(keyLockParamStartBlock(userAddress), start)]
212212
213213
214214 func getParamsOrFail () = $Tuple3(fromBase58String(getStringValue(neutrinoContract, keyBondAsset())), getIntOrFail(keyMinLockAmount()), getIntOrFail(keyHalfLife()))
215215
216216
217217 func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0)
218218
219219
220220 func isBonusPeriod (h) = if ((h >= RENEW_START_HEIGHT))
221221 then (RENEW_END_HEIGHT >= h)
222222 else false
223223
224224
225225 func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress))
226226 then {
227227 let amount = getIntOrFail(keyLockParamUserAmount(userAddress))
228228 $Tuple4(false, amount, getIntOrFail(keyLockParamStartBlock(userAddress)), getIntOrElse(keyLockParamUserGnsbt(userAddress), amount))
229229 }
230230 else unit
231231
232232
233233 func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined"))
234234
235235
236236 let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "")
237237
238238 let supportedAssetsList = split(supportedAssetsStr, "_")
239239
240240 func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = {
241241 let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId)
242242 let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0"))
243243 let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0"))
244244 let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18))
245245 let rewardCachedPartKEY = keyReward(userAddress, assetId)
246246 let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0)
247247 $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY)
248248 }
249249
250250
251251 func toStartOfDay (timestamp) = ((timestamp / DAYMILLIS) * DAYMILLIS)
252252
253253
254254 func findElementPosition (src,element,sep) = {
255255 let elementStart = valueOrErrorMessage(indexOf(src, element), ((("there is no substring " + element) + " in ") + src))
256256 if ((elementStart == 0))
257257 then 0
258258 else {
259259 let left = take(src, elementStart)
260260 (size(split(left, sep)) - 1)
261261 }
262262 }
263263
264264
265265 let DepositTotalsPREFIX = "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d"
266266
267267 let defaultTotalsDATA = (DepositTotalsPREFIX + "__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0__0")
268268
269269 func padList (in) = {
270270 let currSize = (size(in) - 1)
271271 func listPadder (acc,idx) = if ((currSize > idx))
272272 then acc
273273 else (acc :+ "0")
274274
275275 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
276276 let $s = size($l)
277277 let $acc0 = in
278278 func $f0_1 ($a,$i) = if (($i >= $s))
279279 then $a
280280 else listPadder($a, $l[$i])
281281
282282 func $f0_2 ($a,$i) = if (($i >= $s))
283283 then $a
284284 else throw("List size exceeds 18")
285285
286286 $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)
287287 }
288288
289289
290290 func padString (in) = {
291291 let currSize = (size(split_4C(in, SEP)) - 1)
292292 func strPadder (acc,idx) = if ((currSize > idx))
293293 then acc
294294 else (acc + "__0")
295295
296296 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
297297 let $s = size($l)
298298 let $acc0 = in
299299 func $f0_1 ($a,$i) = if (($i >= $s))
300300 then $a
301301 else strPadder($a, $l[$i])
302302
303303 func $f0_2 ($a,$i) = if (($i >= $s))
304304 then $a
305305 else throw("List size exceeds 18")
306306
307307 $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)
308308 }
309309
310310
311311 func RewardEntries (isNewUser,userAddress,stakedAmount) = {
312312 let stakedAmountX = toBigInt(stakedAmount)
313313 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress)
314314 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
315315 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
316316 func forEachAssetCacheUserReward (accum,asset) = {
317317 let $t01139311528 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast)
318318 let rewardTotal = $t01139311528._1
319319 let cached = $t01139311528._2
320320 let dynamic = $t01139311528._3
321321 let rewardCachedPartKEY = $t01139311528._4
322322 (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal))
323323 }
324324
325325 if (if ((depositNumLast == -1))
326326 then (depositNumUser == -1)
327327 else false)
328328 then nil
329329 else if (if ((depositNumLast == -1))
330330 then (depositNumUser > -1)
331331 else false)
332332 then throw("invalid depositNumLast and depositNumUser state")
333333 else if (if ((depositNumLast > -1))
334334 then (depositNumUser >= -1)
335335 else false)
336336 then if (isNewUser)
337337 then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)]
338338 else ({
339339 let $l = supportedAssetsList
340340 let $s = size($l)
341341 let $acc0 = nil
342342 func $f0_1 ($a,$i) = if (($i >= $s))
343343 then $a
344344 else forEachAssetCacheUserReward($a, $l[$i])
345345
346346 func $f0_2 ($a,$i) = if (($i >= $s))
347347 then $a
348348 else throw("List size exceeds 9")
349349
350350 $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)
351351 } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast))
352352 else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser)))
353353 }
354354
355355
356356 func IncrementNotDistributedRewardEntry (tkn,amountInc) = {
357357 let notDistributedRewardKEY = keyNotDistributedReward(tkn)
358358 let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0)
359359 IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))
360360 }
361361
362362
363363 func commonClaim (userAddress,i) = {
364364 let userAddressStr = toString(userAddress)
365365 if ((size(i.payments) > 0))
366366 then throw("payments are not accepted")
367367 else {
368368 let $t01446914590 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
369369 let isNewUser = $t01446914590._1
370370 let stakedAmount = $t01446914590._2
371371 let stakingStart = $t01446914590._3
372372 let gNsbtAmount = $t01446914590._4
373373 let stakedAmountX = toBigInt(gNsbtAmount)
374374 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
375375 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
376376 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
377377 func forEachAssetCalcUnclaimedReward (accum,asset) = {
378378 let $t01496015098 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
379379 let rewardTotal = $t01496015098._1
380380 let cached = $t01496015098._2
381381 let dynamic = $t01496015098._3
382382 let rewardCachedPartKEY = $t01496015098._4
383383 let claimedKEY = keyClaimed(userAddressStr, asset)
384384 let $t01515815195 = accum
385385 let data = $t01515815195._1
386386 let claimedAmtByAsset = $t01515815195._2
387387 let newPart = makeString([asset, toString(rewardTotal)], ":")
388388 let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_")
389389 if ((0 >= rewardTotal))
390390 then $Tuple2(data, claimedAmtByAssetNew)
391391 else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew)
392392 }
393393
394394 let $t01565515768 = {
395395 let $l = supportedAssetsList
396396 let $s = size($l)
397397 let $acc0 = $Tuple2(nil, "")
398398 func $f0_1 ($a,$i) = if (($i >= $s))
399399 then $a
400400 else forEachAssetCalcUnclaimedReward($a, $l[$i])
401401
402402 func $f0_2 ($a,$i) = if (($i >= $s))
403403 then $a
404404 else throw("List size exceeds 9")
405405
406406 $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)
407407 }
408408 let transfers = $t01565515768._1
409409 let claimedAmtByAssetResult = $t01565515768._2
410410 if ((0 >= size(transfers)))
411411 then $Tuple2(nil, 0)
412412 else $Tuple2(((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))), size(transfers))
413413 }
414414 }
415415
416416
417417 func readUserConsentToX2Gnsbt (userAddress) = {
418418 let key = keyUserConsentedToX2Gnsbt(userAddress)
419419 let val = valueOrElse(getBoolean(this, key), false)
420420 $Tuple2(key, val)
421421 }
422422
423423
424424 func commonX2Gnsbt (userAddress,i) = if (!(isBonusPeriod(height)))
425425 then throw("No 'Double gNSBT action' available now")
426426 else {
427427 let $t01633016391 = commonClaim(userAddress, i)
428428 let claimActions = $t01633016391._1
429429 let claimResult = $t01633016391._2
430430 let $t01639416519 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
431431 let isNewUser = $t01639416519._1
432432 let lockAmount = $t01639416519._2
433433 let lockStartHeight = $t01639416519._3
434434 let currUserGnsbt = $t01639416519._4
435435 if (isNewUser)
436436 then throw("You have nothing to restake")
437437 else {
438- let newUserGnsbt = (2 * lockAmount)
439- let totalNsbt = getIntOrZero(keyLockParamTotalAmount())
440- let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalNsbt)
441- let newTotalGnsbt = ((totalGnsbt - currUserGnsbt) + newUserGnsbt)
438+ let deltaUserGnsbt = currUserGnsbt
439+ let newUserGnsbt = (currUserGnsbt + deltaUserGnsbt)
442440 let userConsentTuple = readUserConsentToX2Gnsbt(userAddress)
443441 let userConsentedToX2GnsbtKEY = userConsentTuple._1
444442 let userConsentedToX2Gnsbt = userConsentTuple._2
445443 if (userConsentedToX2Gnsbt)
446444 then throw("User has already doubled its gNSBT value")
447- else $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) :+ IntegerEntry(keyLockParamTotalGnsbt(), newTotalGnsbt)) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult)
445+ else {
446+ let $t01693617022 = StatsResult(0, 0, 0, deltaUserGnsbt)
447+ let statsEntries = $t01693617022._1
448+ let totalStaked = $t01693617022._2
449+ let totalStakedNew = $t01693617022._3
450+ $Tuple2((((claimActions ++ LockParamsEntry(userAddress, lockAmount, height, newUserGnsbt)) ++ statsEntries) :+ BooleanEntry(userConsentedToX2GnsbtKEY, true)), claimResult)
451+ }
448452 }
449453 }
450454
451455
452456 @Callable(i)
453457 func constructorV1 (neutrinoContractAddress,mathContractAddress,minLockAmount,halfLife,supportedRewardAssets) = if ((i.caller != this))
454458 then throw("Permission denied")
455459 else [StringEntry(keyNeutrinoContractAddress(), neutrinoContractAddress), StringEntry(keyMathContractAddress(), mathContractAddress), IntegerEntry(keyMinLockAmount(), minLockAmount), IntegerEntry(keyHalfLife(), halfLife), StringEntry(keySupportedRewardAssets(), supportedRewardAssets)]
456460
457461
458462
459463 @Callable(i)
460464 func constructorV2 (x2GnsbtOfferHeightStart,x2GnsbtOfferHeightEnd) = if ((i.caller != this))
461465 then throw("Permission denied")
462466 else [IntegerEntry(keyCfgX2GnsbtOfferHeightStart(), x2GnsbtOfferHeightStart), IntegerEntry(keyCfgX2GnsbtOfferHeightEnd(), x2GnsbtOfferHeightEnd)]
463467
464468
465469
466470 @Callable(i)
467471 func stake () = {
468- let $t01821518277 = getParamsOrFail()
469- let bondAssetId = $t01821518277._1
470- let minLockAmount = $t01821518277._2
471- let halfLife = $t01821518277._3
472+ let $t01812818190 = getParamsOrFail()
473+ let bondAssetId = $t01812818190._1
474+ let minLockAmount = $t01812818190._2
475+ let halfLife = $t01812818190._3
472476 if ((size(i.payments) != 1))
473477 then throw("Invalid payments size")
474478 else {
475479 let payment = i.payments[0]
476480 let amount = payment.amount
477481 let invalidAssetMessage = (("Invalid asset. " + toBase58String(bondAssetId)) + " is expected")
478482 let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage)
479483 if ((assetId != bondAssetId))
480484 then throw(invalidAssetMessage)
481485 else {
482486 let userAddress = i.caller
483487 let userAddressStr = toString(i.caller)
484- let $t01881918944 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
485- let isNewUser = $t01881918944._1
486- let lockAmount = $t01881918944._2
487- let lockStartHeight = $t01881918944._3
488- let currUserGnsbt = $t01881918944._4
488+ let $t01873218857 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, -1, 0))
489+ let isNewUser = $t01873218857._1
490+ let lockAmount = $t01873218857._2
491+ let lockStartHeight = $t01873218857._3
492+ let currUserGnsbt = $t01873218857._4
489493 let mergedAmount = if (isNewUser)
490494 then amount
491495 else (amount + lockAmount)
492496 let mergedStartHeight = if (isNewUser)
493497 then height
494498 else asInt(invoke(mathContract, "mergeStakesREADONLY", [amount, height, lockAmount, lockStartHeight, halfLife], nil))
495499 if ((minLockAmount > mergedAmount))
496500 then throw(("Min lock amount is " + toString(minLockAmount)))
497501 else {
498502 let userConsentTuple = readUserConsentToX2Gnsbt(userAddress)
499503 let userConsentedToX2GnsbtKEY = userConsentTuple._1
500504 let userConsentedToX2Gnsbt = userConsentTuple._2
501505 let deltaUserGnsbt = if (if (isBonusPeriod(height))
502506 then if (isNewUser)
503507 then true
504508 else userConsentedToX2Gnsbt
505509 else false)
506510 then (2 * amount)
507511 else amount
508512 let x2GnsbtConsentEntry = if (isNewUser)
509513 then [BooleanEntry(userConsentedToX2GnsbtKEY, true)]
510514 else nil
511- let $t01994820066 = StatsResult(amount, 1, if (isNewUser)
515+ let $t01986119979 = StatsResult(amount, 1, if (isNewUser)
512516 then 1
513517 else 0, deltaUserGnsbt)
514- let statsEntries = $t01994820066._1
515- let totalStaked = $t01994820066._2
516- let totalStakedNew = $t01994820066._3
517- (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight, (currUserGnsbt + deltaUserGnsbt))) ++ statsEntries) ++ x2GnsbtConsentEntry)
518+ let statsEntries = $t01986119979._1
519+ let totalStaked = $t01986119979._2
520+ let totalStakedNew = $t01986119979._3
521+ (((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight, (currUserGnsbt + deltaUserGnsbt))) ++ statsEntries) ++ x2GnsbtConsentEntry)
518522 }
519523 }
520524 }
521525 }
522526
523527
524528
525529 @Callable(i)
526530 func unstake (amount) = if ((size(i.payments) != 0))
527531 then throw("unstake doesn't require any payment")
528532 else {
529533 let userAddress = i.caller
530534 let userAddressStr = toString(userAddress)
531- let $t02060920671 = getParamsOrFail()
532- let bondAssetId = $t02060920671._1
533- let minLockAmount = $t02060920671._2
534- let halfLife = $t02060920671._3
535- let $t02067420763 = getUserParamsOrFail(userAddress)
536- let isNewUser = $t02067420763._1
537- let lockAmount = $t02067420763._2
538- let lockStart = $t02067420763._3
539- let currUserGnsbt = $t02067420763._4
535+ let $t02052520587 = getParamsOrFail()
536+ let bondAssetId = $t02052520587._1
537+ let minLockAmount = $t02052520587._2
538+ let halfLife = $t02052520587._3
539+ let $t02059020679 = getUserParamsOrFail(userAddress)
540+ let isNewUser = $t02059020679._1
541+ let lockAmount = $t02059020679._2
542+ let lockStart = $t02059020679._3
543+ let currUserGnsbt = $t02059020679._4
540544 if ((0 >= lockAmount))
541545 then throw("Nothing to unstake")
542546 else if ((amount > lockAmount))
543547 then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(lockAmount)))
544548 else {
545549 let t = value(blockInfoByHeight(height)).timestamp
546550 let releaseTime = valueOrElse(getInteger(govContract, keyUserGnsbtReleaseTime(userAddressStr)), 0)
547551 if ((releaseTime >= t))
548552 then throw(("Your gNsbt are taking part in voting, cannot unstake until " + toString(releaseTime)))
549553 else {
550554 let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil))
551555 let bonusGnsbtPart = (currUserGnsbt - lockAmount)
552556 let bonusNsbtAmount = min([amount, bonusGnsbtPart])
553557 let deltaGnsbt = (bonusNsbtAmount + amount)
554- let $t02160121772 = StatsResult(-(amount), if ((amount == lockAmount))
558+ let $t02151721688 = StatsResult(-(amount), if ((amount == lockAmount))
555559 then -1
556560 else 0, if ((amount == lockAmount))
557561 then -1
558562 else 0, -(deltaGnsbt))
559- let statsEntries = $t02160121772._1
560- let totalStaked = $t02160121772._2
561- let totalStakedNew = $t02160121772._3
562- ((([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, (currUserGnsbt - deltaGnsbt))) ++ statsEntries)
563+ let statsEntries = $t02151721688._1
564+ let totalStaked = $t02151721688._2
565+ let totalStakedNew = $t02151721688._3
566+ ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(auctionContract, comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, currUserGnsbt)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart, (currUserGnsbt - deltaGnsbt))) ++ statsEntries)
563567 }
564568 }
565569 }
566570
567571
568572
569573 @Callable(i)
570574 func deposit () = {
571575 let totalStaked = getIntOrElse(keyLockParamTotalGnsbt(), getIntOrElse(keyLockParamTotalAmount(), 0))
572576 if ((0 > totalStaked))
573577 then throw("TODO: case is not supported")
574578 else {
575579 let depositNumLastKEY = keyDepositNumLast()
576580 let depositNumLast = getIntOrElse(depositNumLastKEY, -1)
577581 let depositNumNew = (depositNumLast + 1)
578582 let totalsKEY = keyStatsDepositAmtTotals()
579583 let byDayKEY = keyStatsDepositAmtByDay(toStartOfDay(lastBlock.timestamp))
580584 let currTotals = padList(split(valueOrElse(getString(totalsKEY), defaultTotalsDATA), SEP))
581585 func dep (acc,pmt) = {
582586 let amount = pmt.amount
583587 let pmtAssetIdStr = toBase58String(valueOrElse(pmt.assetId, WAVESID))
584588 if (!(contains(supportedAssetsStr, pmtAssetIdStr)))
585589 then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr))
586590 else if ((totalStaked == 0))
587591 then $Tuple4((acc._1 :+ IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount)), (acc._2 :+ pmtAssetIdStr), (acc._3 :+ toBigInt(0)), (acc._4 :+ amount))
588592 else {
589593 let rewardPerNsbtX18 = fraction(toBigInt(amount), MULTX18, toBigInt(totalStaked))
590594 $Tuple4(acc._1, (acc._2 :+ pmtAssetIdStr), (acc._3 :+ rewardPerNsbtX18), (acc._4 :+ amount))
591595 }
592596 }
593597
594598 let pmtsResult = {
595599 let $l = i.payments
596600 let $s = size($l)
597601 let $acc0 = $Tuple4(nil, nil, nil, nil)
598602 func $f0_1 ($a,$i) = if (($i >= $s))
599603 then $a
600604 else dep($a, $l[$i])
601605
602606 func $f0_2 ($a,$i) = if (($i >= $s))
603607 then $a
604608 else throw("List size exceeds 10")
605609
606610 $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)
607611 }
608612 func refreshRewardUpdateTotals (accum,nextAsset) = {
609613 let k = accum._3
610614 let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0")
611615 let idx = indexOf(pmtsResult._2, nextAsset)
612616 let sum = if (isDefined(idx))
613617 then {
614618 let j = value(idx)
615619 let statsDelta = pmtsResult._4[j]
616620 $Tuple2(toString((parseBigIntValue(sumLastStr) + pmtsResult._3[j])), toString((parseIntValue(currTotals[(k + 1)]) + statsDelta)))
617621 }
618622 else $Tuple2(sumLastStr, currTotals[(k + 1)])
619623 $Tuple3((accum._1 :+ StringEntry(keyRewardPerNsbtSumAt(depositNumNew, nextAsset), sum._1)), ((accum._2 + SEP) + sum._2), (k + 1))
620624 }
621625
622626 let assetsResult = {
623627 let $l = supportedAssetsList
624628 let $s = size($l)
625629 let $acc0 = $Tuple3(nil, DepositTotalsPREFIX, 0)
626630 func $f1_1 ($a,$i) = if (($i >= $s))
627631 then $a
628632 else refreshRewardUpdateTotals($a, $l[$i])
629633
630634 func $f1_2 ($a,$i) = if (($i >= $s))
631635 then $a
632636 else throw("List size exceeds 9")
633637
634638 $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)
635639 }
636640 let totals = padString(assetsResult._2)
637641 $Tuple2(((((pmtsResult._1 ++ assetsResult._1) :+ IntegerEntry(depositNumLastKEY, depositNumNew)) :+ StringEntry(totalsKEY, totals)) :+ StringEntry(byDayKEY, totals)), depositNumNew)
638642 }
639643 }
640644
641645
642646
643647 @Callable(i)
644648 func claimRewards () = commonClaim(i.caller, i)
645649
646650
647651
648652 @Callable(i)
649653 func claimRewardsByOriginCaller () = commonClaim(i.originCaller, i)
650654
651655
652656
653657 @Callable(i)
654658 func x2Gnsbt () = commonX2Gnsbt(i.caller, i)
655659
656660
657661
658662 @Callable(i)
659663 func x2GnsbtByOriginCaller () = commonX2Gnsbt(i.originCaller, i)
660664
661665
662666
663667 @Callable(i)
664668 func unclaimedRewardsREADONLY (userAddressStr) = {
665669 func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_")
666670
667671 let unclaimedRewardStr = if ((userAddressStr == ""))
668672 then {
669673 let $l = supportedAssetsList
670674 let $s = size($l)
671675 let $acc0 = ""
672676 func $f0_1 ($a,$i) = if (($i >= $s))
673677 then $a
674678 else forEachAssetZeroReward($a, $l[$i])
675679
676680 func $f0_2 ($a,$i) = if (($i >= $s))
677681 then $a
678682 else throw("List size exceeds 9")
679683
680684 $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)
681685 }
682686 else {
683687 let userAddress = addressFromStringValue(userAddressStr)
684- let $t02583625955 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
685- let isNewUser = $t02583625955._1
686- let stakedAmount = $t02583625955._2
687- let stakingStart = $t02583625955._3
688- let userGnsbt = $t02583625955._4
688+ let $t02575525874 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
689+ let isNewUser = $t02575525874._1
690+ let stakedAmount = $t02575525874._2
691+ let stakingStart = $t02575525874._3
692+ let userGnsbt = $t02575525874._4
689693 let stakedAmountX = toBigInt(userGnsbt)
690694 let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr)
691695 let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1)
692696 let depositNumLast = getIntOrElse(keyDepositNumLast(), -1)
693697 func forEachAssetCalcUnclaimedReward (accum,asset) = {
694- let $t02629826436 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
695- let rewardTotal = $t02629826436._1
696- let cached = $t02629826436._2
697- let dynamic = $t02629826436._3
698- let rewardCachedPartKEY = $t02629826436._4
698+ let $t02621726355 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast)
699+ let rewardTotal = $t02621726355._1
700+ let cached = $t02621726355._2
701+ let dynamic = $t02621726355._3
702+ let rewardCachedPartKEY = $t02621726355._4
699703 let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0)
700704 ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_")
701705 }
702706
703707 let $l = supportedAssetsList
704708 let $s = size($l)
705709 let $acc0 = ""
706710 func $f0_1 ($a,$i) = if (($i >= $s))
707711 then $a
708712 else forEachAssetCalcUnclaimedReward($a, $l[$i])
709713
710714 func $f0_2 ($a,$i) = if (($i >= $s))
711715 then $a
712716 else throw("List size exceeds 9")
713717
714718 $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)
715719 }
716720 $Tuple2(nil, dropRight(unclaimedRewardStr, 1))
717721 }
718722
719723
720724
721725 @Callable(i)
722726 func nsbtUnstakingSYSREADONLY (userAddressStrOrEmpty,unstakeAmtP) = {
723727 let resultArray = if ((userAddressStrOrEmpty == ""))
724728 then [0, 0, 0, 0]
725729 else {
726730 let userAddress = addressFromStringValue(userAddressStrOrEmpty)
727731 let cfgDATA = getParamsOrFail()
728732 let nsbtAssetId = cfgDATA._1
729733 let minLockAmount = cfgDATA._2
730734 let halfLife = cfgDATA._3
731735 let userDATA = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
732736 let isNewUser = userDATA._1
733737 let stakedAmount = userDATA._2
734738 let lockStart = userDATA._3
735739 let unstakeAmt = if ((unstakeAmtP > stakedAmount))
736740 then stakedAmount
737741 else unstakeAmtP
738742 let stakedAmountNEW = (stakedAmount - unstakeAmt)
739743 let comissionAmount = if ((unstakeAmt == 0))
740744 then 0
741745 else asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [unstakeAmt, lockStart, halfLife], nil))
742746 let receiveAmount = (unstakeAmt - comissionAmount)
743747 [stakedAmount, stakedAmountNEW, receiveAmount, comissionAmount]
744748 }
745749 $Tuple2(nil, resultArray)
746750 }
747751
748752
749753
750754 @Callable(i)
751755 func nsbtStakingSYSREADONLY (userAddressStr,nsbtDiff) = {
752756 let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0)
753757 let totalGnsbt = getIntOrElse(keyLockParamTotalGnsbt(), totalNsbtAmt)
754758 if ((userAddressStr == ""))
755759 then $Tuple2(nil, [0, totalNsbtAmt, 0, 0, totalGnsbt])
756760 else {
757761 let userAddress = toAddressOrFail(userAddressStr)
758- let $t02822628344 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
759- let isNewUser = $t02822628344._1
760- let userNsbtAmt = $t02822628344._2
761- let stakingStart = $t02822628344._3
762- let userGnsbt = $t02822628344._4
762+ let $t02814528263 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple4(true, 0, 0, 0))
763+ let isNewUser = $t02814528263._1
764+ let userNsbtAmt = $t02814528263._2
765+ let stakingStart = $t02814528263._3
766+ let userGnsbt = $t02814528263._4
763767 $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart, userGnsbt, totalGnsbt])
764768 }
765769 }
766770
767771
768772 @Verifier(tx)
769773 func verify () = {
770774 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
771775 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
772776 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
773777 then 1
774778 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
775779 then 1
776780 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
777781 then 1
778782 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
779783 then 2
780784 else 0))
781785 (count >= 3)
782786 }
783787

github/deemru/w8io/026f985 
105.15 ms