Closed code423n4 closed 3 years ago
Disagree with the optimization at face value
What if there are remainign tokens? The system is meant to send them back
The optimization is not valid unless you also prove that no funds would remain at the end of rebalance
Handle
itsmeSTYJ
Vulnerability details
Impact
Leaving out the last percentage when calling
rebalance()
serves no purpose and should be removed. By removing, you will also be able to save some gas since you're no longer required to do the conditional check.Proof of Concept