Skip to content

Commit

Permalink
Remove unused variables (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ authored Oct 22, 2024
1 parent 93ba4f6 commit c0e1d9d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
9 changes: 0 additions & 9 deletions contracts/sfc/ConstantsManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,10 @@ contract ConstantsManager is Ownable {
uint256 public targetGasPowerPerSecond;
uint256 public gasPriceBalancingCounterweight;

address private secondaryOwner_erased;

// event SecondaryOwnershipTransferred(address indexed previousOwner, address indexed newOwner);

function initialize() external initializer {
Ownable.initialize(msg.sender);
}

// function setSecondaryOwner(address v) onlyOwner external {
// emit SecondaryOwnershipTransferred(secondaryOwner, v);
// secondaryOwner = v;
// }

function updateMinSelfStake(uint256 v) external virtual onlyOwner {
require(v >= 100000 * 1e18, "too small value");
require(v <= 10000000 * 1e18, "too large value");
Expand Down
1 change: 0 additions & 1 deletion contracts/sfc/NodeDriver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ contract NodeDriverAuth is Initializable, Ownable {
}

contract NodeDriver is Initializable {
uint256 private erased0;
NodeDriverAuth internal backend;
EVMWriter internal evmWriter;

Expand Down
6 changes: 0 additions & 6 deletions contracts/sfc/SFCState.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,11 @@ contract SFCState is Initializable, Ownable {
uint256 totalSupply;
}

uint256 private erased0;
uint256 public totalSupply;
mapping(uint256 => EpochSnapshot) public getEpochSnapshot;

uint256 private erased1;
uint256 private erased2;

mapping(uint256 => uint256) public slashingRefundRatio; // validator ID -> (slashing refund ratio)

uint256 private erased3;
uint256 private erased4;
uint256 public minGasPrice;

address public treasuryAddress;
Expand Down

0 comments on commit c0e1d9d

Please sign in to comment.