tx · C1WDv6ANK9MfpBf6GG3xXmP7H2tEPibczdoYiuDT8Am2 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01400000 Waves 2023.10.16 12:15 [2800981] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "C1WDv6ANK9MfpBf6GG3xXmP7H2tEPibczdoYiuDT8Am2", "fee": 1400000, "feeAssetId": null, "timestamp": 1697447732021, "version": 2, "chainId": 84, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "4qJAuzWEU7mCVVGfjV9aqmV8kvEDhUtfE5kyFiPCW9YjjifoFfxUuUoH3JyDXdbCN77BGze1c26MF7QuyDc8fAGe" ], "script": "base64:BgL9DwgCEgcKBQgICAgBEgASABIICgYICAgICAgSAwoBGBIAEgQKAggIEgQKAggIEgQKAggIIhBjb250cmFjdEZpbGVuYW1lIgNTRVAiDHdhdmVzQXNzZXRJZCIHVkxUUE9PTCIIU1RCTFBPT0wiEWludmFsaWRQcmljZUFzc2V0Igd3cmFwRXJyIgNtc2ciCHRocm93RXJyIgd0aHJvd1BEIhR0aHJvd0NyZWF0ZU5vdENhbGxlZCIRdGhyb3dZb3VOb3RJc3N1ZXIiD3Rocm93UG9vbEV4aXN0cyIVdGhyb3dBc3NldE5vdFZlcmlmaWVkIhZ0aHJvd0ludmFsaWRQcmljZUFzc2V0IhR0aHJvd0ludmFsaWRGZWVBc3NldCIXdGhyb3dJbnZhbGlkQW1vdW50QXNzZXQiEnRocm93SW52YWxpZFN0YXR1cyIfdGhyb3dDYW5BY3RpdmF0ZU9ubHlQZW5kaW5nUG9vbCIddGhyb3dGYWN0b3J5UmV0dXJuZWROb3RTdHJpbmciHHRocm93SW52YWxpZFByaWNlQXNzZXRBbW91bnQiD3Rocm93SW52YWxpZEZlZSIVdG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kJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCYncJYm9keUJ5dGVzCQCRAwIIBQJidwZwcm9vZnMAAAUCYnkKF6YT", "height": 2800981, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EyaCuH3qBuzELXSdNZ4cccKJb2hmznJknsrLmrSByGCu Next: none Diff:
Old | New | Differences | |
---|---|---|---|
122 | 122 | func U () = makeString(["%s", "feeAmount"], b) | |
123 | 123 | ||
124 | 124 | ||
125 | - | func V () = makeString(["%s", " | |
125 | + | func V () = makeString(["%s", "poolAssetDefaultMinAmount"], b) | |
126 | 126 | ||
127 | 127 | ||
128 | - | func W () = makeString(["%s", " | |
128 | + | func W (X) = makeString(["%s%s", "poolAssetMinAmount", X], b) | |
129 | 129 | ||
130 | 130 | ||
131 | - | func | |
131 | + | func Y () = makeString(["%s", "priceAssets"], b) | |
132 | 132 | ||
133 | 133 | ||
134 | - | func | |
135 | - | let | |
136 | - | if ($isInstanceOf( | |
134 | + | func Z () = { | |
135 | + | let aa = getString(y()) | |
136 | + | if ($isInstanceOf(aa, "String")) | |
137 | 137 | then { | |
138 | - | let | |
139 | - | addressFromStringValue( | |
138 | + | let ab = aa | |
139 | + | addressFromStringValue(ab) | |
140 | 140 | } | |
141 | 141 | else this | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | - | func | |
145 | + | func ac (ad) = valueOrErrorMessage(getString(this, ad), (ad + " is not defined")) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func | |
149 | - | let | |
150 | - | if ($isInstanceOf( | |
148 | + | func ae (af) = { | |
149 | + | let aa = af | |
150 | + | if ($isInstanceOf(aa, "String")) | |
151 | 151 | then { | |
152 | - | let | |
153 | - | if ((size( | |
152 | + | let ab = aa | |
153 | + | if ((size(ab) == 0)) | |
154 | 154 | then nil | |
155 | - | else split_4C( | |
155 | + | else split_4C(ab, b) | |
156 | 156 | } | |
157 | - | else if ($isInstanceOf( | |
157 | + | else if ($isInstanceOf(aa, "Unit")) | |
158 | 158 | then nil | |
159 | 159 | else throw("Match error") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | - | let | |
163 | + | let ag = addressFromStringValue(ac(D())) | |
164 | 164 | ||
165 | - | let | |
165 | + | let ah = makeString(["%s", "votingEmissionContract"], b) | |
166 | 166 | ||
167 | - | let | |
167 | + | let ai = addressFromStringValue(valueOrErrorMessage(getString(ag, ah), g("voting emission contract address is required"))) | |
168 | 168 | ||
169 | - | let | |
169 | + | let aj = makeString(["%s", "votingEmissionCandidateContract"], b) | |
170 | 170 | ||
171 | - | let | |
171 | + | let ak = addressFromStringValue(valueOrErrorMessage(getString(ai, aj), g("voting emission candidate contract address is required"))) | |
172 | 172 | ||
173 | - | func | |
173 | + | func al (B,C) = valueOrElse(getBoolean(N(B, C)), false) | |
174 | 174 | ||
175 | 175 | ||
176 | - | func | |
176 | + | func am (B,C) = if (al(B, C)) | |
177 | 177 | then true | |
178 | 178 | else k() | |
179 | 179 | ||
180 | 180 | ||
181 | - | func | |
182 | - | let | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
181 | + | func an () = { | |
182 | + | let ao = Z() | |
183 | + | let aa = getString(ao, x()) | |
184 | + | if ($isInstanceOf(aa, "String")) | |
185 | 185 | then { | |
186 | - | let | |
187 | - | fromBase58String( | |
186 | + | let ab = aa | |
187 | + | fromBase58String(ab) | |
188 | 188 | } | |
189 | - | else if ($isInstanceOf( | |
189 | + | else if ($isInstanceOf(aa, "Unit")) | |
190 | 190 | then unit | |
191 | 191 | else throw("Match error") | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | - | func | |
196 | - | let | |
197 | - | if ($isInstanceOf( | |
195 | + | func ap (aq) = { | |
196 | + | let aa = an() | |
197 | + | if ($isInstanceOf(aa, "ByteVector")) | |
198 | 198 | then { | |
199 | - | let | |
200 | - | ( | |
199 | + | let ar = aa | |
200 | + | (aq.callerPublicKey == ar) | |
201 | 201 | } | |
202 | - | else if ($isInstanceOf( | |
203 | - | then ( | |
202 | + | else if ($isInstanceOf(aa, "Unit")) | |
203 | + | then (aq.caller == this) | |
204 | 204 | else throw("Match error") | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | - | func | |
208 | + | func as (aq) = if (ap(aq)) | |
209 | 209 | then true | |
210 | 210 | else j() | |
211 | 211 | ||
212 | 212 | ||
213 | - | func | |
214 | - | let | |
215 | - | if (containsElement( | |
213 | + | func at (aq) = { | |
214 | + | let au = ae(getString(z())) | |
215 | + | if (containsElement(au, toBase58String(aq.callerPublicKey))) | |
216 | 216 | then true | |
217 | - | else | |
217 | + | else as(aq) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | - | func | |
221 | + | func av (X) = (valueOrElse(getInteger(addressFromStringValue(ac(E())), (("status_<" + X) + ">")), 0) == 2) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func aw (ax) = { | |
225 | - | let | |
226 | - | if ($isInstanceOf( | |
225 | + | let aa = ax.assetId | |
226 | + | if ($isInstanceOf(aa, "ByteVector")) | |
227 | 227 | then { | |
228 | - | let ay = | |
228 | + | let ay = aa | |
229 | 229 | let az = value(assetInfo(ay)) | |
230 | 230 | $Tuple2(toBase58String(ay), az) | |
231 | 231 | } | |
232 | - | else if ($isInstanceOf( | |
232 | + | else if ($isInstanceOf(aa, "Unit")) | |
233 | 233 | then $Tuple2(c, unit) | |
234 | 234 | else throw("Match error") | |
235 | 235 | } | |
238 | 238 | func aA (aB) = containsElement(M, aB) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func aC ( | |
242 | - | let aE = value( | |
243 | - | let aF = value( | |
244 | - | let aG = value( | |
241 | + | func aC (aq,aD) = { | |
242 | + | let aE = value(aq.payments[0]) | |
243 | + | let aF = value(aq.payments[1]) | |
244 | + | let aG = value(aq.payments[2]) | |
245 | 245 | let aH = aw(aE) | |
246 | 246 | let B = aH._1 | |
247 | 247 | let aI = aH._2 | |
254 | 254 | let aO = aE.amount | |
255 | 255 | let aP = aF.amount | |
256 | 256 | let aQ = aG.amount | |
257 | - | let aR = ad(getString(af, X())) | |
258 | - | let aS = getIntegerValue(V()) | |
259 | - | let aT = ad(getString(W())) | |
260 | - | let aU = if (containsElement(aR, B)) | |
261 | - | then { | |
262 | - | let aV = valueOrErrorMessage(indexOf(aR, B), f) | |
263 | - | value(parseInt(aT[aV])) | |
264 | - | } | |
265 | - | else aS | |
266 | - | let aW = if (containsElement(aR, C)) | |
267 | - | then { | |
268 | - | let aV = valueOrErrorMessage(indexOf(aR, C), f) | |
269 | - | value(parseInt(aT[aV])) | |
270 | - | } | |
271 | - | else aS | |
272 | - | let aX = valueOrElse(getInteger(H()), 0) | |
273 | - | let aY = (aX + 1) | |
274 | - | let aZ = addressFromStringValue(ab(F())) | |
275 | - | let ba = { | |
276 | - | let bb = invoke(af, "poolExistsREADONLY", [B, C], nil) | |
277 | - | if ($isInstanceOf(bb, "Boolean")) | |
278 | - | then bb | |
279 | - | else throw(($getType(bb) + " couldn't be cast to Boolean")) | |
257 | + | let aR = ae(getString(ag, Y())) | |
258 | + | let aS = getIntegerValue(ag, V()) | |
259 | + | let aT = valueOrElse(getInteger(ag, W(B)), aS) | |
260 | + | let aU = valueOrElse(getInteger(ag, W(C)), aS) | |
261 | + | let aV = valueOrElse(getInteger(H()), 0) | |
262 | + | let aW = (aV + 1) | |
263 | + | let aX = addressFromStringValue(ac(F())) | |
264 | + | let aY = { | |
265 | + | let aZ = invoke(ag, "poolExistsREADONLY", [B, C], nil) | |
266 | + | if ($isInstanceOf(aZ, "Boolean")) | |
267 | + | then aZ | |
268 | + | else throw(($getType(aZ) + " couldn't be cast to Boolean")) | |
280 | 269 | } | |
281 | - | let | |
270 | + | let ba = [if (!(al(B, C))) | |
282 | 271 | then true | |
283 | - | else m(), if (!( | |
272 | + | else m(), if (!(aY)) | |
284 | 273 | then true | |
285 | 274 | else m(), if ((B != C)) | |
286 | 275 | then true | |
287 | - | else w(), if (if ( | |
276 | + | else w(), if (if (ap(aq)) | |
288 | 277 | then true | |
289 | - | else if ( | |
290 | - | then | |
278 | + | else if (av(B)) | |
279 | + | then av(C) | |
291 | 280 | else false) | |
292 | 281 | then true | |
293 | 282 | else w(), if (if (containsElement(aR, B)) | |
294 | 283 | then true | |
295 | 284 | else containsElement(aR, C)) | |
296 | 285 | then true | |
297 | - | else w(), if (if ( | |
286 | + | else w(), if (if (ap(aq)) | |
298 | 287 | then true | |
299 | 288 | else (getString(T()) == aM)) | |
300 | 289 | then true | |
301 | - | else p(), if (if ( | |
290 | + | else p(), if (if (ap(aq)) | |
302 | 291 | then true | |
303 | - | else (aO >= | |
292 | + | else (aO >= aT)) | |
304 | 293 | then true | |
305 | - | else q(), if (if ( | |
294 | + | else q(), if (if (ap(aq)) | |
306 | 295 | then true | |
307 | - | else (aP >= | |
296 | + | else (aP >= aU)) | |
308 | 297 | then true | |
309 | - | else u(), if (if ( | |
298 | + | else u(), if (if (ap(aq)) | |
310 | 299 | then true | |
311 | 300 | else (aQ == getInteger(U()))) | |
312 | 301 | then true | |
313 | 302 | else v()] | |
314 | - | if (( | |
303 | + | if ((ba == ba)) | |
315 | 304 | then { | |
316 | - | let | |
317 | - | let | |
318 | - | then invoke( | |
305 | + | let bb = 3 | |
306 | + | let bc = if ((size(aq.payments) >= bb)) | |
307 | + | then invoke(aX, "burn", nil, [AttachedPayment(fromBase58String(aM), aQ)]) | |
319 | 308 | else unit | |
320 | - | if (( | |
321 | - | then [BooleanEntry(N(B, C), true), StringEntry(O(B, C), toString( | |
309 | + | if ((bc == bc)) | |
310 | + | then [BooleanEntry(N(B, C), true), StringEntry(O(B, C), toString(aq.caller)), IntegerEntry(H(), aW), StringEntry(G(B, C), (toString(aW) + I)), IntegerEntry(R(B, C), height), StringEntry(A(B, C), J), IntegerEntry(P(B, C), aO), IntegerEntry(Q(B, C), aP), StringEntry(S(B, C), aD)] | |
322 | 311 | else throw("Strict value is not equal to itself.") | |
323 | 312 | } | |
324 | 313 | else throw("Strict value is not equal to itself.") | |
325 | 314 | } | |
326 | 315 | ||
327 | 316 | ||
328 | - | @Callable( | |
329 | - | func constructor (bf | |
330 | - | let | |
331 | - | if (( | |
332 | - | then [StringEntry(D(), | |
317 | + | @Callable(aq) | |
318 | + | func constructor (bd,be,bf,aM,bg) = { | |
319 | + | let bh = as(aq) | |
320 | + | if ((bh == bh)) | |
321 | + | then [StringEntry(D(), bd), StringEntry(E(), be), StringEntry(F(), bf), StringEntry(T(), aM), IntegerEntry(U(), bg)] | |
333 | 322 | else throw("Strict value is not equal to itself.") | |
334 | 323 | } | |
335 | 324 | ||
336 | 325 | ||
337 | 326 | ||
338 | - | @Callable( | |
339 | - | func create () = aC( | |
327 | + | @Callable(aq) | |
328 | + | func create () = aC(aq, d) | |
340 | 329 | ||
341 | 330 | ||
342 | 331 | ||
343 | - | @Callable( | |
332 | + | @Callable(aq) | |
344 | 333 | func createStable () = { | |
345 | - | let | |
346 | - | if (( | |
347 | - | then aC( | |
334 | + | let bh = as(aq) | |
335 | + | if ((bh == bh)) | |
336 | + | then aC(aq, e) | |
348 | 337 | else throw("Strict value is not equal to itself.") | |
349 | 338 | } | |
350 | 339 | ||
351 | 340 | ||
352 | 341 | ||
353 | - | @Callable( | |
354 | - | func activate ( | |
355 | - | let | |
342 | + | @Callable(aq) | |
343 | + | func activate (bi,B,bj,C,bk,bl) = { | |
344 | + | let ba = [at(aq), if (al(B, C)) | |
356 | 345 | then true | |
357 | 346 | else k(), if ((value(getString(A(B, C))) == J)) | |
358 | 347 | then true | |
359 | 348 | else s()] | |
360 | - | if (( | |
349 | + | if ((ba == ba)) | |
361 | 350 | then { | |
362 | - | let | |
363 | - | let | |
351 | + | let bm = getString(this, S(B, C)) | |
352 | + | let bn = invoke(ag, "activateNewPool", [bi, B, C, ((bj + bk) + "LP"), (((bj + "/") + bk) + " pool liquidity provider token"), 0, if ((bm == unit)) | |
364 | 353 | then "VLTPOOL" | |
365 | - | else value( | |
366 | - | if (( | |
354 | + | else value(bm), bl], nil) | |
355 | + | if ((bn == bn)) | |
367 | 356 | then { | |
368 | - | let | |
369 | - | let | |
370 | - | if ($isInstanceOf( | |
357 | + | let bo = { | |
358 | + | let aa = bn | |
359 | + | if ($isInstanceOf(aa, "String")) | |
371 | 360 | then { | |
372 | - | let ay = | |
361 | + | let ay = aa | |
373 | 362 | ay | |
374 | 363 | } | |
375 | 364 | else t() | |
376 | 365 | } | |
377 | - | if (( | |
366 | + | if ((bo == bo)) | |
378 | 367 | then { | |
379 | - | let | |
380 | - | if (( | |
368 | + | let bp = assetBalance(this, fromBase58String(bo)) | |
369 | + | if ((bp == bp)) | |
381 | 370 | then { | |
382 | - | let | |
371 | + | let bq = invoke(addressFromStringValue(bi), "put", [0, false], [AttachedPayment(if ((B == "WAVES")) | |
383 | 372 | then unit | |
384 | 373 | else fromBase58String(B), value(getInteger(P(B, C)))), AttachedPayment(if ((C == "WAVES")) | |
385 | 374 | then unit | |
386 | 375 | else fromBase58String(C), value(getInteger(Q(B, C))))]) | |
387 | - | if (( | |
376 | + | if ((bq == bq)) | |
388 | 377 | then { | |
389 | - | let | |
390 | - | if (( | |
378 | + | let br = assetBalance(this, fromBase58String(bo)) | |
379 | + | if ((br == br)) | |
391 | 380 | then { | |
392 | - | let | |
393 | - | let | |
394 | - | if (( | |
395 | - | then [StringEntry(A(B, C), L), ScriptTransfer( | |
381 | + | let bs = value(addressFromString(value(getString(O(B, C))))) | |
382 | + | let bt = invoke(ak, "approve", [B, C], nil) | |
383 | + | if ((bt == bt)) | |
384 | + | then [StringEntry(A(B, C), L), ScriptTransfer(bs, (br - bp), fromBase58String(bo))] | |
396 | 385 | else throw("Strict value is not equal to itself.") | |
397 | 386 | } | |
398 | 387 | else throw("Strict value is not equal to itself.") | |
410 | 399 | ||
411 | 400 | ||
412 | 401 | ||
413 | - | @Callable( | |
414 | - | func setAdmins ( | |
415 | - | let | |
416 | - | if (( | |
417 | - | then [StringEntry(z(), makeString( | |
402 | + | @Callable(aq) | |
403 | + | func setAdmins (bu) = { | |
404 | + | let bh = as(aq) | |
405 | + | if ((bh == bh)) | |
406 | + | then [StringEntry(z(), makeString(bu, b))] | |
418 | 407 | else throw("Strict value is not equal to itself.") | |
419 | 408 | } | |
420 | 409 | ||
421 | 410 | ||
422 | 411 | ||
423 | - | @Callable( | |
424 | - | func priceAssetsREADONLY () = $Tuple2(nil, | |
412 | + | @Callable(aq) | |
413 | + | func priceAssetsREADONLY () = $Tuple2(nil, ae(getString(Y()))) | |
425 | 414 | ||
426 | 415 | ||
427 | 416 | ||
428 | - | @Callable( | |
417 | + | @Callable(aq) | |
429 | 418 | func statusREADONLY (B,C) = { | |
430 | 419 | let aB = { | |
431 | - | let | |
432 | - | if ($isInstanceOf( | |
420 | + | let aa = getString(A(B, C)) | |
421 | + | if ($isInstanceOf(aa, "String")) | |
433 | 422 | then { | |
434 | - | let | |
435 | - | | |
423 | + | let ab = aa | |
424 | + | ab | |
436 | 425 | } | |
437 | 426 | else unit | |
438 | 427 | } | |
441 | 430 | ||
442 | 431 | ||
443 | 432 | ||
444 | - | @Callable( | |
433 | + | @Callable(aq) | |
445 | 434 | func getPoolCreatorREADONLY (B,C) = { | |
446 | - | let | |
447 | - | $Tuple2(nil, | |
435 | + | let bv = valueOrElse(getString(O(B, C)), "") | |
436 | + | $Tuple2(nil, bv) | |
448 | 437 | } | |
449 | 438 | ||
450 | 439 | ||
451 | 440 | ||
452 | - | @Callable( | |
441 | + | @Callable(aq) | |
453 | 442 | func deletePool (B,C) = { | |
454 | - | let | |
443 | + | let bh = if (if ((aq.caller == ag)) | |
455 | 444 | then true | |
456 | - | else | |
445 | + | else as(aq)) | |
457 | 446 | then true | |
458 | 447 | else i("Permission denied") | |
459 | - | if (( | |
448 | + | if ((bh == bh)) | |
460 | 449 | then [DeleteEntry(N(B, C)), DeleteEntry(O(B, C)), DeleteEntry(G(B, C)), DeleteEntry(R(B, C)), DeleteEntry(A(B, C)), DeleteEntry(P(B, C)), DeleteEntry(Q(B, C)), DeleteEntry(S(B, C))] | |
461 | 450 | else throw("Strict value is not equal to itself.") | |
462 | 451 | } | |
463 | 452 | ||
464 | 453 | ||
465 | - | @Verifier( | |
466 | - | func | |
467 | - | let | |
468 | - | let | |
469 | - | if ($isInstanceOf( | |
454 | + | @Verifier(bw) | |
455 | + | func bx () = { | |
456 | + | let by = { | |
457 | + | let aa = an() | |
458 | + | if ($isInstanceOf(aa, "ByteVector")) | |
470 | 459 | then { | |
471 | - | let | |
472 | - | | |
460 | + | let ar = aa | |
461 | + | ar | |
473 | 462 | } | |
474 | - | else if ($isInstanceOf( | |
475 | - | then | |
463 | + | else if ($isInstanceOf(aa, "Unit")) | |
464 | + | then bw.senderPublicKey | |
476 | 465 | else throw("Match error") | |
477 | 466 | } | |
478 | - | sigVerify( | |
467 | + | sigVerify(bw.bodyBytes, bw.proofs[0], by) | |
479 | 468 | } | |
480 | 469 |
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 () = "%s__managerVaultAddress" | |
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 | - | func V () = makeString(["%s", " | |
125 | + | func V () = makeString(["%s", "poolAssetDefaultMinAmount"], b) | |
126 | 126 | ||
127 | 127 | ||
128 | - | func W () = makeString(["%s", " | |
128 | + | func W (X) = makeString(["%s%s", "poolAssetMinAmount", X], b) | |
129 | 129 | ||
130 | 130 | ||
131 | - | func | |
131 | + | func Y () = makeString(["%s", "priceAssets"], b) | |
132 | 132 | ||
133 | 133 | ||
134 | - | func | |
135 | - | let | |
136 | - | if ($isInstanceOf( | |
134 | + | func Z () = { | |
135 | + | let aa = getString(y()) | |
136 | + | if ($isInstanceOf(aa, "String")) | |
137 | 137 | then { | |
138 | - | let | |
139 | - | addressFromStringValue( | |
138 | + | let ab = aa | |
139 | + | addressFromStringValue(ab) | |
140 | 140 | } | |
141 | 141 | else this | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | - | func | |
145 | + | func ac (ad) = valueOrErrorMessage(getString(this, ad), (ad + " is not defined")) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func | |
149 | - | let | |
150 | - | if ($isInstanceOf( | |
148 | + | func ae (af) = { | |
149 | + | let aa = af | |
150 | + | if ($isInstanceOf(aa, "String")) | |
151 | 151 | then { | |
152 | - | let | |
153 | - | if ((size( | |
152 | + | let ab = aa | |
153 | + | if ((size(ab) == 0)) | |
154 | 154 | then nil | |
155 | - | else split_4C( | |
155 | + | else split_4C(ab, b) | |
156 | 156 | } | |
157 | - | else if ($isInstanceOf( | |
157 | + | else if ($isInstanceOf(aa, "Unit")) | |
158 | 158 | then nil | |
159 | 159 | else throw("Match error") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | - | let | |
163 | + | let ag = addressFromStringValue(ac(D())) | |
164 | 164 | ||
165 | - | let | |
165 | + | let ah = makeString(["%s", "votingEmissionContract"], b) | |
166 | 166 | ||
167 | - | let | |
167 | + | let ai = addressFromStringValue(valueOrErrorMessage(getString(ag, ah), g("voting emission contract address is required"))) | |
168 | 168 | ||
169 | - | let | |
169 | + | let aj = makeString(["%s", "votingEmissionCandidateContract"], b) | |
170 | 170 | ||
171 | - | let | |
171 | + | let ak = addressFromStringValue(valueOrErrorMessage(getString(ai, aj), g("voting emission candidate contract address is required"))) | |
172 | 172 | ||
173 | - | func | |
173 | + | func al (B,C) = valueOrElse(getBoolean(N(B, C)), false) | |
174 | 174 | ||
175 | 175 | ||
176 | - | func | |
176 | + | func am (B,C) = if (al(B, C)) | |
177 | 177 | then true | |
178 | 178 | else k() | |
179 | 179 | ||
180 | 180 | ||
181 | - | func | |
182 | - | let | |
183 | - | let | |
184 | - | if ($isInstanceOf( | |
181 | + | func an () = { | |
182 | + | let ao = Z() | |
183 | + | let aa = getString(ao, x()) | |
184 | + | if ($isInstanceOf(aa, "String")) | |
185 | 185 | then { | |
186 | - | let | |
187 | - | fromBase58String( | |
186 | + | let ab = aa | |
187 | + | fromBase58String(ab) | |
188 | 188 | } | |
189 | - | else if ($isInstanceOf( | |
189 | + | else if ($isInstanceOf(aa, "Unit")) | |
190 | 190 | then unit | |
191 | 191 | else throw("Match error") | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | - | func | |
196 | - | let | |
197 | - | if ($isInstanceOf( | |
195 | + | func ap (aq) = { | |
196 | + | let aa = an() | |
197 | + | if ($isInstanceOf(aa, "ByteVector")) | |
198 | 198 | then { | |
199 | - | let | |
200 | - | ( | |
199 | + | let ar = aa | |
200 | + | (aq.callerPublicKey == ar) | |
201 | 201 | } | |
202 | - | else if ($isInstanceOf( | |
203 | - | then ( | |
202 | + | else if ($isInstanceOf(aa, "Unit")) | |
203 | + | then (aq.caller == this) | |
204 | 204 | else throw("Match error") | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | - | func | |
208 | + | func as (aq) = if (ap(aq)) | |
209 | 209 | then true | |
210 | 210 | else j() | |
211 | 211 | ||
212 | 212 | ||
213 | - | func | |
214 | - | let | |
215 | - | if (containsElement( | |
213 | + | func at (aq) = { | |
214 | + | let au = ae(getString(z())) | |
215 | + | if (containsElement(au, toBase58String(aq.callerPublicKey))) | |
216 | 216 | then true | |
217 | - | else | |
217 | + | else as(aq) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | - | func | |
221 | + | func av (X) = (valueOrElse(getInteger(addressFromStringValue(ac(E())), (("status_<" + X) + ">")), 0) == 2) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func aw (ax) = { | |
225 | - | let | |
226 | - | if ($isInstanceOf( | |
225 | + | let aa = ax.assetId | |
226 | + | if ($isInstanceOf(aa, "ByteVector")) | |
227 | 227 | then { | |
228 | - | let ay = | |
228 | + | let ay = aa | |
229 | 229 | let az = value(assetInfo(ay)) | |
230 | 230 | $Tuple2(toBase58String(ay), az) | |
231 | 231 | } | |
232 | - | else if ($isInstanceOf( | |
232 | + | else if ($isInstanceOf(aa, "Unit")) | |
233 | 233 | then $Tuple2(c, unit) | |
234 | 234 | else throw("Match error") | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func aA (aB) = containsElement(M, aB) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func aC ( | |
242 | - | let aE = value( | |
243 | - | let aF = value( | |
244 | - | let aG = value( | |
241 | + | func aC (aq,aD) = { | |
242 | + | let aE = value(aq.payments[0]) | |
243 | + | let aF = value(aq.payments[1]) | |
244 | + | let aG = value(aq.payments[2]) | |
245 | 245 | let aH = aw(aE) | |
246 | 246 | let B = aH._1 | |
247 | 247 | let aI = aH._2 | |
248 | 248 | let aJ = aw(aF) | |
249 | 249 | let C = aJ._1 | |
250 | 250 | let aK = aJ._2 | |
251 | 251 | let aL = aw(aG) | |
252 | 252 | let aM = aL._1 | |
253 | 253 | let aN = aL._2 | |
254 | 254 | let aO = aE.amount | |
255 | 255 | let aP = aF.amount | |
256 | 256 | let aQ = aG.amount | |
257 | - | let aR = ad(getString(af, X())) | |
258 | - | let aS = getIntegerValue(V()) | |
259 | - | let aT = ad(getString(W())) | |
260 | - | let aU = if (containsElement(aR, B)) | |
261 | - | then { | |
262 | - | let aV = valueOrErrorMessage(indexOf(aR, B), f) | |
263 | - | value(parseInt(aT[aV])) | |
264 | - | } | |
265 | - | else aS | |
266 | - | let aW = if (containsElement(aR, C)) | |
267 | - | then { | |
268 | - | let aV = valueOrErrorMessage(indexOf(aR, C), f) | |
269 | - | value(parseInt(aT[aV])) | |
270 | - | } | |
271 | - | else aS | |
272 | - | let aX = valueOrElse(getInteger(H()), 0) | |
273 | - | let aY = (aX + 1) | |
274 | - | let aZ = addressFromStringValue(ab(F())) | |
275 | - | let ba = { | |
276 | - | let bb = invoke(af, "poolExistsREADONLY", [B, C], nil) | |
277 | - | if ($isInstanceOf(bb, "Boolean")) | |
278 | - | then bb | |
279 | - | else throw(($getType(bb) + " couldn't be cast to Boolean")) | |
257 | + | let aR = ae(getString(ag, Y())) | |
258 | + | let aS = getIntegerValue(ag, V()) | |
259 | + | let aT = valueOrElse(getInteger(ag, W(B)), aS) | |
260 | + | let aU = valueOrElse(getInteger(ag, W(C)), aS) | |
261 | + | let aV = valueOrElse(getInteger(H()), 0) | |
262 | + | let aW = (aV + 1) | |
263 | + | let aX = addressFromStringValue(ac(F())) | |
264 | + | let aY = { | |
265 | + | let aZ = invoke(ag, "poolExistsREADONLY", [B, C], nil) | |
266 | + | if ($isInstanceOf(aZ, "Boolean")) | |
267 | + | then aZ | |
268 | + | else throw(($getType(aZ) + " couldn't be cast to Boolean")) | |
280 | 269 | } | |
281 | - | let | |
270 | + | let ba = [if (!(al(B, C))) | |
282 | 271 | then true | |
283 | - | else m(), if (!( | |
272 | + | else m(), if (!(aY)) | |
284 | 273 | then true | |
285 | 274 | else m(), if ((B != C)) | |
286 | 275 | then true | |
287 | - | else w(), if (if ( | |
276 | + | else w(), if (if (ap(aq)) | |
288 | 277 | then true | |
289 | - | else if ( | |
290 | - | then | |
278 | + | else if (av(B)) | |
279 | + | then av(C) | |
291 | 280 | else false) | |
292 | 281 | then true | |
293 | 282 | else w(), if (if (containsElement(aR, B)) | |
294 | 283 | then true | |
295 | 284 | else containsElement(aR, C)) | |
296 | 285 | then true | |
297 | - | else w(), if (if ( | |
286 | + | else w(), if (if (ap(aq)) | |
298 | 287 | then true | |
299 | 288 | else (getString(T()) == aM)) | |
300 | 289 | then true | |
301 | - | else p(), if (if ( | |
290 | + | else p(), if (if (ap(aq)) | |
302 | 291 | then true | |
303 | - | else (aO >= | |
292 | + | else (aO >= aT)) | |
304 | 293 | then true | |
305 | - | else q(), if (if ( | |
294 | + | else q(), if (if (ap(aq)) | |
306 | 295 | then true | |
307 | - | else (aP >= | |
296 | + | else (aP >= aU)) | |
308 | 297 | then true | |
309 | - | else u(), if (if ( | |
298 | + | else u(), if (if (ap(aq)) | |
310 | 299 | then true | |
311 | 300 | else (aQ == getInteger(U()))) | |
312 | 301 | then true | |
313 | 302 | else v()] | |
314 | - | if (( | |
303 | + | if ((ba == ba)) | |
315 | 304 | then { | |
316 | - | let | |
317 | - | let | |
318 | - | then invoke( | |
305 | + | let bb = 3 | |
306 | + | let bc = if ((size(aq.payments) >= bb)) | |
307 | + | then invoke(aX, "burn", nil, [AttachedPayment(fromBase58String(aM), aQ)]) | |
319 | 308 | else unit | |
320 | - | if (( | |
321 | - | then [BooleanEntry(N(B, C), true), StringEntry(O(B, C), toString( | |
309 | + | if ((bc == bc)) | |
310 | + | then [BooleanEntry(N(B, C), true), StringEntry(O(B, C), toString(aq.caller)), IntegerEntry(H(), aW), StringEntry(G(B, C), (toString(aW) + I)), IntegerEntry(R(B, C), height), StringEntry(A(B, C), J), IntegerEntry(P(B, C), aO), IntegerEntry(Q(B, C), aP), StringEntry(S(B, C), aD)] | |
322 | 311 | else throw("Strict value is not equal to itself.") | |
323 | 312 | } | |
324 | 313 | else throw("Strict value is not equal to itself.") | |
325 | 314 | } | |
326 | 315 | ||
327 | 316 | ||
328 | - | @Callable( | |
329 | - | func constructor (bf | |
330 | - | let | |
331 | - | if (( | |
332 | - | then [StringEntry(D(), | |
317 | + | @Callable(aq) | |
318 | + | func constructor (bd,be,bf,aM,bg) = { | |
319 | + | let bh = as(aq) | |
320 | + | if ((bh == bh)) | |
321 | + | then [StringEntry(D(), bd), StringEntry(E(), be), StringEntry(F(), bf), StringEntry(T(), aM), IntegerEntry(U(), bg)] | |
333 | 322 | else throw("Strict value is not equal to itself.") | |
334 | 323 | } | |
335 | 324 | ||
336 | 325 | ||
337 | 326 | ||
338 | - | @Callable( | |
339 | - | func create () = aC( | |
327 | + | @Callable(aq) | |
328 | + | func create () = aC(aq, d) | |
340 | 329 | ||
341 | 330 | ||
342 | 331 | ||
343 | - | @Callable( | |
332 | + | @Callable(aq) | |
344 | 333 | func createStable () = { | |
345 | - | let | |
346 | - | if (( | |
347 | - | then aC( | |
334 | + | let bh = as(aq) | |
335 | + | if ((bh == bh)) | |
336 | + | then aC(aq, e) | |
348 | 337 | else throw("Strict value is not equal to itself.") | |
349 | 338 | } | |
350 | 339 | ||
351 | 340 | ||
352 | 341 | ||
353 | - | @Callable( | |
354 | - | func activate ( | |
355 | - | let | |
342 | + | @Callable(aq) | |
343 | + | func activate (bi,B,bj,C,bk,bl) = { | |
344 | + | let ba = [at(aq), if (al(B, C)) | |
356 | 345 | then true | |
357 | 346 | else k(), if ((value(getString(A(B, C))) == J)) | |
358 | 347 | then true | |
359 | 348 | else s()] | |
360 | - | if (( | |
349 | + | if ((ba == ba)) | |
361 | 350 | then { | |
362 | - | let | |
363 | - | let | |
351 | + | let bm = getString(this, S(B, C)) | |
352 | + | let bn = invoke(ag, "activateNewPool", [bi, B, C, ((bj + bk) + "LP"), (((bj + "/") + bk) + " pool liquidity provider token"), 0, if ((bm == unit)) | |
364 | 353 | then "VLTPOOL" | |
365 | - | else value( | |
366 | - | if (( | |
354 | + | else value(bm), bl], nil) | |
355 | + | if ((bn == bn)) | |
367 | 356 | then { | |
368 | - | let | |
369 | - | let | |
370 | - | if ($isInstanceOf( | |
357 | + | let bo = { | |
358 | + | let aa = bn | |
359 | + | if ($isInstanceOf(aa, "String")) | |
371 | 360 | then { | |
372 | - | let ay = | |
361 | + | let ay = aa | |
373 | 362 | ay | |
374 | 363 | } | |
375 | 364 | else t() | |
376 | 365 | } | |
377 | - | if (( | |
366 | + | if ((bo == bo)) | |
378 | 367 | then { | |
379 | - | let | |
380 | - | if (( | |
368 | + | let bp = assetBalance(this, fromBase58String(bo)) | |
369 | + | if ((bp == bp)) | |
381 | 370 | then { | |
382 | - | let | |
371 | + | let bq = invoke(addressFromStringValue(bi), "put", [0, false], [AttachedPayment(if ((B == "WAVES")) | |
383 | 372 | then unit | |
384 | 373 | else fromBase58String(B), value(getInteger(P(B, C)))), AttachedPayment(if ((C == "WAVES")) | |
385 | 374 | then unit | |
386 | 375 | else fromBase58String(C), value(getInteger(Q(B, C))))]) | |
387 | - | if (( | |
376 | + | if ((bq == bq)) | |
388 | 377 | then { | |
389 | - | let | |
390 | - | if (( | |
378 | + | let br = assetBalance(this, fromBase58String(bo)) | |
379 | + | if ((br == br)) | |
391 | 380 | then { | |
392 | - | let | |
393 | - | let | |
394 | - | if (( | |
395 | - | then [StringEntry(A(B, C), L), ScriptTransfer( | |
381 | + | let bs = value(addressFromString(value(getString(O(B, C))))) | |
382 | + | let bt = invoke(ak, "approve", [B, C], nil) | |
383 | + | if ((bt == bt)) | |
384 | + | then [StringEntry(A(B, C), L), ScriptTransfer(bs, (br - bp), fromBase58String(bo))] | |
396 | 385 | else throw("Strict value is not equal to itself.") | |
397 | 386 | } | |
398 | 387 | else throw("Strict value is not equal to itself.") | |
399 | 388 | } | |
400 | 389 | else throw("Strict value is not equal to itself.") | |
401 | 390 | } | |
402 | 391 | else throw("Strict value is not equal to itself.") | |
403 | 392 | } | |
404 | 393 | else throw("Strict value is not equal to itself.") | |
405 | 394 | } | |
406 | 395 | else throw("Strict value is not equal to itself.") | |
407 | 396 | } | |
408 | 397 | else throw("Strict value is not equal to itself.") | |
409 | 398 | } | |
410 | 399 | ||
411 | 400 | ||
412 | 401 | ||
413 | - | @Callable( | |
414 | - | func setAdmins ( | |
415 | - | let | |
416 | - | if (( | |
417 | - | then [StringEntry(z(), makeString( | |
402 | + | @Callable(aq) | |
403 | + | func setAdmins (bu) = { | |
404 | + | let bh = as(aq) | |
405 | + | if ((bh == bh)) | |
406 | + | then [StringEntry(z(), makeString(bu, b))] | |
418 | 407 | else throw("Strict value is not equal to itself.") | |
419 | 408 | } | |
420 | 409 | ||
421 | 410 | ||
422 | 411 | ||
423 | - | @Callable( | |
424 | - | func priceAssetsREADONLY () = $Tuple2(nil, | |
412 | + | @Callable(aq) | |
413 | + | func priceAssetsREADONLY () = $Tuple2(nil, ae(getString(Y()))) | |
425 | 414 | ||
426 | 415 | ||
427 | 416 | ||
428 | - | @Callable( | |
417 | + | @Callable(aq) | |
429 | 418 | func statusREADONLY (B,C) = { | |
430 | 419 | let aB = { | |
431 | - | let | |
432 | - | if ($isInstanceOf( | |
420 | + | let aa = getString(A(B, C)) | |
421 | + | if ($isInstanceOf(aa, "String")) | |
433 | 422 | then { | |
434 | - | let | |
435 | - | | |
423 | + | let ab = aa | |
424 | + | ab | |
436 | 425 | } | |
437 | 426 | else unit | |
438 | 427 | } | |
439 | 428 | $Tuple2(nil, aB) | |
440 | 429 | } | |
441 | 430 | ||
442 | 431 | ||
443 | 432 | ||
444 | - | @Callable( | |
433 | + | @Callable(aq) | |
445 | 434 | func getPoolCreatorREADONLY (B,C) = { | |
446 | - | let | |
447 | - | $Tuple2(nil, | |
435 | + | let bv = valueOrElse(getString(O(B, C)), "") | |
436 | + | $Tuple2(nil, bv) | |
448 | 437 | } | |
449 | 438 | ||
450 | 439 | ||
451 | 440 | ||
452 | - | @Callable( | |
441 | + | @Callable(aq) | |
453 | 442 | func deletePool (B,C) = { | |
454 | - | let | |
443 | + | let bh = if (if ((aq.caller == ag)) | |
455 | 444 | then true | |
456 | - | else | |
445 | + | else as(aq)) | |
457 | 446 | then true | |
458 | 447 | else i("Permission denied") | |
459 | - | if (( | |
448 | + | if ((bh == bh)) | |
460 | 449 | then [DeleteEntry(N(B, C)), DeleteEntry(O(B, C)), DeleteEntry(G(B, C)), DeleteEntry(R(B, C)), DeleteEntry(A(B, C)), DeleteEntry(P(B, C)), DeleteEntry(Q(B, C)), DeleteEntry(S(B, C))] | |
461 | 450 | else throw("Strict value is not equal to itself.") | |
462 | 451 | } | |
463 | 452 | ||
464 | 453 | ||
465 | - | @Verifier( | |
466 | - | func | |
467 | - | let | |
468 | - | let | |
469 | - | if ($isInstanceOf( | |
454 | + | @Verifier(bw) | |
455 | + | func bx () = { | |
456 | + | let by = { | |
457 | + | let aa = an() | |
458 | + | if ($isInstanceOf(aa, "ByteVector")) | |
470 | 459 | then { | |
471 | - | let | |
472 | - | | |
460 | + | let ar = aa | |
461 | + | ar | |
473 | 462 | } | |
474 | - | else if ($isInstanceOf( | |
475 | - | then | |
463 | + | else if ($isInstanceOf(aa, "Unit")) | |
464 | + | then bw.senderPublicKey | |
476 | 465 | else throw("Match error") | |
477 | 466 | } | |
478 | - | sigVerify( | |
467 | + | sigVerify(bw.bodyBytes, bw.proofs[0], by) | |
479 | 468 | } | |
480 | 469 |
github/deemru/w8io/026f985 105.62 ms ◑