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