Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

feat: add getdefaultpair to zrxswapper #91

Merged
merged 5 commits into from
Oct 4, 2021
Merged

feat: add getdefaultpair to zrxswapper #91

merged 5 commits into from
Oct 4, 2021

Conversation

toshiSat
Copy link
Contributor

@toshiSat toshiSat commented Oct 1, 2021

No description provided.

@toshiSat toshiSat requested a review from a team as a code owner October 1, 2021 20:31
it('gets default pair', () => {
const swapper = new ZrxSwapper(zrxSwapperDeps)
const pair = swapper.getDefaultPair()
expect(pair).toHaveLength(2)

Choose a reason for hiding this comment

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

Do you think it would be helpful to expect on a specific value for the pair, ie name = 'Ethereum' or something like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really, it will just make it so when you change the values it will cause you to change it twice, but that does make me think.. we should probably at least check the chain type so that it is Ethereum there

@toshiSat toshiSat changed the title Add getDefaultPair to zrxSwapper feat(zrxSwapper): Add getDefaultPair to zrxSwapper Oct 1, 2021
@toshiSat toshiSat changed the title feat(zrxSwapper): Add getDefaultPair to zrxSwapper feat: add getdefaultpair to zrxswapper Oct 1, 2021
@0xdef1cafe 0xdef1cafe linked an issue Oct 4, 2021 that may be closed by this pull request
@0xdef1cafe 0xdef1cafe merged commit d1cf1be into main Oct 4, 2021
@0xdef1cafe 0xdef1cafe deleted the getDefaultPair branch October 4, 2021 18:19
0xdef1cafe pushed a commit that referenced this pull request Oct 7, 2021
# @shapeshiftoss/swapper-v1.0.0 (2021-10-07)

### Features

* add approval needed to lib ([#95](#95)) ([0b1bae4](0b1bae4))
* add execute quote ([#87](#87)) ([463a06d](463a06d))
* add getdefaultpair to zrxswapper ([#91](#91)) ([d1cf1be](d1cf1be))
* get min max ([#93](#93)) ([26b788d](26b788d))
* **zrxSwapper:** add usd rate ([#85](#85)) ([1d5d36e](1d5d36e))
* bring over buildQuoteTx logic from platform-shared ([#71](#71)) ([4ec3365](4ec3365))
@0xdef1cafe
Copy link
Collaborator

🎉 This PR is included in version @shapeshiftoss/swapper-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swapper in Lib: implement getDefaultPair
4 participants