I know that there was no explicit agreement that the farm was part of the bet. However, the way everypony acted when Flim and Flam won displays an implicit agreement. The very fact that Twilight doesn't point out that the farm wasn't part of the deal shows that something like that must have been part of the deal, even if it happened off-screen.