Sounds like you have nothing to worry about. Your offer has been accepted, and your grandma has agreed to give you any shortfall of funds.
I suggest you get a closing statement from your lender. This will have the amount of funds you will need to pay at closing. You can determine from the statement how much money your grandma will need to give you. Perhaps she would be willing to put the funds in your account now.