I'd assume the Cavs would include a team option -- as has been their M.O. this offseason -- near the maximum allowed salary for a single season if he performs well. It's worth mentioning that the CBA has something called "Exhibit 3," which is basically an injury provision that lets a team walk away from a contract if there is a pre-existing injury involved prior to signing.
Contracts can be written with an escape clause called Exhibit 3, which is a prior injury exclusion. It's what Brandon Roy got with the Timberwolves, and it allowed them to walk away from Roy without owing additional money. It says that if the team waives the player because of a prior, known injury, then his salary is not guaranteed. Exhibit 3 is tailor-made for this situation, and gives teams the insurance they need to offer him a higher salary.