1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-26 03:06:49 +02:00
market/src/components/organisms/AssetActions/Trade
Norbi e500772d21
Add price impact indicator to the trade component (#765)
* 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>
2021-08-18 12:46:27 +03:00
..
FormTrade.module.css Swap tokens (#204) 2020-11-16 16:21:15 +01:00
FormTrade.tsx Create wallet network switcher (#676) 2021-07-15 17:03:03 +02:00
index.tsx fix most remaining typing errors 2021-06-11 11:23:24 +02:00
Output.module.css WIP on expected price impact (#440) 2021-03-25 13:47:31 +02:00
Output.tsx Web3/Ocean splitup + full Polygon/Matic support (#433) 2021-03-17 11:44:26 +01:00
PriceImpact.module.css Add price impact indicator to the trade component (#765) 2021-08-18 12:46:27 +03:00
PriceImpact.tsx Add price impact indicator to the trade component (#765) 2021-08-18 12:46:27 +03:00
Slippage.module.css Add price impact indicator to the trade component (#765) 2021-08-18 12:46:27 +03:00
Slippage.tsx Add price impact indicator to the trade component (#765) 2021-08-18 12:46:27 +03:00
Swap.module.css Blink fixes (#267) 2020-11-20 09:48:49 +01:00
Swap.tsx Add price impact indicator to the trade component (#765) 2021-08-18 12:46:27 +03:00
TradeInput.module.css Swap tokens (#204) 2020-11-16 16:21:15 +01:00
TradeInput.tsx Web3/Ocean splitup + full Polygon/Matic support (#433) 2021-03-17 11:44:26 +01:00