-
Notifications
You must be signed in to change notification settings - Fork 6
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
Merkle Staking/Bond function #1673
base: staging
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (5)
src/data/uiConfig.ts (5)
Line range hint
189-190
: Consider removing the unnecessary else clause as suggested by static analysis.- } else if (config.cellarNameKey === CellarNameKey.TURBO_SOMM) { - return "Estimated Reward APY" - } + return "Estimated Reward APY"
Line range hint
433-435
: Consider removing the unnecessary else clause as suggested by static analysis.- } else if (config.cellarNameKey === CellarNameKey.TURBO_SOMM) { - return "Estimated Reward APY" - } + return "Estimated Reward APY"
Line range hint
460-462
: Consider removing the unnecessary else clause as suggested by static analysis.- } else if (config.cellarNameKey === CellarNameKey.TURBO_SOMM) { - return "Estimated Reward APY" - } + return "Estimated Reward APY"
Line range hint
594-608
: Consider removing the unnecessary else clause as suggested by static analysis.- } else if (config.cellarNameKey === CellarNameKey.REAL_YIELD_ETH_OPT) { - return { - value: 15.0, - formatted: "15.0%", - } - } + return { + value: 15.0, + formatted: "15.0%", + }
Line range hint
231-231
: Potential security issue: Detected a Generic API Key. Please ensure that no sensitive keys are hardcoded in the codebase.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/data/uiConfig.ts (2 hunks)
Additional context used
Biome
src/data/uiConfig.ts
[error] 189-190: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)
Unsafe fix: Omit the else clause.
[error] 433-435: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)
Unsafe fix: Omit the else clause.
[error] 460-462: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)
Unsafe fix: Omit the else clause.
[error] 594-608: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)
Unsafe fix: Omit the else clause.
Gitleaks
src/data/uiConfig.ts
231-231: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)
Additional comments not posted (1)
src/data/uiConfig.ts (1)
324-334
: The implementation for theREAL_YIELD_USD_ARB
andREAL_YIELD_ETH_ARB
cases inbondingPeriodOptions
function provides specific bonding options. This is a crucial update for handling these new cases.
…mmelier-strangelove into merkle_staking_button
Fixes #<ISSUE_NUMBER>
Description
Describe big picture changes here. This will give viewers context for the changes.
Changes
List any technical changes.
Screenshots (if appropriate):
Testing Steps
As a reviewer, what steps should I take to verify this is working correctly?
Links
Add links to Figma files, documentation, etc.
Summary by CodeRabbit
REAL_YIELD_USD_ARB
andREAL_YIELD_ETH_ARB
cellars, enhancing customization and flexibility for these specific options.