[ ] edit price - do not default into price field when price is available
flow:
click edit price
IF external price is available, do not default into the price field (because it force to show the last bit of the price which is usually a number that doesnt make sense)
[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
[x] 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
[ ] edit strategy with no external price
flow:
edit a strategy with no external price
show the price input modal
in the place where we typically show "use market" and allow users to click and use the external market price, replace it with "use strategy" and allow users to click and use the strategy geomean(marginal.sell, marginal.buy)
add tool tip when mouse over "use strategy" with this text: "This price is the geometric mean of the strategy buy and sell marginal prices."
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
[x] 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