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