Skip to content

Replace logic for eth swap token in fetchQuotesAndSetQuoteState with getSwapsEthToken()#10624

Merged
danjm merged 1 commit intodevelopfrom
use-getSwapsEthToken-in-swap-duck
Mar 10, 2021
Merged

Replace logic for eth swap token in fetchQuotesAndSetQuoteState with getSwapsEthToken()#10624
danjm merged 1 commit intodevelopfrom
use-getSwapsEthToken-in-swap-duck

Conversation

@danjm
Copy link
Contributor

@danjm danjm commented Mar 10, 2021

The logic to get an ETH "token" object, with balance and string properties added, in the fetchQuotesAndSetQuoteState function, is a copy of the logic in getSwapsEthToken. This PR eliminates the redundancy/duplication of code.

@danjm danjm requested a review from a team as a code owner March 10, 2021 19:16
@danjm danjm requested a review from NiranjanaBinoy March 10, 2021 19:16
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@danjm danjm merged commit 9339278 into develop Mar 10, 2021
@danjm danjm deleted the use-getSwapsEthToken-in-swap-duck branch March 10, 2021 19:43
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2021
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.

2 participants