Commit Graph

69 Commits

Author SHA1 Message Date
Linkie Link
df6d7a3ba2
overall cleanup and refactoring + SettingsModal (#286) 2023-07-11 21:01:14 +02:00
Yusuf Seyrek
ffe86a440c
fix: range input disabled state (#294) 2023-07-10 10:34:41 +01:00
Yusuf Seyrek
c0d62cd8f0
feat: trade range input implementation (#287) 2023-07-07 18:19:00 +03:00
Yusuf Seyrek
0123685f79
feat: auto-lend foundation (#283) 2023-07-05 17:43:11 +03:00
Linkie Link
21c8d04824
fix: fixes some minor stuff (#285)
* fix: fixes some minor stuff

* fix: used the right icon for lend
2023-07-05 15:09:15 +02:00
Linkie Link
cd8fa35b76
Mp 2821 unlocked positions (#284)
* feat: added unlock flow to the deposited farm row

* feat: added first itteration of unlocking/unlocked logic

* feat: introduce getVaultPositionStatus

* feat: added animated unlock label

* fix: size fix

* MP-2821: created the VaultUnlockBanner

* MP-2821: finished single vault withdraw

* MP-2821: finished vault unlock integration

* fix: implemented feedback

* tidy: refactor isWaiting > isConfirming

* fix: updated according to feedback

* fix: updated according to feedback

* fix: added useMemo for multiple values

* tidy: fixed some format issues

* tidy: updated svg icon implementation

* fix: fixed Bob’s glas-border issues

* fix: refactor modal max-widths

* MP-3031: moved deposit button into the table row
:

* fix: cleanup and adjustment to the button (according to layout)

* fix: added nested groups and finalized the label animation

* tidy: cleanup
2023-07-05 14:28:39 +02:00
Linkie Link
3c3e722c49
Mp 2821 unlocked positions (#276) 2023-07-04 16:15:36 +02:00
Yusuf Seyrek
85e36897a6
Use generated types in message execution function (#282)
* fix: lend transaction message

* feat: use generated types
2023-07-03 18:49:22 +03:00
Bob van der Helm
39e745b210
Mp 2713 asset selector (#275)
* added dumb asset selector

* fix table layouts borrow and farm

* 🍱 added basic overlay, esc btn

* finish asset selector

* Update tailwind configf to include button styles
2023-07-03 09:39:34 +02:00
Bob van der Helm
789a0d7b47
added full width layout for trade page (#274) 2023-06-29 17:35:45 +02:00
Bob van der Helm
999bad4059
Mp 2880 modifying farm position (#272)
* added correct resolving of account positions

* solve rendering bug for lp amount

* bugfix: add slippage to minlpamount

* fix DisplayCurrency to accept only BNCoin

* bugfix: remove prices from store

* add basic depostied vaults table

* Farm: Added deposited table

* finish deposited table, remove featured vaults:

* enable deposit more for vaults

* use controller for vault modal

* small fixes and polishing of add deposit

* fix tests, run format

* removed empty deposited table

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-06-29 13:12:11 +02:00
Bob van der Helm
697e83b7cb
Mp depostied vaults table (#271)
* added correct resolving of account positions

* solve rendering bug for lp amount

* bugfix: add slippage to minlpamount

* fix DisplayCurrency to accept only BNCoin

* bugfix: remove prices from store

* add basic depostied vaults table

* Farm: Added deposited table

* finish deposited table, remove featured vaults:
2023-06-29 12:55:47 +02:00
Bob van der Helm
9007e31707
added correct resolving of account positions (#270) 2023-06-26 15:13:21 +02:00
Bob van der Helm
415da05b8d
Mp 2548 deposit into vault (#264)
* Implement vault deposit message

* Merge custom Coin into BNCoin

* Fix build errors

* fixed tests
2023-06-26 10:08:45 +02:00
Yusuf Seyrek
7fda98aeea
Mp 3004 implement account balance amount when withdrawing 100 of lent asset (#263) 2023-06-23 18:52:49 +03:00
Yusuf Seyrek
2c399a2f16
feat: lend and withdraw modals (#257)
* feat: lend/withdraw functionality

* feat: addressed to pr discussions

* rename: data hook members
2023-06-23 13:30:08 +03:00
Yusuf Seyrek
db9f222732
Mp 2993 update smart contracts (#262)
* feat: update contract addresses and types

* feat: add account type

* feat: comment out old contract vaults

* tests: disable vaults test suite

* instantiate contract-specfiic clients

* fix build

* rebase and fix test

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-06-21 00:20:42 +02:00
Bob van der Helm
0037c3dedf
Mp 2547 unlocking modal (#256)
* add modal

* add tests and update naming

* fix pr comments
2023-06-19 20:46:32 +02:00
Yusuf Seyrek
878434dfec
feat: lending page and tables (#248) 2023-06-15 15:34:12 +03:00
Bob van der Helm
7b5d4c3255
Mp 2546 borrow asset modal (#255)
* Refactor Modal folder and setup basic addassetsmodal

* basic tables

* Update basic logic

* small fixes

* Update closing for modals

* fix slider update bug and set borrowing subtitle

* fix store

* add missing dependency

* fix tests for VaultBorrowings

* Add DisplayCurrency test for VaultBorrowings

* trigger updated

* update borrowModal import path

* update imports for modals

* updating paths again

* update structure of modals directory

* fix all file naming and relative imports

* fix icon spacing button and jest.mocked import

* fix icon classes for button

* change Map to array and add BNCoin

* add AssetImage

* update logic for selecting borrow denoms
2023-06-15 13:00:46 +02:00
Bob van der Helm
0f8e656651
Mp 2543 farm adv borrow (#247)
* add calculation for max borrowings

* implement borrow side for modal

* add test and resolve comments
2023-06-07 16:22:13 +02:00
Yusuf Seyrek
2c149fabcf
tests: fix, improve utility, separate workflows (#241) 2023-06-05 08:47:42 +02:00
Yusuf Seyrek
2156431355
Mp 2565 api for active vaults (#239)
* feat: get deposited vaults functions

* feat: functional improvements

* cleanup: logging

* cleanup: remove unused import

* update: naming conventions
2023-06-05 08:31:46 +02:00
Bob van der Helm
9d09ebdf77
Mp 2544 Vault deposit (#240)
* Show guages on deposit

* Finish VaultDeposit

* resolve PR comments
2023-06-01 15:55:42 +02:00
Bob van der Helm
ac7e82b0a4
Mp 2758 updated tooltip component (#238)
* update tooltip styling

* refactor Tooltip and fix build

*  add Tooltip unit tests

* remove width and height

* update tests and yarn format script

* Apply suggestions from code review

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-05-31 10:34:26 +02:00
Yusuf Seyrek
e651e9c797
feat: store and component mocks setup (#237)
* feat: store and component mocks setup

* feat: more examples
2023-05-30 11:16:13 +02:00
Yusuf Seyrek
0c959d5097
feat: replace graphql requests with cosmwasm queries (#225)
* feat: replace graphql requests with cosmwasm queries

* feat: concurent price and market fetching
2023-05-30 11:16:03 +02:00
Bob van der Helm
de89ecb7ed
Mp 2757 token input errors (#235)
* Refactor TokenInput

* add TokenInput test + warning

* change title assigned select

* add unit tests for Card

* remove marketAssets from broadcast store
2023-05-30 09:01:07 +02:00
Yusuf Seyrek
af3c484047
update: page metadata (#226) 2023-05-26 10:25:07 +03:00
Yusuf Seyrek
ee20c2fde2
feat: finalize button component with tests (#224)
* feat: finalize button component with tests

* fix: import

* fix: import
2023-05-24 16:07:08 +03:00
Yusuf Seyrek
999d936f85
feat: react helmet implementation (#223)
* feat: dynamic page metadata implementation

* cleanup: unused imports

* cleanup: more unused imports
2023-05-24 16:05:19 +03:00
Bob van der Helm
173f764980
WIP: Mp 2542 vault deposit (#216)
* Change accordion interactions

* finish interaction

* set min width accountsummary

* finish user interaction of accordion

* finish deposit interaction

* Fix Accordion

* Refactor TokenInput

* Refactor VaultModalContent

* fix minor build errors
2023-05-23 15:10:26 +02:00
Linkie Link
e3092a94e6
feat: implemented the multichain wallet-connector (#217)
* feat: implemented the multichain wallet-connector

* tidy: refactor
2023-05-23 10:41:23 +02:00
Yusuf Seyrek
b24bbb3376
New architecture (#196)
* feat: move app to pages features

* feat: route changes

* Use React Router, Remove SSR

* Fix account menu

* Remove app folder

* remove old useParams

* Moved pages back to pages and refactor names

* add layout to route

* clean up

* create hooks for api fetching

* fix refetch of all data on tx complete

* formatting

* fix: fixed the wallet-connector race condition

* remove cosmjs/stargate (#202)

* remove cosmjs/stargate

* add Yusuf as code-orwner

* Singleton client (#203)

* remove cosmjs/stargate

* add Yusuf as code-orwner

* create signleton client and refactor vaults api

* update client name, add apollo apr env

* Setup validate-env and remove checking from apis

* uncomment vaults

* Resolve comments

* fix: html templating, add checks for hydration&window object, reduce bundle size (#204)

* fix: tests

* Fix routing and wallet client (#205)

* Add header to router (as layout)

* Refactor Wallet component

* Remove server fallback packages webpack

* add missing dependency for useeffect

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-05-16 12:39:52 +02:00
Linkie Link
5a71ace0d6
Mp 2354 credit account balances (#192) 2023-05-11 15:03:00 +02:00
Linkie Link
d5f3232b7a
feat: connected borrowModal to the new components (#190)
* feat: connected borrowModal to the new components

* fix: fixed the introduced issues

* Update src/components/Modals/BorrowModal.tsx

as suggested

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

* Update src/components/Modals/BorrowModal.tsx

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

* Update src/components/Modals/BorrowModal.tsx

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-05-11 12:23:08 +02:00
Linkie Link
5c01ec6872
Mp 2681 interact with credit account modal (#189)
* MP-2681: fixed and simplified fund and withdraw
;.
:

* MP-2352: created the CreditAccountComposition

* fix: adjusted according to feedback

* fix: fixed funding account max

* fix: fix portfolio
2023-05-09 17:22:11 +02:00
Yusuf Seyrek
ae1f8d481b
feat: jest testing setup, example tests (#181) 2023-05-08 16:47:19 +02:00
Linkie Link
0ae70899e5
Mp 2344 fund credit account flow (#179)
* tidy: refactor text

* feat: added unstyled select

* tidy: useToggle

* tidy: useToggle

* MP-2344: first unstyled version of Select

* fix: fixed the build

* MP-2344: progress on the Select

* MP-2344: almost finished the Select

* env: update wallet-connector

* fix: relative imports

* env: started adding osmo-test-5 contracts

* refactor: rename stargate.ts to d.ts

* env: adjusted tsconfig.json

* feat: updated modals to use the dialog element

* env: added mainnet config

* env: enabled osmosis-1

* tidy: refactor

* fix: fixed decimals

* fix: fixed the NaN issue for ETH

* fix: fixed price calculations for large decimals

* feat: finished conversion to <dialog>

* fix: fixed some logic issues

* fix: layout fix

* fix: fixed token slider and input

* tidy: format

* fix: added currentAccount hook

* Mp 2345 withdraw from credit account flow (#180)

* MP-2345: created the barebone for withdraw

* MP-2351: changed the AccountHealth logic

* MP-2345: enabled withdraw function

* MP-2351: added animation to Accordion

* fix: adjusted according to feedback

* fix: reduced complexity

* tidy: format

* env: enabled osmo-test-5 support

* feat: added USDC.n

* env: updated dependencies

* fix: hotfixed react-draggable

* fix: fixed vault info
2023-05-08 12:18:33 +02:00
Yusuf Seyrek
ce91d2a134
fix: address selector in ConnectedButton (#173) 2023-05-03 21:45:15 +02:00
Bob van der Helm
cd5ec3ee3b
Mp 2540 farm overview (#172)
* tidy: refactor text

* tidy: refactor text

* fix display of vaults table

* feat: added unstyled select

* tidy: useToggle

* tidy: useToggle

* add vaults to types

* MP-2344: first unstyled version of Select

* fix: fixed the build

* MP-2344: progress on the Select

* MP-2344: almost finished the Select

* implement basic vault modal (no logic)

* 🍱  max + displaycur for token input

* Convert to BN for TokenInputs

* env: update wallet-connector

* fix: fixed build errors and relative imports

* fix: updated TokenInput

* tidy: format

* fix: BN instead of new BigNumber

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-05-02 09:55:32 +02:00
Bob van der Helm
ac09862f1f
Farm components (#158)
* add basic endpoint for vaultConfigs

* implement apy for vaults

* add tab + update routing

* fixed routing issues

* add featured vaults and vault card

* add availablevaults table

* fixed comments
2023-04-16 17:03:48 +08:00
Bob van der Helm
4af7e63c5f
Mp 2538 tab component (#157)
* add basic endpoint for vaultConfigs

* implement apy for vaults

* add tab + update routing

* fixed routing issues

* change structure tab component
2023-04-16 16:32:14 +08:00
Bob van der Helm
0a796a3d94
Mp 2435 display currency (#155) 2023-04-14 14:52:44 +02:00
Bob van der Helm
4847121180
Mp 2539 vaults api (#156)
* add basic endpoint for vaultConfigs

* implement apy for vaults
2023-04-14 14:36:49 +02:00
Linkie Link
eb814705f2
Mp 2344 fund credit account flow (#145)
* MP-2344: first draft for the fund account flow

* tidy: refactor

* fix: fixed the callback functions

* fix: fixed the toast message for funding

* fix: some logic fixes

* feat: enabled closing of “fund account”

* fix: z-1 to isolate

use isolate to create a stacking context

* tidy: deleted icons

* MP-2344: updated the tooltip

* MP-2344: new create and funding logic

* MP-2344: finished AccountList UI

* tidy: svg icon updates

* chore: updated dependencies

* feat: convert inputValues to amounts and amounts to inputValues

* fix: build fix

* fix: fixed imports

* fix: pr updated

* fix: fixed the SWR queries to not override themselves

* tidy: refactor

* feat: added TokenInputWithSlider

* tidy: refactor TokenInputWithSlider

* feat: preparations for the accountBalance calculations

* fix: removed formatCurrency from store

* feat: added global Coin type

* tidy: refactor delete and create credit account

* add useCallback to FundAccount

* update api + swr

* refactor naming, ssr accounts menu

* wip: added static params and href to DesktopNavigation

* fix: added TODO statement

* add middleware to get url

* feat: added scrolling to the active account

* tidy: UX improvement on the accounts list

* fix: updated the page params

* fix: fixed the navigation

* fix: fixed the getRouteParams

* fix: some logic updates

* fix: fixed the accountMenu view

* Keep page when selecting new account

* fix: fixed useParams

* fix: navigation update

* fix pr comments

* fixed build

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-04-06 19:20:17 +02:00
Linkie Link
029780203e
feat: convert inputValues to amounts and amounts to inputValues (#152) 2023-04-04 16:11:36 +02:00
Bob van der Helm
a747a585af
Repay modal (#146)
* enable repay

* update formatters

* remove suffix from numberInput

* implement repay
2023-04-03 13:31:00 +02:00
Bob van der Helm
8e0bb97839
Account balances endpoint (#147)
* add accounts/positions to api

* strong type apis
2023-04-03 13:30:16 +02:00
Bob van der Helm
77080d064a
Borrow functionality (#144)
* remove hard coded data

* add borrow message

* update deposit message

* update borrow and deposit

*  add tailwind-elements

* 🍱 add plus, shield, arrowbullish

* configuration for tw-elements

* add accordion + account summary

* remove tw-elements and update accordion

* update borrowmodal

* fixed svgs

* re-add blur for modals

* fix build errors and warnings
2023-03-28 18:25:35 +02:00