tx · BLyvWCdHVf5nAG9ipopwwwN2LiqznXGkWrSNGstHp927
3NBwFnJJuWKWv8V8iHZaHpFxaKufnJaMTz2: -0.00900000 Waves
2022.06.16 15:36 [2098934] smart account 3NBwFnJJuWKWv8V8iHZaHpFxaKufnJaMTz2 > SELF 0.00000000 Waves
{
"type": 13,
"id": "BLyvWCdHVf5nAG9ipopwwwN2LiqznXGkWrSNGstHp927",
"fee": 900000,
"feeAssetId": null,
"timestamp": 1655383000776,
"version": 2,
"chainId": 84,
"sender": "3NBwFnJJuWKWv8V8iHZaHpFxaKufnJaMTz2",
"senderPublicKey": "44YC8eMKCBUTPoFyGtugn4GcfPKnhsB2a4f2bWfuY38u",
"proofs": [
"4UAfuwL3vRBc52HVFh4RQSTPBUraGc4Fnhkof4nh8WHaBkf4xuRvKaEdLLYY2VLwUdtiUnEkernBNXj9otUdjJ1x"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABQAAAAALb3duZXJXYWxsZXQCAAAAIzNONnZUYnRzU05qRHNNcEJGdXVERWprWHlRNnF4Tm9ySFB6AAAAAA5wcm90b2NvbFdhbGxldAIAAAAjM044VHFmOW9MTU12NjJGM1VMNHNhRzRyR3hmZVpHM25FczQAAAAACW93bmVyUGVyYwAAAAAAAAMNQAAAAAAMcHJvdG9jb2xQZXJjAAAAAAAADDUAAAAAAAVNVUxUNgAAAAAAAA9CQAAAAAEAAAABaQEAAAARZGlzdHJpYnV0ZVBheW1lbnQAAAAABAAAAAdiYWxhbmNlCQAD7wAAAAEFAAAABHRoaXMDCQAAZgAAAAIAAAAAAAAAAAAIBQAAAAdiYWxhbmNlAAAACWF2YWlsYWJsZQkAAAIAAAABAgAAABdObyBwcm9maXQgdG8gZGlzdHJpYnV0ZQQAAAALb3duZXJBbW91bnQJAABrAAAAAwgFAAAAB2JhbGFuY2UAAAAJYXZhaWxhYmxlBQAAAAlvd25lclBlcmMFAAAABU1VTFQ2BAAAAA5wcm90b2NvbEFtb3VudAkAAGUAAAACCAUAAAAHYmFsYW5jZQAAAAlhdmFpbGFibGUFAAAAC293bmVyQW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAC293bmVyV2FsbGV0BQAAAAtvd25lckFtb3VudAUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAA5wcm90b2NvbFdhbGxldAUAAAAOcHJvdG9jb2xBbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAACGtA87",
"height": 2098934,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8jJdMvS4DLPqPZvRu3rXHLoKuhxfazKXqBKR4bnEg2oN
Next: none
Diff:
Old | New | | Differences |
---|
12 | 12 | | let e = 1000000 |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(f) |
---|
15 | | - | func distributeProfits () = { |
---|
| 15 | + | func distributePayment () = { |
---|
16 | 16 | | let g = wavesBalance(this) |
---|
17 | 17 | | if ((0 > g.available)) |
---|
18 | 18 | | then throw("No profit to distribute") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "3N6vTbtsSNjDsMpBFuuDEjkXyQ6qxNorHPz" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "3N8Tqf9oLMMv62F3UL4saG4rGxfeZG3nEs4" |
---|
7 | 7 | | |
---|
8 | 8 | | let c = 200000 |
---|
9 | 9 | | |
---|
10 | 10 | | let d = 800000 |
---|
11 | 11 | | |
---|
12 | 12 | | let e = 1000000 |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(f) |
---|
15 | | - | func distributeProfits () = { |
---|
| 15 | + | func distributePayment () = { |
---|
16 | 16 | | let g = wavesBalance(this) |
---|
17 | 17 | | if ((0 > g.available)) |
---|
18 | 18 | | then throw("No profit to distribute") |
---|
19 | 19 | | else { |
---|
20 | 20 | | let h = fraction(g.available, c, e) |
---|
21 | 21 | | let i = (g.available - h) |
---|
22 | 22 | | [ScriptTransfer(addressFromStringValue(a), h, unit), ScriptTransfer(addressFromStringValue(b), i, unit)] |
---|
23 | 23 | | } |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|