Bolivia is trying to attract investors to revive its dilapidated hydrocarbons sector with an investor-friendly bill that would limit the share of revenues taken by the state.