Skip to content

Commit

Permalink
Fix the docs build (#10834)
Browse files Browse the repository at this point in the history
  • Loading branch information
garious authored Jun 29, 2020
1 parent b28ec32 commit 59aa299
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ find src -name '*.md' -a \! -name SUMMARY.md |

mdbook --version
mdbook-linkcheck --version
make -j"$(nproc)"
make -j"$(nproc)" test
8 changes: 4 additions & 4 deletions docs/src/apps/rent.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ As of writing, the fixed rent fee is 19.055441478439427 lamports per byte-epoch

This value is calculated to target 0.01 SOL per mebibyte-day (exactly matching to 3.56 SOL per mebibyte-year):

```
```text
Rent fee: 19.055441478439427 = 10_000_000 (0.01 SOL) * 365(approx. day in a year) / (1024 * 1024)(1 MiB) / (365.25/2)(epochs in 1 year)
```

Expand All @@ -27,14 +27,14 @@ The rent calculation includes account metadata (address, owner, lamports, etc) i
For example, an account is created with the initial transfer of 10,000 lamports and no additional data. Rent is immediately debited from it on creation, resulting in a balance of 7,561 lamports:


```
```text
Rent: 2,439 = 19.055441478439427 (rent rate) * 128 bytes (minimum account size) * 1 (epoch)
Account Balance: 7,561 = 10,000 (transfered lamports) - 2,439 (this account's rent fee for an epoch)
```

The account balance will be reduced to 5,122 lamports at the next epoch even if there is no activity:

```
```text
Account Balance: 5,122 = 7,561 (current balance) - 2,439 (this account's rent fee for an epoch)
```

Expand All @@ -50,6 +50,6 @@ Note: Use the [`getMinimumBalanceForRentExemption` RPC endpoint](jsonrpc-api.md#

For example, a program executable with the size of 15,000 bytes requires a balance of 105,290,880 lamports (=~ 0.105 SOL) to be rent-exempt:

```
```text
105,290,880 = 19.055441478439427 (fee rate) * (128 + 15_000)(account size including metadata) * ((365.25/2) * 2)(epochs in 2 years)
```

0 comments on commit 59aa299

Please sign in to comment.