Skip to content

Commit 9023c77

Browse files
align tables
1 parent a478df0 commit 9023c77

4 files changed

Lines changed: 30 additions & 29 deletions

File tree

blog/light-token.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ That's why we built light-token, which is like SPL token just stored more effici
2727

2828
#### Mints and Tokens without Rent-Exemption
2929

30-
| Creation Cost | SPL | Light |
31-
| :---------------- | :------------------ | :------------------- |
32-
| **Mint Account** | ~1,500,000 lamports | **15,000** lamports |
33-
| **Token Account** | ~2,000,000 lamports | ~**11,000** lamports |
30+
| Creation Cost | Light | SPL |
31+
| :---------------- | :------------------- | :------------------ |
32+
| **Mint Account** | **15,000** lamports | ~1,500,000 lamports |
33+
| **Token Account** | ~**11,000** lamports | ~2,000,000 lamports |
3434

3535
#### Interoperability with Existing SPL Tokens
3636

learn/light-token-standard.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Light-mints **uniquely represent a token on Solana and store its global metadata
6565
2. Tokens created from light-mints are **light-tokens**.
6666
3. Token metadata (name, symbol, URI) is stored as an extension in the struct.
6767

68-
| Creation Cost | SPL | Light |
68+
| Creation Cost | Light | SPL |
6969
| :--------------- | :------------------ | :------------------ |
70-
| **Mint Account** | ~1,500,000 lamports | **15,000** lamports |
70+
| **Mint Account** | **15,000** lamports | ~1,500,000 lamports |
7171

7272
<Tabs>
7373
<Tab title="Diagram">
@@ -185,13 +185,13 @@ A light-token account holds token balances like SPL Token accounts:
185185
- Each wallet can own multiple light-token accounts for the same light-mint.
186186
- A light-token account can only have one owner and hold units of one light-mint.
187187

188-
| Creation Cost | SPL | Light |
189-
| :---------------- | :------------------ | :------------------- |
190-
| **Token Account** | ~2,000,000 lamports | ~**11,000** lamports |
188+
| Creation Cost | Light | SPL |
189+
| :---------------- | :------------------- | :------------------ |
190+
| **Token Account** | ~**11,000** lamports | ~2,000,000 lamports |
191191

192192
Additionally Light Token is more performant then SPL on hot paths:
193193

194-
| | light-token CU | SPL-token CU |
194+
| | Light-Token CU | SPL-Token CU |
195195
| --------------------------------- | -------------: | -----------: |
196196
| **ATA Creation** | 4,348 | 14,194 |
197197
| **Transfer** (base path) | 312 | 4,645 |

light-token/faq.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import {
1616
Light token is like SPL token stored more efficiently to reduce account creation cost while being more CU efficient than SPL on hot paths.
1717
Users receive and send the same tokens.
1818

19-
| Creation Cost | SPL | Light |
20-
| :---------------- | :------------------ | :------------------- |
21-
| **Mint Account** | ~1,500,000 lamports | **15,000** lamports |
22-
| **Token Account** | ~2,000,000 lamports | ~**11,000** lamports |
19+
| Creation Cost | Light | SPL |
20+
| :---------------- | :------------------- | :------------------ |
21+
| **Mint Account** | **15,000** lamports | ~1,500,000 lamports |
22+
| **Token Account** | ~**11,000** lamports | ~2,000,000 lamports |
2323

24-
| | Light Token CU | SPL-Token CU |
24+
| | Light-Token CU | SPL-Token CU |
2525
| :-------------------------------- | :------------- | :----------- |
2626
| **ATA Creation** | 4,348 | 14,194 |
2727
| **Transfer** (base path) | 312 | 4,645 |
@@ -47,30 +47,30 @@ Reveal the interface method in the code example and find a few examples below.
4747
<thead>
4848
<tr>
4949
<th style={{ width: "15%" }}></th>
50-
<th>SPL</th>
5150
<th>Light</th>
51+
<th>SPL</th>
5252
</tr>
5353
</thead>
5454
<tbody>
5555
<tr>
5656
<td>**Get/Create ATA**</td>
57-
<td>getOrCreateAssociatedTokenAccount()</td>
5857
<td>getOrCreateAtaInterface()</td>
58+
<td>getOrCreateAssociatedTokenAccount()</td>
5959
</tr>
6060
<tr>
6161
<td>**Derive ATA**</td>
62-
<td>getAssociatedTokenAddress()</td>
6362
<td>getAssociatedTokenAddressInterface()</td>
63+
<td>getAssociatedTokenAddress()</td>
6464
</tr>
6565
<tr>
6666
<td>**Transfer**</td>
67-
<td>transferChecked()</td>
6867
<td>transferInterface()</td>
68+
<td>transferChecked()</td>
6969
</tr>
7070
<tr>
7171
<td>**Get Balance**</td>
72-
<td>getAccount()</td>
7372
<td>getAtaInterface()</td>
73+
<td>getAccount()</td>
7474
</tr>
7575
</tbody>
7676
</table>

light-token/welcome.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,32 @@ import WelcomePageInstall from "/snippets/setup/welcome-page-install.mdx";
2323

2424
### Creation Cost
2525

26-
| | SPL | Light |
27-
| :---------------- | :------------------ | :------------------- |
28-
| **Mint Account** | ~1,500,000 lamports | **15,000** lamports |
29-
| **Token Account** | ~2,000,000 lamports | ~**11,000** lamports |
26+
| | Light | SPL |
27+
| :---------------- | :------------------- | :------------------ |
28+
| **Mint Account** | **15,000** lamports | ~1,500,000 lamports |
29+
| **Token Account** | ~**11,000** lamports | ~2,000,000 lamports |
3030

3131
### CU Performance
3232

33-
| | Light Token CU | SPL-Token CU |
33+
| | Light-Token CU | SPL-Token CU |
3434
| :-------------------------------- | :------------- | :----------- |
3535
| **ATA Creation** | 4,348 | 14,194 |
3636
| **Transfer** (base path) | 312 | 4,645 |
3737
| **Transfer** (rent-free hot path) | 1,885 | 4,645 |
3838

3939
<CardGroup cols={2}>
4040
<Card title="Mint Accounts" icon="coins">
41-
Uniquely represent a token and store its global metadata. Light-mints are compressed accounts and rent-free.
41+
Uniquely represent a token and store its global metadata. Light-mints are compressed accounts
42+
and rent-free.
4243
</Card>
4344
<Card title="Token Accounts" icon="wallet">
44-
Each light-token account can hold units of one light, SPL, or Token 2022 mint. Custom rent config reduces account creation cost.
45+
Each light-token account can hold units of one light, SPL, or Token 2022 mint. Custom rent
46+
config reduces account creation cost.
4547
</Card>
4648
</CardGroup>
4749

4850
<Info>
49-
If you simply want to **distribute tokens**, please refer to [this
50-
page](/compressed-tokens).
51+
If you simply want to **distribute tokens**, please refer to [this page](/compressed-tokens).
5152
</Info>
5253

5354
# Quickstart

0 commit comments

Comments
 (0)