-
Notifications
You must be signed in to change notification settings - Fork 6
Alpha Homora v2 on Avalanche #OE-10 #67
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
base: master
Are you sure you want to change the base?
Conversation
|
|
|
And constants please in all upper case (with underscores). |
|
|
uwe
left a comment
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.
On the Lend pools it is unclear how we could calculate the APY. For example "AVAX" shows 3.81% Earn APY, 1.60% Avax APR and 1.83 ALPHA.e APR.
Can you please explain that for one pool and current data from the web site?
| ] | ||
| */ | ||
|
|
||
| export const poolRegistry: Array<string[]> = [ |
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.
Where is this coming from? Can't we get this via web3 calls (or by listening to some events)?
The web site lists 18 pools, but here are only 16.
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.
will commit change to this static list soon, going to make it dynamic
| chef: String! | ||
| } | ||
|
|
||
| type AlphaHomoraV2FarmData @entity { |
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.
How can we get the TVL for a farm?
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.
TVL for farm data be obtained by multiplying the LP tokens locked value by the usd value of the lp token
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.
@d-fda is this a problem? I think we can get prices for "real" tokens (like "AVAX"), but not for LP tokens.
e40c24a to
bedb813
Compare
| chef: String! | ||
| } | ||
|
|
||
| type AlphaHomoraV2FarmData @entity { |
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.
@d-fda is this a problem? I think we can get prices for "real" tokens (like "AVAX"), but not for LP tokens.
| } else { | ||
| decimals = decimalsResult.value; | ||
| } | ||
| decimals = BigInt.fromI32(decimals).toI32(); |
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.
Why is this needed? What does it do?
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.
accidentally left line 45 in, is not needed.
make sure multiplication is done before subtracting reward debt
Fixes #OE-10
PR Checklist