Skip to content

Commit

Permalink
use displayMarketPrice for price percent
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed May 15, 2024
1 parent 8a51d20 commit 7e2dd7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export const EditPriceOverlappingStrategy: FC<Props> = (props) => {
const [marketPrice, setMarketPrice] = useState(initialMarketPrice);
const [displayMarketPrice, setDisplayMarketPrice] = useState(externalPrice);
const marketPricePercentage = {
min: marketPricePercent(order0.min, marketPrice),
max: marketPricePercent(order1.max, marketPrice),
min: marketPricePercent(order0.min, displayMarketPrice),
max: marketPricePercent(order1.max, displayMarketPrice),
price: new SafeDecimal(0),
};

Expand Down

0 comments on commit 7e2dd7c

Please sign in to comment.