tx · hXD688ye7eBFXV7vrdmTKyQzoCVcgVZTMSbJYdQRVPP
3NBwFnJJuWKWv8V8iHZaHpFxaKufnJaMTz2: -0.00900000 Waves
2022.06.15 11:35 [2097260] smart account 3NBwFnJJuWKWv8V8iHZaHpFxaKufnJaMTz2 > SELF 0.00000000 Waves
{
"type": 13,
"id": "hXD688ye7eBFXV7vrdmTKyQzoCVcgVZTMSbJYdQRVPP",
"fee": 900000,
"feeAssetId": null,
"timestamp": 1655282166885,
"version": 2,
"chainId": 84,
"sender": "3NBwFnJJuWKWv8V8iHZaHpFxaKufnJaMTz2",
"senderPublicKey": "44YC8eMKCBUTPoFyGtugn4GcfPKnhsB2a4f2bWfuY38u",
"proofs": [
"Ng5d98V1sij6ecDT8NvV3bZuxY7ksRR4uuzC6U58WTujYExUmJBDjyUD4ZNqYpNMZF36jELFKY1w9YGzsu4xWjp"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABQAAAAALb3duZXJXYWxsZXQCAAAAIzNONnZUYnRzU05qRHNNcEJGdXVERWprWHlRNnF4Tm9ySFB6AAAAAA5wcm90b2NvbFdhbGxldAIAAAAjM044VHFmOW9MTU12NjJGM1VMNHNhRzRyR3hmZVpHM25FczQAAAAACW93bmVyUGVyYwAAAAAAAAMNQAAAAAAMcHJvdG9jb2xQZXJjAAAAAAAADDUAAAAAAAVNVUxUNgAAAAAAAA9CQAAAAAEAAAABaQEAAAARZGlzdHJpYnV0ZVByb2ZpdHMAAAAABAAAAAdiYWxhbmNlCQAD7wAAAAEFAAAABHRoaXMEAAAAC293bmVyQW1vdW50CQAAawAAAAMIBQAAAAdiYWxhbmNlAAAACWF2YWlsYWJsZQUAAAAJb3duZXJQZXJjBQAAAAVNVUxUNgQAAAAOcHJvdG9jb2xBbW91bnQJAABlAAAAAggFAAAAB2JhbGFuY2UAAAAJYXZhaWxhYmxlBQAAAAtvd25lckFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAtvd25lcldhbGxldAUAAAALb3duZXJBbW91bnQFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAOcHJvdG9jb2xXYWxsZXQFAAAADnByb3RvY29sQW1vdW50BQAAAAR1bml0BQAAAANuaWwAAAAA/rSBYw==",
"height": 2097260,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: B8e8r817wkuQ7ogRQJqHy7bmkQVMFokxNWr4GCJJWXLn
Next: 8jJdMvS4DLPqPZvRu3rXHLoKuhxfazKXqBKR4bnEg2oN
Diff:
Old | New | | Differences |
---|
16 | 16 | | let balance = wavesBalance(this) |
---|
17 | 17 | | let ownerAmount = fraction(balance.available, ownerPerc, MULT6) |
---|
18 | 18 | | let protocolAmount = (balance.available - ownerAmount) |
---|
19 | | - | [ScriptTransfer(addressFromStringValue("3N6vTbtsSNjDsMpBFuuDEjkXyQ6qxNorHPz"), ownerAmount, unit)] |
---|
| 19 | + | [ScriptTransfer(addressFromStringValue(ownerWallet), ownerAmount, unit), ScriptTransfer(addressFromStringValue(protocolWallet), protocolAmount, unit)] |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | | - | |
---|
23 | | - | @Verifier(tx) |
---|
24 | | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
25 | 22 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let ownerWallet = "3N6vTbtsSNjDsMpBFuuDEjkXyQ6qxNorHPz" |
---|
5 | 5 | | |
---|
6 | 6 | | let protocolWallet = "3N8Tqf9oLMMv62F3UL4saG4rGxfeZG3nEs4" |
---|
7 | 7 | | |
---|
8 | 8 | | let ownerPerc = 200000 |
---|
9 | 9 | | |
---|
10 | 10 | | let protocolPerc = 800000 |
---|
11 | 11 | | |
---|
12 | 12 | | let MULT6 = 1000000 |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(i) |
---|
15 | 15 | | func distributeProfits () = { |
---|
16 | 16 | | let balance = wavesBalance(this) |
---|
17 | 17 | | let ownerAmount = fraction(balance.available, ownerPerc, MULT6) |
---|
18 | 18 | | let protocolAmount = (balance.available - ownerAmount) |
---|
19 | | - | [ScriptTransfer(addressFromStringValue("3N6vTbtsSNjDsMpBFuuDEjkXyQ6qxNorHPz"), ownerAmount, unit)] |
---|
| 19 | + | [ScriptTransfer(addressFromStringValue(ownerWallet), ownerAmount, unit), ScriptTransfer(addressFromStringValue(protocolWallet), protocolAmount, unit)] |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | | - | |
---|
23 | | - | @Verifier(tx) |
---|
24 | | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
25 | 22 | | |
---|