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.
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.