Skip to content

Conversation

@n8mgr
Copy link
Member

@n8mgr n8mgr commented Nov 26, 2025

This version is draft because it will currently fail RHP4 tests because it treats max collateral as a TB/byte/block like storage price and collateral instead of as a fixed absolute value. If we want to continue down this path, we will need to similarly change the RHP4 validation and bump the protocol version.

Alternatively, we can calculate the actual max collateral value as described in the issue and assume max contract duration.

Fixes #857

@github-project-automation github-project-automation bot moved this to In Progress in Sia Nov 26, 2025
@n8mgr n8mgr requested a review from ChrisSchinnerl November 26, 2025 00:19
CollateralMultiplier: 2.0, // 2x storage price
MaxCollateral: types.Siacoins(1000),
CollateralMultiplier: 2.0, // 2x storage price
MaxCollateralMultiplier: 10.0, // 10x collateral
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't making this a multiplier effectively remove the max? I'm not sure how you'd apply it in the validation code.

e.g. a host offers 1H / byte / month then the max becomes 10H / byte / month. But what does that even mean?

In my head that would only work if the multiplier was not just a multiplier but the actual storage you expect a renter to be able to store in a contract. Like 10 * 1<<40 and then the max is 10TB of collateral / month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Make max collateral a multiplier

3 participants