What deters wars between India and China is bilateral trade, and similarly,
It's India being terrified of china that stops escalation and retaliation
It's not as if china despite big trade have not been aggressive on the border with India, you make it sound two way agreement