tx · 2oEYtpV1GB2GYFoYeaSTyv8sxojKkPfLjD7mcVLZoCGW 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA: -0.01400000 Waves 2022.03.11 17:19 [1959397] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves
{ "type": 13, "id": "2oEYtpV1GB2GYFoYeaSTyv8sxojKkPfLjD7mcVLZoCGW", "fee": 1400000, "feeAssetId": null, "timestamp": 1647008339748, "version": 1, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "2UDNzyzUAX9TQLVFe7NLBpPxHzrnz9HFn96XNktgJsZsLbhrCi89ucWU9DZ3GVg3udhLaWeEkyEc6rQ1YkJUeaJo" ], "script": "base64:AAIFAAAAAAAAABsIAhIJCgcIAQEBAQEIEgMKAQESABIDCgEIEgAAAAAkAAAAAANTRVACAAAAAl9fAQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAARa2V5RmFjdG9yeUFkZHJlc3MAAAAAAgAAABwlcyVzX19jb25maWdfX2ZhY3RvcnlBZGRyZXNzAAAAABhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAAAAAAAAAAAAEAAAAAGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAAAAAAAAAAAAIAAAAAFElkeEZhY3RvcnlDZmdJZG9EYXBwAAAAAAAAAAADAAAAABVJZHhGYWN0b3J5Q2ZnVGVhbURhcHAAAAAAAAAAAAQAAAAAGUlkeEZhY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JsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXlmRwea", "chainId": 84, "height": 1959397, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GjY1aZ5yXx65dW2UX9mSs8s9ucQa8RiJxx6yMSV9h5tC Next: CzxjTAPjUHpug2GKuFdA3ZrRWEoXQ7ZGouWJCXNaLYoC Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | func b (c,d) = valueOrErrorMessage(getString(c, d), (("mandatory this." + d) + " is not defined")) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func e () = "%s%s__config__factoryAddress" | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | let f = 1 | |
13 | 13 | ||
14 | 14 | let g = 2 | |
15 | 15 | ||
16 | 16 | let h = 3 | |
17 | 17 | ||
18 | 18 | let i = 4 | |
19 | 19 | ||
20 | 20 | let j = 5 | |
21 | 21 | ||
22 | 22 | let k = 6 | |
23 | 23 | ||
24 | 24 | let l = 7 | |
25 | 25 | ||
26 | 26 | let m = 10 | |
27 | 27 | ||
28 | 28 | func n () = "%s__factoryConfig" | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func o (p) = makeString(["%s%s%s", p, "mappings__lpAsset2PoolContract"], a) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func q () = "%s__lpTokensList" | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func r (p) = makeString(["%s%s%s", p, "mappings__lpAsset2PoolContract"], a) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func s (t) = makeString(["%s%s", "poolWeight", t], a) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func u () = addressFromStringValue(b(this, e())) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func v () = split(valueOrElse(getString(u(), q()), ""), a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func w (x) = split(b(x, n()), a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func y (z) = addressFromStringValue(z[g]) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func A (z) = addressFromStringValue(z[j]) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func B (z) = addressFromStringValue(z[f]) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func C (z) = addressFromStringValue(z[m]) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func D () = "%s__config" | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func E () = "%s%s__ratePerBlockMax__current" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func F (G,H) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(G), toString(H)], a) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func I () = "%s%s__ratePerBlock__current" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func J (G,H) = makeString(["%s%s%d%d__ratePerBlock__start", toString(G), toString(H)], a) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func K () = "%s%s__emission__startBlock" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func L () = "%s%s__emission__duration" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func M () = "%s%s__emission__endBlock" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func N () = "%s__managerPublicKey" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func O () = "%s__pendingManagerPublicKey" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func P () = { | |
95 | 95 | let Q = getString(N()) | |
96 | 96 | if ($isInstanceOf(Q, "String")) | |
97 | 97 | then { | |
98 | 98 | let R = Q | |
99 | 99 | fromBase58String(R) | |
100 | 100 | } | |
101 | 101 | else if ($isInstanceOf(Q, "Unit")) | |
102 | 102 | then unit | |
103 | 103 | else throw("Match error") | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func S () = { | |
108 | 108 | let Q = getString(O()) | |
109 | 109 | if ($isInstanceOf(Q, "String")) | |
110 | 110 | then { | |
111 | 111 | let R = Q | |
112 | 112 | fromBase58String(R) | |
113 | 113 | } | |
114 | 114 | else if ($isInstanceOf(Q, "Unit")) | |
115 | 115 | then unit | |
116 | 116 | else throw("Match error") | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func T (U) = { | |
121 | 121 | let V = throw("Permission denied") | |
122 | 122 | let Q = P() | |
123 | 123 | if ($isInstanceOf(Q, "ByteVector")) | |
124 | 124 | then { | |
125 | 125 | let W = Q | |
126 | 126 | if ((U.callerPublicKey == W)) | |
127 | 127 | then true | |
128 | 128 | else V | |
129 | 129 | } | |
130 | 130 | else if ($isInstanceOf(Q, "Unit")) | |
131 | 131 | then if ((U.caller == this)) | |
132 | 132 | then true | |
133 | 133 | else V | |
134 | 134 | else throw("Match error") | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | @Callable(U) | |
139 | 139 | func constructor (X,Y,Z,aa,ab,ac,ad) = { | |
140 | 140 | let ae = T(U) | |
141 | 141 | if ((ae == ae)) | |
142 | 142 | then [IntegerEntry(F(ac, aa), Y), IntegerEntry(E(), Y), IntegerEntry(J(ac, aa), Z), IntegerEntry(I(), Z), IntegerEntry(K(), aa), IntegerEntry(L(), ab), IntegerEntry(M(), (aa + ab)), StringEntry(e(), X), StringEntry(D(), ("%s__" + ad))] | |
143 | 143 | else throw("Strict value is not equal to itself.") | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | ||
148 | 148 | @Callable(U) | |
149 | 149 | func emit (af) = if ((0 >= af)) | |
150 | 150 | then $Tuple2(nil, nil) | |
151 | 151 | else { | |
152 | 152 | let ag = u() | |
153 | 153 | let z = w(ag) | |
154 | 154 | let ah = B(z) | |
155 | 155 | let ai = C(z) | |
156 | 156 | let aj = U.caller | |
157 | 157 | if (if ((aj != ah)) | |
158 | 158 | then (aj != ai) | |
159 | 159 | else false) | |
160 | 160 | then throw("permissions denied") | |
161 | 161 | else { | |
162 | 162 | let ad = split(b(this, D()), a)[1] | |
163 | 163 | let ak = fromBase58String(ad) | |
164 | 164 | $Tuple2([ScriptTransfer(aj, af, ak)], [ak]) | |
165 | 165 | } | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(U) | |
171 | 171 | func burn () = { | |
172 | 172 | let ag = u() | |
173 | 173 | let z = w(ag) | |
174 | 174 | let al = y(z) | |
175 | 175 | if ((size(U.payments) != 1)) | |
176 | 176 | then throw("exact one payment is allowed") | |
177 | 177 | else { | |
178 | 178 | let am = U.payments[0] | |
179 | 179 | let an = value(am.assetId) | |
180 | 180 | let ao = am.amount | |
181 | 181 | let ak = fromBase58String(split(b(this, D()), a)[1]) | |
182 | 182 | if ((an != ak)) | |
183 | 183 | then throw("invalid wxAssetId is passed") | |
184 | 184 | else if ((U.caller != al)) | |
185 | 185 | then throw("permissions denied") | |
186 | 186 | else [Burn(an, ao), StringEntry(("%s%s%s__history__burn__" + toBase58String(U.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(ao)], a))] | |
187 | 187 | } | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | ||
192 | 192 | @Callable(U) | |
193 | 193 | func setManager (ap) = { | |
194 | 194 | let ae = T(U) | |
195 | 195 | if ((ae == ae)) | |
196 | 196 | then { | |
197 | 197 | let aq = fromBase58String(ap) | |
198 | 198 | if ((aq == aq)) | |
199 | 199 | then [StringEntry(O(), ap)] | |
200 | 200 | else throw("Strict value is not equal to itself.") | |
201 | 201 | } | |
202 | 202 | else throw("Strict value is not equal to itself.") | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | ||
207 | 207 | @Callable(U) | |
208 | 208 | func confirmManager () = { | |
209 | 209 | let ar = S() | |
210 | 210 | let as = if (isDefined(ar)) | |
211 | 211 | then true | |
212 | 212 | else throw("No pending manager") | |
213 | 213 | if ((as == as)) | |
214 | 214 | then { | |
215 | 215 | let at = if ((U.callerPublicKey == value(ar))) | |
216 | 216 | then true | |
217 | 217 | else throw("You are not pending manager") | |
218 | 218 | if ((at == at)) | |
219 | 219 | then [StringEntry(N(), toBase58String(value(ar))), DeleteEntry(O())] | |
220 | 220 | else throw("Strict value is not equal to itself.") | |
221 | 221 | } | |
222 | 222 | else throw("Strict value is not equal to itself.") | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Verifier(au) | |
227 | 227 | func av () = { | |
228 | 228 | let aw = { | |
229 | 229 | let Q = P() | |
230 | 230 | if ($isInstanceOf(Q, "ByteVector")) | |
231 | 231 | then { | |
232 | 232 | let W = Q | |
233 | 233 | W | |
234 | 234 | } | |
235 | 235 | else if ($isInstanceOf(Q, "Unit")) | |
236 | 236 | then au.senderPublicKey | |
237 | 237 | else throw("Match error") | |
238 | 238 | } | |
239 | 239 | sigVerify(au.bodyBytes, au.proofs[0], aw) | |
240 | 240 | } | |
241 | 241 |
github/deemru/w8io/026f985 36.21 ms ◑