mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Code refactoring
This commit is contained in:
parent
2c26d733c7
commit
b43db8f5a7
|
@ -52,10 +52,6 @@ interface EventInterface {
|
||||||
function emitEvent(uint _connectorType, uint _connectorID, bytes32 _eventCode, bytes calldata _eventData) external;
|
function emitEvent(uint _connectorType, uint _connectorID, bytes32 _eventCode, bytes calldata _eventData) external;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IndexInterface {
|
|
||||||
function master() external view returns (address);
|
|
||||||
}
|
|
||||||
|
|
||||||
contract DSMath {
|
contract DSMath {
|
||||||
|
|
||||||
function add(uint x, uint y) internal pure returns (uint z) {
|
function add(uint x, uint y) internal pure returns (uint z) {
|
||||||
|
@ -108,13 +104,6 @@ contract Helpers is DSMath {
|
||||||
return 0x2af7ea6Cb911035f3eb1ED895Cb6692C39ecbA97; // InstaEvent Address
|
return 0x2af7ea6Cb911035f3eb1ED895Cb6692C39ecbA97; // InstaEvent Address
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @dev Return InstaIndex Address.
|
|
||||||
*/
|
|
||||||
function getIndexAddr() internal pure returns (address) {
|
|
||||||
return 0x2971AdFa57b20E5a416aE5a708A8655A9c74f723; // InstaIndex Address
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Get Uint value from InstaMemory Contract.
|
* @dev Get Uint value from InstaMemory Contract.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user