Skip to content

Renew and refresh amounts fix

Matthew Sevey requested to merge sevey-small-refresh-renew-amount-fix into master

MERGE REQUEST

Overview

We had made an update to threadedContractMaintenance for how the initial funding of contracts was determined. This initial funding now has a min and max that helps ensure proper allocations for larger allowances.

This MR uses the minimum value when determining the renew and refresh amount of contracts to ensure that we are putting in an appropriate amount of funds. This could be the case were a contract was formed when the renter had a very small allowance, and then the renter significantly increase there allowance. This will help avoid some unnecessary refreshes as well as failed renews due to a the renew amount being too small.

Example for Visual Changes

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 Matthew Sevey

Merge request reports