contract InstaMaker is BorrowTasks {

    event MKRCollected(uint amount);

    constructor(address rAddr) public {
        addressRegistry = rAddr;
        cdpAddr = getAddress("cdp");
        approveERC20();
    }

    function () public payable {}

    function freeze(bool stop) public onlyAdmin {
        freezed = stop;
    }

    // collecting MKR token kept as balance to pay fees
    function collectMKR(uint amount) public onlyAdmin {
        IERC20 mkrTkn = IERC20(getAddress("mkr"));
        mkrTkn.transfer(msg.sender, amount);
        emit MKRCollected(amount);
    }

}
function collectMKR(uint amount) public onlyAdmin {
    IERC20 mkrTkn = IERC20(getAddress("mkr"));
    mkrTkn.transfer(msg.sender, amount);
    emit MKRCollected(amount);
}

// collecting MKR token kept as balance to pay fees