mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-26 03:06:49 +02:00
* WIP * calculate price impact by subtracting tokens fiat values * get and use spotPrice for price impact calculation, use Decimal * set impact to 0 if input and output values are undefined * move price impact to a new component * turn price impact value color to red if grater than 5 * add tooltip to price impact and slippage * removed fiat price * change formula * remove console.log * don't block add liquidity button * typos * proper text alignment Co-authored-by: mihaisc <mihai@oceanprotocol.com> Co-authored-by: Matthias Kretschmann <m@kretschmann.io> |
||
---|---|---|
.. | ||
FormTrade.module.css | ||
FormTrade.tsx | ||
index.tsx | ||
Output.module.css | ||
Output.tsx | ||
PriceImpact.module.css | ||
PriceImpact.tsx | ||
Slippage.module.css | ||
Slippage.tsx | ||
Swap.module.css | ||
Swap.tsx | ||
TradeInput.module.css | ||
TradeInput.tsx |