Skip to content

Commit

Permalink
update gas estimates wording
Browse files Browse the repository at this point in the history
  • Loading branch information
abramdawson committed Jul 15, 2022
1 parent 80b00cb commit d6021f2
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions pages/appendices/gas-estimates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,82 +5,82 @@ The below tables outline gas estimates for
[`distributeETH`](/smartcontracts/SplitMain#distributeeth).

Two important notes:
1. the cost of distribution will increase if any of the Recipients haven't been
[initialized](https://ethereum.org/en/developers/docs/smart-contracts/anatomy/#storage)
with the protocol. Each Recipient only needs to be initialized once for the
entire protocol.
2. the cost of creating a mutable split is slightly higher (~20k gas)
than creating an immutable split.

1. The cost of distribution will increase if any of the Recipients haven't been
[initialized](https://ethereum.org/en/developers/docs/smart-contracts/anatomy/#storage)
with the protocol. Each Recipient only needs to be initialized once for the
entire protocol.
2. The cost of creating a [mutable Split](/core-concepts#mutable-split) is
slightly higher (~20k gas) than creating an immutable Split.

### Total Gas

<div style={{ paddingTop: '1rem', fontFamily: 'monospace', fontSize: '15px' }}>
<div style={{ paddingTop: '1rem', fontFamily: 'monospace' }}>

| Size | Create Split | Distribute ETH |
| ---: | ----------: | ------------: |
| 2 | 100_729 | 57_378 |
| 5 | 104_520 | 77_155 |
| 10 | 110_802 | 110_069 |
| 25 | 129_332 | 208_562 |
| 50 | 160_511 | 373_034 |
| 100 | 223_155 | 702_505 |
| 200 | 349_571 | 1_363_372 |
| 500 | 737_004 | 3_360_720 |

| :--- | -----------: | -------------: |
| 2 | 100_729 | 57_378 |
| 5 | 104_520 | 77_155 |
| 10 | 110_802 | 110_069 |
| 25 | 129_332 | 208_562 |
| 50 | 160_511 | 373_034 |
| 100 | 223_155 | 702_505 |
| 200 | 349_571 | 1_363_372 |
| 500 | 737_004 | 3_360_720 |

</div>

### Gas Per Recipient

<div style={{ paddingTop: '1rem', fontFamily: 'monospace', fontSize: '15px' }}>
<div style={{ paddingTop: '1rem', fontFamily: 'monospace' }}>

| Size | Create Split | Distribute ETH |
| ---: | ----------: | ------------: |
| 2 | 50_364 | 28_689 |
| 5 | 20_904 | 15_431 |
| 10 | 11_080 | 11_006 |
| 25 | 5_173 | 8_342 |
| 50 | 3_210 | 7_460 |
| 100 | 2_231 | 7_025 |
| 200 | 1_747 | 6_816 |
| 500 | 1_474 | 6_721 |
| :--- | -----------: | -------------: |
| 2 | 50_364 | 28_689 |
| 5 | 20_904 | 15_431 |
| 10 | 11_080 | 11_006 |
| 25 | 5_173 | 8_342 |
| 50 | 3_210 | 7_460 |
| 100 | 2_231 | 7_025 |
| 200 | 1_747 | 6_816 |
| 500 | 1_474 | 6_721 |

</div>

### Total Gas in USD

Assuming 10 gwei gas and $1000 ETH

<div style={{ paddingTop: '1rem', fontFamily: 'monospace', fontSize: '15px' }}>
<div style={{ paddingTop: '1rem', fontFamily: 'monospace' }}>

| Size | Create Split | Distribute ETH |
| ---: | ----------: | ------------: |
| 2 | $1.01 | $0.57 |
| 5 | $1.05 | $0.77 |
| 10 | $1.11 | $1.10 |
| 25 | $1.29 | $2.09 |
| 50 | $1.61 | $3.73 |
| 100 | $2.23 | $7.03 |
| 200 | $3.50 | $13.63 |
| 500 | $7.37 | $33.61 |
| :--- | -----------: | -------------: |
| 2 | $1.01 | $0.57 |
| 5 | $1.05 | $0.77 |
| 10 | $1.11 | $1.10 |
| 25 | $1.29 | $2.09 |
| 50 | $1.61 | $3.73 |
| 100 | $2.23 | $7.03 |
| 200 | $3.50 | $13.63 |
| 500 | $7.37 | $33.61 |

</div>

### Gas Per Recipient in USD

Assuming 10 gwei gas and $1000 ETH

<div style={{ paddingTop: '1rem', fontFamily: 'monospace', fontSize: '15px' }}>
<div style={{ paddingTop: '1rem', fontFamily: 'monospace' }}>

| Size | Create Split | Distribute ETH |
| ---: | ----------: | ------------: |
| 2 | $0.50 | $0.29 |
| 5 | $0.21 | $0.15 |
| 10 | $0.11 | $0.11 |
| 25 | $0.05 | $0.08 |
| 50 | $0.03 | $0.07 |
| 100 | $0.02 | $0.07 |
| 200 | $0.02 | $0.07 |
| 500 | $0.01 | $0.07 |
| :--- | -----------: | -------------: |
| 2 | $0.50 | $0.29 |
| 5 | $0.21 | $0.15 |
| 10 | $0.11 | $0.11 |
| 25 | $0.05 | $0.08 |
| 50 | $0.03 | $0.07 |
| 100 | $0.02 | $0.07 |
| 200 | $0.02 | $0.07 |
| 500 | $0.01 | $0.07 |

</div>

0 comments on commit d6021f2

Please sign in to comment.