What is the basis for the refund for 2021 Stimulus check that was less than the maximum?

IRS sent me a letter stating the additional refund credit shown in my return is wrong and wants the funds back. Is the Stimulus check for 2021 (third stimulus check issued in March 2021) based on the tax year 2019, 2020 or 2021 Gross  Income?