Skip to content

Conversation

reem
Copy link
Contributor

@reem reem commented Aug 3, 2022

Adds a small warning to the borrow modal which reminds the user that governance can change parameters which can affect the health factor of their position and reminds them to keep an eye on the governance forum to stay ahead of such changes.

Voted on by the community: https://snapshot.org/#/aave.eth/proposal/bafkreiaiba6o7b3bsosligjrxnzlxgvkckgqriqlle6d4xa3i4qcfljmru

@reem
Copy link
Contributor Author

reem commented Aug 3, 2022

Example of the warning:

Screen Shot 2022-08-03 at 2 46 26 PM

@defispartan
Copy link
Collaborator

@reem Thanks for the contribution!

@defispartan
Copy link
Collaborator

@iamanastasia What are your thoughts on this?

Here's a screenshot with the HF risk warning as well:

BorrowModalWarning

@defispartan defispartan linked an issue Aug 5, 2022 that may be closed by this pull request
@grothem
Copy link
Collaborator

grothem commented Aug 17, 2022

@reem thanks for the PR! Sorry for the delay in reviewing this, looks good. Could you resolve the merge conflicts?

@github-actions
Copy link

github-actions bot commented Aug 17, 2022

✅ CI run has succeded!
You can find tests and deployment logs at https://github.com/aave/interface/actions/runs/2878265817'

@github-actions
Copy link

github-actions bot commented Aug 17, 2022

📦 Next.js Bundle Analysis

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

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 506.16 KB (🟡 +181 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!

@github-actions
Copy link

@reem reem force-pushed the borrow-modal-gov-warning branch from 1d5982f to 7e28453 Compare August 18, 2022 18:48
@reem
Copy link
Contributor Author

reem commented Aug 18, 2022

Rebased to resolve conflicts, let me know if I can do anything else

@github-actions
Copy link

github-actions bot commented Aug 18, 2022

✅ CI run has succeded!
You can find tests and deployment logs at https://github.com/aave/interface/actions/runs/2884682886'

@github-actions
Copy link

@defispartan
Copy link
Collaborator

Hey @reem, just two small things:

First, could you run yarn i18n and commit/push the files which are generated to update the localization?

Second, could you replace all instances of Alert in this file with Warning imported with import { Warning } from 'src/components/primitives/Warning';? This applies some consistent styling to warning messages.

@reem reem force-pushed the borrow-modal-gov-warning branch from 7e28453 to 5601378 Compare August 22, 2022 20:55
@reem
Copy link
Contributor Author

reem commented Aug 22, 2022

Done, thanks for the review, let me know if there's anything else I can follow up on

Note I did not edit the other usage of Alert as it has severity="error" so is not a warning, let me know if I should replace that as well

@defispartan
Copy link
Collaborator

Done, thanks for the review, let me know if there's anything else I can follow up on

Note I did not edit the other usage of Alert as it has severity="error" so is not a warning, let me know if I should replace that as well

Thanks for updating, looks good! Hope you don't mind I added a link to the snapshot vote to the PR description

defispartan
defispartan previously approved these changes Aug 23, 2022
@github-actions
Copy link

github-actions bot commented Aug 23, 2022

✅ CI run has succeded!
You can find tests and deployment logs at https://github.com/aave/interface/actions/runs/2908614222'

@github-actions
Copy link

@github-actions
Copy link

github-actions bot commented Aug 23, 2022

✅ CI run has succeded!
You can find tests and deployment logs at https://github.com/aave/interface/actions/runs/2912723730'

@github-actions
Copy link

@bojanaave
Copy link
Contributor

LGTM

@defispartan
Copy link
Collaborator

@foodaka Could you approve and merge tomorrow?

@foodaka
Copy link
Collaborator

foodaka commented Aug 26, 2022

hi @reem could you please fix the merge conflicts and then we will merge

Copy link
Collaborator

@foodaka foodaka left a comment

Choose a reason for hiding this comment

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

merge conflicts

bojanaave
bojanaave previously approved these changes Sep 1, 2022
@defispartan
Copy link
Collaborator

@reem For some reason it does not appear on GitHub but cloning locally there is a conflict with localization, so if you could rebase with main, then run and push yarn i18n again then it will be good to merge :)

@reem
Copy link
Contributor Author

reem commented Sep 6, 2022

Rebased again, lmk if this looks good

@reem reem force-pushed the borrow-modal-gov-warning branch from 8da1612 to 48576d4 Compare September 19, 2022 19:08
@github-actions
Copy link

github-actions bot commented Sep 19, 2022

✅ CI run has succeded!
You can find tests and deployment logs at https://github.com/aave/interface/actions/runs/3085030736'

@github-actions
Copy link

@foodaka foodaka merged commit 24499d2 into aave:main Sep 19, 2022
@reem reem deleted the borrow-modal-gov-warning branch September 19, 2022 20:04
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.

Governance parameter change warnings

6 participants