Skip to content

feat: integrate uniswap v3 - #3545

Merged
guanbinrui merged 40 commits into
developfrom
feature/uniswap-v3
Aug 13, 2021
Merged

feat: integrate uniswap v3#3545
guanbinrui merged 40 commits into
developfrom
feature/uniswap-v3

Conversation

@guanbinrui

@guanbinrui guanbinrui commented Jul 1, 2021

Copy link
Copy Markdown
Member

closes #3091

@guanbinrui
guanbinrui marked this pull request as draft July 1, 2021 06:31
septs
septs previously approved these changes Jul 1, 2021
@guanbinrui
guanbinrui force-pushed the feature/uniswap-v3 branch 2 times, most recently from 379e795 to c3fe738 Compare July 1, 2021 07:25
Base automatically changed from feature/swap-integration to develop July 1, 2021 09:57
@guanbinrui
guanbinrui force-pushed the feature/uniswap-v3 branch from bdb2d1a to cb1a640 Compare July 7, 2021 13:22
@guanbinrui
guanbinrui force-pushed the feature/uniswap-v3 branch from cb1a640 to 7260872 Compare July 10, 2021 08:15
@@ -5,5 +5,5 @@ import type { AbiItem } from 'web3-utils'

export function useQuoterContract() {

@septs septs Jul 11, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guanbinrui suggest, abstract a contract hook factory method

design a such factory method

const useQuoterContract = makeContractHook<Quoter>({
    abi: QuoterABI,
    useAddress: () => useTraderConstants().UNISWAP_V3_QUOTER_ADDRESS, 
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep it stupid and simple (KISS) first. 😄

@guanbinrui
guanbinrui force-pushed the feature/uniswap-v3 branch from 804ed7d to 324599d Compare July 11, 2021 14:53
Comment thread packages/maskbook/package.json Outdated
Comment thread packages/maskbook/src/plugins/Trader/pipes.ts
UncleBill and others added 2 commits August 10, 2021 14:28
* fix: rename *TOLERANCE* to *SETTINGS*

* fix: break a long expression into two
septs
septs previously approved these changes Aug 13, 2021
lelenei
lelenei previously approved these changes Aug 13, 2021
@guanbinrui
guanbinrui dismissed stale reviews from lelenei and septs via 479bde6 August 13, 2021 05:45
UncleBill
UncleBill previously approved these changes Aug 13, 2021
'@masknet/plugin-wallet': require.resolve('../plugins/Wallet/src/index.ts'),
'@masknet/external-plugin-previewer': require.resolve('../external-plugin-previewer/src/index.tsx'),
'@masknet/web3-shared': require.resolve('../web3-shared/src/index.ts'),
'@uniswap/v3-sdk': require.resolve('@uniswap/v3-sdk/dist/index.js'),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add this alias?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original ES module uses an unsupported import statement.

Learn more: Uniswap/v3-sdk#51

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remember to revert this change after they fix this problem?

@guanbinrui
guanbinrui merged commit cf91e70 into develop Aug 13, 2021
@guanbinrui
guanbinrui deleted the feature/uniswap-v3 branch August 13, 2021 08:42
yanzhihong23 added a commit that referenced this pull request Aug 13, 2021
* develop:
  feat: integrate uniswap v3 (#3545)
  docs(i18n): sync i18n files from Crowdin (#3946)
  feat(twitter): add an NFT tab in profile page (#3804)
  fix: icon filter conflict (#3940)
  chore: update crowdin integration
  chore: update crowdin integration
  chore: update crowdin integration
  fix: css breaks (#3939)
  Update Crowdin configuration file
  refactor: snapshot api (#3938)
  feat: update zerion get asset api for evm chain (#3928)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Demand] integrated Uniswap v3 in Trader Plugin

5 participants