tx · BUj7WeR7M42ysMUYSGigXR6HDH5GDWSXbX3URNEDQLit

3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2:  -0.00200000 Waves

2023.04.25 21:12 [2550413] smart account 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2 > SELF 0.00000000 Waves

{ "type": 13, "id": "BUj7WeR7M42ysMUYSGigXR6HDH5GDWSXbX3URNEDQLit", "fee": 200000, "feeAssetId": null, "timestamp": 1682446363433, "version": 2, "chainId": 84, "sender": "3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2", "senderPublicKey": "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY", "proofs": [ "21sSPZRHDaoGJoDte1eXV6Dvi7T13uT9k1jkXbMtCmmZ76ez5fo31wkptcqPHiVGftBqsPePrvotxYsjGEiJpeod" ], "script": "base64:BgITCAISBAoCCAgSAwoBCBIECgIICAUBD2dldEFzc2V0QmFsYW5jZQIHYWRkcmVzcwdhc3NldElkBAFhCQDwBwIFB2FkZHJlc3MFB2Fzc2V0SWQFAWEBD2dldFdhdmVzQmFsYW5jZQEHYWRkcmVzcwQBdwgJAO8HAQUHYWRkcmVzcwlhdmFpbGFibGUFAXcBEWdldEJhbGFuY2VfYmFja3VwAgdhZGRyZXNzB2Fzc2V0SWQEBGFkZHIJAQdBZGRyZXNzAQkA2QQBBQdhZGRyZXNzBANhSWQJANkEAQUHYXNzZXRJZAQHYmFsYW5jZQMJAAACBQdhc3NldElkAgVXQVZFUwkBD2dldFdhdmVzQmFsYW5jZQEFBGFkZHIJAQ9nZXRBc3NldEJhbGFuY2UCBQRhZGRyBQNhSWQJAKwCAgkArAICBQdhc3NldElkAgE6CQCkAwEFB2JhbGFuY2UBCmdldEJhbGFuY2UCBnJlc3VsdAdhc3NldElkBAdhZGRyZXNzCQCvAgIFBnJlc3VsdAAjBARhZGRyCQEHQWRkcmVzcwEJANkEAQUHYWRkcmVzcwQHYmFsYW5jZQMJAAACBQdhc3N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 } View: original | compacted Prev: 12SUe4iXkBtY2kpY64JEUPfTqxPKLYgC7S2akP1CQ2PP Next: 6EDCKuMQ2roRRFbkYmaCgs6X2vkX272oQF9XYkzuGpiM Diff:
OldNewDifferences
3232 let aId = fromBase58String(assetId)
3333 getAssetBalance(addr, aId)
3434 }
35- ((drop(result, 35) + assetId) + ":")
35+ ((((drop(result, 35) + assetId) + ":") + toString(balance)) + ",")
3636 }
3737
3838
3939 func doPools (poolParams) = {
4040 let arr = split_4C(poolParams, ";")
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
41+ let $t012491303 = $Tuple3(arr[0], arr[1], arr[2])
42+ let address = $t012491303._1
43+ let type = $t012491303._2
44+ let assets = $t012491303._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)
66 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 }
35- ((drop(result, 35) + assetId) + ":")
35+ ((((drop(result, 35) + assetId) + ":") + toString(balance)) + ",")
3636 }
3737
3838
3939 func doPools (poolParams) = {
4040 let arr = split_4C(poolParams, ";")
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
41+ let $t012491303 = $Tuple3(arr[0], arr[1], arr[2])
42+ let address = $t012491303._1
43+ let type = $t012491303._2
44+ let assets = $t012491303._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 
33.81 ms