tx · 5TNbaMjkQCQLLwXn3fCakJy7wcH3BEAUrFpvEgmMRyv6

3N49shcErzZepEy7HDR1fjAce8humpL7QiH:  -0.01000000 Waves

2022.12.18 13:52 [2365637] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves

{ "type": 13, "id": "5TNbaMjkQCQLLwXn3fCakJy7wcH3BEAUrFpvEgmMRyv6", "fee": 1000000, "feeAssetId": null, "timestamp": 1671360775807, "version": 2, "chainId": 84, "sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH", "senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj", "proofs": [ "5svKXagaN6LdgEqNcMyhEGLxfYRNojeHFLQXHjWr9DWJoJQbv5YFNB85o7N3vws63V8UKDvaPLwmgkGGpKuwTTXk" ], "script": "base64:BgIHCAISAwoBAQMAClVTRE5fQVNTRVQBILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAAdmZWVUYW5rCQEHQWRkcmVzcwEBGgFU9GvUVJNFXoSXj7xOmWa1IymKLYRQVnz/AANjNWEJAMwIAgkAzAgCCQEHQWRkcmVzcwEBGgFUS3fm+75TnNg+HnuLfNvwkPafVr1SF5SWCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgkAzAgCCQEHQWRkcmVzcwEBGgFUS3fm+75TnNg+HnuLfNvwkPafVr1SF5SWCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYFA25pbAUDbmlsAQFpAQJjNQECY2kKAQF3AgVhY2N1bQdhZGRyZXNzBANyZXMJAPwHBAUHYWRkcmVzcwICdmYFA25pbAUDbmlsAwkAAAIFA3JlcwUDcmVzBAckbWF0Y2gwBQNyZXMDCQABAgUHJG1hdGNoMAIDS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0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5qic/yw==", "height": 2365637, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: qtbp8vGH9uXgQ1NFuADk2MKRf6Kx7VUEjmV8b7k6yoS Next: H2FPthrNJeXCLF4fxMEcmxWQTzWy35CGtJP5Vu6eAn9j Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let USDN_ASSET = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
5+
46 let feeTank = Address(base58'3NCCTpr3CvajyxfmNGFv2nzx6iajXDk2zPg')
57
68 let c5a = [[Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')]]
810 @Callable(i)
911 func c5 (ci) = {
1012 func w (accum,address) = {
11- let res = invoke(address, "vf", [false, true], nil)
13+ let res = invoke(address, "vf", nil, nil)
1214 if ((res == res))
1315 then match res {
1416 case res: Int =>
1517 (accum + res)
1618 case _ =>
17- throw("Res not Int")
19+ throw("res not Int")
1820 }
1921 else throw("Strict value is not equal to itself.")
2022 }
2325 then throw("only admin allowed")
2426 else {
2527 let addr = c5a[ci]
26- let resFold = {
28+ let fold = {
2729 let $l = addr
2830 let $s = size($l)
2931 let $acc0 = 0
3739
3840 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
3941 }
40- if ((resFold == resFold))
42+ if ((fold == fold))
4143 then {
4244 let gFee = invoke(feeTank, "smf", [i.fee], nil)
4345 if ((gFee == gFee))
44- then match resFold {
45- case resFold: Int =>
46-[IntegerEntry("resFold", (valueOrElse(getInteger("resFold"), 0) + resFold))]
46+ then match fold {
47+ case sumFees: Int =>
48+[ScriptTransfer(feeTank, sumFees, unit)]
4749 case _ =>
48- throw("Res not Int")
50+ throw("sumFees not Int")
4951 }
5052 else throw("Strict value is not equal to itself.")
5153 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let USDN_ASSET = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
5+
46 let feeTank = Address(base58'3NCCTpr3CvajyxfmNGFv2nzx6iajXDk2zPg')
57
68 let c5a = [[Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')]]
79
810 @Callable(i)
911 func c5 (ci) = {
1012 func w (accum,address) = {
11- let res = invoke(address, "vf", [false, true], nil)
13+ let res = invoke(address, "vf", nil, nil)
1214 if ((res == res))
1315 then match res {
1416 case res: Int =>
1517 (accum + res)
1618 case _ =>
17- throw("Res not Int")
19+ throw("res not Int")
1820 }
1921 else throw("Strict value is not equal to itself.")
2022 }
2123
2224 if ((i.caller != this))
2325 then throw("only admin allowed")
2426 else {
2527 let addr = c5a[ci]
26- let resFold = {
28+ let fold = {
2729 let $l = addr
2830 let $s = size($l)
2931 let $acc0 = 0
3032 func $f0_1 ($a,$i) = if (($i >= $s))
3133 then $a
3234 else w($a, $l[$i])
3335
3436 func $f0_2 ($a,$i) = if (($i >= $s))
3537 then $a
3638 else throw("List size exceeds 5")
3739
3840 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
3941 }
40- if ((resFold == resFold))
42+ if ((fold == fold))
4143 then {
4244 let gFee = invoke(feeTank, "smf", [i.fee], nil)
4345 if ((gFee == gFee))
44- then match resFold {
45- case resFold: Int =>
46-[IntegerEntry("resFold", (valueOrElse(getInteger("resFold"), 0) + resFold))]
46+ then match fold {
47+ case sumFees: Int =>
48+[ScriptTransfer(feeTank, sumFees, unit)]
4749 case _ =>
48- throw("Res not Int")
50+ throw("sumFees not Int")
4951 }
5052 else throw("Strict value is not equal to itself.")
5153 }
5254 else throw("Strict value is not equal to itself.")
5355 }
5456 }
5557
5658
5759 @Verifier(tx)
5860 func verify () = match tx {
5961 case inv: InvokeScriptTransaction =>
6062 if ((addressFromRecipient(inv.dApp) == this))
6163 then true
6264 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6365 case _ =>
6466 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6567 }
6668

github/deemru/w8io/169f3d6 
42.48 ms