tx · EkeH1anPC6PoecLC1s2wU48nbVBBr56b45xfY74uhjbJ 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves 2023.09.03 00:46 [2738298] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{ "type": 13, "id": "EkeH1anPC6PoecLC1s2wU48nbVBBr56b45xfY74uhjbJ", "fee": 1000000, "feeAssetId": null, "timestamp": 1693691210084, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "5BNN2pvh6JmerjXkdTuf7HP6qnKr2JcgeuhKDhLasE4Si1wHkTGHEBG3AFbwaETqNpsQ3SeAVnwEDja5VAYKdeTL" ], "script": "base64:BgIQCAISABIAEgASABIAEgASAA8ACXdhdmVzMUxJZAkBB0FkZHJlc3MBASCx9eRWoz/T7on2QCucPEyACTagmHhap+TFH25bD+lGhQAJd2F2ZXMzTElkCQEHQWRkcmVzcwEBIHdXDDXqNpTfTtMV3HoBAJm7TRBH1wyKq1fh63GL4LhkAAl3YXZlczVMSWQJAQdBZGRyZXNzAQEgG0ZokmU5WBTQbm1EIuXU3iDl1u675ol+F8RLM/XoZqQABnVzZG5JZAEgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAA2FycgkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFBQNuaWwABGFycjIJAMwIAgABCQDMCAIAAgUDbmlsAARhcnIzCQDMCAIAAQkAzAgCAAIJAMwIAgADBQNuaWwBA3N1bQIBYQFiCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOM0RuVmZmblV5WnR6Mk1SYms1VTdnaU4xMTJXZW1wTU5kAgZib3Jyb3cJAMwIAgIsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0Nobn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sdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmgZICe", "height": 2738298, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FfiqoW125pFDYicFhDTP8Z585JcXQPB2EnSHBkUdybee Next: Dzot2hjvLN8uPwr3wiCkjEZZqm7AwVpJ6kB7732SEKsd Diff:
Old | New | Differences | |
---|---|---|---|
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | - | @Verifier(ac) | |
275 | - | func ad () = sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey) | |
274 | + | ||
275 | + | @Callable(v) | |
276 | + | func long2test_v1 () = if (if ((size(v.payments) != 1)) | |
277 | + | then true | |
278 | + | else (v.payments[0].amount == 0)) | |
279 | + | then throw("1 payment has to be attached") | |
280 | + | else { | |
281 | + | let S = v.payments[0].amount | |
282 | + | let X = toString(v.caller) | |
283 | + | let T = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", [toString(v.caller)], [AttachedPayment(d, S)]) | |
284 | + | if ((T == T)) | |
285 | + | then { | |
286 | + | let u = T | |
287 | + | if ($isInstanceOf(u, "Int")) | |
288 | + | then { | |
289 | + | let U = u | |
290 | + | let ac = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, U)]) | |
291 | + | if ((ac == ac)) | |
292 | + | then { | |
293 | + | let ad = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((S * 70) / 100)], nil) | |
294 | + | if ((ad == ad)) | |
295 | + | then { | |
296 | + | let ae = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", [toString(v.caller)], [AttachedPayment(d, ((S * 70) / 100))]) | |
297 | + | if ((ae == ae)) | |
298 | + | then { | |
299 | + | let af = ae | |
300 | + | if ($isInstanceOf(af, "Int")) | |
301 | + | then { | |
302 | + | let ag = af | |
303 | + | [IntegerEntry("Returned_First_SwappedAmount", U), IntegerEntry("First_Borrow", ((S * 70) / 100)), IntegerEntry("Returned_Second_SwappedAmount", ag)] | |
304 | + | } | |
305 | + | else throw("Incorrect invoke result") | |
306 | + | } | |
307 | + | else throw("Strict value is not equal to itself.") | |
308 | + | } | |
309 | + | else throw("Strict value is not equal to itself.") | |
310 | + | } | |
311 | + | else throw("Strict value is not equal to itself.") | |
312 | + | } | |
313 | + | else throw("Incorrect invoke result") | |
314 | + | } | |
315 | + | else throw("Strict value is not equal to itself.") | |
316 | + | } | |
317 | + | ||
318 | + | ||
319 | + | @Verifier(ah) | |
320 | + | func ai () = sigVerify(ah.bodyBytes, ah.proofs[0], ah.senderPublicKey) | |
276 | 321 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = Address(base58'CygdaJKZfxRrHyYMwkNdz9ZgSD5FpJLtk5s5B4q1DKV6') | |
5 | 5 | ||
6 | 6 | let b = Address(base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM') | |
7 | 7 | ||
8 | 8 | let c = Address(base58'2qUH6Nh6cgC8dxj8fwH3bTJi261PNr5nMQKRbBXBuwmM') | |
9 | 9 | ||
10 | 10 | let d = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
11 | 11 | ||
12 | 12 | let e = [1, 2, 3, 4, 5] | |
13 | 13 | ||
14 | 14 | let f = [1, 2] | |
15 | 15 | ||
16 | 16 | let g = [1, 2, 3] | |
17 | 17 | ||
18 | 18 | func h (i,j) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func k (l,m) = if ((l == "WAVES")) | |
22 | 22 | then wavesBalance(m).available | |
23 | 23 | else assetBalance(m, fromBase58String(l)) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func n (l) = if ((l == "WAVES")) | |
27 | 27 | then 2 | |
28 | 28 | else throw("Error") | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func o () = 2000000 | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func p () = 3000000 | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func q () = 1200000 | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func r () = 2000000 | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func s (t) = { | |
44 | 44 | let u = getInteger(this, t) | |
45 | 45 | if ($isInstanceOf(u, "Int")) | |
46 | 46 | then { | |
47 | 47 | let j = u | |
48 | 48 | j | |
49 | 49 | } | |
50 | 50 | else 0 | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(v) | |
55 | 55 | func mintWaves3L_v1 () = if (if ((size(v.payments) != 1)) | |
56 | 56 | then true | |
57 | 57 | else (v.payments[0].amount == 0)) | |
58 | 58 | then throw("1 payment has to be attached") | |
59 | 59 | else { | |
60 | 60 | let m = toString(v.caller) | |
61 | 61 | let w = v.payments[0].amount | |
62 | 62 | let x = ((w / o()) * 100000000) | |
63 | 63 | let y = k("WAVES", v.caller) | |
64 | 64 | if ((y > x)) | |
65 | 65 | then { | |
66 | 66 | let z = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, x)]) | |
67 | 67 | if ((z == z)) | |
68 | 68 | then { | |
69 | 69 | func A (B,C) = { | |
70 | 70 | let D = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", w], nil) | |
71 | 71 | if ((D == D)) | |
72 | 72 | then (B + C) | |
73 | 73 | else throw("Strict value is not equal to itself.") | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | let E = [w, w, w] | |
77 | 77 | let F = { | |
78 | 78 | let G = E | |
79 | 79 | let H = size(G) | |
80 | 80 | let I = 0 | |
81 | 81 | func J (K,L) = if ((L >= H)) | |
82 | 82 | then K | |
83 | 83 | else A(K, G[L]) | |
84 | 84 | ||
85 | 85 | func M (K,L) = if ((L >= H)) | |
86 | 86 | then K | |
87 | 87 | else throw("List size exceeds 3") | |
88 | 88 | ||
89 | 89 | M(J(J(J(I, 0), 1), 2), 3) | |
90 | 90 | } | |
91 | 91 | let N = ((F / q()) * 1000000) | |
92 | 92 | [IntegerEntry((m + "_gave_USDN"), w), IntegerEntry((m + "_deposited_WAVES"), x), IntegerEntry(((m + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), F), IntegerEntry((m + "_received_WAVES3L"), N), ScriptTransfer(v.caller, N, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
93 | 93 | } | |
94 | 94 | else throw("Strict value is not equal to itself.") | |
95 | 95 | } | |
96 | 96 | else throw("Not enough WAVES to deposit!") | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | ||
101 | 101 | @Callable(v) | |
102 | 102 | func redeemWaves3L_v1 () = if (if ((size(v.payments) != 1)) | |
103 | 103 | then true | |
104 | 104 | else (v.payments[0].amount == 0)) | |
105 | 105 | then throw("1 payment has to be attached") | |
106 | 106 | else { | |
107 | 107 | let m = toString(v.caller) | |
108 | 108 | let O = v.payments[0].amount | |
109 | 109 | let P = (O * (r() / 1000000)) | |
110 | 110 | [IntegerEntry((m + "_redeemed_WAVES3L"), O), IntegerEntry((m + "_received_USDN"), P), ScriptTransfer(v.caller, P, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | ||
115 | 115 | @Callable(v) | |
116 | 116 | func mintWaves3L_v2 () = if (if ((size(v.payments) != 1)) | |
117 | 117 | then true | |
118 | 118 | else (v.payments[0].amount == 0)) | |
119 | 119 | then throw("1 payment has to be attached") | |
120 | 120 | else { | |
121 | 121 | let m = toString(v.caller) | |
122 | 122 | let w = v.payments[0].amount | |
123 | 123 | let x = ((w / 2000000) * 100000000) | |
124 | 124 | let y = k("WAVES", v.caller) | |
125 | 125 | let Q = ((3 - 1) * o()) | |
126 | 126 | if ((w >= Q)) | |
127 | 127 | then { | |
128 | 128 | let z = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, x)]) | |
129 | 129 | if ((z == z)) | |
130 | 130 | then { | |
131 | 131 | func A (B,C) = { | |
132 | 132 | let D = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", w], nil) | |
133 | 133 | if ((D == D)) | |
134 | 134 | then (B + C) | |
135 | 135 | else throw("Strict value is not equal to itself.") | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | let E = [w, w, w] | |
139 | 139 | let F = { | |
140 | 140 | let G = E | |
141 | 141 | let H = size(G) | |
142 | 142 | let I = 0 | |
143 | 143 | func J (K,L) = if ((L >= H)) | |
144 | 144 | then K | |
145 | 145 | else A(K, G[L]) | |
146 | 146 | ||
147 | 147 | func M (K,L) = if ((L >= H)) | |
148 | 148 | then K | |
149 | 149 | else throw("List size exceeds 3") | |
150 | 150 | ||
151 | 151 | M(J(J(J(I, 0), 1), 2), 3) | |
152 | 152 | } | |
153 | 153 | let R = ((F / o()) * 100000000) | |
154 | 154 | [IntegerEntry((m + "_gave_USDN"), w), IntegerEntry((m + "_deposited_WAVES"), x), IntegerEntry(((m + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), F), IntegerEntry((m + "_received_WAVES3L"), 1000000), ScriptTransfer(v.caller, 1000000, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
155 | 155 | } | |
156 | 156 | else throw("Strict value is not equal to itself.") | |
157 | 157 | } | |
158 | 158 | else throw("Not enough WAVES to deposit!") | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | ||
163 | 163 | @Callable(v) | |
164 | 164 | func redeemWaves3L_v2 () = if (if ((size(v.payments) != 1)) | |
165 | 165 | then true | |
166 | 166 | else (v.payments[0].amount == 0)) | |
167 | 167 | then throw("1 payment has to be attached") | |
168 | 168 | else { | |
169 | 169 | let m = toString(v.caller) | |
170 | 170 | let O = 6 | |
171 | 171 | let P = (((O * (p() / 1000000)) - 4) * 1000000) | |
172 | 172 | [IntegerEntry((m + "_redeemed_WAVES3L"), O), IntegerEntry((m + "_received_USDN"), P), ScriptTransfer(v.caller, P, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(v) | |
178 | 178 | func long2 () = if (if ((size(v.payments) != 1)) | |
179 | 179 | then true | |
180 | 180 | else (v.payments[0].amount == 0)) | |
181 | 181 | then throw("1 payment has to be attached") | |
182 | 182 | else { | |
183 | 183 | let S = v.payments[0].amount | |
184 | 184 | let T = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", nil, [AttachedPayment(d, S)]) | |
185 | 185 | if ((T == T)) | |
186 | 186 | then { | |
187 | 187 | let u = T | |
188 | 188 | if ($isInstanceOf(u, "Int")) | |
189 | 189 | then { | |
190 | 190 | let U = u | |
191 | 191 | let V = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, U)]) | |
192 | 192 | if ((V == V)) | |
193 | 193 | then { | |
194 | 194 | let W = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((S * 75) / 100)], nil) | |
195 | 195 | if ((W == W)) | |
196 | 196 | then { | |
197 | 197 | func A (B,C) = (B + C) | |
198 | 198 | ||
199 | 199 | let E = [1, 1, 1, 1] | |
200 | 200 | let F = { | |
201 | 201 | let G = E | |
202 | 202 | let H = size(G) | |
203 | 203 | let I = 0 | |
204 | 204 | func J (K,L) = if ((L >= H)) | |
205 | 205 | then K | |
206 | 206 | else A(K, G[L]) | |
207 | 207 | ||
208 | 208 | func M (K,L) = if ((L >= H)) | |
209 | 209 | then K | |
210 | 210 | else throw("List size exceeds 5") | |
211 | 211 | ||
212 | 212 | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
213 | 213 | } | |
214 | 214 | nil | |
215 | 215 | } | |
216 | 216 | else throw("Strict value is not equal to itself.") | |
217 | 217 | } | |
218 | 218 | else throw("Strict value is not equal to itself.") | |
219 | 219 | } | |
220 | 220 | else throw("Incorrect invoke result") | |
221 | 221 | } | |
222 | 222 | else throw("Strict value is not equal to itself.") | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(v) | |
228 | 228 | func long2test () = if (if ((size(v.payments) != 1)) | |
229 | 229 | then true | |
230 | 230 | else (v.payments[0].amount == 0)) | |
231 | 231 | then throw("1 payment has to be attached") | |
232 | 232 | else { | |
233 | 233 | let S = v.payments[0].amount | |
234 | 234 | let X = toString(v.caller) | |
235 | 235 | let T = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", [toString(v.caller)], [AttachedPayment(d, S)]) | |
236 | 236 | if ((T == T)) | |
237 | 237 | then { | |
238 | 238 | let u = T | |
239 | 239 | if ($isInstanceOf(u, "Int")) | |
240 | 240 | then { | |
241 | 241 | let U = u | |
242 | 242 | let Y = [U, 2000000, 2000000, 2000000] | |
243 | 243 | func Z (B,C) = if ((C != 2000000)) | |
244 | 244 | then (B :+ C) | |
245 | 245 | else { | |
246 | 246 | let aa = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", [toString(v.caller)], [AttachedPayment(d, C)]) | |
247 | 247 | if ((aa == aa)) | |
248 | 248 | then (B :+ aa) | |
249 | 249 | else throw("Strict value is not equal to itself.") | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | let ab = { | |
253 | 253 | let G = Y | |
254 | 254 | let H = size(G) | |
255 | 255 | let I = nil | |
256 | 256 | func J (K,L) = if ((L >= H)) | |
257 | 257 | then K | |
258 | 258 | else Z(K, G[L]) | |
259 | 259 | ||
260 | 260 | func M (K,L) = if ((L >= H)) | |
261 | 261 | then K | |
262 | 262 | else throw("List size exceeds 4") | |
263 | 263 | ||
264 | 264 | M(J(J(J(J(I, 0), 1), 2), 3), 4) | |
265 | 265 | } | |
266 | 266 | [IntegerEntry("Returned_SwappedAmount", U), IntegerEntry("First_Borrow", ((S * 70) / 100)), StringEntry(toBase58String(v.caller.bytes), ((((((toString(ab[0]) + "_") + toString(ab[1])) + "_") + toString(ab[2])) + "_") + toString(ab[3])))] | |
267 | 267 | } | |
268 | 268 | else throw("Incorrect invoke result") | |
269 | 269 | } | |
270 | 270 | else throw("Strict value is not equal to itself.") | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | - | @Verifier(ac) | |
275 | - | func ad () = sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey) | |
274 | + | ||
275 | + | @Callable(v) | |
276 | + | func long2test_v1 () = if (if ((size(v.payments) != 1)) | |
277 | + | then true | |
278 | + | else (v.payments[0].amount == 0)) | |
279 | + | then throw("1 payment has to be attached") | |
280 | + | else { | |
281 | + | let S = v.payments[0].amount | |
282 | + | let X = toString(v.caller) | |
283 | + | let T = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", [toString(v.caller)], [AttachedPayment(d, S)]) | |
284 | + | if ((T == T)) | |
285 | + | then { | |
286 | + | let u = T | |
287 | + | if ($isInstanceOf(u, "Int")) | |
288 | + | then { | |
289 | + | let U = u | |
290 | + | let ac = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, U)]) | |
291 | + | if ((ac == ac)) | |
292 | + | then { | |
293 | + | let ad = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((S * 70) / 100)], nil) | |
294 | + | if ((ad == ad)) | |
295 | + | then { | |
296 | + | let ae = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", [toString(v.caller)], [AttachedPayment(d, ((S * 70) / 100))]) | |
297 | + | if ((ae == ae)) | |
298 | + | then { | |
299 | + | let af = ae | |
300 | + | if ($isInstanceOf(af, "Int")) | |
301 | + | then { | |
302 | + | let ag = af | |
303 | + | [IntegerEntry("Returned_First_SwappedAmount", U), IntegerEntry("First_Borrow", ((S * 70) / 100)), IntegerEntry("Returned_Second_SwappedAmount", ag)] | |
304 | + | } | |
305 | + | else throw("Incorrect invoke result") | |
306 | + | } | |
307 | + | else throw("Strict value is not equal to itself.") | |
308 | + | } | |
309 | + | else throw("Strict value is not equal to itself.") | |
310 | + | } | |
311 | + | else throw("Strict value is not equal to itself.") | |
312 | + | } | |
313 | + | else throw("Incorrect invoke result") | |
314 | + | } | |
315 | + | else throw("Strict value is not equal to itself.") | |
316 | + | } | |
317 | + | ||
318 | + | ||
319 | + | @Verifier(ah) | |
320 | + | func ai () = sigVerify(ah.bodyBytes, ah.proofs[0], ah.senderPublicKey) | |
276 | 321 |
github/deemru/w8io/169f3d6 73.01 ms ◑