forked from cowprotocol/cowswap
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pedro/cow 417 add balance diff on hook context #13
Open
yvesfracari
wants to merge
34
commits into
pedro/cow-391-create-bundle-hooks-tenderly-simulation
Choose a base branch
from
pedro/cow-417-add-balance-diff-on-hook-context
base: pedro/cow-391-create-bundle-hooks-tenderly-simulation
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.
Open
Pedro/cow 417 add balance diff on hook context #13
yvesfracari
wants to merge
34
commits into
pedro/cow-391-create-bundle-hooks-tenderly-simulation
from
pedro/cow-417-add-balance-diff-on-hook-context
Conversation
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
* fix(swap): disable partial fills * fix: use order kind correspondingly * fix: use corresponding trade type in context
* feat: refactor cowamm banner * feat: refactor cowamm banner * feat: add token selector cow amm banner * feat: add shared atom state * feat: add animation and refactoring * feat: consolidate banners into single component * feat: add darkmode styling for cow amm banners * feat: add poolinfo element * feat: text fit optimisation * feat: do not show banners without connect wallet * feat: add usdc scenario * feat: modify CTA button text for SC wallets * feat: add dark mode styles for token selector banner * feat: only show banners on supported networks * chore: temporarily hide cow amm banner --------- Co-authored-by: Alexandr Kazachenko <[email protected]>
* feat: increase max deadline for swaps to 12h * chore: linting * chore: fix typo * feat: use only validFor on quote requests, remove validTo * fix: always send validFor as is * chore: formatting * fix: do not got over max order validity for quotes * fix: remove validTo, no longer in use * feat: use different max swap deadlines for SC and EOAs
…l#4943) * chore: init tenderly module * feat: enable bundle simulations * refactor: change bundle simulation to use SWR * chore: consider custom recipient * chore: remove goldrush sdk * fix: error on post hooks get simulation * refactor: use bff on bundle simulation feature * chore: remove console.logs * chore: fix leandro comments * chore: remove unused tenderly consts * refactor: rename tenderly simulation hook * chore: refactor top token holder swr to jotai with cache * chore: rename hook to match file name * refactor: use seconds for cache time in toptokenholder state
* fix: fix trade type selector mobile view * refactor: get rid of dependency inversion issue * chore: fix trade menu height * chore: fix condition * chore: fix condition
* fix: fix trade type selector mobile view * refactor: get rid of dependency inversion issue * chore: fix trade menu height * chore: fix condition * chore: fix condition
* fix(trade): use recipient address in order data * chore: fix recipient
…owprotocol#5020) * feat: prevent adding unsupported hooks for your wallet * feat: make walletType optional * feat: address comments * chore: fix code style --------- Co-authored-by: Alexandr Kazachenko <[email protected]>
* feat: add support for custom halloween dark mode * feat: add halloween backgrounds * feat: add sound theme logic * feat: add custom theme featureFlag checks * fix: lint error * feat: disable theme sounds for widget mode * feat: simplify feature flag
* feat(yield): setup yield widget * fix(yield): display correct output amount * feat(trade-quote): support fast quote requests * feat(yield): display trade buttons * feat(yield): display confirm details * feat(yield): scope context to trade * feat(yield): do trade after confirmation * feat(yield): display order progress bar * refactor: move useIsEoaEthFlow to trade module * refactor: move hooks to tradeSlippage module * refactor: rename swapSlippage to tradeSlippage * feat(trade-slippage): split slippage state by trade type * refactor: unlink TransactionSettings from swap module * refactor: use reach modal in Settings component * refactor: move Settings component in trade module * feat(yield): add settings widget * feat(yield): use deadline value from settings * fix(trade-quote): skip fast quote if it slower than optimal * refactor: generalise TradeRateDetails from swap module * refactor: move TradeRateDetails into tradeWidgetAddons module * refactor: move SettingsTab into tradeWidgetAddons module * refactor(swap): generalise useHighFeeWarning() * refactor(swap): move hooks to trade module * refactor: move HighFeeWarning to trade widget addons * refactor: make HighFeeWarning independent * feat(yield): display trade warnings ZeroApprovalWarning and HighFeeWarning * refactor(trade): generalise NoImpactWarning * refactor(trade): generalise ZeroApprovalWarning * refactor(trade): generalise bundle tx banners * refactor: extract TradeWarnings * chore: fix yield form displaying * refactor(swap): generalise trade flow * feat(yield): support safe bundle swaps * chore: hide yield under ff * chore: remove lazy loading * chore: fix imports * fix: generalize smart slippage usage * fix: don't sync url params while navigating with yield * feat: open settings menu on slippage click * chore: update btn text * fix: make slippage settings through * chore: merge develop * chore: fix yield widget * chore: remove old migration * feat: add default lp-token lists * feat(tokens): display custom token selector for Yield widget * feat(tokens): display lp-token lists * feat: display lp-token logo * chore: slippage label * fix: fix default trade state in menu * chore: fix lint * feat: fetch lp-token balances Also added optimization to the balances updater, because node started firing 429 error * feat: reuse virtual list for lp-tokens list * chore: adjust balances updater * chore: add yield in widget conf * chore: reset balances only when account changed * feat: cache balances into localStorage * feat: display cached token balances * feat: link to create pool * chore: merge develop * chore: fix hooks trade state * fix: fix smart slippage displaying * chore: center slippage banner * chore: condition to displayCreatePoolBanner * fix: poll lp-token balances only in yield widget * feat: modify pool token list layout (cowprotocol#5014) * feat: modify pool token list layout * feat: apply mobile widgetlinks menu * feat: add padding to pool token balance --------- Co-authored-by: Alexandr Kazachenko <[email protected]> * chore: link to create pool * feat(yield): add unlock screen (cowprotocol#5043) * feat: add unlock screen for yield tab * feat: add unlock screen for yield tab * chore: revert --------- Co-authored-by: Alexandr Kazachenko <[email protected]> --------- Co-authored-by: fairlight <[email protected]>
* feat(yield): setup yield widget * fix(yield): display correct output amount * feat(trade-quote): support fast quote requests * feat(yield): display trade buttons * feat(yield): display confirm details * feat(yield): scope context to trade * feat(yield): do trade after confirmation * feat(yield): display order progress bar * refactor: move useIsEoaEthFlow to trade module * refactor: move hooks to tradeSlippage module * refactor: rename swapSlippage to tradeSlippage * feat(trade-slippage): split slippage state by trade type * refactor: unlink TransactionSettings from swap module * refactor: use reach modal in Settings component * refactor: move Settings component in trade module * feat(yield): add settings widget * feat(yield): use deadline value from settings * fix(trade-quote): skip fast quote if it slower than optimal * refactor: generalise TradeRateDetails from swap module * refactor: move TradeRateDetails into tradeWidgetAddons module * refactor: move SettingsTab into tradeWidgetAddons module * refactor(swap): generalise useHighFeeWarning() * refactor(swap): move hooks to trade module * refactor: move HighFeeWarning to trade widget addons * refactor: make HighFeeWarning independent * feat(yield): display trade warnings ZeroApprovalWarning and HighFeeWarning * refactor(trade): generalise NoImpactWarning * refactor(trade): generalise ZeroApprovalWarning * refactor(trade): generalise bundle tx banners * refactor: extract TradeWarnings * chore: fix yield form displaying * refactor(swap): generalise trade flow * feat(yield): support safe bundle swaps * chore: hide yield under ff * chore: remove lazy loading * chore: fix imports * fix: generalize smart slippage usage * fix: don't sync url params while navigating with yield * feat: open settings menu on slippage click * chore: update btn text * fix: make slippage settings through * chore: merge develop * chore: fix yield widget * chore: remove old migration * feat: add default lp-token lists * feat(tokens): display custom token selector for Yield widget * feat(tokens): display lp-token lists * feat: display lp-token logo * chore: slippage label * fix: fix default trade state in menu * chore: fix lint * feat: fetch lp-token balances Also added optimization to the balances updater, because node started firing 429 error * feat: reuse virtual list for lp-tokens list * chore: adjust balances updater * chore: add yield in widget conf * chore: reset balances only when account changed * feat: cache balances into localStorage * feat: display cached token balances * feat: link to create pool * chore: merge develop * chore: fix hooks trade state * fix: fix smart slippage displaying * chore: center slippage banner * chore: condition to displayCreatePoolBanner * fix: poll lp-token balances only in yield widget * feat(yield): persist pools info * feat(yield): allow using lp-tokens in widget * feat(yield): display lp-token logo in widget * feat(yield): display pool apy * chore: fix lp token logo * feat(yield): pool info page * chore: fix build * chore(yield): fix balance loading state * chore(yield): fix pools info fetching * chore: fix yield menu link * chore: format pool displayed values * chore: always use address for lp-tokens in url * fix: fix lp-tokens usage * chore: fix lint * chore: fix apr default value * feat: modify pool token list layout (cowprotocol#5014) * feat: modify pool token list layout * feat: apply mobile widgetlinks menu * feat: add padding to pool token balance --------- Co-authored-by: Alexandr Kazachenko <[email protected]> * chore: link to create pool * chore: merge changes * chore: fix balances cache --------- Co-authored-by: fairlight <[email protected]>
* chore: clean up file * chore: rename file * chore: revert to original file
* feat: feature flags can also be numbers * feat: add arb1 stable coins * feat: apply a/b testing fee to arb1 * chore: remove exports * fix: fix getDoNotQueryStatusEndpoint only accepting a boolean * feat: return fee even if not connected when percentage set to 100% * feat: add token logos for arb1 stablecoins * chore: added todo to remove gnosis chain feature flag * refactor: use a set for quicker lookup instead of array * chore: fix set usage --------- Co-authored-by: Alexandr Kazachenko <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.