Skip to content

Commit d11425d

Browse files
committed
address comments
1 parent c9a4feb commit d11425d

File tree

1 file changed

+7
-11
lines changed
  • pages/entropy/generate-random-numbers

1 file changed

+7
-11
lines changed

pages/entropy/generate-random-numbers/evm.mdx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ To generate a random number, follow these steps.
6565
Invoke the [`requestV2`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/entropy_sdk/solidity/IEntropy.sol#L83) method of the `IEntropyV2` contract.
6666
The `requestV2` method requires paying a fee in native gas tokens which is configured per-provider.
6767

68-
The fees differs for every chain and also varies over time depending on the chain's current gas price.
68+
The fee differs for every chain and also varies over time depending on the chain's current gas price.
6969
The current value for each chain can be found on the [Current Fees](../current-fees) page.
70-
However, you should use the on-chain method [`getFeeV2`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/entropy_sdk/solidity/IEntropy.sol#L101) to compute the required fee and send it as the value of the `requestV2` call:
70+
However, you should use the on-chain method [`getFeeV2`](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/entropy_sdk/solidity/IEntropy.sol#L101) to compute the required fee and send it as the value of the `requestV2` call.
71+
72+
These methods use the default randomness provider ([see here](#randomness-providers) for more info on providers).
7173

7274
```solidity copy
7375
function requestRandomNumber() external payable {
@@ -162,18 +164,12 @@ Check the [Current Fees](../current-fees) to find the current fee for each provi
162164

163165
Check out the [Best Practices](../best-practices) guide for tips to limit gas usage, or generate multiple random numbers in a single transaction.
164166

165-
<Callout type="info">
166-
Entropy also requires selecting a **randomness provider**. The randomness provider is a third-party
167+
### Randomness providers
168+
Some methods on Entropy require selecting a **randomness provider**. The randomness provider is a third-party
167169
who participates in the generation process. Each provider is identified by an address and hosts
168170
a keeper service for fullfilling requests.
169171

170-
The simplest way to choose a provider is to use the [default provider](../contract-addresses).
171-
The default provider for each contract and their corresponding URI is also listed in the
172-
[Entropy contract addresses](../contract-addresses).
173-
174-
</Callout>
175-
176-
You can also get the default provider's address by calling the [`getDefaultProvider`](https://github.com/pyth-network/pyth-crosschain/blob/f8ebeb6af31d98f94ce73edade6da2ebab7b2456/target_chains/ethereum/entropy_sdk/solidity/IEntropy.sol#L94) method:
172+
You can get the default provider's address by calling the [`getDefaultProvider`](https://github.com/pyth-network/pyth-crosschain/blob/f8ebeb6af31d98f94ce73edade6da2ebab7b2456/target_chains/ethereum/entropy_sdk/solidity/IEntropy.sol#L94) method:
177173

178174
```solidity copy
179175
address provider = entropy.getDefaultProvider();

0 commit comments

Comments
 (0)