Skip to content

Commit

Permalink
Feat/data UI (#1644)
Browse files Browse the repository at this point in the history
* feat: add tracking.js file

* feat: setup mixpanel (#17)

* feat: setup mixpanel

* feat: rename file

* Feat/t 8660 dashboard analytics (#18)

* feat: setup mixpanel

* feat: rename file

* feat: improved setup

* WIP : config events with zustand (#22)

* feat: config events with zustand

* feat: types

* chore: remove prev impl

* chore: remove var from re render

* chore: remove

* feat: update types

* feat: fix analytics slice (#23)

* Feat/t 8664 tracking reserves (#24)

* feat: init add events reserves

* feat: setup reserve

* feat: tracking reserve page

* feat: events on reserve

* WIP feat: staking events (#20)

* feat: staking events

* fix: fixed messages

* fix: small changes

* feat: goverenance tracking

* fix: update old trackEvent

* fix: double recording off events

* fix: small issues

* feat: tracking on markets (#21)

* feat: tracking on markets

* feat: update to use store

* feat: fix market sorting events

* feat: remove debug

* feat: track mobile

* Chore/sync main repo (#31)

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: price impact calculations (#1530)

* fix: decimals of price impact percentage

* fix: use correct percent change formula

* fix: use correct percent change formula and exact output amount

* 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]

* 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]

* 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]

* 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: add LDO icon (#1536)

* 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]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: supply cap pie chart overflowv2 (#1540)

* 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: collateral swap hf and swap target collateralization details (#1534)

* fix: check for isNaN on future hf number

* fix: use asset collateral type in swap modal details

* fix: updated collateral states with latest design

* fix: collateral states

* fix: handle max amount swap cases

* test: skip wbtc for optimis due max caps on market

* fix: design feedback

* fix: typo

* fix: tooltip text for isolated enabled assets

* fix: build error

* test: fix coverage

* test: fix avalacnhe test coverage

* test: improve waiters for e2e coverage

* test: ci coverage fix

* test: ci coverage fix

---------

Co-authored-by: NikitaY <[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]

* chore: automated cache update [skip cypress]

---------

Co-authored-by: Cache bot <[email protected]>
Co-authored-by: DeFi Spartan <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: NikitaY <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>

* feat: poc for tx status in global state (#27)

* feat: poc for tx status in global state

* feat: wip

* fix: refactor

* feat: fix filter

* chore: fix tx slice

* feat: supply and borrow txs

* feat: add repay

* fix: cleanup

* chore: fix type

* chore: fix type

* chore: fix types

---------

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

* WIP: Feat/t 8660 dashboard analytics (#19)

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: price impact calculations (#1530)

* fix: decimals of price impact percentage

* fix: use correct percent change formula

* fix: use correct percent change formula and exact output amount

* 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]

* 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]

* feat: setup mixpanel

* feat: rename file

* feat: improved setup

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* feat: tracking dashboard

* 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: update events to use store

* chore: ignore

* chore: remove old mixpanel

* chore: fix incentives

* 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]

* 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: add LDO icon (#1536)

* 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]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: supply cap pie chart overflowv2 (#1540)

* 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: collateral swap hf and swap target collateralization details (#1534)

* fix: check for isNaN on future hf number

* fix: use asset collateral type in swap modal details

* fix: updated collateral states with latest design

* fix: collateral states

* fix: handle max amount swap cases

* test: skip wbtc for optimis due max caps on market

* fix: design feedback

* fix: typo

* fix: tooltip text for isolated enabled assets

* fix: build error

* test: fix coverage

* test: fix avalacnhe test coverage

* test: improve waiters for e2e coverage

* test: ci coverage fix

* test: ci coverage fix

---------

Co-authored-by: NikitaY <[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]

* chore: automated cache update [skip cypress]

* feat: move events to track modals

---------

Co-authored-by: Cache bot <[email protected]>
Co-authored-by: DeFi Spartan <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: NikitaY <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>

* Feat/rebase upstream (#38)

* 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]

* 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]

* 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: add LDO icon (#1536)

* 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]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: supply cap pie chart overflowv2 (#1540)

* 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: collateral swap hf and swap target collateralization details (#1534)

* fix: check for isNaN on future hf number

* fix: use asset collateral type in swap modal details

* fix: updated collateral states with latest design

* fix: collateral states

* fix: handle max amount swap cases

* test: skip wbtc for optimis due max caps on market

* fix: design feedback

* fix: typo

* fix: tooltip text for isolated enabled assets

* fix: build error

* test: fix coverage

* test: fix avalacnhe test coverage

* test: improve waiters for e2e coverage

* test: ci coverage fix

* test: ci coverage fix

---------

Co-authored-by: NikitaY <[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]

* 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]

* 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]

* 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]

* 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]

* 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]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* Feat: new double delegation (#1519)

* feat: first component refactor

* chore: moved governance section to right

* feat: added userDisplay component and used it on the wallet widget

* feat: refactored user powers info in delegation section

* feat: created delegated info panel component

* feat: separated logic form user names

* feat: added no wallet connected status

* fix: fixed order of governance papers

* feat: added tooltips to voting and proposition power titles

* feat: added correct color to delegate section

* feat: added new selector for type delegation

* feat: new modal designs

* fix: added setting up value when only having one type of token balance in governance

* feat: added delegate call

* feat: added delegate to self button

* feat: added icons to delegated power

* chore: refactored some components

* feat: added loader to avatar

* feat: added tabs to governance section

* fix: polished styles

* fix: applied design feedback

* fix: changed conditions and deleted self delegated

* feat: added revoke modal

* feat: basic useGovernanceDelegate

* fix: applied design/dev/qa feedback

* feat: added basic useGovernanceDelegate

* feat: last ux fixes

* fix: added correct link

* chore: updated utilities package

* feat: changed styles for toggle buttons ins tx modals

* feat: added new governance helper address

* chore: updated aave contract helpers

* fix: addressed pr feedback

* fix: deleted old code changes in useTransactionHandler

* 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(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: e2e tests (#1556)

* chore: added to generate build

* feat: awaited correctly some of the config for cypress

* feat: fix ci :D

* chore: apply governance test fixes

---------

Co-authored-by: aschmidt20 <[email protected]>

* feat: supply optimization (#1529)

* chore: bump utils

* feat: replace all supply methods with bundle

* chore: update primitive tx types

* feat: create separate bundle transaction handler and apply to supply

* chore: build errors + gas limit refactor

* chore: package bump

* chore: rework states in txBundlerHander

* chore: use updated utilities which removes async populateTransaction

* feat: memoize SupplyModal parameters

* feat: rework transaction building logic from scratch

* chore: bump utils version

* feat: refactor poolSlice for new tx builder types

* chore: update supply transaction handlers (WIP)

* feat: update pool slice supply typings and integrate approve helper function

* chore: package bump

* chore: update SupplyActions param

* feat: update approval helpers in poolSlice

* chore: remove loading condition

* feat: replace transaction handler with direct calls from SupplyActions

* chore remove unused file

* fix: supplyWithPermit deadline mismatch

* chore: populate default gas estimations

* feat: optimize gas loading for new tx methods

* feat: helper function for approval checks

* feat: handle edge cases where new approvals are required

* chore: cleanup condition

* fix: supplyWithPermit condition and add comments

* chore: bump package version

* feat: handle inputs with decimals exceeding token decimals

* feat: await tx confirmation

* fix: simplify max amount to supply and cap status checks

* fix: usage of remainingCap

* chore: remove unneeded useMemo

* chore: optimize zustand selectors

* chore: apply governance cypress test updates

* chore: automated cache update [skip cypress]

* feat: borrow optimizations (#1547)

* chore: bump utils

* feat: replace all supply methods with bundle

* chore: update primitive tx types

* feat: create separate bundle transaction handler and apply to supply

* chore: build errors + gas limit refactor

* chore: package bump

* chore: rework states in txBundlerHander

* chore: use updated utilities which removes async populateTransaction

* feat: memoize SupplyModal parameters

* feat: rework transaction building logic from scratch

* chore: bump utils version

* feat: refactor poolSlice for new tx builder types

* chore: update supply transaction handlers (WIP)

* feat: update pool slice supply typings and integrate approve helper function

* chore: package bump

* chore: update SupplyActions param

* feat: update approval helpers in poolSlice

* chore: remove loading condition

* feat: replace transaction handler with direct calls from SupplyActions

* chore remove unused file

* fix: supplyWithPermit deadline mismatch

* chore: populate default gas estimations

* feat: optimize gas loading for new tx methods

* feat: helper function for approval checks

* feat: handle edge cases where new approvals are required

* chore: cleanup condition

* fix: supplyWithPermit condition and add comments

* chore: bump package version

* chore: bump utilities

* feat: update borrow methods in poolSlice

* chore: generalize requires approval helper

* chore: rework approved credit delegation helper

* feat: apply borrow methods in slice to BorrowActions

* feat: helper function to round input amounts to token decimals

* feat: apply helper function to enforce decimal range of inputs

* feat: handle inputs with decimals exceeding token decimals

* feat: await tx confirmation

* feat: await tx confirmation

* fix: simplify max amount to supply and cap status checks

* feat: bump major package version

* chore: standardize getMaxAmountAvailableToBorrow

* chore: remove unused file

* fix: usage of remainingCap

* fix: test coverage

---------

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

---------

Co-authored-by: Cache bot <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: NikitaY <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>
Co-authored-by: JoaquinBattilana <[email protected]>
Co-authored-by: aschmidt20 <[email protected]>

* Feat/settings tracking (#29)

* feat: staking events

* fix: fixed messages

* fix: small changes

* feat: goverenance tracking

* fix: update old trackEvent

* fix: double recording off events

* fix: small issues

* feat: settings

* fix: fix comments

* fix: update how laguage reviewd'

* Feat/proxy analytics (#41)

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: price impact calculations (#1530)

* fix: decimals of price impact percentage

* fix: use correct percent change formula

* fix: use correct percent change formula and exact output amount

* 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]

* 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]

* 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]

* 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: add LDO icon (#1536)

* 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]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: supply cap pie chart overflowv2 (#1540)

* 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: collateral swap hf and swap target collateralization details (#1534)

* fix: check for isNaN on future hf number

* fix: use asset collateral type in swap modal details

* fix: updated collateral states with latest design

* fix: collateral states

* fix: handle max amount swap cases

* test: skip wbtc for optimis due max caps on market

* fix: design feedback

* fix: typo

* fix: tooltip text for isolated enabled assets

* fix: build error

* test: fix coverage

* test: fix avalacnhe test coverage

* test: improve waiters for e2e coverage

* test: ci coverage fix

* test: ci coverage fix

---------

Co-authored-by: NikitaY <[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]

* chore: automated cache update [skip cypress]

* feat: proxy

---------

Co-authored-by: Cache bot <[email protected]>
Co-authored-by: DeFi Spartan <[email protected]>
Co-authored-by: Mark Grothe <[email protected]>
Co-authored-by: 0xGraham <[email protected]>
Co-authored-by: NikitaY <[email protected]>
Co-authored-by: Crowdin bot <[email protected]>

* chore: fix hide tiles

* feat: dashboard tooltips

* chore: fixes on events

* chore: remove debug

* fix: text of one event

* Change Jobs to use self-hosted Github Runners

* Feat/auth events (#46)

* feat: add auth and nav bar

* fix: eth v3 market e-mode

---------

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

* feat: disable ip tracking (#59)

* Feat/sync main (#60)

* 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]

* fix: migration credit delegation tx approval (#1565)

* chore: bump utils and check non-inflated delegation balance

* chore: bump utils to support native token decimals

* chore: apply small coverage update

* chore: bump utilities to minor version

* chore bump utilities with credit del approval fix

* chore: version bump for credit del approval decimals fix

* chore: automated cache update [skip cypress]

* fix: apply gas limit estimation helper (#1563)

* chore: bump utilities to include default gas limit estimaion

* feat: add poolSlice helper function for gas limit estimation

* feat: apply max of on-chain + default gas estimation to actions

* chore: bump utilities to minor version

* 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]

* 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]

* feat: network, market, and icon config for Metis Andromeda [skip cypress] (#1580)

* feat: add network, market, and icon config

* chore: enable pokt

* chore: update config + reserve patch with feedback

* 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: add ios tags (#1588)

* fix: add ios tags

* fix: 180 icon for aave

* fix: update png ref

* fix: small fixes

* 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: update theme color and app name (#1590)

* 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]

* 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: make sure reserve can be an isolated asset (#1589)

* 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: deleted condition check in supply for isolated reserves (#1591)

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: top voters query (#1595)

* fix: top voter query

* fix: simplified typings and logic

* fix: use new enpoint

* fix: adjust vote list text based on total number of voters

* fix: remove console log

* fix: tests for v3 eth market

---------

Co-authored-by: Nikita <[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(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(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]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* feat: Disable actions on affected assets polygon v2 [skip cypress] (#1604)

* feat: add disabled buttons to affected assets and polygon v2

* feat: add warning on polygon v2

* feat: added matic to affected array on polygon v2

* feat: added banner to dashboard

* feat: added warning message only to proto polygon

* feat: added correct check

---------

Co-authored-by: Mark Hinschberger <[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]

* fix: fix polygon warning message (#1606)

* fix: fix polygon warning message

* fix: date change

* fix: remove auto close of banner

* fix: switch off tests for polygon v2 (#1607)

* 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]

* Feat: `usePoolTokensBalances` 2/5 (#1548)

* feat: react query integration and governance queries

* feat: ordered types

* feat: migrated governance tokens to react query

* fix: changed names for governanceWalletBalanceService

* feat: cleaned code for governance hooks

* feat: changed powers query key name

* fix: fixed folder name

* feat: added hashable

* feat: changed user from params to hook

* feat: better types for hooks

* feat: deleted not used type

* fix: deleted user from hooks

* chore: deleted governance fetches from slice

* fix: fixed governanceChainId

* feat: usePoolTokensBalances hook

* fix: some types and wallet balances hook

* feat: deleted lending pool address provider from hook parameters

* chore: deleted devtools from dependencies

* feat: fixed old refreshers for pool tokens

* chore: updated yarn lock

* fix: changes in metis icons

* feat: added lending pool to query keys

* fix: e-mode test for eth v3 market

---------

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

* chore: automated cache update [skip cypress]

* fix: token icon in reserves page (#1608)

Co-authored-by: Josh DeCristi <[email protected]>

* chore: automated cache update [skip cypress]

* chore: update staking helper version (#1598)

* chore: staking helper update package version

* chore: fork config w/ test UiStakeDataProvider deployment

* chore: update UiStakeDateProvider usage to match new schema

* fix: e-mode tests for v3 eth market

* chore: update utilities version

* chore: update helper contract fork deployment

* chore: use staking types from utilities

* chore: use stakeTokenRedeemableAmount (slashed) in all places

* chore: update staking helper utils version

* chore: update config to mainnet helper contract deployment

* chore: replace cooldown usage to updated variable names

* chore: add cooldown amount to StakeCooldownModal

* chore: enable staking and gov by defult in dev env

* chore: bump package version for typo fix

* chore: remove cooldown already active blocking error

* chore: use userCooldownAmount as max value in UnstakeModalContent

* chore: display amount in cooldown in StakeActionBox

* feat: add ability to re-activate cooldown if balance > active cooldown amount

* chore: i18n

* chore: update reload button style

* test: added coverage for recool colldown

* fix: test bug

* fix: staking bottom panel icon

* chore: update utils to minor package version

* fix: unstake + claim usd price calculation

---------

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

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

* chore: reacticate cooldown condition (#1609)

* chore: staking helper update package version

* chore: fork config w/ test UiStakeDataProvider deployment

* chore: update UiStakeDateProvider usage to match new schema

* fix: e-mode tests for v3 eth market

* chore: update utilities version

* chore: update helper contract fork deployment

* chore: use staking types from utilities

* chore: use stakeTokenRedeemableAmount (slashed) in all places

* chore: update staking helper utils version

* chore: update config to mainnet helper contract deployment

* chore: replace cooldown usage to updated variable names

* chore: add cooldown amount to StakeCooldownModal

* chore: enable staking and gov by defult in dev env

* chore: bump package version for typo fix

* chore: remove cooldown already active blocking error

* chore: use userCooldownAmount as max value in UnstakeModalContent

* chore: display amount in cooldown in StakeActionBox

* feat: add ability to re-activate cooldown if balance > active cooldown amount

* chore: i18n

* chore: update reload button style

* test: added coverage for recool colldown

* fix: test bug

* fix: staking bottom panel icon

* chore: update utils to minor package version

* fix: unstake + claim usd price calculation

* chore: add re-activate cooldown button to unstake button state

* chore: i18n

---------

Co-authored-by: Nikita <[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: update e-mode warning message (#1610)

* chore: automated cache update [skip cypress]

* Test/switch off tabs tests (#1612)

* fix: switch off tests for polygon v2

* test: switch off tabs

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

* Feat: staking hooks 3/5 (#1549)

* feat: react query integration and governance queries

* feat: ordered types

* feat: migrated governance tokens to react query

* fix: changed names for governanceWalletBalanceService

* feat: cleaned code for governance hooks

* feat: changed powers query key name

* fix: fixed folder name

* feat: added hashable

* feat: changed user from params to hook

* feat: better types for hooks

* feat: deleted not used type

* fix: deleted user from hooks

* chore: deleted governance fetches from slice

* fix: fixed governanceChainId

* feat: usePoolTokensBalances hook

* fix: some types and wallet balances hook

* feat: deleted lending pool address provider from hook parameters

* feat: useGeneralStakeData and useUserGeneralStakeData

* feat: added hashable to staking service

* feat: deleted user from stake user hook

* feat: added toHash to stakke hooks query keys

* chore: deleted devtools from dependencies

* feat: fixed old refreshers for pool tokens

* chore: updated yarn lock

* fix: changes in metis icons

* feat: added lending pool to query keys

* chore: added space to deploy

* fix: services name file

* fix: deleted newspace error in readme

* feat: added refresh hooks on transaction handler

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* fix: remove warning bar when wallet menu is open on mobile (#1613)

Co-authored-by: Josh DeCristi <[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(i18n): synchronize translations from crowdin [skip cypress]

* chore: automated cache update [skip cypress]

* chore: automated cache update [skip cypress]

* chore: remove polygon message and enable features [skip cypress] (#1617)

* chore: remove polygon message and enable features

* Update src/components/transactions/Warnings/MarketWarning.tsx

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

* test: enable polygon v2 tests

* test: disable again

---------

Co-authored-by: Mark Hinschberger <[email protected]>
Co-authored-by: Nikita <[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]

* 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]

* feat: change swap to switch (#1602)

* feat: change swap to switch

* fix: test rename swap to switch

* fix: add missing change

* fix: build issues

* …
  • Loading branch information
14 people authored Jun 15, 2023
1 parent 0a0977f commit acbca66
Show file tree
Hide file tree
Showing 120 changed files with 11,489 additions and 11,015 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ NEXT_PUBLIC_API_BASEURL=https://aave-api-v2.aave.com
#NEXT_PUBLIC_FORK_CHAIN_ID=1
#NEXT_PUBLIC_FORK_URL_RPC="https://rpc.tenderly.co/fork/1234567"
NEXT_PUBLIC_ENABLE_STAKING=true
NEXT_PUBLIC_ENABLE_GOVERNANCE=true
NEXT_PUBLIC_ENABLE_GOVERNANCE=true
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ NEXT_PUBLIC_TURNSTILE_SITE_KEY=0x4AAAAAAABe-kMUW_1JUfT7
NEXT_PUBLIC_FORK_BASE_CHAIN_ID=1
NEXT_PUBLIC_FORK_CHAIN_ID=1
NEXT_PUBLIC_FORK_URL_RPC=https://rpc.tenderly.co/fork/1234567
NEXT_PUBLIC_MIXPANEL=
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ yarn-error.log*
.env.local
.env.development.local
.env.test.local
.env.dev.development
.env.production.local

# vercel
Expand All @@ -45,3 +46,4 @@ package-lock.json
# IDE specific
.idea
.vscode
.env.development
2 changes: 1 addition & 1 deletion cypress/configs/settings.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export default defineConfig({
...defaultConfig,
e2e: {
specPattern: [folder + '**/*.*'],
excludeSpecPattern: ['/**/mobile.cy.ts'],
excludeSpecPattern: ['/**/mobile.cy.ts', '/**/change-languages.cy.ts'],
},
});
8 changes: 4 additions & 4 deletions cypress/e2e/2-settings/change-languages.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ const verifyTranslation = (markets: string, More: string) => {
};
export const verifyTranslationOnMarketsPage = (totalBorrows: string, totalMarketSize: string) => {
it(`step3:Verify translation on the Markets page on the ${totalBorrows} and on the ${totalMarketSize}`, () => {
cy.get('a[href*="/markets/"]').click();
cy.get('a[href*="/markets/"]').first().click({ multiple: true });
cy.contains(totalBorrows);
cy.contains(totalMarketSize);
});
};

describe('Manipulation on the language', () => {
describe.skip('Manipulation on the language', () => {
describe('CASE1:Changing the language from English to Spanish', () => {
configEnvWithTenderlyMainnetFork({});
switchLanguageStep('Language', 'Spanish');
verifyTranslation('Mercados', 'Más');
verifyTranslationOnMarketsPage('Total de préstamos', 'Tamaño total del mercado');
});

describe('CASE2: Changing the Language from Spanish to French', () => {
describe.skip('CASE2: Changing the Language from Spanish to French', () => {
switchLanguageStep('Idioma', 'Francés');
verifyTranslation('Marchés', 'Plus');
verifyTranslationOnMarketsPage('Total des emprunts', 'Taille totale du marché');
});

describe('CASE3: Change language from French to English', () => {
describe.skip('CASE3: Change language from French to English', () => {
switchLanguageStep('Language', 'Anglais');
verifyTranslation('Markets', 'More');
verifyTranslationOnMarketsPage('Total borrows', 'Total market size');
Expand Down
6 changes: 6 additions & 0 deletions cypress/support/steps/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ export const skipSetup = ({
if (skip.get()) {
this.skip();
}
cy.window().then((win) => {
win.localStorage.setItem('userAcceptedAnalytics', 'false');
});
});

afterEach(function onAfterEach() {
if ((this.currentTest as Mocha.Test).state === 'failed' && updateSkipStatus) {
skip.set(true);
}
cy.window().then((win) => {
win.localStorage.setItem('userAcceptedAnalytics', 'false');
});
});
};

Expand Down
1 change: 1 addition & 0 deletions cypress/support/steps/configuration.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const configEnvWithTenderly = ({
win.localStorage.setItem('selectedAccount', walletAddress.toLowerCase());
win.localStorage.setItem('selectedMarket', market);
win.localStorage.setItem('testnetsEnabled', enableTestnet.toString());
// win.localStorage.setItem('userAcceptedAnalytics', 'true');
},
});
});
Expand Down
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,12 @@ module.exports = withBundleAnalyzer({
// assetPrefix: "./",
trailingSlash: true,
pageExtensions,
async rewrites() {
return [
{
source: '/collect/:match*',
destination: 'https://api.mixpanel.com/:match*',
},
];
},
});
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@
"gray-matter": "^4.0.3",
"immer": "^9.0.15",
"lowdb": "^3.0.0",
"mixpanel-browser": "^2.45.0",
"next": "12.1.1",
"paraswap-core": "^1.0.2",
"react": "latest",
"react-cookie-consent": "^8.0.1",
"react-dom": "latest",
"react-infinite-scroller": "^1.2.6",
"react-markdown": "^8.0.3",
Expand Down Expand Up @@ -105,6 +107,7 @@
"@types/d3-array": "^3.0.3",
"@types/d3-time-format": "^4.0.0",
"@types/lodash": "^4.14.186",
"@types/mixpanel-browser": "^2.38.1",
"@types/react": "latest",
"@types/react-infinite-scroller": "^1.2.3",
"@typescript-eslint/eslint-plugin": "^5.38.1",
Expand Down
14 changes: 14 additions & 0 deletions pages/_app.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Head from 'next/head';
import * as React from 'react';
import { AddressBlocked } from 'src/components/AddressBlocked';
import { Meta } from 'src/components/Meta';
import { TransactionEventHandler } from 'src/components/TransactionEventHandler';
import { BorrowModal } from 'src/components/transactions/Borrow/BorrowModal';
import { ClaimRewardsModal } from 'src/components/transactions/ClaimRewards/ClaimRewardsModal';
import { CollateralChangeModal } from 'src/components/transactions/CollateralChange/CollateralChangeModal';
Expand All @@ -28,6 +29,7 @@ import { AppDataProvider } from 'src/hooks/app-data-provider/useAppDataProvider'
import { ModalContextProvider } from 'src/hooks/useModal';
import { PermissionProvider } from 'src/hooks/usePermissions';
import { Web3ContextProvider } from 'src/libs/web3-data-provider/Web3Provider';
import { useRootStore } from 'src/store/root';
import { SharedDependenciesProvider } from 'src/ui-config/SharedDependenciesProvider';

import createEmotionCache from '../src/createEmotionCache';
Expand Down Expand Up @@ -57,6 +59,17 @@ interface MyAppProps extends AppProps {
export default function MyApp(props: MyAppProps) {
const { Component, emotionCache = clientSideEmotionCache, pageProps } = props;
const getLayout = Component.getLayout ?? ((page: React.ReactNode) => page);
const initializeMixpanel = useRootStore((store) => store.initializeMixpanel);

const MIXPANEL_TOKEN = process.env.NEXT_PUBLIC_MIXPANEL;
React.useEffect(() => {
if (MIXPANEL_TOKEN) {
initializeMixpanel();
} else {
console.log('no analytics tracking');
}
}, []);

return (
<CacheProvider value={emotionCache}>
<Head>
Expand Down Expand Up @@ -93,6 +106,7 @@ export default function MyApp(props: MyAppProps) {
<SwapModal />
<FaucetModal />
<MigrateV3Modal />
<TransactionEventHandler />
</SharedDependenciesProvider>
</GasStationProvider>
</AppDataProvider>
Expand Down
30 changes: 30 additions & 0 deletions pages/governance/proposal/[proposalId].governance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ import { isProposalStateImmutable } from 'src/modules/governance/utils/immutable
import { VoteBar } from 'src/modules/governance/VoteBar';
import { Ipfs, IpfsType } from 'src/static-build/ipfs';
import { CustomProposalType, Proposal } from 'src/static-build/proposal';
import { useRootStore } from 'src/store/root';
import { governanceConfig } from 'src/ui-config/governanceConfig';
import { GENERAL } from 'src/utils/mixPanelEvents';

import { ContentContainer } from '../../../src/components/ContentContainer';
import { LensIcon } from '../../../src/components/icons/LensIcon';
Expand Down Expand Up @@ -113,6 +115,7 @@ export default function ProposalPage({
const { breakpoints, palette } = useTheme();
const lgUp = useMediaQuery(breakpoints.up('lg'));
const mightBeStale = !proposal || !isProposalStateImmutable(proposal);
const trackEvent = useRootStore((store) => store.trackEvent);

async function updateProposal() {
if (!proposal) return;
Expand Down Expand Up @@ -219,6 +222,9 @@ export default function ProposalPage({
sx={{ minWidth: lgUp ? '160px' : '' }}
target="_blank"
rel="noopener"
onClick={() =>
trackEvent(GENERAL.EXTERNAL_LINK, { AIP: proposal.id, Link: 'Raw Ipfs' })
}
href={`${governanceConfig.ipfsGateway}/${ipfs.ipfsHash}`}
startIcon={
<SvgIcon sx={{ '& path': { strokeWidth: '1' } }}>
Expand All @@ -233,6 +239,12 @@ export default function ProposalPage({
sx={{ minWidth: lgUp ? '160px' : '' }}
target="_blank"
rel="noopener noreferrer"
onClick={() =>
trackEvent(GENERAL.EXTERNAL_LINK, {
AIP: proposal.id,
Link: 'Share on twitter',
})
}
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
ipfs.title
)}&url=${url}`}
Expand All @@ -245,6 +257,12 @@ export default function ProposalPage({
component="a"
target="_blank"
rel="noopener noreferrer"
onClick={() =>
trackEvent(GENERAL.EXTERNAL_LINK, {
AIP: proposal.id,
Link: 'Share on lens',
})
}
href={`https://lenster.xyz/?url=${url}&text=Check out this proposal on aave governance 👻👻 - ${ipfs.title}&hashtags=Aave&preview=true`}
startIcon={
<LensIcon
Expand Down Expand Up @@ -590,6 +608,12 @@ export default function ProposalPage({
component={Link}
target="_blank"
rel="noopener"
onClick={() =>
trackEvent(GENERAL.EXTERNAL_LINK, {
AIP: proposal.id,
Link: 'Forum Discussion',
})
}
href={ipfs.discussions}
variant="outlined"
endIcon={
Expand All @@ -606,6 +630,12 @@ export default function ProposalPage({
component={Link}
target="_blank"
rel="noopener"
onClick={() =>
trackEvent(GENERAL.EXTERNAL_LINK, {
AIP: proposal.id,
Link: 'Seatbelt Report',
})
}
href={`https://github.com/bgd-labs/seatbelt-for-ghosts/tree/master/reports/Aave/0xEC568fffba86c094cf06b22134B23074DFE2252c/${String(
proposal.id
).padStart(3, '0')}.md`}
Expand Down
2 changes: 1 addition & 1 deletion public/icons/lens-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

2 comments on commit acbca66

@github-actions
Copy link

Choose a reason for hiding this comment

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

This commit was deployed on ipfs

@github-actions
Copy link

Choose a reason for hiding this comment

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

This commit was deployed on ipfs

Please sign in to comment.