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

Bug: "CurveAPYProvider: Not initialized curveAPYs" #1237

Open
peetzweg opened this issue Jan 26, 2023 · 0 comments
Open

Bug: "CurveAPYProvider: Not initialized curveAPYs" #1237

peetzweg opened this issue Jan 26, 2023 · 0 comments
Assignees
Labels
🐛 [Bug] Something isn't working

Comments

@peetzweg
Copy link
Contributor

We should fix this error message in discord. It's located in the functions. A bit odd that it's not initialized. It should fail before that if could not be initialized as expected. 🤔

if (this.curveAPYs === undefined) {
throw 'CurveAPYProvider: Not initialized `curveAPYs`';
}

Should be initialised here. Why is this not working for

Functions.plugin-rewards: Plugin '0xE9c4274341ab4Be0857476e84963b3c36787568D' (CurveGaugeERC4626) / Chain '1284'

this.curveAPYs = apyData.data.poolDetails.reduce((acc, cur) => {
return { ...acc, [cur.poolAddress.toLowerCase()]: cur };
}, {});

@peetzweg peetzweg added the 🐛 [Bug] Something isn't working label Jan 26, 2023
@peetzweg peetzweg self-assigned this Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 [Bug] Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant