Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [asset-swapper] Add Crypto.com as a source #43

Merged
merged 8 commits into from
Dec 1, 2020

Conversation

dekz
Copy link
Member

@dekz dekz commented Nov 20, 2020

Description

Adds Crypto.com as a source, a fork of Uniswap V2.
Sims

TODO:

  • eligible for VIP
  • deploy custom bridge for its unique address, though this can be done in the next FQT to avoid overhead (reuse sushiswap/uniswap)

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.

Comment on lines 202 to 204
case ERC20BridgeSource.CryptoCom:
// HACK: deploy using unique address
return opts.contractAddresses.sushiswapBridge;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the only side effect of this that it would show up as sushi volume in analytics?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah and avoid paying the overhead of FQT<-->Bridge transfer costs

@dekz dekz force-pushed the feat/asset-swapper/crypto-com branch 2 times, most recently from 6a296bd to 2c924bb Compare November 25, 2020 01:32
@dekz dekz force-pushed the feat/asset-swapper/crypto-com branch 2 times, most recently from 9d134c9 to 4dbf7da Compare November 27, 2020 01:25
@@ -332,6 +332,7 @@ export async function runMigrationsAsync(
dodoBridge: NULL_ADDRESS,
dodoHelper: NULL_ADDRESS,
snowSwapBridge: NULL_ADDRESS,
cryptoComBridge: NULL_ADDRESS,
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we don't have bridges in this interface anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

What do you mean, we need it to branch off in the BridgeAdapter.

We took them out of contract-addresses and moved them into AS.

@dekz dekz force-pushed the feat/asset-swapper/crypto-com branch from 85681df to 6a96c93 Compare December 1, 2020 02:24
@dekz dekz merged commit f698721 into development Dec 1, 2020
@dekz dekz deleted the feat/asset-swapper/crypto-com branch December 1, 2020 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants