tx · 9zBY1b2V9iKrZAmasCDfB6x6i7bQPB6aAP6rizpoWfHg 3N7CLsQGUBRVpduahQBVqEfujVzssvQiix5: -0.05000000 Waves 2023.04.25 17:22 [2550184] smart account 3N7CLsQGUBRVpduahQBVqEfujVzssvQiix5 > SELF 0.00000000 Waves
{ "type": 13, "id": "9zBY1b2V9iKrZAmasCDfB6x6i7bQPB6aAP6rizpoWfHg", "fee": 5000000, "feeAssetId": null, "timestamp": 1682432570161, "version": 2, "chainId": 84, "sender": "3N7CLsQGUBRVpduahQBVqEfujVzssvQiix5", "senderPublicKey": "BxQ8noXHHUZH7mETv5rTTjKZgvY3Y9FZkVj7nF5FkT3K", "proofs": [ "3UFquJjg1jJgqLcpmzBNpvhuwNSvUELahhXeYdZz6gY1qKG96DESuR3MnzV1oqi3E7ZoN6XuWQAcCHwwPcWP9nYq" ], "script": "base64:BgJFCAISAwoBCBIAEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEBEgMKAQESAwoBARIDCgEEbAADU0VQAgJfXwAFRU1QVFkCAAAJUFJFQ0lTSU9OAICglKWNHQAIREVDSU1BTFMAgMLXLwAUREVGQVVMVF9NQVhfU0xJUFBBR0UJAGgCCQBpAgUJUFJFQ0lTSU9OABQAEwADREFZCQBoAgkAaAIAPAA8ABgABFlFQVIJAGgCBQNEQVkA7QIAD09SQUNMRV9ERUNJTUFMUwDAhD0ACElORklOSVRZAP//////////fwAQTUlOX0FNT1VOVF9ERUxUQQDoBwAVTUFYX1JBVEVfSEVJR0hUX0RFTFRBAAUAEUxJUVVJREFUSU9OX0JPTlVTCQBoAgkAaQIFCVBSRUNJU0lPTgBkAAUAGExJUVVJREFUSU9OX1BST1RPQ09MX0ZFRQkAaAIJAGkCBQlQUkVDSVNJT04AZAACABRNQVhfTElRVUlEQVRJT05fUEFSVAkAaAIJAGkCBQlQUkVDSVNJT04AZAAyAA1TVEFCSUxJVFlfRkVFCQBpAgUJUFJFQ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kZHJlc3MFByRtYXRjaDAJAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQUHYWRkcmVzcwkBCWtleVNpZ25lZAIJAKUIAQUEdGhpcwkA2AQBCAUCdHgCaWQHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5VY7uog==", "height": 2550184, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = "" | |
7 | + | ||
8 | + | let c = 1000000000000 | |
9 | + | ||
10 | + | let d = 100000000 | |
11 | + | ||
12 | + | let e = ((c / 20) * 19) | |
13 | + | ||
14 | + | let f = ((60 * 60) * 24) | |
15 | + | ||
16 | + | let g = (f * 365) | |
17 | + | ||
18 | + | let h = 1000000 | |
19 | + | ||
20 | + | let i = 9223372036854775807 | |
21 | + | ||
22 | + | let j = 1000 | |
23 | + | ||
24 | + | let k = 5 | |
25 | + | ||
26 | + | let l = ((c / 100) * 5) | |
27 | + | ||
28 | + | let m = ((c / 100) * 2) | |
29 | + | ||
30 | + | let n = ((c / 100) * 50) | |
31 | + | ||
32 | + | let o = (c / 100) | |
33 | + | ||
34 | + | let p = "ENABLED" | |
35 | + | ||
36 | + | let q = "DISABLED" | |
37 | + | ||
38 | + | let r = 1 | |
39 | + | ||
40 | + | let s = 2 | |
41 | + | ||
42 | + | let t = 3 | |
43 | + | ||
44 | + | let u = 1 | |
45 | + | ||
46 | + | let v = 2 | |
47 | + | ||
48 | + | let w = 3 | |
49 | + | ||
50 | + | let x = 4 | |
51 | + | ||
52 | + | let y = 5 | |
53 | + | ||
54 | + | let z = "Invocation error" | |
55 | + | ||
56 | + | func A (B,C) = fraction(B, d, C, HALFEVEN) | |
57 | + | ||
58 | + | ||
59 | + | func D (B,C) = fraction(B, C, d, HALFEVEN) | |
60 | + | ||
61 | + | ||
62 | + | func E (B,C) = fraction(B, c, C, HALFEVEN) | |
63 | + | ||
64 | + | ||
65 | + | func F (B,C) = fraction(B, C, c, HALFEVEN) | |
66 | + | ||
67 | + | ||
68 | + | func G (H) = makeString(H, a) | |
69 | + | ||
70 | + | ||
71 | + | func I () = G(["%s", "initialized"]) | |
72 | + | ||
73 | + | ||
74 | + | func J () = G(["%s", "coordinatorAddress"]) | |
75 | + | ||
76 | + | ||
77 | + | func K () = G(["%s", "verifierAddress"]) | |
78 | + | ||
79 | + | ||
80 | + | func L () = G(["%s", "serviceAddress"]) | |
81 | + | ||
82 | + | ||
83 | + | func M () = G(["%s", "frontendAddress"]) | |
84 | + | ||
85 | + | ||
86 | + | func N () = G(["%s", "minterAddress"]) | |
87 | + | ||
88 | + | ||
89 | + | func O () = G(["%s", "treasuryAddress"]) | |
90 | + | ||
91 | + | ||
92 | + | func P () = G(["%s", "backendAddress"]) | |
93 | + | ||
94 | + | ||
95 | + | func Q () = G(["%s", "eastStakingAddress"]) | |
96 | + | ||
97 | + | ||
98 | + | func R () = G(["%s", "oracleAddress"]) | |
99 | + | ||
100 | + | ||
101 | + | func S () = G(["%s", "exchangeAddress"]) | |
102 | + | ||
103 | + | ||
104 | + | func T () = G(["%s", "eastAsset"]) | |
105 | + | ||
106 | + | ||
107 | + | func U () = G(["%s", "stEastAsset"]) | |
108 | + | ||
109 | + | ||
110 | + | func V () = "A_asset_balance" | |
111 | + | ||
112 | + | ||
113 | + | func W () = "B_asset_balance" | |
114 | + | ||
115 | + | ||
116 | + | func X (Y,Z) = G(["%s%s%s", "vault", Y, Z]) | |
117 | + | ||
118 | + | ||
119 | + | func aa (Y) = G(["%s%s", "vault", Y]) | |
120 | + | ||
121 | + | ||
122 | + | func ab () = G(["%s", "precision"]) | |
123 | + | ||
124 | + | ||
125 | + | func ac () = G(["%s", "backingRatio"]) | |
126 | + | ||
127 | + | ||
128 | + | func ad () = G(["%s", "liquidationRatio"]) | |
129 | + | ||
130 | + | ||
131 | + | func ae () = G(["%s", "liquidationBonus"]) | |
132 | + | ||
133 | + | ||
134 | + | func af () = G(["%s", "liquidationProtocolFee"]) | |
135 | + | ||
136 | + | ||
137 | + | func ag () = G(["%s", "stabilityFee"]) | |
138 | + | ||
139 | + | ||
140 | + | func ah () = G(["%s", "minAmountDelta"]) | |
141 | + | ||
142 | + | ||
143 | + | func ai () = G(["%s", "ticker"]) | |
144 | + | ||
145 | + | ||
146 | + | func aj () = G(["%s", "maxRateHeightDelta"]) | |
147 | + | ||
148 | + | ||
149 | + | func ak () = G(["%s", "contractAssetId"]) | |
150 | + | ||
151 | + | ||
152 | + | func al (am) = G(["%s%s", "price", am]) | |
153 | + | ||
154 | + | ||
155 | + | func an (am) = G(["%s%s", "lastHeight", am]) | |
156 | + | ||
157 | + | ||
158 | + | func ao (ap,aq) = G(["%s%s%s", "signed", ap, aq]) | |
159 | + | ||
160 | + | ||
161 | + | func ar () = G(["%s", "protocolActive"]) | |
162 | + | ||
163 | + | ||
164 | + | func as () = valueOrElse(getBoolean(this, I()), false) | |
165 | + | ||
166 | + | ||
167 | + | func at () = if (!(as())) | |
168 | + | then throw("Not initialized") | |
169 | + | else unit | |
170 | + | ||
171 | + | ||
172 | + | func au () = if (as()) | |
173 | + | then throw("Already initialized") | |
174 | + | else unit | |
175 | + | ||
176 | + | ||
177 | + | func av (aw) = if ((aw.caller != this)) | |
178 | + | then throw("Only self invocation allowed.") | |
179 | + | else unit | |
180 | + | ||
181 | + | ||
182 | + | func ax () = addressFromStringValue(valueOrErrorMessage(getString(J()), "Coordinator is not set")) | |
183 | + | ||
184 | + | ||
185 | + | func ay () = { | |
186 | + | let az = getString(J()) | |
187 | + | if ($isInstanceOf(az, "String")) | |
188 | + | then { | |
189 | + | let aA = az | |
190 | + | getString(addressFromStringValue(aA), K()) | |
191 | + | } | |
192 | + | else if ($isInstanceOf(az, "Unit")) | |
193 | + | then unit | |
194 | + | else throw("Match error") | |
195 | + | } | |
196 | + | ||
197 | + | ||
198 | + | func aB (aC,aD) = addressFromStringValue(valueOrErrorMessage(getString(ax(), aC), aD)) | |
199 | + | ||
200 | + | ||
201 | + | func aE () = aB(N(), "Minter is not set") | |
202 | + | ||
203 | + | ||
204 | + | func aF () = aB(M(), "Frontend is not set") | |
205 | + | ||
206 | + | ||
207 | + | func aG () = aB(O(), "Treasury is not set") | |
208 | + | ||
209 | + | ||
210 | + | func aH () = aB(P(), "Backend is not set") | |
211 | + | ||
212 | + | ||
213 | + | func aI () = aB(R(), "Oracle is not set") | |
214 | + | ||
215 | + | ||
216 | + | func aJ () = aB(Q(), "East staking is not set") | |
217 | + | ||
218 | + | ||
219 | + | func aK (aw) = (aw.caller != aG()) | |
220 | + | ||
221 | + | ||
222 | + | func aL () = valueOrElse(getInteger(ax(), ah()), j) | |
223 | + | ||
224 | + | ||
225 | + | func aM () = valueOrElse(getInteger(ax(), aj()), k) | |
226 | + | ||
227 | + | ||
228 | + | func aN () = valueOrElse(getInteger(ax(), ae()), l) | |
229 | + | ||
230 | + | ||
231 | + | func aO () = valueOrElse(getInteger(ax(), af()), m) | |
232 | + | ||
233 | + | ||
234 | + | func aP () = valueOrElse(getInteger(ax(), ag()), o) | |
235 | + | ||
236 | + | ||
237 | + | func aQ () = getStringValue(ak()) | |
238 | + | ||
239 | + | ||
240 | + | func aR () = valueOrErrorMessage(getString(ax(), T()), "East asset is not set") | |
241 | + | ||
242 | + | ||
243 | + | func aS () = fromBase58String(aR()) | |
244 | + | ||
245 | + | ||
246 | + | func aT () = valueOrElse(getBoolean(ax(), ar()), false) | |
247 | + | ||
248 | + | ||
249 | + | func aU () = if (if (!(aT())) | |
250 | + | then true | |
251 | + | else !(as())) | |
252 | + | then throw("Protocol is disabled. Please contact support.") | |
253 | + | else unit | |
254 | + | ||
255 | + | ||
256 | + | func aV (aw) = if ((aw.caller != aF())) | |
257 | + | then throw("Not allowed") | |
258 | + | else unit | |
259 | + | ||
260 | + | ||
261 | + | func aW (aw) = if ((aw.caller != aH())) | |
262 | + | then throw("Not allowed") | |
263 | + | else unit | |
264 | + | ||
265 | + | ||
266 | + | func aX (aw,Y) = if ((toBase58String(aw.caller.bytes) == Y)) | |
267 | + | then throw("Self invocation not allowed.") | |
268 | + | else unit | |
269 | + | ||
270 | + | ||
271 | + | func aY (aw) = if ((size(aw.payments) != 1)) | |
272 | + | then throw("Only one payment allowed.") | |
273 | + | else unit | |
274 | + | ||
275 | + | ||
276 | + | func aZ (aw) = if ((size(aw.payments) != 0)) | |
277 | + | then throw("No payment allowed.") | |
278 | + | else unit | |
279 | + | ||
280 | + | ||
281 | + | func ba (aw) = (size(aw.payments) == 1) | |
282 | + | ||
283 | + | ||
284 | + | func bb (bc) = if ((0 >= bc)) | |
285 | + | then throw("Attribute should be positive or zero.") | |
286 | + | else unit | |
287 | + | ||
288 | + | ||
289 | + | func bd (bc) = if ((0 > bc)) | |
290 | + | then throw("Attribute should be positive.") | |
291 | + | else unit | |
292 | + | ||
293 | + | ||
294 | + | func be (Y,Z) = getString(X(Y, Z)) | |
295 | + | ||
296 | + | ||
297 | + | func bf (Y,Z) = valueOrErrorMessage(be(Y, Z), "Vault not exists") | |
298 | + | ||
299 | + | ||
300 | + | func bg (bh) = { | |
301 | + | let az = bh.assetId | |
302 | + | if ($isInstanceOf(az, "ByteVector")) | |
303 | + | then { | |
304 | + | let bi = az | |
305 | + | toBase58String(bi) | |
306 | + | } | |
307 | + | else if ($isInstanceOf(az, "Unit")) | |
308 | + | then "WAVES" | |
309 | + | else throw("Match error") | |
310 | + | } | |
311 | + | ||
312 | + | ||
313 | + | func bj (bi) = if ((bi == "WAVES")) | |
314 | + | then unit | |
315 | + | else fromBase58String(bi) | |
316 | + | ||
317 | + | ||
318 | + | func bk (bh,bl) = { | |
319 | + | let bi = { | |
320 | + | let az = bl | |
321 | + | if ($isInstanceOf(az, "ByteVector")) | |
322 | + | then { | |
323 | + | let bm = az | |
324 | + | bm | |
325 | + | } | |
326 | + | else if ($isInstanceOf(az, "String")) | |
327 | + | then { | |
328 | + | let aA = az | |
329 | + | bj(aA) | |
330 | + | } | |
331 | + | else if ($isInstanceOf(az, "Unit")) | |
332 | + | then unit | |
333 | + | else throw("Match error") | |
334 | + | } | |
335 | + | let az = bi | |
336 | + | if ($isInstanceOf(az, "ByteVector")) | |
337 | + | then { | |
338 | + | let bm = az | |
339 | + | let bn = { | |
340 | + | let bo = assetInfo(bm) | |
341 | + | if ($isInstanceOf(bo, "Asset")) | |
342 | + | then { | |
343 | + | let Z = bo | |
344 | + | Z.name | |
345 | + | } | |
346 | + | else if ($isInstanceOf(bo, "Unit")) | |
347 | + | then throw(("Can't find asset " + toBase58String(bm))) | |
348 | + | else throw("Match error") | |
349 | + | } | |
350 | + | let aD = throw(("Attached payment asset is not " + bn)) | |
351 | + | let bo = bh.assetId | |
352 | + | if ($isInstanceOf(bo, "ByteVector")) | |
353 | + | then { | |
354 | + | let bp = bo | |
355 | + | if ((bp != bi)) | |
356 | + | then aD | |
357 | + | else unit | |
358 | + | } | |
359 | + | else if ($isInstanceOf(bo, "Unit")) | |
360 | + | then aD | |
361 | + | else throw("Match error") | |
362 | + | } | |
363 | + | else if ($isInstanceOf(az, "Unit")) | |
364 | + | then if ((bh.assetId != unit)) | |
365 | + | then throw("Attached payment asset is not WAVES") | |
366 | + | else unit | |
367 | + | else throw("Match error") | |
368 | + | } | |
369 | + | ||
370 | + | ||
371 | + | func bq () = valueOrErrorMessage(getInteger(ac()), "Backing ratio is not set") | |
372 | + | ||
373 | + | ||
374 | + | func br () = valueOrErrorMessage(getInteger(ad()), "Liquidation ratio is not set") | |
375 | + | ||
376 | + | ||
377 | + | func bs (ap) = { | |
378 | + | let az = addressFromString(ap) | |
379 | + | if ($isInstanceOf(az, "Address")) | |
380 | + | then { | |
381 | + | let Y = az | |
382 | + | true | |
383 | + | } | |
384 | + | else if ($isInstanceOf(az, "Unit")) | |
385 | + | then throw("Invalid address") | |
386 | + | else throw("Match error") | |
387 | + | } | |
388 | + | ||
389 | + | ||
390 | + | func bt (bu) = (size(fromBase58String(bu)) == 32) | |
391 | + | ||
392 | + | ||
393 | + | func bv () = (lastBlock.timestamp / 1000) | |
394 | + | ||
395 | + | ||
396 | + | func bw (aw) = { | |
397 | + | let bx = aY(aw) | |
398 | + | if ((bx == bx)) | |
399 | + | then { | |
400 | + | let by = aw.payments[0].assetId | |
401 | + | let az = by | |
402 | + | if ($isInstanceOf(az, "Unit")) | |
403 | + | then { | |
404 | + | let bz = az | |
405 | + | unit | |
406 | + | } | |
407 | + | else throw("Only WAVES accepted") | |
408 | + | } | |
409 | + | else throw("Strict value is not equal to itself.") | |
410 | + | } | |
411 | + | ||
412 | + | ||
413 | + | func bA (bi) = { | |
414 | + | let az = bi | |
415 | + | if ($isInstanceOf(az, "ByteVector")) | |
416 | + | then { | |
417 | + | let bB = az | |
418 | + | let bC = toBase58String(bB) | |
419 | + | let bD = valueOrErrorMessage(assetInfo(bB), (("Asset " + bC) + " doesn't exist")) | |
420 | + | $Tuple3(bC, bD.name, bD.decimals) | |
421 | + | } | |
422 | + | else if ($isInstanceOf(az, "Unit")) | |
423 | + | then { | |
424 | + | let bE = az | |
425 | + | $Tuple3("WAVES", "WAVES", 8) | |
426 | + | } | |
427 | + | else throw("Match error") | |
428 | + | } | |
429 | + | ||
430 | + | ||
431 | + | func bF (bG) = { | |
432 | + | let bH = aM() | |
433 | + | let bI = (lastBlock.height - bG) | |
434 | + | if ((bH >= bI)) | |
435 | + | then unit | |
436 | + | else throw("Large price delta.") | |
437 | + | } | |
438 | + | ||
439 | + | ||
440 | + | func bJ () = { | |
441 | + | let am = getStringValue(this, ai()) | |
442 | + | let bK = aI() | |
443 | + | let bG = getIntegerValue(bK, an(am)) | |
444 | + | let bL = bF(bG) | |
445 | + | if ((bL == bL)) | |
446 | + | then { | |
447 | + | let bM = getIntegerValue(bK, al(am)) | |
448 | + | fraction(bM, c, h) | |
449 | + | } | |
450 | + | else throw("Strict value is not equal to itself.") | |
451 | + | } | |
452 | + | ||
453 | + | ||
454 | + | @Callable(aw) | |
455 | + | func setVerifier (ap) = { | |
456 | + | let bN = [av(aw), bs(ap)] | |
457 | + | if ((bN == bN)) | |
458 | + | then if (isDefined(ay())) | |
459 | + | then throw("Verifier already defined") | |
460 | + | else [StringEntry(K(), ap)] | |
461 | + | else throw("Strict value is not equal to itself.") | |
462 | + | } | |
463 | + | ||
464 | + | ||
465 | + | ||
466 | + | @Callable(aw) | |
467 | + | func initialize () = { | |
468 | + | let bx = [au(), av(aw)] | |
469 | + | if ((bx == bx)) | |
470 | + | then [IntegerEntry(aj(), k), IntegerEntry(ah(), j), IntegerEntry(ae(), l), IntegerEntry(af(), m), IntegerEntry(ag(), o), IntegerEntry(ab(), c), BooleanEntry(ar(), true), BooleanEntry(I(), true)] | |
471 | + | else throw("Strict value is not equal to itself.") | |
472 | + | } | |
473 | + | ||
474 | + | ||
475 | + | ||
476 | + | @Callable(aw) | |
477 | + | func setMinter (ap) = { | |
478 | + | let bx = [av(aw), bs(ap)] | |
479 | + | if ((bx == bx)) | |
480 | + | then [StringEntry(N(), ap)] | |
481 | + | else throw("Strict value is not equal to itself.") | |
482 | + | } | |
483 | + | ||
484 | + | ||
485 | + | ||
486 | + | @Callable(aw) | |
487 | + | func setFrontend (ap) = { | |
488 | + | let bx = [av(aw), bs(ap)] | |
489 | + | if ((bx == bx)) | |
490 | + | then [StringEntry(M(), ap)] | |
491 | + | else throw("Strict value is not equal to itself.") | |
492 | + | } | |
493 | + | ||
494 | + | ||
495 | + | ||
496 | + | @Callable(aw) | |
497 | + | func setTreasury (ap) = { | |
498 | + | let bx = [av(aw), bs(ap)] | |
499 | + | if ((bx == bx)) | |
500 | + | then [StringEntry(O(), ap)] | |
501 | + | else throw("Strict value is not equal to itself.") | |
502 | + | } | |
503 | + | ||
504 | + | ||
505 | + | ||
506 | + | @Callable(aw) | |
507 | + | func setEastStaking (ap) = { | |
508 | + | let bx = [av(aw), bs(ap)] | |
509 | + | if ((bx == bx)) | |
510 | + | then [StringEntry(Q(), ap)] | |
511 | + | else throw("Strict value is not equal to itself.") | |
512 | + | } | |
513 | + | ||
514 | + | ||
515 | + | ||
516 | + | @Callable(aw) | |
517 | + | func setOracle (ap) = { | |
518 | + | let bx = [av(aw), bs(ap)] | |
519 | + | if ((bx == bx)) | |
520 | + | then [StringEntry(R(), ap)] | |
521 | + | else throw("Strict value is not equal to itself.") | |
522 | + | } | |
523 | + | ||
524 | + | ||
525 | + | ||
526 | + | @Callable(aw) | |
527 | + | func setExchange (ap) = { | |
528 | + | let bx = [av(aw), bs(ap)] | |
529 | + | if ((bx == bx)) | |
530 | + | then [StringEntry(S(), ap)] | |
531 | + | else throw("Strict value is not equal to itself.") | |
532 | + | } | |
533 | + | ||
534 | + | ||
535 | + | ||
536 | + | @Callable(aw) | |
537 | + | func setEastAsset (bO) = { | |
538 | + | let bx = [av(aw)] | |
539 | + | if ((bx == bx)) | |
540 | + | then [StringEntry(T(), bO)] | |
541 | + | else throw("Strict value is not equal to itself.") | |
542 | + | } | |
543 | + | ||
544 | + | ||
545 | + | ||
546 | + | @Callable(aw) | |
547 | + | func setStEastAsset (bO) = { | |
548 | + | let bx = [av(aw)] | |
549 | + | if ((bx == bx)) | |
550 | + | then [StringEntry(U(), bO)] | |
551 | + | else throw("Strict value is not equal to itself.") | |
552 | + | } | |
553 | + | ||
554 | + | ||
555 | + | ||
556 | + | @Callable(aw) | |
557 | + | func setMaxRateHeightDelta (bP) = { | |
558 | + | let bx = [av(aw)] | |
559 | + | if ((bx == bx)) | |
560 | + | then [IntegerEntry(aj(), bP)] | |
561 | + | else throw("Strict value is not equal to itself.") | |
562 | + | } | |
563 | + | ||
564 | + | ||
565 | + | ||
566 | + | @Callable(aw) | |
567 | + | func setMinAmountDelta (bP) = { | |
568 | + | let bx = [av(aw)] | |
569 | + | if ((bx == bx)) | |
570 | + | then [IntegerEntry(ah(), bP)] | |
571 | + | else throw("Strict value is not equal to itself.") | |
572 | + | } | |
573 | + | ||
574 | + | ||
575 | + | ||
576 | + | @Callable(aw) | |
577 | + | func setStabilityFee (bQ) = { | |
578 | + | let bx = [av(aw)] | |
579 | + | if ((bx == bx)) | |
580 | + | then { | |
581 | + | let bR = invoke(aF(), "updateFraction", nil, nil) | |
582 | + | if ((bR == bR)) | |
583 | + | then { | |
584 | + | let bS = E(bQ, 1000) | |
585 | + | [IntegerEntry(ag(), bS)] | |
586 | + | } | |
587 | + | else throw("Strict value is not equal to itself.") | |
588 | + | } | |
589 | + | else throw("Strict value is not equal to itself.") | |
590 | + | } | |
591 | + | ||
592 | + | ||
593 | + | ||
594 | + | @Callable(aw) | |
595 | + | func setProtocolActive (bT) = { | |
596 | + | let bx = [av(aw)] | |
597 | + | if ((bx == bx)) | |
598 | + | then [BooleanEntry(ar(), bT)] | |
599 | + | else throw("Strict value is not equal to itself.") | |
600 | + | } | |
601 | + | ||
602 | + | ||
603 | + | @Verifier(bU) | |
604 | + | func bV () = { | |
605 | + | let az = ay() | |
606 | + | if ($isInstanceOf(az, "String")) | |
607 | + | then { | |
608 | + | let Y = az | |
609 | + | valueOrElse(getBoolean(addressFromStringValue(Y), ao(toString(this), toBase58String(bU.id))), false) | |
610 | + | } | |
611 | + | else sigVerify(bU.bodyBytes, bU.proofs[0], bU.senderPublicKey) | |
612 | + | } | |
613 | + |
github/deemru/w8io/169f3d6 31.79 ms ◑