A US-China currency deal can avert trade war