57076 sc high incorrect slippage would result in swap manipulations
Description
Brief/Intro
Vulnerability Details
function _swapUSDCtoLONG(address recipient, uint256 amount) internal virtual returns (uint256 swapped) {
PaymentsInfo memory p = belongCheckInStorage.paymentsInfo;
@> return _swapExact(p.usdc, p.long, recipient, amount);
}
function _swapLONGtoUSDC(address recipient, uint256 amount) internal virtual returns (uint256 swapped) {
PaymentsInfo memory p = belongCheckInStorage.paymentsInfo;
return _swapExact(p.long, p.usdc, recipient, amount);
}Impact Details
References
Proof of Concept
Previous57615 sc medium permanent freezing of user assets in staking sol Next57786 sc high malicious users can frontrun staking distributerewards to claim majority of rewards
Was this helpful?