tx · CkcUbebPJtnqs13nZVsbC4LEFM9bmHEpfd5g7cR2tSf4 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J: -0.04000000 Waves 2022.08.03 11:07 [2168046] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves
{ "type": 13, "id": "CkcUbebPJtnqs13nZVsbC4LEFM9bmHEpfd5g7cR2tSf4", "fee": 4000000, "feeAssetId": null, "timestamp": 1659514060778, "version": 1, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "5ADBdZEiyF5GEU9fcSi2h9oVNQG1rwBhxzbxDkj51MMMgoZNM7gqQTb9nLhmWWVDDRdsoLW2Ey1x6ZsaymPNE4Lv", "2NhjTKSMX8KAAboR7pYWd5dMM4s9Gb5wHANNzhs6tgP4tbTS3umcXYV3fQeQ8KX9JyMcvEGhynjw7UEEmjSf2dZD", "2E9aNqPYnCShKd7CCUaTP4vBjDv8SLtEDYWndooRRZLTZgXvpRNWShaWQp6eUeZZ5PxuNfFggyvUd2qTLhwe2hPs" ], "script": "base64:AAIFAAAAAAAAACgIAhIHCgUICAEBCBIAEgMKAQESABIAEgASAwoBCBIECgIIARIDCgEIAAAARwAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAADU0VQAgAAAAJfXwAAAAAFTVVMVDYAAAAAAAAPQkAAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAZNVUxUWDYJAAE2AAAAAQUAAAAFTVVMVDYAAAAABk1VTFRYOAkAATYAAAABBQAAAAVNVUxUOAAAAAAHTVVMVFgxOAkAATYAAAABAA3gtrOnZAAAAAAAAApXQVZFU0lEU1RSAgAAAAVXQVZFUwAAAAAHV0FWRVNJRAkAAlkAAAABBQAAAApXQVZFU0lEU1RSAAAAABlJZHhDb250cm9sQ2ZnTmV1dHJpbm9EYXBwAAAAAAAAAAABA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AQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAwAAAAAAAAAAAgAAAAAAAAAAAAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAA1HR0I0=", "chainId": 84, "height": 2168046, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4gcVtk4cUXd8Ms5ZV9nR8FyMFQ6LGEGPFi4zgrdEPrm1 Next: DqEskSNZdQz2LbsAovFHboAoJ7Qs5dsZkAd9ADfod3m8 Diff:
Old | New | Differences | |
---|---|---|---|
226 | 226 | else false) | |
227 | 227 | then throw("invalid depositNumLast and depositNumUser state") | |
228 | 228 | else if (if ((depositNumLast > -1)) | |
229 | - | then (depositNumUser | |
229 | + | then (depositNumUser >= -1) | |
230 | 230 | else false) | |
231 | 231 | then if (isNewUser) | |
232 | 232 | then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)] |
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 SEP = "__" | |
7 | 7 | ||
8 | 8 | let MULT6 = 1000000 | |
9 | 9 | ||
10 | 10 | let MULT8 = 100000000 | |
11 | 11 | ||
12 | 12 | let MULTX6 = toBigInt(MULT6) | |
13 | 13 | ||
14 | 14 | let MULTX8 = toBigInt(MULT8) | |
15 | 15 | ||
16 | 16 | let MULTX18 = toBigInt(1000000000000000000) | |
17 | 17 | ||
18 | 18 | let WAVESIDSTR = "WAVES" | |
19 | 19 | ||
20 | 20 | let WAVESID = fromBase58String(WAVESIDSTR) | |
21 | 21 | ||
22 | 22 | let IdxControlCfgNeutrinoDapp = 1 | |
23 | 23 | ||
24 | 24 | let IdxControlCfgAuctionDapp = 2 | |
25 | 25 | ||
26 | 26 | let IdxControlCfgRpdDapp = 3 | |
27 | 27 | ||
28 | 28 | let IdxControlCfgMathDapp = 4 | |
29 | 29 | ||
30 | 30 | let IdxControlCfgLiquidationDapp = 5 | |
31 | 31 | ||
32 | 32 | let IdxControlCfgRestDapp = 6 | |
33 | 33 | ||
34 | 34 | let IdxControlCfgNodeRegistryDapp = 7 | |
35 | 35 | ||
36 | 36 | let IdxControlCfgNsbtStakingDapp = 8 | |
37 | 37 | ||
38 | 38 | let IdxControlCfgMediatorDapp = 9 | |
39 | 39 | ||
40 | 40 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func keyControlAddress () = "%s%s__config__controlAddress" | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func keyControlCfg () = "%s__controlConfig" | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
56 | 56 | ||
57 | 57 | let controlCfg = readControlCfgOrFail(controlContract) | |
58 | 58 | ||
59 | 59 | let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp) | |
60 | 60 | ||
61 | 61 | let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp) | |
62 | 62 | ||
63 | 63 | let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp) | |
64 | 64 | ||
65 | 65 | func keyBondAsset () = "bond_asset_id" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyNeutrinoContractAddress () = "%s__neutrinoContractAddress" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyMathContractAddress () = "%s__mathContract" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyMinLockAmount () = "%s__minLockAmount" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyHalfLife () = "%s__halfLife" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "amount"], separator) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", toString(userAddress), "start"], separator) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyHistoryRecord (type,userAddress,txId) = makeString(["%s%s%s%s", "history", type, toString(userAddress), toBase58String(txId)], separator) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyLockParamTotalAmount () = makeString(["%s%s", "stats", "activeTotalLocked"], separator) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyStatsLocksCount () = makeString(["%s%s", "stats", "locksCount"], separator) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyStatsUsersCount () = makeString(["%s%s", "stats", "activeUsersCount"], separator) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyNextPeriod () = "%s__nextPeriod" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keySupportedRewardAssets () = "supportedRewardAssets" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyDepositNumLast () = makeString(["%s%s%s", "dep", "lastNum"], separator) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyUserRewardFromDepositNum (userAddress) = makeString(["%s%s%s", "userRwdFromDepNum", userAddress], separator) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyRewardPerNsbtSumAt (depositNum,tkn) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(depositNum), tkn], separator) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyReward (userAddress,tkn) = makeString(["%s%s%s", "rwd", userAddress, tkn], separator) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keyClaimed (userAddress,tkn) = makeString(["%s%s%s", "clm", userAddress, tkn], separator) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyNotDistributedReward (tkn) = makeString(["%s%s", "notDistributed", tkn], separator) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func toX18 (origVal,origMult) = fraction(toBigInt(origVal), MULTX18, origMult) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (("Mandatory this." + key) + " is not defined")) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func getStrOrElse (key,defaultVal) = valueOrElse(getString(this, key), defaultVal) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func toAddressOrFail (addressStr) = valueOrErrorMessage(addressFromString(addressStr), ("couldn't parse passed addressStr=" + addressStr)) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func toAssetVect (assetStr) = if ((assetStr == WAVESIDSTR)) | |
141 | 141 | then unit | |
142 | 142 | else fromBase58String(assetStr) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func asInt (val) = match val { | |
146 | 146 | case valInt: Int => | |
147 | 147 | valInt | |
148 | 148 | case _ => | |
149 | 149 | throw("fail to cast into Int") | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | 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) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func formatClaimHistoryRecord (user,claimedRewards) = makeString(["%s%d%d%s", user, toString(lastBlock.height), toString(lastBlock.timestamp), claimedRewards], separator) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func HistoryRecordEntry (type,userAddress,txId,oldAmount,oldStart,newAmount,newStart) = StringEntry(keyHistoryRecord(type, userAddress, txId), formatHistoryRecord(oldAmount, oldStart, newAmount, newStart)) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ClaimHistoryEntry (userAddress,txId,claimedRewards) = StringEntry(keyHistoryRecord("claim", userAddress, txId), formatClaimHistoryRecord(toString(userAddress), claimedRewards)) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func StatsResult (totalLockedInc,lockCountInc,usersCountInc) = { | |
166 | 166 | let locksCount = getIntOrZero(keyStatsLocksCount()) | |
167 | 167 | let usersCount = getIntOrZero(keyStatsUsersCount()) | |
168 | 168 | let totalAmount = getIntOrZero(keyLockParamTotalAmount()) | |
169 | 169 | let totalAmountNew = (totalAmount + totalLockedInc) | |
170 | 170 | $Tuple3([IntegerEntry(keyStatsLocksCount(), (locksCount + lockCountInc)), IntegerEntry(keyStatsUsersCount(), (usersCount + usersCountInc)), IntegerEntry(keyLockParamTotalAmount(), totalAmountNew)], totalAmount, totalAmountNew) | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func LockParamsEntry (userAddress,amount,start) = [IntegerEntry(keyLockParamUserAmount(userAddress), amount), IntegerEntry(keyLockParamStartBlock(userAddress), start)] | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func getParamsOrFail () = $Tuple3(fromBase58String(getStringValue(neutrinoContract, keyBondAsset())), getIntOrFail(keyMinLockAmount()), getIntOrFail(keyHalfLife())) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func isActiveUser (userAddress) = (getIntOrElse(keyLockParamUserAmount(userAddress), 0) > 0) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func getUserParamsOrUnit (userAddress) = if (isActiveUser(userAddress)) | |
184 | 184 | then $Tuple3(false, getIntOrFail(keyLockParamUserAmount(userAddress)), getIntOrFail(keyLockParamStartBlock(userAddress))) | |
185 | 185 | else unit | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getUserParamsOrFail (userAddress) = valueOrErrorMessage(getUserParamsOrUnit(userAddress), (("User " + toString(userAddress)) + " is not defined")) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | let supportedAssetsStr = getStrOrElse(keySupportedRewardAssets(), "") | |
192 | 192 | ||
193 | 193 | let supportedAssetsList = split(supportedAssetsStr, "_") | |
194 | 194 | ||
195 | 195 | func calcReward (userAddress,assetId,stakedAmountX,depositNumUser,depositNumLast) = { | |
196 | 196 | let rewardPerNsbtSumLastKEY = keyRewardPerNsbtSumAt(depositNumLast, assetId) | |
197 | 197 | let sumLastX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, assetId), "0")) | |
198 | 198 | let sumUserX18 = parseBigIntValue(getStrOrElse(keyRewardPerNsbtSumAt(depositNumUser, assetId), "0")) | |
199 | 199 | let rewardDynamicPart = toInt(fraction((sumLastX18 - sumUserX18), stakedAmountX, MULTX18)) | |
200 | 200 | let rewardCachedPartKEY = keyReward(userAddress, assetId) | |
201 | 201 | let rewardCachedPart = getIntOrElse(rewardCachedPartKEY, 0) | |
202 | 202 | $Tuple4((rewardCachedPart + rewardDynamicPart), rewardCachedPart, rewardDynamicPart, rewardCachedPartKEY) | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func RewardEntries (isNewUser,userAddress,stakedAmount) = { | |
207 | 207 | let stakedAmountX = toBigInt(stakedAmount) | |
208 | 208 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddress) | |
209 | 209 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
210 | 210 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
211 | 211 | func forEachAssetCacheUserReward (accum,asset) = { | |
212 | 212 | let $t084098544 = calcReward(userAddress, asset, stakedAmountX, depositNumUser, depositNumLast) | |
213 | 213 | let rewardTotal = $t084098544._1 | |
214 | 214 | let cached = $t084098544._2 | |
215 | 215 | let dynamic = $t084098544._3 | |
216 | 216 | let rewardCachedPartKEY = $t084098544._4 | |
217 | 217 | (accum :+ IntegerEntry(rewardCachedPartKEY, rewardTotal)) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | if (if ((depositNumLast == -1)) | |
221 | 221 | then (depositNumUser == -1) | |
222 | 222 | else false) | |
223 | 223 | then nil | |
224 | 224 | else if (if ((depositNumLast == -1)) | |
225 | 225 | then (depositNumUser > -1) | |
226 | 226 | else false) | |
227 | 227 | then throw("invalid depositNumLast and depositNumUser state") | |
228 | 228 | else if (if ((depositNumLast > -1)) | |
229 | - | then (depositNumUser | |
229 | + | then (depositNumUser >= -1) | |
230 | 230 | else false) | |
231 | 231 | then if (isNewUser) | |
232 | 232 | then [IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)] | |
233 | 233 | else ({ | |
234 | 234 | let $l = supportedAssetsList | |
235 | 235 | let $s = size($l) | |
236 | 236 | let $acc0 = nil | |
237 | 237 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
238 | 238 | then $a | |
239 | 239 | else forEachAssetCacheUserReward($a, $l[$i]) | |
240 | 240 | ||
241 | 241 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
242 | 242 | then $a | |
243 | 243 | else throw("List size exceeds 10") | |
244 | 244 | ||
245 | 245 | $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) | |
246 | 246 | } :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) | |
247 | 247 | else throw(((("uncovered condition: depositNumLast=" + toString(depositNumLast)) + " depositNumUser=") + toString(depositNumUser))) | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func IncrementNotDistributedRewardEntry (tkn,amountInc) = { | |
252 | 252 | let notDistributedRewardKEY = keyNotDistributedReward(tkn) | |
253 | 253 | let notDistributedReward = getIntOrElse(notDistributedRewardKEY, 0) | |
254 | 254 | [IntegerEntry(notDistributedRewardKEY, (notDistributedReward + amountInc))] | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func commonClaim (userAddress,i) = { | |
259 | 259 | let userAddressStr = toString(userAddress) | |
260 | 260 | if ((size(i.payments) > 0)) | |
261 | 261 | then throw("payments are not accepted") | |
262 | 262 | else { | |
263 | 263 | let $t01148811593 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
264 | 264 | let isNewUser = $t01148811593._1 | |
265 | 265 | let stakedAmount = $t01148811593._2 | |
266 | 266 | let stakingStart = $t01148811593._3 | |
267 | 267 | let stakedAmountX = toBigInt(stakedAmount) | |
268 | 268 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
269 | 269 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
270 | 270 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
271 | 271 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
272 | 272 | let $t01196412102 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
273 | 273 | let rewardTotal = $t01196412102._1 | |
274 | 274 | let cached = $t01196412102._2 | |
275 | 275 | let dynamic = $t01196412102._3 | |
276 | 276 | let rewardCachedPartKEY = $t01196412102._4 | |
277 | 277 | let claimedKEY = keyClaimed(userAddressStr, asset) | |
278 | 278 | let $t01216212199 = accum | |
279 | 279 | let data = $t01216212199._1 | |
280 | 280 | let claimedAmtByAsset = $t01216212199._2 | |
281 | 281 | let newPart = makeString([asset, toString(rewardTotal)], ":") | |
282 | 282 | let claimedAmtByAssetNew = makeString([claimedAmtByAsset, newPart], "_") | |
283 | 283 | if ((0 >= rewardTotal)) | |
284 | 284 | then $Tuple2(data, claimedAmtByAssetNew) | |
285 | 285 | else $Tuple2((((data :+ ScriptTransfer(userAddress, rewardTotal, toAssetVect(asset))) :+ IntegerEntry(claimedKEY, (valueOrElse(getInteger(claimedKEY), 0) + rewardTotal))) :+ IntegerEntry(rewardCachedPartKEY, 0)), claimedAmtByAssetNew) | |
286 | 286 | } | |
287 | 287 | ||
288 | 288 | let $t01265912773 = { | |
289 | 289 | let $l = supportedAssetsList | |
290 | 290 | let $s = size($l) | |
291 | 291 | let $acc0 = $Tuple2(nil, "") | |
292 | 292 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
293 | 293 | then $a | |
294 | 294 | else forEachAssetCalcUnclaimedReward($a, $l[$i]) | |
295 | 295 | ||
296 | 296 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
297 | 297 | then $a | |
298 | 298 | else throw("List size exceeds 10") | |
299 | 299 | ||
300 | 300 | $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) | |
301 | 301 | } | |
302 | 302 | let transfers = $t01265912773._1 | |
303 | 303 | let claimedAmtByAssetResult = $t01265912773._2 | |
304 | 304 | if ((0 >= size(transfers))) | |
305 | 305 | then nil | |
306 | 306 | else ((transfers :+ IntegerEntry(userRewardFromDepositNumKEY, depositNumLast)) :+ ClaimHistoryEntry(userAddress, i.transactionId, drop(claimedAmtByAssetResult, 1))) | |
307 | 307 | } | |
308 | 308 | } | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | @Callable(i) | |
312 | 312 | func constructor (neutrinoContractAddress,mathContractAddress,minLockAmount,halfLife,supportedRewardAssets) = if ((i.caller != this)) | |
313 | 313 | then throw("Permission denied") | |
314 | 314 | else [StringEntry(keyNeutrinoContractAddress(), neutrinoContractAddress), StringEntry(keyMathContractAddress(), mathContractAddress), IntegerEntry(keyMinLockAmount(), minLockAmount), IntegerEntry(keyHalfLife(), halfLife), StringEntry(keySupportedRewardAssets(), supportedRewardAssets)] | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | ||
318 | 318 | @Callable(i) | |
319 | 319 | func stake () = { | |
320 | 320 | let $t01359713659 = getParamsOrFail() | |
321 | 321 | let bondAssetId = $t01359713659._1 | |
322 | 322 | let minLockAmount = $t01359713659._2 | |
323 | 323 | let halfLife = $t01359713659._3 | |
324 | 324 | if ((size(i.payments) != 1)) | |
325 | 325 | then throw("Invalid payments size") | |
326 | 326 | else { | |
327 | 327 | let payment = i.payments[0] | |
328 | 328 | let amount = payment.amount | |
329 | 329 | let invalidAssetMessage = (("Invalid asset. " + toBase58String(bondAssetId)) + " is expected") | |
330 | 330 | let assetId = valueOrErrorMessage(payment.assetId, invalidAssetMessage) | |
331 | 331 | if ((assetId != bondAssetId)) | |
332 | 332 | then throw(invalidAssetMessage) | |
333 | 333 | else { | |
334 | 334 | let userAddress = i.caller | |
335 | 335 | let userAddressStr = toString(i.caller) | |
336 | 336 | let $t01420114308 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, -1)) | |
337 | 337 | let isNewUser = $t01420114308._1 | |
338 | 338 | let lockAmount = $t01420114308._2 | |
339 | 339 | let lockStartHeight = $t01420114308._3 | |
340 | 340 | let mergedAmount = if (isNewUser) | |
341 | 341 | then amount | |
342 | 342 | else (amount + lockAmount) | |
343 | 343 | let mergedStartHeight = if (isNewUser) | |
344 | 344 | then height | |
345 | 345 | else asInt(invoke(mathContract, "mergeStakesREADONLY", [amount, height, lockAmount, lockStartHeight, halfLife], nil)) | |
346 | 346 | if ((minLockAmount > mergedAmount)) | |
347 | 347 | then throw(("Min lock amount is " + toString(minLockAmount))) | |
348 | 348 | else { | |
349 | 349 | let $t01466914771 = StatsResult(amount, 1, if (isNewUser) | |
350 | 350 | then 1 | |
351 | 351 | else 0) | |
352 | 352 | let statsEntries = $t01466914771._1 | |
353 | 353 | let totalStaked = $t01466914771._2 | |
354 | 354 | let totalStakedNew = $t01466914771._3 | |
355 | 355 | ((([HistoryRecordEntry("stake", userAddress, i.transactionId, lockAmount, lockStartHeight, mergedAmount, mergedStartHeight)] ++ RewardEntries(isNewUser, userAddressStr, lockAmount)) ++ LockParamsEntry(userAddress, mergedAmount, mergedStartHeight)) ++ statsEntries) | |
356 | 356 | } | |
357 | 357 | } | |
358 | 358 | } | |
359 | 359 | } | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | ||
363 | 363 | @Callable(i) | |
364 | 364 | func unstake (amount) = if ((size(i.payments) != 0)) | |
365 | 365 | then throw("unstake doesn't require any payment") | |
366 | 366 | else { | |
367 | 367 | let userAddress = i.caller | |
368 | 368 | let userAddressStr = toString(userAddress) | |
369 | 369 | let $t01525715319 = getParamsOrFail() | |
370 | 370 | let bondAssetId = $t01525715319._1 | |
371 | 371 | let minLockAmount = $t01525715319._2 | |
372 | 372 | let halfLife = $t01525715319._3 | |
373 | 373 | let $t01532215396 = getUserParamsOrFail(userAddress) | |
374 | 374 | let isNewUser = $t01532215396._1 | |
375 | 375 | let lockAmount = $t01532215396._2 | |
376 | 376 | let lockStart = $t01532215396._3 | |
377 | 377 | if ((0 >= lockAmount)) | |
378 | 378 | then throw("Nothing to unstake") | |
379 | 379 | else if ((amount > lockAmount)) | |
380 | 380 | then throw(((("Requested " + toString(amount)) + ", but staked only ") + toString(lockAmount))) | |
381 | 381 | else { | |
382 | 382 | let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, lockStart, halfLife], nil)) | |
383 | 383 | let $t01571015864 = StatsResult(-(amount), if ((amount == lockAmount)) | |
384 | 384 | then -1 | |
385 | 385 | else 0, if ((amount == lockAmount)) | |
386 | 386 | then -1 | |
387 | 387 | else 0) | |
388 | 388 | let statsEntries = $t01571015864._1 | |
389 | 389 | let totalStaked = $t01571015864._2 | |
390 | 390 | let totalStakedNew = $t01571015864._3 | |
391 | 391 | ((([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) | |
392 | 392 | } | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(i) | |
398 | 398 | func deposit () = if ((size(i.payments) != 1)) | |
399 | 399 | then throw("exact 1 payment is allowed only") | |
400 | 400 | else { | |
401 | 401 | let pmt = i.payments[0] | |
402 | 402 | let amount = pmt.amount | |
403 | 403 | let pmtAssetId = valueOrElse(pmt.assetId, WAVESID) | |
404 | 404 | let pmtAssetIdStr = toBase58String(pmtAssetId) | |
405 | 405 | let pmtMultX = if ((pmtAssetId == WAVESID)) | |
406 | 406 | then MULTX8 | |
407 | 407 | else MULTX6 | |
408 | 408 | let amountX = toBigInt(amount) | |
409 | 409 | let totalStaked = getIntOrElse(keyLockParamTotalAmount(), 0) | |
410 | 410 | let totalStakedX = toBigInt(totalStaked) | |
411 | 411 | if ((0 > totalStaked)) | |
412 | 412 | then throw("TODO: case is not supported") | |
413 | 413 | else if ((totalStaked == 0)) | |
414 | 414 | then IncrementNotDistributedRewardEntry(pmtAssetIdStr, amount) | |
415 | 415 | else { | |
416 | 416 | let rewardPerNsbtX18 = fraction(amountX, MULTX18, totalStakedX) | |
417 | 417 | let depositNumLastKEY = keyDepositNumLast() | |
418 | 418 | let depositNumLast = getIntOrElse(depositNumLastKEY, -1) | |
419 | 419 | let depositNumNew = (depositNumLast + 1) | |
420 | 420 | if (!(contains(supportedAssetsStr, pmtAssetIdStr))) | |
421 | 421 | then throw(((supportedAssetsStr + " doesn't contain ") + pmtAssetIdStr)) | |
422 | 422 | else { | |
423 | 423 | func refreshRewardPerNsbtSUM (accum,nextAsset) = { | |
424 | 424 | let rewardPerNsbtSumNewKEY = keyRewardPerNsbtSumAt(depositNumNew, nextAsset) | |
425 | 425 | let sumLastStr = getStrOrElse(keyRewardPerNsbtSumAt(depositNumLast, nextAsset), "0") | |
426 | 426 | (accum :+ (if ((nextAsset == pmtAssetIdStr)) | |
427 | 427 | then StringEntry(rewardPerNsbtSumNewKEY, toString((parseBigIntValue(sumLastStr) + rewardPerNsbtX18))) | |
428 | 428 | else StringEntry(rewardPerNsbtSumNewKEY, sumLastStr))) | |
429 | 429 | } | |
430 | 430 | ||
431 | 431 | ({ | |
432 | 432 | let $l = supportedAssetsList | |
433 | 433 | let $s = size($l) | |
434 | 434 | let $acc0 = nil | |
435 | 435 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
436 | 436 | then $a | |
437 | 437 | else refreshRewardPerNsbtSUM($a, $l[$i]) | |
438 | 438 | ||
439 | 439 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
440 | 440 | then $a | |
441 | 441 | else throw("List size exceeds 10") | |
442 | 442 | ||
443 | 443 | $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) | |
444 | 444 | } :+ IntegerEntry(depositNumLastKEY, depositNumNew)) | |
445 | 445 | } | |
446 | 446 | } | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | ||
451 | 451 | @Callable(i) | |
452 | 452 | func claimRewards () = commonClaim(i.caller, i) | |
453 | 453 | ||
454 | 454 | ||
455 | 455 | ||
456 | 456 | @Callable(i) | |
457 | 457 | func claimRewardsByOriginCaller () = commonClaim(i.originCaller, i) | |
458 | 458 | ||
459 | 459 | ||
460 | 460 | ||
461 | 461 | @Callable(i) | |
462 | 462 | func unclaimedRewardsREADONLY (userAddressStr) = { | |
463 | 463 | func forEachAssetZeroReward (accum,asset) = ((accum + makeString([asset, "0", "0"], ":")) + "_") | |
464 | 464 | ||
465 | 465 | let unclaimedRewardStr = if ((userAddressStr == "")) | |
466 | 466 | then { | |
467 | 467 | let $l = supportedAssetsList | |
468 | 468 | let $s = size($l) | |
469 | 469 | let $acc0 = "" | |
470 | 470 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
471 | 471 | then $a | |
472 | 472 | else forEachAssetZeroReward($a, $l[$i]) | |
473 | 473 | ||
474 | 474 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
475 | 475 | then $a | |
476 | 476 | else throw("List size exceeds 10") | |
477 | 477 | ||
478 | 478 | $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) | |
479 | 479 | } | |
480 | 480 | else { | |
481 | 481 | let userAddress = addressFromStringValue(userAddressStr) | |
482 | 482 | let $t01854018645 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
483 | 483 | let isNewUser = $t01854018645._1 | |
484 | 484 | let stakedAmount = $t01854018645._2 | |
485 | 485 | let stakingStart = $t01854018645._3 | |
486 | 486 | let stakedAmountX = toBigInt(stakedAmount) | |
487 | 487 | let userRewardFromDepositNumKEY = keyUserRewardFromDepositNum(userAddressStr) | |
488 | 488 | let depositNumUser = getIntOrElse(userRewardFromDepositNumKEY, -1) | |
489 | 489 | let depositNumLast = getIntOrElse(keyDepositNumLast(), -1) | |
490 | 490 | func forEachAssetCalcUnclaimedReward (accum,asset) = { | |
491 | 491 | let $t01899119129 = calcReward(userAddressStr, asset, stakedAmountX, depositNumUser, depositNumLast) | |
492 | 492 | let rewardTotal = $t01899119129._1 | |
493 | 493 | let cached = $t01899119129._2 | |
494 | 494 | let dynamic = $t01899119129._3 | |
495 | 495 | let rewardCachedPartKEY = $t01899119129._4 | |
496 | 496 | let claimed = valueOrElse(getInteger(keyClaimed(userAddressStr, asset)), 0) | |
497 | 497 | ((accum + makeString([asset, toString(rewardTotal), toString(claimed)], ":")) + "_") | |
498 | 498 | } | |
499 | 499 | ||
500 | 500 | let $l = supportedAssetsList | |
501 | 501 | let $s = size($l) | |
502 | 502 | let $acc0 = "" | |
503 | 503 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
504 | 504 | then $a | |
505 | 505 | else forEachAssetCalcUnclaimedReward($a, $l[$i]) | |
506 | 506 | ||
507 | 507 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
508 | 508 | then $a | |
509 | 509 | else throw("List size exceeds 10") | |
510 | 510 | ||
511 | 511 | $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) | |
512 | 512 | } | |
513 | 513 | $Tuple2(nil, dropRight(unclaimedRewardStr, 1)) | |
514 | 514 | } | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | ||
518 | 518 | @Callable(i) | |
519 | 519 | func nsbtUnstakingSYSREADONLY (userAddressStrOrEmpty,unstakeAmt) = { | |
520 | 520 | let resultArray = if ((userAddressStrOrEmpty == "")) | |
521 | 521 | then [0, 0, 0, 0] | |
522 | 522 | else { | |
523 | 523 | let userAddress = addressFromStringValue(userAddressStrOrEmpty) | |
524 | 524 | let $t01966819730 = getParamsOrFail() | |
525 | 525 | let nsbtAssetId = $t01966819730._1 | |
526 | 526 | let minLockAmount = $t01966819730._2 | |
527 | 527 | let halfLife = $t01966819730._3 | |
528 | 528 | let $t01973319809 = getUserParamsOrFail(userAddress) | |
529 | 529 | let isNewUser = $t01973319809._1 | |
530 | 530 | let stakedAmount = $t01973319809._2 | |
531 | 531 | let lockStart = $t01973319809._3 | |
532 | 532 | let stakedAmountNEW = (stakedAmount - unstakeAmt) | |
533 | 533 | let comissionAmount = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [unstakeAmt, lockStart, halfLife], nil)) | |
534 | 534 | let receiveAmount = (unstakeAmt - comissionAmount) | |
535 | 535 | [stakedAmount, stakedAmountNEW, receiveAmount, comissionAmount] | |
536 | 536 | } | |
537 | 537 | $Tuple2(nil, resultArray) | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 | ||
541 | 541 | ||
542 | 542 | @Callable(i) | |
543 | 543 | func nsbtStakingSYSREADONLY (userAddressStr) = { | |
544 | 544 | let totalNsbtAmt = getIntOrElse(keyLockParamTotalAmount(), 0) | |
545 | 545 | if ((userAddressStr == "")) | |
546 | 546 | then $Tuple2(nil, [0, totalNsbtAmt, 0]) | |
547 | 547 | else { | |
548 | 548 | let userAddress = toAddressOrFail(userAddressStr) | |
549 | 549 | let $t02049620600 = valueOrElse(getUserParamsOrUnit(userAddress), $Tuple3(true, 0, 0)) | |
550 | 550 | let isNewUser = $t02049620600._1 | |
551 | 551 | let userNsbtAmt = $t02049620600._2 | |
552 | 552 | let stakingStart = $t02049620600._3 | |
553 | 553 | $Tuple2(nil, [userNsbtAmt, totalNsbtAmt, stakingStart]) | |
554 | 554 | } | |
555 | 555 | } | |
556 | 556 | ||
557 | 557 | ||
558 | 558 | @Verifier(tx) | |
559 | 559 | func verify () = { | |
560 | 560 | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP) | |
561 | 561 | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
562 | 562 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
563 | 563 | then 1 | |
564 | 564 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
565 | 565 | then 1 | |
566 | 566 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
567 | 567 | then 1 | |
568 | 568 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
569 | 569 | then 2 | |
570 | 570 | else 0)) | |
571 | 571 | (count >= 3) | |
572 | 572 | } | |
573 | 573 |
github/deemru/w8io/026f985 59.98 ms ◑