tx · 3LbAY7UxzzJ69fM5Wz6C7aRi5AnwoU8mYU8rpNd6Qzw4 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD: -0.05000000 Waves 2021.08.19 18:26 [1665413] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves
{ "type": 13, "id": "3LbAY7UxzzJ69fM5Wz6C7aRi5AnwoU8mYU8rpNd6Qzw4", "fee": 5000000, "feeAssetId": null, "timestamp": 1629386868390, "version": 2, "chainId": 84, "sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD", "senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p", "proofs": [ "2fqv12ytNvDvPZviVtRweE625ujiGeYjPhVABrcAAgrF3J6rr9ZewSQ7MXZU3dzSyZzoSs5EuupDtkM5JHSsw1Qc" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACQAAAAACV1UJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAV2YWx1ZQAAAAECAAAAIzNOREQzaWZBQzE3Y0x6eHVZcXNnWERSWTlEVFE1QnFtdndMAAAAAAJTVwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAABXZhbHVlAAAAAQIAAAAjM05BekVTN3BTamZvSHNLTnVtUDVIUnRTdDNxYWRicW5IaXAAAAAAAlNVCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABAgAAACMzTXJCdGRwZWQ0b1VGczFCdkxOdTUzRG0xQU1HaVRIa1Q5QgAAAAABVwEAAAAgJIyi0N0MX05S3Cl2SRTQQu7iWcF/08O72gFc6eKeTRUAAAAAAVUBAAAAIAoIBKwLVIq6udfnAo+uIATZOIkz04RHWPYS4mbgbGDdAAAAAAFTAQAAACBqH3b0J8KDRkYUL/gvKZFWCc69s28noTAvNCdHtg7UOwAAAAAFYWRtaW4JAQAAABFAZXh0ck5hdGl2ZSgx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AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlE3jtV", "height": 1665413, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FoYXqxMCNioaoMrTrhrAjgJsdV3XHXG94y2nNytbkZNx Next: 7SJTMpACkFvoAK64nM4ZGcic8gLDQ7QhQZX7nDbkQU6K Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | let bbu = assetBalance(this, U) | |
27 | 27 | let bbw = assetBalance(this, W) | |
28 | 28 | let bbs = assetBalance(this, S) | |
29 | - | let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (1 * scale8))]) | |
30 | - | if ((swap1 == swap1)) | |
29 | + | if (if (if ((bbu == bbu)) | |
30 | + | then (bbw == bbw) | |
31 | + | else false) | |
32 | + | then (bbs == bbs) | |
33 | + | else false) | |
31 | 34 | then { | |
32 | - | let | |
33 | - | if (( | |
35 | + | let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (1 * scale8))]) | |
36 | + | if ((swap1 == swap1)) | |
34 | 37 | then { | |
35 | - | let ok = "ok" | |
38 | + | let diffu = (bbu - assetBalance(this, U)) | |
39 | + | if ((diffu == diffu)) | |
40 | + | then { | |
41 | + | let ok = "ok" | |
36 | 42 | [IntegerEntry("debug", diffu)] | |
43 | + | } | |
44 | + | else throw("strict value what the fuck") | |
37 | 45 | } | |
38 | 46 | else throw("strict value what the fuck") | |
39 | 47 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let WU = addressFromStringValue(value("3NDD3ifAC17cLzxuYqsgXDRY9DTQ5BqmvwL")) | |
5 | 5 | ||
6 | 6 | let SW = addressFromStringValue(value("3NAzES7pSjfoHsKNumP5HRtSt3qadbqnHip")) | |
7 | 7 | ||
8 | 8 | let SU = addressFromStringValue(value("3MrBtdped4oUFs1BvLNu53Dm1AMGiTHkT9B")) | |
9 | 9 | ||
10 | 10 | let W = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS' | |
11 | 11 | ||
12 | 12 | let U = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL' | |
13 | 13 | ||
14 | 14 | let S = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g' | |
15 | 15 | ||
16 | 16 | let admin = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272") | |
17 | 17 | ||
18 | 18 | let scale8 = 100000000 | |
19 | 19 | ||
20 | 20 | let scale6 = 1000000 | |
21 | 21 | ||
22 | 22 | @Callable(i) | |
23 | 23 | func call () = if ((i.caller != admin)) | |
24 | 24 | then throw("only admin") | |
25 | 25 | else { | |
26 | 26 | let bbu = assetBalance(this, U) | |
27 | 27 | let bbw = assetBalance(this, W) | |
28 | 28 | let bbs = assetBalance(this, S) | |
29 | - | let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (1 * scale8))]) | |
30 | - | if ((swap1 == swap1)) | |
29 | + | if (if (if ((bbu == bbu)) | |
30 | + | then (bbw == bbw) | |
31 | + | else false) | |
32 | + | then (bbs == bbs) | |
33 | + | else false) | |
31 | 34 | then { | |
32 | - | let | |
33 | - | if (( | |
35 | + | let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (1 * scale8))]) | |
36 | + | if ((swap1 == swap1)) | |
34 | 37 | then { | |
35 | - | let ok = "ok" | |
38 | + | let diffu = (bbu - assetBalance(this, U)) | |
39 | + | if ((diffu == diffu)) | |
40 | + | then { | |
41 | + | let ok = "ok" | |
36 | 42 | [IntegerEntry("debug", diffu)] | |
43 | + | } | |
44 | + | else throw("strict value what the fuck") | |
37 | 45 | } | |
38 | 46 | else throw("strict value what the fuck") | |
39 | 47 | } | |
40 | 48 | else throw("Strict value is not equal to itself") | |
41 | 49 | } | |
42 | 50 | ||
43 | 51 | ||
44 | 52 | @Verifier(tx) | |
45 | 53 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
46 | 54 |
github/deemru/w8io/169f3d6 50.53 ms ◑