Commit Graph

739 Commits

Author SHA1 Message Date
dependabot[bot]
7d038dbb01
Bump tailwindcss from 3.1.8 to 3.2.1 (#31)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.1.8 to 3.2.1.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.1.8...v3.2.1)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 13:14:06 +00:00
Gustavo Mauricio
18c7547c00
MP-1638: Repay (#35)
* added repay action percentage buffer

* moved repay amount calculation to RepayFunds component

* refetch interval added to credit account positions query

* feat: revamp borrow and repay components to modals

* remove references to deleted components

* cosmo signing client added to wallet store

* amount decimal normalized for borrow action

* amount decimals conversion lifted for borrow and repay

* refactor: moved hooks to mutations folder

* update button disable condition and min input value

* refactor: reset modal states when reopened

* react-number-format dependency and borrow/repay modals revamp

* renamed borrow modal state variable

* style: borrow table ui revamp
2022-10-28 12:14:14 +01:00
Gustavo Mauricio
55d0910d10
MP-1566: Deposit funds modal (#33)
* feat: deposit account modal

* style: button default colors to match wireframes

* react-query-devtools package added

* slider moved to separate component
2022-10-25 11:31:36 +01:00
Gustavo Mauricio
d3a1e9f3f1
fix: market liquidity default to 0 (#34) 2022-10-25 11:31:13 +01:00
Gustavo Mauricio
d22de166da
Borrow improvements (#29)
* update token prices and market data to match smart contract

* feat: redbank balances query and respective rendering on ui

* query key for rb balances and respective invalidations

* update contracts config

* fix: avoid returning negative max borrow amounts

* fix: added deposit action to repay execute message

* add minus sign before apy on debt positions

* consider market liquidity on max borrow calculation

* hive url added to chain config

* update hardcoded token decimals
2022-10-24 16:15:26 +01:00
Gustavo Mauricio
5cb1da132b
fix: next build (#28)
* fix: build vercel

* disable swcMinify experimental feature
2022-10-21 12:48:59 +02:00
dependabot[bot]
f69be1b6eb
Bump eslint-config-next from 12.2.5 to 12.3.1 (#13)
Bumps [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) from 12.2.5 to 12.3.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/commits/v12.3.1/packages/eslint-config-next)

---
updated-dependencies:
- dependency-name: eslint-config-next
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-21 08:18:07 +01:00
dependabot[bot]
0739f9debe
Bump next from 12.2.5 to 12.3.1 (#15)
Bumps [next](https://github.com/vercel/next.js) from 12.2.5 to 12.3.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v12.2.5...v12.3.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-21 08:17:31 +01:00
Gustavo Mauricio
bbbdca6950
MP-1227: Borrow Page (#24)
* added icon for atom and tokenInfo data update

* borrow page initial commit

* feat: borrow funds to ca and wallet

* close borrow module on tx success

* feat: repay funds initial setup

* repay funds action hook

* repay slider. module state on borrow page component

* styling: minor tweak to text colors

* limit manual input on repay to max value

* borrow funds component slider initial

* style: max button typography

* AssetRow extracted to separate file. organize imports

* ContainerSecondary component added

* loading indicator for pending actions

* style: progress bar colors

* tanstack table added

* tanstack react-table dependency missing

* table cleanup and layout adjustments

* fix account stats formula and update market data to match spreadsheet

* calculate max borrow amount hook

* reset borrow and repay components on account change

* max borrow amount decimals. memorized return

* hook tanstack data with real data

* redefine borrowedAssetsMap to map

* update max borrow amount formulas

* remove unnecessary table component. refactor borrow table
2022-10-20 16:39:21 +01:00
Gustavo Mauricio
53eca46b6c
experimental chains cleanup. osmosis testnet added (#25) 2022-10-13 11:20:04 +01:00
Gustavo Mauricio
3022ae9a6a
MP-2017: Deposit Funds and Account stats (#21)
* style: fund account font size adjustments

* client instance. contract addresses updates. prices hook added

* persist lend assets value for every credit account

* feat: account stats and semi circular progress

* minor code cleanup

* display borrowed assets interest rate

* fallback screen when no wallet is connected

* fix: hydration mismatch

* update osmosis testnet endpoints

* style: body text color

* coin interface imported from cosmos package

* risk calculation from ltv assets comment added

* svgr setup. inline svg extracted to Icons folder

* address removed from local storage. wallet store improvements

* rename setAddress action to connect

* yield page renamed to earn

* refactor: accountStats using BigNumber

* update contract addresses

* update hardcoded fee

* update market mocked values

* current leverage added to useAccountStats hook return

* leverage naming disambiguation

* debt positions labels color update. negative sign before values

* remove prefers-color-scheme media query

* update redbank mock data
2022-10-12 16:41:03 +01:00
Gustavo Mauricio
f709c12da2
Tooling improvements and minor refactor (#19)
* refactor: store selector callbacks less verbose

* chore: prettier tailwind plugin added and respective formatting

* disable metamask connection button
2022-09-30 13:50:16 +01:00
Gustavo Mauricio
5007acb515
WIP (#12)
* osmosis initial setup and nft contract queries/mutations

* display errors on ui

* fix: create credit account queryMsg and contract

* client initialization. loading indicator when pending io

* added tx feedback on toast

* remove unused wallet store code

* fetch credit accounts moved to external hook

* navigation copy

* file name typo

* remove console logs and unused imports

* fix: credit accounts query msg

* credit manager store. create credit account hook created

* delete credit account hook. fees declaration moved to utils

* update selected account when a new one is created

* type inference for mutation hooks

* loading indicator for async actions. onSuccess toast

* credit accounts popover

* minor improvements credit account slice

* credit manager module state and respective markup

* fix: credit account list threshold

* credit manager component. currency formatter function update

* update contract addresses

* borrow screen initial setup

* error handling mutation queries

* update credit account list when address changes

* update credit accounts query key to include address

* update selected account when nothing is selected

* credit manager wip. deposit and listing positions on credit account

* FundAccount component moved to different file

* removed unused code

* lending assets switch

* minor refactor injective balance hook to be more generic

* style: font size minor adjustments

* borrow action initial. display liabilities and borrow positions on credit manager

* positions amount formatting

* preserve selected account on local storage

* prettier custom settings and respective files formatting

* credit manager container moved to external file

* removed threshold variable. nav elements moved to array declaration

* Navigation component naming and minor cleanup

* react query keys enum

* query keys improvements

* initial generated smart contract api type definitions
2022-09-29 20:21:31 +01:00
Gustavo Mauricio
981c982de2 remove index page nextjs content 2022-09-18 11:45:58 +01:00
Gustavo Mauricio
cadb2a30a2 sentry hide source maps 2022-09-18 08:19:35 +01:00
Gustavo Mauricio
a343ccc652 remove console logs 2022-09-15 22:47:23 +01:00
Gustavo Mauricio
cc1b2c452c heroicons dependency added 2022-09-15 07:56:38 +01:00
Gustavo Mauricio
69c4be53a7 refactor: wallet buttons extracted to Button component 2022-09-15 07:55:40 +01:00
Gustavo Mauricio
ace7be48b5 currency formatter function moved to utils dir 2022-09-14 17:51:14 +01:00
Gustavo Mauricio
cd08b567fb progressbar initial implementation 2022-09-14 17:47:52 +01:00
Gustavo Mauricio
89f3295536 style: toast minor adjustments 2022-09-14 16:34:44 +01:00
Gustavo Mauricio
584bc533c7 navigation manage button 2022-09-14 14:35:17 +01:00
Gustavo Mauricio
28c53b1e59
Wallets integration (#3)
* keplr/metamask integration initial commit

* chains settings and type definitions. notifications prototype

* fix: dom nested buttons

* address copied toast

* react-toastify colors

* wallet store and initial queries setup. zustand and react query dependencies added

* _app code cleanup

* remove obsolete WalletContext

* unused import

* walletStore initial commit

* leftover component reference removed

* fix: react hydration mismatch wallet component

* metamask conditional click handler

* connect modal minor tweaks and wallet installation urls added
2022-09-14 12:28:18 +01:00
Gustavo Mauricio
121549d41d portfolio page initial setup 2022-09-08 07:34:05 +01:00
Gustavo Mauricio
5169643e8c feat: connect wallet modal initial 2022-09-08 07:23:02 +01:00
Gustavo Mauricio
f9249c0f28 search input component 2022-09-07 20:12:19 +01:00
Gustavo Mauricio
71e5cf649d navigation links styling 2022-09-06 18:56:12 +01:00
Gustavo Mauricio
8c8a7cb18f navigation bars wip 2022-09-06 16:16:58 +01:00
gustavomauricio
84fa492849 navigation and logo update 2022-09-06 11:34:56 +01:00
gustavomauricio
42138c107f favicon added 2022-09-03 14:21:43 +01:00
gustavomauricio
e18c788dc7 sentry setup 2022-09-02 22:29:22 +01:00
gustavomauricio
fba85fc0b1 container implementation and pages initial layout 2022-09-02 15:55:49 +01:00
gustavomauricio
3e1cc8387f styling wip 2022-09-02 15:40:10 +01:00
gustavomauricio
732e23d15e initial setup wip 2022-09-02 15:30:58 +01:00
gustavomauricio
9b0776f2b7 added background 2022-09-02 13:06:05 +01:00
gustavomauricio
9143b730d9 pages initial setup and respective navigation 2022-09-02 12:51:18 +01:00
Gustavo Mauricio
e9dc5c85d9
Create dependabot.yml 2022-09-02 12:35:29 +01:00
gustavomauricio
6faa8ebd60 initial setup wip 2022-09-02 12:26:03 +01:00
gustavomauricio
0c5319ad02 Initial commit from Create Next App 2022-09-02 12:17:39 +01:00