You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
The problem is inside _performLiquidation function.
This function calls should swap tokens, but it never sends tokens to the swapper.
Because swapper also doesn't send nothing to the LiquidationRow, i believe that delegate call was meant to use.
Result of this is severe for the system. This means that all accumulated rewards will never be distributed to the users, which means loss of all yields for them.
Impact
Users loss yields.
Code Snippet
Provided above
Tool used
Manual Review
Recommendation
Make delegate call, or send funds to swapper and back.
sherlock-admin
changed the title
Broad Tweed Tiger - LiquidationRow.liquidateVaultsForToken will never work, so vault depositors will not receive any rewards
rvierdiiev - LiquidationRow.liquidateVaultsForToken will never work, so vault depositors will not receive any rewards
Oct 3, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
rvierdiiev
high
LiquidationRow.liquidateVaultsForToken will never work, so vault depositors will not receive any rewards
Summary
LiquidationRow.liquidateVaultsForToken will never work, so vault depositors will not receive any rewards
Vulnerability Detail
LiquidationRow.liquidateVaultsForToken
function should swap reward assets of the vault and then send them to the rewarder for distribution.https://github.com/sherlock-audit/2023-06-tokemak/blob/main/v2-core-audit-2023-07-14/src/liquidation/LiquidationRow.sol#L167-L180
The problem is inside
_performLiquidation
function.This function calls should swap tokens, but it never sends tokens to the swapper.
Because swapper also doesn't send nothing to the
LiquidationRow
, i believe that delegate call was meant to use.Result of this is severe for the system. This means that all accumulated rewards will never be distributed to the users, which means loss of all yields for them.
Impact
Users loss yields.
Code Snippet
Provided above
Tool used
Manual Review
Recommendation
Make delegate call, or send funds to swapper and back.
Duplicate of #205
The text was updated successfully, but these errors were encountered: