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

Auto Top Up Custodial Deployment with Available amount #524

Closed
ygrishajev opened this issue Dec 5, 2024 · 0 comments · Fixed by #533
Closed

Auto Top Up Custodial Deployment with Available amount #524

ygrishajev opened this issue Dec 5, 2024 · 0 comments · Fixed by #533
Assignees

Comments

@ygrishajev
Copy link
Contributor

When auto top up job checks for available funds it throws an insufficient error in case there's not enough for the desired period. We need to top up with all available funds in this case. This is done for managed wallets #523 - logic should be similar.

This task also requires to fix a bug:
this check balances.balance > amount + this.MIN_FEES_AVAILABLE doesn't make sense when the deployment is in usdc https://github.com/akash-network/console/blob/main/apps/api/src/deployment/services/top-up-custodial-deployments/top-up-custodial-deployments.service.ts#L147
Instead it should fetch akt balance and check it against relevant balance. For akt deployments should prob stay the same.

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

Successfully merging a pull request may close this issue.

1 participant