tx · FoYXqxMCNioaoMrTrhrAjgJsdV3XHXG94y2nNytbkZNx
3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD: -0.05000000 Waves
2021.08.19 18:26 [1665413] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves
{
"type": 13,
"id": "FoYXqxMCNioaoMrTrhrAjgJsdV3XHXG94y2nNytbkZNx",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1629386787850,
"version": 2,
"chainId": 84,
"sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD",
"senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p",
"proofs": [
"3X2mYJadZGkpvRKgxRvTX9NGrvB6ZtKFBzs1gik1q6DDghJLMZWXkFk4g6bYqRuMDBtrCFWLrfgBPmub7aZX3TT6"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACQAAAAACV1UJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAV2YWx1ZQAAAAECAAAAIzNOREQzaWZBQzE3Y0x6eHVZcXNnWERSWTlEVFE1QnFtdndMAAAAAAJTVwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAABXZhbHVlAAAAAQIAAAAjM05BekVTN3BTamZvSHNLTnVtUDVIUnRTdDNxYWRicW5IaXAAAAAAAlNVCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABAgAAACMzTXJCdGRwZWQ0b1VGczFCdkxOdTUzRG0xQU1HaVRIa1Q5QgAAAAABVwEAAAAgJIyi0N0MX05S3Cl2SRTQQu7iWcF/08O72gFc6eKeTRUAAAAAAVUBAAAAIAoIBKwLVIq6udfnAo+uIATZOIkz04RHWPYS4mbgbGDdAAAAAAFTAQAAACBqH3b0J8KDRkYUL/gvKZFWCc69s28noTAvNCdHtg7UOwAAAAAFYWRtaW4JAQAAABFAZXh0ck5hdGl2ZSg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"succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CYoaXDi6d3ZYoQyB6vPugaTVVNAgRrm37xKZdzzYN4CT
Next: 3LbAY7UxzzJ69fM5Wz6C7aRi5AnwoU8mYU8rpNd6Qzw4
Diff:
Old | New | | Differences |
---|
26 | 26 | | let k = assetBalance(this, e) |
---|
27 | 27 | | let l = assetBalance(this, d) |
---|
28 | 28 | | let m = assetBalance(this, f) |
---|
29 | | - | let n = invoke(a, "exchange", [1], [AttachedPayment(d, (10 * h))]) |
---|
| 29 | + | let n = invoke(a, "exchange", [1], [AttachedPayment(d, (1 * h))]) |
---|
30 | 30 | | if ((n == n)) |
---|
31 | 31 | | then { |
---|
32 | 32 | | let o = (k - assetBalance(this, e)) |
---|
33 | 33 | | if ((o == o)) |
---|
34 | 34 | | then { |
---|
35 | | - | let p = invoke(c, "exchange", [1], [AttachedPayment(e, (o * i))]) |
---|
36 | | - | if ((p == p)) |
---|
37 | | - | then { |
---|
38 | | - | let q = "ok" |
---|
39 | | - | nil |
---|
40 | | - | } |
---|
41 | | - | else throw("strict fuck") |
---|
| 35 | + | let p = "ok" |
---|
| 36 | + | [IntegerEntry("debug", o)] |
---|
42 | 37 | | } |
---|
43 | 38 | | else throw("strict value what the fuck") |
---|
44 | 39 | | } |
---|
|
46 | 41 | | } |
---|
47 | 42 | | |
---|
48 | 43 | | |
---|
49 | | - | @Verifier(r) |
---|
50 | | - | func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) |
---|
| 44 | + | @Verifier(q) |
---|
| 45 | + | func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey) |
---|
51 | 46 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = addressFromStringValue(value("3NDD3ifAC17cLzxuYqsgXDRY9DTQ5BqmvwL")) |
---|
5 | 5 | | |
---|
6 | 6 | | let b = addressFromStringValue(value("3NAzES7pSjfoHsKNumP5HRtSt3qadbqnHip")) |
---|
7 | 7 | | |
---|
8 | 8 | | let c = addressFromStringValue(value("3MrBtdped4oUFs1BvLNu53Dm1AMGiTHkT9B")) |
---|
9 | 9 | | |
---|
10 | 10 | | let d = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS' |
---|
11 | 11 | | |
---|
12 | 12 | | let e = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL' |
---|
13 | 13 | | |
---|
14 | 14 | | let f = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g' |
---|
15 | 15 | | |
---|
16 | 16 | | let g = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272") |
---|
17 | 17 | | |
---|
18 | 18 | | let h = 100000000 |
---|
19 | 19 | | |
---|
20 | 20 | | let i = 1000000 |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(j) |
---|
23 | 23 | | func call () = if ((j.caller != g)) |
---|
24 | 24 | | then throw("only admin") |
---|
25 | 25 | | else { |
---|
26 | 26 | | let k = assetBalance(this, e) |
---|
27 | 27 | | let l = assetBalance(this, d) |
---|
28 | 28 | | let m = assetBalance(this, f) |
---|
29 | | - | let n = invoke(a, "exchange", [1], [AttachedPayment(d, (10 * h))]) |
---|
| 29 | + | let n = invoke(a, "exchange", [1], [AttachedPayment(d, (1 * h))]) |
---|
30 | 30 | | if ((n == n)) |
---|
31 | 31 | | then { |
---|
32 | 32 | | let o = (k - assetBalance(this, e)) |
---|
33 | 33 | | if ((o == o)) |
---|
34 | 34 | | then { |
---|
35 | | - | let p = invoke(c, "exchange", [1], [AttachedPayment(e, (o * i))]) |
---|
36 | | - | if ((p == p)) |
---|
37 | | - | then { |
---|
38 | | - | let q = "ok" |
---|
39 | | - | nil |
---|
40 | | - | } |
---|
41 | | - | else throw("strict fuck") |
---|
| 35 | + | let p = "ok" |
---|
| 36 | + | [IntegerEntry("debug", o)] |
---|
42 | 37 | | } |
---|
43 | 38 | | else throw("strict value what the fuck") |
---|
44 | 39 | | } |
---|
45 | 40 | | else throw("Strict value is not equal to itself") |
---|
46 | 41 | | } |
---|
47 | 42 | | |
---|
48 | 43 | | |
---|
49 | | - | @Verifier(r) |
---|
50 | | - | func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) |
---|
| 44 | + | @Verifier(q) |
---|
| 45 | + | func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey) |
---|
51 | 46 | | |
---|