Commit Graph

268 Commits

Author SHA1 Message Date
saml33 29eb59e332 add loan fee to borrow modal 2022-11-17 14:18:22 +11:00
saml33 c9b94f4e55 fix modals 2022-11-17 13:18:50 +11:00
saml33 903884b732 add sol balance hook 2022-11-17 12:53:33 +11:00
tjs 57f009aa2e add delegate modal 2022-11-16 11:59:34 -05:00
saml33 41e1c16fea add repay borrow modal 2022-11-16 23:14:53 +11:00
tjs 59b5570e35 fix new subaccount 2022-11-15 23:12:57 -05:00
saml33 82e02b2570 fix account list modal height 2022-11-14 14:52:32 +11:00
saml33 0abd454cf6 fix deposit restriction for sol wallet transactions 2022-11-14 13:10:21 +11:00
saml33 fca7d81dda merge main 2022-11-14 09:57:19 +11:00
tylersssss 33695f047a
Merge pull request #26 from blockworks-foundation/trade-health-impact
add health impact to trade form
2022-11-13 17:26:09 -05:00
tylersssss 451eef3543
Merge pull request #25 from blockworks-foundation/feature/fix-mango-accounts-after-reconnection
mango accounts reaload on wallet change
2022-11-13 17:24:59 -05:00
saml33 782168283d more background 2022-11-11 22:24:24 +11:00
saml33 49667afdc1 add warning when not enough sol to create account 2022-11-10 16:22:01 +11:00
saml33 c1254c9186 add health impact to trade form 2022-11-04 18:55:21 +00:00
Adrian Brzeziński 8613fa5bb4 mango accounts reaload on wallet change 2022-11-03 16:59:21 +00:00
saml33 7ba9aa6665 nft list styling fixes 2022-11-02 16:16:25 +00:00
saml33 f3dc836b0a redirect to account page on new account 2022-11-02 12:58:40 +04:00
tjs 7f1461123d show perp open orders 2022-10-31 18:26:17 +00:00
tjs 7d15e8e798 better is number check 2022-10-31 16:39:43 +00:00
saml33 5a572129d0 move create account link button 2022-10-30 23:02:59 +11:00
tjs 1c4eddb48e more perp order stuff 2022-10-29 21:46:56 -04:00
tjs 7c34ed0bcb use last slot when updating mango account 2022-10-29 21:17:14 -04:00
tjs 818bbc0252 fix zustand nextjs 13 issues 2022-10-28 17:46:38 -04:00
tjs 9269b4e18f fix yarn.lock, undo next upgrade 2022-10-28 15:24:05 -04:00
tylersssss 8ce855dc65
Merge branch 'main' into token-details 2022-10-28 12:46:57 -04:00
saml33 147121363c fix modal rounded corners 2022-10-28 21:01:49 +11:00
tjs a118d18564 use legacy next/image 2022-10-26 16:01:31 -04:00
saml33 598cddaa83 back arrow mobile 2022-10-25 22:09:36 +11:00
saml33 a0a020f7aa mango account list modal errors 2022-10-25 20:53:50 +11:00
saml33 08505b09bc add back arrow 2022-10-25 20:42:51 +11:00
tylersssss bb3c9b2b54
Merge branch 'main' into mango-accounts-modal 2022-10-24 17:34:13 -04:00
tjs 7ad023653f fix bug with modals 2022-10-07 18:27:36 -04:00
tjs 7d975b6407 fix deposit input issue 2022-10-07 16:02:11 -04:00
microwavedcola1 72e4808141 match mango-v4 dev branch
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-07 14:27:42 +02:00
saml33 40bf21992f add mango accounts list modal 2022-10-07 22:47:15 +11:00
tjshipe 0b3594f036
Merge branch 'main' into activity-feed 2022-10-06 17:54:31 -04:00
saml33 1fbd948e30 add missing font-mono classes 2022-10-06 10:14:11 +11:00
saml33 706de963af add max amount button component 2022-10-06 10:03:10 +11:00
saml33 1cf389a2c3 add value to borrow/withdraw modal 2022-10-05 22:01:03 +11:00
saml33 cff49ded6f merge main 2022-09-30 22:55:28 +10:00
saml33 41b7af6cc2 add advanced filters 2022-09-30 13:22:55 +10:00
tjs a0e51c3a96 ignore test wallet 2022-09-25 22:03:03 -04:00
saml33 e39cb5ff6c add orderbook loader 2022-09-24 22:07:10 +10:00
saml33 45893804e6 merge main 2022-09-24 20:20:49 +10:00
saml33 90d78b76da add profile setup to onboarding 2022-09-23 23:37:44 +10:00
saml33 f5d83a4d9a add edit profile form component 2022-09-23 20:57:19 +10:00
saml33 8986660b55 merge main 2022-09-23 14:08:56 +10:00
saml33 9750b82e9c save hasSeen tour to db 2022-09-23 14:00:42 +10:00
tjs 661fed8ce9 refactor useTokenMax to fix regressions 2022-09-22 17:35:07 -04:00
saml33 f5abb4d381 add tours and copy 2022-09-22 14:25:24 +10:00
saml33 169944c239 add edit profile 2022-09-21 15:31:54 +10:00
saml33 17b52d242d change copy on swap page to be swap oriented and rename files 2022-09-15 11:06:00 +10:00
tjshipe 83dc98ad25
Merge branch 'main' into onboarding-tour 2022-09-14 10:11:13 -04:00
tjs 007c3c2fa2 Merge branch 'serum' into main 2022-09-14 02:25:15 -04:00
saml33 0ccaf19e40 leave 0.05 sol in wallet when max deposit sol 2022-09-14 11:05:42 +10:00
saml33 8cdddf4288 re-add deposit size buttons to fund account 2022-09-13 21:58:00 +10:00
saml33 bd6a0e8ced use thin scroll on fund account 2022-09-13 16:21:19 +10:00
tjs c2f1f02829 use alias imports 2022-09-12 12:04:20 -04:00
saml33 e066e1d3d2 use thin scroll on fund account 2022-09-12 10:22:37 +10:00
saml33 8e3cca0ba9 add icons to onboarding buttons 2022-09-11 22:05:21 +10:00
saml33 89704f18d5 add icons to buttons 2022-09-08 10:47:59 +10:00
saml33 c9e06fd00c add more icons to background 2022-09-08 09:31:20 +10:00
tjshipe 1bd163cca6
Merge branch 'main' into onboarding-bg 2022-09-07 14:23:35 -04:00
saml33 9e858968b2 update heroicons to latest version 2022-09-07 14:36:35 +10:00
saml33 35f5eba3c2 add amount buttons to onboarding fund account 2022-09-07 13:47:36 +10:00
saml33 e938b002d1 add close 2022-09-07 10:18:49 +10:00
saml33 6bafbf3b70 add logo 2022-09-07 07:45:57 +10:00
saml33 1e28e1d498 align heading font size 2022-09-06 23:38:43 +10:00
saml33 31f0b48b1d add particle background 2022-09-06 23:15:54 +10:00
tjs 12277bfa13 check that input amount is a number 2022-09-03 18:38:49 -04:00
tjs 712e7d7176 oops 2022-09-03 18:25:51 -04:00
tjs 51e1ba37a0 better mango account reloading; use latest client 2022-09-02 19:51:35 -04:00
tjs 6c714816a2 use Decimal class; use NumberFormat for input components 2022-09-02 14:37:18 -04:00
tjs 48670290e8 fix account value updating 2022-09-01 13:33:29 -04:00
tjs 43b1febc1a update client and handle undefined health values 2022-08-31 16:17:17 -04:00
tjs 9bc1b423af show all banks when funding account 2022-08-30 11:27:17 -04:00
saml33 7435bc4ad2 align onboarding skip buttons 2022-08-27 20:09:57 +10:00
saml33 93a3990625 edit table comlumn labels 2022-08-27 19:49:32 +10:00
tjs cb3cc9b169 fix vault balance in withdraw modal 2022-08-27 01:28:52 -04:00
tjs f4d155af10 add useMangoAccount hook to fix updating account page 2022-08-26 15:15:50 -04:00
saml33 1d41d4ef7f add init health zero errors 2022-08-26 13:46:23 +10:00
tjs fdb6ae16ea Reload mango account on interval 2022-08-25 23:31:39 -04:00
saml33 b70394263c move error messages into buttons 2022-08-26 10:27:05 +10:00
tjs 8f39fb2272 smoother onboarding 2022-08-25 17:30:32 -04:00
tjs 8109dd2f9c allow skipping creating an account
leverage slider will work after disconnecting
2022-08-25 14:22:54 -04:00
saml33 eeda961a9f reset borrow/withdraw amount on token change 2022-08-25 20:35:56 +10:00
saml33 f412b8bee8 reset deposit amount on token change 2022-08-25 20:32:06 +10:00
saml33 969d747a8d set button group to 100 when hitting max 2022-08-25 20:29:49 +10:00
tjs 624997dcaf reload new selected acct after closing an acct 2022-08-24 23:28:01 -04:00
saml33 643e3287ed add missing $ sign 2022-08-25 12:59:38 +10:00
saml33 8950504e56 show error when deposit amount > wallet balance 2022-08-25 12:58:31 +10:00
tjs c6237e587f add temp deposit limit warning 2022-08-24 22:47:02 -04:00
saml33 1babb59be0 add more info to deposit modal 2022-08-25 10:53:31 +10:00
saml33 49957c70e3 change withdraw amount button text 2022-08-24 22:39:15 +10:00
saml33 d56dc3a06a show error when withdraw amount > account balance 2022-08-24 22:29:20 +10:00
tjs c48b9f8a95 fix withdraw modal max amount to limit to vault amount 2022-08-23 20:44:43 -04:00
tjs 7506ee34fe show maint health and init health everywhere 2022-08-23 15:32:51 -04:00
microwavedcola1 e1c814997a Fix
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 15:26:47 +02:00
microwavedcola1 28f652a163
match client changes on mc/ts-client-fixes (#5)
* match client changes on mc/ts-client-fixes

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* fix commit hash for dependency

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 13:45:56 +02:00
tjs 55912dec03 if max withdraw amount is negative use 0 2022-08-22 23:27:06 -04:00
tjs 5bde89ee81 sort deposit withdraw tokens by usdc value 2022-08-22 22:23:26 -04:00
tjs d63bd38542 improvements to setup modal flow 2022-08-22 13:27:03 -04:00
tjs c0341773e7 fix onboarding flow 2022-08-20 22:57:07 -04:00
tjs 501510eb43 fix max numbers shown in modals and swap form 2022-08-20 20:09:36 -04:00
tjs bea7dee84c move constants out of mangoStore.ts 2022-08-20 14:17:57 -04:00
tjs 5feb27c408 fix health after swap 2022-08-20 02:25:50 -04:00
tjs 605f49e702 fix wallet connect and disconnect 2022-08-20 02:06:00 -04:00
tjs 1257c73662 fix connect account; add feature to remember last selected 2022-08-19 17:17:30 -04:00
Christian Kamm a3c37ef008 Fix HealthImpact display, use bank.uiPrice where needed 2022-08-19 16:56:22 +02:00
tjs c7f071641d fix more issues with wallet connect and account loading 2022-08-18 18:26:03 -04:00
tjs 9badb0dbd9 ensure client is updated with anchorprovider that has the wallet after connecting 2022-08-18 17:38:48 -04:00
tjs ae324a6da5 update to latest client and program version 2022-08-18 16:50:34 -04:00
saml33 a365bbbc04 disable review trade when amount in is 0 2022-08-18 16:14:15 +10:00
saml33 3e48d7cbc0 add max borrow amount to borrow modal list 2022-08-18 15:58:44 +10:00
tjs acc2a2cfdd switch amounts after flipping the token 2022-08-18 00:35:35 -04:00
saml33 0f7a1b2ad4 update slider amount prop type 2022-08-18 14:25:30 +10:00
saml33 a74aaf4405 set swap input amount to 0 on token switch 2022-08-18 13:14:44 +10:00
tjs 8edd563239 use 0 when max amount is negative 2022-08-17 22:35:08 -04:00
saml33 f64265a316 add health impact to deposit modal 2022-08-18 09:55:46 +10:00
saml33 906640c732 add health impact component 2022-08-17 22:09:40 +10:00
saml33 8a250f7f28 sort withdraw token list by account balance 2022-08-17 16:10:38 +10:00
saml33 a9ac47f153 disallow close setup modal 2022-08-17 14:49:20 +10:00
tjs 08b6da5d2f remove tailwind deprecated transform class
and remove default-transitions that weren't paired with a class change
2022-08-16 18:58:03 -04:00
saml33 37135e35db load mango accounts 2022-08-16 22:50:08 +10:00
saml33 4146efac94 fix mango account load 2022-08-16 21:23:43 +10:00
tjs 72191f62ef hide profile page from onboarding until its farther along 2022-08-16 01:10:17 -04:00
saml33 57120c17e0 portfolio responsive 2022-08-16 12:02:56 +10:00
tjshipe 8e3259b118
Merge pull request #4 from blockworks-foundation/fix-onboarding
fix account loading and onboarding
2022-08-15 19:10:35 -04:00
tjs 6ead35fd8a wire up borrow modal; use maint health 2022-08-15 18:18:23 -04:00
saml33 03c0436877 merge main 2022-08-12 22:21:23 +10:00
saml33 b7a47f60fe add available balance to withdraw modal 2022-08-12 16:09:52 +10:00
saml33 4d49012eba add wallet balance to deposit list 2022-08-12 15:48:59 +10:00
saml33 94aa653817 fix account loading and onboarding 2022-08-12 14:20:17 +10:00
tjs 29da9b24f6 update decimal formatting 2022-08-11 19:27:36 -07:00
tjs 6d51bbcac0 get next account num so when we create sub accounts 2022-08-10 15:32:32 -07:00
tjs 643627708b show tx id in error notifications 2022-08-10 13:42:15 -07:00
tjs 2b242d1a53 allow borrows 2022-08-09 17:14:12 -07:00
tjs 2514c4a223 fix withdraw modal buttons 2022-08-09 10:03:39 -07:00
tjs 730283d8c3 center loading icon after trade; reload account after editing 2022-08-08 14:45:56 -07:00
tjs b9cb38c556 use latest client to fix misordered health account bug 2022-08-04 01:26:09 -04:00
tjs 8ec490c042 extract jupiter logic into hook 2022-08-03 22:25:38 -04:00
saml33 2391755ea9 fix launch modal from account summary 2022-08-03 12:26:11 +10:00
saml33 96fa045564 add account summary 2022-08-03 12:15:17 +10:00
tjs d6d29e072b filter swap list by tokens in group 2022-08-02 14:09:29 -04:00
saml33 c089e715e5 fix list transition 2022-08-02 20:47:24 +10:00
saml33 f87517bf1f add nft profile modal 2022-08-02 15:32:21 +10:00
saml33 8bc91139f4 add create account modal 2022-08-02 13:43:17 +10:00
saml33 1f3b88a079 deposit from onboarding flow 2022-07-29 12:51:50 +10:00
saml33 c8330008d3 add edit account name 2022-07-28 22:13:42 +10:00
saml33 04a6722ef1 add close account modal 2022-07-28 20:51:36 +10:00