mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
Vault exit contract
This commit is contained in:
parent
1ec9051cc1
commit
9a7f3c193a
28
contracts/ProxyLogics/MCD/InstaMcdGive.sol
Normal file
28
contracts/ProxyLogics/MCD/InstaMcdGive.sol
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user