tx · 7H6UZtvP9KzJmodBMWpgzK41qdHMdJnEazjnohA1kEA6 3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr: -0.01000000 Waves 2023.05.02 11:28 [2559902] smart account 3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr > SELF 0.00000000 Waves
{ "type": 13, "id": "7H6UZtvP9KzJmodBMWpgzK41qdHMdJnEazjnohA1kEA6", "fee": 1000000, "feeAssetId": null, "timestamp": 1683016116312, "version": 2, "chainId": 84, "sender": "3N1jUC4jdR81nVTUX6LkZsWxBwEGXBLMTzr", "senderPublicKey": "FDZa2xgu4cguexFSg1X8LsKUrqcYEcLGDpixvT2hNxE5", "proofs": [ "5FUPGQkiS35rnvHVHgXt2TNkw9tz5k8Ce36FyfPiS73ZV3wyQMtckm5MvF1yB58sH2QjYcDNNTXhEWNyLKRmv15U" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAADAAAAAAh4dG5hcHlJZAEAAAAgxlIegU7qbuM8wJewDl8s8mrp7Z2yhtGaQnioYH0+G7EAAAAABXh0bklkAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAJaXNTdG9wcGVkBwAAAAIAAAABaQEAAAAPYnV5WFROQVBZZm9yWFROAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAV4dG5JZAkAAAIAAAABAgAAABVhdHRhY2ggWFROIHRva2VuIG9ubHkDBQAAAAlpc1N0b3BwZWQJAAACAAAAAQIAAAAZc21hcnQgY29udHJhY3QgaXMgb24gbG9jawkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAIeHRuYXB5SWQFAAAAA25pbAAAAAFpAQAAABBzZWxsWFROQVBZZm9yWFROAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAh4dG5hcHlJZAkAAAIAAAABAgAAABhhdHRhY2ggWFROQVBZIHRva2VuIG9ubHkDBQAAAAlpc1N0b3BwZWQJAAACAAAAAQIAAAAZc21hcnQgY29udHJhY3QgaXMgb24gbG9jawkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABmFtb3VudAUAAAAFeHRuSWQFAAAAA25pbAAAAABg9R1Q", "height": 2559902, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BastVKfqQe28s41833wDTESM4tQo8f4YbPtoMhzpNeiQ Next: UkZrAGSUy2tYySqA9HdkZTEoP6vdtRZYQvvDnTR3gPq Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let xtnapyId = base58' | |
4 | + | let xtnapyId = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
5 | 5 | ||
6 | 6 | let xtnId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let xtnapyId = base58' | |
4 | + | let xtnapyId = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
5 | 5 | ||
6 | 6 | let xtnId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
7 | 7 | ||
8 | 8 | let isStopped = false | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | 11 | func buyXTNAPYforXTN () = { | |
12 | 12 | let pmt = value(i.payments[0]) | |
13 | 13 | let amount = pmt.amount | |
14 | 14 | if ((pmt.assetId != xtnId)) | |
15 | 15 | then throw("attach XTN token only") | |
16 | 16 | else if (isStopped) | |
17 | 17 | then throw("smart contract is on lock") | |
18 | 18 | else [ScriptTransfer(i.caller, amount, xtnapyId)] | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Callable(i) | |
24 | 24 | func sellXTNAPYforXTN () = { | |
25 | 25 | let pmt = value(i.payments[0]) | |
26 | 26 | let amount = pmt.amount | |
27 | 27 | if ((pmt.assetId != xtnapyId)) | |
28 | 28 | then throw("attach XTNAPY token only") | |
29 | 29 | else if (isStopped) | |
30 | 30 | then throw("smart contract is on lock") | |
31 | 31 | else [ScriptTransfer(i.caller, amount, xtnId)] | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 |
github/deemru/w8io/169f3d6 22.25 ms ◑