Skip to content

Set TotalCost of contract when recovering it

MERGE REQUEST

MR Guidelines

Overview

Recovered contracts have their TotalCost set to 1H at the moment. This causes the contractor to think that they need to be renewed right away with double that. Of course a contract can't be renewed with 2H of funding.

This MR fixes this by estimating the TotalCost for recovered contracts as well as possible and for existing recovered contracts it provides a minimum in the refresh code similar to the one in the renew code.

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

Edited by Christopher Schinnerl

Merge request reports