tx · 5ifMM8dPiZ7dWFGqw4TSnFr2dnkDQrVkRAbNxZVp7YsU 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01400000 Waves 2023.05.04 12:27 [2562830] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "5ifMM8dPiZ7dWFGqw4TSnFr2dnkDQrVkRAbNxZVp7YsU", "fee": 1400000, "feeAssetId": null, "timestamp": 1683192443064, "version": 2, "chainId": 84, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "5tY9s9z9SzdTxUnrK89LCqTbdKKrxH6dcEM2biLA2ftdwQNG4GyEUSjgvXeAhS1poJ5ihZL95tyd2ae1X4jyi2Xo" ], "script": "base64:BgLiEAgCEgkKBwgICBgBCAESABIAEggKBggICAgICBIDCgEYEgMKAQgSABIAEgQKAggIIhBjb250cmFjdEZpbGVuYW1lIgNTRVAiDHdhdmVzQXNzZXRJZCIHVkxUUE9PTCIIU1RCTFBPT0wiEWludmFsaWRQcmljZUFzc2V0Igd3cmFwRXJyIgNtc2ciCHRocm93RXJyIgd0aHJvd1BEIhR0aHJvd0NyZWF0ZU5vdENhbGxlZCIRdGhyb3dZb3VOb3RJc3N1ZXIiD3Rocm93UG9vbEV4aXN0cyIVdGhyb3dBc3NldE5vdFZlcmlmaWVkIhZ0aHJvd0ludmFsaWRQcmljZUFzc2V0IhR0aHJvd0ludmFsaWRGZWVBc3NldCIXdGhyb3dJbnZhbGlkQW1vdW50QXNzZXQiEnRocm93SW52YWxpZFN0YXR1cyIfdGhyb3dDYW5BY3RpdmF0ZU9ubHlQZW5kaW5nUG9vbCIddGhyb3dGYWN0b3J5UmV0dXJuZWROb3RTdHJpbmciHHRocm93SW52YWxpZFByaWNlQXNzZXRBbW91bnQiD3Rocm93SW52YWxpZEZlZ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EBQJiRAkAzAgCCQELU3RyaW5nRW50cnkCCQEBeAAJANgEAQkBBXZhbHVlAQUCYkIJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAXkABQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4CYW8BE3ByaWNlQXNzZXRzUkVBRE9OTFkACQCUCgIFA25pbAkBAmFhAQkAoggBCQEBWAACYW8BDnN0YXR1c1JFQURPTkxZAgFCAUMEAmFBBAJhYwkAoggBCQEBQQIFAUIFAUMDCQABAgUCYWMCBlN0cmluZwQCYWQFAmFjBQJhZAUEdW5pdAkAlAoCBQNuaWwFAmFBAQJiRQECYkYABAJiRwQCYWMJAQJhbAADCQABAgUCYWMCCkJ5dGVWZWN0b3IEAmFwBQJhYwUCYXADCQABAgUCYWMCBFVuaXQIBQJiRQ9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCYkUJYm9keUJ5dGVzCQCRAwIIBQJiRQZwcm9vZnMAAAUCYkecq8VI", "height": 2562830, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5LWRgKxspmWRZ5VApBsmk7A3vWPYYNiVPVnfrbFocqcg Next: EJLspSb7yyEbxUC9rjtAW6t767SsgtqZUCxaEKhJrV3e Diff:
Old | New | Differences | |
---|---|---|---|
342 | 342 | ||
343 | 343 | ||
344 | 344 | @Callable(ao) | |
345 | - | func createStable () = aB(ao, e) | |
345 | + | func createStable () = { | |
346 | + | let bl = aq(ao) | |
347 | + | if ((bl == bl)) | |
348 | + | then aB(ao, e) | |
349 | + | else throw("Strict value is not equal to itself.") | |
350 | + | } | |
346 | 351 | ||
347 | 352 | ||
348 | 353 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "user_pools.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = "WAVES" | |
9 | 9 | ||
10 | 10 | let d = "VLTPOOL" | |
11 | 11 | ||
12 | 12 | let e = "STBLPOOL" | |
13 | 13 | ||
14 | 14 | let f = "Invalid price asset" | |
15 | 15 | ||
16 | 16 | func g (h) = makeString([a, ": ", h], "") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j () = i("Permission denied") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func k () = i("Create is not called for assets pair") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func l () = i("You are not amountAsset issuer") | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func m () = i("Pool with such assets already exists") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func n () = i("Asset is not verified") | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func o () = i(f) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func p () = i("Invalid fee asset") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func q () = i("Invalid amount asset attached") | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func r () = i("Invalid status") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func s () = i("Can activate pool only in 'pending' status") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func t () = i("FactoryV2 returned not string") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func u () = i("invalid price asset amount") | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func v () = i("invalid fee") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func w () = i("invalid asset pair") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func x () = makeString(["%s", "managerPublicKey"], b) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func y () = makeString(["%s", "pendingManagerPublicKey"], b) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func z () = makeString(["%s", "adminPubKeys"], b) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func A (B,C) = makeString(["%s%s%s", "status", B, C], b) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D () = makeString(["%s", "factoryContract"], b) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func E () = makeString(["%s", "assetsStoreContract"], b) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func F () = makeString(["%s", "emissionContract"], b) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func G (B,C) = makeString(["%s%s%s", "suffix", B, C], b) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func H () = makeString(["%s", "lastIndex"], b) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | let I = "u" | |
92 | 92 | ||
93 | 93 | let J = "pending" | |
94 | 94 | ||
95 | 95 | let K = "declined" | |
96 | 96 | ||
97 | 97 | let L = "active" | |
98 | 98 | ||
99 | 99 | let M = [J, K, L] | |
100 | 100 | ||
101 | 101 | func N (B,C) = makeString(["%s%s%s", "createCalled", B, C], b) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func O (B,C) = makeString(["%s%s%s", "createCaller", B, C], b) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func P (B,C) = makeString(["%s%s%s", "amountAssetAmount", B, C], b) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func Q (B,C) = makeString(["%s%s%s", "priceAssetAmount", B, C], b) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func R (B,C) = makeString(["%s%s%s", "height", B, C], b) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func S (B,C) = makeString(["%s%s%s", "poolType", B, C], b) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func T () = makeString(["%s", "feeAssetId"], b) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func U () = makeString(["%s", "feeAmount"], b) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func V () = makeString(["%s", "amountAssetMinAmount"], b) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func W () = makeString(["%s", "priceAssetsMinAmount"], b) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func X () = makeString(["%s", "priceAssets"], b) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func Y (Z) = valueOrErrorMessage(getString(this, Z), (Z + " is not defined")) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func aa (ab) = { | |
138 | 138 | let ac = ab | |
139 | 139 | if ($isInstanceOf(ac, "String")) | |
140 | 140 | then { | |
141 | 141 | let ad = ac | |
142 | 142 | if ((size(ad) == 0)) | |
143 | 143 | then nil | |
144 | 144 | else split(ad, b) | |
145 | 145 | } | |
146 | 146 | else if ($isInstanceOf(ac, "Unit")) | |
147 | 147 | then nil | |
148 | 148 | else throw("Match error") | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | let ae = addressFromStringValue(Y(D())) | |
153 | 153 | ||
154 | 154 | let af = makeString(["%s", "votingEmissionContract"], b) | |
155 | 155 | ||
156 | 156 | let ag = addressFromStringValue(valueOrErrorMessage(getString(ae, af), g("voting emission contract address is required"))) | |
157 | 157 | ||
158 | 158 | let ah = makeString(["%s", "votingEmissionCandidateContract"], b) | |
159 | 159 | ||
160 | 160 | let ai = addressFromStringValue(valueOrErrorMessage(getString(ag, ah), g("voting emission candidate contract address is required"))) | |
161 | 161 | ||
162 | 162 | func aj (B,C) = valueOrElse(getBoolean(N(B, C)), false) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ak (B,C) = if (aj(B, C)) | |
166 | 166 | then true | |
167 | 167 | else k() | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func al () = { | |
171 | 171 | let ac = getString(x()) | |
172 | 172 | if ($isInstanceOf(ac, "String")) | |
173 | 173 | then { | |
174 | 174 | let ad = ac | |
175 | 175 | fromBase58String(ad) | |
176 | 176 | } | |
177 | 177 | else if ($isInstanceOf(ac, "Unit")) | |
178 | 178 | then unit | |
179 | 179 | else throw("Match error") | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func am () = { | |
184 | 184 | let ac = getString(y()) | |
185 | 185 | if ($isInstanceOf(ac, "String")) | |
186 | 186 | then { | |
187 | 187 | let ad = ac | |
188 | 188 | fromBase58String(ad) | |
189 | 189 | } | |
190 | 190 | else if ($isInstanceOf(ac, "Unit")) | |
191 | 191 | then unit | |
192 | 192 | else throw("Match error") | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func an (ao) = { | |
197 | 197 | let ac = al() | |
198 | 198 | if ($isInstanceOf(ac, "ByteVector")) | |
199 | 199 | then { | |
200 | 200 | let ap = ac | |
201 | 201 | (ao.callerPublicKey == ap) | |
202 | 202 | } | |
203 | 203 | else if ($isInstanceOf(ac, "Unit")) | |
204 | 204 | then (ao.caller == this) | |
205 | 205 | else throw("Match error") | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func aq (ao) = if (an(ao)) | |
210 | 210 | then true | |
211 | 211 | else j() | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func ar (ao) = { | |
215 | 215 | let as = aa(getString(z())) | |
216 | 216 | if (containsElement(as, toBase58String(ao.callerPublicKey))) | |
217 | 217 | then true | |
218 | 218 | else aq(ao) | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func at (au) = (valueOrElse(getInteger(addressFromStringValue(Y(E())), (("status_<" + au) + ">")), 0) == 2) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func av (aw) = { | |
226 | 226 | let ac = aw.assetId | |
227 | 227 | if ($isInstanceOf(ac, "ByteVector")) | |
228 | 228 | then { | |
229 | 229 | let ax = ac | |
230 | 230 | let ay = value(assetInfo(ax)) | |
231 | 231 | $Tuple2(toBase58String(ax), ay) | |
232 | 232 | } | |
233 | 233 | else if ($isInstanceOf(ac, "Unit")) | |
234 | 234 | then $Tuple2(c, unit) | |
235 | 235 | else throw("Match error") | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func az (aA) = containsElement(M, aA) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func aB (ao,aC) = { | |
243 | 243 | let aD = value(ao.payments[0]) | |
244 | 244 | let aE = value(ao.payments[1]) | |
245 | 245 | let aF = value(ao.payments[2]) | |
246 | 246 | let aG = av(aD) | |
247 | 247 | let aH = aG._1 | |
248 | 248 | let aI = aG._2 | |
249 | 249 | let aJ = av(aE) | |
250 | 250 | let aK = aJ._1 | |
251 | 251 | let aL = aJ._2 | |
252 | 252 | let aM = av(aF) | |
253 | 253 | let aN = aM._1 | |
254 | 254 | let aO = aM._2 | |
255 | 255 | let aP = aa(getString(ae, X())) | |
256 | 256 | let aQ = if ((aH != aK)) | |
257 | 257 | then true | |
258 | 258 | else w() | |
259 | 259 | if ((aQ == aQ)) | |
260 | 260 | then { | |
261 | 261 | let aR = if (if (an(ao)) | |
262 | 262 | then true | |
263 | 263 | else if (containsElement(aP, aK)) | |
264 | 264 | then at(aH) | |
265 | 265 | else false) | |
266 | 266 | then $Tuple4(aH, aD.amount, aK, aE.amount) | |
267 | 267 | else if (if (containsElement(aP, aH)) | |
268 | 268 | then at(aK) | |
269 | 269 | else false) | |
270 | 270 | then $Tuple4(aK, aE.amount, aH, aD.amount) | |
271 | 271 | else w() | |
272 | 272 | let B = aR._1 | |
273 | 273 | let aS = aR._2 | |
274 | 274 | let C = aR._3 | |
275 | 275 | let aT = aR._4 | |
276 | 276 | let aU = 1 | |
277 | 277 | let aV = if (an(ao)) | |
278 | 278 | then aU | |
279 | 279 | else { | |
280 | 280 | let aW = valueOrErrorMessage(indexOf(aP, C), f) | |
281 | 281 | value(parseInt(aa(getString(W()))[aW])) | |
282 | 282 | } | |
283 | 283 | let aX = valueOrElse(getInteger(H()), 0) | |
284 | 284 | let aY = (aX + 1) | |
285 | 285 | let aZ = addressFromStringValue(Y(F())) | |
286 | 286 | let ba = { | |
287 | 287 | let bb = invoke(ae, "poolExistsREADONLY", [B, C], nil) | |
288 | 288 | if ($isInstanceOf(bb, "Boolean")) | |
289 | 289 | then bb | |
290 | 290 | else throw(($getType(bb) + " couldn't be cast to Boolean")) | |
291 | 291 | } | |
292 | 292 | let bc = [if (!(aj(B, C))) | |
293 | 293 | then true | |
294 | 294 | else m(), if (!(ba)) | |
295 | 295 | then true | |
296 | 296 | else m(), if (if (an(ao)) | |
297 | 297 | then true | |
298 | 298 | else (getString(T()) == aN)) | |
299 | 299 | then true | |
300 | 300 | else p(), if (if (an(ao)) | |
301 | 301 | then true | |
302 | 302 | else (aS >= getIntegerValue(V()))) | |
303 | 303 | then true | |
304 | 304 | else q(), if (if (an(ao)) | |
305 | 305 | then true | |
306 | 306 | else (aT >= aV)) | |
307 | 307 | then true | |
308 | 308 | else u(), if (if (an(ao)) | |
309 | 309 | then true | |
310 | 310 | else (aF.amount == getInteger(U()))) | |
311 | 311 | then true | |
312 | 312 | else v()] | |
313 | 313 | if ((bc == bc)) | |
314 | 314 | then { | |
315 | 315 | let bd = 3 | |
316 | 316 | let be = if ((size(ao.payments) >= bd)) | |
317 | 317 | then invoke(aZ, "burn", nil, [AttachedPayment(fromBase58String(aN), aF.amount)]) | |
318 | 318 | else unit | |
319 | 319 | if ((be == be)) | |
320 | 320 | then [BooleanEntry(N(B, C), true), StringEntry(O(B, C), toString(ao.caller)), IntegerEntry(H(), aY), StringEntry(G(B, C), (toString(aY) + I)), IntegerEntry(R(B, C), height), StringEntry(A(B, C), J), IntegerEntry(P(B, C), aS), IntegerEntry(Q(B, C), aT), StringEntry(S(B, C), aC)] | |
321 | 321 | else throw("Strict value is not equal to itself.") | |
322 | 322 | } | |
323 | 323 | else throw("Strict value is not equal to itself.") | |
324 | 324 | } | |
325 | 325 | else throw("Strict value is not equal to itself.") | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | @Callable(ao) | |
330 | 330 | func constructor (bf,bg,bh,bi,bj,aN,bk) = { | |
331 | 331 | let bl = aq(ao) | |
332 | 332 | if ((bl == bl)) | |
333 | 333 | then [StringEntry(D(), bf), StringEntry(E(), bg), StringEntry(F(), bh), StringEntry(W(), makeString(bi, b)), IntegerEntry(V(), bj), StringEntry(T(), aN), IntegerEntry(U(), bk)] | |
334 | 334 | else throw("Strict value is not equal to itself.") | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(ao) | |
340 | 340 | func create () = aB(ao, d) | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | ||
344 | 344 | @Callable(ao) | |
345 | - | func createStable () = aB(ao, e) | |
345 | + | func createStable () = { | |
346 | + | let bl = aq(ao) | |
347 | + | if ((bl == bl)) | |
348 | + | then aB(ao, e) | |
349 | + | else throw("Strict value is not equal to itself.") | |
350 | + | } | |
346 | 351 | ||
347 | 352 | ||
348 | 353 | ||
349 | 354 | @Callable(ao) | |
350 | 355 | func activate (bm,B,bn,C,bo,bp) = { | |
351 | 356 | let bc = [ar(ao), if (aj(B, C)) | |
352 | 357 | then true | |
353 | 358 | else k(), if ((value(getString(A(B, C))) == J)) | |
354 | 359 | then true | |
355 | 360 | else s()] | |
356 | 361 | if ((bc == bc)) | |
357 | 362 | then { | |
358 | 363 | let bq = getString(this, S(B, C)) | |
359 | 364 | let br = invoke(ae, "activateNewPool", [bm, B, C, ((bn + bo) + "LP"), (((bn + "/") + bo) + " pool liquidity provider token"), 0, if ((bq == unit)) | |
360 | 365 | then "VLTPOOL" | |
361 | 366 | else value(bq), bp], nil) | |
362 | 367 | if ((br == br)) | |
363 | 368 | then { | |
364 | 369 | let bs = { | |
365 | 370 | let ac = br | |
366 | 371 | if ($isInstanceOf(ac, "String")) | |
367 | 372 | then { | |
368 | 373 | let ax = ac | |
369 | 374 | ax | |
370 | 375 | } | |
371 | 376 | else t() | |
372 | 377 | } | |
373 | 378 | if ((bs == bs)) | |
374 | 379 | then { | |
375 | 380 | let bt = assetBalance(this, fromBase58String(bs)) | |
376 | 381 | if ((bt == bt)) | |
377 | 382 | then { | |
378 | 383 | let bu = invoke(addressFromStringValue(bm), "put", [0, false], [AttachedPayment(if ((B == "WAVES")) | |
379 | 384 | then unit | |
380 | 385 | else fromBase58String(B), value(getInteger(P(B, C)))), AttachedPayment(if ((C == "WAVES")) | |
381 | 386 | then unit | |
382 | 387 | else fromBase58String(C), value(getInteger(Q(B, C))))]) | |
383 | 388 | if ((bu == bu)) | |
384 | 389 | then { | |
385 | 390 | let bv = assetBalance(this, fromBase58String(bs)) | |
386 | 391 | if ((bv == bv)) | |
387 | 392 | then { | |
388 | 393 | let bw = value(addressFromString(value(getString(O(B, C))))) | |
389 | 394 | let bx = invoke(ai, "approve", [B, C], nil) | |
390 | 395 | if ((bx == bx)) | |
391 | 396 | then [StringEntry(A(B, C), L), ScriptTransfer(bw, (bv - bt), fromBase58String(bs))] | |
392 | 397 | else throw("Strict value is not equal to itself.") | |
393 | 398 | } | |
394 | 399 | else throw("Strict value is not equal to itself.") | |
395 | 400 | } | |
396 | 401 | else throw("Strict value is not equal to itself.") | |
397 | 402 | } | |
398 | 403 | else throw("Strict value is not equal to itself.") | |
399 | 404 | } | |
400 | 405 | else throw("Strict value is not equal to itself.") | |
401 | 406 | } | |
402 | 407 | else throw("Strict value is not equal to itself.") | |
403 | 408 | } | |
404 | 409 | else throw("Strict value is not equal to itself.") | |
405 | 410 | } | |
406 | 411 | ||
407 | 412 | ||
408 | 413 | ||
409 | 414 | @Callable(ao) | |
410 | 415 | func setAdmins (by) = { | |
411 | 416 | let bl = aq(ao) | |
412 | 417 | if ((bl == bl)) | |
413 | 418 | then [StringEntry(z(), makeString(by, b))] | |
414 | 419 | else throw("Strict value is not equal to itself.") | |
415 | 420 | } | |
416 | 421 | ||
417 | 422 | ||
418 | 423 | ||
419 | 424 | @Callable(ao) | |
420 | 425 | func setManager (bz) = { | |
421 | 426 | let bl = aq(ao) | |
422 | 427 | if ((bl == bl)) | |
423 | 428 | then { | |
424 | 429 | let bA = fromBase58String(bz) | |
425 | 430 | if ((bA == bA)) | |
426 | 431 | then [StringEntry(y(), bz)] | |
427 | 432 | else throw("Strict value is not equal to itself.") | |
428 | 433 | } | |
429 | 434 | else throw("Strict value is not equal to itself.") | |
430 | 435 | } | |
431 | 436 | ||
432 | 437 | ||
433 | 438 | ||
434 | 439 | @Callable(ao) | |
435 | 440 | func confirmManager () = { | |
436 | 441 | let bB = am() | |
437 | 442 | let bC = if (isDefined(bB)) | |
438 | 443 | then true | |
439 | 444 | else throw("No pending manager") | |
440 | 445 | if ((bC == bC)) | |
441 | 446 | then { | |
442 | 447 | let bD = if ((ao.callerPublicKey == value(bB))) | |
443 | 448 | then true | |
444 | 449 | else throw("You are not pending manager") | |
445 | 450 | if ((bD == bD)) | |
446 | 451 | then [StringEntry(x(), toBase58String(value(bB))), DeleteEntry(y())] | |
447 | 452 | else throw("Strict value is not equal to itself.") | |
448 | 453 | } | |
449 | 454 | else throw("Strict value is not equal to itself.") | |
450 | 455 | } | |
451 | 456 | ||
452 | 457 | ||
453 | 458 | ||
454 | 459 | @Callable(ao) | |
455 | 460 | func priceAssetsREADONLY () = $Tuple2(nil, aa(getString(X()))) | |
456 | 461 | ||
457 | 462 | ||
458 | 463 | ||
459 | 464 | @Callable(ao) | |
460 | 465 | func statusREADONLY (B,C) = { | |
461 | 466 | let aA = { | |
462 | 467 | let ac = getString(A(B, C)) | |
463 | 468 | if ($isInstanceOf(ac, "String")) | |
464 | 469 | then { | |
465 | 470 | let ad = ac | |
466 | 471 | ad | |
467 | 472 | } | |
468 | 473 | else unit | |
469 | 474 | } | |
470 | 475 | $Tuple2(nil, aA) | |
471 | 476 | } | |
472 | 477 | ||
473 | 478 | ||
474 | 479 | @Verifier(bE) | |
475 | 480 | func bF () = { | |
476 | 481 | let bG = { | |
477 | 482 | let ac = al() | |
478 | 483 | if ($isInstanceOf(ac, "ByteVector")) | |
479 | 484 | then { | |
480 | 485 | let ap = ac | |
481 | 486 | ap | |
482 | 487 | } | |
483 | 488 | else if ($isInstanceOf(ac, "Unit")) | |
484 | 489 | then bE.senderPublicKey | |
485 | 490 | else throw("Match error") | |
486 | 491 | } | |
487 | 492 | sigVerify(bE.bodyBytes, bE.proofs[0], bG) | |
488 | 493 | } | |
489 | 494 |
github/deemru/w8io/026f985 50.62 ms ◑