Linkie Link
7917d24134
fix: rename withdraw to unlend ( #557 )
2023-10-18 09:32:48 +02:00
Bob van der Helm
9e5f88ac83
♻️ refactor table (Farm) ( #555 )
...
* ♻️ refactor table (Farm)
* 🧽 clean up PR
* 🧽 clean up PR
2023-10-17 12:42:25 +02:00
Linkie Link
96ab3f64c0
added hatched health masks ( #552 )
...
* added hatched health masks
* Mp 2837 pre commit hook (#549 )
* MP-2837: added husys and lint-staged
* MP-2837: enabled lint-staged
* MP-2837: setup .prettierignore
* MP-2837: setup .prettierignore
* MP-3483: all Depo. Caps are now % filled (#551 )
* MP-3487: changed the copy of the bridging intro screen (#553 )
* MP-3482: replaced Max LTV with Max. Leverage (#550 )
* sneak: change filled to used
* fix: fixed the foregroundColor on increase and my ocd
2023-10-17 12:19:37 +02:00
Linkie Link
daa88ee548
MP-3482: replaced Max LTV with Max. Leverage ( #550 )
2023-10-17 09:09:48 +02:00
Linkie Link
623bbe8854
MP-3483: all Depo. Caps are now % filled ( #551 )
2023-10-17 09:08:25 +02:00
Linkie Link
a507e9060c
Merge branch 'main' of https://github.com/mars-protocol/mars-v2-frontend into develop
...
# Conflicts:
# src/components/Trade/TradeChart/OsmosisTheGraphDataFeed.ts
2023-10-14 18:09:22 +02:00
Bob van der Helm
4915729ed5
✨ routing and pages for HLS ( #538 )
2023-10-12 14:40:40 +02:00
Linkie Link
5da0ab009f
post launch fixes ( #536 )
2023-10-11 16:32:30 +02:00
Linkie Link
db1048bf4c
various fixes ( #535 )
...
* fix: fixed autoConnect
* tidy: Credit Account
* fix: fallback timer
* fix: clearTimer
* fix: fixed v1 links
* fix: changed the farm columns
* fix: updated doc urls according to Dino (#531 )
* fix: updated doc urls according to Dino
* fix: updated the v1 url
* Build(deps-dev): bump @types/react from 18.2.23 to 18.2.27 (#530 )
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 18.2.23 to 18.2.27.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* 🐛 stAtom chart data (#533 )
* env: update
* env: tidy
* fix: fixed v1 links
* fix: no need for camelcase in keywords
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-10-11 12:56:13 +02:00
Linkie Link
fac07787c5
fix: apys and aprs ( #514 )
...
* fix: fixed aprs
* fix: apy and apr
* fix: fixed build
2023-09-30 09:25:56 +03:00
Linkie Link
f20ae553d9
fix: replaced apollo vault APR api with true APR api ( #511 )
2023-09-28 09:11:45 +02:00
Linkie Link
308ec7dba4
fix: fixed account change and refresh issues ( #498 )
2023-09-24 12:29:49 +02:00
Bob van der Helm
851aeac233
Remove Pyth for testnet/devnet ( #495 )
...
* vaults: multiple bug fixes
* fixed relative import
2023-09-21 12:53:08 +02:00
Linkie Link
6c193c1a9b
fix: applied design feedback ( #494 )
2023-09-21 09:42:50 +02:00
Linkie Link
574dedec23
fix: fixed accountId usage ( #491 )
...
* fix: fixed accountId usage
* fix: fixed rewards center
* fix: copy fix
2023-09-20 15:53:24 +02:00
Linkie Link
9a3fe4dd1e
Tutorial updates ( #489 )
...
* fix: remove headline of Portfolio
* feat: added multiple backgrounds and new intro props
2023-09-20 10:26:14 +02:00
Bob van der Helm
50fd39e926
Mp 3412 ( #487 )
...
* first iteration
* finish implementation
* finish
* fix pr comments
* fix: added Card Title to Overview
---------
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-09-19 15:39:14 +02:00
Linkie Link
b04f244d3e
MP-3414: support unborrowable assets ( #479 )
...
* MP-3414: support unborrowable assets
* tidy: refactor
* MP-3414: added Rate Tooltip to BalancesTable
2023-09-18 16:24:16 +02:00
Linkie Link
dc9a757224
MP-3391: make sure locked and unlocking is taken into account ( #477 )
...
* MP-3391: make sure locked and unlocking is taken into account
* fix: accounts was missing unlocked and locked value
* fix: fixed small layout bug
* fix: rebuild the addValueToVaults function
* tidy: refactor
* fix: unwrapped BN on BigNumber values from
* fix: removed the refreshInterval from accounts
2023-09-18 16:22:11 +02:00
Bob van der Helm
d7b91f4115
🐛 fix prices passed to HC and formatting ( #473 )
2023-09-14 15:00:56 +02:00
Bob van der Helm
433fa717a0
Hide APR for non-borrowable assets in Lend Table ( #468 )
...
* 🐛 Hide APR in lend table for non-borrowable assets
* 🐛 Hide APR in lend table for non-borrowable assets
2023-09-13 20:27:34 +02:00
Bob van der Helm
2f9f0f4b02
Add / update slippage for Vault Messages ( #469 )
...
* ✨ replaced minLpToReceive with slippage
* ✨ Re-lend assets after entering vault
* 🐛 Fix vault unlock bug
2023-09-13 20:27:17 +02:00
Linkie Link
8cf3eec143
fix: implemented Raffas feedback ( #465 )
2023-09-13 11:45:07 +02:00
Linkie Link
2a06d896ca
Mp 2442 tab and alignment fixes ( #464 )
...
* fix: fixed the margins and paddings of the layout
* fix: fixed the gap
2023-09-13 11:44:33 +02:00
Bob van der Helm
38ae904959
🐛 Corrected used deposit cap for Lend ( #463 )
2023-09-13 11:20:18 +02:00
Linkie Link
1bf93670a3
Transaction loader component ( #449 )
...
* feat: added transaction loader screen to modals
* tidy: refactor
* 🐛 fix: borrow not updating vault values (#436 )
* ⚡ Merge FundAccount and AccountFund (#431 )
* ⚡ Merge FundAccount and AccountFund
* fix build
* 🐛 fundAccount not showing, small typos/text corrections
* MP-3376: overpay on repay (#438 )
* MP-3376: overpay on repay
* fix: remove Buffer and fix NaN on useSpring
* feat: added transaction loader screen to modals
* fix: updated AccountFundContent
* fix: fixed the animated-loader issues
* 🐛 UNSAFE_COMPONENT error (#439 )
* 🐛 UNSAFE_COMPONENT error
* 🐛 fix unit tests for react-helmet-async
* Small text fixes (#440 )
* 🐛 text fix on fund for new account
* 🐛 make toggle account-wide lending on new-account
* Styling alert dialog (#441 )
* 🐛 text fix on fund for new account
* 🐛 make toggle account-wide lending on new-account
* 💅🏼 Update styling of alertDialogs
* Fixes bob (#443 )
* 🐛 Trading chart title
* 🐛 Trading chart title
* 🐛 fix incorrect vault deposit amounts
* 🐛 fix incorrect vault borrow calc
* 🧽 run format
* 🧽 fix comments
* 🧽 update code owners
* Build(deps): bump bignumber.js from 9.1.1 to 9.1.2 (#444 )
Bumps [bignumber.js](https://github.com/MikeMcl/bignumber.js ) from 9.1.1 to 9.1.2.
- [Release notes](https://github.com/MikeMcl/bignumber.js/releases )
- [Changelog](https://github.com/MikeMcl/bignumber.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/MikeMcl/bignumber.js/compare/v9.1.1...v9.1.2 )
---
updated-dependencies:
- dependency-name: bignumber.js
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Build(deps-dev): bump @types/react from 18.2.19 to 18.2.21 (#448 )
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 18.2.19 to 18.2.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Build(deps): bump next from 13.4.9 to 13.4.19 (#446 )
Bumps [next](https://github.com/vercel/next.js ) from 13.4.9 to 13.4.19.
- [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/v13.4.9...v13.4.19 )
---
updated-dependencies:
- dependency-name: next
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Build(deps-dev): bump @types/node from 20.4.8 to 20.6.0 (#447 )
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 20.4.8 to 20.6.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
* feat: refactored the toast responses (#442 )
* feat: refactored the toast responses
* fix: fixed the map return
* feat: added a recent transaction center
* tidy: removed logs
* fix: fixed autolend
* feat: added global lending on first account funding
* fix: added endOfLine setting
* feat: added eslint warnings for lineEnds
* fix: made the vault message generic
* feat: added transaction loader screen to modals
* 🐛 fix: borrow not updating vault values (#436 )
* ⚡ Merge FundAccount and AccountFund (#431 )
* ⚡ Merge FundAccount and AccountFund
* fix build
* 🐛 fundAccount not showing, small typos/text corrections
* feat: added transaction loader screen to modals
* fix: updated AccountFundContent
* fix: fixed the animated-loader issues
* tidy: refactor
* fix: set pendingTransaction inside the broadcast slice
* fix: fixed the pipeline
* fix: setting showTxLoader
* fix: fixed the pipeline
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 12:51:44 +02:00
Linkie Link
f61dd3e4e7
fix: added isCreate flag to the vaultModal ( #450 )
2023-09-11 11:34:30 +02:00
Linkie Link
4cc0fddada
MP-3357: created the Intro component ( #427 )
2023-09-05 19:42:53 +02:00
Bob van der Helm
46d4113d98
Scope Funding to actions, enable fund for USDC (and others) ( #426 )
...
* fix vault test and vaulttable pos value
* fix vault test and vaulttable pos value updated
* Scope lend for deposit to action only
* fix build error
* fix build error
2023-09-05 12:45:55 +02:00
Linkie Link
19e06aa7d4
Fix auto lend setting ( #425 )
...
* fix: fixed the auto-lend setting impact
* fix: fixed trade layout and autoLend
2023-09-05 12:38:20 +02:00
Linkie Link
f1ee4bd7f3
Mp 3330 compare accounts via use updated account for vaults ( #415 )
...
* feat: added simulateTrade
* MP-3330: added vault positions to the useUpdated Account
* tidy: format
* tidy: refactor
* Health indicator change preview (#410 )
* fix: adjusted the AccountDetail width
* feat: added health indicator updates
* Update src/components/Account/AccountDetails.tsx
Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
* fix: created a function for the back- and foregroundColors
* fix: updated tailwind conf
* fix: fixed the useHealthColorAndLabel function
---------
Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
* fix: added updatedAccount to AccountSummary (#414 )
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
* fix: added a new way of calulating values to vaults
* fix: refactored the displayCurrency
* fix: fixed the subtitles, to not nest <p> tags
* MP-3330: added comparison to the vault mechanics
* fix: fixed tests
* fix: updated the borrow slider percentage on vaults
* fix: addressed change request
* update displayValue stuff
* fixed wrong display conversions
* fix: fixed the display price and renamed getDepositsAndLendsAfterCoinSpent
* fix test and update DisplayCurrency
* tidy: refactor
* tidy: rename method
---------
Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-09-05 09:25:57 +02:00
Bob van der Helm
d87fbd2a15
Mp 3270 deposit cap messages ( #416 )
...
* Add Deposit cap for AssetSelector
* Add DepositCap component for Trade
* DepositCap to Vault and Fund
* DepositCap to Vault and Fund
* Small bugixes
* formatting fixes
* formatting fixes
* formatting fixes
* formatting fixes
* run format
2023-09-04 09:46:13 +02:00
Bob van der Helm
e76a5dfc96
[task] add LTV to vault tables ( #381 )
2023-08-21 14:02:32 +03:00
Yusuf Seyrek
9d31122636
feat(transaction broadcasting layer): added on the fly fee estimation functionality to all of the transactions ( #352 )
2023-08-09 11:09:42 +03:00
Linkie Link
1a55d8bd39
Mp 3104 delete account ( #336 )
...
* MP-3104: added deleteAccount and alerts for vaults and debts
* MP-3104: added Borrow and Farm links to the AlertDialog
* MP-3104: finished delete flow
* fix: adjusted according to feedback
* refactor: tidy
2023-08-03 11:45:32 +02:00
Linkie Link
fec03d030f
MP-3128: added conditional ActionButtons ( #324 )
...
* MP-3128: added conditional ActionButtons
* feat: added Create Account button
* fix: simplified the ActionsButton according to feedback
* fix: moved the onClick handler to the card of an account summary instead of the title
* fix: fixed the health and balance display bug
* fix: remove Leverage static number
* fix: small style fix
2023-07-28 11:25:09 +02:00
Yusuf Seyrek
d4a2f19db2
feat: replaced all possible BN(0) & BN(1) occurrences with constants ( #320 )
2023-07-26 12:19:19 +03:00
Linkie Link
ac0658224e
Mp 2881 finalize the borrow flow table ( #308 )
...
* MP-2881: fixed the buttons and adjusted the marketDetails
* MP-2881: finished the borrow to wallet functionatlity
* fix: renamed withdraw to borrowToWallet
* fix: moved the useMemo return into functions
* tidy: refactor
* tidy: refactor
2023-07-19 12:10:23 +02:00
Linkie Link
df6d7a3ba2
overall cleanup and refactoring + SettingsModal ( #286 )
2023-07-11 21:01:14 +02: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
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
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
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
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
Yusuf Seyrek
878434dfec
feat: lending page and tables ( #248 )
2023-06-15 15:34:12 +03:00