The current gold price is 340/ g and your annual interest rate is 10%. It means that your cost has increased by 34, and the price after one year is 340+34=374.
So, you can do risk-free arbitrage at 374.