Skip to content

Conversation

@JoaquinBattilana
Copy link
Member

No description provided.

market: EvmAddress;
};

export function supplyAPRHistory(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export function supplyAPRHistory(
export function supplyAPYHistory(

market: EvmAddress;
};

export function borrowAPRHistory(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export function borrowAPRHistory(
export function borrowAPYHistory(

Comment on lines 53 to 56
chainId,
underlyingToken,
window,
market,
Copy link
Contributor

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:

Suggested change
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.

Comment on lines 104 to 107
chainId,
underlyingToken,
window,
market,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
chainId,
underlyingToken,
window,
market,
...request

same here

* ```tsx
* const { data } = useAaveMarkets({
* chainIds: [chainId(1), chainId(8453)],
* user: evmAddress('0x742d35cc...'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
* user: evmAddress('0x742d35cc...'),
* user: evmAddress('0x742d35cc'),

* ```tsx
* const { data, loading } = useAaveMarkets({
* chainIds: [chainId(1), chainId(8453)],
* user: evmAddress('0x742d35cc...'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
* user: evmAddress('0x742d35cc...'),
* user: evmAddress('0x742d35cc'),

Copy link
Contributor

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).

@JoaquinBattilana JoaquinBattilana changed the title [WIP] feat: graphql queries, actions and react hooks for borrow and supply apy feat: graphql queries, actions and react hooks for borrow and supply apy Jul 18, 2025
@juangm juangm merged commit 5389d40 into main Jul 21, 2025
2 checks passed
@cesarenaldi cesarenaldi deleted the feat/rates-sampling branch August 28, 2025 07:16
cesarenaldi added a commit that referenced this pull request Sep 2, 2025
…-setup

chore: attempt to publish canary builds to GitHUb Registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants