Skip to content

Commit 0a458da

Browse files
authored
Merge pull request #747 from ethersphere/2-6-0-addresses
updated contracts
2 parents 87a3b0d + f5190eb commit 0a458da

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/develop/access-the-swarm/buy-a-stamp-batch.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import AmountAndDepthCalc from '@site/src/components/AmountAndDepthCalc.js';
88
import Tabs from '@theme/Tabs';
99
import TabItem from '@theme/TabItem';
1010

11+
import { globalVariables } from '/src/config/globalVariables'
12+
1113

1214

1315
A postage batch is required to upload data to Swarm. Postage stamp batches represent _right to write_ data on Swarm's [DISC (Distributed Immutable Store of Chunks)](/docs/concepts/DISC/). The parameters which control the duration and quantity of data that can be stored by a postage batch are `depth` and `amount`, with `depth` determining data volume that can be uploaded by the batch and `amount` determining storage duration of data uploaded with the batch.
@@ -21,7 +23,7 @@ A postage batch is required to upload data to Swarm. Postage stamp batches repre
2123

2224
**Storage duration and `amount`:**
2325

24-
The duration of time for which a batch can store data is also non-deterministic since the price of storage is automatically adjusted over time by the [price oracle contract](/docs/concepts/incentives/price-oracle). However, limits have been placed on how swiftly the price of storage can change, so there is no danger of a rapid change in price causing postage batches to unexpectedly expire due to a rapid increase in price. You can view a history of price changes by inspecting [the events emitted by the oracle contract](https://gnosisscan.io/address/0x47EeF336e7fE5bED98499A4696bce8f28c1B0a8b#events), or also through the [Swarmscan API](https://api.swarmscan.io/v1/events/storage-price-oracle/price-update). As you can see, if and when postage batch prices are updated, the updates are quite small. Still, since it is not entirely deterministic, it is important to monitor your stamp batch TTL (time to live) as it will change along with price oracle changes. You can inspect your batch's TTL using the `/stamps` endpoint of the API:
26+
The duration of time for which a batch can store data is also non-deterministic since the price of storage is automatically adjusted over time by the [price oracle contract](/docs/concepts/incentives/price-oracle). However, limits have been placed on how swiftly the price of storage can change, so there is no danger of a rapid change in price causing postage batches to unexpectedly expire due to a rapid increase in price. You can view a history of price changes by inspecting <a href={`https://gnosisscan.io/address/${globalVariables.priceOracleContract}#events`} target="_blank">the events emitted by the oracle contract</a>, or also through the [Swarmscan API](https://api.swarmscan.io/v1/events/storage-price-oracle/price-update). As you can see, if and when postage batch prices are updated, the updates are quite small. Still, since it is not entirely deterministic, it is important to monitor your stamp batch TTL (time to live) as it will change along with price oracle changes. You can inspect your batch's TTL using the `/stamps` endpoint of the API:
2527

2628
```bash
2729
root@noah-bee:~# curl -s localhost:1633/stamps | jq

src/config/globalVariables.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const globalVariables = {
22
postageStampContract: '0x45a1502382541Cd610CC9068e88727426b696293',
3-
stakingContract: '0x445B848e16730988F871c4a09aB74526d27c2Ce8',
4-
redistributionContract: '0xFfF73fd14537277B3F3807e1AB0F85E17c0ABea5',
3+
stakingContract: '0xda2a16EE889E7F04980A8d597b48c8D51B9518F4',
4+
redistributionContract: '0x5069cdfB3D9E56d23B1cAeE83CE6109A7E4fd62d',
55
priceOracleContract: '0x47EeF336e7fE5bED98499A4696bce8f28c1B0a8b'
66
};

0 commit comments

Comments
 (0)