delvtech / hyperdrive-frontend

A monorepo of apps and packages for the Hyperdrive AMM.
https://hyperdrive.box
Apache License 2.0
10 stars 1 forks source link

Add rewards field to appconfig #1595

Closed DannyDelott closed 1 month ago

DannyDelott commented 1 month ago

This pull request introduces a new rewards field to the YieldSource interface within the appconfig. The rewards field allows developers to define a rewards function along with its arguments, which returns a list of rewards to be displayed to the caller.

Currently, rewards can be one of the following types:

•   **Simple Display Message**: For example, used in Linea or EETH.
•   **Transferable Token**: For example, used in WELL.
•   **Non-Transferable Token**: For example, used in MORPHO.
changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: 9cf06a9983baba74a89e17a443cbf83d372b8074

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperdrive-mainnet-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 0:10am
hyperdrive-sepolia-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 0:10am
6 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **hyperdrive-js** | ⬜️ Ignored ([Inspect](https://vercel.com/delvtech/hyperdrive-js/DrtJgLoSC9MvtvPCskvj3HHYaLGy)) | [Visit Preview](https://hyperdrive-js-git-rewards-sandbox-delvtech.vercel.app) | | Oct 25, 2024 0:10am | | **hyperdrive-mainnet-production** | ⬜️ Ignored ([Inspect](https://vercel.com/delvtech/hyperdrive-mainnet-production/E7gNRyGXkk5vbXrmJwv9zQ3xRnKG)) | [Visit Preview](https://hyperdrive-mainnet-production-git-rewards-sandbox-delvtech.vercel.app) | | Oct 25, 2024 0:10am | | **hyperdrive-sepolia-production** | ⬜️ Ignored ([Inspect](https://vercel.com/delvtech/hyperdrive-sepolia-production/ATedVKWFUNzTqniYdDUxzip9YEsZ)) | [Visit Preview](https://hyperdrive-sepolia-production-git-rewards-sandbox-delvtech.vercel.app) | | Oct 25, 2024 0:10am | | **testnet-v1** | ⬜️ Ignored ([Inspect](https://vercel.com/delvtech/testnet-v1/5gmgQRhU9koDziZBtg7asLfA2367)) | | | Oct 25, 2024 0:10am | | **testnet-v1.0.6** | ⬜️ Ignored ([Inspect](https://vercel.com/delvtech/testnet-v1.0.6/Dh1Z4hYmDu95YKaBpsppnWqRgddH)) | [Visit Preview](https://testnet-v106-git-rewards-sandbox-delvtech.vercel.app) | | Oct 25, 2024 0:10am | | **trading-competition** | ⬜️ Ignored ([Inspect](https://vercel.com/delvtech/trading-competition/6wPaALPLjc5xm3MmoHDCwS5rrFnT)) | [Visit Preview](https://trading-competition-git-rewards-sandbox-delvtech.vercel.app) | | Oct 25, 2024 0:10am |