Closed GrandSchtroumpf closed 2 weeks ago
Latest commit: |
bea1be0
|
Status: | ✅ Deploy successful! |
Preview URL: | https://e7a2bb25.carbon-app-sei.pages.dev |
Branch Preview URL: | https://issue--1320.carbon-app-sei.pages.dev |
Latest commit: |
bea1be0
|
Status: | ✅ Deploy successful! |
Preview URL: | https://261f0c31.carbon-app-csq.pages.dev |
Branch Preview URL: | https://issue--1320.carbon-app-csq.pages.dev |
https://github.com/bancorprotocol/carbon-app/assets/40430285/2ddb9d14-cc1a-466a-bbe1-5b931647f31b
[x] external price - decimal trim currently, we show 82 decimals. updated, show the following: IF (first 6 decimals are 0) AND (price < 1), show the 6 decimals after the first non zero digit ELSE, show 6 decimals
[ ] edit market price when there is no external price currently warning: Warning, your market price will be used in the strategy creation flow and calculations.
updated warning: Warning, the defined market price will be used for strategy budget distribution
flow:
Expected: User can't update the prices
Actual: User can change the prices of the strategy
flow:
Expected: CTA becomes enabled
Actual: CTA is disabled and becomes enabled only after user sets the market price
updated: {token} market price is missing. Please provide the market price to enable price editing.
Current: We always display difference from market price indicators below the strategy price points, regardless of the presence or absence of a market price. Updated: Show difference from market price indicators only when there is an external market price or market price that was provided by the user. Otherwise, show only the price points without the difference from market price indicators
Manually tested with :
fix #1320
Strategy with external market price:
Strategy without external market price
Note: The text is "Geometric mean", while it's not exactly that when strategy is above/below market. Maybe use "Calculated market price".
Strategy with user market price
Switching from untouched to touch changes the marginal price: https://github.com/bancorprotocol/carbon-app/assets/8143464/ce548f8d-c799-4b85-bec0-4783b09133e3