avoid negative slip rollup
If RollupSwapSlip
returns a negative value, CalcAnchor
will panic trying to convert it to a uint64
. This patch adds checks in both functions to default to 0 in such rare cases.
h/t @ursa9r for finding this
As of 2024-05-14 a change has been implemented to enforce access token expiry. If you see higher numbers of HTTP 401 responses, please check tokens that may have expired. For more details, including how to mitigate disruption, please check our docs guide on Expired Access Tokens. If you have a support contract, you may open a support ticket for additional assistance.
If RollupSwapSlip
returns a negative value, CalcAnchor
will panic trying to convert it to a uint64
. This patch adds checks in both functions to default to 0 in such rare cases.
h/t @ursa9r for finding this