Skip to content
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
wants to merge 34 commits into
base: pedro/cow-391-create-bundle-hooks-tenderly-simulation
Choose a base branch
from

Conversation

yvesfracari
Copy link

No description provided.

Copy link

linear bot commented Oct 22, 2024

fairlighteth and others added 25 commits October 23, 2024 12:27
* 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
alfetopito and others added 5 commits October 30, 2024 06:38
* 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants