Replace contract if renew fails multiple times
Created by: ChrisSchinnerl
Previously a contract that was goodForRenew
would just continue being renewed until it is either successfully renewed or expired. This PR changes that behavior so that a contract will be marked as !goodForRenew
as soon as it has failed 12
times and reached the second half of the renew window.
This means that a contract that has already failed >=12
times in the first half of the renew window will be marked immediately after entering the second half of the window.
A contract that failed its renewal within the second half of the renew window will still have to fail 12 times before being marked.
A contract that doesn't have enough time left in the second half of the renew window to fail 12 times will simply expire without being marked.