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

feat: Add CREAM as a liquidity source #2715

Merged
merged 13 commits into from
Oct 16, 2020
Merged

feat: Add CREAM as a liquidity source #2715

merged 13 commits into from
Oct 16, 2020

Conversation

alexkroeger
Copy link
Contributor

@alexkroeger alexkroeger commented Sep 29, 2020

Description

Add CREAM to asset-swapper.

CREAM (Crypto Rules Everything Around Me) is a Balancer clone.

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.

@alexkroeger alexkroeger changed the title Added cream bridge contract [WIP] Added cream bridge contract Sep 29, 2020
@alexkroeger alexkroeger changed the title [WIP] Added cream bridge contract [WIP] Add CREAM as a liquidity source Sep 29, 2020
Copy link
Member

@dekz dekz left a comment

Choose a reason for hiding this comment

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

Do we need an entry in contract-addresses for the creamBridge to keep it stored somewhere?

Probably needed for the migrations as well.

@0xProject 0xProject deleted a comment Oct 14, 2020
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.

Small nits, but looking gr8!

const MAX_POOLS_FETCHED = 3;
// tslint:enable:custom-no-magic-numbers

export class CreamPoolsCache {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there really any meaningful difference between this class and BalancerPoolsCache? Does it make sense to just modify and inherit from that class, passing in getPoolsWithTokens() and parsePoolData() callbacks to the super?

@alexkroeger alexkroeger changed the title [WIP] Add CREAM as a liquidity source feat: Add CREAM as a liquidity source Oct 16, 2020
Copy link
Member

@dekz dekz left a comment

Choose a reason for hiding this comment

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

Think this might need a rebase ontop of latest development, then a re-publish once on development for 0xAPI. So that the sha matches the commit.

Once this is merged github basically deletes the sha making it hard to find which AS release was which commit, unless published off development.

So rebase, merge, publish:private

@alexkroeger alexkroeger merged commit 3aaa0ad into development Oct 16, 2020
@alexkroeger alexkroeger deleted the feat/add-cream branch October 16, 2020 21:18
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.

None yet

3 participants