Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/hyperdrive-trading/src/ui/rewards/useMorphoRate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ import { Address } from "viem";

const marketPoolIds: Record<Address, string> = {
// Key: Hyperdrive contract address for the market
// Value: Corresponding Morpho pool ID
// Value: Corresponding Morpho vault address (for vault rewards) or pool id (for market rewards)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These will need to be handled differently because they are different rewards programs but for now i'm just getting the rewards tooltip on this market as the morpho rewards will be the same.

// Market:Base 182d Morpho cbETH/USDC
"0x2a1ca35Ded36C531F77c614b5AAA0d4F86edbB06":
"0xdba352d93a64b17c71104cbddc6aef85cd432322a1446b5b65163cbbc615cd0c",
// Market: 182d Moonwell Flagship ETH
"0xceD9F810098f8329472AEFbaa1112534E96A5c7b":
"0xa0E430870c4604CcfC7B38Ca7845B1FF653D0ff1",
};

export function useMorphoRate({
Expand Down
2 changes: 2 additions & 0 deletions apps/hyperdrive-trading/src/ui/rewards/useRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const eligibleMarketsForMorphoRewards: Record<number, Address[]> = {
[base.id]: [
// 182d Morpho chETH/USDC
"0xFcdaF9A4A731C24ed2E1BFd6FA918d9CF7F50137",
// 182d Moonwell Flagship ETH
"0xceD9F810098f8329472AEFbaa1112534E96A5c7b",
],
};

Expand Down
Loading