-
Notifications
You must be signed in to change notification settings - Fork 103
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
[4] feat(balances): update balances for priority tokens #3417
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
1e2db20
feat: multicall library
shoom3301 04dcf87
feat: balances and allowances lib
shoom3301 85962d4
feat: replace uniswap milticall by new balances and allowances lib
shoom3301 4cc05c1
refactor: remove uniswap multicall and legacy hooks
shoom3301 68f79d0
feat: replace uniswap milticall by new balances and allowances lib
shoom3301 36f3eb8
feat: multicall library
shoom3301 2791105
Merge branch 'feat/multicall' of https://github.com/cowprotocol/cowsw…
shoom3301 3d27d18
Merge branch 'feat/balances-and-allowances' of https://github.com/cow…
shoom3301 725ede0
Merge branch 'feat/refactor-balances' of https://github.com/cowprotoc…
shoom3301 27a540b
chore: update yarnlock
shoom3301 ce2460b
chore: fix useClassifiedUserClaims
shoom3301 ea3af64
chore: remove unused file
shoom3301 e34ce1e
feat(balances): update balances for priority tokens
shoom3301 9654afd
feat: multicall library
shoom3301 6ee8391
Merge branch 'feat/multicall' of https://github.com/cowprotocol/cowsw…
shoom3301 24fbe15
chore: merge multicall
shoom3301 96796a4
chore: fix typos
shoom3301 2d215a5
chore: move ERC_20_INTERFACE to abis lib
shoom3301 3ffd46f
Merge branch 'feat/balances-and-allowances' of https://github.com/cow…
shoom3301 8b09660
Merge branch 'refactor/remove-uniswap-multicall' of https://github.co…
shoom3301 4d6ee4d
chore: merge changes
shoom3301 2edde6d
fix: do not display balance when wallet not connected
shoom3301 23b6253
chore: fix balances and allowances in orders table
shoom3301 2eed9dd
chore: reset balances and allowances when wallet is not connected
shoom3301 4d7c349
fix(swap): update need approve state faster
shoom3301 2d56de0
chore: fix getOrderParams tests
shoom3301 57a986e
chore: fix enough allowance/balance check
shoom3301 185c30f
fix(orders-table): display balances warning for tokens with unknown p…
shoom3301 167185a
Merge branch 'develop' of https://github.com/cowprotocol/cowswap into…
shoom3301 1b28db3
chore: test commit
shoom3301 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 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
1 change: 0 additions & 1 deletion
1
apps/cowswap-frontend/src/common/containers/TradeApprove/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from './TradeApproveButton' | ||
export * from './TradeApproveModal' | ||
export * from './useTradeApproveCallback' | ||
export * from './useTradeApproveState' |
14 changes: 0 additions & 14 deletions
14
apps/cowswap-frontend/src/common/containers/TradeApprove/useTradeApproveState.ts
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alfetopito please, take a look on the fix, I'm not sure if it's correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea here - like with
hasEnoughAllowance
- is to only set the warning if we know there's no valid permit.hasValidPendingPermit
can beundefined
, when we don't know/can't tell.Was that causing any issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see now that this has been reverted on #3487