Skip to content

Commit

Permalink
Merge pull request #586 from ethersphere/update-buy-stamps
Browse files Browse the repository at this point in the history
revise description
  • Loading branch information
NoahMaizels authored May 9, 2024
2 parents 07947bd + 86570cf commit 16d9278
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion docs/develop/access-the-swarm/buy-a-stamp-batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Depending on the use case, uploaders may desire to use mutable or immutable batc
The following postage batch calculators allow you to conveniently find the depth and amount values for a given storage duration and storage volume, or to find the storage duration and storage volume for a given depth and amount. The results will display the cost in xBZZ for the postage batch. The current pricing information is sourced from the Swarmscan API and will vary over time.

:::info
The 'effective volume' is the volume of data that can safely stored for each storage depth. The 'theoretical max volume' is significantly lower than the effective volume at lower depths and the two values trend towards the same value at higher depths. The lowest depth with an effective volume above zero is 22, with an effective depth of 4.93 GB. Lower depth values can be used for smaller uploads but do not come with the same effective depth guarantee. [Learn more here](/docs/learn/technology/contracts/postage-stamp#effective-utilisation-table).
The 'effective volume' is the volume of data that can safely stored for each storage depth. The 'theoretical max volume' is significantly lower than the effective volume at lower depths and the two values trend towards the same value at higher depths. The lowest depth with an effective volume above zero is 22, with an effective depth of 4.93 GB. Lower depth values can be used for smaller uploads but do not come with the same storage guarantees. [Learn more here](/docs/learn/technology/contracts/postage-stamp#effective-utilisation-table).
:::

### Depth & Amount to Time & Volume Calculator
Expand Down
2 changes: 0 additions & 2 deletions src/components/AmountAndDepthCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function FetchPriceComponent() {
const [volume, setVolume] = useState('');
const [volumeUnit, setVolumeUnit] = useState('GB');
const [convertedTime, setConvertedTime] = useState(null);
const [convertedVolume, setConvertedVolume] = useState(null);
const [depth, setDepth] = useState(null);
const [amount, setAmount] = useState(null);
const [storageCost, setStorageCost] = useState(null);
Expand Down Expand Up @@ -105,7 +104,6 @@ function FetchPriceComponent() {
if (!hours || !gigabytes) return;

setConvertedTime(hours);
setConvertedVolume(gigabytes);
calculateDepth(gigabytes);
calculateAmount(hours * 3600 / 5);
setShowResults(true);
Expand Down

0 comments on commit 16d9278

Please sign in to comment.