Closed aymericdelab closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
eternum | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 15, 2024 3:15pm |
eternum-docs | ❌ Failed (Inspect) | Nov 15, 2024 3:15pm |
You are out of MentatBot reviews. Your usage will refresh November 18 at 08:00 AM.
This pull request includes modifications across several components in the codebase. The MarketManager
class now actively imports configManager
and SetupResult
, ensuring necessary dependencies are available. The LiquidityResourceRow
component has improved the precision of percentage displays and introduced a new InputResourcesPrice
component for calculating production costs. The LiquidityTable
component's filtering method has been reformatted for better readability without functional changes. Lastly, the Swap
component enhances fee handling and slippage calculations, standardizing displayed values to four decimal places while maintaining existing logic.
File Path | Change Summary |
---|---|
client/src/dojo/modelManager/MarketManager.ts | Added active import statements for configManager and SetupResult . |
client/src/ui/components/bank/LiquidityResourceRow.tsx | Updated percentage formatting to four decimal places and added a new InputResourcesPrice component. |
client/src/ui/components/bank/LiquidityTable.tsx | Reformatted the filter method for readability; no functional changes made. |
client/src/ui/components/bank/Swap.tsx | Enhanced fee handling and slippage calculations with four decimal place formatting; clarified warning messages. |
LiquidityResourceRow
component regarding the formatting of numerical outputs are related to the main PR's modifications in the MarketManager
class, as both involve adjustments to how values are displayed and formatted in the UI, particularly concerning market prices and liquidity amounts.🐇 "In the code where numbers dance,
Precision now gets a second chance.
Imports tidy, components new,
Formatting shines, all in view.
With every line, our work's a treat,
Hopping forward, can't be beat!" 🐰✨
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?
Failed to generate code suggestions for PR
This pull request fixes the issue #2026 by updating the decimal places in the AMM against Lords amount. The changes include:
In the
LiquidityResourceRow.tsx
file, thelordsDifferencePercentage
andresourceDifferencePercentage
are now formatted with 4 decimal places instead of 2.In the
LiquidityTable.tsx
file, thesearchTerm.toLowerCase()
is now formatted with 4 decimal places instead of 2.In the
Swap.tsx
file, thelpFee
andownerFee
are now formatted with 4 decimal places instead of 2.These changes ensure that the decimal places in the AMM against Lords amount are more accurate and precise.
Summary by CodeRabbit
Release Notes
New Features
InputResourcesPrice
component for calculating and displaying production costs based on input resources.Improvements
MyLiquidity
component to four decimal places.ResourceSwap
component for improved accuracy and consistency.Bug Fixes
ResourceSwap
component to better indicate swap restrictions.Style
LiquidityTable
component without affecting functionality.