|
1 | | -import { Link } from '@/components/Link' |
2 | | -import IMG_LOGO_SAFE from '@cowprotocol/assets/images/logo-safe.svg' |
3 | | -import IMG_LOGO_LIDO from '@cowprotocol/assets/images/logo-lido.svg' |
| 1 | +import { ReactNode } from 'react' |
| 2 | + |
| 3 | +import { useCowAnalytics } from '@cowprotocol/analytics' |
| 4 | +import IMG_DOCS from '@cowprotocol/assets/images/image-docs.svg' |
| 5 | +import IMG_GRANT_COLOR from '@cowprotocol/assets/images/image-grant-color.svg' |
| 6 | +import IMG_HOOKS from '@cowprotocol/assets/images/image-hooks.svg' |
| 7 | +import IMG_MILKMAN from '@cowprotocol/assets/images/image-milkman.svg' |
| 8 | +import IMG_PROGRAMMATIC_ORDERS from '@cowprotocol/assets/images/image-programmatic-orders.svg' |
| 9 | +import IMG_SMARTORDERS from '@cowprotocol/assets/images/image-smartorders.svg' |
| 10 | +import IMG_SURPLUS from '@cowprotocol/assets/images/image-surplus.svg' |
| 11 | +import IMG_TWAP from '@cowprotocol/assets/images/image-twap.svg' |
| 12 | +import IMG_WIDGET from '@cowprotocol/assets/images/image-widget.svg' |
| 13 | +import IMG_LOGO_AAVE from '@cowprotocol/assets/images/logo-aave-icon.svg' |
| 14 | +import IMG_LOGO_ALCHEMIX from '@cowprotocol/assets/images/logo-alchemix.svg' |
| 15 | +import IMG_LOGO_ARAGON from '@cowprotocol/assets/images/logo-aragon.svg' |
| 16 | +import IMG_LOGO_AURA from '@cowprotocol/assets/images/logo-aura.svg' |
| 17 | +import IMG_LOGO_BALANCER from '@cowprotocol/assets/images/logo-balancer.svg' |
4 | 18 | import IMG_LOGO_CURVE_TEXT from '@cowprotocol/assets/images/logo-curve-text.svg' |
| 19 | +import IMG_LOGO_ENS from '@cowprotocol/assets/images/logo-ens-icon.svg' |
| 20 | +import IMG_LOGO_FRAX_FINANCE from '@cowprotocol/assets/images/logo-frax.svg' |
5 | 21 | import IMG_LOGO_GNOSIS from '@cowprotocol/assets/images/logo-gnosis.svg' |
6 | | -import IMG_LOGO_BALANCER from '@cowprotocol/assets/images/logo-balancer.svg' |
7 | | -import IMG_LOGO_AURA from '@cowprotocol/assets/images/logo-aura.svg' |
| 22 | +import IMG_LOGO_INDEX_COOP from '@cowprotocol/assets/images/logo-index.svg' |
8 | 23 | import IMG_LOGO_KARPATKEY from '@cowprotocol/assets/images/logo-karpatkey.svg' |
9 | | -import IMG_LOGO_SHAPESHIFT from '@cowprotocol/assets/images/logo-shapeshift.svg' |
| 24 | +import IMG_LOGO_LIDO from '@cowprotocol/assets/images/logo-lido.svg' |
10 | 25 | import IMG_LOGO_MAKER from '@cowprotocol/assets/images/logo-maker.svg' |
11 | | -import IMG_LOGO_SYNTHETIX from '@cowprotocol/assets/images/logo-synthetix.svg' |
12 | | -import IMG_LOGO_ARAGON from '@cowprotocol/assets/images/logo-aragon.svg' |
| 26 | +import IMG_LOGO_NEXUS from '@cowprotocol/assets/images/logo-nexus-icon.svg' |
13 | 27 | import IMG_LOGO_PLEASER_DAO from '@cowprotocol/assets/images/logo-pleasrdao.svg' |
14 | 28 | import IMG_LOGO_POLYGON from '@cowprotocol/assets/images/logo-polygon.svg' |
15 | | -import IMG_LOGO_INDEX_COOP from '@cowprotocol/assets/images/logo-index.svg' |
16 | | -import IMG_LOGO_ALCHEMIX from '@cowprotocol/assets/images/logo-alchemix.svg' |
17 | | -import IMG_LOGO_STAKE_DAO from '@cowprotocol/assets/images/logo-stakedao.svg' |
18 | 29 | import IMG_LOGO_RHINO_FI from '@cowprotocol/assets/images/logo-rhino.svg' |
| 30 | +import IMG_LOGO_SAFE from '@cowprotocol/assets/images/logo-safe.svg' |
| 31 | +import IMG_LOGO_SHAPESHIFT from '@cowprotocol/assets/images/logo-shapeshift.svg' |
| 32 | +import IMG_LOGO_STAKE_DAO from '@cowprotocol/assets/images/logo-stakedao.svg' |
| 33 | +import IMG_LOGO_SYNTHETIX from '@cowprotocol/assets/images/logo-synthetix.svg' |
19 | 34 | import IMG_LOGO_TELLER_FINANCE from '@cowprotocol/assets/images/logo-teller.svg' |
20 | | -import IMG_LOGO_FRAX_FINANCE from '@cowprotocol/assets/images/logo-frax.svg' |
21 | | -import IMG_GRANT_COLOR from '@cowprotocol/assets/images/image-grant-color.svg' |
22 | | -import IMG_WIDGET from '@cowprotocol/assets/images/image-widget.svg' |
23 | | -import IMG_DOCS from '@cowprotocol/assets/images/image-docs.svg' |
24 | | -import IMG_MILKMAN from '@cowprotocol/assets/images/image-milkman.svg' |
25 | | -import IMG_TWAP from '@cowprotocol/assets/images/image-twap.svg' |
26 | | -import IMG_SURPLUS from '@cowprotocol/assets/images/image-surplus.svg' |
27 | | -import IMG_HOOKS from '@cowprotocol/assets/images/image-hooks.svg' |
28 | | -import IMG_PROGRAMMATIC_ORDERS from '@cowprotocol/assets/images/image-programmatic-orders.svg' |
29 | | -import IMG_SMARTORDERS from '@cowprotocol/assets/images/image-smartorders.svg' |
30 | | -import IMG_LOGO_NEXUS from '@cowprotocol/assets/images/logo-nexus-icon.svg' |
31 | | -import IMG_LOGO_ENS from '@cowprotocol/assets/images/logo-ens-icon.svg' |
32 | | -import IMG_LOGO_AAVE from '@cowprotocol/assets/images/logo-aave-icon.svg' |
33 | | -import { CowFiCategory, toCowFiGtmEvent } from 'src/common/analytics/types' |
34 | | -import { ReactNode } from 'react' |
35 | | -import { useCowAnalytics } from '@cowprotocol/analytics' |
36 | 35 | import { Color } from '@cowprotocol/ui' |
37 | 36 |
|
| 37 | +import { CowFiCategory, toCowFiGtmEvent } from 'src/common/analytics/types' |
| 38 | + |
| 39 | +import { Link } from '@/components/Link' |
| 40 | + |
38 | 41 | export interface FaqItem { |
39 | 42 | question: string |
40 | 43 | answer: ReactNode |
41 | 44 | } |
42 | 45 |
|
| 46 | +// eslint-disable-next-line max-lines-per-function |
43 | 47 | export function useFaqData(): FaqItem[] { |
| 48 | + // eslint-disable-next-line unused-imports/no-unused-vars |
44 | 49 | const analytics = useCowAnalytics() |
45 | 50 |
|
46 | 51 | return [ |
@@ -119,7 +124,7 @@ export function useFaqData(): FaqItem[] { |
119 | 124 | question: 'How does CoW Protocol provide better prices for trades?', |
120 | 125 | answer: ( |
121 | 126 | <> |
122 | | - CoW Protocol's unique architecture allows it to give users comprehensive MEV protection as well as better |
| 127 | + CoW Protocol's unique architecture allows it to give users comprehensive MEV protection as well as better |
123 | 128 | prices for their trades. While most other DEX aggregators simply compare quotes from various DEXs and execute |
124 | 129 | orders against whichever DEX is lowest at the time of quoting, CoW Protocol seeks to find the best execution |
125 | 130 | price. |
@@ -211,7 +216,7 @@ export function useFaqData(): FaqItem[] { |
211 | 216 | </Link>{' '} |
212 | 217 | is a signed message that a user submits through their wallet which specifies an action they want to take — |
213 | 218 | such as trading a token, minting an NFT, entering or exiting a LP position etc. These intents can then be |
214 | | - executed by third parties, such as CoW Protocol's{' '} |
| 219 | + executed by third parties, such as CoW Protocol's{' '} |
215 | 220 | <Link |
216 | 221 | href="https://docs.cow.fi/cow-protocol/concepts/introduction/solvers" |
217 | 222 | external |
|
0 commit comments