-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat(earn): fetch apy from contract #5389
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5389 +/- ##
==========================================
- Coverage 86.08% 86.07% -0.01%
==========================================
Files 737 739 +2
Lines 30016 30040 +24
Branches 5143 5143
==========================================
+ Hits 25838 25858 +20
- Misses 3950 3954 +4
Partials 228 228
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
src/web3/networkConfig.ts
Outdated
const ARB_USDC_TOKEN_ID_MAINNET = `${NetworkId['arbitrum-one']}:0xaf88d065e77c8cc2239327c5edb3a432268e5831` | ||
|
||
const ARB_AAVE_CONTRACT_ADDRESS_STAGING = '0xBfC91D59fdAA134A4ED45f7B584cAf96D7792Eff' | ||
const ARB_AAVE_CONTRACT_ADDRESS_MAINNET = '0x794a61358D6845594F94dc1DB02A252b5b4814aD' |
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.
Nit: change the name to specify that this is the Pool contract.
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.
can you add "v3" too? e.g., ...AAVE_POOL_V3_CONTRACT...
src/abis/AavePool.ts
Outdated
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.
Is there a place to verify the contents of this file for Aave?
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.
nit: add the V3 to the filename
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.
### Description Add a fetch function that gets APY from aave contract ### Test plan Unit tests, manual ### Related issues - Fixes ACT-1174 ### Backwards compatibility Yes ### Network scalability N/A
Description
Add a fetch function that gets APY from aave contract
Test plan
Unit tests, manual
Related issues
Backwards compatibility
Yes
Network scalability
N/A