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:
OldNewDifferences
1616 let balance = wavesBalance(this)
1717 let ownerAmount = fraction(balance.available, ownerPerc, MULT6)
1818 let protocolAmount = (balance.available - ownerAmount)
19-[ScriptTransfer(addressFromStringValue("3N6vTbtsSNjDsMpBFuuDEjkXyQ6qxNorHPz"), ownerAmount, unit)]
19+[ScriptTransfer(addressFromStringValue(ownerWallet), ownerAmount, unit), ScriptTransfer(addressFromStringValue(protocolWallet), protocolAmount, unit)]
2020 }
2121
22-
23-@Verifier(tx)
24-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2522
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerWallet = "3N6vTbtsSNjDsMpBFuuDEjkXyQ6qxNorHPz"
55
66 let protocolWallet = "3N8Tqf9oLMMv62F3UL4saG4rGxfeZG3nEs4"
77
88 let ownerPerc = 200000
99
1010 let protocolPerc = 800000
1111
1212 let MULT6 = 1000000
1313
1414 @Callable(i)
1515 func distributeProfits () = {
1616 let balance = wavesBalance(this)
1717 let ownerAmount = fraction(balance.available, ownerPerc, MULT6)
1818 let protocolAmount = (balance.available - ownerAmount)
19-[ScriptTransfer(addressFromStringValue("3N6vTbtsSNjDsMpBFuuDEjkXyQ6qxNorHPz"), ownerAmount, unit)]
19+[ScriptTransfer(addressFromStringValue(ownerWallet), ownerAmount, unit), ScriptTransfer(addressFromStringValue(protocolWallet), protocolAmount, unit)]
2020 }
2121
22-
23-@Verifier(tx)
24-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2522

github/deemru/w8io/169f3d6 
36.56 ms