The availability of gain-based damages for breach of contract