The Fees.sol
contract uses the Uniswap router to swap any token that is stored as balance on the contract for WETH which is then transferred to the Staking.sol
contract as rewards for stakers.
The issues is that the Uniswap Router address is hardcoded which could lead to mistakes if the protocol is deployed on another chain as the Uniswap Router address would be different. Another option is for an attacker to create a contract on that specific address and drain funds whenever sellProfits()
is called.
Possible block of protocol / drainage of funds
Manual Review
Pass the UniswapRouter contract address within the constructor and assign it to the swapRouter
variable.
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.