mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
commit
92dec372d8
|
@ -10,7 +10,7 @@ contract Deployer {
|
|||
// deploy create2 + minimal proxy
|
||||
function deployLogic(address owner, address logic) public returns (address proxy) {
|
||||
require(!(isFlusherDeployed(getAddress(owner, logic))), "flusher-already-deployed");
|
||||
bytes32 salt = keccak256(abi.encodePacked(owner));
|
||||
bytes32 salt = keccak256(abi.encodePacked(owner, proxy));
|
||||
bytes20 targetBytes = bytes20(logic);
|
||||
// solium-disable-next-line security/no-inline-assembly
|
||||
assembly {
|
||||
|
@ -41,7 +41,7 @@ contract Deployer {
|
|||
// compute create2 + minimal proxy address
|
||||
function getAddress(address owner, address logic) public view returns (address) {
|
||||
bytes32 codeHash = keccak256(getCreationCode(logic));
|
||||
bytes32 salt = keccak256(abi.encodePacked(owner));
|
||||
bytes32 salt = keccak256(abi.encodePacked(owner, logic));
|
||||
bytes32 rawAddress = keccak256(
|
||||
abi.encodePacked(
|
||||
bytes1(0xff),
|
||||
|
|
|
@ -12,7 +12,6 @@ contract Flusher {
|
|||
event LogCast(address indexed sender, uint value);
|
||||
|
||||
string constant public name = "Flusher-v1";
|
||||
uint constant version = 1;
|
||||
|
||||
RegistryInterface public constant registry = RegistryInterface(address(0)); // TODO - Change while deploying
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user