bondPercentDiv can be set to zero by the owner. This would give a div by zero error
in line 61
bondAmount = basketToken.totalSupply() / factory.bondPercentDiv();
and brick any portfolio balancing ever.
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
Handle
goatbug
Vulnerability details
Impact
bondPercentDiv can be set to zero by the owner. This would give a div by zero error in line 61 bondAmount = basketToken.totalSupply() / factory.bondPercentDiv(); and brick any portfolio balancing ever.
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
Tools Used
Recommended Mitigation Steps