Commit Graph

158 Commits

Author SHA1 Message Date
Riordan Panayides 89f5ff453f Add helper for 4 fraction digit percentages 2022-09-25 23:19:01 +02:00
theDefiBat c3a2f548c6
Disable Delegate deposits on UI for Investin's Mango based Market Making Funds (#405)
* added isInvestinDelagate to disable deposits

* run prettier
2022-08-25 19:26:21 +02:00
saml33 83b4a01247
speed up nft loading (#386) 2022-08-02 13:08:12 +02:00
Riordan Panayides dd1c0fab1d Merge changes from production (#364) 2022-07-17 20:04:50 +02:00
Riordan Panayides 20f54be2ad Merge branch 'main' into pan/prod-to-main 2022-07-17 16:41:08 +01:00
Riordan Panayides 9906501e94 Hardcode required info for delisted markets 2022-07-13 00:28:49 +01:00
saml33 2942b7ad7d allow withdraw from accounts other than selected account 2022-06-22 15:42:20 +10:00
Maximilian Schneider f2e707ed85 list GMT 2022-06-02 15:57:10 -04:00
tjshipe f31425582e
Merge branch 'main' into mobile-tweaks 2022-05-17 13:37:07 -04:00
tjs 252f515c1f fix import 2022-05-17 13:22:35 -04:00
tjs f2967dfc6b move fns from @nfteyez/sol-rayz into app 2022-05-17 13:16:26 -04:00
saml33 87a9abe9d3 fix conflicts 2022-05-17 22:11:04 +10:00
saml33 d75e716fc1 add price charts to markets page 2022-05-17 22:03:20 +10:00
saml33 050790d284 fix conflicts 2022-05-16 08:08:51 +10:00
saml33 2aeff1032e support nfts as profile pics 2022-05-11 13:29:35 +10:00
joshgolden-dev 2f189fb3e3
Mango <> Notifi integration (#192)
* Use notifi SDK and make UI edits for notifi flow

* Upgrade Notifi SDK

The new SDK includes a different usage pattern for Alerts.

Handle wallet signature rejection case

Refactor sollet adapter to use @solana/wallet-adapter-wallets

Fixed undefined signature

Use groupName to separate account notifications

Mango allows a single user to have multiple accounts, which all manage alerts separately.

We'll log in to Notifi with the program ID and the wallet ID, and then filter
alerts on the client-side with groupName on the alert

Bump to SDK 0.6.1

Save notifi alert id to mango db

require login before deleting alert

Update SDK

The SDK exposes a new option for filterFrequency.

One shot alerts will be marked inside FilterOptions with a
`delayProcessingUntil` field. When the client recognizes these, it
should feel comfortable deleting them, since they should have triggered
already.

Clients can use the `isAlertObsolete` utility function to identify
these.

Clean up notifi alerts when out of sync

Add phone number note

* Ignore signMessage type warning

* Use useWallet hook

* Clean up

* Add telegram support

* Support international phone number

Co-authored-by: juni-notifi <hyungjoon.kim@notifi.network>
2022-04-25 12:16:42 -04:00
tjs e9b0e1f935 check for undefined token index on withdraw 2022-04-05 12:36:55 -04:00
tjs 819c47051e fix deposit func type to support deposits when mango acct doesnt exist 2022-04-05 10:56:46 -04:00
tjs 4250d403d0 handle deposit when referrer doesnt exist 2022-04-04 18:26:08 -04:00
Kieran Gillen 39e4a6def5 Adds more null checks 2022-03-30 13:08:05 +02:00
Kieran Gillen 60cb08a5a5 Adds more null checks 2022-03-29 15:02:29 +02:00
Kieran Gillen a6aaf551dd Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kieran/strict-nullcheck 2022-03-29 12:02:37 +02:00
Kieran Gillen 8c276acfe2 Adds more null checks 2022-03-28 17:13:54 +02:00
Kieran Gillen 2deb4ec75f Adds more null checks 2022-03-28 16:18:35 +02:00
Kieran Gillen 140c26542a Updates TS version 2022-03-28 16:17:54 +02:00
Kieran Gillen 1a40a98af0 Removes calls to Wallet and Connected through MangoStore hook 2022-03-23 11:42:04 +01:00
Kieran Gillen cd8549b1dc Reverts revert wallet adapter 2022-03-22 10:18:58 +01:00
tjs c79e0869b5 use bignumber abs for perp position 2022-03-21 08:52:41 -04:00
tjs fa7edcc119 switch away from toLocaleString
toLocaleString is quite slow
2022-03-20 21:30:12 -04:00
tjs 2fd1e8676c more type checks 2022-03-20 04:07:03 -04:00
tjs 9ce177ca3d Revert solana wallet adapter 2022-03-18 14:41:23 -04:00
Kieran Gillen 23b1feb941 Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into add-wallet-adapter 2022-03-17 13:06:28 +01:00
saml33 a25570c384 misc number formatting 2022-03-16 01:12:46 +11:00
Kieran Gillen d46376649c Updates WalletAdapter type 2022-03-15 14:52:28 +01:00
enoughpower 819ce57163
Merge branch 'main' into huobi-wallet 2022-03-07 15:49:45 +08:00
Mike Wojo da38974dac Add support for Glow Wallet 2022-03-04 15:52:37 +13:00
dd df2b2eb9ba fix display of taker fee and maker fee decimals 2022-02-28 12:51:10 -05:00
dd 5d7599ef97 optimizations; Add more commas to large numbers; NO MERGE STILL UNFINISHED 2022-02-28 12:51:03 -05:00
dengcheng cbf062ba7a add huobi-wallet support 2022-02-28 14:05:52 +08:00
tjs f54af5c787 add ref links 2022-02-14 12:17:11 -05:00
tjs 55b7907bfd wip 2022-02-14 12:15:46 -05:00
tjshipe 4444ad996b
Merge pull request #146 from vsakos/main
Solflare SDK with the unified adapter
2022-02-10 13:12:03 -05:00
tjs 366617dc5c fix type errors 2022-02-09 11:28:57 -05:00
tjshipe ff92514483
Merge branch 'main' into with_24h_change 2022-02-06 19:44:51 -05:00
Varga-Somogyi Ákos 128d42272b Solflare unified adapter 2022-02-03 15:30:44 +01:00
Tyler Shipe 351bc5d11d ensure mango account is loaded before connecting wallet 2022-01-26 13:37:02 -05:00
Brandon Bonipart 32fe8392e7 replaces daily change in MarketDetails with rolling 24hr change. 2022-01-24 07:46:06 -05:00
Tyler Shipe b7bf1cdda5 yarn format 2022-01-15 15:25:14 -06:00
Riordan Panayides c02f5e1f1f Use createMangoAccountAndDeposit 2022-01-15 14:56:10 -06:00
ImpossiblePairs 5de849eec4
Add LUNA Perp Contract Precision
Updated perpContractPrecision for LUNA perp
2022-01-04 13:34:10 -08:00