-
Notifications
You must be signed in to change notification settings - Fork 998
singularity-finance: use new vault registry and batch calls #2138
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
Conversation
As you can see the test fails here but it runs for us locally, however not all of the time. The issue is 429 rate limit or unsynced nodes. |
@a-k-l-sdao ran this locally, this looks v wrong:
(see tvlUsd) |
… multicall and get info in batch calls of 100, get tvlUsd using oracle(via vault)
The singularity-finance adapter exports pools: Test Suites: 1 passed, 1 total
|
Thank you for bringing this observation to our attention. |
The singularity-finance adapter exports pools: Test Suites: 1 passed, 1 total
|
@a-k-l-sdao keep in mind, that on defillama we list pools as long as they fulfil the min tvl criteria of $10k some of the vaults have negative apr? and seems like this link (maybe others too) doesn't work https://singularityfinance.ai/vaults/0xd8d294714F5b1A1104CFE75C0Bb4ceF547a05124 |
Thank you for your comment.
On a side note: the majority of the current vaults are test vaults with 0 tvl that will be disabled and not included. |
…o and refactor script to only pull beta and prod vaults
The singularity-finance adapter exports pools: Test Suites: 1 passed, 1 total
|
I have pushed an update to the script. I added a multicall version of the utils.getERC4626Info in our script (feel free to add it in utils) and filter by onchain vault types. all links should work now. |
During testing, we ran into some issues with Jest showing AggregateError messages caused by rate limiting. To make the script more robust, we updated our vault registry to support fetching vaults in batches.
We’re also preparing to launch a new product that lets users deploy their own vaults, which will significantly increase the total number of vaults (already at 175 and growing). This change ensures the system can handle the higher volume smoothly.