Closed github-actions[bot] closed 1 year ago
joestakey
medium
_redeem
If an asset is whitelisted, then removed from the whitelist, users will be unable to redeem their UXD
UXD
In _redeem(), there is a check that the asset to be received is whitelisted.
_redeem()
This means if users have deposited an asset, which is then removed from the whitelist, they are unable to redeem their UXD.
Some users will be unable to redeem
https://github.com/sherlock-audit/2023-01-uxd/blob/main/contracts/core/UXDController.sol#L312-L318
Manual Review
Remove this check from _redeem.
Duplicate of #385
joestakey
medium
_redeem
should not revert for de-whitelisted assetsSummary
If an asset is whitelisted, then removed from the whitelist, users will be unable to redeem their
UXD
Vulnerability Detail
In
_redeem()
, there is a check that the asset to be received is whitelisted.This means if users have deposited an asset, which is then removed from the whitelist, they are unable to redeem their
UXD
.Impact
Some users will be unable to redeem
Code Snippet
https://github.com/sherlock-audit/2023-01-uxd/blob/main/contracts/core/UXDController.sol#L312-L318
Tool used
Manual Review
Recommendation
Remove this check from
_redeem
.Duplicate of #385