tx · 287fu18v9SMtwsn7pu62rzpNro9QS4iDuWn5pmvrhswj 3N9ptcZ3FABe4Vm2Gt68dYdzQU2ve6aoq9p: -0.05000000 Waves 2023.07.12 15:21 [2662674] smart account 3N9ptcZ3FABe4Vm2Gt68dYdzQU2ve6aoq9p > SELF 0.00000000 Waves
{ "type": 13, "id": "287fu18v9SMtwsn7pu62rzpNro9QS4iDuWn5pmvrhswj", "fee": 5000000, "feeAssetId": null, "timestamp": 1689164534278, "version": 2, "chainId": 84, "sender": "3N9ptcZ3FABe4Vm2Gt68dYdzQU2ve6aoq9p", "senderPublicKey": "9Xngx7HnYeFNUUxARD5uXKqT7oD3zsKqQffS3Mwgf8rT", "proofs": [ "24AQ8fLw4egE9XWyDB8k28S6uSTF7ZNs31rmf2qXTAoMiBoi48ak4U6G5MMFWLEA7KT9N71Xxq29d4LawbkPwVyv" ], "script": "base64:BgKJCAgCEgMKAQgSABIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQESAwoBARIDCgEBEgMKAQQSAwoBARIDCgEIIgNTRVAiCVBSRUNJU0lPTiIQTUlOX0FNT1VOVF9ERUxUQSIVTUFYX1JBVEVfSEVJR0hUX0RFTFRBIhFMSVFVSURBVElPTl9CT05VUyIYTElRVUlEQVRJT05fUFJPVE9DT0xfRkVFIg1TVEFCSUxJVFlfRkVFIgRkaXZwIgJfeCICX3kiBGpvaW4iAmFyIg5rZXlJbml0aWFsaXplZCIVa2V5Q29vcmRpbmF0b3JBZGRyZXNzIhJrZXlWZXJpZmllckFkZHJlc3MiEmtleUZyb250ZW5kQWRkcmVzcyIQa2V5TWludGVyQWRkcmVzcyISa2V5VHJlYXN1cnlBZGRyZXNzIhVrZXlFYXN0U3Rha2luZ0FkZHJlc3MiEmtleUV4Y2hhbmdlQWRkcmVzcyIUa2V5U3RhYmlsaXplckFkZHJlc3MiGWtleVJld2FyZEV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IAgkBDEludGVnZXJFbnRyeQIJAQFDAAUCYWwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFSARJzZXRSZXdhcmRFeGNoYW5nZXIBAUcEAmFkCQDMCAIJAQFRAQUBUgkAzAgCCQECYWEBBQFHBQNuaWwDCQAAAgUCYWQFAmFkCQDMCAIJAQtTdHJpbmdFbnRyeQIJAQF2AAUBRwUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJhbQECYW4ABAFVCQEBVAADCQABAgUBVQIGU3RyaW5nBAJhYgUBVQkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQJhYgkBAUYCCQClCAEFBHRoaXMJANgEAQgFAmFtAmlkBwkA9AMDCAUCYW0JYm9keUJ5dGVzCQCRAwIIBQJhbQZwcm9vZnMAAAgFAmFtD3NlbmRlclB1YmxpY0tleVsPav0=", "height": 2662674, "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 = 1000000000000 | |
7 | + | ||
8 | + | let c = 1000 | |
9 | + | ||
10 | + | let d = 5 | |
11 | + | ||
12 | + | let e = ((b / 100) * 5) | |
13 | + | ||
14 | + | let f = ((b / 100) * 2) | |
15 | + | ||
16 | + | let g = (b / 100) | |
17 | + | ||
18 | + | func h (i,j) = fraction(i, b, j, HALFEVEN) | |
19 | + | ||
20 | + | ||
21 | + | func k (l) = makeString(l, a) | |
22 | + | ||
23 | + | ||
24 | + | func m () = k(["%s", "initialized"]) | |
25 | + | ||
26 | + | ||
27 | + | func n () = k(["%s", "coordinatorAddress"]) | |
28 | + | ||
29 | + | ||
30 | + | func o () = k(["%s", "verifierAddress"]) | |
31 | + | ||
32 | + | ||
33 | + | func p () = k(["%s", "frontendAddress"]) | |
34 | + | ||
35 | + | ||
36 | + | func q () = k(["%s", "minterAddress"]) | |
37 | + | ||
38 | + | ||
39 | + | func r () = k(["%s", "treasuryAddress"]) | |
40 | + | ||
41 | + | ||
42 | + | func s () = k(["%s", "eastStakingAddress"]) | |
43 | + | ||
44 | + | ||
45 | + | func t () = k(["%s", "exchangeAddress"]) | |
46 | + | ||
47 | + | ||
48 | + | func u () = k(["%s", "stabilizerAddress"]) | |
49 | + | ||
50 | + | ||
51 | + | func v () = k(["%s", "rewardExchangeAddress"]) | |
52 | + | ||
53 | + | ||
54 | + | func w () = k(["%s", "eastAsset"]) | |
55 | + | ||
56 | + | ||
57 | + | func x () = k(["%s", "stEastAsset"]) | |
58 | + | ||
59 | + | ||
60 | + | func y () = k(["%s", "precision"]) | |
61 | + | ||
62 | + | ||
63 | + | func z () = k(["%s", "liquidationBonus"]) | |
64 | + | ||
65 | + | ||
66 | + | func A () = k(["%s", "liquidationProtocolFee"]) | |
67 | + | ||
68 | + | ||
69 | + | func B () = k(["%s", "stabilityFee"]) | |
70 | + | ||
71 | + | ||
72 | + | func C () = k(["%s", "maxSlippage"]) | |
73 | + | ||
74 | + | ||
75 | + | func D () = k(["%s", "minAmountDelta"]) | |
76 | + | ||
77 | + | ||
78 | + | func E () = k(["%s", "maxRateHeightDelta"]) | |
79 | + | ||
80 | + | ||
81 | + | func F (G,H) = k(["%s%s%s", "signed", G, H]) | |
82 | + | ||
83 | + | ||
84 | + | func I () = k(["%s", "protocolActive"]) | |
85 | + | ||
86 | + | ||
87 | + | func J () = k(["%s", "orientMinterAddress"]) | |
88 | + | ||
89 | + | ||
90 | + | func K () = k(["%s", "orientWestingAddress"]) | |
91 | + | ||
92 | + | ||
93 | + | func L () = k(["%s", "orientStakingAddress"]) | |
94 | + | ||
95 | + | ||
96 | + | func M () = k(["%s", "orientBackendAddress"]) | |
97 | + | ||
98 | + | ||
99 | + | func N () = k(["%s", "orientAsset"]) | |
100 | + | ||
101 | + | ||
102 | + | func O () = valueOrElse(getBoolean(this, m()), false) | |
103 | + | ||
104 | + | ||
105 | + | func P () = if (O()) | |
106 | + | then throw("Already initialized") | |
107 | + | else unit | |
108 | + | ||
109 | + | ||
110 | + | func Q (R) = if ((R.caller != this)) | |
111 | + | then throw("Only self invocation allowed.") | |
112 | + | else unit | |
113 | + | ||
114 | + | ||
115 | + | func S () = addressFromStringValue(valueOrErrorMessage(getString(n()), "Coordinator is not set")) | |
116 | + | ||
117 | + | ||
118 | + | func T () = { | |
119 | + | let U = getString(n()) | |
120 | + | if ($isInstanceOf(U, "String")) | |
121 | + | then { | |
122 | + | let V = U | |
123 | + | getString(addressFromStringValue(V), o()) | |
124 | + | } | |
125 | + | else if ($isInstanceOf(U, "Unit")) | |
126 | + | then unit | |
127 | + | else throw("Match error") | |
128 | + | } | |
129 | + | ||
130 | + | ||
131 | + | func W (X,Y) = addressFromStringValue(valueOrErrorMessage(getString(S(), X), Y)) | |
132 | + | ||
133 | + | ||
134 | + | func Z () = W(p(), "Frontend is not set") | |
135 | + | ||
136 | + | ||
137 | + | func aa (G) = { | |
138 | + | let U = addressFromString(G) | |
139 | + | if ($isInstanceOf(U, "Address")) | |
140 | + | then { | |
141 | + | let ab = U | |
142 | + | true | |
143 | + | } | |
144 | + | else if ($isInstanceOf(U, "Unit")) | |
145 | + | then throw("Invalid address") | |
146 | + | else throw("Match error") | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | @Callable(R) | |
151 | + | func setVerifier (G) = { | |
152 | + | let ac = [Q(R), aa(G)] | |
153 | + | if ((ac == ac)) | |
154 | + | then if (isDefined(T())) | |
155 | + | then throw("Verifier already defined") | |
156 | + | else [StringEntry(o(), G)] | |
157 | + | else throw("Strict value is not equal to itself.") | |
158 | + | } | |
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | @Callable(R) | |
163 | + | func initialize () = { | |
164 | + | let ad = [Q(R), P()] | |
165 | + | if ((ad == ad)) | |
166 | + | then [StringEntry(n(), toString(this)), IntegerEntry(E(), d), IntegerEntry(D(), c), IntegerEntry(z(), e), IntegerEntry(A(), f), IntegerEntry(B(), g), IntegerEntry(y(), b), BooleanEntry(I(), true), BooleanEntry(m(), true)] | |
167 | + | else throw("Strict value is not equal to itself.") | |
168 | + | } | |
169 | + | ||
170 | + | ||
171 | + | ||
172 | + | @Callable(R) | |
173 | + | func setMinter (G) = { | |
174 | + | let ad = [Q(R), aa(G)] | |
175 | + | if ((ad == ad)) | |
176 | + | then [StringEntry(q(), G)] | |
177 | + | else throw("Strict value is not equal to itself.") | |
178 | + | } | |
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | @Callable(R) | |
183 | + | func setFrontend (G) = { | |
184 | + | let ad = [Q(R), aa(G)] | |
185 | + | if ((ad == ad)) | |
186 | + | then [StringEntry(p(), G)] | |
187 | + | else throw("Strict value is not equal to itself.") | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | @Callable(R) | |
193 | + | func setTreasury (G) = { | |
194 | + | let ad = [Q(R), aa(G)] | |
195 | + | if ((ad == ad)) | |
196 | + | then [StringEntry(r(), G)] | |
197 | + | else throw("Strict value is not equal to itself.") | |
198 | + | } | |
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | @Callable(R) | |
203 | + | func setEastStaking (G) = { | |
204 | + | let ad = [Q(R), aa(G)] | |
205 | + | if ((ad == ad)) | |
206 | + | then [StringEntry(s(), G)] | |
207 | + | else throw("Strict value is not equal to itself.") | |
208 | + | } | |
209 | + | ||
210 | + | ||
211 | + | ||
212 | + | @Callable(R) | |
213 | + | func setOrientMinter (G) = { | |
214 | + | let ad = [Q(R), aa(G)] | |
215 | + | if ((ad == ad)) | |
216 | + | then [StringEntry(J(), G)] | |
217 | + | else throw("Strict value is not equal to itself.") | |
218 | + | } | |
219 | + | ||
220 | + | ||
221 | + | ||
222 | + | @Callable(R) | |
223 | + | func setOrientWesting (G) = { | |
224 | + | let ad = [Q(R), aa(G)] | |
225 | + | if ((ad == ad)) | |
226 | + | then [StringEntry(K(), G)] | |
227 | + | else throw("Strict value is not equal to itself.") | |
228 | + | } | |
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | @Callable(R) | |
233 | + | func setOrientBackend (G) = { | |
234 | + | let ad = [Q(R), aa(G)] | |
235 | + | if ((ad == ad)) | |
236 | + | then [StringEntry(M(), G)] | |
237 | + | else throw("Strict value is not equal to itself.") | |
238 | + | } | |
239 | + | ||
240 | + | ||
241 | + | ||
242 | + | @Callable(R) | |
243 | + | func setOrientStaking (G) = { | |
244 | + | let ad = [Q(R), aa(G)] | |
245 | + | if ((ad == ad)) | |
246 | + | then [StringEntry(L(), G)] | |
247 | + | else throw("Strict value is not equal to itself.") | |
248 | + | } | |
249 | + | ||
250 | + | ||
251 | + | ||
252 | + | @Callable(R) | |
253 | + | func setExchange (G) = { | |
254 | + | let ad = [Q(R), aa(G)] | |
255 | + | if ((ad == ad)) | |
256 | + | then [StringEntry(t(), G)] | |
257 | + | else throw("Strict value is not equal to itself.") | |
258 | + | } | |
259 | + | ||
260 | + | ||
261 | + | ||
262 | + | @Callable(R) | |
263 | + | func setEastAsset (ae) = { | |
264 | + | let ad = [Q(R)] | |
265 | + | if ((ad == ad)) | |
266 | + | then [StringEntry(w(), ae)] | |
267 | + | else throw("Strict value is not equal to itself.") | |
268 | + | } | |
269 | + | ||
270 | + | ||
271 | + | ||
272 | + | @Callable(R) | |
273 | + | func setStEastAsset (ae) = { | |
274 | + | let ad = [Q(R)] | |
275 | + | if ((ad == ad)) | |
276 | + | then [StringEntry(x(), ae)] | |
277 | + | else throw("Strict value is not equal to itself.") | |
278 | + | } | |
279 | + | ||
280 | + | ||
281 | + | ||
282 | + | @Callable(R) | |
283 | + | func setOrientAsset (ae) = { | |
284 | + | let ad = [Q(R)] | |
285 | + | if ((ad == ad)) | |
286 | + | then [StringEntry(N(), ae)] | |
287 | + | else throw("Strict value is not equal to itself.") | |
288 | + | } | |
289 | + | ||
290 | + | ||
291 | + | ||
292 | + | @Callable(R) | |
293 | + | func setStabilizer (af) = { | |
294 | + | let ad = [Q(R), aa(af)] | |
295 | + | if ((ad == ad)) | |
296 | + | then [StringEntry(u(), af)] | |
297 | + | else throw("Strict value is not equal to itself.") | |
298 | + | } | |
299 | + | ||
300 | + | ||
301 | + | ||
302 | + | @Callable(R) | |
303 | + | func setMaxRateHeightDelta (ag) = { | |
304 | + | let ad = [Q(R)] | |
305 | + | if ((ad == ad)) | |
306 | + | then [IntegerEntry(E(), ag)] | |
307 | + | else throw("Strict value is not equal to itself.") | |
308 | + | } | |
309 | + | ||
310 | + | ||
311 | + | ||
312 | + | @Callable(R) | |
313 | + | func setMinAmountDelta (ag) = { | |
314 | + | let ad = [Q(R)] | |
315 | + | if ((ad == ad)) | |
316 | + | then [IntegerEntry(D(), ag)] | |
317 | + | else throw("Strict value is not equal to itself.") | |
318 | + | } | |
319 | + | ||
320 | + | ||
321 | + | ||
322 | + | @Callable(R) | |
323 | + | func setStabilityFee (ah) = { | |
324 | + | let ad = [Q(R)] | |
325 | + | if ((ad == ad)) | |
326 | + | then { | |
327 | + | let ai = invoke(Z(), "updateFraction", nil, nil) | |
328 | + | if ((ai == ai)) | |
329 | + | then { | |
330 | + | let aj = h(ah, 1000) | |
331 | + | [IntegerEntry(B(), aj)] | |
332 | + | } | |
333 | + | else throw("Strict value is not equal to itself.") | |
334 | + | } | |
335 | + | else throw("Strict value is not equal to itself.") | |
336 | + | } | |
337 | + | ||
338 | + | ||
339 | + | ||
340 | + | @Callable(R) | |
341 | + | func setProtocolActive (ak) = { | |
342 | + | let ad = [Q(R)] | |
343 | + | if ((ad == ad)) | |
344 | + | then [BooleanEntry(I(), ak)] | |
345 | + | else throw("Strict value is not equal to itself.") | |
346 | + | } | |
347 | + | ||
348 | + | ||
349 | + | ||
350 | + | @Callable(R) | |
351 | + | func setMaxSlippage (al) = { | |
352 | + | let ad = [Q(R)] | |
353 | + | if ((ad == ad)) | |
354 | + | then [IntegerEntry(C(), al)] | |
355 | + | else throw("Strict value is not equal to itself.") | |
356 | + | } | |
357 | + | ||
358 | + | ||
359 | + | ||
360 | + | @Callable(R) | |
361 | + | func setRewardExchanger (G) = { | |
362 | + | let ad = [Q(R), aa(G)] | |
363 | + | if ((ad == ad)) | |
364 | + | then [StringEntry(v(), G)] | |
365 | + | else throw("Strict value is not equal to itself.") | |
366 | + | } | |
367 | + | ||
368 | + | ||
369 | + | @Verifier(am) | |
370 | + | func an () = { | |
371 | + | let U = T() | |
372 | + | if ($isInstanceOf(U, "String")) | |
373 | + | then { | |
374 | + | let ab = U | |
375 | + | valueOrElse(getBoolean(addressFromStringValue(ab), F(toString(this), toBase58String(am.id))), false) | |
376 | + | } | |
377 | + | else sigVerify(am.bodyBytes, am.proofs[0], am.senderPublicKey) | |
378 | + | } | |
379 | + |
github/deemru/w8io/026f985 23.58 ms ◑