application-research / delta-dm

Delta Large Dataset Manager
7 stars 3 forks source link

[Feature] Intelligent Wallet Utilization #66

Open jcace opened 1 year ago

jcace commented 1 year ago

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

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

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 commented 1 year ago

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.