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:
OldNewDifferences
1212 let e = 1000000
1313
1414 @Callable(f)
15-func distributeProfits () = {
15+func distributePayment () = {
1616 let g = wavesBalance(this)
1717 if ((0 > g.available))
1818 then throw("No profit to distribute")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3N6vTbtsSNjDsMpBFuuDEjkXyQ6qxNorHPz"
55
66 let b = "3N8Tqf9oLMMv62F3UL4saG4rGxfeZG3nEs4"
77
88 let c = 200000
99
1010 let d = 800000
1111
1212 let e = 1000000
1313
1414 @Callable(f)
15-func distributeProfits () = {
15+func distributePayment () = {
1616 let g = wavesBalance(this)
1717 if ((0 > g.available))
1818 then throw("No profit to distribute")
1919 else {
2020 let h = fraction(g.available, c, e)
2121 let i = (g.available - h)
2222 [ScriptTransfer(addressFromStringValue(a), h, unit), ScriptTransfer(addressFromStringValue(b), i, unit)]
2323 }
2424 }
2525
2626

github/deemru/w8io/026f985 
25.12 ms