SHANGHAI: China's yuan gave up all of its gains on Wednesday (Aug 28) to end weaker for a 10th session, despite the central bank setting a firmer-than-expected midpoint to help stabilise the currency.