It ain't gonna dry. Floor must come up to replace the foam, which means you've gotta replace the floor. You'll probably find rotten stringers, bulkheads, and transom too, and it would be a shame to do all that work to the floor and foam and not fix the rot.