Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

BugBusters - There isn't any redeem function in the code #948

Closed
sherlock-admin opened this issue May 24, 2023 · 0 comments
Closed

BugBusters - There isn't any redeem function in the code #948

sherlock-admin opened this issue May 24, 2023 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A valid Medium severity issue Reward A payout will be made for this issue

Comments

@sherlock-admin
Copy link
Contributor

sherlock-admin commented May 24, 2023

BugBusters

high

There isn't any redeem function in the code

Summary

There isn't any redeem function in the code, so user will not be able to redeem is collateral back and will be stuck with the USSD tokes forever

Vulnerability Detail

The code does not include a redeem function, which means there is no mechanism for users to convert or redeem their USSD tokens back into the underlying collateral or any other form of value. This limitation can result in users being unable to liquidate or utilize their USSD tokens, effectively trapping their funds within the token indefinitely.

Impact

1): Loss of funds for the User.
2): Reputation loss for the protocol

Code Snippet

https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/USSD.sol

https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/USSD.sol#L2

Tool used

Manual Review

Recommendation

Add redeem function through which user will be able to get their underlying tokens back

Duplicate of #958

@github-actions github-actions bot closed this as completed Jun 5, 2023
@github-actions github-actions bot added High A valid High severity issue Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Jun 5, 2023
@sherlock-admin sherlock-admin added the Reward A payout will be made for this issue label Jun 23, 2023
@sherlock-admin sherlock-admin added Medium A valid Medium severity issue and removed High A valid High severity issue labels Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A valid Medium severity issue Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

1 participant