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

Add Synthetix Atomic Swap support [TKR-324] #518

Merged
merged 11 commits into from
Jul 26, 2022
Merged

Conversation

kyu-c
Copy link
Contributor

@kyu-c kyu-c commented Jul 18, 2022

Description

  • Add Synthetix Atomic Swap support on Ethereum Mainnet and Optimism.

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. (will be updated right before merge)

@kyu-c kyu-c requested review from dekz and dextracker as code owners July 18, 2022 20:10
@kyu-c kyu-c marked this pull request as draft July 18, 2022 20:10
@kyu-c kyu-c removed request for dekz and dextracker July 18, 2022 20:10
@kyu-c kyu-c requested a review from dekz July 18, 2022 21:19
@kyu-c kyu-c marked this pull request as ready for review July 18, 2022 21:20
@@ -919,8 +940,19 @@ export const DEFAULT_TOKEN_ADJACENCY_GRAPH_BY_CHAIN_ID = valueByChainId<TokenAdj
builder.addBidirectional(MAINNET_TOKENS.OHMV2, MAINNET_TOKENS.BTRFLY);
// Lido
builder.addBidirectional(MAINNET_TOKENS.stETH, MAINNET_TOKENS.wstETH);
// Synthetix Atomic Swap
builder.addCompleteSubgraph([
Copy link
Member

Choose a reason for hiding this comment

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

Interested to see how the gasUsed is for this (you can console.log it in Sampler Metrics)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mainnet:

  • sUSD -> WETH (sell) : 162m
  • sUSD -> WETH (buy) : 165m
  • WETH -> sUSD (sell): 168m
  • WETH -> sUSD (buy): 158m

Optimism

  • sUSD -> WETH (sell) : 107m
  • sUSD -> WETH (buy) : 153m
  • WETH -> sUSD (sell) : 338m
  • WETH -> sUSD (buy) : 288m

@kyu-c kyu-c merged commit a5babb9 into development Jul 26, 2022
@kyu-c kyu-c deleted the feat/synthetix branch July 26, 2022 04:17
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.

2 participants