Closed c4-bot-5 closed 9 months ago
https://github.com/code-423n4/2024-01-salty/blob/53516c2cdfdfacb662cdea6417c52f23c94d5b5b/src/stable/USDS.sol#L53
can cause user or pool unexpected liquidation when increasing position size. Unfair liquidation for users.
manual
Add a function modifier to the burnTokensInContract function
burnTokensInContract
Access Control
Lines of code
https://github.com/code-423n4/2024-01-salty/blob/53516c2cdfdfacb662cdea6417c52f23c94d5b5b/src/stable/USDS.sol#L53
Vulnerability details
Impact
can cause user or pool unexpected liquidation when increasing position size. Unfair liquidation for users.
Tools Used
manual
Recommended Mitigation Steps
Add a function modifier to the
burnTokensInContract
functionAssessed type
Access Control