This repository was archived by the owner on Mar 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
feat: swap adapter #281
Draft
viatrix
wants to merge
28
commits into
master
Choose a base branch
from
swap-adapter
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
feat: swap adapter #281
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
245a844
WIP: Add swap adapter
viatrix 1695f2f
WIP: tests
viatrix cadc696
Add use of NativeTokenAdapter
viatrix 72f9472
Add NativeTokenAdapter to test
viatrix e49b23b
WIP: test for swapAdapter
viatrix a1c4da1
WIP: tests
viatrix 4c73a06
Add success test for token-eth swap
viatrix 202ec3f
Add success test for swap eth to tokens
viatrix dbe2c20
Update SwapAdapter
viatrix 5c66676
Update SwapAdapter
viatrix 465e895
add more tests
andersonlee111 154f9f7
Update tests
viatrix abe40cf
Add natspec
viatrix e46a7f3
Add optional contract call
viatrix 4db63c9
Fix lint
viatrix 0813be7
Add functions for swap with/without message
viatrix f281696
Fix lint
viatrix 91f8ae2
Update comments
viatrix 4510a86
Implement exactOutput swaps
viatrix 9b41ed6
WIP: Make contract upgradeable
viatrix 36d4185
Undo upgradeable
viatrix 13a6471
Use UniversalRouter
viatrix ffd579d
Add constant for swap command
viatrix b30cabd
Update contracts/adapters/SwapAdapter.sol
lastperson 9df8b94
fix: Update SwapAdapter.sol toEth (#282)
lastperson c4a8ffe
Fix test
viatrix 6c20071
Fix approve for swap
viatrix e4d6cf3
Update approve
viatrix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.