fix(alert): convert akt denom to udenom when saving balance alert thr…#1527
fix(alert): convert akt denom to udenom when saving balance alert thr…#1527ygrishajev merged 1 commit intomainfrom
Conversation
WalkthroughThe changes introduce denomination-aware logic for deployment alert thresholds and conversions in both the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DeploymentAlertsContainer
participant denomToUdenom
User->>DeploymentAlertsContainer: Submit deployment alert config with denom
alt denom is "uakt"
DeploymentAlertsContainer->>denomToUdenom: Convert value for "uakt"
denomToUdenom-->>DeploymentAlertsContainer: Converted value
else denom is not "uakt"
DeploymentAlertsContainer->>denomToUdenom: Convert value for non-"uakt"
denomToUdenom-->>DeploymentAlertsContainer: Converted value
end
DeploymentAlertsContainer->>User: Send alert request with correct threshold
Possibly related PRs
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (5)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| (value: number) => { | ||
| if (deployment.denom !== "uakt") { | ||
| return value; | ||
| return denomToUdenom(value); |
There was a problem hiding this comment.
this is the actual fix
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1527 +/- ##
========================================
Coverage 40.46% 40.47%
========================================
Files 871 871
Lines 21160 21160
Branches 3861 3860 -1
========================================
+ Hits 8563 8565 +2
- Misses 11880 12285 +405
+ Partials 717 310 -407
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
…eshold
Summary by CodeRabbit
Bug Fixes
Tests