This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add first version of refactoring on swap (#283)
* chore: add Maybe type * refac: move useCoinInput to a separate file * refac: rename ActiveInput enum to SwapDirection * refac: code improvements * fix: dependency cycle * refac: use state machine on swap * refac: improve state machine * refactor: remove refetch balances on swap machine * fix: add insufficient eth for gas fee as first validation * chore: rename fetch pool info state * refac: add safeBigInt method * chore: udpate deps * fix: adapt swap to new CoinBalance component * fix: keep swap service between refreshs on dev * fix: tests * chore: some few small script changes * fix: swap url params for coin selected * fix: price impact calculation * fix: tests * chore: missing requested changes from review * chore: add tx feedback on swa
- Loading branch information
1 parent
a7fd488
commit 652c83b
Showing
81 changed files
with
2,052 additions
and
1,135 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
dist | ||
CHANGELOG.md | ||
packages/app/src/types | ||
contracts | ||
contracts | ||
**/*.typegen.ts |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ yarn-lock.yaml | |
.github | ||
packages/contracts | ||
.pnpm-store | ||
.env | ||
.env | ||
**/*.typegen.ts |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ ENV_FILE=.env | |
if [ ! -f "$FILE" ]; then | ||
cp .env.example $ENV_FILE | ||
fi | ||
|
||
pnpm xstate:typegen |
This file contains 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
This file contains 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.