Skip to content
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

[Feature] Intelligent Wallet Utilization #66

Open
jcace opened this issue May 19, 2023 · 1 comment
Open

[Feature] Intelligent Wallet Utilization #66

jcace opened this issue May 19, 2023 · 1 comment

Comments

@jcace
Copy link
Contributor

jcace commented May 19, 2023

Update the wallet selection used to make deals, based on datacap remaining.

Algorithm will go roughly like this, when deciding which wallet to use:

  • Pick the wallet with the least available datacap, as long as it's above some datacap renewal threshold (need to know the threshold that re-triggers the Fil+ Bot), this way, datacap is used sequentially so that future traunches can be unlocked
  • If a wallet has = or < the threshold, move on to the next one
  • If all wallets are below the threshold, then choose the wallet with the most amount of datacap available
  • If all wallets are = or < a bare minimum threshold, do not make a deal and return an error

In order for this to work efficiently, we may need to poll the datacap balance and cache it as I believe it's a relatively slow operation to look it up.

@jcace
Copy link
Contributor Author

jcace commented Jun 13, 2023

I confirmed with the Fil+ team, the threshold is 75% of the datacap used up.

So, for instance if the traunche is 256TiB, then once it's down to 64TiB it should be ready to unlock the next traunche.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant