-
Notifications
You must be signed in to change notification settings - Fork 1k
Add koalaswap adapter #2143
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
Add koalaswap adapter #2143
Conversation
|
The koalaswap adapter exports pools: Test Suites: 1 passed, 1 total |
|
The koalaswap adapter exports pools: Test Suites: 1 passed, 1 total |
src/adaptors/koalaswap/index.js
Outdated
| const feeUsd = feeValue0.plus(feeValue1) | ||
|
|
||
| const aprBn = tvl.gt(0) ? feeUsd.div(tvl).times(36500) : new BigNumber(0) | ||
| const apy = utils.aprToApy(aprBn.toNumber()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only include if the vaults autocompound, otherwise we report apy = apr
|
@Klyaus pls check tvl value for 0xA2DEBE18C2132A026542bcF2DFaA066DC36A48E9, seems wrong |
Sorry, it's my fault. The error was due to the missing price for the Koala token. I changed the code so the price is calculated on-chain using the unit0 token. When the token price appears at https://coins.llama.fi/prices/, it will take priority. |
|
The koalaswap adapter exports pools: Test Suites: 1 passed, 1 total |
No description provided.