tx · 2ugweH89aAqAbn47dYAZ4fG6q8uaKMVMM8igJafuEXYD 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J: -0.01400000 Waves 2022.03.17 13:31 [1967820] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves
{ "type": 13, "id": "2ugweH89aAqAbn47dYAZ4fG6q8uaKMVMM8igJafuEXYD", "fee": 1400000, "feeAssetId": null, "timestamp": 1647513102364, "version": 1, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "3yjkMStyy2fygvWMTKJ8F29WA91f1bALwWXFHXZfwa5pvGWMUcDeyBgyMK9QgiWqs17nyphTtCjicmPTYhquoFTw" ], "script": "base64:AAIFAAAAAAAAACAIAhIHCgUICAEBCBIAEgMKAQESABIAEgMKAQgSAwoBCAAAADEAAAAACXNlcGFyYXRvcgIAAAACX18AAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAGTVVMVFg2CQABNgAAAAEFAAAABU1VTFQ2AAAAAAZNVUxUWDgJAAE2AAAAAQUAAAAFTVVMVDgAAAAAB01VTFRYMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKV0FWRVNJRFNUUgIAAAAFV0FWRVMAAAAAB1dBVkVTSUQJAAJZAAAAAQUAAAAKV0FWRVNJRFNUUgEAAAAMa2V5Qm9uZEFzc2V0AAAAAAIAAAANYm9uZF9hc3NldF9pZAEAAAAZa2V5QXVjdGlvbkNvbnRyYWN0QWRkcmVzcwAAAAACAAAAEGF1Y3Rpb25fY29udHJhY3QBAAAAGmtleU5ldXRyaW5vQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAbJXNfX25ldXRyaW5vQ29udHJhY3RBZGRyZXNzAQAAABZrZXlNYXRoQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAQJXNfX21hd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AAIFAAAADHRvdGFsTnNidEFtdAkABEwAAAACAAAAAAAAAAAABQAAAANuaWwEAAAAC3VzZXJBZGRyZXNzCQEAAAAPdG9BZGRyZXNzT3JGYWlsAAAAAQUAAAAOdXNlckFkZHJlc3NTdHIEAAAADSR0MDE3OTQ0MTgwNDgJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAABNnZXRVc2VyUGFyYW1zT3JVbml0AAAAAQUAAAALdXNlckFkZHJlc3MJAAUVAAAAAwYAAAAAAAAAAAAAAAAAAAAAAAAEAAAACWlzTmV3VXNlcggFAAAADSR0MDE3OTQ0MTgwNDgAAAACXzEEAAAAC3VzZXJOc2J0QW10CAUAAAANJHQwMTc5NDQxODA0OAAAAAJfMgQAAAAMc3Rha2luZ1N0YXJ0CAUAAAANJHQwMTc5NDQxODA0OAAAAAJfMwkABRQAAAACBQAAAANuaWwJAARMAAAAAgUAAAALdXNlck5zYnRBbXQJAARMAAAAAgUAAAAMdG90YWxOc2J0QW10CQAETAAAAAIFAAAADHN0YWtpbmdTdGFydAUAAAADbmlsAAAAAPk2QTg=", "chainId": 84, "height": 1967820, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4SajAxuPevgLaVq1n46WFcN2jw5jxd6ew1AEQWtWtyTS Next: EQWgVZuHMZ1EUuDmVr2NRCT7Cqmms6aufdYXKUSsBMSe Diff:
Old | New | Differences | |
---|---|---|---|
462 | 462 | ||
463 | 463 | ||
464 | 464 | @Callable(i) | |
465 | - | func nsbtStakingSYSREADONLY (userAddressStr) = if ((userAddressStr == "")) | |
466 | - | then $Tuple2(nil, $Tuple2(0, 0)) | |
467 | - | else { | |
468 | - | let userAddress = toAddressOrFail(userAddressStr) | |
469 | - | let $t01786617970 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
470 | - | let isNewUser = $t01786617970._1 | |
471 | - | let userNsbtAmt = $t01786617970._2 | |
472 | - | let stakingStart = $t01786617970._3 | |
473 | - | let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0) | |
474 | - | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart]) | |
475 | - | } | |
465 | + | func nsbtStakingSYSREADONLY (userAddressStr) = { | |
466 | + | let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0) | |
467 | + | if ((userAddressStr == "")) | |
468 | + | then $Tuple2(nil, [0, totalNsbtAmt, 0]) | |
469 | + | else { | |
470 | + | let userAddress = toAddressOrFail(userAddressStr) | |
471 | + | let $t01794418048 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
472 | + | let isNewUser = $t01794418048._1 | |
473 | + | let userNsbtAmt = $t01794418048._2 | |
474 | + | let stakingStart = $t01794418048._3 | |
475 | + | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart]) | |
476 | + | } | |
477 | + | } | |
476 | 478 | ||
477 | 479 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | let MULT6 = 1000000 | |
7 | 7 | ||
8 | 8 | let MULT8 = 100000000 | |
9 | 9 | ||
10 | 10 | let MULTX6 = toBigInt(MULT6) | |
11 | 11 | ||
12 | 12 | let MULTX8 = toBigInt(MULT8) | |
13 | 13 | ||
14 | 14 | let MULTX18 = toBigInt(1000000000000000000) | |
15 | 15 | ||
16 | 16 | let WAVESIDSTR = "WAVES" | |
17 | 17 | ||
18 | 18 | let WAVESID = fromBase58String(WAVESIDSTR) | |
19 | 19 | ||
20 | 20 | func keyBondAsset () = "bond_asset_id" | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func keyAuctionContractAddress () = "auction_contract" | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func keyNeutrinoContractAddress () = "%s__neutrinoContractAddress" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func keyMathContractAddress () = "%s__mathContract" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func keyMinLockAmount () = "%s__minLockAmount" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func keyHalfLife () = "%s__halfLife" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func keyNextPeriod () = "%s__nextPeriod" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keySupportedRewardAssets () = "supportedRewardAssets" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined")) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (("Mandatory this." + key) + " is not defined")) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR)) | |
99 | 99 | then unit | |
100 | 100 | else fromBase58String(assetStr) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func asInt (val) = match val { | |
104 | 104 | case valInt: Int => | |
105 | 105 | valInt | |
106 | 106 | case _ => | |
107 | 107 | throw("fail to cast into Int") | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | 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) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart)) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func StatsResult (totalLockedInc,lockCountInc,usersCountInc) = { | |
118 | 118 | let locksCount = getIntOrZero(keyStatsLocksCount()) | |
119 | 119 | let usersCount = getIntOrZero(keyStatsUsersCount()) | |
120 | 120 | let totalAmount = getIntOrZero(keyLockParamTotalAmount()) | |
121 | 121 | let totalAmountNew = (totalAmount + totalLockedInc) | |
122 | 122 | $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew)], totalAmount, totalAmountNew) | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func LockParamsEntry (userAddress,amount,start) = [IntegerEntry(keyLockParamUserAmount(userAddress), amount), IntegerEntry(keyLockParamStartBlock(userAddress), start)] | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getParamsOrFail () = { | |
130 | 130 | let neutrinoContract = addressFromStringValue(getStringOrFail(keyNeutrinoContractAddress())) | |
131 | 131 | $Tuple4(fromBase58String(getStringValue(neutrinoContract, keyAuctionContractAddress())), fromBase58String(getStringValue(neutrinoContract, keyBondAsset())), getIntOrFail(keyMinLockAmount()), getIntOrFail(keyHalfLife())) | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress)) | |
139 | 139 | then $Tuple3(false, getIntOrFail(keyLockParamUserAmount(userAddress)), getIntOrFail(keyLockParamStartBlock(userAddress))) | |
140 | 140 | else unit | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined")) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "") | |
147 | 147 | ||
148 | 148 | let supportedAssetsList = split(supportedAssetsStr, "_") | |
149 | 149 | ||
150 | 150 | func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = { | |
151 | 151 | let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId) | |
152 | 152 | let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0")) | |
153 | 153 | let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0")) | |
154 | 154 | let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18)) | |
155 | 155 | let rewardCachedPartKEY = keyReward(userAddress, assetId) | |
156 | 156 | let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0) | |
157 | 157 | $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY) | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func RewardEntries (isNewUser,userAddress,stakedAmount) = { | |
162 | 162 | let stakedAmountX = toBigInt(stakedAmount) | |
163 | 163 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress) | |
164 | 164 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
165 | 165 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
166 | 166 | func forEachAssetCacheUserReward (accum,asset) = { | |
167 | 167 | let $t067986933 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast) | |
168 | 168 | let rewardTotal = $t067986933._1 | |
169 | 169 | let cached = $t067986933._2 | |
170 | 170 | let dynamic = $t067986933._3 | |
171 | 171 | let rewardCachedPartKEY = $t067986933._4 | |
172 | 172 | (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal)) | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | if (if ((depositNumLast == -1)) | |
176 | 176 | then (depositNumUser == -1) | |
177 | 177 | else false) | |
178 | 178 | then nil | |
179 | 179 | else if (if ((depositNumLast == -1)) | |
180 | 180 | then (depositNumUser > -1) | |
181 | 181 | else false) | |
182 | 182 | then throw("invalid depositNumLast and depositNumUser state") | |
183 | 183 | else if (if ((depositNumLast > -1)) | |
184 | 184 | then (depositNumUser == -1) | |
185 | 185 | else false) | |
186 | 186 | then if (isNewUser) | |
187 | 187 | then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)] | |
188 | 188 | else throw("isNewUser must not be false in 5 + 6 cases") | |
189 | 189 | else if (if ((depositNumLast > -1)) | |
190 | 190 | then (depositNumUser > -1) | |
191 | 191 | else false) | |
192 | 192 | then if (isNewUser) | |
193 | 193 | then throw((((("invalid management for isNewUser=" + toString(isNewUser)) + " and depositNumUser=") + toString(depositNumUser)) + " during full unstake")) | |
194 | 194 | else ({ | |
195 | 195 | let $l = supportedAssetsList | |
196 | 196 | let $s = size($l) | |
197 | 197 | let $acc0 = nil | |
198 | 198 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
199 | 199 | then $a | |
200 | 200 | else forEachAssetCacheUserReward($a, $l[$i]) | |
201 | 201 | ||
202 | 202 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
203 | 203 | then $a | |
204 | 204 | else throw("List size exceeds 10") | |
205 | 205 | ||
206 | 206 | $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) | |
207 | 207 | } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) | |
208 | 208 | else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser))) | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func IncrementNotDistributedRewardEntry (tkn,amountInc) = { | |
213 | 213 | let notDistributedRewardKEY = keyNotDistributedReward(tkn) | |
214 | 214 | let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0) | |
215 | 215 | [IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))] | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | @Callable(i) | |
220 | 220 | func constructor (neutrinoContractAddress,mathContractAddress,minLockAmount,halfLife,supportedRewardAssets) = if ((i.caller != this)) | |
221 | 221 | then throw("Permission denied") | |
222 | 222 | else [StringEntry(keyNeutrinoContractAddress(), neutrinoContractAddress), StringEntry(keyMathContractAddress(), mathContractAddress), IntegerEntry(keyMinLockAmount(), minLockAmount), IntegerEntry(keyHalfLife(), halfLife), StringEntry(keySupportedRewardAssets(), supportedRewardAssets)] | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Callable(i) | |
227 | 227 | func stake () = { | |
228 | 228 | let $t01080310882 = getParamsOrFail() | |
229 | 229 | let auctionContract = $t01080310882._1 | |
230 | 230 | let bondAssetId = $t01080310882._2 | |
231 | 231 | let minLockAmount = $t01080310882._3 | |
232 | 232 | let halfLife = $t01080310882._4 | |
233 | 233 | if ((size(i.payments) != 1)) | |
234 | 234 | then throw("Invalid payments size") | |
235 | 235 | else { | |
236 | 236 | let payment = i.payments[0] | |
237 | 237 | let amount = payment.amount | |
238 | 238 | let invalidAssetMessage = (("Invalid asset. " + toBase58String(bondAssetId)) + " is expected") | |
239 | 239 | let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage) | |
240 | 240 | if ((assetId != bondAssetId)) | |
241 | 241 | then throw(invalidAssetMessage) | |
242 | 242 | else { | |
243 | 243 | let userAddress = i.caller | |
244 | 244 | let userAddressStr = toString(i.caller) | |
245 | 245 | let $t01142411531 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, -1)) | |
246 | 246 | let isNewUser = $t01142411531._1 | |
247 | 247 | let lockAmount = $t01142411531._2 | |
248 | 248 | let lockStartHeight = $t01142411531._3 | |
249 | 249 | let mergedAmount = if (isNewUser) | |
250 | 250 | then amount | |
251 | 251 | else (amount + lockAmount) | |
252 | 252 | let mergedStartHeight = if (isNewUser) | |
253 | 253 | then height | |
254 | 254 | else { | |
255 | 255 | let mathContract = addressFromStringValue(getStringOrFail(keyMathContractAddress())) | |
256 | 256 | asInt(invoke(mathContract, "mergeStakesREADONLY", [amount, height, lockAmount, lockStartHeight, halfLife], nil)) | |
257 | 257 | } | |
258 | 258 | if ((minLockAmount > mergedAmount)) | |
259 | 259 | then throw(("Min lock amount is " + toString(minLockAmount))) | |
260 | 260 | else { | |
261 | 261 | let $t01198112083 = StatsResult(amount, 1, if (isNewUser) | |
262 | 262 | then 1 | |
263 | 263 | else 0) | |
264 | 264 | let statsEntries = $t01198112083._1 | |
265 | 265 | let totalStaked = $t01198112083._2 | |
266 | 266 | let totalStakedNew = $t01198112083._3 | |
267 | 267 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
268 | 268 | ((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight)) ++ statsEntries) :+ IntegerEntry(keyUserRewardFromDepositNum(userAddressStr), getIntOrElse(keyDepositNumLast(), -1))) | |
269 | 269 | } | |
270 | 270 | } | |
271 | 271 | } | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | ||
276 | 276 | @Callable(i) | |
277 | 277 | func unstake (amount) = { | |
278 | 278 | let userAddress = i.caller | |
279 | 279 | let userAddressStr = toString(userAddress) | |
280 | 280 | let $t01258812666 = getParamsOrFail() | |
281 | 281 | let auctionAddress = $t01258812666._1 | |
282 | 282 | let bondAssetId = $t01258812666._2 | |
283 | 283 | let minLockAmount = $t01258812666._3 | |
284 | 284 | let halfLife = $t01258812666._4 | |
285 | 285 | let $t01266912743 = getUserParamsOrFail(userAddress) | |
286 | 286 | let isNewUser = $t01266912743._1 | |
287 | 287 | let lockAmount = $t01266912743._2 | |
288 | 288 | let lockStart = $t01266912743._3 | |
289 | 289 | if ((0 >= lockAmount)) | |
290 | 290 | then throw("Nothing to unstake") | |
291 | 291 | else if ((amount > lockAmount)) | |
292 | 292 | then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(lockAmount))) | |
293 | 293 | else { | |
294 | 294 | let mathContract = addressFromStringValue(getStringOrFail(keyMathContractAddress())) | |
295 | 295 | let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil)) | |
296 | 296 | let $t01314413298 = StatsResult(-(amount), if ((amount == lockAmount)) | |
297 | 297 | then -1 | |
298 | 298 | else 0, if ((amount == lockAmount)) | |
299 | 299 | then -1 | |
300 | 300 | else 0) | |
301 | 301 | let statsEntries = $t01314413298._1 | |
302 | 302 | let totalStaked = $t01314413298._2 | |
303 | 303 | let totalStakedNew = $t01314413298._3 | |
304 | 304 | ((([ScriptTransfer(userAddress, (amount - comissionAmount), bondAssetId), ScriptTransfer(Address(auctionAddress), comissionAmount, bondAssetId), HistoryRecordEntry("unstake", userAddress, i.transactionId, lockAmount, lockStart, (lockAmount - amount), lockStart)] ++ RewardEntries(false, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, (lockAmount - amount), lockStart)) ++ statsEntries) | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(i) | |
311 | 311 | func deposit () = if ((size(i.payments) != 1)) | |
312 | 312 | then throw("exact 1 payment is allowed only") | |
313 | 313 | else { | |
314 | 314 | let pmt = i.payments[0] | |
315 | 315 | let amount = pmt.amount | |
316 | 316 | let pmtAssetId = valueOrElse(pmt.assetId, WAVESID) | |
317 | 317 | let pmtAssetIdStr = toBase58String(pmtAssetId) | |
318 | 318 | let pmtMultX = if ((pmtAssetId == WAVESID)) | |
319 | 319 | then MULTX8 | |
320 | 320 | else MULTX6 | |
321 | 321 | let amountX = toBigInt(amount) | |
322 | 322 | let totalStaked = getIntOrElse(keyLockParamTotalAmount(), 0) | |
323 | 323 | let totalStakedX = toBigInt(totalStaked) | |
324 | 324 | if ((0 > totalStaked)) | |
325 | 325 | then throw("TODO: case is not supported") | |
326 | 326 | else if ((totalStaked == 0)) | |
327 | 327 | then IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount) | |
328 | 328 | else { | |
329 | 329 | let rewardPerNsbtX18 = fraction(amountX, MULTX18, totalStakedX) | |
330 | 330 | let depositNumLastKEY = keyDepositNumLast() | |
331 | 331 | let depositNumLast = getIntOrElse(depositNumLastKEY, -1) | |
332 | 332 | let depositNumNew = (depositNumLast + 1) | |
333 | 333 | if (!(contains(supportedAssetsStr, pmtAssetIdStr))) | |
334 | 334 | then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr)) | |
335 | 335 | else { | |
336 | 336 | func refreshRewardPerNsbtSUM (accum,nextAsset) = { | |
337 | 337 | let rewardPerNsbtSumNewKEY = keyRewardPerNsbtSumAt(depositNumNew, nextAsset) | |
338 | 338 | let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0") | |
339 | 339 | (accum :+ (if ((nextAsset == pmtAssetIdStr)) | |
340 | 340 | then StringEntry(rewardPerNsbtSumNewKEY, toString((parseBigIntValue(sumLastStr) + rewardPerNsbtX18))) | |
341 | 341 | else StringEntry(rewardPerNsbtSumNewKEY, sumLastStr))) | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ({ | |
345 | 345 | let $l = supportedAssetsList | |
346 | 346 | let $s = size($l) | |
347 | 347 | let $acc0 = nil | |
348 | 348 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
349 | 349 | then $a | |
350 | 350 | else refreshRewardPerNsbtSUM($a, $l[$i]) | |
351 | 351 | ||
352 | 352 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
353 | 353 | then $a | |
354 | 354 | else throw("List size exceeds 10") | |
355 | 355 | ||
356 | 356 | $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) | |
357 | 357 | } :+ IntegerEntry(depositNumLastKEY, depositNumNew)) | |
358 | 358 | } | |
359 | 359 | } | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | ||
364 | 364 | @Callable(i) | |
365 | 365 | func claimRewards () = { | |
366 | 366 | let userAddress = i.caller | |
367 | 367 | let userAddressStr = toString(userAddress) | |
368 | 368 | let $t01548015585 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
369 | 369 | let isNewUser = $t01548015585._1 | |
370 | 370 | let stakedAmount = $t01548015585._2 | |
371 | 371 | let stakingStart = $t01548015585._3 | |
372 | 372 | let stakedAmountX = toBigInt(stakedAmount) | |
373 | 373 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
374 | 374 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
375 | 375 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
376 | 376 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
377 | 377 | let $t01594616084 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
378 | 378 | let rewardTotal = $t01594616084._1 | |
379 | 379 | let cached = $t01594616084._2 | |
380 | 380 | let dynamic = $t01594616084._3 | |
381 | 381 | let rewardCachedPartKEY = $t01594616084._4 | |
382 | 382 | if ((0 >= rewardTotal)) | |
383 | 383 | then accum | |
384 | 384 | else ((accum :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(rewardCachedPartKEY, 0)) | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | let transfers = { | |
388 | 388 | let $l = supportedAssetsList | |
389 | 389 | let $s = size($l) | |
390 | 390 | let $acc0 = nil | |
391 | 391 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
392 | 392 | then $a | |
393 | 393 | else forEachAssetCalcUnclaimedReward($a, $l[$i]) | |
394 | 394 | ||
395 | 395 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
396 | 396 | then $a | |
397 | 397 | else throw("List size exceeds 10") | |
398 | 398 | ||
399 | 399 | $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) | |
400 | 400 | } | |
401 | 401 | if ((0 >= size(transfers))) | |
402 | 402 | then throw("nothing to claim") | |
403 | 403 | else transfers | |
404 | 404 | } | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | ||
408 | 408 | @Callable(i) | |
409 | 409 | func unclaimedRewardsREADONLY (userAddressStr) = { | |
410 | 410 | func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_") | |
411 | 411 | ||
412 | 412 | let unclaimedRewardStr = if ((userAddressStr == "")) | |
413 | 413 | then { | |
414 | 414 | let $l = supportedAssetsList | |
415 | 415 | let $s = size($l) | |
416 | 416 | let $acc0 = "" | |
417 | 417 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
418 | 418 | then $a | |
419 | 419 | else forEachAssetZeroReward($a, $l[$i]) | |
420 | 420 | ||
421 | 421 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
422 | 422 | then $a | |
423 | 423 | else throw("List size exceeds 10") | |
424 | 424 | ||
425 | 425 | $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) | |
426 | 426 | } | |
427 | 427 | else { | |
428 | 428 | let userAddress = addressFromStringValue(userAddressStr) | |
429 | 429 | let $t01684816953 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
430 | 430 | let isNewUser = $t01684816953._1 | |
431 | 431 | let stakedAmount = $t01684816953._2 | |
432 | 432 | let stakingStart = $t01684816953._3 | |
433 | 433 | let stakedAmountX = toBigInt(stakedAmount) | |
434 | 434 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
435 | 435 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
436 | 436 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
437 | 437 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
438 | 438 | let $t01729917437 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
439 | 439 | let rewardTotal = $t01729917437._1 | |
440 | 440 | let cached = $t01729917437._2 | |
441 | 441 | let dynamic = $t01729917437._3 | |
442 | 442 | let rewardCachedPartKEY = $t01729917437._4 | |
443 | 443 | ((accum + makeString([asset, toString(rewardTotal), "0"], ":")) + "_") | |
444 | 444 | } | |
445 | 445 | ||
446 | 446 | let $l = supportedAssetsList | |
447 | 447 | let $s = size($l) | |
448 | 448 | let $acc0 = "" | |
449 | 449 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
450 | 450 | then $a | |
451 | 451 | else forEachAssetCalcUnclaimedReward($a, $l[$i]) | |
452 | 452 | ||
453 | 453 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
454 | 454 | then $a | |
455 | 455 | else throw("List size exceeds 10") | |
456 | 456 | ||
457 | 457 | $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) | |
458 | 458 | } | |
459 | 459 | $Tuple2(nil, dropRight(unclaimedRewardStr, 1)) | |
460 | 460 | } | |
461 | 461 | ||
462 | 462 | ||
463 | 463 | ||
464 | 464 | @Callable(i) | |
465 | - | func nsbtStakingSYSREADONLY (userAddressStr) = if ((userAddressStr == "")) | |
466 | - | then $Tuple2(nil, $Tuple2(0, 0)) | |
467 | - | else { | |
468 | - | let userAddress = toAddressOrFail(userAddressStr) | |
469 | - | let $t01786617970 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
470 | - | let isNewUser = $t01786617970._1 | |
471 | - | let userNsbtAmt = $t01786617970._2 | |
472 | - | let stakingStart = $t01786617970._3 | |
473 | - | let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0) | |
474 | - | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart]) | |
475 | - | } | |
465 | + | func nsbtStakingSYSREADONLY (userAddressStr) = { | |
466 | + | let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0) | |
467 | + | if ((userAddressStr == "")) | |
468 | + | then $Tuple2(nil, [0, totalNsbtAmt, 0]) | |
469 | + | else { | |
470 | + | let userAddress = toAddressOrFail(userAddressStr) | |
471 | + | let $t01794418048 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
472 | + | let isNewUser = $t01794418048._1 | |
473 | + | let userNsbtAmt = $t01794418048._2 | |
474 | + | let stakingStart = $t01794418048._3 | |
475 | + | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart]) | |
476 | + | } | |
477 | + | } | |
476 | 478 | ||
477 | 479 |
github/deemru/w8io/169f3d6 60.24 ms ◑