Tenderize / tender-core

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

TenderToken: misc fixes after manual code inspection for internal audit #223

Closed kyriediculous closed 2 years ago

kyriediculous commented 2 years ago

What does this pull request do? Explain your changes. (required) As part of the internal audit process I did a manual code inspection on TenderToken and TenderFarm. In context of that this PR includes some gas optimisations for the TenderToken contract.

Proposed fix: https://github.com/Tenderize/tender-core/commit/99c94f2a342b48dc2413efbb23145888bff389d0

Proposed fix: https://github.com/Tenderize/tender-core/commit/f00b70c95ab6f8a09fafe892d77124b3aebc8863

Specific updates (required)

How did you test each of these updates (required) Adjusted and ran unit tests

Does this pull request close any open issues?