Skip to content

Update Spending Metrics

Peter-Jan Brone requested to merge update-financial-metrics into master

MERGE REQUEST

MR Guidelines

Overview

This MR is an initial step towards tracking the money that flows from contracts into ephemeral accounts. Tracking what happens to that money is quite involved so an initial step is to add two fields to the contract header which are:

  • FundAccountSpending
  • MaintenanceSpending

I've chosen these fields because FundAccountSpending will reflect exactly how much money ended up in the EA. That is important because it takes into account RPC costs and such, so the value in that field is how much money ended up at the renter's EA on the host.

The MaintenanceSpending field will keep track of the money that is spent on updating PTs, the actual RPC cost for the fund account is attributed to this field, the account balance syncs, etc. Basically the cost of running and maintaining an RHP3 capable worker.

Example for Visual Changes

N/A

Checklist

Review and complete the checklist to ensure that the MR is complete before assigned to an approver.

  • All new methods or updated methods have clear docstrings
  • Testing added or updated for new methods
  • Any new packages are added to Makefile and .gitlab-ci.yml
  • API documentation updated for API updates
  • Module README.md updated for changes to workflow
  • Issue added to Sia-UI repo for new supporting features
  • Changelog File Created

Issues Closed

N/A

Edited by Peter-Jan Brone

Merge request reports