Open code423n4 opened 1 year ago
Previously, anyone could call mintYieldFee function and provide _recipient param. This will make contract mint fee shares to the provided recipient.
mintYieldFee
_recipient
Now, mintYieldFee function mint shares to the _yieldFeeRecipient only, so it's not possible to steal shares.
_yieldFeeRecipient
Picodes marked the issue as satisfactory
Picodes marked the issue as confirmed for report
Lines of code
Vulnerability details
Issue mitigated
About the problem
Previously, anyone could call
mintYieldFee
function and provide_recipient
param. This will make contract mint fee shares to the provided recipient.Solution
Now,
mintYieldFee
function mint shares to the_yieldFeeRecipient
only, so it's not possible to steal shares.