Commit Graph

1440 Commits

Author SHA1 Message Date
saml33 2f91dc3705 fix remove from favorites 2022-04-27 21:15:04 +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 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
tjs bc3f638026 improve notification animations 2022-04-03 22:46:38 -04:00
tjs 2de08088e5 Reduce confirmation notification timeout interval 2022-04-03 22:05:58 -04:00
tjs f92332c8b8 update post and slide text 2022-04-03 18:39:53 -04:00
tjs f8fa59de1d add hover interaction to markets page 2022-04-03 18:39:24 -04:00
tjs 19da795035 remove new badge from topbar 2022-04-03 12:16:11 -04:00
tjshipe c4984524a7
Merge pull request #244 from rjpeterson/update-translations
Update translations
2022-04-02 19:46:13 -04:00
tjshipe a9bfcfc750
Merge pull request #245 from blockworks-foundation/kierna/hide-post-slide
Shows post and slide only on limit
2022-04-02 19:45:41 -04:00
tjs df2ed148b8 maintain chart resolution 2022-04-02 19:32:51 -04:00
Kieran Gillen 991e3930ca Updates show quote img logic 2022-04-02 20:31:03 +02:00