ReneSmeekes / storj_earnings

Earnings calculation script for Storj V3 storagenodes
109 stars 23 forks source link

script show 1.49TBm instead of 1.5TBm #26

Closed kocoten1992 closed 6 months ago

kocoten1992 commented 7 months ago

Hi, I see is show 1.49TBm instead of 1.5TBm, I'm not sure if it was a display mistake or the script really disagree with https://www.storj.io/node

April 2024 (Version: 13.2.1)                        [snapshot: 2024-04-10 14:45:03Z]
            TYPE        PRICE                DISK   BANDWIDTH    PAYOUT
Upload          Ingress     -not paid-               50.83 GB
Upload Repair       Ingress     -not paid-                0.00  B
Download        Egress      $  2.00 / TB (avg)            5.30 GB   $  0.01
Download Repair     Egress      $  2.00 / TB (avg)            3.10 MB   $  0.00
Download Audit      Egress      $  2.00 / TB (avg)           36.61 KB   $  0.00
Disk Current Total  Storage     -not paid-      200.58 GB
           ├ Trash  Storage     -not paid-       51.20 GB
           └ Blobs  Storage     -not paid-      149.38 GB
Disk Average So Far Storage     -not paid-      102.96 GB
Disk Usage Month    Storage     $  1.49 / TBm (avg)  32.79 GBm          $  0.05
________________________________________________________________________________________________________+
Total                                32.79 GBm   56.13 GB   $  0.06
Estimated total by end of month                 102.96 GBm  175.15 GB   $  0.19

Payout and held amount by satellite:
┌────────────────────────────────┬─────────────┬──────────────────────────┬─────────────────────────────────────────────────────────────┐
│ SATELLITE                      │ HELD AMOUNT │        REPUTATION        │                       PAYOUT THIS MONTH                     │
│              Joined     Month  │      Total  │    Disq    Susp    Down  │    Storage      Egress  Repair/Aud        Held      Payout  │
├────────────────────────────────┼─────────────┼──────────────────────────┼─────────────────────────────────────────────────────────────┤
│ ap1.storj.io:7777 (0% Vetted > 0/100 Audits) │                          │  $  1.49/TBm $  2.00/TB  $  2.00/TB       75%         25%   │
│              2024-03-07     2  │   $   0.00  │   0.00%   0.00%   0.00%  │  $  0.0007   $  0.0005   $  0.0000  -$  0.0009   $  0.0003  │
├────────────────────────────────┼─────────────┼──────────────────────────┼─────────────────────────────────────────────────────────────┤
│ eu1.storj.io:7777 (63% Vetted > 49/100 Audits)                          │  $  1.49/TBm $  2.00/TB  $  2.00/TB       75%         25%   │
│              2024-03-07     2  │   $   0.00  │   0.00%   0.00%   0.00%  │  $  0.0034   $  0.0002   $  0.0000  -$  0.0027   $  0.0009  │
├────────────────────────────────┼─────────────┼──────────────────────────┼─────────────────────────────────────────────────────────────┤
│ saltlake.tardigrade.io:7777 (0% Vetted > 0/100 Audits)                  │  $  1.49/TBm $  2.00/TB  $  2.00/TB       75%         25%   │
│              2024-03-07     2  │   $   0.00  │   0.00%   0.00%   0.00%  │  $  0.0000   $  0.0000   $  0.0000  -$  0.0000   $  0.0000  │
├────────────────────────────────┼─────────────┼──────────────────────────┼─────────────────────────────────────────────────────────────┤
│ us1.storj.io:7777 (95% Vetted > 93/100 Audits)                          │  $  1.49/TBm $  2.00/TB  $  2.00/TB       75%         25%   │
│              2024-03-07     2  │   $   0.08  │   0.00%   0.00%   0.00%  │  $  0.0448   $  0.0099   $  0.0000  -$  0.0410   $  0.0137  │
├────────────────────────────────┼─────────────┼──────────────────────────┼─────────────────────────────────────────────────────────────┤ +
│ TOTAL                          │   $   0.08  │                          │  $  0.0489   $  0.0106   $  0.0000  -$  0.0446   $  0.0149  │
│ ESTIMATED END OF MONTH TOTAL   │   $   0.22  │                          │  $  0.1534   $  0.0331   $  0.0000  -$  0.1399   $  0.0466  │
└────────────────────────────────┴─────────────┴──────────────────────────┴─────────────────────────────────────────────────────────────┘
kocoten1992 commented 6 months ago

I see new README also display 1.49/TBm, so it official.

ReneSmeekes commented 6 months ago

My apologies. I thought I had replied to this. In later versions of the calculator this data is pulled from the node databases to support community satellites with different rates as well. The reason for the discrepancy is that Storj uses 30 days for this number. Since months have a mix of 30 and 31 days (and even one that is tricksy with 28 or 29 days) you actually get paid a little more than $1.50 per month on average.