tx · 7m9SnfNNCoqtU8xoWVg8SasNJsMXTGBKZUB7qfBpnTbi 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves 2023.07.25 15:16 [2681367] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{ "type": 13, "id": "7m9SnfNNCoqtU8xoWVg8SasNJsMXTGBKZUB7qfBpnTbi", "fee": 1000000, "feeAssetId": null, "timestamp": 1690287443034, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "4FLDoiukGvaxQeFQqxfeK1omaQnCargrCpz8h3cUoAYzxu9Ch1DCswkxtmutT2TNz1DHLj7E9nByNXipe3P3b7eU" ], "script": "base64:BgIyCAISBAoCAQgSABIAEgASABIDCgEBEgMKAQESAwoBARIECgIIARIAEgQKAggBEgMKAQgNAAl3YXZlczFMSWQJAQdBZGRyZXNzAQEgsfXkVqM/0+6J9kArnDxMgAk2oJh4WqfkxR9uWw/pRoUACXdhdmVzM0xJZAkBB0FkZHJlc3MBASB3Vww16jaU307TFdx6AQCZu00QR9cMiqtX4etxi+C4ZAAJd2F2ZXM1TElkCQEHQWRkcmVzcwEBIBtGaJJlOVgU0G5tRCLl1N4g5dbuu+aJfhfESzP16GakAANhcnIJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQUDbmlsAARhcnIyCQDMCAIAAQkAzAgCAAIFA25pbAAEYXJyMwkAzAgCAAEJAMwIAgACCQDMCAIAAwUDbmlsAQNzdW0CAWEBYgkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIGYm9ycm93CQDMCAICLDI1RkVxRWpSa3FLNnlDa2lUN0x6NlNBWXo3Z1VGQ3R4ZkNDaG5yV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HJlc3MCDHN1cHBseV93YXZlcwDAhD0FA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQh3aXRoZHJhdwIKYXNzZXRJZFN0cgthc3NldEFtb3VudAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIId2l0aGRyYXcJAMwIAgUKYXNzZXRJZFN0cgkAzAgCBQthc3NldEFtb3VudAUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgpfd2l0aGRyZXdfBQphc3NldElkU3RyBQthc3NldEFtb3VudAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBDGNoZWNrQmFsYW5jZQEKYXNzZXRJZFN0cgQHYWRkcmVzcwgFAWkGY2FsbGVyAwkAAAIFCmFzc2V0SWRTdHICBVdBVkVTCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg1XYXZlcyBCYWxhbmNlCAkA7wcBBQdhZGRyZXNzCWF2YWlsYWJsZQUDbmlsCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg1Bc3NldCBCYWxhbmNlCQDwBwIFB2FkZHJlc3MJANkEAQUKYXNzZXRJZFN0cgUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleV5rnt0=", "height": 2681367, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9wzU42qWFWCYDpdLaxMqwaiS1iX4XTsuvbyRoY4PR8rV Next: 5vMCNu1aaGE33ht45m29qtKdjC5Xg1yZomKQfPubqBvL Diff:
Old | New | Differences | |
---|---|---|---|
100 | 100 | ||
101 | 101 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
102 | 102 | } | |
103 | - | let returnedTokenAmount = ( | |
103 | + | let returnedTokenAmount = (res / getWaves3LCurrentPrice()) | |
104 | 104 | [IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
105 | 105 | } | |
106 | 106 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let waves1LId = Address(base58'CygdaJKZfxRrHyYMwkNdz9ZgSD5FpJLtk5s5B4q1DKV6') | |
5 | 5 | ||
6 | 6 | let waves3LId = Address(base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM') | |
7 | 7 | ||
8 | 8 | let waves5LId = Address(base58'2qUH6Nh6cgC8dxj8fwH3bTJi261PNr5nMQKRbBXBuwmM') | |
9 | 9 | ||
10 | 10 | let arr = [1, 2, 3, 4, 5] | |
11 | 11 | ||
12 | 12 | let arr2 = [1, 2] | |
13 | 13 | ||
14 | 14 | let arr3 = [1, 2, 3] | |
15 | 15 | ||
16 | 16 | func sum (a,b) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func getBalance (assetIdStr,address) = if ((assetIdStr == "WAVES")) | |
20 | 20 | then wavesBalance(address).available | |
21 | 21 | else assetBalance(address, fromBase58String(assetIdStr)) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func getCurrentPrice (assetIdStr) = if ((assetIdStr == "WAVES")) | |
25 | 25 | then 2 | |
26 | 26 | else throw("Error") | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func getWavesCurrentPrice () = 2000000 | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func getWaves1LCurrentPrice () = 1500000 | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func getWaves3LCurrentPrice () = 1200000 | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func transferWavesTestInternal (assetIdStr,assetAmount,address) = [IntegerEntry(((address + "_deposited_") + assetIdStr), assetAmount)] | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Callable(i) | |
42 | 42 | func transferWaves (assetAmount,senderAddress) = if ((i.caller != this)) | |
43 | 43 | then throw("only for internal smart contract invocations") | |
44 | 44 | else [ScriptTransfer(this, assetAmount, unit), IntegerEntry((senderAddress + "_deposited_WAVES"), assetAmount)] | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | ||
48 | 48 | @Callable(i) | |
49 | 49 | func issue3xLong () = [Issue("WAVES3L", "WAVES_USDN_LONG3X Token", 1000000000, 6, true)] | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | ||
53 | 53 | @Callable(i) | |
54 | 54 | func transferWavesTest () = if (if ((size(i.payments) != 1)) | |
55 | 55 | then true | |
56 | 56 | else (i.payments[0].amount == 0)) | |
57 | 57 | then throw("1 payment has to be attached") | |
58 | 58 | else { | |
59 | 59 | let assetIdStr = "WAVES" | |
60 | 60 | let assetAmount = i.payments[0].amount | |
61 | 61 | transferWavesTestInternal(assetIdStr, assetAmount, toString(i.caller)) | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(i) | |
67 | 67 | func mintWaves3L () = if (if ((size(i.payments) != 1)) | |
68 | 68 | then true | |
69 | 69 | else (i.payments[0].amount == 0)) | |
70 | 70 | then throw("1 payment has to be attached") | |
71 | 71 | else { | |
72 | 72 | let address = toString(i.caller) | |
73 | 73 | let stableCoinAmount = (i.payments[0].amount * 1000000) | |
74 | 74 | let convertedWavesAmount = ((stableCoinAmount / getWavesCurrentPrice()) * 100000000) | |
75 | 75 | let userWavesAmount = getBalance("WAVES", i.caller) | |
76 | 76 | if ((userWavesAmount > convertedWavesAmount)) | |
77 | 77 | then { | |
78 | 78 | let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, convertedWavesAmount)]) | |
79 | 79 | if ((depositResult == depositResult)) | |
80 | 80 | then { | |
81 | 81 | func repeatFunc (accum,next) = { | |
82 | 82 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", stableCoinAmount], nil) | |
83 | 83 | if ((borrowResult == borrowResult)) | |
84 | 84 | then (accum + next) | |
85 | 85 | else throw("Strict value is not equal to itself.") | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | let array = [stableCoinAmount, stableCoinAmount, stableCoinAmount] | |
89 | 89 | let res = { | |
90 | 90 | let $l = array | |
91 | 91 | let $s = size($l) | |
92 | 92 | let $acc0 = 0 | |
93 | 93 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
94 | 94 | then $a | |
95 | 95 | else repeatFunc($a, $l[$i]) | |
96 | 96 | ||
97 | 97 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
98 | 98 | then $a | |
99 | 99 | else throw("List size exceeds 3") | |
100 | 100 | ||
101 | 101 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
102 | 102 | } | |
103 | - | let returnedTokenAmount = ( | |
103 | + | let returnedTokenAmount = (res / getWaves3LCurrentPrice()) | |
104 | 104 | [IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
105 | 105 | } | |
106 | 106 | else throw("Strict value is not equal to itself.") | |
107 | 107 | } | |
108 | 108 | else throw("Not enough WAVES to deposit!") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | ||
113 | 113 | @Callable(i) | |
114 | 114 | func long3x_v2 () = if (if ((size(i.payments) != 1)) | |
115 | 115 | then true | |
116 | 116 | else (i.payments[0].amount == 0)) | |
117 | 117 | then throw("1 payment has to be attached") | |
118 | 118 | else { | |
119 | 119 | let address = toString(i.caller) | |
120 | 120 | let assetIdStr = "WAVES" | |
121 | 121 | let wavesAmount = i.payments[0].amount | |
122 | 122 | let currentWavesAmount = getBalance(assetIdStr, i.caller) | |
123 | 123 | if ((currentWavesAmount > wavesAmount)) | |
124 | 124 | then { | |
125 | 125 | let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, wavesAmount)]) | |
126 | 126 | if ((depositResult == depositResult)) | |
127 | 127 | then { | |
128 | 128 | func repeatFunc (accum,next) = { | |
129 | 129 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((wavesAmount * getCurrentPrice("WAVES")) / 100)], nil) | |
130 | 130 | if ((borrowResult == borrowResult)) | |
131 | 131 | then (accum + next) | |
132 | 132 | else throw("Strict value is not equal to itself.") | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | let array = [wavesAmount, wavesAmount] | |
136 | 136 | let res = { | |
137 | 137 | let $l = array | |
138 | 138 | let $s = size($l) | |
139 | 139 | let $acc0 = 0 | |
140 | 140 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
141 | 141 | then $a | |
142 | 142 | else repeatFunc($a, $l[$i]) | |
143 | 143 | ||
144 | 144 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
145 | 145 | then $a | |
146 | 146 | else throw("List size exceeds 3") | |
147 | 147 | ||
148 | 148 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
149 | 149 | } | |
150 | 150 | [IntegerEntry((address + "_deposited_WAVES"), wavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (wavesAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
151 | 151 | } | |
152 | 152 | else throw("Strict value is not equal to itself.") | |
153 | 153 | } | |
154 | 154 | else throw("Not enough WAVES to deposit!") | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(i) | |
160 | 160 | func long2x (assetAmount) = { | |
161 | 161 | let address = toString(i.caller) | |
162 | 162 | let currentAmount = getBalance("WAVES", i.caller) | |
163 | 163 | if ((currentAmount > assetAmount)) | |
164 | 164 | then { | |
165 | 165 | func repeatFunc (accum,next) = { | |
166 | 166 | let transferResult = invoke(this, "transferWaves", [assetAmount, i.caller], nil) | |
167 | 167 | if ((transferResult == transferResult)) | |
168 | 168 | then { | |
169 | 169 | let supplyResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, assetAmount)]) | |
170 | 170 | if ((supplyResult == supplyResult)) | |
171 | 171 | then { | |
172 | 172 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((assetAmount * getCurrentPrice("WAVES")) / 100)], nil) | |
173 | 173 | if ((borrowResult == borrowResult)) | |
174 | 174 | then (accum + next) | |
175 | 175 | else throw("Strict value is not equal to itself.") | |
176 | 176 | } | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | else throw("Strict value is not equal to itself.") | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | let array = [assetAmount, assetAmount] | |
183 | 183 | let res = { | |
184 | 184 | let $l = array | |
185 | 185 | let $s = size($l) | |
186 | 186 | let $acc0 = 0 | |
187 | 187 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
188 | 188 | then $a | |
189 | 189 | else repeatFunc($a, $l[$i]) | |
190 | 190 | ||
191 | 191 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
192 | 192 | then $a | |
193 | 193 | else throw("List size exceeds 2") | |
194 | 194 | ||
195 | 195 | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
196 | 196 | } | |
197 | 197 | [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (assetAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, res, unit)] | |
198 | 198 | } | |
199 | 199 | else throw("Error!") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(i) | |
205 | 205 | func borrow (assetAmount) = { | |
206 | 206 | let address = toString(i.caller) | |
207 | 207 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil) | |
208 | 208 | if ((res == res)) | |
209 | 209 | then [ScriptTransfer(i.caller, assetAmount, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount)] | |
210 | 210 | else throw("Strict value is not equal to itself.") | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | ||
215 | 215 | @Callable(i) | |
216 | 216 | func borrow2 (assetAmount) = { | |
217 | 217 | let address = toString(i.caller) | |
218 | 218 | func repeatFunc (accum,next) = { | |
219 | 219 | let result = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil) | |
220 | 220 | if ((result == result)) | |
221 | 221 | then (accum + next) | |
222 | 222 | else throw("Strict value is not equal to itself.") | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | let array = [assetAmount, assetAmount] | |
226 | 226 | let res = { | |
227 | 227 | let $l = array | |
228 | 228 | let $s = size($l) | |
229 | 229 | let $acc0 = 0 | |
230 | 230 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
231 | 231 | then $a | |
232 | 232 | else repeatFunc($a, $l[$i]) | |
233 | 233 | ||
234 | 234 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
235 | 235 | then $a | |
236 | 236 | else throw("List size exceeds 2") | |
237 | 237 | ||
238 | 238 | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
239 | 239 | } | |
240 | 240 | [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount), ScriptTransfer(i.caller, res, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(i) | |
246 | 246 | func borrow5 (assetIdStr,assetAmount) = { | |
247 | 247 | let address = toString(i.caller) | |
248 | 248 | let res = { | |
249 | 249 | let $l = arr | |
250 | 250 | let $s = size($l) | |
251 | 251 | let $acc0 = 0 | |
252 | 252 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
253 | 253 | then $a | |
254 | 254 | else sum($a, $l[$i]) | |
255 | 255 | ||
256 | 256 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
257 | 257 | then $a | |
258 | 258 | else throw("List size exceeds 5") | |
259 | 259 | ||
260 | 260 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
261 | 261 | } | |
262 | 262 | if ((res == res)) | |
263 | 263 | then [IntegerEntry(((address + "_borrowed_") + assetIdStr), assetAmount)] | |
264 | 264 | else throw("Strict value is not equal to itself.") | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(i) | |
270 | 270 | func deposit () = { | |
271 | 271 | let address = toString(i.caller) | |
272 | 272 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)]) | |
273 | 273 | if ((res == res)) | |
274 | 274 | then [IntegerEntry((address + "supply_waves"), 1000000)] | |
275 | 275 | else throw("Strict value is not equal to itself.") | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | ||
280 | 280 | @Callable(i) | |
281 | 281 | func withdraw (assetIdStr,assetAmount) = { | |
282 | 282 | let address = toString(i.caller) | |
283 | 283 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [assetIdStr, assetAmount], nil) | |
284 | 284 | if ((res == res)) | |
285 | 285 | then [IntegerEntry(((address + "_withdrew_") + assetIdStr), assetAmount)] | |
286 | 286 | else throw("Strict value is not equal to itself.") | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | ||
291 | 291 | @Callable(i) | |
292 | 292 | func checkBalance (assetIdStr) = { | |
293 | 293 | let address = i.caller | |
294 | 294 | if ((assetIdStr == "WAVES")) | |
295 | 295 | then [IntegerEntry("Waves Balance", wavesBalance(address).available)] | |
296 | 296 | else [IntegerEntry("Asset Balance", assetBalance(address, fromBase58String(assetIdStr)))] | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Verifier(tx) | |
301 | 301 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
302 | 302 |
github/deemru/w8io/026f985 38.07 ms ◑