Skip to content

Commit

Permalink
Added MIN_TARGET and MAX_TARGET
Browse files Browse the repository at this point in the history
  • Loading branch information
10d9e authored Oct 28, 2018
1 parent 6eacc75 commit 6eb9e9f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions EIPS/eip-918.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ The general behavioral specification includes a primary function that defines th

``` solidity
interface ERC918Interface {
function MIN_TARGET() external returns (uint256);
function MAX_TARGET() external returns (uint256);
function adjustmentInterval() external returns (uint);
function challengeNumber() external returns (bytes32);
function miningTarget() external returns (uint256);
Expand All @@ -44,6 +46,20 @@ interface ERC918Interface {
- The following specifications use syntax from Solidity compiler version `0.4.25`
- Callers MUST handle `false` from any `returns (bool success)`. Callers MUST NOT assume that `false` is never returned!

#### MIN_TARGET
Returns the minimum possible target that the mineable contract will provide as part of the proof of work algorithm.

```solidity
function MIN_TARGET() external public returns (uint256)
```

#### MAX_TARGET
Returns the maximum possible target that the mineable contract will provide as part of the proof of work algorithm.

```solidity
function MAX_TARGET() external public returns (uint256)
```

#### blocksPerReadjustment
Returns the number of block rewards per difficulty readjustment.
```solidity
Expand Down

0 comments on commit 6eb9e9f

Please sign in to comment.