Commit Graph

3 Commits

Author SHA1 Message Date
Gustavo Mauricio
8bde02c2e9
MP-1705: Borrow limit (#48)
* update borrow funds hooks using credit manager client

* update calculate max borrow and withdraw hooks to consider future debt
2022-11-07 17:14:16 +00:00
Gustavo Mauricio
9bc09c68af
Withdraw assets from account (#43)
* withdraw modal and respective hooks initial commit

* max withdraw amount hook logic improvements

* withdraw flow code cleanup

* reset modal state when reopened

* memoize withdraw amount. percentage value fix

* unused store selector

* credit manager and accountnft clients added to store

* script to pull generated types from rover repo
2022-11-07 16:36:12 +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