The Dallas Mavericks and guard Jaden Hardy have agreed on an $18 million, three-year extension, a person with knowledge of the contract said Tuesday.