tx · DRsCAzND1K5tHYDMpGhjmPzmMZ96t7aNabc9saYnFcuJ 3N396XmhkJT9e88pHTJk6Mayk8LUkGDam5a: -0.05000000 Waves 2023.04.18 13:43 [2539886] smart account 3N396XmhkJT9e88pHTJk6Mayk8LUkGDam5a > SELF 0.00000000 Waves
{ "type": 13, "id": "DRsCAzND1K5tHYDMpGhjmPzmMZ96t7aNabc9saYnFcuJ", "fee": 5000000, "feeAssetId": null, "timestamp": 1681814635867, "version": 2, "chainId": 84, "sender": "3N396XmhkJT9e88pHTJk6Mayk8LUkGDam5a", "senderPublicKey": "5KURymiqxZYVrD1dohssGFnfe1WQ5oC6ESSLPNzGW99R", "proofs": [ "5ZzNoKteNndcAd4yNHFE5S7jc4VAVEcQtVDwGn4qj8z2Z2i4GYp8i433gB6QumHEQ1HzYCciY7jAZkrU72y2Lmt7" ], "script": "base64:BgIWCAISAwoBCBIDCgEBEgMKAQgSAwoBCHIAA1NFUAICX18ABUVNUFRZAgAACVBSRUNJU0lPTgCAoJSljR0ACERFQ0lNQUxTAIDC1y8AFERFRkFVTFRfTUFYX1NMSVBQQUdFCQBoAgkAaQIFCVBSRUNJU0lPTgAUABMAA0RBWQkAaAIJAGgCADwAPAAYAARZRUFSCQBoAgUDREFZAO0CAA9PUkFDTEVfREVDSU1BTFMAwIQ9AAhJTkZJTklUWQD//////////38AEE1JTl9BTU9VTlRfREVMVEEA6AcAFU1BWF9SQVRFX0hFSUdIVF9ERUxUQQAFABFMSVFVSURBVElPTl9CT05VUwkAaAIJAGkCBQlQUkVDSVNJT04AZAAFABhMSVFVSURBVElPTl9QUk9UT0NPTF9GRUUJAGgCCQBpAgUJUFJFQ0lTSU9OAGQAAgAUTUFYX0xJUVVJREFUSU9OX1BBUlQJAGgCCQBpAgUJUFJFQ0lTSU9OAGQAMgANU1RBQklMSVRZX0ZFRQkAaQIFCVBSRUNJU0lPTgBkAAdFTkFCTEVEAgdFTkFCTEVEAAhESVNBQkxFRAIIRElTQUJMRUQAEklk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MY2hlY2tBZGRyZXNzAQUIX2FkZHJlc3MJAMwIAgkBE2NoZWNrQWRkcmVzc0VuYWJsZWQBBQhfYWRkcmVzcwUDbmlsAwkAAAIFBmNoZWNrcwUGY2hlY2tzCQDMCAIJAQxCb29sZWFuRW50cnkCCQERa2V5QWxsb3dlZEFkZHJlc3MBBQhfYWRkcmVzcwcFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAJAQh2ZXJpZmllcgADCQABAgUHJG1hdGNoMAIGU3RyaW5nBAdhZGRyZXNzBQckbWF0Y2gwCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFB2FkZHJlc3MJAQlrZXlTaWduZWQCCQClCAEFBHRoaXMJANgEAQgFAnR4AmlkBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tledlmW70=", "height": 2539886, "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 (aw) = (aw.caller != aG()) | |
217 | + | ||
218 | + | ||
219 | + | func aK () = valueOrElse(getInteger(ax(), ah()), j) | |
220 | + | ||
221 | + | ||
222 | + | func aL () = valueOrElse(getInteger(ax(), aj()), k) | |
223 | + | ||
224 | + | ||
225 | + | func aM () = valueOrElse(getInteger(ax(), ae()), l) | |
226 | + | ||
227 | + | ||
228 | + | func aN () = valueOrElse(getInteger(ax(), af()), m) | |
229 | + | ||
230 | + | ||
231 | + | func aO () = valueOrElse(getInteger(ax(), ag()), o) | |
232 | + | ||
233 | + | ||
234 | + | func aP () = getStringValue(ak()) | |
235 | + | ||
236 | + | ||
237 | + | func aQ () = valueOrErrorMessage(getString(ax(), T()), "East asset is not set") | |
238 | + | ||
239 | + | ||
240 | + | func aR () = fromBase58String(aQ()) | |
241 | + | ||
242 | + | ||
243 | + | func aS () = valueOrElse(getBoolean(ax(), ar()), false) | |
244 | + | ||
245 | + | ||
246 | + | func aT () = if (if (!(aS())) | |
247 | + | then true | |
248 | + | else !(as())) | |
249 | + | then throw("Protocol is disabled. Please contact support.") | |
250 | + | else unit | |
251 | + | ||
252 | + | ||
253 | + | func aU (aw) = if ((aw.caller != aF())) | |
254 | + | then throw("Not allowed") | |
255 | + | else unit | |
256 | + | ||
257 | + | ||
258 | + | func aV (aw) = if ((aw.caller != aH())) | |
259 | + | then throw("Not allowed") | |
260 | + | else unit | |
261 | + | ||
262 | + | ||
263 | + | func aW (aw,Y) = if ((toBase58String(aw.caller.bytes) == Y)) | |
264 | + | then throw("Self invocation not allowed.") | |
265 | + | else unit | |
266 | + | ||
267 | + | ||
268 | + | func aX (aw) = if ((size(aw.payments) != 1)) | |
269 | + | then throw("Only one payment allowed.") | |
270 | + | else unit | |
271 | + | ||
272 | + | ||
273 | + | func aY (aw) = if ((size(aw.payments) != 0)) | |
274 | + | then throw("No payment allowed.") | |
275 | + | else unit | |
276 | + | ||
277 | + | ||
278 | + | func aZ (aw) = (size(aw.payments) == 1) | |
279 | + | ||
280 | + | ||
281 | + | func ba (bb) = if ((0 >= bb)) | |
282 | + | then throw("Attribute should be positive or zero.") | |
283 | + | else unit | |
284 | + | ||
285 | + | ||
286 | + | func bc (bb) = if ((0 > bb)) | |
287 | + | then throw("Attribute should be positive.") | |
288 | + | else unit | |
289 | + | ||
290 | + | ||
291 | + | func bd (Y,Z) = getString(X(Y, Z)) | |
292 | + | ||
293 | + | ||
294 | + | func be (Y,Z) = valueOrErrorMessage(bd(Y, Z), "Vault not exists") | |
295 | + | ||
296 | + | ||
297 | + | func bf (bg) = { | |
298 | + | let az = bg.assetId | |
299 | + | if ($isInstanceOf(az, "ByteVector")) | |
300 | + | then { | |
301 | + | let bh = az | |
302 | + | toBase58String(bh) | |
303 | + | } | |
304 | + | else if ($isInstanceOf(az, "Unit")) | |
305 | + | then "WAVES" | |
306 | + | else throw("Match error") | |
307 | + | } | |
308 | + | ||
309 | + | ||
310 | + | func bi (bh) = if ((bh == "WAVES")) | |
311 | + | then unit | |
312 | + | else fromBase58String(bh) | |
313 | + | ||
314 | + | ||
315 | + | func bj (bg,bk) = { | |
316 | + | let bh = { | |
317 | + | let az = bk | |
318 | + | if ($isInstanceOf(az, "ByteVector")) | |
319 | + | then { | |
320 | + | let bl = az | |
321 | + | bl | |
322 | + | } | |
323 | + | else if ($isInstanceOf(az, "String")) | |
324 | + | then { | |
325 | + | let aA = az | |
326 | + | bi(aA) | |
327 | + | } | |
328 | + | else if ($isInstanceOf(az, "Unit")) | |
329 | + | then unit | |
330 | + | else throw("Match error") | |
331 | + | } | |
332 | + | let az = bh | |
333 | + | if ($isInstanceOf(az, "ByteVector")) | |
334 | + | then { | |
335 | + | let bl = az | |
336 | + | let bm = { | |
337 | + | let bn = assetInfo(bl) | |
338 | + | if ($isInstanceOf(bn, "Asset")) | |
339 | + | then { | |
340 | + | let Z = bn | |
341 | + | Z.name | |
342 | + | } | |
343 | + | else if ($isInstanceOf(bn, "Unit")) | |
344 | + | then throw(("Can't find asset " + toBase58String(bl))) | |
345 | + | else throw("Match error") | |
346 | + | } | |
347 | + | let aD = throw(("Attached payment asset is not " + bm)) | |
348 | + | let bn = bg.assetId | |
349 | + | if ($isInstanceOf(bn, "ByteVector")) | |
350 | + | then { | |
351 | + | let bo = bn | |
352 | + | if ((bo != bh)) | |
353 | + | then aD | |
354 | + | else unit | |
355 | + | } | |
356 | + | else if ($isInstanceOf(bn, "Unit")) | |
357 | + | then aD | |
358 | + | else throw("Match error") | |
359 | + | } | |
360 | + | else if ($isInstanceOf(az, "Unit")) | |
361 | + | then if ((bg.assetId != unit)) | |
362 | + | then throw("Attached payment asset is not WAVES") | |
363 | + | else unit | |
364 | + | else throw("Match error") | |
365 | + | } | |
366 | + | ||
367 | + | ||
368 | + | func bp () = valueOrErrorMessage(getInteger(ac()), "Backing ratio is not set") | |
369 | + | ||
370 | + | ||
371 | + | func bq () = valueOrErrorMessage(getInteger(ad()), "Liquidation ratio is not set") | |
372 | + | ||
373 | + | ||
374 | + | func br (ap) = { | |
375 | + | let az = addressFromString(ap) | |
376 | + | if ($isInstanceOf(az, "Address")) | |
377 | + | then { | |
378 | + | let Y = az | |
379 | + | true | |
380 | + | } | |
381 | + | else if ($isInstanceOf(az, "Unit")) | |
382 | + | then throw("Invalid address") | |
383 | + | else throw("Match error") | |
384 | + | } | |
385 | + | ||
386 | + | ||
387 | + | func bs (bt) = (size(fromBase58String(bt)) == 32) | |
388 | + | ||
389 | + | ||
390 | + | func bu () = (lastBlock.timestamp / 1000) | |
391 | + | ||
392 | + | ||
393 | + | func bv (aw) = { | |
394 | + | let bw = aX(aw) | |
395 | + | if ((bw == bw)) | |
396 | + | then { | |
397 | + | let bx = aw.payments[0].assetId | |
398 | + | let az = bx | |
399 | + | if ($isInstanceOf(az, "Unit")) | |
400 | + | then { | |
401 | + | let by = az | |
402 | + | unit | |
403 | + | } | |
404 | + | else throw("Only WAVES accepted") | |
405 | + | } | |
406 | + | else throw("Strict value is not equal to itself.") | |
407 | + | } | |
408 | + | ||
409 | + | ||
410 | + | func bz (bh) = { | |
411 | + | let az = bh | |
412 | + | if ($isInstanceOf(az, "ByteVector")) | |
413 | + | then { | |
414 | + | let bA = az | |
415 | + | let bB = toBase58String(bA) | |
416 | + | let bC = valueOrErrorMessage(assetInfo(bA), (("Asset " + bB) + " doesn't exist")) | |
417 | + | $Tuple3(bB, bC.name, bC.decimals) | |
418 | + | } | |
419 | + | else if ($isInstanceOf(az, "Unit")) | |
420 | + | then { | |
421 | + | let bD = az | |
422 | + | $Tuple3("WAVES", "WAVES", 8) | |
423 | + | } | |
424 | + | else throw("Match error") | |
425 | + | } | |
426 | + | ||
427 | + | ||
428 | + | func bE (bF) = { | |
429 | + | let bG = aL() | |
430 | + | let bH = (lastBlock.height - bF) | |
431 | + | if ((bG >= bH)) | |
432 | + | then unit | |
433 | + | else throw("Large price delta.") | |
434 | + | } | |
435 | + | ||
436 | + | ||
437 | + | func bI () = { | |
438 | + | let am = getStringValue(this, ai()) | |
439 | + | let bJ = aI() | |
440 | + | let bF = getIntegerValue(bJ, an(am)) | |
441 | + | let bK = bE(bF) | |
442 | + | if ((bK == bK)) | |
443 | + | then { | |
444 | + | let bL = getIntegerValue(bJ, al(am)) | |
445 | + | fraction(bL, c, h) | |
446 | + | } | |
447 | + | else throw("Strict value is not equal to itself.") | |
448 | + | } | |
449 | + | ||
450 | + | ||
451 | + | let bM = "EAST" | |
452 | + | ||
453 | + | let bN = "EAST — Enterprise Algorithmic Stable Token built on the Waves Enterprise and Waves mainnet. Ensured both by significant overcollateralization and well-defined liquidation mechanisms. https://east.finance/" | |
454 | + | ||
455 | + | func bO (ap) = G(["%s%s", "allowedAddress", ap]) | |
456 | + | ||
457 | + | ||
458 | + | func bP (ap) = valueOrElse(getBoolean(this, bO(ap)), false) | |
459 | + | ||
460 | + | ||
461 | + | func bQ (aw) = { | |
462 | + | let bR = toBase58String(aw.caller.bytes) | |
463 | + | let bS = bP(bR) | |
464 | + | if (bS) | |
465 | + | then unit | |
466 | + | else throw(((("Unknown caller address. " + toString(aw.caller)) + " ") + toBase58String(aw.caller.bytes))) | |
467 | + | } | |
468 | + | ||
469 | + | ||
470 | + | func bT (ap) = if (bP(ap)) | |
471 | + | then unit | |
472 | + | else throw("Address already disabled") | |
473 | + | ||
474 | + | ||
475 | + | func bU (ap) = if (bP(ap)) | |
476 | + | then throw("Address already enabled") | |
477 | + | else unit | |
478 | + | ||
479 | + | ||
480 | + | @Callable(aw) | |
481 | + | func initialize (bV) = { | |
482 | + | let bW = [au(), br(bV)] | |
483 | + | if ((bW == bW)) | |
484 | + | then { | |
485 | + | let bX = Issue(bM, bN, 0, 8, true, unit, 0) | |
486 | + | let bY = calculateAssetId(bX) | |
487 | + | [StringEntry(J(), bV), StringEntry(T(), toBase58String(bY)), BooleanEntry(I(), true), bX] | |
488 | + | } | |
489 | + | else throw("Strict value is not equal to itself.") | |
490 | + | } | |
491 | + | ||
492 | + | ||
493 | + | ||
494 | + | @Callable(aw) | |
495 | + | func issue (bZ) = { | |
496 | + | let bW = [aT(), bQ(aw)] | |
497 | + | if ((bW == bW)) | |
498 | + | then { | |
499 | + | let ca = aR() | |
500 | + | [Reissue(ca, bZ, true), ScriptTransfer(aw.caller, bZ, ca)] | |
501 | + | } | |
502 | + | else throw("Strict value is not equal to itself.") | |
503 | + | } | |
504 | + | ||
505 | + | ||
506 | + | ||
507 | + | @Callable(aw) | |
508 | + | func addAddress (ap) = { | |
509 | + | let bW = [at(), av(aw), br(ap), bU(ap)] | |
510 | + | if ((bW == bW)) | |
511 | + | then [BooleanEntry(bO(ap), true)] | |
512 | + | else throw("Strict value is not equal to itself.") | |
513 | + | } | |
514 | + | ||
515 | + | ||
516 | + | ||
517 | + | @Callable(aw) | |
518 | + | func removeAddress (ap) = { | |
519 | + | let bW = [at(), av(aw), br(ap), bT(ap)] | |
520 | + | if ((bW == bW)) | |
521 | + | then [BooleanEntry(bO(ap), false)] | |
522 | + | else throw("Strict value is not equal to itself.") | |
523 | + | } | |
524 | + | ||
525 | + | ||
526 | + | @Verifier(cb) | |
527 | + | func cc () = { | |
528 | + | let az = ay() | |
529 | + | if ($isInstanceOf(az, "String")) | |
530 | + | then { | |
531 | + | let Y = az | |
532 | + | valueOrElse(getBoolean(addressFromStringValue(Y), ao(toString(this), toBase58String(cb.id))), false) | |
533 | + | } | |
534 | + | else sigVerify(cb.bodyBytes, cb.proofs[0], cb.senderPublicKey) | |
535 | + | } | |
536 | + |
github/deemru/w8io/169f3d6 32.55 ms ◑