Skip to content

Commit

Permalink
feat: init GHO reserve interest rate history components
Browse files Browse the repository at this point in the history
  • Loading branch information
defispartan committed Jan 22, 2025
1 parent b069faa commit 988d257
Show file tree
Hide file tree
Showing 4 changed files with 504 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/history/gho-rate-history-query.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const GHO_RATE_HISTORY_QUERY = `
query GHORateHistory {
{
reserveConfigurationHistoryItems(where: {reserve_: {symbol: "GHO"}}){
timestamp
reserveInterestRateStrategy
}
}
}
`;
10 changes: 10 additions & 0 deletions src/modules/reserve-overview/Gho/GhoReserveConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ReserveEModePanel } from '../ReserveEModePanel';
import { PanelRow, PanelTitle } from '../ReservePanels';
import { GhoBorrowInfo } from './GhoBorrowInfo';
import { GhoDiscountCalculator } from './GhoDiscountCalculator';
import { GHOInterestRateModelGraphContainer } from '../graphs/GHOInterestRateModelGraphContainer';

type GhoReserveConfigurationProps = {
reserve: ComputedReserveData;
Expand Down Expand Up @@ -93,6 +94,15 @@ export const GhoReserveConfiguration: React.FC<GhoReserveConfigurationProps> = (
</Box>
</Box>
</PanelRow>
<Divider sx={{ my: { xs: 6, sm: 10 } }} />
<PanelRow>
<PanelTitle>
<Trans>Historical Interest Rate</Trans>
</PanelTitle>
<Box sx={{ flexGrow: 1, minWidth: 0, maxWidth: '100%', width: '100%' }}>
<GHOInterestRateModelGraphContainer />
</Box>
</PanelRow>
{reserve.eModes.length > 0 && (
<>
<Divider sx={{ my: { xs: 6, sm: 10 } }} />
Expand Down
Loading

0 comments on commit 988d257

Please sign in to comment.