- {/* First code (background) */}
+ {/* Second code (background) - shown when slider is on left */}
- {/* Second code (foreground) with clip-path */}
+ {/* First code (foreground) with clip-path - revealed when slider moves right */}
@@ -256,9 +295,9 @@ export const CodeCompare = ({
className="absolute top-0 bottom-0"
style={{
right: "50%",
- width: "80px",
+ width: "60px",
background:
- "linear-gradient(to left, rgba(0, 102, 255, 0.15) 0%, transparent 100%)",
+ "linear-gradient(to left, rgba(0, 102, 255, 0.08) 0%, transparent 100%)",
}}
/>
diff --git a/snippets/light-token-configure-rent.mdx b/snippets/light-token-configure-rent.mdx
index 5b4f701..cedea8b 100644
--- a/snippets/light-token-configure-rent.mdx
+++ b/snippets/light-token-configure-rent.mdx
@@ -1,7 +1,7 @@
```rust
-use light_token_sdk::token::CompressibleParamsInfos;
+use light_token_sdk::token::CompressibleParamsCpi;
-let compressible_params = CompressibleParamsInfos::new(
+let compressible = CompressibleParamsCpi::new_ata(
compressible_config.clone(),
rent_sponsor.clone(),
system_program.clone(),
@@ -22,38 +22,29 @@ let compressible_params = CompressibleParamsInfos::new(
|
-
-
- Compressible Config
-
-
+
+ Compressible Config
+
|
Protocol PDA that stores account rent config. |
|
-
-
- Rent Sponsor
-
-
- |
-
- - light token program PDA that fronts rent exemption at creation.
- - Claims rent when account compresses.
+
+ Rent Sponsor
+
|
+ Light token program PDA that pays rent exemption at creation and claims rent when account compresses. |
|
-
-
- System Program
-
-
+
+ System Program
+
|
Solana System Program to create the on-chain account. |