-
Notifications
You must be signed in to change notification settings - Fork 11
feat: graphql queries, actions and react hooks for borrow and supply apy #6
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
8e58afe to
4176f7e
Compare
packages/client/src/actions/rates.ts
Outdated
| market: EvmAddress; | ||
| }; | ||
|
|
||
| export function supplyAPRHistory( |
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.
| export function supplyAPRHistory( | |
| export function supplyAPYHistory( |
packages/client/src/actions/rates.ts
Outdated
| market: EvmAddress; | ||
| }; | ||
|
|
||
| export function borrowAPRHistory( |
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.
| export function borrowAPRHistory( | |
| export function borrowAPYHistory( |
packages/react/src/rates.ts
Outdated
| chainId, | ||
| underlyingToken, | ||
| window, | ||
| market, |
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.
Unless we have a specific need (e.g., default one of these) I suggest to:
| chainId, | |
| underlyingToken, | |
| window, | |
| market, | |
| ...request |
so that supporting new fields is just matter of updating the schema.graphql and generating the graphql-end.d.ts.
packages/react/src/rates.ts
Outdated
| chainId, | ||
| underlyingToken, | ||
| window, | ||
| market, |
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.
| chainId, | |
| underlyingToken, | |
| window, | |
| market, | |
| ...request |
same here
packages/react/src/rates.ts
Outdated
| * ```tsx | ||
| * const { data } = useAaveMarkets({ | ||
| * chainIds: [chainId(1), chainId(8453)], | ||
| * user: evmAddress('0x742d35cc...'), |
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:
| * user: evmAddress('0x742d35cc...'), | |
| * user: evmAddress('0x742d35cc…'), |
packages/react/src/rates.ts
Outdated
| * ```tsx | ||
| * const { data, loading } = useAaveMarkets({ | ||
| * chainIds: [chainId(1), chainId(8453)], | ||
| * user: evmAddress('0x742d35cc...'), |
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:
| * user: evmAddress('0x742d35cc...'), | |
| * user: evmAddress('0x742d35cc…'), |
packages/client/src/actions/rates.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.
Like discussed on Slack, we can colocate this within the reserve.ts (both at react and client packages).
…-setup chore: attempt to publish canary builds to GitHUb Registry
No description provided.