Balancing inflation with investment risk