SIP-259: Overflow in Issuer when `rateStalePeriod` > current unix timestamp

Author
StatusApproved
TypeGovernance
NetworkEthereum
ImplementorTBD
ReleaseTBD
ProposalLoading status...
Created2022-07-13

Simple Summary

There is a bug in Issuer which causes a subtraction overflow when rateStalePeriod setting is set greater than the current timestamp. To prevent issues when running tests, fix the code so that it will allow any timestamp if rateStalePeriod is greater than current timestamp.

Motivation

Though this fix has no effect on a live network (unless for some reason rate stale period was set too large by accident), this will make it much easier to test synthetix contracts in a local network setting.

Copyright and related rights waived via CC0.