Initialize TBCSystem with Keep Registry address
We need to initialize TBTCSystem with Keep Registry address for
communication with keep.
+/* solium-disable function-order */
pragma solidity ^0.5.10;
import {ITBTCSystem} from "../interfaces/ITBTCSystem.sol";
@@ -10,6 +11,13 @@ contract TBTCSystem is ITBTCSystem, ERC721, DepositLog {
uint256 previousDifficulty = 1;
uint256 oraclePrice = 10 ** 12;
+ address keepRegistry;
+
+ //TODO: add: onlyOwner
+ function initialize(address _keepRegistry) public {
+ keepRegistry = _keepRegistry;
+ }
+
// Price Oracle
function fetchOraclePrice() external view returns (uint256) {return oraclePrice;}
@@ -30,6 +38,7 @@ contract TBTCSystem is ITBTCSystem, ERC721, DepositLog {
}
}
+
// ERC721
/// @dev Function to mint a new token.
