Skip to content

Commit 41284e4

Browse files
committed
cleanup
1 parent 6ec328a commit 41284e4

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

target_chains/ethereum/contracts/contracts/entropy/Entropy.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ abstract contract Entropy is IEntropy, EntropyState {
661661
providerAddr
662662
];
663663

664+
// Providers charge a minimum of their configured feeInWei for every request.
665+
// Requests using more than the defaultGasLimit get a proportionally scaled fee.
666+
// This approach may be somewhat simplistic, but it allows us to continue using the
667+
// existing feeInWei parameter for the callback failure flow instead of defining new
668+
// configuration values.
664669
uint32 roundedGasLimit = uint32(roundGas(gasLimit)) * 10000;
665670
if (
666671
provider.defaultGasLimit > 0 &&

target_chains/ethereum/entropy_sdk/solidity/EntropyEvents.sol

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ interface EntropyEvents {
3939
bytes errorCode
4040
);
4141

42-
event CallbackOutOfGas(
43-
address indexed provider,
44-
address indexed requestor,
45-
uint64 indexed sequenceNumber,
46-
bytes32 userRandomNumber,
47-
bytes32 providerRevelation,
48-
bytes32 randomNumber,
49-
bytes errorCode
50-
);
51-
5242
event ProviderFeeUpdated(address provider, uint128 oldFee, uint128 newFee);
5343

5444
event ProviderDefaultGasLimitUpdated(

0 commit comments

Comments
 (0)