I owed and paid my federal taxes in April; however, I just made an amendment and got a new refund. Is this refund reflective of what I paid in April?

April: owed federal and got refund from state; paid taxes due.
July: made an amendment and now see federal return and additional state return

I am trying to understand if I will be getting a refund on the taxes I already paid due to the error I made when I completed my tax return in April.