-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand RewardResolver into a RewardConfig (#1734)
- Loading branch information
1 parent
bfa41f4
commit fe94fe1
Showing
13 changed files
with
665 additions
and
618 deletions.
There are no files selected for viewing
458 changes: 229 additions & 229 deletions
458
packages/hyperdrive-appconfig/src/generated/all.appconfig.ts
Large diffs are not rendered by default.
Oops, something went wrong.
326 changes: 163 additions & 163 deletions
326
packages/hyperdrive-appconfig/src/generated/mainnet.appconfig.ts
Large diffs are not rendered by default.
Oops, something went wrong.
238 changes: 119 additions & 119 deletions
238
packages/hyperdrive-appconfig/src/generated/testnet.appconfig.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 48 additions & 44 deletions
92
packages/hyperdrive-appconfig/src/rewards/resolvers/aero.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 15 additions & 10 deletions
25
packages/hyperdrive-appconfig/src/rewards/resolvers/etherfi.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
import { RewardsResolver } from "src/rewards/types"; | ||
import { RewardConfig } from "src/rewards/types"; | ||
import { EETH_ICON_URL } from "src/tokens/tokenIconsUrls"; | ||
import { mainnet } from "viem/chains"; | ||
|
||
export const fetchEtherfiRewards: RewardsResolver = async () => { | ||
return [ | ||
{ | ||
type: "pointMultiplier", | ||
iconUrl: EETH_ICON_URL, | ||
pointMultiplier: 2n, | ||
pointTokenLabel: "Ether.fi Loyalty Points", | ||
}, | ||
]; | ||
export const fetchEtherfiRewards: RewardConfig = { | ||
id: "fetchEtherfiRewards", | ||
chainIds: [mainnet.id], | ||
resolver: async () => { | ||
return [ | ||
{ | ||
type: "pointMultiplier", | ||
iconUrl: EETH_ICON_URL, | ||
pointMultiplier: 2n, | ||
pointTokenLabel: "Ether.fi Loyalty Points", | ||
}, | ||
]; | ||
}, | ||
}; |
25 changes: 15 additions & 10 deletions
25
packages/hyperdrive-appconfig/src/rewards/resolvers/gyroscope.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
import { RewardsResolver } from "src/rewards/types"; | ||
import { RewardConfig } from "src/rewards/types"; | ||
import { GYD_ICON_URL } from "src/tokens/tokenIconsUrls"; | ||
import { gnosis, mainnet } from "viem/chains"; | ||
|
||
export const fetchGyroscopeRewards: RewardsResolver = async () => { | ||
return [ | ||
{ | ||
type: "pointMultiplier", | ||
iconUrl: GYD_ICON_URL, | ||
pointMultiplier: 2n, | ||
pointTokenLabel: "SPIN Rewards", | ||
}, | ||
]; | ||
export const fetchGyroscopeRewards: RewardConfig = { | ||
id: "fetchGyroscopeRewards", | ||
chainIds: [mainnet.id, gnosis.id], | ||
resolver: async () => { | ||
return [ | ||
{ | ||
type: "pointMultiplier", | ||
iconUrl: GYD_ICON_URL, | ||
pointMultiplier: 2n, | ||
pointTokenLabel: "SPIN Rewards", | ||
}, | ||
]; | ||
}, | ||
}; |
23 changes: 14 additions & 9 deletions
23
packages/hyperdrive-appconfig/src/rewards/resolvers/hypervueMiles.ts
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 15 additions & 10 deletions
25
packages/hyperdrive-appconfig/src/rewards/resolvers/linea.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
import { lineaChainConfig } from "src/chains/chains"; | ||
import { RewardsResolver } from "src/rewards/types"; | ||
import { RewardConfig } from "src/rewards/types"; | ||
import { linea } from "viem/chains"; | ||
|
||
export const fetchLineaRewards: RewardsResolver = async () => { | ||
return [ | ||
{ | ||
type: "pointMultiplier", | ||
pointMultiplier: 1n, | ||
pointTokenLabel: "LXP-L Rewards", | ||
iconUrl: lineaChainConfig.iconUrl, | ||
}, | ||
]; | ||
export const fetchLineaRewards: RewardConfig = { | ||
id: "fetchLineaRewards", | ||
chainIds: [linea.id], | ||
resolver: async () => { | ||
return [ | ||
{ | ||
type: "pointMultiplier", | ||
pointMultiplier: 1n, | ||
pointTokenLabel: "LXP-L Rewards", | ||
iconUrl: lineaChainConfig.iconUrl, | ||
}, | ||
]; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters