tx · 5rhagE1oBrbfEWtvrYDHBNG4W4qQKEsimpGLmv8dFB7a
3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD: -0.05000000 Waves
2021.08.19 17:46 [1665373] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves
{
"type": 13,
"id": "5rhagE1oBrbfEWtvrYDHBNG4W4qQKEsimpGLmv8dFB7a",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1629384375624,
"version": 2,
"chainId": 84,
"sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD",
"senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p",
"proofs": [
"4UbwyDzkdqu3LZiQ3twUCyx7U79iJEo788XAfXQ3YVYj6ohT4tYKEgUsJATbZSdjLU1q8hKxmcqM6GdnsJjXRy9q"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABwAAAAACV1UJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAV2YWx1ZQAAAAECAAAAIzNOREQzaWZBQzE3Y0x6eHVZcXNnWERSWTlEVFE1QnFtdndMAAAAAAFXAQAAACAkjKLQ3QxfTlLcKXZJFNBC7uJZwX/Tw7vaAVzp4p5NFQAAAAABVQEAAAAgCggErAtUirq51+cCj64gBNk4iTPThEdY9hLiZuBsYN0AAAAAAVMBAAAAIGofdvQnwoNGRhQv+C8pkVYJzr2zbyehMC80J0e2DtQ7AAAAAAVhZG1pbgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM045N0c5OGJQRjVnaG5aMWlNbVE3dE1INk1Cc05ablMyNzIAAAAABnNjYWxlOAAAAAAABfXhAAAAAAAGc2NhbGU2AAAAAAAAD0JAAAAAAQAAAAFpAQAAAARjYWxsAAAAAAMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAFYWRtaW4JAAACAAAAAQIAAAAKb25seSBhZG1pbgQAAAAFc3dhcDEJAAP8AAAABAUAAAACV1UCAAAACGV4Y2hhbmdlCQAETAAAAAIAAAAAAAAAAAEFAAAAA25pbAkABEwAAAACCQEAAAAPQXR0YWNoZWRQYXltZW50AAAAAgUAAAABVwkAAGgAAAACAAAAAAAAAAAKBQAAAAZzY2FsZTgFAAAAA25pbAMJAAAAAAAAAgUAAAAFc3dhcDEFAAAABXN3YXAxBAAAAAJvawIAAAACb2sFAAAAA25pbAkAAAIAAAABAgAAACNTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5mZx9RQ==",
"height": 1665373,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4NhvVBKVgr48Fg1Gz622e8PWbCfqQXebBX6m8FD6KHYC
Next: HAxByyBU2Q3UHxuPRpFdJdDBnWodzmj5AjC9doUZvrKm
Diff:
Old | New | | Differences |
---|
20 | 20 | | then throw("only admin") |
---|
21 | 21 | | else { |
---|
22 | 22 | | let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (10 * scale8))]) |
---|
23 | | - | nil |
---|
| 23 | + | if ((swap1 == swap1)) |
---|
| 24 | + | then { |
---|
| 25 | + | let ok = "ok" |
---|
| 26 | + | nil |
---|
| 27 | + | } |
---|
| 28 | + | else throw("Strict value is not equal to itself") |
---|
24 | 29 | | } |
---|
25 | 30 | | |
---|
26 | 31 | | |
---|
Full:
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 W = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS' |
---|
7 | 7 | | |
---|
8 | 8 | | let U = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL' |
---|
9 | 9 | | |
---|
10 | 10 | | let S = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g' |
---|
11 | 11 | | |
---|
12 | 12 | | let admin = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272") |
---|
13 | 13 | | |
---|
14 | 14 | | let scale8 = 100000000 |
---|
15 | 15 | | |
---|
16 | 16 | | let scale6 = 1000000 |
---|
17 | 17 | | |
---|
18 | 18 | | @Callable(i) |
---|
19 | 19 | | func call () = if ((i.caller != admin)) |
---|
20 | 20 | | then throw("only admin") |
---|
21 | 21 | | else { |
---|
22 | 22 | | let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (10 * scale8))]) |
---|
23 | | - | nil |
---|
| 23 | + | if ((swap1 == swap1)) |
---|
| 24 | + | then { |
---|
| 25 | + | let ok = "ok" |
---|
| 26 | + | nil |
---|
| 27 | + | } |
---|
| 28 | + | else throw("Strict value is not equal to itself") |
---|
24 | 29 | | } |
---|
25 | 30 | | |
---|
26 | 31 | | |
---|
27 | 32 | | @Verifier(tx) |
---|
28 | 33 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
29 | 34 | | |
---|