Vault exit contract

This commit is contained in:
Thrilok Kumar 2019-12-26 13:48:44 +05:30
parent 1ec9051cc1
commit 9a7f3c193a

View File

@ -0,0 +1,28 @@
pragma solidity 0.5.11;
interface ManagerLike {
function give(uint, address) external;
}
interface InstaMcdAddress {
function manager() external returns (address);
}
contract Common {
/**
* @dev get MakerDAO MCD Address contract
*/
function getMcdAddresses() public pure returns (address mcd) {
mcd = 0xF23196DF1C440345DE07feFbe556a5eF0dcD29F0;
}
}
contract InstaMcdGive is Common {
function transferOwner(uint vault) public {
address manager = InstaMcdAddress(getMcdAddresses()).manager();
ManagerLike(manager).give(vault, msg.sender);
}
}