Tenderize / tender-core

Smart contracts for the core Tenderize protocol
MIT License
6 stars 3 forks source link

Graph: fix rebase when pendingUnlock > stake #273

Closed reubenr0d closed 1 year ago

reubenr0d commented 1 year ago

What does this pull request do? Explain your changes. (required) After several unstakes were made, pendingUnlocks exceeded the stake in the new node and an arithmetic underflow would occur at https://github.com/Tenderize/tender-core/blob/master/contracts/tenderizer/integrations/graph/Graph.sol#L195

Specific updates (required)

How did you test each of these updates (required)

height[bot] commented 1 year ago

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.