Commit Graph

252 Commits

Author SHA1 Message Date
saml33 01442822b0 merge main 2022-09-20 10:22:17 +10:00
tjs 2c3c5dddbb better open order refreshing 2022-09-06 15:23:43 -04:00
tjs 99a6789229 switch to render host for all markets api 2022-08-23 20:50:16 -04:00
saml33 d9df3f034b
save profile images to our db (#387)
* save profile images to our db

* add profile image to edit other profile details
2022-08-18 08:11:28 +02:00
saml33 83b4a01247
speed up nft loading (#386) 2022-08-02 13:08:12 +02:00
Riordan Panayides 20f54be2ad Merge branch 'main' into pan/prod-to-main 2022-07-17 16:41:08 +01:00
Riordan Panayides 127c9c657a Filter inactive markets from markets api response 2022-07-12 14:03:24 +01:00
saml33 4e5a79cbc4
profiles (#341)
* add profile features

* fix formatting

* fix loading when not connected

* use profile name as url param

* fix responsive layout
2022-07-08 12:17:56 +02:00
saml33 8107c61bef handle loading profile pic 2022-06-28 15:51:16 +10:00
tjs 7e0419573a use confirmed blockhashCommitment 2022-06-16 16:23:09 -04:00
tjs bc8ab9521d use latest mango client 2022-06-16 16:03:10 -04:00
Riordan Panayides afb90bfed5 Upgrade mango-client, changes for testnet 2022-06-11 14:58:39 +01:00
saml33 cf31cebdd5
relative long/short chart (#299)
* relative long/short chart

* eth icon bug

* simplify language and chart styling

* fix sol icon bug

* sort segments and include unsettled positions

* make chart angle relative to value

* sol, msol color

* simplify math

* change language

* re-work account overview layout

* increase tabs margin-b

* correctly net unsettled perps and add dust treshold

* layout

* xl breakpoint

* add spot balances to store

* add missing file

* update long / short exposure values and charts

Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-06-08 17:01:15 +03:00
tjs ab30010284 increase tx timeout to accomodate blockheight timeouts in client 2022-06-05 21:28:45 -04:00
saml33 341d4aa99a change chart colors, add loading 2022-05-18 12:09:52 +10:00
saml33 cf0fa5fbd0 Merge branch 'mobile-tweaks' of github.com:blockworks-foundation/mango-ui-v3 into mobile-tweaks 2022-05-18 10:09:36 +10:00
saml33 2fd67f8cb6 mobile market card styling 2022-05-18 10:08:48 +10:00
tjshipe f31425582e
Merge branch 'main' into mobile-tweaks 2022-05-17 13:37:07 -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 af4f9206c5 remove commented code 2022-05-17 07:59:12 +10:00
saml33 ff7ccca78e implement feedback 2022-05-16 11:24:48 +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 808f35ca72 notification timeout should match client timeout 2022-04-12 10:56:28 -04:00
tjs 94fbca60ee notification timeout should match client timeout 2022-04-12 10:53:50 -04:00
tjs e09e165a54 check status on market stats api 2022-04-08 16:49:36 -04:00
tjs de3943c723 handle error response from markets info api 2022-04-08 11:57:44 -04:00
tjs eb2cfff9b4 use latest mango client; longer max timeout 2022-04-06 15:14:30 -04:00
tjs 0f6944614d add try catch around market info api call 2022-04-05 16:39:26 -04:00
tjs b79f156ece pass in wallet to store actions when needed 2022-04-04 16:28:32 -04:00
tjs 813cd3c1c9 use finalized blockhashes; remove saving old blockhashes 2022-04-03 17:04:15 -04:00
tjs 7368325bdc update trade history api 2022-04-01 21:35:38 -04:00
Kieran Gillen 764ea28cb4 Adds more null checking 2022-03-30 19:10:15 +02:00
Kieran Gillen b9b4541ed6 Adds more null checks 2022-03-30 14:42:33 +02:00
Kieran Gillen 39e4a6def5 Adds more null checks 2022-03-30 13:08:05 +02:00
saml33 36bd258c15 filter trade history 2022-03-29 10:43:42 +11:00
Kieran Gillen 17c6dd784c Refactors wallet in store 2022-03-23 13:18:34 +01:00
Kieran Gillen cd8549b1dc Reverts revert wallet adapter 2022-03-22 10:18:58 +01:00
tjs 6ef483f306 fix trade history loading 2022-03-20 22:28:43 -04:00
tjshipe e841d7e0b9
Merge pull request #197 from blockworks-foundation/ts/performance-refactor
Ts/performance refactor
2022-03-20 21:53:30 -04:00
tjshipe d3d8ab85f4
Merge pull request #190 from blockworks-foundation/show-referral-balance-history
Show referral fees history and total
2022-03-20 20:27:59 -04:00
tjs 32fc5052e9 store order lines in mango store and show preferences in local storage 2022-03-20 18:50:05 -04:00
tjs 4c0eb2114e refactor trade history to use the mango store
reduces rerenders
update usePerpPosition with tradeHistory
2022-03-20 04:06:30 -04:00
saml33 e9550fddda
Markets Page (#182)
* update api endpoint

* update to new api
2022-03-19 17:57:54 +01:00
Luc Succes 37b2cc0c02 Merges main 2022-03-18 14:43:14 -04:00
tjs 9ce177ca3d Revert solana wallet adapter 2022-03-18 14:41:23 -04:00
Luc Succes c15969482d Add DateDisplay component 2022-03-18 14:41:19 -04:00