This report outlines a critical vulnerability related to rebasing tokens, Rebasing tokens dynamically
adjust their balances based on predefined conditions, causing balances to increase or decrease over time.
This feature introduces significant challenges when locking tokens, as the stored amount in the contract
may not accurately reflect the user's actual token balance after the rebase occurs.
Rebasing tokens like USDB inherently alter the balance of holders through periodic adjustments.
When a user transfers a specific amount of USDB tokens to a contract for locking purposes,
the contract typically stores the transferred amount in its internal storage. However,
due to the nature of rebasing, the recorded amount may become inaccurate over time.
Potential Loss: Depending on the rebase mechanism, this vulnerability could result in significant financial loss,
either for individual users or for the entire contract’s ecosystem.
Consider implementing a system to handle rebasing tokens.
Valid medium, there are disruptions to the ability to take market actions. The following functions will be disrupted without the possibiliy of reaching settlement, since the respective offers cannot be created/listed regardless of mode when transferring collateral token required to the CapitalPool contract or when refunding token from user to capital pool during relisting. So withdrawal is not an issue - `createOffer()` - reverts [here](https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/PreMarkets.sol#L96-L102) - `listOffer()` - reverts [here](https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/PreMarkets.sol#L355-L362) - `relistOffer()` - reverts [here](https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/PreMarkets.sol#L515-L521) - `createTaker()` - reverts [here](https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/PreMarkets.sol#L831-L836) I believe medium severity is appropriate although the likelihood is high and impact is medium (only some level of disruption i.e. FOT tokens not supported and no funds at risk)
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.