-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to limit contracts by size #381
Comments
I’m not sure a setting like that makes sense. Why would a host ever want to limit a contract's maximum size? That seems counterproductive. If a renter wants to store data and the host has space, that means more revenue for the host. If you raise your storage price significantly, you should also increase your max collateral. |
Renter could create multiple contracts. In last months I seen on number of ocasions where big contracts are not being renewed: Simply better would be to avoid situation when half of data that you store is getting deleted at once. |
Setting the A renter isn't going to form multiple contracts with a host for various reasons. Even if it did, it would treat all the contracts for a host as a unit and either renew all of them or let all of them expire, essentially not fixing your core issue. |
Description
As a user, I want to set maximum contract size in GB regardless of other settings.
Problem:
Let say that I want to have max 2TB contracts, my storage price is 200 SC. This mean that it would require collateral around 800SC per month. Then I can set max 3 month contracts, and this will be 2400SC max collateral. And thats the only way for me to limit contract size.
BUT now when prices change to 300SC, same contract would require 3600SC max collateral. This mean that if I don't change max collateral, then renter would need to renew contract for shorter duration. And in this case renter can do also single month 6TB contracts. At the end due to price changes enter may no longer be able to renew contracts.
Right now I got 8TB contracts and I would like to prevent that in future without risking contracts to not be renewed due to for example "to short" contract duration needed in new prices.
In such situation I want to set maxContractSize to 2TB, and maxCollateral for example to 5KSC, and then both those would be ued in calculation of contract size/duration to make sure that contract will never exeed that 2TB regardless of duration.
This feature may require also some changes on renter side.
Version
No response
What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: