From 9a7f3c193ac40ca5d446007f239a0a1e6db840b5 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Thu, 26 Dec 2019 13:48:44 +0530 Subject: [PATCH] Vault exit contract --- contracts/ProxyLogics/MCD/InstaMcdGive.sol | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 contracts/ProxyLogics/MCD/InstaMcdGive.sol diff --git a/contracts/ProxyLogics/MCD/InstaMcdGive.sol b/contracts/ProxyLogics/MCD/InstaMcdGive.sol new file mode 100644 index 0000000..3f40046 --- /dev/null +++ b/contracts/ProxyLogics/MCD/InstaMcdGive.sol @@ -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); + } +} \ No newline at end of file