tx · DeBG3B89GqEFXpUzK2eaantcCLwg5Cw6hnuai2ZzRqmE

3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1:  -0.01100000 Waves

2024.01.09 15:40 [2923956] smart account 3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1 > SELF 0.00000000 Waves

{ "type": 13, "id": "DeBG3B89GqEFXpUzK2eaantcCLwg5Cw6hnuai2ZzRqmE", "fee": 1100000, "feeAssetId": null, "timestamp": 1704804039791, "version": 2, "chainId": 84, "sender": "3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1", "senderPublicKey": "7c3qLtcJ7EaPS2JDjXv8MBbd4kpyc6R27wcn5GgvZhur", "proofs": [ "snezoH8L6jHCy53LgnS3yzsu7V9XzesZN46swjRD1N321UpSSJ8mo13oiGvJAcYSF1y24VNLGoCRweyP8tMbkUt" ], "script": "base64:BgIWCAISBgoECAEBARIAEgMKAQgSAwoBCBwADGNvbnRyYWN0RmlsZQIQdmVzdGluZ19uZW8ucmlkZQADU0VQAgJfXwAISURTX0xJU1QJAMwIAgAACQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUJAMwIAgAGCQDMCAIABwkAzAgCAAgJAMwIAgAJCQDMCAIACgkAzAgCAAsJAMwIAgAMCQDMCAIADQkAzAgCAA4JAMwIAgAPCQDMCAIAEAkAzAgCABEJAMwIAgASCQDMCAIAEwkAzAgCABQJAMwIAgAVCQDMCAIAFgkAzAgCABcJAMwIAgAYCQDMCAIAGQkAzAgCABoJAMwIAgAbCQDMCAIAHAkAzAgCAB0FA25pbAARTUFYX1ZFU1RJTkdfQ09VTlQJAJADAQUISURTX0xJU1QBCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAprZXlBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIHYXNzZXRJZAUDbmlsBQNTRVAADWFzc2V0SWRTdHJpbmcJAQt2YWx1ZU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nRyeQIFCmtleUJhbkxpc3QJALsJAgkAzQgCBQdiYW5MaXN0BQt1c2VyQWRkcmVzcwICX18FA25pbAkAzggCBRhtb3ZlVG9BY2N1bXVsYXRlZEFjdGlvbnMFE2FkZFRvQmFuTGlzdEFjdGlvbnMJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEFdW5iYW4BC3VzZXJBZGRyZXNzBAZjaGVja3MJAMwIAgMDCQAAAgUJYWRtaW5MaXN0BQNuaWwGCQEPY29udGFpbnNFbGVtZW50AgUJYWRtaW5MaXN0CQClCAEIBQFpBmNhbGxlcgYJAQh0aHJvd0VycgECEXlvdSBtdXN0IGJlIGFkbWluCQDMCAIDCQEPY29udGFpbnNFbGVtZW50AgUHYmFuTGlzdAULdXNlckFkZHJlc3MGCQEIdGhyb3dFcnIBCQC5CQIJAMwIAgIXdXNlciBub3QgaW4gYSBiYW4gbGlzdDoJAMwIAgULdXNlckFkZHJlc3MFA25pbAIBIAUDbmlsAwkAAAIFBmNoZWNrcwUGY2hlY2tzBApuZXdCYW5MaXN0BAckbWF0Y2gwCQDPCAIFB2Jhbkxpc3QFC3VzZXJBZGRyZXNzAwkAAQIFByRtYXRjaDACA0ludAQDaW5kBQckbWF0Y2gwCQDRCAIFB2Jhbkxpc3QFA2luZAkBCHRocm93RXJyAQIrdXNlciBhZGRyZXNzIGluZGV4IGluIGJhbiBsaXN0IGlzIG5vdCBmb3VuZAMJAAACBQpuZXdCYW5MaXN0BQNuaWwJAMwIAgkBC0RlbGV0ZUVudHJ5AQUKa2V5QmFuTGlzdAUDbmlsCQDMCAIJAQtTdHJpbmdFbnRyeQIFCmtleUJhbkxpc3QJALsJAgUKbmV3QmFuTGlzdAICX18FA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgBXZ6KY", "height": 2923956, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CKptvzRwTAYpRJEnQ5ETTXLgFsfnL4A1Z23UsL1WGEND Next: AA7g7dX8UfSR8BYfNyy1tngFPsP3LNMVcfdt8u5VodX Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 8 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let contractFile = "vesting_neo.ride"
345345 case _ =>
346346 throwErr("user address index in ban list is not found")
347347 }
348-[StringEntry(keyBanList, makeString_11C(newBanList, "__"))]
348+ if ((newBanList == nil))
349+ then [DeleteEntry(keyBanList)]
350+ else [StringEntry(keyBanList, makeString_11C(newBanList, "__"))]
349351 }
350352 else throw("Strict value is not equal to itself.")
351353 }
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 8 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let contractFile = "vesting_neo.ride"
55
66 let SEP = "__"
77
88 let IDS_LIST = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
99
1010 let MAX_VESTING_COUNT = size(IDS_LIST)
1111
1212 func throwErr (msg) = throw(((contractFile + ": ") + msg))
1313
1414
1515 let keyAssetId = makeString(["%s", "assetId"], SEP)
1616
1717 let assetIdString = valueOrElse(getString(this, keyAssetId), "WAVES")
1818
1919 let assetIdBytes = if ((assetIdString == "WAVES"))
2020 then unit
2121 else fromBase58String(assetIdString)
2222
2323 let keyAdminList = makeString(["%s", "adminList"], SEP)
2424
2525 let keyBanList = makeString(["%s", "banList"], SEP)
2626
2727 let adminList = match getString(this, keyAdminList) {
2828 case s: String =>
2929 split(s, SEP)
3030 case _ =>
3131 nil
3232 }
3333
3434 let banList = match getString(this, keyBanList) {
3535 case s: String =>
3636 split_51C(s, SEP)
3737 case _ =>
3838 nil
3939 }
4040
4141 func isValidAddressString (addressString) = match addressFromString(addressString) {
4242 case a: Address =>
4343 true
4444 case _ =>
4545 false
4646 }
4747
4848
4949 func keyUserVesting (userAddress,id) = {
5050 let checks = [if (isValidAddressString(userAddress))
5151 then true
5252 else throwErr(makeString(["address is not valid:", userAddress], " ")), if (if ((id >= 0))
5353 then (MAX_VESTING_COUNT > id)
5454 else false)
5555 then true
5656 else throwErr(makeString(["id should be less than", toString(MAX_VESTING_COUNT), "got:", toString(id)], " "))]
5757 if ((checks == checks))
5858 then makeString(["%s%s%d", "vesting", userAddress, toString(id)], SEP)
5959 else throw("Strict value is not equal to itself.")
6060 }
6161
6262
6363 func keyUserAccumulated (userAddress) = {
6464 let checks = [if (isValidAddressString(userAddress))
6565 then true
6666 else throwErr(makeString(["address is not valid:", userAddress], " "))]
6767 if ((checks == checks))
6868 then makeString(["%s%s", "accumulated", userAddress], SEP)
6969 else throw("Strict value is not equal to itself.")
7070 }
7171
7272
7373 func formatUserVesting (vestingAmount,startBlock,lockLength) = {
7474 let checks = [if ((vestingAmount >= 0))
7575 then true
7676 else throwErr("vesting amount cannot be negative"), if ((startBlock >= 0))
7777 then true
7878 else throwErr("start block cannot be negative"), if ((lockLength >= 0))
7979 then true
8080 else throwErr("lock length cannot be negative")]
8181 if ((checks == checks))
8282 then makeString(["%d%d%d%d%d", toString(vestingAmount), toString(startBlock), toString(lockLength)], SEP)
8383 else throw("Strict value is not equal to itself.")
8484 }
8585
8686
8787 func parseUserVesting (userAddress,id) = match getString(this, keyUserVesting(userAddress, id)) {
8888 case rawString: String =>
8989 let splitString = split(rawString, SEP)
9090 let vestingAmount = parseIntValue(splitString[1])
9191 let startBlock = parseIntValue(splitString[2])
9292 let lockLength = parseIntValue(splitString[3])
9393 $Tuple3(vestingAmount, startBlock, lockLength)
9494 case _ =>
9595 $Tuple3(0, 0, 0)
9696 }
9797
9898
9999 func keyVestingHistory (action,userAddress,txId) = makeString(["%s%s%s%s", "history", userAddress, action, txId], SEP)
100100
101101
102102 func calcUnlockedAmount (amount,startBlock,lockLength) = {
103103 let elapsedBlocks = (height - startBlock)
104104 let unlockedAmount = if (if ((lockLength != 0))
105105 then (elapsedBlocks > 0)
106106 else false)
107107 then min([fraction(amount, elapsedBlocks, lockLength), amount])
108108 else 0
109109 $Tuple2(unlockedAmount, (amount - unlockedAmount))
110110 }
111111
112112
113113 func getUserUnlockedAmount (userAddress,id) = {
114114 let $t031883267 = parseUserVesting(userAddress, id)
115115 let vestingAmount = $t031883267._1
116116 let startBlock = $t031883267._2
117117 let lockLength = $t031883267._3
118118 let $t032703367 = calcUnlockedAmount(vestingAmount, startBlock, lockLength)
119119 let unlockedAmount = $t032703367._1
120120 let remainingAmount = $t032703367._2
121121 $Tuple2(unlockedAmount, remainingAmount)
122122 }
123123
124124
125125 func getUpdateVestingActions (userAddress,id) = {
126126 let $t034743553 = parseUserVesting(userAddress, id)
127127 let vestingAmount = $t034743553._1
128128 let startBlock = $t034743553._2
129129 let lockLength = $t034743553._3
130130 let $t035563634 = getUserUnlockedAmount(userAddress, id)
131131 let unlockedAmount = $t035563634._1
132132 let remainingAmount = $t035563634._2
133133 let remainingBlocks = max([((startBlock + lockLength) - height), 0])
134134 let updateVestingActions = if ((unlockedAmount != 0))
135135 then if ((remainingBlocks != 0))
136136 then [StringEntry(keyUserVesting(userAddress, id), formatUserVesting(remainingAmount, height, remainingBlocks))]
137137 else [DeleteEntry(keyUserVesting(userAddress, id))]
138138 else nil
139139 $Tuple2(updateVestingActions, unlockedAmount)
140140 }
141141
142142
143143 func getUserClaimActions (userAddress,id) = {
144144 let $t040984183 = getUpdateVestingActions(userAddress, id)
145145 let updateVestingActions = $t040984183._1
146146 let unlockedAmount = $t040984183._2
147147 let transferActions = if ((unlockedAmount != 0))
148148 then [ScriptTransfer(addressFromStringValue(userAddress), unlockedAmount, assetIdBytes)]
149149 else nil
150150 $Tuple2((updateVestingActions ++ transferActions), unlockedAmount)
151151 }
152152
153153
154154 func getAllUserClaimActions (userAddress) = {
155155 func actionsHelper (acc,a) = {
156156 let $t045574597 = acc
157157 let allVestingsClaimActions = $t045574597._1
158158 let sum = $t045574597._2
159159 let $t046024678 = getUserClaimActions(userAddress, a)
160160 let vestingClaimActions = $t046024678._1
161161 let claimAmount = $t046024678._2
162162 $Tuple2((allVestingsClaimActions ++ vestingClaimActions), (sum + claimAmount))
163163 }
164164
165165 let $l = IDS_LIST
166166 let $s = size($l)
167167 let $acc0 = $Tuple2(nil, 0)
168168 func $f0_1 ($a,$i) = if (($i >= $s))
169169 then $a
170170 else actionsHelper($a, $l[$i])
171171
172172 func $f0_2 ($a,$i) = if (($i >= $s))
173173 then $a
174174 else throw("List size exceeds 30")
175175
176176 $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($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), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
177177 }
178178
179179
180180 func getMoveAllUnlockedToAccumulatorActions (userAddress) = {
181181 func actionsHelper (acc,a) = {
182182 let $t049705011 = acc
183183 let updateAllVestingsActions = $t049705011._1
184184 let sum = $t049705011._2
185185 let $t050165100 = getUpdateVestingActions(userAddress, a)
186186 let updateVestingActions = $t050165100._1
187187 let unlockedAmount = $t050165100._2
188188 $Tuple2((updateAllVestingsActions ++ updateVestingActions), (sum + unlockedAmount))
189189 }
190190
191191 let $t051865274 = {
192192 let $l = IDS_LIST
193193 let $s = size($l)
194194 let $acc0 = $Tuple2(nil, 0)
195195 func $f0_1 ($a,$i) = if (($i >= $s))
196196 then $a
197197 else actionsHelper($a, $l[$i])
198198
199199 func $f0_2 ($a,$i) = if (($i >= $s))
200200 then $a
201201 else throw("List size exceeds 30")
202202
203203 $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($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), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
204204 }
205205 let updateAllVestingsActions = $t051865274._1
206206 let unlockedSum = $t051865274._2
207207 let oldAccumulated = valueOrElse(getInteger(this, keyUserAccumulated(userAddress)), 0)
208208 let updateAccumulatedActions = if ((unlockedSum != 0))
209209 then [IntegerEntry(keyUserAccumulated(userAddress), (oldAccumulated + unlockedSum))]
210210 else nil
211211 $Tuple2((updateAllVestingsActions ++ updateAccumulatedActions), unlockedSum)
212212 }
213213
214214
215215 func getClaimAccumulatedActions (userAddress) = {
216216 let oldAccumulated = valueOrElse(getInteger(this, keyUserAccumulated(userAddress)), 0)
217217 if ((oldAccumulated != 0))
218218 then $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), oldAccumulated, assetIdBytes), DeleteEntry(keyUserAccumulated(userAddress))], oldAccumulated)
219219 else $Tuple2(nil, 0)
220220 }
221221
222222
223223 func getClaimAllActions (userAddress) = {
224224 let $t060426114 = getAllUserClaimActions(userAddress)
225225 let claimActions = $t060426114._1
226226 let unlockedAmount = $t060426114._2
227227 let $t061176207 = getClaimAccumulatedActions(userAddress)
228228 let claimAccumulatedActions = $t061176207._1
229229 let accumulatedAmount = $t061176207._2
230230 let totalAmount = (unlockedAmount + accumulatedAmount)
231231 if ((totalAmount > 0))
232232 then $Tuple2((claimActions ++ claimAccumulatedActions), totalAmount)
233233 else throwErr("nothing to claim")
234234 }
235235
236236
237237 func getAvailableVestingId (userAddress) = {
238238 func helper (availableId,id) = {
239239 let $t064986577 = parseUserVesting(userAddress, id)
240240 let vestingAmount = $t064986577._1
241241 let startBlock = $t064986577._2
242242 let lockLength = $t064986577._3
243243 if ((vestingAmount > 0))
244244 then availableId
245245 else if ((availableId == -1))
246246 then id
247247 else min([availableId, id])
248248 }
249249
250250 let availableId = {
251251 let $l = IDS_LIST
252252 let $s = size($l)
253253 let $acc0 = -1
254254 func $f0_1 ($a,$i) = if (($i >= $s))
255255 then $a
256256 else helper($a, $l[$i])
257257
258258 func $f0_2 ($a,$i) = if (($i >= $s))
259259 then $a
260260 else throw("List size exceeds 30")
261261
262262 $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($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), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
263263 }
264264 if ((availableId == -1))
265265 then throwErr(makeString(["user exceeded max active vesting count: ", userAddress], " "))
266266 else availableId
267267 }
268268
269269
270270 func getNewVestingActions (userAddress,id,vestingAmount,startBlock,lockLength) = [StringEntry(keyUserVesting(userAddress, id), formatUserVesting(vestingAmount, startBlock, lockLength))]
271271
272272
273273 @Callable(i)
274274 func vestingForUser (userAddress,vestingAmount,startBlock,lockLength) = {
275275 let check = [if ((size(i.payments) == 1))
276276 then true
277277 else throwErr("should be with exactly 1 payment"), if ((i.payments[0].assetId == assetIdBytes))
278278 then true
279279 else throwErr(makeString(["payment assetId should be: ", assetIdString], " ")), if ((i.payments[0].amount == vestingAmount))
280280 then true
281281 else throwErr("payment amount should be equal to vestingAmount"), if (if ((adminList == nil))
282282 then true
283283 else containsElement(adminList, toString(i.caller)))
284284 then true
285285 else throwErr("you must be admin")]
286286 if ((check == check))
287287 then {
288288 let id = getAvailableVestingId(userAddress)
289289 let historyActions = [IntegerEntry(keyVestingHistory("vested", userAddress, toBase58String(i.transactionId)), vestingAmount)]
290290 (getNewVestingActions(userAddress, id, vestingAmount, startBlock, lockLength) ++ historyActions)
291291 }
292292 else throw("Strict value is not equal to itself.")
293293 }
294294
295295
296296
297297 @Callable(i)
298298 func claimAll () = {
299299 let userAddress = toString(i.caller)
300300 let $t080548119 = getClaimAllActions(userAddress)
301301 let claimActions = $t080548119._1
302302 let totalAmount = $t080548119._2
303303 let historyActions = [IntegerEntry(keyVestingHistory("claimed", userAddress, toBase58String(i.transactionId)), totalAmount)]
304304 (claimActions ++ historyActions)
305305 }
306306
307307
308308
309309 @Callable(i)
310310 func ban (userAddress) = {
311311 let checks = [if (if ((adminList == nil))
312312 then true
313313 else containsElement(adminList, toString(i.caller)))
314314 then true
315315 else throwErr("you must be admin"), if (!(containsElement(banList, userAddress)))
316316 then true
317317 else throwErr(makeString(["user already in a ban list:", userAddress], " "))]
318318 if ((checks == checks))
319319 then {
320320 let $t085918679 = getMoveAllUnlockedToAccumulatorActions(userAddress)
321321 let moveToAccumulatedActions = $t085918679._1
322322 let _a = $t085918679._2
323323 let addToBanListActions = [StringEntry(keyBanList, makeString_11C((banList :+ userAddress), "__"))]
324324 (moveToAccumulatedActions ++ addToBanListActions)
325325 }
326326 else throw("Strict value is not equal to itself.")
327327 }
328328
329329
330330
331331 @Callable(i)
332332 func unban (userAddress) = {
333333 let checks = [if (if ((adminList == nil))
334334 then true
335335 else containsElement(adminList, toString(i.caller)))
336336 then true
337337 else throwErr("you must be admin"), if (containsElement(banList, userAddress))
338338 then true
339339 else throwErr(makeString(["user not in a ban list:", userAddress], " "))]
340340 if ((checks == checks))
341341 then {
342342 let newBanList = match indexOf(banList, userAddress) {
343343 case ind: Int =>
344344 removeByIndex(banList, ind)
345345 case _ =>
346346 throwErr("user address index in ban list is not found")
347347 }
348-[StringEntry(keyBanList, makeString_11C(newBanList, "__"))]
348+ if ((newBanList == nil))
349+ then [DeleteEntry(keyBanList)]
350+ else [StringEntry(keyBanList, makeString_11C(newBanList, "__"))]
349351 }
350352 else throw("Strict value is not equal to itself.")
351353 }
352354
353355

github/deemru/w8io/169f3d6 
51.02 ms