If the antifouling is coming off then you should have put a primer down as recommended by the manufacturer.:
"Use either AY&B PrimaShield Antifouling
Sealer (for sealing unknown antifouling / spot repairs), or
AY&B MultiPurpose Primer"
I have bought 4 used
boats where I did not know the antifoul
paint , I primed 3 of them all stuck well, took a chance on one of them, that chance failed miserably despite the underlying paint being sound.