The Pirates and closer Felipe Rivero reached a four-year contract with two club options, the team announced Thursday. The contract extends through 2021 with club options for 2022 and 2023. Rivero will make $2.5 million in 2018, $4 million in 2019, $5.25 million in 2020, and $7.25 million in 2021, according to a source. He also receives a $2 million signing bonus. The club options in 2022 and 2023 are $10 million each with a $1 million buyout and $500,000 buyout, respectively. The total guaranteed money is $22 million. He could receive up to $41 million total. General manager Neal Huntington said both sides assume some level of risk in the deal for the sake of cost certainty, in the case of the team, and guaranteed salary, in the case of Rivero.