tx · 12SUe4iXkBtY2kpY64JEUPfTqxPKLYgC7S2akP1CQ2PP

3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2:  -0.00200000 Waves

2023.04.25 21:09 [2550411] smart account 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2 > SELF 0.00000000 Waves

{ "type": 13, "id": "12SUe4iXkBtY2kpY64JEUPfTqxPKLYgC7S2akP1CQ2PP", "fee": 200000, "feeAssetId": null, "timestamp": 1682446240157, "version": 2, "chainId": 84, "sender": "3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2", "senderPublicKey": "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY", "proofs": [ "5nJWivFohzbkGrSmFHjFTgfhQg65XvQKBVQqBRhjYXkjCuhmUkxXXjLwZeozovhH3LWu6zjXVVagQsb7D5WG669q" ], "script": "base64:BgITCAISBAoCCAgSAwoBCBIECgIICAUBD2dldEFzc2V0QmFsYW5jZQIHYWRkcmVzcwdhc3NldElkBAFhCQDwBwIFB2FkZHJlc3MFB2Fzc2V0SWQFAWEBD2dldFdhdmVzQmFsYW5jZQEHYWRkcmVzcwQBdwgJAO8HAQUHYWRkcmVzcwlhdmFpbGFibGUFAXcBEWdldEJhbGFuY2VfYmFja3VwAgdhZGRyZXNzB2Fzc2V0SWQEBGFkZHIJAQdBZGRyZXNzAQkA2QQBBQdhZGRyZXNzBANhSWQJANkEAQUHYXNzZXRJZAQHYmFsYW5jZQMJAAACBQdhc3NldElkAgVXQVZFUwkBD2dldFdhdmVzQmFsYW5jZQEFBGFkZHIJAQ9nZXRBc3NldEJhbGFuY2UCBQRhZGRyBQNhSWQJAKwCAgkArAICBQdhc3NldElkAgE6CQCkAwEFB2JhbGFuY2UBCmdldEJhbGFuY2UCBnJlc3VsdAdhc3NldElkBAdhZGRyZXNzCQCvAgIFBnJlc3VsdAAjBARhZGRyCQEHQWRkcmVzcwEJANkEAQUHYWRkcmVzcwQHYmFsYW5jZQMJAAACBQ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NSbsmKaLmH43FKRjgVyaj4M6zU Next: BUj7WeR7M42ysMUYSGigXR6HDH5GDWSXbX3URNEDQLit Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 func getAssetBalance (address,assetId) = {
55 let a = assetBalance(address, assetId)
6- throw(((("test: " + toString(address)) + ": ") + toString(a)))
6+ a
77 }
88
99
3838
3939 func doPools (poolParams) = {
4040 let arr = split_4C(poolParams, ";")
41- let $t012431297 = $Tuple3(arr[0], arr[1], arr[2])
42- let address = $t012431297._1
43- let type = $t012431297._2
44- let assets = $t012431297._3
41+ let $t012521306 = $Tuple3(arr[0], arr[1], arr[2])
42+ let address = $t012521306._1
43+ let type = $t012521306._2
44+ let assets = $t012521306._3
4545 0
4646 }
4747
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getAssetBalance (address,assetId) = {
55 let a = assetBalance(address, assetId)
6- throw(((("test: " + toString(address)) + ": ") + toString(a)))
6+ a
77 }
88
99
1010 func getWavesBalance (address) = {
1111 let w = wavesBalance(address).available
1212 w
1313 }
1414
1515
1616 func getBalance_backup (address,assetId) = {
1717 let addr = Address(fromBase58String(address))
1818 let aId = fromBase58String(assetId)
1919 let balance = if ((assetId == "WAVES"))
2020 then getWavesBalance(addr)
2121 else getAssetBalance(addr, aId)
2222 ((assetId + ":") + toString(balance))
2323 }
2424
2525
2626 func getBalance (result,assetId) = {
2727 let address = take(result, 35)
2828 let addr = Address(fromBase58String(address))
2929 let balance = if ((assetId == "WAVES"))
3030 then getWavesBalance(addr)
3131 else {
3232 let aId = fromBase58String(assetId)
3333 getAssetBalance(addr, aId)
3434 }
3535 ((drop(result, 35) + assetId) + ":")
3636 }
3737
3838
3939 func doPools (poolParams) = {
4040 let arr = split_4C(poolParams, ";")
41- let $t012431297 = $Tuple3(arr[0], arr[1], arr[2])
42- let address = $t012431297._1
43- let type = $t012431297._2
44- let assets = $t012431297._3
41+ let $t012521306 = $Tuple3(arr[0], arr[1], arr[2])
42+ let address = $t012521306._1
43+ let type = $t012521306._2
44+ let assets = $t012521306._3
4545 0
4646 }
4747
4848
4949 @Callable(i)
5050 func asss (arg,address) = {
5151 let assets = split_4C(arg, ",")
5252 let res = {
5353 let $l = assets
5454 let $s = size($l)
5555 let $acc0 = address
5656 func $f0_1 ($a,$i) = if (($i >= $s))
5757 then $a
5858 else getBalance($a, $l[$i])
5959
6060 func $f0_2 ($a,$i) = if (($i >= $s))
6161 then $a
6262 else throw("List size exceeds 10")
6363
6464 $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)
6565 }
6666 throw(("result: " + res))
6767 }
6868
6969
7070
7171 @Callable(i)
7272 func get (params) = {
7373 let pools = split_4C(params, "|")
7474 nil
7575 }
7676
7777
7878
7979 @Callable(i)
8080 func test (address,assetId) = nil
8181
8282

github/deemru/w8io/026f985 
31.74 ms