tx · EP1UgKEVvxPxEhFsGZUbi8MrsVjuyR7Xbp1w4fdE1Pd3

3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx:  -0.01400000 Waves

2023.08.08 15:15 [2701600] smart account 3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx > SELF 0.00000000 Waves

{ "type": 13, "id": "EP1UgKEVvxPxEhFsGZUbi8MrsVjuyR7Xbp1w4fdE1Pd3", "fee": 1400000, "feeAssetId": null, "timestamp": 1691496917876, "version": 2, "chainId": 84, "sender": "3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx", "senderPublicKey": "62CHk4MqTdq3LqeUycy7TPnpvwrjgerSa2FqAY2EafXn", "proofs": [ "2qJWnozqpmndJPa5VRNVUUzC1Yp8wb8P31BzVcfAsvLCzMTciWuCFgDGWqLCitMjVpEoTVvpWUQhmroyWebqdhDG" ], "script": "base64:BwJ5CAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIDCgEBEgMKAQESBQoDAgECEgUKAwIYGBIECgICARIECgICARIFCgMBAQESBQoDAQEBEgASAwoBCBIDCgESEgASABIDCgEIEgASBAoCCAgSBAoCCBISAwoBCDEAA1NFUAICX18ABVdBVkVTAgVXQVZFUwAQY29udHJhY3RGaWxlbmFtZQIMZmFjdG9yeS5yaWRlAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9zdHJpbmdUb0Fzc2V0SWQBAXMDCQAAAgUBcwUFV0FWRVMFBHVuaXQJANkEAQUBcwAPQURNSU5fTElTVF9TSVpFAAUABlFVT1JVTQADABFUWElEX0JZVEVTX0xFTkdUSAAgARhrZXlBbGxvd2VkVHhJZFZvdGVQcmVmaXgBBHR4SWQJALkJAgkAzAgCAgYlcyVzJXMJAMwIAgIJYWxsb3dUeElkCQDMCAIFBHR4SWQFA25pbAUDU0VQARBr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ARlrZXlQcm9wb3NhbEFsbG93QnJvYWRjYXN0AgUEdGhpcwgFAnR4AmlkBwcECGJ5QWRtaW5zCQAAAggFAnR4AmlkCQDZBAEJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBDmtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwMFCmJ5UHJvcG9zYWwGBQhieUFkbWlucwYFB2J5T3duZXK3z05k", "height": 2701600, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D5Td2rbPe6mDS8JpFxjA4iKjmL2Eh7q69gtXFsJkT3FZ Next: CLMt6aWU3TZQHh7iQUHVgmaY9N9TvoF9dj9ZKzg4rwmH Diff:
OldNewDifferences
394394
395395
396396 @Callable(i)
397+func claimCollateralBulk (txIds) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "claimCollateralBulk", [i.caller.bytes, txIds], i.payments))
398+
399+
400+
401+@Callable(i)
397402 func invest () = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "invest", [i.caller.bytes], i.payments))
398403
399404
415420
416421 @Callable(i)
417422 func claimCollateralREADONLY (userAddress,txIdStr) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "claimCollateralREADONLY", [fromBase58String(userAddress), fromBase58String(txIdStr)], nil))
423+
424+
425+
426+@Callable(i)
427+func claimCollateralBulkREADONLY (userAddress,txIds) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "claimCollateralBulkREADONLY", [fromBase58String(userAddress), txIds], nil))
418428
419429
420430
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let WAVES = "WAVES"
77
88 let contractFilename = "factory.ride"
99
1010 func wrapErr (s) = ((contractFilename + ": ") + s)
1111
1212
1313 func throwErr (s) = throw(wrapErr(s))
1414
1515
1616 func stringToAssetId (s) = if ((s == WAVES))
1717 then unit
1818 else fromBase58String(s)
1919
2020
2121 let ADMIN_LIST_SIZE = 5
2222
2323 let QUORUM = 3
2424
2525 let TXID_BYTES_LENGTH = 32
2626
2727 func keyAllowedTxIdVotePrefix (txId) = makeString(["%s%s%s", "allowTxId", txId], SEP)
2828
2929
3030 func keyFullAdminVote (prefix,adminAddress) = makeString([prefix, adminAddress], SEP)
3131
3232
3333 func keyAdminAddressList () = makeString(["%s", "adminAddressList"], SEP)
3434
3535
3636 func keyAllowedTxId () = makeString(["%s", "txId"], SEP)
3737
3838
3939 func getAdminVote (prefix,admin) = {
4040 let voteKey = keyFullAdminVote(prefix, admin)
4141 valueOrElse(getInteger(voteKey), 0)
4242 }
4343
4444
4545 func getAdminsList () = match getString(this, keyAdminAddressList()) {
4646 case s: String =>
4747 split(s, SEP)
4848 case _ =>
4949 nil
5050 }
5151
5252
5353 func isInAdminList (address) = containsElement(getAdminsList(), address)
5454
5555
5656 func genVotesKeysHelper (a,adminAddress) = {
5757 let $t013751399 = a
5858 let result = $t013751399._1
5959 let prefix = $t013751399._2
6060 $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix)
6161 }
6262
6363
6464 func genVotesKeys (keyPrefix) = {
6565 let adminList = keyAdminAddressList()
6666 let $t015461630 = {
6767 let $l = getAdminsList()
6868 let $s = size($l)
6969 let $acc0 = $Tuple2(nil, keyPrefix)
7070 func $f0_1 ($a,$i) = if (($i >= $s))
7171 then $a
7272 else genVotesKeysHelper($a, $l[$i])
7373
7474 func $f0_2 ($a,$i) = if (($i >= $s))
7575 then $a
7676 else throw("List size exceeds 5")
7777
7878 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
7979 }
8080 let result = $t015461630._1
8181 let prefix = $t015461630._2
8282 result
8383 }
8484
8585
8686 func countVotesHelper (result,voteKey) = (result + valueOrElse(getInteger(voteKey), 0))
8787
8888
8989 func countVotes (prefix) = {
9090 let votes = genVotesKeys(prefix)
9191 let $l = votes
9292 let $s = size($l)
9393 let $acc0 = 0
9494 func $f0_1 ($a,$i) = if (($i >= $s))
9595 then $a
9696 else countVotesHelper($a, $l[$i])
9797
9898 func $f0_2 ($a,$i) = if (($i >= $s))
9999 then $a
100100 else throw("List size exceeds 5")
101101
102102 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
103103 }
104104
105105
106106 func clearVotesHelper (result,key) = (result :+ DeleteEntry(key))
107107
108108
109109 func getClearVoteEntries (prefix) = {
110110 let votes = genVotesKeys(prefix)
111111 let $l = votes
112112 let $s = size($l)
113113 let $acc0 = nil
114114 func $f0_1 ($a,$i) = if (($i >= $s))
115115 then $a
116116 else clearVotesHelper($a, $l[$i])
117117
118118 func $f0_2 ($a,$i) = if (($i >= $s))
119119 then $a
120120 else throw("List size exceeds 5")
121121
122122 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
123123 }
124124
125125
126126 func voteINTERNAL (callerAddressString,keyPrefix,minVotes,voteResult) = {
127127 let voteKey = keyFullAdminVote(keyPrefix, callerAddressString)
128128 let adminCurrentVote = getAdminVote(keyPrefix, callerAddressString)
129129 let err = if (!(isInAdminList(callerAddressString)))
130130 then throwErr((("Address: " + callerAddressString) + " not in Admin list"))
131131 else if ((adminCurrentVote == 1))
132132 then throwErr((voteKey + " you already voted"))
133133 else unit
134134 if ((err == err))
135135 then {
136136 let votes = countVotes(keyPrefix)
137137 if (((votes + 1) >= minVotes))
138138 then {
139139 let clearVoteEntries = getClearVoteEntries(keyPrefix)
140140 (clearVoteEntries ++ voteResult)
141141 }
142142 else [IntegerEntry(voteKey, 1)]
143143 }
144144 else throw("Strict value is not equal to itself.")
145145 }
146146
147147
148148 func keyCalculatorAddress () = "%s__calculator"
149149
150150
151151 func keyProxyTreasuryAddress () = "%s__proxyTreasury"
152152
153153
154154 func keyChildAddress () = "%s__child"
155155
156156
157157 func keyBlockProcessingReward () = "%s__blockProcessingReward"
158158
159159
160160 func keyNextBlockToProcess () = "%s__nextBlockToProcess"
161161
162162
163163 func keyLpAssetId () = "%s__lpAssetId"
164164
165165
166166 let calculatorAddressOption = match getString(this, keyCalculatorAddress()) {
167167 case s: String =>
168168 addressFromString(s)
169169 case _: Unit =>
170170 unit
171171 case _ =>
172172 throw("Match error")
173173 }
174174
175175 let calculatorAddressOrFail = valueOrErrorMessage(calculatorAddressOption, wrapErr("invalid calculator address"))
176176
177177 let proxyTreasuryAddressOption = match getString(this, keyProxyTreasuryAddress()) {
178178 case s: String =>
179179 addressFromString(s)
180180 case _: Unit =>
181181 unit
182182 case _ =>
183183 throw("Match error")
184184 }
185185
186186 let proxyTreasuryAddressOrFail = valueOrErrorMessage(proxyTreasuryAddressOption, wrapErr("invalid proxy treasury address"))
187187
188188 func keyConfigAddress () = "%s__config"
189189
190190
191191 func keyChildrenAddress () = "contract_children"
192192
193193
194194 func keyVotingResultAddress () = "contract_voting_result"
195195
196196
197197 func keyProposalAllowBroadcast (address,txId) = ((("proposal_allow_broadcast_" + toString(address)) + "_") + toBase58String(txId))
198198
199199
200200 func keyInvestedByUser (childAddress,userAddress) = makeString(["investor", toString(childAddress), toString(userAddress)], "_")
201201
202202
203203 let configAddressOption = match getString(this, keyConfigAddress()) {
204204 case s: String =>
205205 addressFromString(s)
206206 case _: Unit =>
207207 unit
208208 case _ =>
209209 throw("Match error")
210210 }
211211
212212 let configAddressOrFail = valueOrErrorMessage(configAddressOption, wrapErr("invalid config address"))
213213
214214 let votingResultAddressOption = match configAddressOption {
215215 case a: Address =>
216216 match getString(a, keyVotingResultAddress()) {
217217 case s: String =>
218218 addressFromString(s)
219219 case _: Unit =>
220220 unit
221221 case _ =>
222222 throw("Match error")
223223 }
224224 case _: Unit =>
225225 unit
226226 case _ =>
227227 throw("Match error")
228228 }
229229
230230 let votingResultAddressOrFail = valueOrErrorMessage(votingResultAddressOption, wrapErr("invalid voting result address"))
231231
232232 let childrenAddressOption = match configAddressOption {
233233 case a: Address =>
234234 match getString(a, keyChildrenAddress()) {
235235 case s: String =>
236236 addressFromString(s)
237237 case _: Unit =>
238238 unit
239239 case _ =>
240240 throw("Match error")
241241 }
242242 case _: Unit =>
243243 unit
244244 case _ =>
245245 throw("Match error")
246246 }
247247
248248 let childrenAddressOrFail = valueOrErrorMessage(childrenAddressOption, wrapErr("invalid children address"))
249249
250250 let lpAssetIdOption = match getString(this, keyLpAssetId()) {
251251 case s: String =>
252252 fromBase58String(s)
253253 case _: Unit =>
254254 unit
255255 case _ =>
256256 throw("Match error")
257257 }
258258
259259 let lpAssetIdOrFail = valueOrErrorMessage(lpAssetIdOption, wrapErr("invalid lpAssetId"))
260260
261261 func onlyAddress (i,address) = if ((i.caller == address))
262262 then true
263263 else throwErr("permission denied")
264264
265265
266266 func onlyThis (i) = onlyAddress(i, this)
267267
268268
269269 func onlyCalculator (i) = onlyAddress(i, calculatorAddressOrFail)
270270
271271
272272 @Callable(i)
273273 func stringEntry (key,val) = if (onlyCalculator(i))
274274 then $Tuple2([StringEntry(key, val)], key)
275275 else $Tuple2(nil, unit)
276276
277277
278278
279279 @Callable(i)
280280 func integerEntry (key,val) = if (onlyCalculator(i))
281281 then $Tuple2([IntegerEntry(key, val)], key)
282282 else $Tuple2(nil, unit)
283283
284284
285285
286286 @Callable(i)
287287 func booleanEntry (key,val) = if (onlyCalculator(i))
288288 then $Tuple2([BooleanEntry(key, val)], key)
289289 else $Tuple2(nil, unit)
290290
291291
292292
293293 @Callable(i)
294294 func binaryEntry (key,val) = if (onlyCalculator(i))
295295 then $Tuple2([BinaryEntry(key, val)], key)
296296 else $Tuple2(nil, unit)
297297
298298
299299
300300 @Callable(i)
301301 func deleteEntry (key) = if (onlyCalculator(i))
302302 then $Tuple2([DeleteEntry(key)], key)
303303 else $Tuple2(nil, unit)
304304
305305
306306
307307 @Callable(i)
308308 func reissue (amount) = if (onlyCalculator(i))
309309 then $Tuple2([Reissue(lpAssetIdOrFail, amount, true)], amount)
310310 else $Tuple2(nil, unit)
311311
312312
313313
314314 @Callable(i)
315315 func burn (amount) = if (onlyCalculator(i))
316316 then $Tuple2([Burn(lpAssetIdOrFail, amount)], amount)
317317 else $Tuple2(nil, unit)
318318
319319
320320
321321 @Callable(i)
322322 func transferAsset (recepientBytes,amount,assetId) = if (onlyCalculator(i))
323323 then $Tuple2([ScriptTransfer(Address(recepientBytes), amount, assetId)], amount)
324324 else $Tuple2(nil, unit)
325325
326326
327327
328328 @Callable(i)
329329 func transferAssets (recepientBytes,assetsList,amountsList) = if (onlyCalculator(i))
330330 then {
331331 func addNewTransfer (accum,nextAssetId) = {
332332 let $t074577483 = accum
333333 let transfers = $t074577483._1
334334 let j = $t074577483._2
335335 let newTransfer = ScriptTransfer(Address(recepientBytes), parseIntValue(amountsList[j]), stringToAssetId(assetsList[j]))
336336 let updatedTransfers = (transfers :+ newTransfer)
337337 $Tuple2(updatedTransfers, (j + 1))
338338 }
339339
340340 let $t077437824 = {
341341 let $l = assetsList
342342 let $s = size($l)
343343 let $acc0 = $Tuple2(nil, 0)
344344 func $f0_1 ($a,$i) = if (($i >= $s))
345345 then $a
346346 else addNewTransfer($a, $l[$i])
347347
348348 func $f0_2 ($a,$i) = if (($i >= $s))
349349 then $a
350350 else throw("List size exceeds 10")
351351
352352 $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)
353353 }
354354 let assetsTransfers = $t077437824._1
355355 let _lastIndex = $t077437824._2
356356 $Tuple2(assetsTransfers, unit)
357357 }
358358 else $Tuple2(nil, unit)
359359
360360
361361
362362 @Callable(i)
363363 func transferWaves (recepientBytes,amount) = if (onlyCalculator(i))
364364 then $Tuple2([ScriptTransfer(Address(recepientBytes), amount, unit)], amount)
365365 else $Tuple2(nil, unit)
366366
367367
368368
369369 @Callable(i)
370370 func transferFromProxyTreasury (recipientBytes,rewardsAmount) = if (onlyCalculator(i))
371371 then $Tuple2(nil, invoke(proxyTreasuryAddressOrFail, "transferWaves", [recipientBytes, rewardsAmount], nil))
372372 else $Tuple2(nil, unit)
373373
374374
375375
376376 @Callable(i)
377377 func finalize (newTreasuryVolumeInWaves,pwrManagersBonusInWaves,treasuryVolumeDiffAllocationCoef) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "finalize", [i.caller.bytes, newTreasuryVolumeInWaves, pwrManagersBonusInWaves, treasuryVolumeDiffAllocationCoef], i.payments))
378378
379379
380380
381381 @Callable(i)
382382 func finalizeREADONLY (newTreasuryVolumeInWaves,pwrManagersBonusInWaves,treasuryVolumeDiffAllocationCoef) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "finalizeREADONLY", [newTreasuryVolumeInWaves, pwrManagersBonusInWaves, treasuryVolumeDiffAllocationCoef], nil))
383383
384384
385385
386386 @Callable(i)
387387 func claimLP () = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "claimLP", [i.caller.bytes], i.payments))
388388
389389
390390
391391 @Callable(i)
392392 func claimCollateral (txIdStr) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "claimCollateral", [i.caller.bytes, fromBase58String(txIdStr)], i.payments))
393393
394394
395395
396396 @Callable(i)
397+func claimCollateralBulk (txIds) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "claimCollateralBulk", [i.caller.bytes, txIds], i.payments))
398+
399+
400+
401+@Callable(i)
397402 func invest () = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "invest", [i.caller.bytes], i.payments))
398403
399404
400405
401406 @Callable(i)
402407 func withdraw () = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "withdraw", [i.caller.bytes], i.payments))
403408
404409
405410
406411 @Callable(i)
407412 func cancelWithdraw (txIdStr) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "cancelWithdraw", [i.caller.bytes, fromBase58String(txIdStr)], i.payments))
408413
409414
410415
411416 @Callable(i)
412417 func processBlocks () = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "processBlocks", [i.caller.bytes], i.payments))
413418
414419
415420
416421 @Callable(i)
417422 func claimCollateralREADONLY (userAddress,txIdStr) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "claimCollateralREADONLY", [fromBase58String(userAddress), fromBase58String(txIdStr)], nil))
423+
424+
425+
426+@Callable(i)
427+func claimCollateralBulkREADONLY (userAddress,txIds) = $Tuple2(nil, reentrantInvoke(calculatorAddressOrFail, "claimCollateralBulkREADONLY", [fromBase58String(userAddress), txIds], nil))
418428
419429
420430
421431 @Callable(i)
422432 func voteForTxId (txId) = {
423433 let callerAddressString = toBase58String(i.caller.bytes)
424434 let keyPrefix = keyAllowedTxIdVotePrefix(txId)
425435 let result = [StringEntry(keyAllowedTxId(), txId)]
426436 let allowedTxIdOption = getString(this, keyAllowedTxId())
427437 let err = [if ((size(fromBase58String(txId)) == TXID_BYTES_LENGTH))
428438 then true
429439 else throwErr((txId + " is not valid txId")), if (if ((allowedTxIdOption == unit))
430440 then true
431441 else (value(allowedTxIdOption) != txId))
432442 then true
433443 else throwErr((txId + " is already allowed"))]
434444 if ((err == err))
435445 then voteINTERNAL(callerAddressString, keyPrefix, QUORUM, result)
436446 else throw("Strict value is not equal to itself.")
437447 }
438448
439449
440450 @Verifier(tx)
441451 func verify () = {
442452 let byProposal = match votingResultAddressOption {
443453 case proposalAddress: Address =>
444454 valueOrElse(getBoolean(proposalAddress, keyProposalAllowBroadcast(this, tx.id)), false)
445455 case _ =>
446456 false
447457 }
448458 let byAdmins = (tx.id == fromBase58String(valueOrElse(getString(this, keyAllowedTxId()), "")))
449459 let byOwner = if ((size(getAdminsList()) >= QUORUM))
450460 then false
451461 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
452462 if (if (byProposal)
453463 then true
454464 else byAdmins)
455465 then true
456466 else byOwner
457467 }
458468

github/deemru/w8io/026f985 
46.30 ms