tx · 2eJr9ENwuUSAUUJVoAWqTssr6Ex9Q9XNo73MtYSuuWMi 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2: -0.00500000 Waves 2023.04.26 00:01 [2550582] smart account 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2 > SELF 0.00000000 Waves
{ "type": 13, "id": "2eJr9ENwuUSAUUJVoAWqTssr6Ex9Q9XNo73MtYSuuWMi", "fee": 500000, "feeAssetId": null, "timestamp": 1682456504359, "version": 2, "chainId": 84, "sender": "3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2", "senderPublicKey": "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY", "proofs": [ "qQKhzSkP7mKqwJic4sqPUzxax3UGuNDxzqZwCFbxMGGzq9tJpbYbZwbzAP4CyYwtphaA7syRnPnGaNzdXGidtZH" ], "script": "base64:BgIRCAISAwoBCBIDCgEIEgMKAQgPAApLX2FtX2FzX2lkAg8lc19fYW1vdW50QXNzZXQACktfcHJfYXNfaWQCDiVzX19wcmljZUFzc2V0AAVLX2FtcAIHJXNfX2FtcAAHS19zaGFyZQJEJXMlc19fc2hhcmVBc3NldEJhbGFuY2VfX1lpTmJvZkZ6QzE3akVISENNd3JSY3B5OU1ycmphYk1NTFp4ZzhnNXhtZjcACEtfc3Rha2VkAhklcyVzX19zdGFrZWRCYWxhbmNlX1dBVkVTAQx0cnlHZXRTdHJpbmcCA2tleQdhZGRyZXNzBAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWIFByRtYXRjaDAFAWICAAENdHJ5R2V0SW50ZWdlcgIDa2V5B2FkZHJlc3MEByRtYXRjaDAJAJoIAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAAQ9nZXRBc3NldEJhbGFuY2UCB2FkZHJlc3MHYXNzZXRJZAQBYQkA8AcCBQdhZGRyZ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MAIc6JGw==", "height": 2550582, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HwSfynF9bfcfMBFdEwqESt6tvoGyCG9bLKMMzNmiqJcT Next: 9zRFFWnZ51s11ZtRWVmPWN18Udh9rugAGKuXxQv3uLs7 Diff:
Old | New | Differences | |
---|---|---|---|
57 | 57 | let addr = Address(fromBase58String(address)) | |
58 | 58 | let amountId = tryGetString(K_am_as_id, addr) | |
59 | 59 | let priceId = tryGetString(K_pr_as_id, addr) | |
60 | - | let amp = | |
60 | + | let amp = tryGetInteger(K_amp, addr) | |
61 | 61 | let share = tryGetInteger(K_share, addr) | |
62 | 62 | let stake = tryGetInteger(K_staked, addr) | |
63 | - | $Tuple2(((amountId + ",") + priceId), (((amp + ",") + toString(share)) + toString(stake))) | |
63 | + | $Tuple2(((amountId + ",") + priceId), ((((toString(amp) + ",") + toString(share)) + ",") + toString(stake))) | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
91 | 91 | ||
92 | 92 | func process (result,params) = { | |
93 | 93 | let arr = split_4C(params, ";") | |
94 | - | let $ | |
95 | - | let address = $ | |
96 | - | let type = $ | |
97 | - | let assetsStr = $ | |
94 | + | let $t022282285 = $Tuple3(arr[0], arr[1], arr[2]) | |
95 | + | let address = $t022282285._1 | |
96 | + | let type = $t022282285._2 | |
97 | + | let assetsStr = $t022282285._3 | |
98 | 98 | let assetsString = getBalancesStr(assetsStr, address) | |
99 | 99 | let resItem = ((address + "/") + assetsString) | |
100 | 100 | resItem :: result | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func processNew (result,address) = { | |
105 | - | let $ | |
106 | - | let assetsStr = $ | |
107 | - | let datas = $ | |
105 | + | let $t024902533 = getWxData(address) | |
106 | + | let assetsStr = $t024902533._1 | |
107 | + | let datas = $t024902533._2 | |
108 | 108 | let assetsString = getBalancesStr(assetsStr, address) | |
109 | 109 | let resItem = ((((address + "/") + assetsString) + "/") + datas) | |
110 | 110 | resItem :: result |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let K_am_as_id = "%s__amountAsset" | |
5 | 5 | ||
6 | 6 | let K_pr_as_id = "%s__priceAsset" | |
7 | 7 | ||
8 | 8 | let K_amp = "%s__amp" | |
9 | 9 | ||
10 | 10 | let K_share = "%s%s__shareAssetBalance__YiNbofFzC17jEHHCMwrRcpy9MrrjabMMLZxg8g5xmf7" | |
11 | 11 | ||
12 | 12 | let K_staked = "%s%s__stakedBalance_WAVES" | |
13 | 13 | ||
14 | 14 | func tryGetString (key,address) = match getString(address, key) { | |
15 | 15 | case b: String => | |
16 | 16 | b | |
17 | 17 | case _ => | |
18 | 18 | "" | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func tryGetInteger (key,address) = match getInteger(address, key) { | |
23 | 23 | case b: Int => | |
24 | 24 | b | |
25 | 25 | case _ => | |
26 | 26 | 0 | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func getAssetBalance (address,assetId) = { | |
31 | 31 | let a = assetBalance(address, assetId) | |
32 | 32 | a | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getWavesBalance (address) = { | |
37 | 37 | let w = wavesBalance(address).available | |
38 | 38 | w | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getBalance (result,assetId) = { | |
43 | 43 | let address = take(result, 35) | |
44 | 44 | let addr = Address(fromBase58String(address)) | |
45 | 45 | let balance = if ((assetId == "WAVES")) | |
46 | 46 | then getWavesBalance(addr) | |
47 | 47 | else { | |
48 | 48 | let aId = fromBase58String(assetId) | |
49 | 49 | getAssetBalance(addr, aId) | |
50 | 50 | } | |
51 | 51 | let len = size(result) | |
52 | 52 | (((((address + drop(result, 35)) + assetId) + ":") + toString(balance)) + ",") | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getWxData (address) = { | |
57 | 57 | let addr = Address(fromBase58String(address)) | |
58 | 58 | let amountId = tryGetString(K_am_as_id, addr) | |
59 | 59 | let priceId = tryGetString(K_pr_as_id, addr) | |
60 | - | let amp = | |
60 | + | let amp = tryGetInteger(K_amp, addr) | |
61 | 61 | let share = tryGetInteger(K_share, addr) | |
62 | 62 | let stake = tryGetInteger(K_staked, addr) | |
63 | - | $Tuple2(((amountId + ",") + priceId), (((amp + ",") + toString(share)) + toString(stake))) | |
63 | + | $Tuple2(((amountId + ",") + priceId), ((((toString(amp) + ",") + toString(share)) + ",") + toString(stake))) | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func test_loop (result,ele) = ele :: result | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getBalancesStr (assetsStr,address) = { | |
71 | 71 | let assets = split_4C(assetsStr, ",") | |
72 | 72 | let res = { | |
73 | 73 | let $l = assets | |
74 | 74 | let $s = size($l) | |
75 | 75 | let $acc0 = address | |
76 | 76 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
77 | 77 | then $a | |
78 | 78 | else getBalance($a, $l[$i]) | |
79 | 79 | ||
80 | 80 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
81 | 81 | then $a | |
82 | 82 | else throw("List size exceeds 2") | |
83 | 83 | ||
84 | 84 | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
85 | 85 | } | |
86 | 86 | let balances = drop(res, 35) | |
87 | 87 | let bals = dropRight(balances, 1) | |
88 | 88 | bals | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func process (result,params) = { | |
93 | 93 | let arr = split_4C(params, ";") | |
94 | - | let $ | |
95 | - | let address = $ | |
96 | - | let type = $ | |
97 | - | let assetsStr = $ | |
94 | + | let $t022282285 = $Tuple3(arr[0], arr[1], arr[2]) | |
95 | + | let address = $t022282285._1 | |
96 | + | let type = $t022282285._2 | |
97 | + | let assetsStr = $t022282285._3 | |
98 | 98 | let assetsString = getBalancesStr(assetsStr, address) | |
99 | 99 | let resItem = ((address + "/") + assetsString) | |
100 | 100 | resItem :: result | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func processNew (result,address) = { | |
105 | - | let $ | |
106 | - | let assetsStr = $ | |
107 | - | let datas = $ | |
105 | + | let $t024902533 = getWxData(address) | |
106 | + | let assetsStr = $t024902533._1 | |
107 | + | let datas = $t024902533._2 | |
108 | 108 | let assetsString = getBalancesStr(assetsStr, address) | |
109 | 109 | let resItem = ((((address + "/") + assetsString) + "/") + datas) | |
110 | 110 | resItem :: result | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(i) | |
115 | 115 | func getWXNew (params) = { | |
116 | 116 | let pools = split_4C(params, ",") | |
117 | 117 | let resArr = { | |
118 | 118 | let $l = pools | |
119 | 119 | let $s = size($l) | |
120 | 120 | let $acc0 = nil | |
121 | 121 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
122 | 122 | then $a | |
123 | 123 | else processNew($a, $l[$i]) | |
124 | 124 | ||
125 | 125 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
126 | 126 | then $a | |
127 | 127 | else throw("List size exceeds 80") | |
128 | 128 | ||
129 | 129 | $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($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($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), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80) | |
130 | 130 | } | |
131 | 131 | let result = makeString_11C(resArr, "|") | |
132 | 132 | throw(result) | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(i) | |
138 | 138 | func getWX (params) = { | |
139 | 139 | let pools_params = split_4C(params, "|") | |
140 | 140 | let resArr = { | |
141 | 141 | let $l = pools_params | |
142 | 142 | let $s = size($l) | |
143 | 143 | let $acc0 = nil | |
144 | 144 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
145 | 145 | then $a | |
146 | 146 | else process($a, $l[$i]) | |
147 | 147 | ||
148 | 148 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
149 | 149 | then $a | |
150 | 150 | else throw("List size exceeds 80") | |
151 | 151 | ||
152 | 152 | $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($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($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), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80) | |
153 | 153 | } | |
154 | 154 | let result = makeString_2C(resArr, "|") | |
155 | 155 | nil | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Callable(i) | |
161 | 161 | func test (s) = throw(s) | |
162 | 162 | ||
163 | 163 |
github/deemru/w8io/026f985 39.80 ms ◑