diff --git a/light-token/defi/programs.mdx b/light-token/defi/programs.mdx index acfe993..3da147e 100644 --- a/light-token/defi/programs.mdx +++ b/light-token/defi/programs.mdx @@ -348,8 +348,8 @@ pub fn process_initialize_pool(ctx: Context, params: InitializeP ## Client SDK -To make it easy for clients to integrate with your program, ship an SDK crate -implementing the `LightProgramInterface` trait. +To make it easy for clients to integrate with your program, implement the +`LightProgramInterface` trait in your program's SDK crate. For a detailed example of how clients use this trait, check out the [Router Integration](./routers.mdx) page. @@ -505,22 +505,22 @@ migration support. ## FAQ - When -you create an account, under the hood, the SDK auto-provides a proof that -verifies that the account does not yet exist in the compressed address space. -The SVM takes care of uniqueness in the onchain space. This way both account -spaces are covered, preventing re-init attacks. + When creating an +account for the first time, the SDK provides a proof that the account doesn't +exist in the cold address space. The SVM already verifies this for the onchain +space. Both address spaces are checked before creation, preventing re-init +attacks, even if the account is currently cold. Miners automatically compress when virtual rent is below threshold (eg 24h without write bump). -No. Any write bumps the virtual rent balance. Active pools never compress. +No. Any write bumps the virtual rent balance. Active accounts never compress. - -No. Helius and Triton run the Interface RPC endpoints, self-hosting the Photon indexer is optional. But Helius Labs maintains the Photon indexer implementation. - + No. Helius and Triton run +the Interface RPC endpoints, self-hosting the Photon indexer is optional. Helius +Labs maintains the open-source Photon indexer implementation. Hot markets work all the same as long as Solana is up. Cold accounts cannot be loaded into hot state until your indexer or RPC provider recovers.