OpenBook V2 Licensing and GPL usage
masterThe majority of the repository is MIT-licensed. However, some components required for compiling the Solana program are under GPL.
Using as a dependency:
If you use the openbook-v2 crate with the client or cpi features, you are only using the MIT-licensed parts. This allows you to build closed-source tools and integrations, including other Solana programs that call into OpenBook.
GPL Restriction:
Deriving a new Solana program with similar functionality to OpenBook from this codebase requires that changes and improvements remain publicly available under the GPL. All GPL code is gated behind the enable-gpl feature.