Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for a new DEX: OSwap.
OSwap
OSwap is a Mainnet DEX built by the team at Origin Protocol.
In its V1, OSwap is hyper focused on a few LST pairs. Some characteristics of the V1 include:
The first pair to launch (more to come) is WETH/stETH. It went live last year on Mainnet and within less than 2 weeks has achieved over $10M in trading volume.
Deployment address
The WETH/stETH pool is deployed on Mainnet at address 0x85B78AcA6Deae198fBF201c82DAF6Ca21942acc6
Contract code and documentation
The contracts code and documentation can be found in this open source repository: https://github.com/OriginProtocol/origin-swap
Interface
There is no router, each pair has a pool that should be called directly for doing swaps.
The pool's interface is Uniswap V2 Router compatible: it exposes the methods swapExactTokensForTokens and swapTokensForExactTokens.
Integration
Tests
Tests can be run via
yarn test-integration oswap