tx · 7yPFiZudnRcoUjkKB91zXQ2YXtNoiw3gbDfPNdSsQisT 3MpiUwTkYopBwQEjyTf8sqy7iWLNwyq9Md4: -0.01800000 Waves 2024.12.17 13:18 [3418433] smart account 3MpiUwTkYopBwQEjyTf8sqy7iWLNwyq9Md4 > SELF 0.00000000 Waves
{ "type": 13, "id": "7yPFiZudnRcoUjkKB91zXQ2YXtNoiw3gbDfPNdSsQisT", "fee": 1800000, "feeAssetId": null, "timestamp": 1734430622827, "version": 2, "chainId": 84, "sender": "3MpiUwTkYopBwQEjyTf8sqy7iWLNwyq9Md4", "senderPublicKey": "9eCupW2UoCBhmiF1N9qWACCzkWT885DVzb65b8zxcSii", "proofs": [ "3wDj6Mvy5hFuAZCEAGXfN4gxcTeVMjT7bTVrEF6AhBmfyMVdHZW3Cm676sPwY8q1S75jSCaxfnnnG2erT8foiNrr" ], "script": "base64:BwItCAISBQoDCAgIEgYKBAgICAgSBQoDCAgIEgQKAggEEgMKAQgSAwoBCBIDCgEIPwAJU0VQQVJBVE9SAgJfXwAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAANS0VZX1NFUVVFTkNFUgIJU0VRVUVOQ0VSABNLRVlfQUNDT1VOVF9TVE9SQUdFAg9BQ0NPVU5UX1NUT1JBR0UAEUtFWV9GRUVfUkVDSVBJRU5UAg1GRUVfUkVDSVBJRU5UAApLRVlfU1lNQk9MAgZTWU1CT0wAF0tFWV9PUkRFUl9GSUxMRURfQU1PVU5UAhNPUkRFUl9GSUxMRURfQU1PVU5UABZLRVlfUkVXQVJEX0RJU1RSSUJVVE9SAhJSRVdBUkRfRElTVFJJQlVUT1IAFkZVTkNfRVhURVJOQUxfVFJBTlNGRVICEGV4dGVybmFsVHJhbnNmZXIAEUZVTkNfQ0xBSU1fUkVXQVJEAgtjbGFpbVJld2FyZAALU1BPVF9XQUxMRVQCBFNQT1QAEE9SREVSX1RZUEVfT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wVbFaNh4BJLywXMi3vfWU4DmTqXD2xJPkvD Next: none Diff:
Old | New | Differences | |
---|---|---|---|
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | - | func aP (am,aQ,C) = if ((aQ > fraction(am, x, w, | |
313 | + | func aP (am,aQ,C) = if ((aQ > fraction(am, x, w, CEILING))) | |
314 | 314 | then throw(C) | |
315 | 315 | else true | |
316 | 316 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "MULTISIG" | |
7 | 7 | ||
8 | 8 | let c = "STATUS" | |
9 | 9 | ||
10 | 10 | let d = "INIT" | |
11 | 11 | ||
12 | 12 | let e = "SEQUENCER" | |
13 | 13 | ||
14 | 14 | let f = "ACCOUNT_STORAGE" | |
15 | 15 | ||
16 | 16 | let g = "FEE_RECIPIENT" | |
17 | 17 | ||
18 | 18 | let h = "SYMBOL" | |
19 | 19 | ||
20 | 20 | let i = "ORDER_FILLED_AMOUNT" | |
21 | 21 | ||
22 | 22 | let j = "REWARD_DISTRIBUTOR" | |
23 | 23 | ||
24 | 24 | let k = "externalTransfer" | |
25 | 25 | ||
26 | 26 | let l = "claimReward" | |
27 | 27 | ||
28 | 28 | let m = "SPOT" | |
29 | 29 | ||
30 | 30 | let n = 1 | |
31 | 31 | ||
32 | 32 | let o = 2 | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 1 | |
37 | 37 | ||
38 | 38 | let r = 2 | |
39 | 39 | ||
40 | 40 | let s = 1 | |
41 | 41 | ||
42 | 42 | let t = 2 | |
43 | 43 | ||
44 | 44 | let u = toBigInt(0) | |
45 | 45 | ||
46 | 46 | let v = toBigInt(1) | |
47 | 47 | ||
48 | 48 | let w = toBigInt(100000000) | |
49 | 49 | ||
50 | 50 | let x = toBigInt(100000) | |
51 | 51 | ||
52 | 52 | let y = base58'7YXq4t' | |
53 | 53 | ||
54 | 54 | let z = base58'G5Nu92G2p7moXW9qjjN3na7gtq4dWCeVdaSjry' | |
55 | 55 | ||
56 | 56 | func A (B,C) = { | |
57 | 57 | let D = addressFromString(B) | |
58 | 58 | if ($isInstanceOf(D, "Address")) | |
59 | 59 | then { | |
60 | 60 | let E = D | |
61 | 61 | true | |
62 | 62 | } | |
63 | 63 | else throw(C) | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func F (G,H,C) = if ((H > G)) | |
68 | 68 | then throw(C) | |
69 | 69 | else true | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func I (J,K,C) = if ((J != K)) | |
73 | 73 | then throw(C) | |
74 | 74 | else true | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func L (J,K,C) = if ((J == K)) | |
78 | 78 | then throw(C) | |
79 | 79 | else true | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func M (G,C) = if (if ((0 >= size(G))) | |
83 | 83 | then true | |
84 | 84 | else contains(G, a)) | |
85 | 85 | then throw(C) | |
86 | 86 | else true | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func N (J,K,C) = if ((J != K)) | |
90 | 90 | then throw(C) | |
91 | 91 | else true | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func O () = { | |
95 | 95 | let D = getBoolean(d) | |
96 | 96 | if ($isInstanceOf(D, "Boolean")) | |
97 | 97 | then { | |
98 | 98 | let E = D | |
99 | 99 | E | |
100 | 100 | } | |
101 | 101 | else false | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func P (Q) = [BooleanEntry(d, Q)] | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func R () = { | |
109 | 109 | let D = getString(b) | |
110 | 110 | if ($isInstanceOf(D, "String")) | |
111 | 111 | then { | |
112 | 112 | let E = D | |
113 | 113 | addressFromStringValue(E) | |
114 | 114 | } | |
115 | 115 | else Address(base58'') | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func S (T) = [StringEntry(b, toString(T))] | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func U () = { | |
123 | 123 | let D = getString(e) | |
124 | 124 | if ($isInstanceOf(D, "String")) | |
125 | 125 | then { | |
126 | 126 | let E = D | |
127 | 127 | addressFromStringValue(E) | |
128 | 128 | } | |
129 | 129 | else Address(base58'') | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func V (W) = [StringEntry(e, toString(W))] | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func X () = { | |
137 | 137 | let D = getString(f) | |
138 | 138 | if ($isInstanceOf(D, "String")) | |
139 | 139 | then { | |
140 | 140 | let E = D | |
141 | 141 | addressFromStringValue(E) | |
142 | 142 | } | |
143 | 143 | else Address(base58'') | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func Y (Z) = [StringEntry(f, toString(Z))] | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func aa () = { | |
151 | 151 | let D = getString(g) | |
152 | 152 | if ($isInstanceOf(D, "String")) | |
153 | 153 | then { | |
154 | 154 | let E = D | |
155 | 155 | E | |
156 | 156 | } | |
157 | 157 | else "" | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func ab (ac) = [StringEntry(g, ac)] | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ad () = { | |
165 | 165 | let D = getString(j) | |
166 | 166 | if ($isInstanceOf(D, "String")) | |
167 | 167 | then { | |
168 | 168 | let E = D | |
169 | 169 | E | |
170 | 170 | } | |
171 | 171 | else "" | |
172 | 172 | } | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func ae (af) = [StringEntry(j, af)] | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func ag (ah) = { | |
179 | 179 | let D = getBoolean(makeString([h, ah], a)) | |
180 | 180 | if ($isInstanceOf(D, "Boolean")) | |
181 | 181 | then { | |
182 | 182 | let E = D | |
183 | 183 | E | |
184 | 184 | } | |
185 | 185 | else false | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func ai (ah,G) = [BooleanEntry(makeString([h, ah], a), G)] | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aj (ak) = { | |
193 | 193 | let D = getString(makeString([i, toBase58String(ak)], a)) | |
194 | 194 | if ($isInstanceOf(D, "String")) | |
195 | 195 | then { | |
196 | 196 | let E = D | |
197 | 197 | parseBigIntValue(E) | |
198 | 198 | } | |
199 | 199 | else u | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func al (ak,am) = [StringEntry(makeString([i, toBase58String(ak)], a), toString(am))] | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func an (ao) = if ((ao != this)) | |
207 | 207 | then throw("_onlyThisContract: revert") | |
208 | 208 | else true | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func ap () = if ((R() == Address(base58''))) | |
212 | 212 | then throw("_whenMultisigSet: revert") | |
213 | 213 | else true | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aq () = if (O()) | |
217 | 217 | then throw("_whenNotInitialized: revert") | |
218 | 218 | else true | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func ar () = if (!(O())) | |
222 | 222 | then throw("_whenInitialized: revert") | |
223 | 223 | else true | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func as (at,C) = if ((U() != at)) | |
227 | 227 | then throw(C) | |
228 | 228 | else true | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func au (av,aw,C) = if (if ((av != n)) | |
232 | 232 | then (av != o) | |
233 | 233 | else false) | |
234 | 234 | then throw(C) | |
235 | 235 | else if ((aw != p)) | |
236 | 236 | then throw(C) | |
237 | 237 | else true | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func ax (ah,C) = if (!(ag(ah))) | |
241 | 241 | then throw(C) | |
242 | 242 | else true | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func ay (az,C) = if (if ((az != q)) | |
246 | 246 | then (az != r) | |
247 | 247 | else false) | |
248 | 248 | then throw(C) | |
249 | 249 | else true | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func aA (aB,aC,aD,aE,C) = { | |
253 | 253 | let aF = if ((aE == o)) | |
254 | 254 | then true | |
255 | 255 | else if ((aD == q)) | |
256 | 256 | then (aC >= aB) | |
257 | 257 | else if ((aD == r)) | |
258 | 258 | then (aB >= aC) | |
259 | 259 | else false | |
260 | 260 | if (!(aF)) | |
261 | 261 | then throw(C) | |
262 | 262 | else true | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func aG (aH,aI,C) = if ((aI == s)) | |
267 | 267 | then if ((size(aH) != 64)) | |
268 | 268 | then throw(C) | |
269 | 269 | else true | |
270 | 270 | else if ((aI == t)) | |
271 | 271 | then if ((size(aH) != 65)) | |
272 | 272 | then throw(C) | |
273 | 273 | else true | |
274 | 274 | else throw((C + ": inv alg")) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func aJ (aK,aI,C) = if ((aI == s)) | |
278 | 278 | then if ((size(aK) != 32)) | |
279 | 279 | then throw(C) | |
280 | 280 | else true | |
281 | 281 | else if ((aI == t)) | |
282 | 282 | then if ((size(aK) != 20)) | |
283 | 283 | then throw(C) | |
284 | 284 | else true | |
285 | 285 | else throw((C + ": inv alg")) | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | func aL (aK,aI) = if ((aI == s)) | |
289 | 289 | then toString(addressFromPublicKey(aK)) | |
290 | 290 | else if ((aI == t)) | |
291 | 291 | then ("0x" + toBase16String(aK)) | |
292 | 292 | else throw("_convertWeb3IdToAddress: revert") | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func aM (ak,aH,aK,aI,C) = { | |
296 | 296 | let aF = if ((aI == s)) | |
297 | 297 | then { | |
298 | 298 | let aN = (y + toBytes(toBase58String(ak))) | |
299 | 299 | sigVerify(aN, aH, aK) | |
300 | 300 | } | |
301 | 301 | else if ((aI == t)) | |
302 | 302 | then { | |
303 | 303 | let aO = keccak256_16Kb((z + ak)) | |
304 | 304 | (takeRight(keccak256_16Kb(ecrecover(aO, aH)), 20) == aK) | |
305 | 305 | } | |
306 | 306 | else throw((C + ": inv alg")) | |
307 | 307 | if (!(aF)) | |
308 | 308 | then throw(C) | |
309 | 309 | else true | |
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | - | func aP (am,aQ,C) = if ((aQ > fraction(am, x, w, | |
313 | + | func aP (am,aQ,C) = if ((aQ > fraction(am, x, w, CEILING))) | |
314 | 314 | then throw(C) | |
315 | 315 | else true | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | func aR (aS,C) = { | |
319 | 319 | let aT = split(aS, a) | |
320 | 320 | let aU = valueOrErrorMessage(parseInt(aT[0]), (C + ": inv type")) | |
321 | 321 | let aV = valueOrErrorMessage(parseInt(aT[1]), (C + ": inv version")) | |
322 | 322 | let aW = aT[2] | |
323 | 323 | let aX = valueOrErrorMessage(parseInt(aT[3]), (C + ": inv side")) | |
324 | 324 | let aY = valueOrErrorMessage(parseInt(aT[4]), (C + ": inv ts")) | |
325 | 325 | let aZ = fromBase58String(aT[5]) | |
326 | 326 | let ba = valueOrErrorMessage(parseInt(aT[6]), (C + ": inv alg")) | |
327 | 327 | let bb = fromBase58String(aT[7]) | |
328 | 328 | let bc = if (if ((aU == n)) | |
329 | 329 | then (aV == p) | |
330 | 330 | else false) | |
331 | 331 | then { | |
332 | 332 | let bd = valueOrErrorMessage(parseBigInt(aT[8]), (C + ": inv price")) | |
333 | 333 | let be = valueOrErrorMessage(parseBigInt(aT[9]), (C + ": inv amount")) | |
334 | 334 | let bf = (toBytes(bd) + toBytes(be)) | |
335 | 335 | $Tuple4(bd, be, u, bf) | |
336 | 336 | } | |
337 | 337 | else if (if ((aU == o)) | |
338 | 338 | then (aV == p) | |
339 | 339 | else false) | |
340 | 340 | then { | |
341 | 341 | let be = valueOrErrorMessage(parseBigInt(aT[8]), (C + ": inv amount")) | |
342 | 342 | let bg = if ((valueOrErrorMessage(parseBigInt(aT[9]), (C + ": inv isBaseAmount")) == u)) | |
343 | 343 | then false | |
344 | 344 | else true | |
345 | 345 | if (bg) | |
346 | 346 | then $Tuple4(u, be, u, (toBytes(be) + toBytes(v))) | |
347 | 347 | else $Tuple4(u, u, be, (toBytes(be) + toBytes(u))) | |
348 | 348 | } | |
349 | 349 | else throw((C + ": inv type & version")) | |
350 | 350 | let bd = bc._1 | |
351 | 351 | let bh = bc._2 | |
352 | 352 | let bi = bc._3 | |
353 | 353 | let bf = bc._4 | |
354 | 354 | let bj = ((((((((toBytes(aU) + toBytes(aV)) + toBytes(size(aW))) + toBytes(aW)) + toBytes(aX)) + toBytes(aY)) + aZ) + toBytes(ba)) + bf) | |
355 | 355 | let bk = keccak256_32Kb(bj) | |
356 | 356 | let bl = if (if (if (if (if (if (if (au(aU, aV, (C + ": inv order type"))) | |
357 | 357 | then ax(aW, (C + ": inv order symbol")) | |
358 | 358 | else false) | |
359 | 359 | then ay(aX, (C + ": inv order side")) | |
360 | 360 | else false) | |
361 | 361 | then aJ(aZ, ba, (C + ": inv order web3Id")) | |
362 | 362 | else false) | |
363 | 363 | then aG(bb, ba, (C + ": inv sig format")) | |
364 | 364 | else false) | |
365 | 365 | then F(bd, u, (C + ": neg price")) | |
366 | 366 | else false) | |
367 | 367 | then F(bh, u, (C + ": neg base amount")) | |
368 | 368 | else false) | |
369 | 369 | then F(bi, u, (C + ": neg quote amount")) | |
370 | 370 | else false | |
371 | 371 | if ((bl == bl)) | |
372 | 372 | then $Tuple10(aU, aW, aX, bd, bh, bi, bk, aZ, ba, bb) | |
373 | 373 | else throw("Strict value is not equal to itself.") | |
374 | 374 | } | |
375 | 375 | ||
376 | 376 | ||
377 | 377 | @Callable(bm) | |
378 | 378 | func init (W,Z,ac) = { | |
379 | 379 | let bl = if (if (if (if (if (an(bm.caller)) | |
380 | 380 | then aq() | |
381 | 381 | else false) | |
382 | 382 | then ap() | |
383 | 383 | else false) | |
384 | 384 | then A(W, "init: invalid sequencer") | |
385 | 385 | else false) | |
386 | 386 | then A(Z, "init: invalid accountStorage") | |
387 | 387 | else false) | |
388 | 388 | then M(ac, "init: invalid feeRecipient") | |
389 | 389 | else false | |
390 | 390 | if ((bl == bl)) | |
391 | 391 | then $Tuple2((((P(true) ++ V(addressFromStringValue(W))) ++ Y(addressFromStringValue(Z))) ++ ab(ac)), unit) | |
392 | 392 | else throw("Strict value is not equal to itself.") | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(bm) | |
398 | 398 | func trade (bn,bo,bp,bq) = { | |
399 | 399 | let br = aR(bn, "trade: invalid maker order") | |
400 | 400 | let bs = br._1 | |
401 | 401 | let bt = br._2 | |
402 | 402 | let bu = br._3 | |
403 | 403 | let bv = br._4 | |
404 | 404 | let bw = br._5 | |
405 | 405 | let bx = br._6 | |
406 | 406 | let by = br._7 | |
407 | 407 | let bz = br._8 | |
408 | 408 | let bA = br._9 | |
409 | 409 | let bB = br._10 | |
410 | 410 | let bC = aR(bo, "trade: invalid taker order") | |
411 | 411 | let bD = bC._1 | |
412 | 412 | let bE = bC._2 | |
413 | 413 | let bF = bC._3 | |
414 | 414 | let bG = bC._4 | |
415 | 415 | let bH = bC._5 | |
416 | 416 | let bI = bC._6 | |
417 | 417 | let bJ = bC._7 | |
418 | 418 | let bK = bC._8 | |
419 | 419 | let bL = bC._9 | |
420 | 420 | let bM = bC._10 | |
421 | 421 | let bN = valueOrErrorMessage(parseBigInt(bp), "trade: baseFee not int") | |
422 | 422 | let bO = valueOrErrorMessage(parseBigInt(bq), "trade: quoteFee not int") | |
423 | 423 | let bP = bv | |
424 | 424 | let bQ = aj(by) | |
425 | 425 | let bR = (bw - bQ) | |
426 | 426 | let bS = aj(bJ) | |
427 | 427 | let bT = if ((bH == u)) | |
428 | 428 | then fraction((bI - bS), w, bP, DOWN) | |
429 | 429 | else (bH - bS) | |
430 | 430 | let bU = min([bR, bT]) | |
431 | 431 | let bV = fraction(bU, bP, w, DOWN) | |
432 | 432 | let bl = if (if (if (if (if (if (if (if (if (as(bm.caller, "trade: invalid sequencer")) | |
433 | 433 | then F(bU, u, "trade: neg trade amount") | |
434 | 434 | else false) | |
435 | 435 | then I(bs, n, "trade: maker is not limit") | |
436 | 436 | else false) | |
437 | 437 | then N(bt, bE, "trade: symbol mismatch") | |
438 | 438 | else false) | |
439 | 439 | then L(bu, bF, "trade: side mismatch") | |
440 | 440 | else false) | |
441 | 441 | then aM(by, bB, bz, bA, "trade: invalid maker sig") | |
442 | 442 | else false) | |
443 | 443 | then aM(bJ, bM, bK, bL, "trade: invalid taker sig") | |
444 | 444 | else false) | |
445 | 445 | then aP(bU, bN, "trade: base fee too much") | |
446 | 446 | else false) | |
447 | 447 | then aP(bV, bO, "trade: quote fee too much") | |
448 | 448 | else false) | |
449 | 449 | then aA(bv, bG, bF, bD, "trade: prices mismatch") | |
450 | 450 | else false | |
451 | 451 | if ((bl == bl)) | |
452 | 452 | then { | |
453 | 453 | let bW = aL(bz, bA) | |
454 | 454 | let bX = aL(bK, bL) | |
455 | 455 | let bY = if ((bu == q)) | |
456 | 456 | then $Tuple2(bW, bX) | |
457 | 457 | else $Tuple2(bX, bW) | |
458 | 458 | let bZ = bY._1 | |
459 | 459 | let ca = bY._2 | |
460 | 460 | let cb = split(bt, "-") | |
461 | 461 | let cc = cb[0] | |
462 | 462 | let cd = cb[1] | |
463 | 463 | let ce = aa() | |
464 | 464 | let cf = invoke(X(), k, [m, cc, ca, bZ, toString(bU), toString(bN), ce], nil) | |
465 | 465 | if ((cf == cf)) | |
466 | 466 | then { | |
467 | 467 | let cg = invoke(X(), k, [m, cd, bZ, ca, toString(bV), toString(bO), ce], nil) | |
468 | 468 | if ((cg == cg)) | |
469 | 469 | then { | |
470 | 470 | let ch = (bQ + bU) | |
471 | 471 | let ci = if ((bH == u)) | |
472 | 472 | then (bS + bV) | |
473 | 473 | else (bS + bU) | |
474 | 474 | $Tuple2((al(by, ch) ++ al(bJ, ci)), unit) | |
475 | 475 | } | |
476 | 476 | else throw("Strict value is not equal to itself.") | |
477 | 477 | } | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | else throw("Strict value is not equal to itself.") | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | 485 | @Callable(bm) | |
486 | 486 | func claimReward (cj,ck,am) = { | |
487 | 487 | let be = valueOrErrorMessage(parseBigInt(am), "claimReward: amount not int") | |
488 | 488 | let bl = if (if (if (as(bm.caller, "claimReward: invalid sequencer")) | |
489 | 489 | then M(cj, "claimReward: invalid user") | |
490 | 490 | else false) | |
491 | 491 | then M(ck, "claimReward: invalid currency") | |
492 | 492 | else false) | |
493 | 493 | then F(be, u, "claimReward: neg amount") | |
494 | 494 | else false | |
495 | 495 | if ((bl == bl)) | |
496 | 496 | then { | |
497 | 497 | let cf = invoke(X(), l, [ad(), cj, ck, am], nil) | |
498 | 498 | if ((cf == cf)) | |
499 | 499 | then $Tuple2(nil, unit) | |
500 | 500 | else throw("Strict value is not equal to itself.") | |
501 | 501 | } | |
502 | 502 | else throw("Strict value is not equal to itself.") | |
503 | 503 | } | |
504 | 504 | ||
505 | 505 | ||
506 | 506 | ||
507 | 507 | @Callable(bm) | |
508 | 508 | func updateSymbol (ah,cl) = { | |
509 | 509 | let bl = if (an(bm.caller)) | |
510 | 510 | then M(ah, "updateSymbol: invalid symbol") | |
511 | 511 | else false | |
512 | 512 | if ((bl == bl)) | |
513 | 513 | then $Tuple2(ai(ah, cl), unit) | |
514 | 514 | else throw("Strict value is not equal to itself.") | |
515 | 515 | } | |
516 | 516 | ||
517 | 517 | ||
518 | 518 | ||
519 | 519 | @Callable(bm) | |
520 | 520 | func updateFeeRecipient (ac) = { | |
521 | 521 | let bl = if (if (an(bm.caller)) | |
522 | 522 | then ar() | |
523 | 523 | else false) | |
524 | 524 | then M(ac, "updateFeeRecipient: invalid feeRecipient") | |
525 | 525 | else false | |
526 | 526 | if ((bl == bl)) | |
527 | 527 | then $Tuple2(ab(ac), unit) | |
528 | 528 | else throw("Strict value is not equal to itself.") | |
529 | 529 | } | |
530 | 530 | ||
531 | 531 | ||
532 | 532 | ||
533 | 533 | @Callable(bm) | |
534 | 534 | func updateRewardDistributor (cm) = { | |
535 | 535 | let bl = if (if (an(bm.caller)) | |
536 | 536 | then ar() | |
537 | 537 | else false) | |
538 | 538 | then M(cm, "updateRewardDistributor: invalid rewardDistributor") | |
539 | 539 | else false | |
540 | 540 | if ((bl == bl)) | |
541 | 541 | then $Tuple2(ae(cm), unit) | |
542 | 542 | else throw("Strict value is not equal to itself.") | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | ||
547 | 547 | @Callable(bm) | |
548 | 548 | func setMultisig (T) = { | |
549 | 549 | let bl = if (an(bm.caller)) | |
550 | 550 | then A(T, "setMultisig: invalid multisig") | |
551 | 551 | else false | |
552 | 552 | if ((bl == bl)) | |
553 | 553 | then $Tuple2(S(addressFromStringValue(T)), unit) | |
554 | 554 | else throw("Strict value is not equal to itself.") | |
555 | 555 | } | |
556 | 556 | ||
557 | 557 | ||
558 | 558 | @Verifier(cn) | |
559 | 559 | func co () = { | |
560 | 560 | let D = getString(b) | |
561 | 561 | if ($isInstanceOf(D, "String")) | |
562 | 562 | then { | |
563 | 563 | let cp = D | |
564 | 564 | valueOrElse(getBoolean(addressFromStringValue(cp), makeString([c, toString(this), toBase58String(cn.id)], a)), false) | |
565 | 565 | } | |
566 | 566 | else sigVerify(cn.bodyBytes, cn.proofs[0], cn.senderPublicKey) | |
567 | 567 | } | |
568 | 568 |
github/deemru/w8io/169f3d6 57.29 ms ◑