Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion contracts/standard/rng/BeaconRNGFallback.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @authors: [@shalzz]
* @reviewers: [@jaybuidl]
* @reviewers: [@jaybuidl*, @geaxed]
* @auditors: []
* @bounties: []
* @deployments: []
Expand All @@ -27,6 +27,15 @@ contract BeaconRNGFallBack is RNG {
blockhashRNG = _blockhashRNG;
}

/**
* @dev Since we don't really need to incentivize requesting the beacon chain randomness,
* this is a stub implementation required for backwards compatibility with the
* RNG interface.
* @notice All the ETH sent here will be lost forever.
* @param _block Block the random number is linked to.
*/
function contribute(uint _block) public payable {}

/**
* @dev Request a random number.
* @dev Since the beacon chain randomness is not related to a block
Expand Down