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

@0x/contracts-erc20-bridge-sampler: Generic liquidity provider sampling #2487

Merged

Conversation

moodlezoup
Copy link
Contributor

@moodlezoup moodlezoup commented Feb 19, 2020

Description

Introduces ILiquidityProvider, a common interface that external teams can implement so that their on-chain liquidity can be easily integrated into the bridge sampler contract and thereby 0x API.
Adds quote-sampling methods to ERC20BridgeSampler to work with this new interface.

Testing instructions

Types of changes

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

@moodlezoup moodlezoup force-pushed the feature/erc20-bridge-sampler/liquidity-provider branch 2 times, most recently from a9ca4fd to 055dedd Compare February 19, 2020 23:42
@moodlezoup moodlezoup changed the title Add methods to Sampler contract to plug into generic on-chain liquidi… @0x/contracts-erc20-bridge-sampler: Generic liquidity provider sampling Feb 19, 2020
@moodlezoup moodlezoup marked this pull request as ready for review February 19, 2020 23:46
@coveralls
Copy link

coveralls commented Feb 20, 2020

Coverage Status

Coverage remained the same at 79.638% when pulling 76491fa on feature/erc20-bridge-sampler/liquidity-provider into 58ff2dc on development.

Copy link
Contributor

@hysz hysz left a comment

Choose a reason for hiding this comment

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

Looks good to me! Just left a few minor questions & suggestions.

@PirosB3
Copy link
Contributor

PirosB3 commented Feb 21, 2020

I noticed that IERC20BridgeSampler was not amended to implement the new functions (sampleSellsFromLiquidityProvider and sampleBuysFromLiquidityProvider). Are we planning on changing these as part of this PR?

@moodlezoup moodlezoup force-pushed the feature/erc20-bridge-sampler/liquidity-provider branch from 055dedd to 11f3ff1 Compare February 21, 2020 21:57
@moodlezoup moodlezoup force-pushed the feature/erc20-bridge-sampler/liquidity-provider branch 2 times, most recently from 9a97717 to a9c8787 Compare February 21, 2020 22:01
Copy link
Contributor

@dorothy-zbornak dorothy-zbornak left a comment

Choose a reason for hiding this comment

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

👍 ༼ ͠° ͟ ͟ʖ ͡° ༽ 👍

Copy link
Contributor

@hysz hysz left a comment

Choose a reason for hiding this comment

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

Looks great! Merge it (~‾▿‾)~

@moodlezoup moodlezoup force-pushed the feature/erc20-bridge-sampler/liquidity-provider branch from a9c8787 to 76491fa Compare February 26, 2020 18:46
@moodlezoup moodlezoup merged commit 9a7c4b2 into development Feb 26, 2020
@moodlezoup moodlezoup deleted the feature/erc20-bridge-sampler/liquidity-provider branch February 26, 2020 19:54
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.

5 participants