Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

reverse market computation #1127

Merged
merged 2 commits into from
Jun 19, 2020

Conversation

W3stside
Copy link
Contributor

Reverses the market computation for filtering: WETH/DAI is now filtered by DAI/WETH etc

@ghost
Copy link

ghost commented Jun 19, 2020

Travis automatic deployment:
https://pr1127--dexreact.review.gnosisdev.com

@W3stside W3stside merged commit 10c649c into filter-orders-by-market Jun 19, 2020
@W3stside W3stside deleted the reverse-token-filter-order branch June 19, 2020 14:43
W3stside added a commit that referenced this pull request Jun 19, 2020
* conputeMarketProp: always return string

* filter orders by market

* remove Market type

* make filterTradesAndOrderFnFactory and new filter fns

1. filterTradesFn
2. filterOrdersFn
3. pass to useDataFilter
4. Orders: make work for both different filters

* remove computeMarketProp

* computeMarketProp accepts args to create inverse market

1. allow inverse markets to be searched on demand

* empty string separator

* reverse market computation (#1127)

* reverse market computation

* Trades: invert price (#1128)
W3stside added a commit that referenced this pull request Jun 19, 2020
* moved common fns to utils

1. filter fns to utils/filter
2. computeMarketProp to utils/display

* move DetailedPendingOrder into ExchangeAPI

1. create Market interface which is extended by DetailedAuctionElement, DetailedPendingOrder + Trades

* moved types and imported, moved fns out of OrdersWidget into utils

* derive market prop in useTrades for later filtering

1. use in TradesWidget

* fixed moved type

* Filter /Orders by market (#1119)

* conputeMarketProp: always return string

* filter orders by market

* remove Market type

* make filterTradesAndOrderFnFactory and new filter fns

1. filterTradesFn
2. filterOrdersFn
3. pass to useDataFilter
4. Orders: make work for both different filters

* remove computeMarketProp

* computeMarketProp accepts args to create inverse market

1. allow inverse markets to be searched on demand

* empty string separator

* reverse market computation (#1127)

* reverse market computation

* Trades: invert price (#1128)
alfetopito pushed a commit that referenced this pull request Jun 24, 2020
* CardTable CSS

1. fix issue with left - right alignment
2. pass left alignment as default, right as custom to Balances
3. min-height and no padding for forced equal header height
4. css cleanup (formatting, lint)
5. less padding trades header

* Card default css

1. format css for readability
2. better padding

* add isTab prop to set smaller columns dimensions

* fixed lowBalance format

* 1102/filter fills trades (#1116)

* moved common fns to utils

1. filter fns to utils/filter
2. computeMarketProp to utils/display

* move DetailedPendingOrder into ExchangeAPI

1. create Market interface which is extended by DetailedAuctionElement, DetailedPendingOrder + Trades

* moved types and imported, moved fns out of OrdersWidget into utils

* derive market prop in useTrades for later filtering

1. use in TradesWidget

* fixed moved type

* Filter /Orders by market (#1119)

* conputeMarketProp: always return string

* filter orders by market

* remove Market type

* make filterTradesAndOrderFnFactory and new filter fns

1. filterTradesFn
2. filterOrdersFn
3. pass to useDataFilter
4. Orders: make work for both different filters

* remove computeMarketProp

* computeMarketProp accepts args to create inverse market

1. allow inverse markets to be searched on demand

* empty string separator

* reverse market computation (#1127)

* reverse market computation

* Trades: invert price (#1128)

* CardRowDrawer classname

1. dont use styled component as class
2. fix padding

* Update src/components/Layout/Card/Card.tsx

Co-authored-by: Velenir <Velenir@users.noreply.github.com>

* make CardTable/Widget fit better

1. Balances page: less cluttering, better wrapping format
2. make wrap/unwrap buttons thinner

* Orders: better responsive design

Co-authored-by: Velenir <Velenir@users.noreply.github.com>
alfetopito added a commit that referenced this pull request Jun 24, 2020
* Adding breathing room to trades table

* 1029/styling take 3 mobile opt (#1098)

* extrapolate common CardWidget into new component

* add correct data labels to TradeRow

* Added CardWidgetWrapper to TradesWidget

* address der uebernit, ja wohl

* Extracting InnerTradesWidget component for reusability

* Fitting `Fills` tab into TradeWidget

* Combine limit price and fill price columns

* Combine amount and received columns

* Adding some space when using double headers on same column

* Added some padding to the left of Fills table

* Renamed columns Amount=>Sold and Received=>Bought

* Move Fills tab to second position

* 1029.2/david style take (#1112)

* CardTable CSS

1. fix issue with left - right alignment
2. pass left alignment as default, right as custom to Balances
3. min-height and no padding for forced equal header height
4. css cleanup (formatting, lint)
5. less padding trades header

* Card default css

1. format css for readability
2. better padding

* add isTab prop to set smaller columns dimensions

* fixed lowBalance format

* 1102/filter fills trades (#1116)

* moved common fns to utils

1. filter fns to utils/filter
2. computeMarketProp to utils/display

* move DetailedPendingOrder into ExchangeAPI

1. create Market interface which is extended by DetailedAuctionElement, DetailedPendingOrder + Trades

* moved types and imported, moved fns out of OrdersWidget into utils

* derive market prop in useTrades for later filtering

1. use in TradesWidget

* fixed moved type

* Filter /Orders by market (#1119)

* conputeMarketProp: always return string

* filter orders by market

* remove Market type

* make filterTradesAndOrderFnFactory and new filter fns

1. filterTradesFn
2. filterOrdersFn
3. pass to useDataFilter
4. Orders: make work for both different filters

* remove computeMarketProp

* computeMarketProp accepts args to create inverse market

1. allow inverse markets to be searched on demand

* empty string separator

* reverse market computation (#1127)

* reverse market computation

* Trades: invert price (#1128)

* CardRowDrawer classname

1. dont use styled component as class
2. fix padding

* Update src/components/Layout/Card/Card.tsx

Co-authored-by: Velenir <Velenir@users.noreply.github.com>

* make CardTable/Widget fit better

1. Balances page: less cluttering, better wrapping format
2. make wrap/unwrap buttons thinner

* Orders: better responsive design

Co-authored-by: Velenir <Velenir@users.noreply.github.com>

Co-authored-by: Leandro Boscariol <leandro.boscariol@gnosis.io>
Co-authored-by: David <david.sato64@gmail.com>
Co-authored-by: Velenir <Velenir@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant