Commit Graph

1449 Commits

Author SHA1 Message Date
saml33 a6082b92a0 Revert "add tradingview chart attribution link (#257)"
This reverts commit be0995af25.
2022-05-13 18:01:43 -04:00
tjs b43f2e6232 Merge remote-tracking branch 'origin/revert-192-mango-notifi-integration' into main 2022-05-13 17:57:07 -04:00
tjs a3fc5b2a57 remove disable on next btn to allow user to see simulated withdraw 2022-05-02 16:27:00 -04:00
tjs f38402bd3b useMemo to reduce unnecessary recalculations 2022-05-02 14:56:01 -04:00
tjs 4958d4a40e Fix swap input form for jup pkg v22 2022-04-29 14:57:32 -04:00
tjshipe 8404e75df4
Merge pull request #262 from rjpeterson/update-translations
Translate ShareModal
2022-04-27 14:24:07 -04:00
saml33 2f91dc3705 fix remove from favorites 2022-04-27 21:15:04 +10:00
Maximilian Schneider 42c2f3a33b Revert "Mango <> Notifi integration (#192)"
This reverts commit 2f189fb3e3.
2022-04-25 12:36:42 -04: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
rjpeterson 1a4623240a yarn format 2022-04-23 19:09:08 -07:00
rjpeterson fe1d7f9e68 translate share modal to chinese 2022-04-23 19:08:18 -07:00
tjs ca795132de use avg entry price 2022-04-21 11:06:49 -04:00
tjs 91a7f8a633 enable share modal if avgEntryPrice is available 2022-04-20 17:33:44 -04:00
tjs fffe302273 round position size in share modal 2022-04-20 17:22:07 -04:00
tjs a13112e600 update share modal calculation 2022-04-20 17:19:34 -04:00
tjs 917ee7c7fc upgrade to latest jup-ag pkg 2022-04-20 17:04:54 -04:00
tjs b9440dc7fd use all wallets if none are installed 2022-04-20 15:20:10 -04:00
tjs 99a8ce7162 remove genesysgo until new auth is implemented 2022-04-20 11:29:18 -04:00
tjs c1eda608a1 fix symbol in share modal 2022-04-18 22:49:26 -04:00
tjs fca2e510ef fix share modal calculation 2022-04-18 21:23:40 -04:00
tjs ee05de86b4 remove useless market type check 2022-04-16 14:50:00 -04:00
tjshipe 6f0969a49a
Merge pull request #255 from blockworks-foundation/delete-alerts-close-account
delete active alerts when closing account
2022-04-15 18:15:38 -04:00
tjs d03db04d72 add check that url param exists 2022-04-15 17:05:37 -04:00
saml33 be0995af25
add tradingview chart attribution link (#257) 2022-04-15 14:07:38 +02:00
tjs 3e5b8e6caf fix share modal text positioning and calculation 2022-04-13 18:57:58 -04:00
tjs 73fe0f6655 Merge branch 'main' into share-positions-2 2022-04-13 15:55:54 -04:00
saml33 72f73957ea delete active alerts when closing account 2022-04-13 13:33:03 +10:00
tjs eba6d0e1ca allow setting price with slide limit orders 2022-04-12 13:23:57 -04:00
tjs ab828b8ba6 hide tx notification if no response after 90s 2022-04-12 11:27:29 -04:00
tjs 808f35ca72 notification timeout should match client timeout 2022-04-12 10:56:28 -04:00
tjs 4b08912b47 show position details on trade page when viewing mngo accts 2022-04-09 20:13:12 -04:00
tjshipe a0ec154f95
Merge pull request #247 from blockworks-foundation/filter-and-account-buttons
fix button positions on mobile
2022-04-09 13:15:00 -04:00
tjshipe 52c49aac66
Merge pull request #249 from blockworks-foundation/format-price
format price on trade type switch
2022-04-09 13:14:31 -04:00
tjshipe 27ba48c0ae
Merge pull request #250 from blockworks-foundation/fix-ref-warning
fix forwardref warning
2022-04-09 13:13:32 -04:00
tjs 8e2ffe53ed lower threshold for tps warning bar 2022-04-07 15:04:28 -04:00
tjs eb2cfff9b4 use latest mango client; longer max timeout 2022-04-06 15:14:30 -04:00
Luc Succes 020f637751 Remove border 2022-04-06 08:28:01 -06:00
Luc Succes f7801941a5 Merges main 2022-04-06 07:24:51 -06:00
saml33 924fb0d509 fix forwardref warning 2022-04-06 16:18:02 +12:00
saml33 5faea97d9b format price on trade type switch 2022-04-06 15:47:35 +12:00
saml33 c33b1dde15 fix button positions on mobile 2022-04-06 14:25:31 +12:00
tjs d5c2c1e2ba dont check postonlyslide when market ordering 2022-04-05 17:10:45 -04:00
tjs d9b162bd5d Fix orderbook spread decimals 2022-04-05 13:25:09 -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 aaa5491896 make sure token info is loaded on swap page 2022-04-05 02:20:17 -04:00
tjs b79f156ece pass in wallet to store actions when needed 2022-04-04 16:28:32 -04:00
tjs 811c56b0af fixes for swap page 2022-04-04 11:48:35 -04:00
tjs 9f0a4a04ea reduce clutter on markets page 2022-04-03 23:54:54 -04:00
tjs ca7bd49ef0 show tps notification when it goes below 1800 2022-04-03 22:50:59 -04:00
tjs 9558917767 dont throw price error when doing post and slide order 2022-04-03 22:47:14 -04:00