tx · 2rgekmRj7Au8tziYKm5hr74fGp8emVaqpHr8Gmpckpzu 3Mr7Qu4DoK2AG3aFJkavD1QfLeYZ9JQkf2z: -0.02100000 Waves 2024.01.19 17:35 [2938575] smart account 3Mr7Qu4DoK2AG3aFJkavD1QfLeYZ9JQkf2z > SELF 0.00000000 Waves
{ "type": 13, "id": "2rgekmRj7Au8tziYKm5hr74fGp8emVaqpHr8Gmpckpzu", "fee": 2100000, "feeAssetId": null, "timestamp": 1705674928974, "version": 2, "chainId": 84, "sender": "3Mr7Qu4DoK2AG3aFJkavD1QfLeYZ9JQkf2z", "senderPublicKey": "EAKRfs8swGWZJwXuunVL2epKZGzqzd5kZPfksHXQvESb", "proofs": [ "2QsxqN3bxJbpD1PZsSNggTVA9hray3xSQGjgH7QVde4BNb9PTmveDUEaCvtfQv3aHom7ZoY6guDH1pzEQnjxfFAi" ], "script": "base64:BgJiCAISBgoECAgICBIJCgcICAgICAgIEgUKAwEIARIGCgQBCAgBEgQKAgEIEgMKAQgSBAoCAQQSAwoBCBIFCgMBCAESCwoJAQgIAQEBAQEEEgQKAggIEgASABIDCgEIEgMKAQhKAAlTRVBBUkFUT1ICAl9fAAhLRVlfSU5JVAIESU5JVAAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAApLRVlfUEFVU0VEAgZQQVVTRUQACktFWV9QQVVTRVICBlBBVVNFUgAMS0VZX0VYRUNVVE9SAghFWEVDVVRPUgAQS0VZX1JPT1RfQURBUFRFUgIMUk9PVF9BREFQVEVSABNLRVlfQ0FMTEVSX0NPTlRSQUNUAg9DQUxMRVJfQ09OVFJBQ1QACUtFWV9DSEFJTgIFQ0hBSU4AC0tFWV9CSU5ESU5HAgdCSU5ESU5HAAdLRVlfRkVFAgNGRUUAEUtFWV9GRUVfUkVDSVBJRU5UAg1GRUVfUkVDSVBJRU5UABhLRVlfUkVGRVJSRVJfRkVFX1BFUkNFTlQCFFJFRkVSUkVSX0ZFR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NoMAkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwkAuQkCCQDMCAIFCktFWV9TVEFUVVMJAMwIAgkApQgBBQR0aGlzCQDMCAIJANgEAQgFAnR4AmlkBQNuaWwFCVNFUEFSQVRPUgcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmn7lSx", "height": 2938575, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HabcFfDoT4S38HU5ePE6Z8UT7bXgACUcxfjXtnx2pGUC Next: B6bz263gLG4W4jeEn5n1nYo5fPZFkbaA31KXT78UCimD Diff:
Old | New | Differences | |
---|---|---|---|
29 | 29 | ||
30 | 30 | let n = "REFERRER_FEE_PERCENT" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "CROSSCHAIN_POOL_CONTRACTS" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "BRIDGE_ASSET_CONTRACT" | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = "mint" | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = "deposit" | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = "releaseTokens" | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = "getAssetId" | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = "getDecimals" | |
45 | 45 | ||
46 | - | func v (w,x) = { | |
47 | - | let y = addressFromString(w) | |
48 | - | if ($isInstanceOf(y, "Address")) | |
46 | + | let v = "WAVES" | |
47 | + | ||
48 | + | let w = 8 | |
49 | + | ||
50 | + | let x = 6 | |
51 | + | ||
52 | + | let y = 1000000 | |
53 | + | ||
54 | + | let z = 200000 | |
55 | + | ||
56 | + | let A = 9223372036854775807 | |
57 | + | ||
58 | + | func B (C,D) = { | |
59 | + | let E = addressFromString(C) | |
60 | + | if ($isInstanceOf(E, "Address")) | |
49 | 61 | then { | |
50 | - | let | |
62 | + | let F = E | |
51 | 63 | true | |
52 | 64 | } | |
53 | - | else throw( | |
65 | + | else throw(D) | |
54 | 66 | } | |
55 | 67 | ||
56 | 68 | ||
57 | - | func | |
58 | - | let | |
59 | - | if ($isInstanceOf( | |
69 | + | func G (H,D) = { | |
70 | + | let E = assetInfo(fromBase58String(H)) | |
71 | + | if ($isInstanceOf(E, "Asset")) | |
60 | 72 | then { | |
61 | - | let | |
73 | + | let F = E | |
62 | 74 | true | |
63 | 75 | } | |
64 | - | else throw( | |
76 | + | else throw(D) | |
65 | 77 | } | |
66 | 78 | ||
67 | 79 | ||
68 | - | func | |
80 | + | func I (J,K,L,D) = if (if ((K > J)) | |
69 | 81 | then true | |
70 | - | else ( | |
71 | - | then throw( | |
82 | + | else (J > L)) | |
83 | + | then throw(D) | |
72 | 84 | else true | |
73 | 85 | ||
74 | 86 | ||
75 | - | func | |
76 | - | then throw( | |
87 | + | func M (J,N,D) = if ((J != N)) | |
88 | + | then throw(D) | |
77 | 89 | else true | |
78 | 90 | ||
79 | 91 | ||
80 | - | func | |
81 | - | then throw( | |
92 | + | func O (P,N,D) = if ((size(P) != N)) | |
93 | + | then throw(D) | |
82 | 94 | else true | |
83 | 95 | ||
84 | 96 | ||
85 | - | func | |
86 | - | then | |
97 | + | func Q (R,D) = if ((R != "")) | |
98 | + | then B(R, D) | |
87 | 99 | else true | |
88 | 100 | ||
89 | 101 | ||
90 | - | func | |
91 | - | then ( | |
92 | - | else ( | |
102 | + | func S (T,U,V) = if ((U >= V)) | |
103 | + | then (T / pow(10, 0, (U - V), 0, 0, DOWN)) | |
104 | + | else (T * pow(10, 0, (V - U), 0, 0, DOWN)) | |
93 | 105 | ||
94 | 106 | ||
95 | - | func | |
96 | - | let | |
97 | - | if ($isInstanceOf( | |
107 | + | func W () = { | |
108 | + | let E = getBoolean(b) | |
109 | + | if ($isInstanceOf(E, "Boolean")) | |
98 | 110 | then { | |
99 | - | let | |
100 | - | | |
111 | + | let F = E | |
112 | + | F | |
101 | 113 | } | |
102 | 114 | else false | |
103 | 115 | } | |
104 | 116 | ||
105 | 117 | ||
106 | - | func | |
118 | + | func X (Y) = [BooleanEntry(b, Y)] | |
107 | 119 | ||
108 | 120 | ||
109 | - | func | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
121 | + | func Z () = { | |
122 | + | let E = getBoolean(e) | |
123 | + | if ($isInstanceOf(E, "Boolean")) | |
112 | 124 | then { | |
113 | - | let | |
114 | - | | |
125 | + | let F = E | |
126 | + | F | |
115 | 127 | } | |
116 | 128 | else false | |
117 | 129 | } | |
118 | 130 | ||
119 | 131 | ||
120 | - | func | |
132 | + | func aa (ab) = [BooleanEntry(e, ab)] | |
121 | 133 | ||
122 | 134 | ||
123 | - | func | |
124 | - | let | |
125 | - | if ($isInstanceOf( | |
135 | + | func ac () = { | |
136 | + | let E = getString(f) | |
137 | + | if ($isInstanceOf(E, "String")) | |
126 | 138 | then { | |
127 | - | let | |
128 | - | addressFromStringValue( | |
139 | + | let F = E | |
140 | + | addressFromStringValue(F) | |
129 | 141 | } | |
130 | 142 | else Address(base58'') | |
131 | 143 | } | |
132 | 144 | ||
133 | 145 | ||
134 | - | func | |
146 | + | func ad (ae) = [StringEntry(f, toString(ae))] | |
135 | 147 | ||
136 | 148 | ||
137 | - | func | |
138 | - | let | |
139 | - | if ($isInstanceOf( | |
149 | + | func af () = { | |
150 | + | let E = getString(c) | |
151 | + | if ($isInstanceOf(E, "String")) | |
140 | 152 | then { | |
141 | - | let | |
142 | - | addressFromStringValue( | |
153 | + | let F = E | |
154 | + | addressFromStringValue(F) | |
143 | 155 | } | |
144 | 156 | else Address(base58'') | |
145 | 157 | } | |
146 | 158 | ||
147 | 159 | ||
148 | - | func | |
160 | + | func ag (ah) = [StringEntry(c, toString(ah))] | |
149 | 161 | ||
150 | 162 | ||
151 | - | func | |
152 | - | let | |
153 | - | if ($isInstanceOf( | |
163 | + | func ai () = { | |
164 | + | let E = getString(g) | |
165 | + | if ($isInstanceOf(E, "String")) | |
154 | 166 | then { | |
155 | - | let | |
156 | - | addressFromStringValue( | |
167 | + | let F = E | |
168 | + | addressFromStringValue(F) | |
157 | 169 | } | |
158 | 170 | else Address(base58'') | |
159 | 171 | } | |
160 | 172 | ||
161 | 173 | ||
162 | - | func | |
174 | + | func aj (ak) = [StringEntry(g, toString(ak))] | |
163 | 175 | ||
164 | 176 | ||
165 | - | func | |
166 | - | let | |
167 | - | if ($isInstanceOf( | |
177 | + | func al () = { | |
178 | + | let E = getString(i) | |
179 | + | if ($isInstanceOf(E, "String")) | |
168 | 180 | then { | |
169 | - | let | |
170 | - | | |
181 | + | let F = E | |
182 | + | F | |
171 | 183 | } | |
172 | 184 | else "" | |
173 | 185 | } | |
174 | 186 | ||
175 | 187 | ||
176 | - | func | |
188 | + | func am (an) = [StringEntry(i, an)] | |
177 | 189 | ||
178 | 190 | ||
179 | - | func | |
180 | - | let | |
181 | - | if ($isInstanceOf( | |
191 | + | func ao (ap) = { | |
192 | + | let E = getBoolean(makeString([j, toString(ap)], a)) | |
193 | + | if ($isInstanceOf(E, "Boolean")) | |
182 | 194 | then { | |
183 | - | let | |
184 | - | | |
195 | + | let F = E | |
196 | + | F | |
185 | 197 | } | |
186 | 198 | else false | |
187 | 199 | } | |
188 | 200 | ||
189 | 201 | ||
190 | - | func | |
202 | + | func aq (ap,J) = [BooleanEntry(makeString([j, toString(ap)], a), J)] | |
191 | 203 | ||
192 | 204 | ||
193 | - | func | |
194 | - | let | |
195 | - | if ($isInstanceOf( | |
205 | + | func ar (as,H) = { | |
206 | + | let E = getString(makeString([k, toString(as), toBase58String(H)], a)) | |
207 | + | if ($isInstanceOf(E, "String")) | |
196 | 208 | then { | |
197 | - | let | |
198 | - | let | |
199 | - | $Tuple8(addressFromStringValue( | |
209 | + | let F = E | |
210 | + | let at = split(F, a) | |
211 | + | $Tuple8(addressFromStringValue(at[0]), at[1], parseIntValue(at[2]), parseIntValue(at[3]), parseIntValue(at[4]), parseIntValue(at[5]), parseIntValue(at[6]), if ((at[7] == "1")) | |
200 | 212 | then true | |
201 | 213 | else false) | |
202 | 214 | } | |
204 | 216 | } | |
205 | 217 | ||
206 | 218 | ||
207 | - | func | |
219 | + | func au (as,H,av) = [StringEntry(makeString([k, toString(as), toBase58String(H)], a), makeString([toString(av._1), av._2, toString(av._3), toString(av._4), toString(av._5), toString(av._6), toString(av._7), if (av._8) | |
208 | 220 | then "1" | |
209 | 221 | else "0"], a))] | |
210 | 222 | ||
211 | 223 | ||
212 | - | func | |
213 | - | let | |
214 | - | if ($isInstanceOf( | |
224 | + | func aw (H) = { | |
225 | + | let E = getInteger(makeString([l, toBase58String(H)], a)) | |
226 | + | if ($isInstanceOf(E, "Int")) | |
215 | 227 | then { | |
216 | - | let | |
217 | - | | |
228 | + | let F = E | |
229 | + | F | |
218 | 230 | } | |
219 | 231 | else 0 | |
220 | 232 | } | |
221 | 233 | ||
222 | 234 | ||
223 | - | func | |
235 | + | func ax (H,J) = [IntegerEntry(makeString([l, toBase58String(H)], a), J)] | |
224 | 236 | ||
225 | 237 | ||
226 | - | func | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
238 | + | func ay () = { | |
239 | + | let E = getString(h) | |
240 | + | if ($isInstanceOf(E, "String")) | |
229 | 241 | then { | |
230 | - | let | |
231 | - | addressFromStringValue( | |
242 | + | let F = E | |
243 | + | addressFromStringValue(F) | |
232 | 244 | } | |
233 | 245 | else Address(base58'') | |
234 | 246 | } | |
235 | 247 | ||
236 | 248 | ||
237 | - | func | |
249 | + | func az (aA) = [StringEntry(h, toString(aA))] | |
238 | 250 | ||
239 | 251 | ||
240 | - | func | |
241 | - | let | |
242 | - | if ($isInstanceOf( | |
252 | + | func aB () = { | |
253 | + | let E = getString(m) | |
254 | + | if ($isInstanceOf(E, "String")) | |
243 | 255 | then { | |
244 | - | let | |
245 | - | addressFromStringValue( | |
256 | + | let F = E | |
257 | + | addressFromStringValue(F) | |
246 | 258 | } | |
247 | 259 | else Address(base58'') | |
248 | 260 | } | |
249 | 261 | ||
250 | 262 | ||
251 | - | func | |
263 | + | func aC (J) = [StringEntry(m, toString(J))] | |
252 | 264 | ||
253 | 265 | ||
254 | - | func | |
255 | - | let | |
256 | - | if ($isInstanceOf( | |
266 | + | func aD (as,R) = { | |
267 | + | let E = getInteger(makeString([n, toString(as), toString(R)], a)) | |
268 | + | if ($isInstanceOf(E, "Int")) | |
257 | 269 | then { | |
258 | - | let | |
259 | - | | |
270 | + | let F = E | |
271 | + | F | |
260 | 272 | } | |
261 | 273 | else 0 | |
262 | 274 | } | |
263 | 275 | ||
264 | 276 | ||
265 | - | func | |
277 | + | func aE (as,R,J) = [IntegerEntry(makeString([n, toString(as), toString(R)], a), J)] | |
266 | 278 | ||
267 | 279 | ||
268 | - | func az (ah) = if ((ah != this)) | |
280 | + | func aF () = { | |
281 | + | let E = getString(o) | |
282 | + | if ($isInstanceOf(E, "String")) | |
283 | + | then { | |
284 | + | let F = E | |
285 | + | if ((size(F) > 0)) | |
286 | + | then split_51C(F, a) | |
287 | + | else nil | |
288 | + | } | |
289 | + | else nil | |
290 | + | } | |
291 | + | ||
292 | + | ||
293 | + | func aG (aH) = [StringEntry(o, makeString_11C(aH, a))] | |
294 | + | ||
295 | + | ||
296 | + | func aI (aJ) = { | |
297 | + | let E = getString(makeString([p, toString(aJ)], a)) | |
298 | + | if ($isInstanceOf(E, "String")) | |
299 | + | then { | |
300 | + | let F = E | |
301 | + | addressFromStringValue(F) | |
302 | + | } | |
303 | + | else Address(base58'') | |
304 | + | } | |
305 | + | ||
306 | + | ||
307 | + | func aK (aJ,aL) = [StringEntry(makeString([p, toString(aJ)], a), toString(aL))] | |
308 | + | ||
309 | + | ||
310 | + | func aM (an) = if ((an != this)) | |
269 | 311 | then throw("_onlyThisContract: revert") | |
270 | 312 | else true | |
271 | 313 | ||
272 | 314 | ||
273 | - | func | |
315 | + | func aN () = if ((af() == Address(base58''))) | |
274 | 316 | then throw("_whenMultisigSet: revert") | |
275 | 317 | else true | |
276 | 318 | ||
277 | 319 | ||
278 | - | func | |
320 | + | func aO () = if (W()) | |
279 | 321 | then throw("_whenNotInitialized: revert") | |
280 | 322 | else true | |
281 | 323 | ||
282 | 324 | ||
283 | - | func | |
325 | + | func aP () = if (!(W())) | |
284 | 326 | then throw("_whenInitialized: revert") | |
285 | 327 | else true | |
286 | 328 | ||
287 | 329 | ||
288 | - | func | |
330 | + | func aQ () = if (Z()) | |
289 | 331 | then throw("_whenNotPaused: revert") | |
290 | 332 | else true | |
291 | 333 | ||
292 | 334 | ||
293 | - | func | |
335 | + | func aR () = if (!(Z())) | |
294 | 336 | then throw("_whenPaused: revert") | |
295 | 337 | else true | |
296 | 338 | ||
297 | 339 | ||
298 | - | func | |
340 | + | func aS (an) = if ((an != ac())) | |
299 | 341 | then throw("_onlyPauser: revert") | |
300 | 342 | else true | |
301 | 343 | ||
302 | 344 | ||
303 | - | func | |
304 | - | let | |
305 | - | if ($isInstanceOf( | |
345 | + | func aT (J) = { | |
346 | + | let E = J | |
347 | + | if ($isInstanceOf(E, "Int")) | |
306 | 348 | then { | |
307 | - | let | |
308 | - | | |
349 | + | let F = E | |
350 | + | F | |
309 | 351 | } | |
310 | 352 | else throw("_asInt: revert") | |
311 | 353 | } | |
312 | 354 | ||
313 | 355 | ||
314 | - | func | |
315 | - | let | |
316 | - | if ($isInstanceOf( | |
356 | + | func aU (J) = { | |
357 | + | let E = J | |
358 | + | if ($isInstanceOf(E, "ByteVector")) | |
317 | 359 | then { | |
318 | - | let | |
319 | - | | |
360 | + | let F = E | |
361 | + | F | |
320 | 362 | } | |
321 | 363 | else throw("_asBytes: revert") | |
322 | 364 | } | |
323 | 365 | ||
324 | 366 | ||
325 | - | func | |
326 | - | then throw( | |
367 | + | func aV (J,D) = if ((J != ai())) | |
368 | + | then throw(D) | |
327 | 369 | else true | |
328 | 370 | ||
329 | 371 | ||
330 | - | func | |
331 | - | then throw( | |
372 | + | func aW (J,D) = if ((J != al())) | |
373 | + | then throw(D) | |
332 | 374 | else true | |
333 | 375 | ||
334 | 376 | ||
335 | - | func | |
336 | - | then throw( | |
377 | + | func aX (as,D) = if (!(ao(as))) | |
378 | + | then throw(D) | |
337 | 379 | else true | |
338 | 380 | ||
339 | 381 | ||
340 | - | @Callable( | |
341 | - | func init (ae, | |
342 | - | let | |
343 | - | then | |
382 | + | @Callable(aY) | |
383 | + | func init (ak,aA,ae,aZ) = { | |
384 | + | let ba = if (if (if (if (if (if (aM(aY.caller)) | |
385 | + | then aO() | |
344 | 386 | else false) | |
345 | - | then | |
387 | + | then aN() | |
346 | 388 | else false) | |
347 | - | then | |
389 | + | then B(ak, "init: invalid executor") | |
348 | 390 | else false) | |
349 | - | then | |
391 | + | then B(aA, "init: invalid adapter") | |
350 | 392 | else false) | |
351 | - | then | |
393 | + | then B(ae, "init: invalid pauser") | |
352 | 394 | else false) | |
353 | - | then | |
395 | + | then B(aZ, "init: invalid feeRecipient") | |
354 | 396 | else false | |
355 | - | if (( | |
356 | - | then $Tuple2((((( | |
397 | + | if ((ba == ba)) | |
398 | + | then $Tuple2(((((X(true) ++ aj(addressFromStringValue(ak))) ++ az(addressFromStringValue(aA))) ++ ad(addressFromStringValue(ae))) ++ aC(addressFromStringValue(aZ))), unit) | |
357 | 399 | else throw("Strict value is not equal to itself.") | |
358 | 400 | } | |
359 | 401 | ||
360 | 402 | ||
361 | 403 | ||
362 | - | @Callable( | |
363 | - | func mintTokens ( | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | then | |
404 | + | @Callable(aY) | |
405 | + | func mintTokens (bb,bc,T,bd,be,R,bf) = { | |
406 | + | let bg = valueOrErrorMessage(parseInt(T), "mint: amount is not Int") | |
407 | + | let bh = valueOrErrorMessage(parseInt(be), "mint: gaslessReward is not Int") | |
408 | + | let bi = valueOrErrorMessage(parseInt(bf), "mint: referrerFee is not Int") | |
409 | + | let ba = if (if (if (if (if (if (if (if (aP()) | |
410 | + | then aQ() | |
369 | 411 | else false) | |
370 | - | then | |
412 | + | then B(bc, "mint: invalid asset contract") | |
371 | 413 | else false) | |
372 | - | then | |
414 | + | then aV(aY.caller, "mint: invalid executor") | |
373 | 415 | else false) | |
374 | - | then | |
416 | + | then aW(bb, "mint: invalid caller") | |
375 | 417 | else false) | |
376 | - | then | |
418 | + | then B(bd, "mint: invalid recipient address") | |
377 | 419 | else false) | |
378 | - | then | |
420 | + | then I(bg, 0, A, "mint: invalid amount") | |
379 | 421 | else false) | |
380 | - | then | |
422 | + | then I(bh, 0, A, "mint: invalid gaslessReward") | |
381 | 423 | else false) | |
382 | - | then | |
424 | + | then I(bi, 0, A, "mint: invalid referrer fee") | |
383 | 425 | else false | |
384 | - | if (( | |
426 | + | if ((ba == ba)) | |
385 | 427 | then { | |
386 | - | let aW = aH(invoke(addressFromStringValue(aP), "getAssetId", nil, nil)) | |
387 | - | if ((aW == aW)) | |
428 | + | let bj = if (containsElement(aF(), bc)) | |
429 | + | then $Tuple2(true, aI(addressFromStringValue(bc))) | |
430 | + | else $Tuple2(false, addressFromStringValue(bc)) | |
431 | + | let bk = bj._1 | |
432 | + | let bl = bj._2 | |
433 | + | let bm = aU(invoke(bl, t, nil, nil)) | |
434 | + | if ((bm == bm)) | |
388 | 435 | then { | |
389 | - | let | |
390 | - | if (( | |
436 | + | let bn = aT(invoke(bl, u, nil, nil)) | |
437 | + | if ((bn == bn)) | |
391 | 438 | then { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | if ($isInstanceOf( | |
439 | + | let bo = S(bg, x, bn) | |
440 | + | let bp = S(bh, x, bn) | |
441 | + | let bq = { | |
442 | + | let E = addressFromString(R) | |
443 | + | if ($isInstanceOf(E, "Address")) | |
397 | 444 | then { | |
398 | - | let | |
399 | - | let | |
400 | - | $Tuple2( | |
445 | + | let br = E | |
446 | + | let bs = S(bi, x, bn) | |
447 | + | $Tuple2(bs, [ScriptTransfer(br, bs, bm)]) | |
401 | 448 | } | |
402 | 449 | else $Tuple2(0, nil) | |
403 | 450 | } | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | if (( | |
451 | + | let bs = bq._1 | |
452 | + | let bt = bq._2 | |
453 | + | let bu = invoke(bl, q, [(bo + bs), toString(this)], nil) | |
454 | + | if ((bu == bu)) | |
408 | 455 | then { | |
409 | - | let | |
410 | - | then (addressFromStringValue( | |
456 | + | let bv = if (if ((bp > 0)) | |
457 | + | then (addressFromStringValue(bd) != aY.originCaller) | |
411 | 458 | else false) | |
412 | - | then [ScriptTransfer(addressFromStringValue(aQ), (aY - aZ), aW), ScriptTransfer(aL.originCaller, aZ, aW)] | |
413 | - | else [ScriptTransfer(addressFromStringValue(aQ), aY, aW)] | |
414 | - | $Tuple2((bf ++ bd), unit) | |
459 | + | then $Tuple2([ScriptTransfer(aY.originCaller, bp, bm)], bp) | |
460 | + | else $Tuple2(nil, 0) | |
461 | + | let bw = bv._1 | |
462 | + | let bx = bv._2 | |
463 | + | let by = if (bk) | |
464 | + | then { | |
465 | + | let bz = aU(invoke(addressFromStringValue(bc), t, nil, nil)) | |
466 | + | if ((bz == bz)) | |
467 | + | then { | |
468 | + | let bA = assetBalance(this, bz) | |
469 | + | if ((bA == bA)) | |
470 | + | then { | |
471 | + | let bB = invoke(addressFromStringValue(bc), r, [0], [AttachedPayment(bm, (bo - bx))]) | |
472 | + | if ((bB == bB)) | |
473 | + | then { | |
474 | + | let bC = assetBalance(this, bz) | |
475 | + | if ((bC == bC)) | |
476 | + | then [ScriptTransfer(addressFromStringValue(bd), (bC - bA), bz)] | |
477 | + | else throw("Strict value is not equal to itself.") | |
478 | + | } | |
479 | + | else throw("Strict value is not equal to itself.") | |
480 | + | } | |
481 | + | else throw("Strict value is not equal to itself.") | |
482 | + | } | |
483 | + | else throw("Strict value is not equal to itself.") | |
484 | + | } | |
485 | + | else [ScriptTransfer(addressFromStringValue(bd), (bo - bx), bm)] | |
486 | + | $Tuple2(((by ++ bw) ++ bt), unit) | |
415 | 487 | } | |
416 | 488 | else throw("Strict value is not equal to itself.") | |
417 | 489 | } | |
424 | 496 | ||
425 | 497 | ||
426 | 498 | ||
427 | - | @Callable( | |
428 | - | func burnTokens ( | |
429 | - | let | |
430 | - | then | |
499 | + | @Callable(aY) | |
500 | + | func burnTokens (as,bd,be) = { | |
501 | + | let ba = if (if (if (if (if (aP()) | |
502 | + | then aQ() | |
431 | 503 | else false) | |
432 | - | then | |
504 | + | then aX(as, "burnTokens: invalid execution chain") | |
433 | 505 | else false) | |
434 | - | then | |
506 | + | then O(aY.payments, 1, "burnTokens: no payment") | |
435 | 507 | else false) | |
436 | - | then | |
508 | + | then I(be, 0, A, "burnTokens: invalid gaslessReward") | |
437 | 509 | else false) | |
438 | - | then | |
510 | + | then I(aY.payments[0].amount, 0, A, "burnTokens: invalid payment amount") | |
439 | 511 | else false | |
440 | - | if (( | |
512 | + | if ((ba == ba)) | |
441 | 513 | then { | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | if ($isInstanceOf( | |
514 | + | let bg = aY.payments[0].amount | |
515 | + | let bm = { | |
516 | + | let E = aY.payments[0].assetId | |
517 | + | if ($isInstanceOf(E, "ByteVector")) | |
446 | 518 | then { | |
447 | - | let | |
448 | - | | |
519 | + | let F = E | |
520 | + | F | |
449 | 521 | } | |
450 | 522 | else throw("burnTokens: invalid asset") | |
451 | 523 | } | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | then | |
524 | + | let bD = ar(as, bm) | |
525 | + | let bE = bD._1 | |
526 | + | let bF = bD._2 | |
527 | + | let bG = bD._3 | |
528 | + | let bH = bD._4 | |
529 | + | let bI = bD._5 | |
530 | + | let bJ = bD._6 | |
531 | + | let bK = bD._7 | |
532 | + | let bL = bD._8 | |
533 | + | let bM = if (if (B(toString(bE), "burnTokens: no such binding")) | |
534 | + | then I(bg, bG, A, "burnTokens: less than min") | |
463 | 535 | else false) | |
464 | - | then | |
536 | + | then M(bL, true, "burnTokens: token is disabled") | |
465 | 537 | else false | |
466 | - | if (( | |
538 | + | if ((bM == bM)) | |
467 | 539 | then { | |
468 | - | let | |
469 | - | if (( | |
540 | + | let bN = aT(invoke(bE, u, nil, nil)) | |
541 | + | if ((bN == bN)) | |
470 | 542 | then { | |
471 | - | let | |
472 | - | then | |
473 | - | else | |
474 | - | let | |
475 | - | let | |
476 | - | if (( | |
543 | + | let bO = if ((bg > bI)) | |
544 | + | then bK | |
545 | + | else bJ | |
546 | + | let bP = (bH + fraction(bg, bO, y)) | |
547 | + | let bQ = I(bg, (bP + 1), A, "burnTokens: fee more than amount") | |
548 | + | if ((bQ == bQ)) | |
477 | 549 | then { | |
478 | - | let | |
479 | - | let | |
480 | - | if (( | |
550 | + | let bR = (bg - bP) | |
551 | + | let bS = I(bR, (be + 1), A, "burnTokens: reward more than amount") | |
552 | + | if ((bS == bS)) | |
481 | 553 | then { | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | if (( | |
487 | - | then $Tuple2(( | |
554 | + | let bT = (aw(bm) + bP) | |
555 | + | let bo = S(bR, bN, x) | |
556 | + | let bp = S(be, bN, x) | |
557 | + | let bU = invoke(ay(), s, [as, bF, bo, bd, bp], nil) | |
558 | + | if ((bU == bU)) | |
559 | + | then $Tuple2((ax(bm, bT) ++ [Burn(bm, bR)]), unit) | |
488 | 560 | else throw("Strict value is not equal to itself.") | |
489 | 561 | } | |
490 | 562 | else throw("Strict value is not equal to itself.") | |
500 | 572 | ||
501 | 573 | ||
502 | 574 | ||
503 | - | @Callable( | |
504 | - | func burnTokensV2 ( | |
505 | - | let | |
506 | - | then | |
575 | + | @Callable(aY) | |
576 | + | func burnTokensV2 (as,bd,R,be) = { | |
577 | + | let ba = if (if (if (if (if (if (aP()) | |
578 | + | then aQ() | |
507 | 579 | else false) | |
508 | - | then | |
580 | + | then aX(as, "burnTokensV2: invalid execution chain") | |
509 | 581 | else false) | |
510 | - | then | |
582 | + | then O(aY.payments, 1, "burnTokensV2: no payment") | |
511 | 583 | else false) | |
512 | - | then | |
584 | + | then I(be, 0, A, "burnTokensV2: invalid gaslessReward") | |
513 | 585 | else false) | |
514 | - | then | |
586 | + | then I(aY.payments[0].amount, 0, A, "burnTokensV2: invalid payment amount") | |
515 | 587 | else false) | |
516 | - | then | |
588 | + | then Q(R, "burnTokensV2: invalid referrer") | |
517 | 589 | else false | |
518 | - | if (( | |
590 | + | if ((ba == ba)) | |
519 | 591 | then { | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | if ($isInstanceOf( | |
592 | + | let bg = aY.payments[0].amount | |
593 | + | let bm = { | |
594 | + | let E = aY.payments[0].assetId | |
595 | + | if ($isInstanceOf(E, "ByteVector")) | |
524 | 596 | then { | |
525 | - | let | |
526 | - | | |
597 | + | let F = E | |
598 | + | F | |
527 | 599 | } | |
528 | 600 | else throw("burnTokensV2: invalid asset") | |
529 | 601 | } | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | then | |
602 | + | let bD = ar(as, bm) | |
603 | + | let bE = bD._1 | |
604 | + | let bF = bD._2 | |
605 | + | let bG = bD._3 | |
606 | + | let bH = bD._4 | |
607 | + | let bI = bD._5 | |
608 | + | let bJ = bD._6 | |
609 | + | let bK = bD._7 | |
610 | + | let bL = bD._8 | |
611 | + | let bM = if (if (B(toString(bE), "burnTokensV2: no such binding")) | |
612 | + | then I(bg, bG, A, "burnTokensV2: less than min") | |
541 | 613 | else false) | |
542 | - | then | |
614 | + | then M(bL, true, "burnTokensV2: token is disabled") | |
543 | 615 | else false | |
544 | - | if (( | |
616 | + | if ((bM == bM)) | |
545 | 617 | then { | |
546 | - | let | |
547 | - | if (( | |
618 | + | let bN = aT(invoke(bE, u, nil, nil)) | |
619 | + | if ((bN == bN)) | |
548 | 620 | then { | |
549 | - | let | |
550 | - | then | |
551 | - | else | |
552 | - | let | |
553 | - | let | |
554 | - | if (( | |
621 | + | let bO = if ((bg > bI)) | |
622 | + | then bK | |
623 | + | else bJ | |
624 | + | let bP = (bH + fraction(bg, bO, y)) | |
625 | + | let bQ = I(bg, (bP + 1), A, "burnTokensV2: fee more than amount") | |
626 | + | if ((bQ == bQ)) | |
555 | 627 | then { | |
556 | - | let | |
628 | + | let bV = if ((R != "")) | |
557 | 629 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | $Tuple2( | |
630 | + | let bW = addressFromStringValue(R) | |
631 | + | let bX = fraction(aD(as, bW), bP, y) | |
632 | + | $Tuple2(bX, [ScriptTransfer(bW, bX, bm)]) | |
561 | 633 | } | |
562 | 634 | else $Tuple2(0, nil) | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | if (( | |
635 | + | let bi = bV._1 | |
636 | + | let bt = bV._2 | |
637 | + | let bR = (bg - bP) | |
638 | + | let bS = I(bR, (be + 1), A, "burnTokensV2: reward more than amount") | |
639 | + | if ((bS == bS)) | |
568 | 640 | then { | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | if (( | |
574 | - | then $Tuple2((( | |
641 | + | let bT = ((aw(bm) + bP) - bi) | |
642 | + | let bo = S(bR, bN, x) | |
643 | + | let bp = S(be, bN, x) | |
644 | + | let bU = invoke(ay(), s, [as, bF, bo, bd, bp], nil) | |
645 | + | if ((bU == bU)) | |
646 | + | then $Tuple2(((ax(bm, bT) ++ bt) ++ [Burn(bm, bR)]), unit) | |
575 | 647 | else throw("Strict value is not equal to itself.") | |
576 | 648 | } | |
577 | 649 | else throw("Strict value is not equal to itself.") | |
587 | 659 | ||
588 | 660 | ||
589 | 661 | ||
590 | - | @Callable( | |
591 | - | func transferFee ( | |
592 | - | let | |
593 | - | then | |
662 | + | @Callable(aY) | |
663 | + | func transferFee (as,H) = { | |
664 | + | let ba = if (if (aP()) | |
665 | + | then aQ() | |
594 | 666 | else false) | |
595 | - | then | |
667 | + | then G(H, "transferFee: invalid asset") | |
596 | 668 | else false | |
597 | - | if (( | |
669 | + | if ((ba == ba)) | |
598 | 670 | then { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | then | |
671 | + | let bm = fromBase58String(H) | |
672 | + | let bD = ar(as, bm) | |
673 | + | let bE = bD._1 | |
674 | + | let bL = bD._8 | |
675 | + | let bM = if (B(toString(bE), "transferFee: no such binding")) | |
676 | + | then M(bL, true, "transferFee: token is disabled") | |
605 | 677 | else false | |
606 | - | if (( | |
607 | - | then $Tuple2(( | |
678 | + | if ((bM == bM)) | |
679 | + | then $Tuple2((ax(bm, 0) ++ [ScriptTransfer(aB(), aw(bm), bm)]), unit) | |
608 | 680 | else throw("Strict value is not equal to itself.") | |
609 | 681 | } | |
610 | 682 | else throw("Strict value is not equal to itself.") | |
612 | 684 | ||
613 | 685 | ||
614 | 686 | ||
615 | - | @Callable( | |
616 | - | func updateCallerContract ( | |
617 | - | let | |
618 | - | then | |
687 | + | @Callable(aY) | |
688 | + | func updateCallerContract (bb) = { | |
689 | + | let ba = if (aM(aY.caller)) | |
690 | + | then aP() | |
619 | 691 | else false | |
620 | - | if (( | |
621 | - | then $Tuple2( | |
692 | + | if ((ba == ba)) | |
693 | + | then $Tuple2(am(bb), unit) | |
622 | 694 | else throw("Strict value is not equal to itself.") | |
623 | 695 | } | |
624 | 696 | ||
625 | 697 | ||
626 | 698 | ||
627 | - | @Callable( | |
628 | - | func updateExecutionChain ( | |
629 | - | let | |
630 | - | then | |
699 | + | @Callable(aY) | |
700 | + | func updateExecutionChain (as,bY) = { | |
701 | + | let ba = if (if (aM(aY.caller)) | |
702 | + | then aP() | |
631 | 703 | else false) | |
632 | - | then | |
704 | + | then I(as, 0, A, "updateExecutionChain: invalid executionChainId") | |
633 | 705 | else false | |
634 | - | if (( | |
635 | - | then $Tuple2( | |
706 | + | if ((ba == ba)) | |
707 | + | then $Tuple2(aq(as, bY), unit) | |
636 | 708 | else throw("Strict value is not equal to itself.") | |
637 | 709 | } | |
638 | 710 | ||
639 | 711 | ||
640 | 712 | ||
641 | - | @Callable( | |
642 | - | func updateFeeRecipient ( | |
643 | - | let | |
644 | - | then | |
713 | + | @Callable(aY) | |
714 | + | func updateFeeRecipient (aZ) = { | |
715 | + | let ba = if (if (aM(aY.caller)) | |
716 | + | then aP() | |
645 | 717 | else false) | |
646 | - | then | |
718 | + | then B(aZ, "updateFeeRecipient: invalid feeRecipient") | |
647 | 719 | else false | |
648 | - | if (( | |
649 | - | then $Tuple2( | |
720 | + | if ((ba == ba)) | |
721 | + | then $Tuple2(aC(addressFromStringValue(aZ)), unit) | |
650 | 722 | else throw("Strict value is not equal to itself.") | |
651 | 723 | } | |
652 | 724 | ||
653 | 725 | ||
654 | 726 | ||
655 | - | @Callable( | |
656 | - | func updateReferrer ( | |
657 | - | let | |
658 | - | then | |
727 | + | @Callable(aY) | |
728 | + | func updateReferrer (as,R,bZ) = { | |
729 | + | let ba = if (if (if (if (aM(aY.caller)) | |
730 | + | then aP() | |
659 | 731 | else false) | |
660 | - | then | |
732 | + | then aX(as, "updateReferrer: invalid execution chain") | |
661 | 733 | else false) | |
662 | - | then | |
734 | + | then B(R, "updateReferrer: invalid referrer") | |
663 | 735 | else false) | |
664 | - | then | |
736 | + | then I(bZ, 0, z, "updateReferrer: invalid fee") | |
665 | 737 | else false | |
666 | - | if (( | |
667 | - | then $Tuple2( | |
738 | + | if ((ba == ba)) | |
739 | + | then $Tuple2(aE(as, addressFromStringValue(R), bZ), unit) | |
668 | 740 | else throw("Strict value is not equal to itself.") | |
669 | 741 | } | |
670 | 742 | ||
671 | 743 | ||
672 | 744 | ||
673 | - | @Callable( | |
674 | - | func updateBindingInfo ( | |
675 | - | let | |
676 | - | then | |
745 | + | @Callable(aY) | |
746 | + | func updateBindingInfo (as,bc,ca,cb,cc,cd,ce,cf,bY) = { | |
747 | + | let ba = if (if (if (if (if (if (if (if (aM(aY.caller)) | |
748 | + | then aP() | |
677 | 749 | else false) | |
678 | - | then | |
750 | + | then B(bc, "updateBindingInfo: invalid asset contract") | |
679 | 751 | else false) | |
680 | - | then | |
752 | + | then I(as, 0, A, "updateBindingInfo: invalid executionChainId") | |
681 | 753 | else false) | |
682 | - | then | |
754 | + | then I(cb, 0, A, "updateBindingInfo: invalid minAmount") | |
683 | 755 | else false) | |
684 | - | then | |
756 | + | then I(cc, 0, A, "updateBindingInfo: invalid minFee") | |
685 | 757 | else false) | |
686 | - | then | |
758 | + | then I(cd, 0, A, "updateBindingInfo: invalid thresholdFee") | |
687 | 759 | else false) | |
688 | - | then | |
760 | + | then I(ce, 0, A, "updateBindingInfo: invalid beforePercentFee") | |
689 | 761 | else false) | |
690 | - | then | |
762 | + | then I(cf, 0, A, "updateBindingInfo: invalid afterPercentFee") | |
691 | 763 | else false | |
692 | - | if (( | |
764 | + | if ((ba == ba)) | |
693 | 765 | then { | |
694 | - | let | |
695 | - | if (( | |
766 | + | let bm = aU(invoke(addressFromStringValue(bc), t, nil, nil)) | |
767 | + | if ((bm == bm)) | |
696 | 768 | then { | |
697 | - | let | |
698 | - | $Tuple2( | |
769 | + | let bD = $Tuple8(addressFromStringValue(bc), ca, cb, cc, cd, ce, cf, bY) | |
770 | + | $Tuple2(au(as, bm, bD), unit) | |
699 | 771 | } | |
700 | 772 | else throw("Strict value is not equal to itself.") | |
701 | 773 | } | |
704 | 776 | ||
705 | 777 | ||
706 | 778 | ||
707 | - | @Callable( | |
708 | - | func | |
709 | - | let | |
710 | - | then | |
779 | + | @Callable(aY) | |
780 | + | func addCrosschainPoolContract (aJ,aL) = { | |
781 | + | let ba = if (if (if (aM(aY.caller)) | |
782 | + | then aP() | |
711 | 783 | else false) | |
712 | - | then aD() | |
784 | + | then B(aJ, "addCrosschainPoolContract: invalid crosschainPoolContract") | |
785 | + | else false) | |
786 | + | then B(aL, "addCrosschainPoolContract: invalid bridgeAssetContract") | |
713 | 787 | else false | |
714 | - | if (( | |
715 | - | then $Tuple2( | |
788 | + | if ((ba == ba)) | |
789 | + | then $Tuple2((aG((aF() :+ aJ)) ++ aK(addressFromStringValue(aJ), addressFromStringValue(aL))), unit) | |
716 | 790 | else throw("Strict value is not equal to itself.") | |
717 | 791 | } | |
718 | 792 | ||
719 | 793 | ||
720 | 794 | ||
721 | - | @Callable( | |
722 | - | func | |
723 | - | let | |
724 | - | then | |
795 | + | @Callable(aY) | |
796 | + | func pause () = { | |
797 | + | let ba = if (if (aS(aY.caller)) | |
798 | + | then aP() | |
725 | 799 | else false) | |
726 | - | then | |
800 | + | then aQ() | |
727 | 801 | else false | |
728 | - | if (( | |
729 | - | then $Tuple2( | |
802 | + | if ((ba == ba)) | |
803 | + | then $Tuple2(aa(true), unit) | |
730 | 804 | else throw("Strict value is not equal to itself.") | |
731 | 805 | } | |
732 | 806 | ||
733 | 807 | ||
734 | 808 | ||
735 | - | @Callable( | |
736 | - | func | |
737 | - | let | |
738 | - | then | |
809 | + | @Callable(aY) | |
810 | + | func unpause () = { | |
811 | + | let ba = if (if (aS(aY.caller)) | |
812 | + | then aP() | |
739 | 813 | else false) | |
740 | - | then | |
814 | + | then aR() | |
741 | 815 | else false | |
742 | - | if (( | |
743 | - | then $Tuple2( | |
816 | + | if ((ba == ba)) | |
817 | + | then $Tuple2(aa(false), unit) | |
744 | 818 | else throw("Strict value is not equal to itself.") | |
745 | 819 | } | |
746 | 820 | ||
747 | 821 | ||
748 | 822 | ||
749 | - | @Callable(aL) | |
750 | - | func setMultisig (ab) = { | |
751 | - | let aN = if (az(aL.caller)) | |
752 | - | then v(ab, "setMultisig: invalid multisig") | |
823 | + | @Callable(aY) | |
824 | + | func updatePauser (ae) = { | |
825 | + | let ba = if (if (aM(aY.caller)) | |
826 | + | then aP() | |
827 | + | else false) | |
828 | + | then B(ae, "updatePauser: invalid pauser") | |
753 | 829 | else false | |
754 | - | if (( | |
755 | - | then $Tuple2( | |
830 | + | if ((ba == ba)) | |
831 | + | then $Tuple2(ad(addressFromStringValue(ae)), unit) | |
756 | 832 | else throw("Strict value is not equal to itself.") | |
757 | 833 | } | |
758 | 834 | ||
759 | 835 | ||
760 | - | @Verifier(bG) | |
761 | - | func bH () = { | |
762 | - | let y = getString(c) | |
763 | - | if ($isInstanceOf(y, "String")) | |
836 | + | ||
837 | + | @Callable(aY) | |
838 | + | func setMultisig (ah) = { | |
839 | + | let ba = if (aM(aY.caller)) | |
840 | + | then B(ah, "setMultisig: invalid multisig") | |
841 | + | else false | |
842 | + | if ((ba == ba)) | |
843 | + | then $Tuple2(ag(addressFromStringValue(ah)), unit) | |
844 | + | else throw("Strict value is not equal to itself.") | |
845 | + | } | |
846 | + | ||
847 | + | ||
848 | + | @Verifier(cg) | |
849 | + | func ch () = { | |
850 | + | let E = getString(c) | |
851 | + | if ($isInstanceOf(E, "String")) | |
764 | 852 | then { | |
765 | - | let | |
766 | - | valueOrElse(getBoolean(addressFromStringValue( | |
853 | + | let ci = E | |
854 | + | valueOrElse(getBoolean(addressFromStringValue(ci), makeString([d, toString(this), toBase58String(cg.id)], a)), false) | |
767 | 855 | } | |
768 | - | else sigVerify( | |
856 | + | else sigVerify(cg.bodyBytes, cg.proofs[0], cg.senderPublicKey) | |
769 | 857 | } | |
770 | 858 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "INIT" | |
7 | 7 | ||
8 | 8 | let c = "MULTISIG" | |
9 | 9 | ||
10 | 10 | let d = "STATUS" | |
11 | 11 | ||
12 | 12 | let e = "PAUSED" | |
13 | 13 | ||
14 | 14 | let f = "PAUSER" | |
15 | 15 | ||
16 | 16 | let g = "EXECUTOR" | |
17 | 17 | ||
18 | 18 | let h = "ROOT_ADAPTER" | |
19 | 19 | ||
20 | 20 | let i = "CALLER_CONTRACT" | |
21 | 21 | ||
22 | 22 | let j = "CHAIN" | |
23 | 23 | ||
24 | 24 | let k = "BINDING" | |
25 | 25 | ||
26 | 26 | let l = "FEE" | |
27 | 27 | ||
28 | 28 | let m = "FEE_RECIPIENT" | |
29 | 29 | ||
30 | 30 | let n = "REFERRER_FEE_PERCENT" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "CROSSCHAIN_POOL_CONTRACTS" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "BRIDGE_ASSET_CONTRACT" | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = "mint" | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = "deposit" | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = "releaseTokens" | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = "getAssetId" | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = "getDecimals" | |
45 | 45 | ||
46 | - | func v (w,x) = { | |
47 | - | let y = addressFromString(w) | |
48 | - | if ($isInstanceOf(y, "Address")) | |
46 | + | let v = "WAVES" | |
47 | + | ||
48 | + | let w = 8 | |
49 | + | ||
50 | + | let x = 6 | |
51 | + | ||
52 | + | let y = 1000000 | |
53 | + | ||
54 | + | let z = 200000 | |
55 | + | ||
56 | + | let A = 9223372036854775807 | |
57 | + | ||
58 | + | func B (C,D) = { | |
59 | + | let E = addressFromString(C) | |
60 | + | if ($isInstanceOf(E, "Address")) | |
49 | 61 | then { | |
50 | - | let | |
62 | + | let F = E | |
51 | 63 | true | |
52 | 64 | } | |
53 | - | else throw( | |
65 | + | else throw(D) | |
54 | 66 | } | |
55 | 67 | ||
56 | 68 | ||
57 | - | func | |
58 | - | let | |
59 | - | if ($isInstanceOf( | |
69 | + | func G (H,D) = { | |
70 | + | let E = assetInfo(fromBase58String(H)) | |
71 | + | if ($isInstanceOf(E, "Asset")) | |
60 | 72 | then { | |
61 | - | let | |
73 | + | let F = E | |
62 | 74 | true | |
63 | 75 | } | |
64 | - | else throw( | |
76 | + | else throw(D) | |
65 | 77 | } | |
66 | 78 | ||
67 | 79 | ||
68 | - | func | |
80 | + | func I (J,K,L,D) = if (if ((K > J)) | |
69 | 81 | then true | |
70 | - | else ( | |
71 | - | then throw( | |
82 | + | else (J > L)) | |
83 | + | then throw(D) | |
72 | 84 | else true | |
73 | 85 | ||
74 | 86 | ||
75 | - | func | |
76 | - | then throw( | |
87 | + | func M (J,N,D) = if ((J != N)) | |
88 | + | then throw(D) | |
77 | 89 | else true | |
78 | 90 | ||
79 | 91 | ||
80 | - | func | |
81 | - | then throw( | |
92 | + | func O (P,N,D) = if ((size(P) != N)) | |
93 | + | then throw(D) | |
82 | 94 | else true | |
83 | 95 | ||
84 | 96 | ||
85 | - | func | |
86 | - | then | |
97 | + | func Q (R,D) = if ((R != "")) | |
98 | + | then B(R, D) | |
87 | 99 | else true | |
88 | 100 | ||
89 | 101 | ||
90 | - | func | |
91 | - | then ( | |
92 | - | else ( | |
102 | + | func S (T,U,V) = if ((U >= V)) | |
103 | + | then (T / pow(10, 0, (U - V), 0, 0, DOWN)) | |
104 | + | else (T * pow(10, 0, (V - U), 0, 0, DOWN)) | |
93 | 105 | ||
94 | 106 | ||
95 | - | func | |
96 | - | let | |
97 | - | if ($isInstanceOf( | |
107 | + | func W () = { | |
108 | + | let E = getBoolean(b) | |
109 | + | if ($isInstanceOf(E, "Boolean")) | |
98 | 110 | then { | |
99 | - | let | |
100 | - | | |
111 | + | let F = E | |
112 | + | F | |
101 | 113 | } | |
102 | 114 | else false | |
103 | 115 | } | |
104 | 116 | ||
105 | 117 | ||
106 | - | func | |
118 | + | func X (Y) = [BooleanEntry(b, Y)] | |
107 | 119 | ||
108 | 120 | ||
109 | - | func | |
110 | - | let | |
111 | - | if ($isInstanceOf( | |
121 | + | func Z () = { | |
122 | + | let E = getBoolean(e) | |
123 | + | if ($isInstanceOf(E, "Boolean")) | |
112 | 124 | then { | |
113 | - | let | |
114 | - | | |
125 | + | let F = E | |
126 | + | F | |
115 | 127 | } | |
116 | 128 | else false | |
117 | 129 | } | |
118 | 130 | ||
119 | 131 | ||
120 | - | func | |
132 | + | func aa (ab) = [BooleanEntry(e, ab)] | |
121 | 133 | ||
122 | 134 | ||
123 | - | func | |
124 | - | let | |
125 | - | if ($isInstanceOf( | |
135 | + | func ac () = { | |
136 | + | let E = getString(f) | |
137 | + | if ($isInstanceOf(E, "String")) | |
126 | 138 | then { | |
127 | - | let | |
128 | - | addressFromStringValue( | |
139 | + | let F = E | |
140 | + | addressFromStringValue(F) | |
129 | 141 | } | |
130 | 142 | else Address(base58'') | |
131 | 143 | } | |
132 | 144 | ||
133 | 145 | ||
134 | - | func | |
146 | + | func ad (ae) = [StringEntry(f, toString(ae))] | |
135 | 147 | ||
136 | 148 | ||
137 | - | func | |
138 | - | let | |
139 | - | if ($isInstanceOf( | |
149 | + | func af () = { | |
150 | + | let E = getString(c) | |
151 | + | if ($isInstanceOf(E, "String")) | |
140 | 152 | then { | |
141 | - | let | |
142 | - | addressFromStringValue( | |
153 | + | let F = E | |
154 | + | addressFromStringValue(F) | |
143 | 155 | } | |
144 | 156 | else Address(base58'') | |
145 | 157 | } | |
146 | 158 | ||
147 | 159 | ||
148 | - | func | |
160 | + | func ag (ah) = [StringEntry(c, toString(ah))] | |
149 | 161 | ||
150 | 162 | ||
151 | - | func | |
152 | - | let | |
153 | - | if ($isInstanceOf( | |
163 | + | func ai () = { | |
164 | + | let E = getString(g) | |
165 | + | if ($isInstanceOf(E, "String")) | |
154 | 166 | then { | |
155 | - | let | |
156 | - | addressFromStringValue( | |
167 | + | let F = E | |
168 | + | addressFromStringValue(F) | |
157 | 169 | } | |
158 | 170 | else Address(base58'') | |
159 | 171 | } | |
160 | 172 | ||
161 | 173 | ||
162 | - | func | |
174 | + | func aj (ak) = [StringEntry(g, toString(ak))] | |
163 | 175 | ||
164 | 176 | ||
165 | - | func | |
166 | - | let | |
167 | - | if ($isInstanceOf( | |
177 | + | func al () = { | |
178 | + | let E = getString(i) | |
179 | + | if ($isInstanceOf(E, "String")) | |
168 | 180 | then { | |
169 | - | let | |
170 | - | | |
181 | + | let F = E | |
182 | + | F | |
171 | 183 | } | |
172 | 184 | else "" | |
173 | 185 | } | |
174 | 186 | ||
175 | 187 | ||
176 | - | func | |
188 | + | func am (an) = [StringEntry(i, an)] | |
177 | 189 | ||
178 | 190 | ||
179 | - | func | |
180 | - | let | |
181 | - | if ($isInstanceOf( | |
191 | + | func ao (ap) = { | |
192 | + | let E = getBoolean(makeString([j, toString(ap)], a)) | |
193 | + | if ($isInstanceOf(E, "Boolean")) | |
182 | 194 | then { | |
183 | - | let | |
184 | - | | |
195 | + | let F = E | |
196 | + | F | |
185 | 197 | } | |
186 | 198 | else false | |
187 | 199 | } | |
188 | 200 | ||
189 | 201 | ||
190 | - | func | |
202 | + | func aq (ap,J) = [BooleanEntry(makeString([j, toString(ap)], a), J)] | |
191 | 203 | ||
192 | 204 | ||
193 | - | func | |
194 | - | let | |
195 | - | if ($isInstanceOf( | |
205 | + | func ar (as,H) = { | |
206 | + | let E = getString(makeString([k, toString(as), toBase58String(H)], a)) | |
207 | + | if ($isInstanceOf(E, "String")) | |
196 | 208 | then { | |
197 | - | let | |
198 | - | let | |
199 | - | $Tuple8(addressFromStringValue( | |
209 | + | let F = E | |
210 | + | let at = split(F, a) | |
211 | + | $Tuple8(addressFromStringValue(at[0]), at[1], parseIntValue(at[2]), parseIntValue(at[3]), parseIntValue(at[4]), parseIntValue(at[5]), parseIntValue(at[6]), if ((at[7] == "1")) | |
200 | 212 | then true | |
201 | 213 | else false) | |
202 | 214 | } | |
203 | 215 | else $Tuple8(Address(base58''), "", 0, 0, 0, 0, 0, false) | |
204 | 216 | } | |
205 | 217 | ||
206 | 218 | ||
207 | - | func | |
219 | + | func au (as,H,av) = [StringEntry(makeString([k, toString(as), toBase58String(H)], a), makeString([toString(av._1), av._2, toString(av._3), toString(av._4), toString(av._5), toString(av._6), toString(av._7), if (av._8) | |
208 | 220 | then "1" | |
209 | 221 | else "0"], a))] | |
210 | 222 | ||
211 | 223 | ||
212 | - | func | |
213 | - | let | |
214 | - | if ($isInstanceOf( | |
224 | + | func aw (H) = { | |
225 | + | let E = getInteger(makeString([l, toBase58String(H)], a)) | |
226 | + | if ($isInstanceOf(E, "Int")) | |
215 | 227 | then { | |
216 | - | let | |
217 | - | | |
228 | + | let F = E | |
229 | + | F | |
218 | 230 | } | |
219 | 231 | else 0 | |
220 | 232 | } | |
221 | 233 | ||
222 | 234 | ||
223 | - | func | |
235 | + | func ax (H,J) = [IntegerEntry(makeString([l, toBase58String(H)], a), J)] | |
224 | 236 | ||
225 | 237 | ||
226 | - | func | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
238 | + | func ay () = { | |
239 | + | let E = getString(h) | |
240 | + | if ($isInstanceOf(E, "String")) | |
229 | 241 | then { | |
230 | - | let | |
231 | - | addressFromStringValue( | |
242 | + | let F = E | |
243 | + | addressFromStringValue(F) | |
232 | 244 | } | |
233 | 245 | else Address(base58'') | |
234 | 246 | } | |
235 | 247 | ||
236 | 248 | ||
237 | - | func | |
249 | + | func az (aA) = [StringEntry(h, toString(aA))] | |
238 | 250 | ||
239 | 251 | ||
240 | - | func | |
241 | - | let | |
242 | - | if ($isInstanceOf( | |
252 | + | func aB () = { | |
253 | + | let E = getString(m) | |
254 | + | if ($isInstanceOf(E, "String")) | |
243 | 255 | then { | |
244 | - | let | |
245 | - | addressFromStringValue( | |
256 | + | let F = E | |
257 | + | addressFromStringValue(F) | |
246 | 258 | } | |
247 | 259 | else Address(base58'') | |
248 | 260 | } | |
249 | 261 | ||
250 | 262 | ||
251 | - | func | |
263 | + | func aC (J) = [StringEntry(m, toString(J))] | |
252 | 264 | ||
253 | 265 | ||
254 | - | func | |
255 | - | let | |
256 | - | if ($isInstanceOf( | |
266 | + | func aD (as,R) = { | |
267 | + | let E = getInteger(makeString([n, toString(as), toString(R)], a)) | |
268 | + | if ($isInstanceOf(E, "Int")) | |
257 | 269 | then { | |
258 | - | let | |
259 | - | | |
270 | + | let F = E | |
271 | + | F | |
260 | 272 | } | |
261 | 273 | else 0 | |
262 | 274 | } | |
263 | 275 | ||
264 | 276 | ||
265 | - | func | |
277 | + | func aE (as,R,J) = [IntegerEntry(makeString([n, toString(as), toString(R)], a), J)] | |
266 | 278 | ||
267 | 279 | ||
268 | - | func az (ah) = if ((ah != this)) | |
280 | + | func aF () = { | |
281 | + | let E = getString(o) | |
282 | + | if ($isInstanceOf(E, "String")) | |
283 | + | then { | |
284 | + | let F = E | |
285 | + | if ((size(F) > 0)) | |
286 | + | then split_51C(F, a) | |
287 | + | else nil | |
288 | + | } | |
289 | + | else nil | |
290 | + | } | |
291 | + | ||
292 | + | ||
293 | + | func aG (aH) = [StringEntry(o, makeString_11C(aH, a))] | |
294 | + | ||
295 | + | ||
296 | + | func aI (aJ) = { | |
297 | + | let E = getString(makeString([p, toString(aJ)], a)) | |
298 | + | if ($isInstanceOf(E, "String")) | |
299 | + | then { | |
300 | + | let F = E | |
301 | + | addressFromStringValue(F) | |
302 | + | } | |
303 | + | else Address(base58'') | |
304 | + | } | |
305 | + | ||
306 | + | ||
307 | + | func aK (aJ,aL) = [StringEntry(makeString([p, toString(aJ)], a), toString(aL))] | |
308 | + | ||
309 | + | ||
310 | + | func aM (an) = if ((an != this)) | |
269 | 311 | then throw("_onlyThisContract: revert") | |
270 | 312 | else true | |
271 | 313 | ||
272 | 314 | ||
273 | - | func | |
315 | + | func aN () = if ((af() == Address(base58''))) | |
274 | 316 | then throw("_whenMultisigSet: revert") | |
275 | 317 | else true | |
276 | 318 | ||
277 | 319 | ||
278 | - | func | |
320 | + | func aO () = if (W()) | |
279 | 321 | then throw("_whenNotInitialized: revert") | |
280 | 322 | else true | |
281 | 323 | ||
282 | 324 | ||
283 | - | func | |
325 | + | func aP () = if (!(W())) | |
284 | 326 | then throw("_whenInitialized: revert") | |
285 | 327 | else true | |
286 | 328 | ||
287 | 329 | ||
288 | - | func | |
330 | + | func aQ () = if (Z()) | |
289 | 331 | then throw("_whenNotPaused: revert") | |
290 | 332 | else true | |
291 | 333 | ||
292 | 334 | ||
293 | - | func | |
335 | + | func aR () = if (!(Z())) | |
294 | 336 | then throw("_whenPaused: revert") | |
295 | 337 | else true | |
296 | 338 | ||
297 | 339 | ||
298 | - | func | |
340 | + | func aS (an) = if ((an != ac())) | |
299 | 341 | then throw("_onlyPauser: revert") | |
300 | 342 | else true | |
301 | 343 | ||
302 | 344 | ||
303 | - | func | |
304 | - | let | |
305 | - | if ($isInstanceOf( | |
345 | + | func aT (J) = { | |
346 | + | let E = J | |
347 | + | if ($isInstanceOf(E, "Int")) | |
306 | 348 | then { | |
307 | - | let | |
308 | - | | |
349 | + | let F = E | |
350 | + | F | |
309 | 351 | } | |
310 | 352 | else throw("_asInt: revert") | |
311 | 353 | } | |
312 | 354 | ||
313 | 355 | ||
314 | - | func | |
315 | - | let | |
316 | - | if ($isInstanceOf( | |
356 | + | func aU (J) = { | |
357 | + | let E = J | |
358 | + | if ($isInstanceOf(E, "ByteVector")) | |
317 | 359 | then { | |
318 | - | let | |
319 | - | | |
360 | + | let F = E | |
361 | + | F | |
320 | 362 | } | |
321 | 363 | else throw("_asBytes: revert") | |
322 | 364 | } | |
323 | 365 | ||
324 | 366 | ||
325 | - | func | |
326 | - | then throw( | |
367 | + | func aV (J,D) = if ((J != ai())) | |
368 | + | then throw(D) | |
327 | 369 | else true | |
328 | 370 | ||
329 | 371 | ||
330 | - | func | |
331 | - | then throw( | |
372 | + | func aW (J,D) = if ((J != al())) | |
373 | + | then throw(D) | |
332 | 374 | else true | |
333 | 375 | ||
334 | 376 | ||
335 | - | func | |
336 | - | then throw( | |
377 | + | func aX (as,D) = if (!(ao(as))) | |
378 | + | then throw(D) | |
337 | 379 | else true | |
338 | 380 | ||
339 | 381 | ||
340 | - | @Callable( | |
341 | - | func init (ae, | |
342 | - | let | |
343 | - | then | |
382 | + | @Callable(aY) | |
383 | + | func init (ak,aA,ae,aZ) = { | |
384 | + | let ba = if (if (if (if (if (if (aM(aY.caller)) | |
385 | + | then aO() | |
344 | 386 | else false) | |
345 | - | then | |
387 | + | then aN() | |
346 | 388 | else false) | |
347 | - | then | |
389 | + | then B(ak, "init: invalid executor") | |
348 | 390 | else false) | |
349 | - | then | |
391 | + | then B(aA, "init: invalid adapter") | |
350 | 392 | else false) | |
351 | - | then | |
393 | + | then B(ae, "init: invalid pauser") | |
352 | 394 | else false) | |
353 | - | then | |
395 | + | then B(aZ, "init: invalid feeRecipient") | |
354 | 396 | else false | |
355 | - | if (( | |
356 | - | then $Tuple2((((( | |
397 | + | if ((ba == ba)) | |
398 | + | then $Tuple2(((((X(true) ++ aj(addressFromStringValue(ak))) ++ az(addressFromStringValue(aA))) ++ ad(addressFromStringValue(ae))) ++ aC(addressFromStringValue(aZ))), unit) | |
357 | 399 | else throw("Strict value is not equal to itself.") | |
358 | 400 | } | |
359 | 401 | ||
360 | 402 | ||
361 | 403 | ||
362 | - | @Callable( | |
363 | - | func mintTokens ( | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | then | |
404 | + | @Callable(aY) | |
405 | + | func mintTokens (bb,bc,T,bd,be,R,bf) = { | |
406 | + | let bg = valueOrErrorMessage(parseInt(T), "mint: amount is not Int") | |
407 | + | let bh = valueOrErrorMessage(parseInt(be), "mint: gaslessReward is not Int") | |
408 | + | let bi = valueOrErrorMessage(parseInt(bf), "mint: referrerFee is not Int") | |
409 | + | let ba = if (if (if (if (if (if (if (if (aP()) | |
410 | + | then aQ() | |
369 | 411 | else false) | |
370 | - | then | |
412 | + | then B(bc, "mint: invalid asset contract") | |
371 | 413 | else false) | |
372 | - | then | |
414 | + | then aV(aY.caller, "mint: invalid executor") | |
373 | 415 | else false) | |
374 | - | then | |
416 | + | then aW(bb, "mint: invalid caller") | |
375 | 417 | else false) | |
376 | - | then | |
418 | + | then B(bd, "mint: invalid recipient address") | |
377 | 419 | else false) | |
378 | - | then | |
420 | + | then I(bg, 0, A, "mint: invalid amount") | |
379 | 421 | else false) | |
380 | - | then | |
422 | + | then I(bh, 0, A, "mint: invalid gaslessReward") | |
381 | 423 | else false) | |
382 | - | then | |
424 | + | then I(bi, 0, A, "mint: invalid referrer fee") | |
383 | 425 | else false | |
384 | - | if (( | |
426 | + | if ((ba == ba)) | |
385 | 427 | then { | |
386 | - | let aW = aH(invoke(addressFromStringValue(aP), "getAssetId", nil, nil)) | |
387 | - | if ((aW == aW)) | |
428 | + | let bj = if (containsElement(aF(), bc)) | |
429 | + | then $Tuple2(true, aI(addressFromStringValue(bc))) | |
430 | + | else $Tuple2(false, addressFromStringValue(bc)) | |
431 | + | let bk = bj._1 | |
432 | + | let bl = bj._2 | |
433 | + | let bm = aU(invoke(bl, t, nil, nil)) | |
434 | + | if ((bm == bm)) | |
388 | 435 | then { | |
389 | - | let | |
390 | - | if (( | |
436 | + | let bn = aT(invoke(bl, u, nil, nil)) | |
437 | + | if ((bn == bn)) | |
391 | 438 | then { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | if ($isInstanceOf( | |
439 | + | let bo = S(bg, x, bn) | |
440 | + | let bp = S(bh, x, bn) | |
441 | + | let bq = { | |
442 | + | let E = addressFromString(R) | |
443 | + | if ($isInstanceOf(E, "Address")) | |
397 | 444 | then { | |
398 | - | let | |
399 | - | let | |
400 | - | $Tuple2( | |
445 | + | let br = E | |
446 | + | let bs = S(bi, x, bn) | |
447 | + | $Tuple2(bs, [ScriptTransfer(br, bs, bm)]) | |
401 | 448 | } | |
402 | 449 | else $Tuple2(0, nil) | |
403 | 450 | } | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | if (( | |
451 | + | let bs = bq._1 | |
452 | + | let bt = bq._2 | |
453 | + | let bu = invoke(bl, q, [(bo + bs), toString(this)], nil) | |
454 | + | if ((bu == bu)) | |
408 | 455 | then { | |
409 | - | let | |
410 | - | then (addressFromStringValue( | |
456 | + | let bv = if (if ((bp > 0)) | |
457 | + | then (addressFromStringValue(bd) != aY.originCaller) | |
411 | 458 | else false) | |
412 | - | then [ScriptTransfer(addressFromStringValue(aQ), (aY - aZ), aW), ScriptTransfer(aL.originCaller, aZ, aW)] | |
413 | - | else [ScriptTransfer(addressFromStringValue(aQ), aY, aW)] | |
414 | - | $Tuple2((bf ++ bd), unit) | |
459 | + | then $Tuple2([ScriptTransfer(aY.originCaller, bp, bm)], bp) | |
460 | + | else $Tuple2(nil, 0) | |
461 | + | let bw = bv._1 | |
462 | + | let bx = bv._2 | |
463 | + | let by = if (bk) | |
464 | + | then { | |
465 | + | let bz = aU(invoke(addressFromStringValue(bc), t, nil, nil)) | |
466 | + | if ((bz == bz)) | |
467 | + | then { | |
468 | + | let bA = assetBalance(this, bz) | |
469 | + | if ((bA == bA)) | |
470 | + | then { | |
471 | + | let bB = invoke(addressFromStringValue(bc), r, [0], [AttachedPayment(bm, (bo - bx))]) | |
472 | + | if ((bB == bB)) | |
473 | + | then { | |
474 | + | let bC = assetBalance(this, bz) | |
475 | + | if ((bC == bC)) | |
476 | + | then [ScriptTransfer(addressFromStringValue(bd), (bC - bA), bz)] | |
477 | + | else throw("Strict value is not equal to itself.") | |
478 | + | } | |
479 | + | else throw("Strict value is not equal to itself.") | |
480 | + | } | |
481 | + | else throw("Strict value is not equal to itself.") | |
482 | + | } | |
483 | + | else throw("Strict value is not equal to itself.") | |
484 | + | } | |
485 | + | else [ScriptTransfer(addressFromStringValue(bd), (bo - bx), bm)] | |
486 | + | $Tuple2(((by ++ bw) ++ bt), unit) | |
415 | 487 | } | |
416 | 488 | else throw("Strict value is not equal to itself.") | |
417 | 489 | } | |
418 | 490 | else throw("Strict value is not equal to itself.") | |
419 | 491 | } | |
420 | 492 | else throw("Strict value is not equal to itself.") | |
421 | 493 | } | |
422 | 494 | else throw("Strict value is not equal to itself.") | |
423 | 495 | } | |
424 | 496 | ||
425 | 497 | ||
426 | 498 | ||
427 | - | @Callable( | |
428 | - | func burnTokens ( | |
429 | - | let | |
430 | - | then | |
499 | + | @Callable(aY) | |
500 | + | func burnTokens (as,bd,be) = { | |
501 | + | let ba = if (if (if (if (if (aP()) | |
502 | + | then aQ() | |
431 | 503 | else false) | |
432 | - | then | |
504 | + | then aX(as, "burnTokens: invalid execution chain") | |
433 | 505 | else false) | |
434 | - | then | |
506 | + | then O(aY.payments, 1, "burnTokens: no payment") | |
435 | 507 | else false) | |
436 | - | then | |
508 | + | then I(be, 0, A, "burnTokens: invalid gaslessReward") | |
437 | 509 | else false) | |
438 | - | then | |
510 | + | then I(aY.payments[0].amount, 0, A, "burnTokens: invalid payment amount") | |
439 | 511 | else false | |
440 | - | if (( | |
512 | + | if ((ba == ba)) | |
441 | 513 | then { | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | if ($isInstanceOf( | |
514 | + | let bg = aY.payments[0].amount | |
515 | + | let bm = { | |
516 | + | let E = aY.payments[0].assetId | |
517 | + | if ($isInstanceOf(E, "ByteVector")) | |
446 | 518 | then { | |
447 | - | let | |
448 | - | | |
519 | + | let F = E | |
520 | + | F | |
449 | 521 | } | |
450 | 522 | else throw("burnTokens: invalid asset") | |
451 | 523 | } | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | then | |
524 | + | let bD = ar(as, bm) | |
525 | + | let bE = bD._1 | |
526 | + | let bF = bD._2 | |
527 | + | let bG = bD._3 | |
528 | + | let bH = bD._4 | |
529 | + | let bI = bD._5 | |
530 | + | let bJ = bD._6 | |
531 | + | let bK = bD._7 | |
532 | + | let bL = bD._8 | |
533 | + | let bM = if (if (B(toString(bE), "burnTokens: no such binding")) | |
534 | + | then I(bg, bG, A, "burnTokens: less than min") | |
463 | 535 | else false) | |
464 | - | then | |
536 | + | then M(bL, true, "burnTokens: token is disabled") | |
465 | 537 | else false | |
466 | - | if (( | |
538 | + | if ((bM == bM)) | |
467 | 539 | then { | |
468 | - | let | |
469 | - | if (( | |
540 | + | let bN = aT(invoke(bE, u, nil, nil)) | |
541 | + | if ((bN == bN)) | |
470 | 542 | then { | |
471 | - | let | |
472 | - | then | |
473 | - | else | |
474 | - | let | |
475 | - | let | |
476 | - | if (( | |
543 | + | let bO = if ((bg > bI)) | |
544 | + | then bK | |
545 | + | else bJ | |
546 | + | let bP = (bH + fraction(bg, bO, y)) | |
547 | + | let bQ = I(bg, (bP + 1), A, "burnTokens: fee more than amount") | |
548 | + | if ((bQ == bQ)) | |
477 | 549 | then { | |
478 | - | let | |
479 | - | let | |
480 | - | if (( | |
550 | + | let bR = (bg - bP) | |
551 | + | let bS = I(bR, (be + 1), A, "burnTokens: reward more than amount") | |
552 | + | if ((bS == bS)) | |
481 | 553 | then { | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | if (( | |
487 | - | then $Tuple2(( | |
554 | + | let bT = (aw(bm) + bP) | |
555 | + | let bo = S(bR, bN, x) | |
556 | + | let bp = S(be, bN, x) | |
557 | + | let bU = invoke(ay(), s, [as, bF, bo, bd, bp], nil) | |
558 | + | if ((bU == bU)) | |
559 | + | then $Tuple2((ax(bm, bT) ++ [Burn(bm, bR)]), unit) | |
488 | 560 | else throw("Strict value is not equal to itself.") | |
489 | 561 | } | |
490 | 562 | else throw("Strict value is not equal to itself.") | |
491 | 563 | } | |
492 | 564 | else throw("Strict value is not equal to itself.") | |
493 | 565 | } | |
494 | 566 | else throw("Strict value is not equal to itself.") | |
495 | 567 | } | |
496 | 568 | else throw("Strict value is not equal to itself.") | |
497 | 569 | } | |
498 | 570 | else throw("Strict value is not equal to itself.") | |
499 | 571 | } | |
500 | 572 | ||
501 | 573 | ||
502 | 574 | ||
503 | - | @Callable( | |
504 | - | func burnTokensV2 ( | |
505 | - | let | |
506 | - | then | |
575 | + | @Callable(aY) | |
576 | + | func burnTokensV2 (as,bd,R,be) = { | |
577 | + | let ba = if (if (if (if (if (if (aP()) | |
578 | + | then aQ() | |
507 | 579 | else false) | |
508 | - | then | |
580 | + | then aX(as, "burnTokensV2: invalid execution chain") | |
509 | 581 | else false) | |
510 | - | then | |
582 | + | then O(aY.payments, 1, "burnTokensV2: no payment") | |
511 | 583 | else false) | |
512 | - | then | |
584 | + | then I(be, 0, A, "burnTokensV2: invalid gaslessReward") | |
513 | 585 | else false) | |
514 | - | then | |
586 | + | then I(aY.payments[0].amount, 0, A, "burnTokensV2: invalid payment amount") | |
515 | 587 | else false) | |
516 | - | then | |
588 | + | then Q(R, "burnTokensV2: invalid referrer") | |
517 | 589 | else false | |
518 | - | if (( | |
590 | + | if ((ba == ba)) | |
519 | 591 | then { | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | if ($isInstanceOf( | |
592 | + | let bg = aY.payments[0].amount | |
593 | + | let bm = { | |
594 | + | let E = aY.payments[0].assetId | |
595 | + | if ($isInstanceOf(E, "ByteVector")) | |
524 | 596 | then { | |
525 | - | let | |
526 | - | | |
597 | + | let F = E | |
598 | + | F | |
527 | 599 | } | |
528 | 600 | else throw("burnTokensV2: invalid asset") | |
529 | 601 | } | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | then | |
602 | + | let bD = ar(as, bm) | |
603 | + | let bE = bD._1 | |
604 | + | let bF = bD._2 | |
605 | + | let bG = bD._3 | |
606 | + | let bH = bD._4 | |
607 | + | let bI = bD._5 | |
608 | + | let bJ = bD._6 | |
609 | + | let bK = bD._7 | |
610 | + | let bL = bD._8 | |
611 | + | let bM = if (if (B(toString(bE), "burnTokensV2: no such binding")) | |
612 | + | then I(bg, bG, A, "burnTokensV2: less than min") | |
541 | 613 | else false) | |
542 | - | then | |
614 | + | then M(bL, true, "burnTokensV2: token is disabled") | |
543 | 615 | else false | |
544 | - | if (( | |
616 | + | if ((bM == bM)) | |
545 | 617 | then { | |
546 | - | let | |
547 | - | if (( | |
618 | + | let bN = aT(invoke(bE, u, nil, nil)) | |
619 | + | if ((bN == bN)) | |
548 | 620 | then { | |
549 | - | let | |
550 | - | then | |
551 | - | else | |
552 | - | let | |
553 | - | let | |
554 | - | if (( | |
621 | + | let bO = if ((bg > bI)) | |
622 | + | then bK | |
623 | + | else bJ | |
624 | + | let bP = (bH + fraction(bg, bO, y)) | |
625 | + | let bQ = I(bg, (bP + 1), A, "burnTokensV2: fee more than amount") | |
626 | + | if ((bQ == bQ)) | |
555 | 627 | then { | |
556 | - | let | |
628 | + | let bV = if ((R != "")) | |
557 | 629 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | $Tuple2( | |
630 | + | let bW = addressFromStringValue(R) | |
631 | + | let bX = fraction(aD(as, bW), bP, y) | |
632 | + | $Tuple2(bX, [ScriptTransfer(bW, bX, bm)]) | |
561 | 633 | } | |
562 | 634 | else $Tuple2(0, nil) | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | if (( | |
635 | + | let bi = bV._1 | |
636 | + | let bt = bV._2 | |
637 | + | let bR = (bg - bP) | |
638 | + | let bS = I(bR, (be + 1), A, "burnTokensV2: reward more than amount") | |
639 | + | if ((bS == bS)) | |
568 | 640 | then { | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | if (( | |
574 | - | then $Tuple2((( | |
641 | + | let bT = ((aw(bm) + bP) - bi) | |
642 | + | let bo = S(bR, bN, x) | |
643 | + | let bp = S(be, bN, x) | |
644 | + | let bU = invoke(ay(), s, [as, bF, bo, bd, bp], nil) | |
645 | + | if ((bU == bU)) | |
646 | + | then $Tuple2(((ax(bm, bT) ++ bt) ++ [Burn(bm, bR)]), unit) | |
575 | 647 | else throw("Strict value is not equal to itself.") | |
576 | 648 | } | |
577 | 649 | else throw("Strict value is not equal to itself.") | |
578 | 650 | } | |
579 | 651 | else throw("Strict value is not equal to itself.") | |
580 | 652 | } | |
581 | 653 | else throw("Strict value is not equal to itself.") | |
582 | 654 | } | |
583 | 655 | else throw("Strict value is not equal to itself.") | |
584 | 656 | } | |
585 | 657 | else throw("Strict value is not equal to itself.") | |
586 | 658 | } | |
587 | 659 | ||
588 | 660 | ||
589 | 661 | ||
590 | - | @Callable( | |
591 | - | func transferFee ( | |
592 | - | let | |
593 | - | then | |
662 | + | @Callable(aY) | |
663 | + | func transferFee (as,H) = { | |
664 | + | let ba = if (if (aP()) | |
665 | + | then aQ() | |
594 | 666 | else false) | |
595 | - | then | |
667 | + | then G(H, "transferFee: invalid asset") | |
596 | 668 | else false | |
597 | - | if (( | |
669 | + | if ((ba == ba)) | |
598 | 670 | then { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | then | |
671 | + | let bm = fromBase58String(H) | |
672 | + | let bD = ar(as, bm) | |
673 | + | let bE = bD._1 | |
674 | + | let bL = bD._8 | |
675 | + | let bM = if (B(toString(bE), "transferFee: no such binding")) | |
676 | + | then M(bL, true, "transferFee: token is disabled") | |
605 | 677 | else false | |
606 | - | if (( | |
607 | - | then $Tuple2(( | |
678 | + | if ((bM == bM)) | |
679 | + | then $Tuple2((ax(bm, 0) ++ [ScriptTransfer(aB(), aw(bm), bm)]), unit) | |
608 | 680 | else throw("Strict value is not equal to itself.") | |
609 | 681 | } | |
610 | 682 | else throw("Strict value is not equal to itself.") | |
611 | 683 | } | |
612 | 684 | ||
613 | 685 | ||
614 | 686 | ||
615 | - | @Callable( | |
616 | - | func updateCallerContract ( | |
617 | - | let | |
618 | - | then | |
687 | + | @Callable(aY) | |
688 | + | func updateCallerContract (bb) = { | |
689 | + | let ba = if (aM(aY.caller)) | |
690 | + | then aP() | |
619 | 691 | else false | |
620 | - | if (( | |
621 | - | then $Tuple2( | |
692 | + | if ((ba == ba)) | |
693 | + | then $Tuple2(am(bb), unit) | |
622 | 694 | else throw("Strict value is not equal to itself.") | |
623 | 695 | } | |
624 | 696 | ||
625 | 697 | ||
626 | 698 | ||
627 | - | @Callable( | |
628 | - | func updateExecutionChain ( | |
629 | - | let | |
630 | - | then | |
699 | + | @Callable(aY) | |
700 | + | func updateExecutionChain (as,bY) = { | |
701 | + | let ba = if (if (aM(aY.caller)) | |
702 | + | then aP() | |
631 | 703 | else false) | |
632 | - | then | |
704 | + | then I(as, 0, A, "updateExecutionChain: invalid executionChainId") | |
633 | 705 | else false | |
634 | - | if (( | |
635 | - | then $Tuple2( | |
706 | + | if ((ba == ba)) | |
707 | + | then $Tuple2(aq(as, bY), unit) | |
636 | 708 | else throw("Strict value is not equal to itself.") | |
637 | 709 | } | |
638 | 710 | ||
639 | 711 | ||
640 | 712 | ||
641 | - | @Callable( | |
642 | - | func updateFeeRecipient ( | |
643 | - | let | |
644 | - | then | |
713 | + | @Callable(aY) | |
714 | + | func updateFeeRecipient (aZ) = { | |
715 | + | let ba = if (if (aM(aY.caller)) | |
716 | + | then aP() | |
645 | 717 | else false) | |
646 | - | then | |
718 | + | then B(aZ, "updateFeeRecipient: invalid feeRecipient") | |
647 | 719 | else false | |
648 | - | if (( | |
649 | - | then $Tuple2( | |
720 | + | if ((ba == ba)) | |
721 | + | then $Tuple2(aC(addressFromStringValue(aZ)), unit) | |
650 | 722 | else throw("Strict value is not equal to itself.") | |
651 | 723 | } | |
652 | 724 | ||
653 | 725 | ||
654 | 726 | ||
655 | - | @Callable( | |
656 | - | func updateReferrer ( | |
657 | - | let | |
658 | - | then | |
727 | + | @Callable(aY) | |
728 | + | func updateReferrer (as,R,bZ) = { | |
729 | + | let ba = if (if (if (if (aM(aY.caller)) | |
730 | + | then aP() | |
659 | 731 | else false) | |
660 | - | then | |
732 | + | then aX(as, "updateReferrer: invalid execution chain") | |
661 | 733 | else false) | |
662 | - | then | |
734 | + | then B(R, "updateReferrer: invalid referrer") | |
663 | 735 | else false) | |
664 | - | then | |
736 | + | then I(bZ, 0, z, "updateReferrer: invalid fee") | |
665 | 737 | else false | |
666 | - | if (( | |
667 | - | then $Tuple2( | |
738 | + | if ((ba == ba)) | |
739 | + | then $Tuple2(aE(as, addressFromStringValue(R), bZ), unit) | |
668 | 740 | else throw("Strict value is not equal to itself.") | |
669 | 741 | } | |
670 | 742 | ||
671 | 743 | ||
672 | 744 | ||
673 | - | @Callable( | |
674 | - | func updateBindingInfo ( | |
675 | - | let | |
676 | - | then | |
745 | + | @Callable(aY) | |
746 | + | func updateBindingInfo (as,bc,ca,cb,cc,cd,ce,cf,bY) = { | |
747 | + | let ba = if (if (if (if (if (if (if (if (aM(aY.caller)) | |
748 | + | then aP() | |
677 | 749 | else false) | |
678 | - | then | |
750 | + | then B(bc, "updateBindingInfo: invalid asset contract") | |
679 | 751 | else false) | |
680 | - | then | |
752 | + | then I(as, 0, A, "updateBindingInfo: invalid executionChainId") | |
681 | 753 | else false) | |
682 | - | then | |
754 | + | then I(cb, 0, A, "updateBindingInfo: invalid minAmount") | |
683 | 755 | else false) | |
684 | - | then | |
756 | + | then I(cc, 0, A, "updateBindingInfo: invalid minFee") | |
685 | 757 | else false) | |
686 | - | then | |
758 | + | then I(cd, 0, A, "updateBindingInfo: invalid thresholdFee") | |
687 | 759 | else false) | |
688 | - | then | |
760 | + | then I(ce, 0, A, "updateBindingInfo: invalid beforePercentFee") | |
689 | 761 | else false) | |
690 | - | then | |
762 | + | then I(cf, 0, A, "updateBindingInfo: invalid afterPercentFee") | |
691 | 763 | else false | |
692 | - | if (( | |
764 | + | if ((ba == ba)) | |
693 | 765 | then { | |
694 | - | let | |
695 | - | if (( | |
766 | + | let bm = aU(invoke(addressFromStringValue(bc), t, nil, nil)) | |
767 | + | if ((bm == bm)) | |
696 | 768 | then { | |
697 | - | let | |
698 | - | $Tuple2( | |
769 | + | let bD = $Tuple8(addressFromStringValue(bc), ca, cb, cc, cd, ce, cf, bY) | |
770 | + | $Tuple2(au(as, bm, bD), unit) | |
699 | 771 | } | |
700 | 772 | else throw("Strict value is not equal to itself.") | |
701 | 773 | } | |
702 | 774 | else throw("Strict value is not equal to itself.") | |
703 | 775 | } | |
704 | 776 | ||
705 | 777 | ||
706 | 778 | ||
707 | - | @Callable( | |
708 | - | func | |
709 | - | let | |
710 | - | then | |
779 | + | @Callable(aY) | |
780 | + | func addCrosschainPoolContract (aJ,aL) = { | |
781 | + | let ba = if (if (if (aM(aY.caller)) | |
782 | + | then aP() | |
711 | 783 | else false) | |
712 | - | then aD() | |
784 | + | then B(aJ, "addCrosschainPoolContract: invalid crosschainPoolContract") | |
785 | + | else false) | |
786 | + | then B(aL, "addCrosschainPoolContract: invalid bridgeAssetContract") | |
713 | 787 | else false | |
714 | - | if (( | |
715 | - | then $Tuple2( | |
788 | + | if ((ba == ba)) | |
789 | + | then $Tuple2((aG((aF() :+ aJ)) ++ aK(addressFromStringValue(aJ), addressFromStringValue(aL))), unit) | |
716 | 790 | else throw("Strict value is not equal to itself.") | |
717 | 791 | } | |
718 | 792 | ||
719 | 793 | ||
720 | 794 | ||
721 | - | @Callable( | |
722 | - | func | |
723 | - | let | |
724 | - | then | |
795 | + | @Callable(aY) | |
796 | + | func pause () = { | |
797 | + | let ba = if (if (aS(aY.caller)) | |
798 | + | then aP() | |
725 | 799 | else false) | |
726 | - | then | |
800 | + | then aQ() | |
727 | 801 | else false | |
728 | - | if (( | |
729 | - | then $Tuple2( | |
802 | + | if ((ba == ba)) | |
803 | + | then $Tuple2(aa(true), unit) | |
730 | 804 | else throw("Strict value is not equal to itself.") | |
731 | 805 | } | |
732 | 806 | ||
733 | 807 | ||
734 | 808 | ||
735 | - | @Callable( | |
736 | - | func | |
737 | - | let | |
738 | - | then | |
809 | + | @Callable(aY) | |
810 | + | func unpause () = { | |
811 | + | let ba = if (if (aS(aY.caller)) | |
812 | + | then aP() | |
739 | 813 | else false) | |
740 | - | then | |
814 | + | then aR() | |
741 | 815 | else false | |
742 | - | if (( | |
743 | - | then $Tuple2( | |
816 | + | if ((ba == ba)) | |
817 | + | then $Tuple2(aa(false), unit) | |
744 | 818 | else throw("Strict value is not equal to itself.") | |
745 | 819 | } | |
746 | 820 | ||
747 | 821 | ||
748 | 822 | ||
749 | - | @Callable(aL) | |
750 | - | func setMultisig (ab) = { | |
751 | - | let aN = if (az(aL.caller)) | |
752 | - | then v(ab, "setMultisig: invalid multisig") | |
823 | + | @Callable(aY) | |
824 | + | func updatePauser (ae) = { | |
825 | + | let ba = if (if (aM(aY.caller)) | |
826 | + | then aP() | |
827 | + | else false) | |
828 | + | then B(ae, "updatePauser: invalid pauser") | |
753 | 829 | else false | |
754 | - | if (( | |
755 | - | then $Tuple2( | |
830 | + | if ((ba == ba)) | |
831 | + | then $Tuple2(ad(addressFromStringValue(ae)), unit) | |
756 | 832 | else throw("Strict value is not equal to itself.") | |
757 | 833 | } | |
758 | 834 | ||
759 | 835 | ||
760 | - | @Verifier(bG) | |
761 | - | func bH () = { | |
762 | - | let y = getString(c) | |
763 | - | if ($isInstanceOf(y, "String")) | |
836 | + | ||
837 | + | @Callable(aY) | |
838 | + | func setMultisig (ah) = { | |
839 | + | let ba = if (aM(aY.caller)) | |
840 | + | then B(ah, "setMultisig: invalid multisig") | |
841 | + | else false | |
842 | + | if ((ba == ba)) | |
843 | + | then $Tuple2(ag(addressFromStringValue(ah)), unit) | |
844 | + | else throw("Strict value is not equal to itself.") | |
845 | + | } | |
846 | + | ||
847 | + | ||
848 | + | @Verifier(cg) | |
849 | + | func ch () = { | |
850 | + | let E = getString(c) | |
851 | + | if ($isInstanceOf(E, "String")) | |
764 | 852 | then { | |
765 | - | let | |
766 | - | valueOrElse(getBoolean(addressFromStringValue( | |
853 | + | let ci = E | |
854 | + | valueOrElse(getBoolean(addressFromStringValue(ci), makeString([d, toString(this), toBase58String(cg.id)], a)), false) | |
767 | 855 | } | |
768 | - | else sigVerify( | |
856 | + | else sigVerify(cg.bodyBytes, cg.proofs[0], cg.senderPublicKey) | |
769 | 857 | } | |
770 | 858 |
github/deemru/w8io/169f3d6 245.99 ms ◑