SIP-259: Overflow in Issuer when `rateStalePeriod` > current unix timestamp
Author | |
---|---|
Status | Implemented |
Type | Governance |
Network | Ethereum |
Implementor | MEB (@barrasso) |
Release | Tiaki (v2.75) release |
Proposal | Loading status... |
Created | 2022-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
Copyright and related rights waived via CC0.