Skip to content

Additional swaps network support#10721

Merged
danjm merged 2 commits intodevelopfrom
bnc-swaps-support
Mar 25, 2021
Merged

Additional swaps network support#10721
danjm merged 2 commits intodevelopfrom
bnc-swaps-support

Conversation

@danjm
Copy link
Contributor

@danjm danjm commented Mar 25, 2021

Swaps now works on another network.

@danjm danjm requested a review from a team as a code owner March 25, 2021 15:52
@danjm danjm requested a review from brad-decker March 25, 2021 15:52
@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.

Gudahtt
Gudahtt previously approved these changes Mar 25, 2021
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!

// An address that the metaswap-api recognizes as ETH, in place of the token address that ERC-20 tokens have
const ETH_SWAPS_TOKEN_ADDRESS = '0x0000000000000000000000000000000000000000';

const BNB_SWAPS_TOKEN_ADDRESS = '0x0000000000000000000000000000000000000000';
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Maybe instead of adding an additional constant, we could rename the old one to no longer imply that it's network-specific? It doesn't seem network-specific.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good suggestion. Done in 2ee4589

@metamaskbot
Copy link
Collaborator

Builds ready [2ee4589]
Page Load Metrics (600 ± 11 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint44705394
domContentLoaded5426525982311
load5436536002311
domInteractive5416525982311

@danjm danjm merged commit cc55a98 into develop Mar 25, 2021
@danjm danjm deleted the bnc-swaps-support branch March 25, 2021 20:52
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 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.

3 participants