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

[Astro LPer] Exit early if there is no funds #208

Open
stiiifff opened this issue Apr 14, 2024 · 0 comments
Open

[Astro LPer] Exit early if there is no funds #208

stiiifff opened this issue Apr 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@stiiifff
Copy link
Contributor

The try_lp function performs costly operations (e.g. fetching the Astroport pool info) whether the contract has received funds or not.
The balance checks should be performed first, and if there is no liquidity, the function should exit early.

@stiiifff stiiifff added the enhancement New feature or request label Apr 14, 2024
@stiiifff stiiifff added this to the v2 technical debt milestone Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant