project-serum / swap-ui

React Component for Swapping on the Serum DEX
Apache License 2.0
113 stars 117 forks source link

Add sendAll hook for the anchor provider #13

Closed armaniferrante closed 3 years ago

armaniferrante commented 3 years ago

The latest updates to @project-serum/swap break up instructions into multiple transactions in the event the transaction would be over the transaction size limit. As a result, it must use Provider.sendAll. The changes here override the method so that the example app can show notifications when the method is invoked.