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

feat: refactor frozen warnings #1141

Merged
merged 7 commits into from
Sep 16, 2022
Merged

Conversation

defispartan
Copy link
Collaborator

@defispartan defispartan commented Sep 16, 2022

  • Clean up logic around market and asset based warnings
  • Add mappings for Fantom market warnings

@@ -217,7 +216,6 @@ export const SupplyModalContent = ({
poolReserve.symbol === 'AAVE' &&
isFeatureEnabled.staking(currentMarketData) && <AAVEWarning />}
{poolReserve.symbol === 'SNX' && !maxAmountToSupply.eq('0') && <SNXWarning />}
{currentNetworkConfig.name === 'Harmony' && <HarmonyWarning learnMore={true} />}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This warning is unnecessary since supply is disabled when market is frozen

@github-actions
Copy link

github-actions bot commented Sep 16, 2022

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 505.9 KB (🟢 -400 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Three Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 39.63 KB (🟡 +331 B) 545.53 KB
/markets 13.02 KB (🟡 +555 B) 518.91 KB
/reserve-overview 60.77 KB (🟡 +700 B) 566.66 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@github-actions
Copy link

@github-actions
Copy link

drewcook
drewcook previously approved these changes Sep 16, 2022
if (currentMarket && currentMarket === 'proto_harmony_v3') {
return 'https://snapshot.org/#/aave.eth/proposal/0x81a78109941e5e0ac6cb5ebf82597c839c20ad6821a8c3ff063dba39032533d4';
} else if (currentMarket && currentMarket === 'proto_fantom_v3') {
return 'https://snapshot.org/#/aave.eth/proposal/0xeefcd76e523391a14cfd0a79b531ea0a3faf0eb4a058e255fac13a2d224cc647';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small optimization if you wanted to, you could assign the baseUrl to a var for DRY

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I'll just keep it as is, but I opened aave/aave-utilities#419 to create an enum so we don't have to hardcode the market names, and we can move these links to a separate config (either in utilities or interface) as well when this is added.

if (forum) {
return 'https://governance.aave.com/t/arc-aave-v3-fantom-freeze-reserves/9166';
} else {
return 'https://snapshot.org/#/aave.eth/proposal/0xeefcd76e523391a14cfd0a79b531ea0a3faf0eb4a058e255fac13a2d224cc647';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly. I think we should create a src/constants/ directory for this. This is how I've typically seen it in large frontend apps, modularizing the constants. Was thinking about this as I was writing CHART_HEIGHTs this week for the graphs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also will be covered in other comment ^

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we get that file setup, we could setup a mapping of market name to proposal info. Then I think in the asset list components we wouldn't need to do any checking of market name, we just look up in the mapping by market name, if it's empty don't render. Could help clean up some of those if statements in the other pages.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this idea

@github-actions
Copy link

grothem
grothem previously approved these changes Sep 16, 2022
@MareskoY MareskoY dismissed stale reviews from grothem and drewcook via 6172cc9 September 16, 2022 16:24
@github-actions
Copy link

@defispartan defispartan merged commit 931c79b into main Sep 16, 2022
@defispartan defispartan deleted the feat/refactor-frozen-warnings branch September 16, 2022 20:49
grothem added a commit that referenced this pull request Oct 3, 2022
* chore: automated cache update [skip cypress]

* feat: add maticx icons (#1106)

* e2e - refactor  (#1131)

* init commands

* test version with commands without timeouts

* move all methods to CY commands

* fix matic e-mode

* add documentation

* add cy.wait for max amount

Co-authored-by: Nikita Boakrev <[email protected]>

* chore: automated cache update [skip cypress]

* chore: add prettier commands (#1142)

* chore: add prettierignore

* chore: add prettier commands

* chore: add combined linting commands

* chore: run yarn lint:fix

* chore: update lint-staged

* chore: update contributors

* chore: typo

* chore: typos

* chore: add license field

* chore: automated cache update [skip cypress]

* fix: lint-staged (#1145)

* chore: automated cache update [skip cypress]

* feat: refactor frozen warnings (#1141)

* feat: improve frozen warning mappings

* fix: clean up logic and make warnings responsive to frozen status

* fix: trans tag wrapping

* fix: simplify MarketWarning component

* chore: run i18n

* remove fantom market from CI while it frozen

Co-authored-by: Nikita Boakrev <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* feat: removed warnings related to eth borrow being disabled (#1113)

* feat: removed warnings related to eth borrow being disabled

* chore: prettier

* chore: fix missing param

* turn on eth tests

Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>

* feat: add custom error page templates (#1094)

* chore: stub out the minimal error pages

* feat: add custom 404 page

* chore: i18n

* chore: add 500 page

* chore: cleanup

* chore: remove img from 500

* chore: use native img tag

* chore: add light/dark mode graphics

* chore: more UI updates

* chore: 500 page ideas

* chore: 500 error updates

* chore: test error boundary component in prod

* chore: ignore for build (temp)

* chore: remove error boundary component

* chore: style updates

* chore: remove throw

* chore: merge branch 'main' into feat/error-pages

* chore: use lint-staged pre-commit

* fix: build fix

* chore: post-merge cleanup

* chore: post-merge cleanup

* chore(i18n): synchronize translations from crowdin [skip cypress]

* feat: warn about governance in borrow modal (#999)

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* fix: btc.b symbol (#1152)

* fix-tests (#1159)

Co-authored-by: Nikita Boakrev <[email protected]>

* fix: use correct blocktime (#1147)

* fix: change item name (#1148)

* chore: automated cache update [skip cypress]

* chore: sort imports (#1127)

Co-authored-by: Drew Cook <[email protected]>

* chore: revise contributing doc and PR template (#1158)

* chore: update contributing doc

* chore: lint

* chore: add default PR template + labels

* chore: move to be used as default

* chore: lowercase labels

* fix: typo

* chore: add project, remove frontmatter from pr template

* chore: projects fix

* chore: remove projects from frontmatter

* chore: update fork link

* chore: use js code block

* feat: add in wallet fork config section

* feat: graph improvements (#1102)

* chore: refactor graph component hierarchy

* feat: initial component for graph time range selector

* refactor: moved global style for ToggleButton to a styled component

* fix: enforce a selection

* fix: styles

* fix: bad merge

* refactor: move data fetching to graph containers

* feat: handle selected time range in parent component

* feat: initial hookup of time range selector

* feat: removed 'Max' time selection from graphs

* feat: add in loading/error states

* feat: clean up graph styles

* feat: add supply rate

* chore: remove log

* chore: add circle over supply rate

* chore: supply APR logic

* chore: show time/legend when loading

* chore: test error state

* chore: shorter graphs

* fix: build

* chore: remove unused component

* chore: remove time selector from IRM graph

* chore: add style changes to graphs

* chore: i18n

* chore: bump material and add react-transition-group

* chore: more style updates

* chore: more styling

* feat: add interest rate strategy link (#1124)

* feat: add link to interest rate strategy

* fix: remove unnecessary typography tag

* chore: i18n

* chore: more styling

* chore: cleanup

* chore: removed TODO comment

* fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range

* fix: remove console logs

* fix: remove supply APY from interest rate model graph (#1160)

* chore: log cleanup

* chore: show %

* fix: remove horizontal divider for util rate

* chore: update eslintignore

* fix: remove unused file

* fix: re-render issue with loading spinner

* chore: remove unused package

* chore: hide charts for v3 and comment about bug

* chore: remove log

* feat: temporarily disable charts for polygon v2

Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: add QA verification checklist item for reviews (#1175)

* fix: remove duplicate warning (#1173)

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix(swap-modal): open swap modal on mobile (#1181)

* chore: automated cache update [skip cypress]

* fix: correct bridge message (#1168)

* fix: you don't bridge ETH assets

* fix: update po file

* fix: split messages in two

* chore: add @lidofinance/web3-ledgerhq-frame-connector (#1157)

* fix: debt ceiling wording (#1171)

* fix: tooltip wording

* fix: use correct warning component and sort imports

* chore: run i18n

Co-authored-by: Drew Cook <[email protected]>

* feat: market search (#1174)

* feat: wip

* feat: wip

* feat: wip

* feat(search):  styled to match designs

* chore: i18n

* feat(search): filter list based on search term

* chore: lint

* feat(search): auto focus on mobile, hide clear button when inactive

* feat(search): search on underlying address

* feat(search): show no results message

* chore: i18n

* feat(search): give input focus on clearing

* refactor: asset list titles

* feat(search): renamed file, cleanup

* feat(search): cleanup

* refactor: moved files

* feat(search): set font size to 16px on mobile to prevent auto zooming

* chore: small cleanup

* feat(search): focus input on clear on mobile, make code consistent

* chore: i18n

* feat(search): adjust no results message for mobile

* feat: graph improvements (#1102)

* chore: refactor graph component hierarchy

* feat: initial component for graph time range selector

* refactor: moved global style for ToggleButton to a styled component

* fix: enforce a selection

* fix: styles

* fix: bad merge

* refactor: move data fetching to graph containers

* feat: handle selected time range in parent component

* feat: initial hookup of time range selector

* feat: removed 'Max' time selection from graphs

* feat: add in loading/error states

* feat: clean up graph styles

* feat: add supply rate

* chore: remove log

* chore: add circle over supply rate

* chore: supply APR logic

* chore: show time/legend when loading

* chore: test error state

* chore: shorter graphs

* fix: build

* chore: remove unused component

* chore: remove time selector from IRM graph

* chore: add style changes to graphs

* chore: i18n

* chore: bump material and add react-transition-group

* chore: more style updates

* chore: more styling

* feat: add interest rate strategy link (#1124)

* feat: add link to interest rate strategy

* fix: remove unnecessary typography tag

* chore: i18n

* chore: more styling

* chore: cleanup

* chore: removed TODO comment

* fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range

* fix: remove console logs

* fix: remove supply APY from interest rate model graph (#1160)

* chore: log cleanup

* chore: show %

* fix: remove horizontal divider for util rate

* chore: update eslintignore

* fix: remove unused file

* fix: re-render issue with loading spinner

* chore: remove unused package

* chore: hide charts for v3 and comment about bug

* chore: remove log

* feat: temporarily disable charts for polygon v2

Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: add QA verification checklist item for reviews (#1175)

* fix: remove duplicate warning (#1173)

* chore: i18n

* chore: i18n

* refactor: renamed prop

* feat(search): added debounce to the input change handler

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix(swap-modal): open swap modal on mobile (#1181)

* chore: automated cache update [skip cypress]

* fix: correct bridge message (#1168)

* fix: you don't bridge ETH assets

* fix: update po file

* fix: split messages in two

* chore: i18n

* fix: duplicate imports

* chore: i18n

* chore: i18n

Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>

* chore: automated cache update [skip cypress]

* chore: lint and pre-commit updates (#1169)

* chore: order imports

* chore: add files from i18n in pre-commit

Co-authored-by: Drew Cook <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: use a fallback IPFS gateway for dynamic proposals (#1182)

* chore: use a fallback IPFS gateway for dynamic proposals

* fix: typo

* fix: lint (#1185)

* chore: update 404 image (#1184)

* chore: update 404 image

* chore: remove-brackets

* fix tests

Co-authored-by: Nikita Boakrev <[email protected]>

* feat: add watch mode only wallet address (#1178)

* feat(WalletWidget): added Alert component

* feat(mockWalletAddressContext): added mockWalletAddressContext

* feat(WalletSelector): added input to wallet selector for mock address

* feat(WatchOnlyModeTooltip): added WatchOnlyMode tooltip

* feat(WalletSelector): use web3 context for set mock adddress

* chore(WalletWidget): removed console log

* feat(WalletWidget): added warning icon

* chore: updated message.js

* chore: updated message.js

* feat(Web3Provider): updated condition to render Wallet Modal

* feat(TxActionsWrapper): render warning text when using mockAddress

* chore: updated messages

* feat(WalletSelector): use utils to check if mock address is valid

* feat(TxActionsWrapper): disabled button if mockAddress is present

* chore: updated message.js

* feat: do not render ChangeNetworkWarning when mockAddress is present

* feat(WalletWidget): added buttons to switch network and disconnect

* feat(WalletWidget): adjusted margin

* chore(WalletWidget): removed Disconnect Wallet button

* chore: removed temp value for max amount to borrow

* chore: updated messages.po

* chore: updated markdown to trigger git delta

* chore: reverted changes to Code of Conduct md

* chore: updated message.js

* chore: unimport WatchOnlyModeToolTip to ensure message.js is updated

* chore(cypress.config): removed eslint-disable

* chore(WalletSelector): re-import WatchOnlyModeToolTip

* feat(WalletWidget): set wallet widget to close when clicking switch wallet

* feat(Web3Provider): when connect wallet, check and remove mock address

* feat: if mockAddress is present, do not render approval help text and button

* feat: on mobile, if mockAddress is present, render Close menu icon

* feat(WalletWidget): update styling for warning text in mobile

* feat(WalletWidget): on mobile, render CTAs at list buttom

* feat(WalletWidget): add color styling to CTAs

* feat(WalletWidget): styling for avatar icon on mobile

* chore: updated message.js

* feat(WalletWidget): update styling for warning icon background

* feat(WalletWidget): use hideWalletAccountText variable to determine mockAddress styling

* chore(WalletWidget): removed un-used improt

* feat(WalletWidget): fine-tune warning icon color

* feat(WalletWidget): updated styling to background and CTA buttons

* feat(WalletWidget): added Divider

* chore(WalletWidget): updated copy

* feat(WalletSelector): use fullWifth props for button

* feat(WalletSelector): use fullWidfth props for input

* feat(WatchOnlyModeTooltip): re-named component with correct casing

* feat(WalletSelector): added boolean state to check for valid address error

* feat(WalletWidget): added handle switch wallet method

* chore: updated messages.js

* chore: code style changes

* update tests

* fix: use proper app header color

* fix: prevent auto zoom on mobile on watch address input

* test: don't set a watch wallet in cypress tests

* feat: wrap in form to allow input by pressing enter

* feat: add support for watching ens names

* feat: add ENS to placeholder text

* feat: enable watch button for ens inputs

* chore: use proper submit button for form

* chore: sx styles

* fix tests

Co-authored-by: matthew.lau <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: use gateway retry logic anywhere we fetch ipfs data (#1186)

* fix: swap ipfs gateway

* fix: replace pinata gateway with ipfs one

* fix: use retry logic anywhere we try to get proposal from ipfs

* fix: remove unused param

* chore: add JSDoc comments

Co-authored-by: Drew Cook <[email protected]>

* fix: lint

Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>
defispartan added a commit that referenced this pull request Oct 11, 2022
* fix: repay type select styling

* fix: remove repay with collateral warning

* feat: add slippage components

* feat: add slippage select to tx modal

* feat: update asset input styling

* feat: redesign repay with collateral modal

* run i18n

* removed psp warning

* fix: paraswap icon

* fix: input box alignment

* feat: add price impact tooltip

* fix: slippage select styling

* fix: update collateral repay modal styling

* fix: don't allow frozen assets to be used as collateral repay

* fix: match toggle button style from repay modal

* fix: match bridge and faucet button styles with emode button

* feat: update collateral swap modal up to design specs

* chore: run i18n

* fix: handle collateral balance being less than the debt amount when trying to repay

* Automated cache update [skip cypress]

* Automated cache update [skip cypress]

* Automated cache update [skip cypress]

* fix: remove weird stuff (#958)

* fix: switch default env from staging to prod (#961)

* fix: default env from staging to prod

* feat: update env setup in CONTIRUBTING.md

* fix: token click area (#963)

* fix: token click area

* fix: update some ui and build deps

* fix: update babel loader

* cleanup: remove caching service for stake (#937)

* cleanup: remove caching service for stake

* fix: remove unused var

* fix: Use selected slippage when getting swap parameters instead of hard coded 1%

* fix: handle repay collateral amount being less than the debt amount

* chore: i18n

* fix: reverting changes, matching latest design

* fix: remove exluded dexes for testing

* fix: remove console log

* fix: don't exclude any pools from paraswap

* chore: i18n

* fix: show correct asset name in collateral repay actions when approving

* feat: wip

* feat: wip

* feat: wip

* feat: separate component for tx details

* feat: continuing with design updates

* chore: run i18n

* feat: add supply balances after swap section

* feat: refactor collateral repay

* feat: update warning text

* fix: warning styling

* chore: i18n

* chore: i18n

* chore: i18n

* fix: reset state when no there is invalid swap data

* fix: remove console log

* fix: added change handler back in so we can reset the state on asset change

* fix: console logs

* fix: cleanup swap/repay

* feat: refactor swap and repay logic

feat: refactor swap logic

* chore: merge main (#1194)

* chore: automated cache update [skip cypress]

* feat: add maticx icons (#1106)

* e2e - refactor  (#1131)

* init commands

* test version with commands without timeouts

* move all methods to CY commands

* fix matic e-mode

* add documentation

* add cy.wait for max amount

Co-authored-by: Nikita Boakrev <[email protected]>

* chore: automated cache update [skip cypress]

* chore: add prettier commands (#1142)

* chore: add prettierignore

* chore: add prettier commands

* chore: add combined linting commands

* chore: run yarn lint:fix

* chore: update lint-staged

* chore: update contributors

* chore: typo

* chore: typos

* chore: add license field

* chore: automated cache update [skip cypress]

* fix: lint-staged (#1145)

* chore: automated cache update [skip cypress]

* feat: refactor frozen warnings (#1141)

* feat: improve frozen warning mappings

* fix: clean up logic and make warnings responsive to frozen status

* fix: trans tag wrapping

* fix: simplify MarketWarning component

* chore: run i18n

* remove fantom market from CI while it frozen

Co-authored-by: Nikita Boakrev <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* feat: removed warnings related to eth borrow being disabled (#1113)

* feat: removed warnings related to eth borrow being disabled

* chore: prettier

* chore: fix missing param

* turn on eth tests

Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>

* feat: add custom error page templates (#1094)

* chore: stub out the minimal error pages

* feat: add custom 404 page

* chore: i18n

* chore: add 500 page

* chore: cleanup

* chore: remove img from 500

* chore: use native img tag

* chore: add light/dark mode graphics

* chore: more UI updates

* chore: 500 page ideas

* chore: 500 error updates

* chore: test error boundary component in prod

* chore: ignore for build (temp)

* chore: remove error boundary component

* chore: style updates

* chore: remove throw

* chore: merge branch 'main' into feat/error-pages

* chore: use lint-staged pre-commit

* fix: build fix

* chore: post-merge cleanup

* chore: post-merge cleanup

* chore(i18n): synchronize translations from crowdin [skip cypress]

* feat: warn about governance in borrow modal (#999)

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* fix: btc.b symbol (#1152)

* fix-tests (#1159)

Co-authored-by: Nikita Boakrev <[email protected]>

* fix: use correct blocktime (#1147)

* fix: change item name (#1148)

* chore: automated cache update [skip cypress]

* chore: sort imports (#1127)

Co-authored-by: Drew Cook <[email protected]>

* chore: revise contributing doc and PR template (#1158)

* chore: update contributing doc

* chore: lint

* chore: add default PR template + labels

* chore: move to be used as default

* chore: lowercase labels

* fix: typo

* chore: add project, remove frontmatter from pr template

* chore: projects fix

* chore: remove projects from frontmatter

* chore: update fork link

* chore: use js code block

* feat: add in wallet fork config section

* feat: graph improvements (#1102)

* chore: refactor graph component hierarchy

* feat: initial component for graph time range selector

* refactor: moved global style for ToggleButton to a styled component

* fix: enforce a selection

* fix: styles

* fix: bad merge

* refactor: move data fetching to graph containers

* feat: handle selected time range in parent component

* feat: initial hookup of time range selector

* feat: removed 'Max' time selection from graphs

* feat: add in loading/error states

* feat: clean up graph styles

* feat: add supply rate

* chore: remove log

* chore: add circle over supply rate

* chore: supply APR logic

* chore: show time/legend when loading

* chore: test error state

* chore: shorter graphs

* fix: build

* chore: remove unused component

* chore: remove time selector from IRM graph

* chore: add style changes to graphs

* chore: i18n

* chore: bump material and add react-transition-group

* chore: more style updates

* chore: more styling

* feat: add interest rate strategy link (#1124)

* feat: add link to interest rate strategy

* fix: remove unnecessary typography tag

* chore: i18n

* chore: more styling

* chore: cleanup

* chore: removed TODO comment

* fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range

* fix: remove console logs

* fix: remove supply APY from interest rate model graph (#1160)

* chore: log cleanup

* chore: show %

* fix: remove horizontal divider for util rate

* chore: update eslintignore

* fix: remove unused file

* fix: re-render issue with loading spinner

* chore: remove unused package

* chore: hide charts for v3 and comment about bug

* chore: remove log

* feat: temporarily disable charts for polygon v2

Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: add QA verification checklist item for reviews (#1175)

* fix: remove duplicate warning (#1173)

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix(swap-modal): open swap modal on mobile (#1181)

* chore: automated cache update [skip cypress]

* fix: correct bridge message (#1168)

* fix: you don't bridge ETH assets

* fix: update po file

* fix: split messages in two

* chore: add @lidofinance/web3-ledgerhq-frame-connector (#1157)

* fix: debt ceiling wording (#1171)

* fix: tooltip wording

* fix: use correct warning component and sort imports

* chore: run i18n

Co-authored-by: Drew Cook <[email protected]>

* feat: market search (#1174)

* feat: wip

* feat: wip

* feat: wip

* feat(search):  styled to match designs

* chore: i18n

* feat(search): filter list based on search term

* chore: lint

* feat(search): auto focus on mobile, hide clear button when inactive

* feat(search): search on underlying address

* feat(search): show no results message

* chore: i18n

* feat(search): give input focus on clearing

* refactor: asset list titles

* feat(search): renamed file, cleanup

* feat(search): cleanup

* refactor: moved files

* feat(search): set font size to 16px on mobile to prevent auto zooming

* chore: small cleanup

* feat(search): focus input on clear on mobile, make code consistent

* chore: i18n

* feat(search): adjust no results message for mobile

* feat: graph improvements (#1102)

* chore: refactor graph component hierarchy

* feat: initial component for graph time range selector

* refactor: moved global style for ToggleButton to a styled component

* fix: enforce a selection

* fix: styles

* fix: bad merge

* refactor: move data fetching to graph containers

* feat: handle selected time range in parent component

* feat: initial hookup of time range selector

* feat: removed 'Max' time selection from graphs

* feat: add in loading/error states

* feat: clean up graph styles

* feat: add supply rate

* chore: remove log

* chore: add circle over supply rate

* chore: supply APR logic

* chore: show time/legend when loading

* chore: test error state

* chore: shorter graphs

* fix: build

* chore: remove unused component

* chore: remove time selector from IRM graph

* chore: add style changes to graphs

* chore: i18n

* chore: bump material and add react-transition-group

* chore: more style updates

* chore: more styling

* feat: add interest rate strategy link (#1124)

* feat: add link to interest rate strategy

* fix: remove unnecessary typography tag

* chore: i18n

* chore: more styling

* chore: cleanup

* chore: removed TODO comment

* fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range

* fix: remove console logs

* fix: remove supply APY from interest rate model graph (#1160)

* chore: log cleanup

* chore: show %

* fix: remove horizontal divider for util rate

* chore: update eslintignore

* fix: remove unused file

* fix: re-render issue with loading spinner

* chore: remove unused package

* chore: hide charts for v3 and comment about bug

* chore: remove log

* feat: temporarily disable charts for polygon v2

Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: add QA verification checklist item for reviews (#1175)

* fix: remove duplicate warning (#1173)

* chore: i18n

* chore: i18n

* refactor: renamed prop

* feat(search): added debounce to the input change handler

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix(swap-modal): open swap modal on mobile (#1181)

* chore: automated cache update [skip cypress]

* fix: correct bridge message (#1168)

* fix: you don't bridge ETH assets

* fix: update po file

* fix: split messages in two

* chore: i18n

* fix: duplicate imports

* chore: i18n

* chore: i18n

Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>

* chore: automated cache update [skip cypress]

* chore: lint and pre-commit updates (#1169)

* chore: order imports

* chore: add files from i18n in pre-commit

Co-authored-by: Drew Cook <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: use a fallback IPFS gateway for dynamic proposals (#1182)

* chore: use a fallback IPFS gateway for dynamic proposals

* fix: typo

* fix: lint (#1185)

* chore: update 404 image (#1184)

* chore: update 404 image

* chore: remove-brackets

* fix tests

Co-authored-by: Nikita Boakrev <[email protected]>

* feat: add watch mode only wallet address (#1178)

* feat(WalletWidget): added Alert component

* feat(mockWalletAddressContext): added mockWalletAddressContext

* feat(WalletSelector): added input to wallet selector for mock address

* feat(WatchOnlyModeTooltip): added WatchOnlyMode tooltip

* feat(WalletSelector): use web3 context for set mock adddress

* chore(WalletWidget): removed console log

* feat(WalletWidget): added warning icon

* chore: updated message.js

* chore: updated message.js

* feat(Web3Provider): updated condition to render Wallet Modal

* feat(TxActionsWrapper): render warning text when using mockAddress

* chore: updated messages

* feat(WalletSelector): use utils to check if mock address is valid

* feat(TxActionsWrapper): disabled button if mockAddress is present

* chore: updated message.js

* feat: do not render ChangeNetworkWarning when mockAddress is present

* feat(WalletWidget): added buttons to switch network and disconnect

* feat(WalletWidget): adjusted margin

* chore(WalletWidget): removed Disconnect Wallet button

* chore: removed temp value for max amount to borrow

* chore: updated messages.po

* chore: updated markdown to trigger git delta

* chore: reverted changes to Code of Conduct md

* chore: updated message.js

* chore: unimport WatchOnlyModeToolTip to ensure message.js is updated

* chore(cypress.config): removed eslint-disable

* chore(WalletSelector): re-import WatchOnlyModeToolTip

* feat(WalletWidget): set wallet widget to close when clicking switch wallet

* feat(Web3Provider): when connect wallet, check and remove mock address

* feat: if mockAddress is present, do not render approval help text and button

* feat: on mobile, if mockAddress is present, render Close menu icon

* feat(WalletWidget): update styling for warning text in mobile

* feat(WalletWidget): on mobile, render CTAs at list buttom

* feat(WalletWidget): add color styling to CTAs

* feat(WalletWidget): styling for avatar icon on mobile

* chore: updated message.js

* feat(WalletWidget): update styling for warning icon background

* feat(WalletWidget): use hideWalletAccountText variable to determine mockAddress styling

* chore(WalletWidget): removed un-used improt

* feat(WalletWidget): fine-tune warning icon color

* feat(WalletWidget): updated styling to background and CTA buttons

* feat(WalletWidget): added Divider

* chore(WalletWidget): updated copy

* feat(WalletSelector): use fullWifth props for button

* feat(WalletSelector): use fullWidfth props for input

* feat(WatchOnlyModeTooltip): re-named component with correct casing

* feat(WalletSelector): added boolean state to check for valid address error

* feat(WalletWidget): added handle switch wallet method

* chore: updated messages.js

* chore: code style changes

* update tests

* fix: use proper app header color

* fix: prevent auto zoom on mobile on watch address input

* test: don't set a watch wallet in cypress tests

* feat: wrap in form to allow input by pressing enter

* feat: add support for watching ens names

* feat: add ENS to placeholder text

* feat: enable watch button for ens inputs

* chore: use proper submit button for form

* chore: sx styles

* fix tests

Co-authored-by: matthew.lau <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: use gateway retry logic anywhere we fetch ipfs data (#1186)

* fix: swap ipfs gateway

* fix: replace pinata gateway with ipfs one

* fix: use retry logic anywhere we try to get proposal from ipfs

* fix: remove unused param

* chore: add JSDoc comments

Co-authored-by: Drew Cook <[email protected]>

* fix: lint

Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>

* fix: ui polish for 'exactIn'  swap case

* refactor: swap and collateral repay hooks

* chore: added jsdoc comments

* fix: make sure input amount is valid, set correct slippage on swap

* fix: error handling

* fix: clean up merge files

* fix: clean up merge files

Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>
defispartan added a commit that referenced this pull request Dec 14, 2022
* feat: paraswap feature updates (#1218)

* fix: repay type select styling

* fix: remove repay with collateral warning

* feat: add slippage components

* feat: add slippage select to tx modal

* feat: update asset input styling

* feat: redesign repay with collateral modal

* run i18n

* removed psp warning

* fix: paraswap icon

* fix: input box alignment

* feat: add price impact tooltip

* fix: slippage select styling

* fix: update collateral repay modal styling

* fix: don't allow frozen assets to be used as collateral repay

* fix: match toggle button style from repay modal

* fix: match bridge and faucet button styles with emode button

* feat: update collateral swap modal up to design specs

* chore: run i18n

* fix: handle collateral balance being less than the debt amount when trying to repay

* Automated cache update [skip cypress]

* Automated cache update [skip cypress]

* Automated cache update [skip cypress]

* fix: remove weird stuff (#958)

* fix: switch default env from staging to prod (#961)

* fix: default env from staging to prod

* feat: update env setup in CONTIRUBTING.md

* fix: token click area (#963)

* fix: token click area

* fix: update some ui and build deps

* fix: update babel loader

* cleanup: remove caching service for stake (#937)

* cleanup: remove caching service for stake

* fix: remove unused var

* fix: Use selected slippage when getting swap parameters instead of hard coded 1%

* fix: handle repay collateral amount being less than the debt amount

* chore: i18n

* fix: reverting changes, matching latest design

* fix: remove exluded dexes for testing

* fix: remove console log

* fix: don't exclude any pools from paraswap

* chore: i18n

* fix: show correct asset name in collateral repay actions when approving

* feat: wip

* feat: wip

* feat: wip

* feat: separate component for tx details

* feat: continuing with design updates

* chore: run i18n

* feat: add supply balances after swap section

* feat: refactor collateral repay

* feat: update warning text

* fix: warning styling

* chore: i18n

* chore: i18n

* chore: i18n

* fix: reset state when no there is invalid swap data

* fix: remove console log

* fix: added change handler back in so we can reset the state on asset change

* fix: console logs

* fix: cleanup swap/repay

* feat: refactor swap and repay logic

feat: refactor swap logic

* chore: merge main (#1194)

* chore: automated cache update [skip cypress]

* feat: add maticx icons (#1106)

* e2e - refactor  (#1131)

* init commands

* test version with commands without timeouts

* move all methods to CY commands

* fix matic e-mode

* add documentation

* add cy.wait for max amount

Co-authored-by: Nikita Boakrev <[email protected]>

* chore: automated cache update [skip cypress]

* chore: add prettier commands (#1142)

* chore: add prettierignore

* chore: add prettier commands

* chore: add combined linting commands

* chore: run yarn lint:fix

* chore: update lint-staged

* chore: update contributors

* chore: typo

* chore: typos

* chore: add license field

* chore: automated cache update [skip cypress]

* fix: lint-staged (#1145)

* chore: automated cache update [skip cypress]

* feat: refactor frozen warnings (#1141)

* feat: improve frozen warning mappings

* fix: clean up logic and make warnings responsive to frozen status

* fix: trans tag wrapping

* fix: simplify MarketWarning component

* chore: run i18n

* remove fantom market from CI while it frozen

Co-authored-by: Nikita Boakrev <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* feat: removed warnings related to eth borrow being disabled (#1113)

* feat: removed warnings related to eth borrow being disabled

* chore: prettier

* chore: fix missing param

* turn on eth tests

Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>

* feat: add custom error page templates (#1094)

* chore: stub out the minimal error pages

* feat: add custom 404 page

* chore: i18n

* chore: add 500 page

* chore: cleanup

* chore: remove img from 500

* chore: use native img tag

* chore: add light/dark mode graphics

* chore: more UI updates

* chore: 500 page ideas

* chore: 500 error updates

* chore: test error boundary component in prod

* chore: ignore for build (temp)

* chore: remove error boundary component

* chore: style updates

* chore: remove throw

* chore: merge branch 'main' into feat/error-pages

* chore: use lint-staged pre-commit

* fix: build fix

* chore: post-merge cleanup

* chore: post-merge cleanup

* chore(i18n): synchronize translations from crowdin [skip cypress]

* feat: warn about governance in borrow modal (#999)

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* fix: btc.b symbol (#1152)

* fix-tests (#1159)

Co-authored-by: Nikita Boakrev <[email protected]>

* fix: use correct blocktime (#1147)

* fix: change item name (#1148)

* chore: automated cache update [skip cypress]

* chore: sort imports (#1127)

Co-authored-by: Drew Cook <[email protected]>

* chore: revise contributing doc and PR template (#1158)

* chore: update contributing doc

* chore: lint

* chore: add default PR template + labels

* chore: move to be used as default

* chore: lowercase labels

* fix: typo

* chore: add project, remove frontmatter from pr template

* chore: projects fix

* chore: remove projects from frontmatter

* chore: update fork link

* chore: use js code block

* feat: add in wallet fork config section

* feat: graph improvements (#1102)

* chore: refactor graph component hierarchy

* feat: initial component for graph time range selector

* refactor: moved global style for ToggleButton to a styled component

* fix: enforce a selection

* fix: styles

* fix: bad merge

* refactor: move data fetching to graph containers

* feat: handle selected time range in parent component

* feat: initial hookup of time range selector

* feat: removed 'Max' time selection from graphs

* feat: add in loading/error states

* feat: clean up graph styles

* feat: add supply rate

* chore: remove log

* chore: add circle over supply rate

* chore: supply APR logic

* chore: show time/legend when loading

* chore: test error state

* chore: shorter graphs

* fix: build

* chore: remove unused component

* chore: remove time selector from IRM graph

* chore: add style changes to graphs

* chore: i18n

* chore: bump material and add react-transition-group

* chore: more style updates

* chore: more styling

* feat: add interest rate strategy link (#1124)

* feat: add link to interest rate strategy

* fix: remove unnecessary typography tag

* chore: i18n

* chore: more styling

* chore: cleanup

* chore: removed TODO comment

* fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range

* fix: remove console logs

* fix: remove supply APY from interest rate model graph (#1160)

* chore: log cleanup

* chore: show %

* fix: remove horizontal divider for util rate

* chore: update eslintignore

* fix: remove unused file

* fix: re-render issue with loading spinner

* chore: remove unused package

* chore: hide charts for v3 and comment about bug

* chore: remove log

* feat: temporarily disable charts for polygon v2

Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: add QA verification checklist item for reviews (#1175)

* fix: remove duplicate warning (#1173)

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix(swap-modal): open swap modal on mobile (#1181)

* chore: automated cache update [skip cypress]

* fix: correct bridge message (#1168)

* fix: you don't bridge ETH assets

* fix: update po file

* fix: split messages in two

* chore: add @lidofinance/web3-ledgerhq-frame-connector (#1157)

* fix: debt ceiling wording (#1171)

* fix: tooltip wording

* fix: use correct warning component and sort imports

* chore: run i18n

Co-authored-by: Drew Cook <[email protected]>

* feat: market search (#1174)

* feat: wip

* feat: wip

* feat: wip

* feat(search):  styled to match designs

* chore: i18n

* feat(search): filter list based on search term

* chore: lint

* feat(search): auto focus on mobile, hide clear button when inactive

* feat(search): search on underlying address

* feat(search): show no results message

* chore: i18n

* feat(search): give input focus on clearing

* refactor: asset list titles

* feat(search): renamed file, cleanup

* feat(search): cleanup

* refactor: moved files

* feat(search): set font size to 16px on mobile to prevent auto zooming

* chore: small cleanup

* feat(search): focus input on clear on mobile, make code consistent

* chore: i18n

* feat(search): adjust no results message for mobile

* feat: graph improvements (#1102)

* chore: refactor graph component hierarchy

* feat: initial component for graph time range selector

* refactor: moved global style for ToggleButton to a styled component

* fix: enforce a selection

* fix: styles

* fix: bad merge

* refactor: move data fetching to graph containers

* feat: handle selected time range in parent component

* feat: initial hookup of time range selector

* feat: removed 'Max' time selection from graphs

* feat: add in loading/error states

* feat: clean up graph styles

* feat: add supply rate

* chore: remove log

* chore: add circle over supply rate

* chore: supply APR logic

* chore: show time/legend when loading

* chore: test error state

* chore: shorter graphs

* fix: build

* chore: remove unused component

* chore: remove time selector from IRM graph

* chore: add style changes to graphs

* chore: i18n

* chore: bump material and add react-transition-group

* chore: more style updates

* chore: more styling

* feat: add interest rate strategy link (#1124)

* feat: add link to interest rate strategy

* fix: remove unnecessary typography tag

* chore: i18n

* chore: more styling

* chore: cleanup

* chore: removed TODO comment

* fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range

* fix: remove console logs

* fix: remove supply APY from interest rate model graph (#1160)

* chore: log cleanup

* chore: show %

* fix: remove horizontal divider for util rate

* chore: update eslintignore

* fix: remove unused file

* fix: re-render issue with loading spinner

* chore: remove unused package

* chore: hide charts for v3 and comment about bug

* chore: remove log

* feat: temporarily disable charts for polygon v2

Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: add QA verification checklist item for reviews (#1175)

* fix: remove duplicate warning (#1173)

* chore: i18n

* chore: i18n

* refactor: renamed prop

* feat(search): added debounce to the input change handler

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix(swap-modal): open swap modal on mobile (#1181)

* chore: automated cache update [skip cypress]

* fix: correct bridge message (#1168)

* fix: you don't bridge ETH assets

* fix: update po file

* fix: split messages in two

* chore: i18n

* fix: duplicate imports

* chore: i18n

* chore: i18n

Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>

* chore: automated cache update [skip cypress]

* chore: lint and pre-commit updates (#1169)

* chore: order imports

* chore: add files from i18n in pre-commit

Co-authored-by: Drew Cook <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: use a fallback IPFS gateway for dynamic proposals (#1182)

* chore: use a fallback IPFS gateway for dynamic proposals

* fix: typo

* fix: lint (#1185)

* chore: update 404 image (#1184)

* chore: update 404 image

* chore: remove-brackets

* fix tests

Co-authored-by: Nikita Boakrev <[email protected]>

* feat: add watch mode only wallet address (#1178)

* feat(WalletWidget): added Alert component

* feat(mockWalletAddressContext): added mockWalletAddressContext

* feat(WalletSelector): added input to wallet selector for mock address

* feat(WatchOnlyModeTooltip): added WatchOnlyMode tooltip

* feat(WalletSelector): use web3 context for set mock adddress

* chore(WalletWidget): removed console log

* feat(WalletWidget): added warning icon

* chore: updated message.js

* chore: updated message.js

* feat(Web3Provider): updated condition to render Wallet Modal

* feat(TxActionsWrapper): render warning text when using mockAddress

* chore: updated messages

* feat(WalletSelector): use utils to check if mock address is valid

* feat(TxActionsWrapper): disabled button if mockAddress is present

* chore: updated message.js

* feat: do not render ChangeNetworkWarning when mockAddress is present

* feat(WalletWidget): added buttons to switch network and disconnect

* feat(WalletWidget): adjusted margin

* chore(WalletWidget): removed Disconnect Wallet button

* chore: removed temp value for max amount to borrow

* chore: updated messages.po

* chore: updated markdown to trigger git delta

* chore: reverted changes to Code of Conduct md

* chore: updated message.js

* chore: unimport WatchOnlyModeToolTip to ensure message.js is updated

* chore(cypress.config): removed eslint-disable

* chore(WalletSelector): re-import WatchOnlyModeToolTip

* feat(WalletWidget): set wallet widget to close when clicking switch wallet

* feat(Web3Provider): when connect wallet, check and remove mock address

* feat: if mockAddress is present, do not render approval help text and button

* feat: on mobile, if mockAddress is present, render Close menu icon

* feat(WalletWidget): update styling for warning text in mobile

* feat(WalletWidget): on mobile, render CTAs at list buttom

* feat(WalletWidget): add color styling to CTAs

* feat(WalletWidget): styling for avatar icon on mobile

* chore: updated message.js

* feat(WalletWidget): update styling for warning icon background

* feat(WalletWidget): use hideWalletAccountText variable to determine mockAddress styling

* chore(WalletWidget): removed un-used improt

* feat(WalletWidget): fine-tune warning icon color

* feat(WalletWidget): updated styling to background and CTA buttons

* feat(WalletWidget): added Divider

* chore(WalletWidget): updated copy

* feat(WalletSelector): use fullWifth props for button

* feat(WalletSelector): use fullWidfth props for input

* feat(WatchOnlyModeTooltip): re-named component with correct casing

* feat(WalletSelector): added boolean state to check for valid address error

* feat(WalletWidget): added handle switch wallet method

* chore: updated messages.js

* chore: code style changes

* update tests

* fix: use proper app header color

* fix: prevent auto zoom on mobile on watch address input

* test: don't set a watch wallet in cypress tests

* feat: wrap in form to allow input by pressing enter

* feat: add support for watching ens names

* feat: add ENS to placeholder text

* feat: enable watch button for ens inputs

* chore: use proper submit button for form

* chore: sx styles

* fix tests

Co-authored-by: matthew.lau <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: use gateway retry logic anywhere we fetch ipfs data (#1186)

* fix: swap ipfs gateway

* fix: replace pinata gateway with ipfs one

* fix: use retry logic anywhere we try to get proposal from ipfs

* fix: remove unused param

* chore: add JSDoc comments

Co-authored-by: Drew Cook <[email protected]>

* fix: lint

Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>

* fix: ui polish for 'exactIn'  swap case

* refactor: swap and collateral repay hooks

* chore: added jsdoc comments

* fix: make sure input amount is valid, set correct slippage on swap

* fix: error handling

* fix: clean up merge files

* fix: clean up merge files

Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>

* feat: re-add missing tooltips

* feat: handle swapping to asset with no incentives

* feat: include collateral repay tests

* chore: automated cache update [skip cypress]

* chore: add aip end date (#1220)

* chore: add aip end date

* chore: update date format for AIP dates

* chore: clean up from feedback

* chore: remove typography double tags

* chore: fix hasexpired logic

* chore: fix ternary

Co-authored-by: Andrew Schmidt <[email protected]>

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* Add label with fork pr pipeline result (#1108)

* Labeling step

Added step to the pipeline so it will use the new action to add the pipeline end status to the pr as a label.

* Added labeling action

Added action to add label to the fork pr with the pipeline result.

* checkout version

setting checkout version as it was

* Change label content

Changed labels content added

* Change actions version

Changed actions to add label from v1 to commit_sha to make it immutable

* Add token

Add token manually to be sure it doesn't get error.

* Add token

Added token to the action to assure it won't become an error later on (As of previous tests, in private repository, it didn't need the token as it took it manually, but in recent tests it gave error because it cannot find it)

* chore: automated cache update [skip cypress]

* feat: v3 rate history (#1210)

* feat: enable rate history endpoint on v3 markets

* feat: modify rate history queries for v3 endpoint schema

* fix: unused import

* feat: testing new deployment with indexing fixes

* feat: update to production endpoint

* chore(deps): bump @mui/material from 5.10.8 to 5.10.9 (#1235)

Bumps [@mui/material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-material) from 5.10.8 to 5.10.9.
- [Release notes](https://github.com/mui/material-ui/releases)
- [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/material-ui/commits/v5.10.9/packages/mui-material)

---
updated-dependencies:
- dependency-name: "@mui/material"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @aave/contract-helpers from 1.5.1 to 1.7.1 (#1236)

Bumps [@aave/contract-helpers](https://github.com/aave/aave-utilities) from 1.5.1 to 1.7.1.
- [Release notes](https://github.com/aave/aave-utilities/releases)
- [Commits](https://github.com/aave/aave-utilities/compare/@aave/[email protected]...@aave/[email protected])

---
updated-dependencies:
- dependency-name: "@aave/contract-helpers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* ci: make IPFS pin failures more visible (#1240)

* chore: automated cache update [skip cypress]

* fix: graph initial load error (#1241)

* fix: fixed dependencies to prevent unecessary re-fetch

* chore: prettier

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: use correct aave price on amm market (#1245)

* chore: automated cache update [skip cypress]

* chore: bump utils (#1248)

* chore: bump utilities

* chore: support default value for faucet mints

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: factor supply apy in on exact in and normalize the returned amount

* feat: add skeleton state to price impact

* feat: add loading state to asset input

* feat: add skeleton state to transaction details

* feat: apply loading states to collateral swap

* feat: apply loading states to repay with collateral

* chore: i18n

* feat: add fetching data button state

* fix: collateral tests for avalanche

* fix: calculation for collateral amount required to cover debt

* fix: show usd value when using exactIn logic

* chore: merge

* fix: remove unused prop

* fix: amount after repay usd

* fix: paraswap route blacklist (#1297)

* feat: separate hook for paraswap getRate

* feat: use rate hook in place of transaction in display components

* feat: separate slice function for building only approval tx for paraswap features

* feat: separate transaction hook for paraswap to buildTx at final step

* chore: remove tx params/function calls from paraswap hooks

* feat: use paraswap transaction hook in repay with collateral and collateral swap

* chore: remove unecessary deps from paraswap hooks

* fix: approval and action loading in Paraswap hook

* fix: skip broken tests

* fix: enable skiped test

* chore: simplify approval transactions for paraswap

* fix: success states

* refactor: paraswap cleanup (#1338)

* refactor: paraswap hooks and util functions

* chore: lint

* fix: set default values to zero

* fix: enable swap/repay buttons on error so user can retry

Co-authored-by: NikitaY <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>

* fix: adjusted early exit condition

* fix: don't refetch route on error

* fix: handle initial loading of route, removed min received calc from swap modal component

* fix: minor cleanup

* fix: show paraswap errors in repay modal

* fix: design updates

* fix: don't refetch route on a timer

* fix: use flash loan

* fix: handle gas estimation and error states

* fix: code review comments

* test(fix): fix e-mode for polygon

* fix: cleanup from review comments

* fix: render issue

* chore: bump utils

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>
Co-authored-by: marcPineiroAave <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Yumatov <[email protected]>
grothem added a commit that referenced this pull request Dec 16, 2022
* feat: paraswap feature updates (#1218)

* fix: repay type select styling

* fix: remove repay with collateral warning

* feat: add slippage components

* feat: add slippage select to tx modal

* feat: update asset input styling

* feat: redesign repay with collateral modal

* run i18n

* removed psp warning

* fix: paraswap icon

* fix: input box alignment

* feat: add price impact tooltip

* fix: slippage select styling

* fix: update collateral repay modal styling

* fix: don't allow frozen assets to be used as collateral repay

* fix: match toggle button style from repay modal

* fix: match bridge and faucet button styles with emode button

* feat: update collateral swap modal up to design specs

* chore: run i18n

* fix: handle collateral balance being less than the debt amount when trying to repay

* Automated cache update [skip cypress]

* Automated cache update [skip cypress]

* Automated cache update [skip cypress]

* fix: remove weird stuff (#958)

* fix: switch default env from staging to prod (#961)

* fix: default env from staging to prod

* feat: update env setup in CONTIRUBTING.md

* fix: token click area (#963)

* fix: token click area

* fix: update some ui and build deps

* fix: update babel loader

* cleanup: remove caching service for stake (#937)

* cleanup: remove caching service for stake

* fix: remove unused var

* fix: Use selected slippage when getting swap parameters instead of hard coded 1%

* fix: handle repay collateral amount being less than the debt amount

* chore: i18n

* fix: reverting changes, matching latest design

* fix: remove exluded dexes for testing

* fix: remove console log

* fix: don't exclude any pools from paraswap

* chore: i18n

* fix: show correct asset name in collateral repay actions when approving

* feat: wip

* feat: wip

* feat: wip

* feat: separate component for tx details

* feat: continuing with design updates

* chore: run i18n

* feat: add supply balances after swap section

* feat: refactor collateral repay

* feat: update warning text

* fix: warning styling

* chore: i18n

* chore: i18n

* chore: i18n

* fix: reset state when no there is invalid swap data

* fix: remove console log

* fix: added change handler back in so we can reset the state on asset change

* fix: console logs

* fix: cleanup swap/repay

* feat: refactor swap and repay logic

feat: refactor swap logic

* chore: merge main (#1194)

* chore: automated cache update [skip cypress]

* feat: add maticx icons (#1106)

* e2e - refactor  (#1131)

* init commands

* test version with commands without timeouts

* move all methods to CY commands

* fix matic e-mode

* add documentation

* add cy.wait for max amount

Co-authored-by: Nikita Boakrev <[email protected]>

* chore: automated cache update [skip cypress]

* chore: add prettier commands (#1142)

* chore: add prettierignore

* chore: add prettier commands

* chore: add combined linting commands

* chore: run yarn lint:fix

* chore: update lint-staged

* chore: update contributors

* chore: typo

* chore: typos

* chore: add license field

* chore: automated cache update [skip cypress]

* fix: lint-staged (#1145)

* chore: automated cache update [skip cypress]

* feat: refactor frozen warnings (#1141)

* feat: improve frozen warning mappings

* fix: clean up logic and make warnings responsive to frozen status

* fix: trans tag wrapping

* fix: simplify MarketWarning component

* chore: run i18n

* remove fantom market from CI while it frozen

Co-authored-by: Nikita Boakrev <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* feat: removed warnings related to eth borrow being disabled (#1113)

* feat: removed warnings related to eth borrow being disabled

* chore: prettier

* chore: fix missing param

* turn on eth tests

Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>

* feat: add custom error page templates (#1094)

* chore: stub out the minimal error pages

* feat: add custom 404 page

* chore: i18n

* chore: add 500 page

* chore: cleanup

* chore: remove img from 500

* chore: use native img tag

* chore: add light/dark mode graphics

* chore: more UI updates

* chore: 500 page ideas

* chore: 500 error updates

* chore: test error boundary component in prod

* chore: ignore for build (temp)

* chore: remove error boundary component

* chore: style updates

* chore: remove throw

* chore: merge branch 'main' into feat/error-pages

* chore: use lint-staged pre-commit

* fix: build fix

* chore: post-merge cleanup

* chore: post-merge cleanup

* chore(i18n): synchronize translations from crowdin [skip cypress]

* feat: warn about governance in borrow modal (#999)

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* fix: btc.b symbol (#1152)

* fix-tests (#1159)

Co-authored-by: Nikita Boakrev <[email protected]>

* fix: use correct blocktime (#1147)

* fix: change item name (#1148)

* chore: automated cache update [skip cypress]

* chore: sort imports (#1127)

Co-authored-by: Drew Cook <[email protected]>

* chore: revise contributing doc and PR template (#1158)

* chore: update contributing doc

* chore: lint

* chore: add default PR template + labels

* chore: move to be used as default

* chore: lowercase labels

* fix: typo

* chore: add project, remove frontmatter from pr template

* chore: projects fix

* chore: remove projects from frontmatter

* chore: update fork link

* chore: use js code block

* feat: add in wallet fork config section

* feat: graph improvements (#1102)

* chore: refactor graph component hierarchy

* feat: initial component for graph time range selector

* refactor: moved global style for ToggleButton to a styled component

* fix: enforce a selection

* fix: styles

* fix: bad merge

* refactor: move data fetching to graph containers

* feat: handle selected time range in parent component

* feat: initial hookup of time range selector

* feat: removed 'Max' time selection from graphs

* feat: add in loading/error states

* feat: clean up graph styles

* feat: add supply rate

* chore: remove log

* chore: add circle over supply rate

* chore: supply APR logic

* chore: show time/legend when loading

* chore: test error state

* chore: shorter graphs

* fix: build

* chore: remove unused component

* chore: remove time selector from IRM graph

* chore: add style changes to graphs

* chore: i18n

* chore: bump material and add react-transition-group

* chore: more style updates

* chore: more styling

* feat: add interest rate strategy link (#1124)

* feat: add link to interest rate strategy

* fix: remove unnecessary typography tag

* chore: i18n

* chore: more styling

* chore: cleanup

* chore: removed TODO comment

* fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range

* fix: remove console logs

* fix: remove supply APY from interest rate model graph (#1160)

* chore: log cleanup

* chore: show %

* fix: remove horizontal divider for util rate

* chore: update eslintignore

* fix: remove unused file

* fix: re-render issue with loading spinner

* chore: remove unused package

* chore: hide charts for v3 and comment about bug

* chore: remove log

* feat: temporarily disable charts for polygon v2

Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: add QA verification checklist item for reviews (#1175)

* fix: remove duplicate warning (#1173)

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix(swap-modal): open swap modal on mobile (#1181)

* chore: automated cache update [skip cypress]

* fix: correct bridge message (#1168)

* fix: you don't bridge ETH assets

* fix: update po file

* fix: split messages in two

* chore: add @lidofinance/web3-ledgerhq-frame-connector (#1157)

* fix: debt ceiling wording (#1171)

* fix: tooltip wording

* fix: use correct warning component and sort imports

* chore: run i18n

Co-authored-by: Drew Cook <[email protected]>

* feat: market search (#1174)

* feat: wip

* feat: wip

* feat: wip

* feat(search):  styled to match designs

* chore: i18n

* feat(search): filter list based on search term

* chore: lint

* feat(search): auto focus on mobile, hide clear button when inactive

* feat(search): search on underlying address

* feat(search): show no results message

* chore: i18n

* feat(search): give input focus on clearing

* refactor: asset list titles

* feat(search): renamed file, cleanup

* feat(search): cleanup

* refactor: moved files

* feat(search): set font size to 16px on mobile to prevent auto zooming

* chore: small cleanup

* feat(search): focus input on clear on mobile, make code consistent

* chore: i18n

* feat(search): adjust no results message for mobile

* feat: graph improvements (#1102)

* chore: refactor graph component hierarchy

* feat: initial component for graph time range selector

* refactor: moved global style for ToggleButton to a styled component

* fix: enforce a selection

* fix: styles

* fix: bad merge

* refactor: move data fetching to graph containers

* feat: handle selected time range in parent component

* feat: initial hookup of time range selector

* feat: removed 'Max' time selection from graphs

* feat: add in loading/error states

* feat: clean up graph styles

* feat: add supply rate

* chore: remove log

* chore: add circle over supply rate

* chore: supply APR logic

* chore: show time/legend when loading

* chore: test error state

* chore: shorter graphs

* fix: build

* chore: remove unused component

* chore: remove time selector from IRM graph

* chore: add style changes to graphs

* chore: i18n

* chore: bump material and add react-transition-group

* chore: more style updates

* chore: more styling

* feat: add interest rate strategy link (#1124)

* feat: add link to interest rate strategy

* fix: remove unnecessary typography tag

* chore: i18n

* chore: more styling

* chore: cleanup

* chore: removed TODO comment

* fix: handle formatting dates behind UTC time, and don't include time for 6m and 1y time range

* fix: remove console logs

* fix: remove supply APY from interest rate model graph (#1160)

* chore: log cleanup

* chore: show %

* fix: remove horizontal divider for util rate

* chore: update eslintignore

* fix: remove unused file

* fix: re-render issue with loading spinner

* chore: remove unused package

* chore: hide charts for v3 and comment about bug

* chore: remove log

* feat: temporarily disable charts for polygon v2

Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: add QA verification checklist item for reviews (#1175)

* fix: remove duplicate warning (#1173)

* chore: i18n

* chore: i18n

* refactor: renamed prop

* feat(search): added debounce to the input change handler

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix(swap-modal): open swap modal on mobile (#1181)

* chore: automated cache update [skip cypress]

* fix: correct bridge message (#1168)

* fix: you don't bridge ETH assets

* fix: update po file

* fix: split messages in two

* chore: i18n

* fix: duplicate imports

* chore: i18n

* chore: i18n

Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>

* chore: automated cache update [skip cypress]

* chore: lint and pre-commit updates (#1169)

* chore: order imports

* chore: add files from i18n in pre-commit

Co-authored-by: Drew Cook <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: use a fallback IPFS gateway for dynamic proposals (#1182)

* chore: use a fallback IPFS gateway for dynamic proposals

* fix: typo

* fix: lint (#1185)

* chore: update 404 image (#1184)

* chore: update 404 image

* chore: remove-brackets

* fix tests

Co-authored-by: Nikita Boakrev <[email protected]>

* feat: add watch mode only wallet address (#1178)

* feat(WalletWidget): added Alert component

* feat(mockWalletAddressContext): added mockWalletAddressContext

* feat(WalletSelector): added input to wallet selector for mock address

* feat(WatchOnlyModeTooltip): added WatchOnlyMode tooltip

* feat(WalletSelector): use web3 context for set mock adddress

* chore(WalletWidget): removed console log

* feat(WalletWidget): added warning icon

* chore: updated message.js

* chore: updated message.js

* feat(Web3Provider): updated condition to render Wallet Modal

* feat(TxActionsWrapper): render warning text when using mockAddress

* chore: updated messages

* feat(WalletSelector): use utils to check if mock address is valid

* feat(TxActionsWrapper): disabled button if mockAddress is present

* chore: updated message.js

* feat: do not render ChangeNetworkWarning when mockAddress is present

* feat(WalletWidget): added buttons to switch network and disconnect

* feat(WalletWidget): adjusted margin

* chore(WalletWidget): removed Disconnect Wallet button

* chore: removed temp value for max amount to borrow

* chore: updated messages.po

* chore: updated markdown to trigger git delta

* chore: reverted changes to Code of Conduct md

* chore: updated message.js

* chore: unimport WatchOnlyModeToolTip to ensure message.js is updated

* chore(cypress.config): removed eslint-disable

* chore(WalletSelector): re-import WatchOnlyModeToolTip

* feat(WalletWidget): set wallet widget to close when clicking switch wallet

* feat(Web3Provider): when connect wallet, check and remove mock address

* feat: if mockAddress is present, do not render approval help text and button

* feat: on mobile, if mockAddress is present, render Close menu icon

* feat(WalletWidget): update styling for warning text in mobile

* feat(WalletWidget): on mobile, render CTAs at list buttom

* feat(WalletWidget): add color styling to CTAs

* feat(WalletWidget): styling for avatar icon on mobile

* chore: updated message.js

* feat(WalletWidget): update styling for warning icon background

* feat(WalletWidget): use hideWalletAccountText variable to determine mockAddress styling

* chore(WalletWidget): removed un-used improt

* feat(WalletWidget): fine-tune warning icon color

* feat(WalletWidget): updated styling to background and CTA buttons

* feat(WalletWidget): added Divider

* chore(WalletWidget): updated copy

* feat(WalletSelector): use fullWifth props for button

* feat(WalletSelector): use fullWidfth props for input

* feat(WatchOnlyModeTooltip): re-named component with correct casing

* feat(WalletSelector): added boolean state to check for valid address error

* feat(WalletWidget): added handle switch wallet method

* chore: updated messages.js

* chore: code style changes

* update tests

* fix: use proper app header color

* fix: prevent auto zoom on mobile on watch address input

* test: don't set a watch wallet in cypress tests

* feat: wrap in form to allow input by pressing enter

* feat: add support for watching ens names

* feat: add ENS to placeholder text

* feat: enable watch button for ens inputs

* chore: use proper submit button for form

* chore: sx styles

* fix tests

Co-authored-by: matthew.lau <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: use gateway retry logic anywhere we fetch ipfs data (#1186)

* fix: swap ipfs gateway

* fix: replace pinata gateway with ipfs one

* fix: use retry logic anywhere we try to get proposal from ipfs

* fix: remove unused param

* chore: add JSDoc comments

Co-authored-by: Drew Cook <[email protected]>

* fix: lint

Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Andrew Schmidt <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>

* fix: ui polish for 'exactIn'  swap case

* refactor: swap and collateral repay hooks

* chore: added jsdoc comments

* fix: make sure input amount is valid, set correct slippage on swap

* fix: error handling

* fix: clean up merge files

* fix: clean up merge files

Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>

* feat: re-add missing tooltips

* feat: handle swapping to asset with no incentives

* feat: include collateral repay tests

* chore: automated cache update [skip cypress]

* chore: add aip end date (#1220)

* chore: add aip end date

* chore: update date format for AIP dates

* chore: clean up from feedback

* chore: remove typography double tags

* chore: fix hasexpired logic

* chore: fix ternary

Co-authored-by: Andrew Schmidt <[email protected]>

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* Add label with fork pr pipeline result (#1108)

* Labeling step

Added step to the pipeline so it will use the new action to add the pipeline end status to the pr as a label.

* Added labeling action

Added action to add label to the fork pr with the pipeline result.

* checkout version

setting checkout version as it was

* Change label content

Changed labels content added

* Change actions version

Changed actions to add label from v1 to commit_sha to make it immutable

* Add token

Add token manually to be sure it doesn't get error.

* Add token

Added token to the action to assure it won't become an error later on (As of previous tests, in private repository, it didn't need the token as it took it manually, but in recent tests it gave error because it cannot find it)

* chore: automated cache update [skip cypress]

* feat: v3 rate history (#1210)

* feat: enable rate history endpoint on v3 markets

* feat: modify rate history queries for v3 endpoint schema

* fix: unused import

* feat: testing new deployment with indexing fixes

* feat: update to production endpoint

* chore(deps): bump @mui/material from 5.10.8 to 5.10.9 (#1235)

Bumps [@mui/material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-material) from 5.10.8 to 5.10.9.
- [Release notes](https://github.com/mui/material-ui/releases)
- [Changelog](https://github.com/mui/material-ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mui/material-ui/commits/v5.10.9/packages/mui-material)

---
updated-dependencies:
- dependency-name: "@mui/material"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @aave/contract-helpers from 1.5.1 to 1.7.1 (#1236)

Bumps [@aave/contract-helpers](https://github.com/aave/aave-utilities) from 1.5.1 to 1.7.1.
- [Release notes](https://github.com/aave/aave-utilities/releases)
- [Commits](https://github.com/aave/aave-utilities/compare/@aave/[email protected]...@aave/[email protected])

---
updated-dependencies:
- dependency-name: "@aave/contract-helpers"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* ci: make IPFS pin failures more visible (#1240)

* chore: automated cache update [skip cypress]

* fix: graph initial load error (#1241)

* fix: fixed dependencies to prevent unecessary re-fetch

* chore: prettier

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: use correct aave price on amm market (#1245)

* chore: automated cache update [skip cypress]

* chore: bump utils (#1248)

* chore: bump utilities

* chore: support default value for faucet mints

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: factor supply apy in on exact in and normalize the returned amount

* feat: add skeleton state to price impact

* feat: add loading state to asset input

* feat: add skeleton state to transaction details

* feat: apply loading states to collateral swap

* feat: apply loading states to repay with collateral

* chore: i18n

* feat: add fetching data button state

* fix: collateral tests for avalanche

* fix: calculation for collateral amount required to cover debt

* fix: show usd value when using exactIn logic

* chore: merge

* fix: remove unused prop

* fix: amount after repay usd

* fix: paraswap route blacklist (#1297)

* feat: separate hook for paraswap getRate

* feat: use rate hook in place of transaction in display components

* feat: separate slice function for building only approval tx for paraswap features

* feat: separate transaction hook for paraswap to buildTx at final step

* chore: remove tx params/function calls from paraswap hooks

* feat: use paraswap transaction hook in repay with collateral and collateral swap

* chore: remove unecessary deps from paraswap hooks

* fix: approval and action loading in Paraswap hook

* fix: skip broken tests

* fix: enable skiped test

* chore: simplify approval transactions for paraswap

* fix: success states

* refactor: paraswap cleanup (#1338)

* refactor: paraswap hooks and util functions

* chore: lint

* fix: set default values to zero

* fix: enable swap/repay buttons on error so user can retry

Co-authored-by: NikitaY <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>

* fix: adjusted early exit condition

* fix: don't refetch route on error

* fix: handle initial loading of route, removed min received calc from swap modal component

* fix: minor cleanup

* fix: show paraswap errors in repay modal

* fix: design updates

* fix: don't refetch route on a timer

* fix: use flash loan

* fix: handle gas estimation and error states

* fix: code review comments

* test(fix): fix e-mode for polygon

* fix: cleanup from review comments

* fix: render issue

* chore: bump utils

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Lukas <[email protected]>
Co-authored-by: Nikita <[email protected]>
Co-authored-by: Nikita Boakrev <[email protected]>
Co-authored-by: Drew Cook <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Jonathan Reem <[email protected]>
Co-authored-by: derasd <[email protected]>
Co-authored-by: slundy-ledger <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: matthew.lau <[email protected]>
Co-authored-by: marcPineiroAave <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vladimir Yumatov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add frozen markets message to Fantom markets Add frozen warnings to #959
4 participants