-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wire up the RewardsTooltip to new rewards from appconfig #1727
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
@@ -27,7 +27,7 @@ export function VariableApyCta({ | |||
chainId: hyperdrive.chainId, | |||
hyperdriveAddress: hyperdrive.address, | |||
}); | |||
const { rewards } = useRewards(hyperdrive); | |||
const { rewards } = useOpenShortRewards({ hyperdriveConfig: hyperdrive }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the lpapystat the rewards variable is renamed. I think we either rename to "shortRewards" or "liquidityRewards" or just keep it at 'rewards' across the board.
c3c262e
to
f55a7f2
Compare
Rewards in the UI are now being read from the
appconfig.rewards
object for open short and add liquidity.Once this lands, I'll:
useYieldSourceRate
)HyperdriveConfig
andYieldSourceConfig
to complete the migration to the new rewards system