Loud Mocha Platypus
High
Malicious user can lend and borrow to themselves to create fake volume, while only paying the small protocol fees, to grab all the incentives offered for any epoch and any token.
Because incentive token payouts are based purely on volume and monetary flow of a user matching offers, malicious user can abuse this to steal nearly all incentives all the time, with only paying fees, which would be far less than the incentive tokens are worth.
This is worse than traditional bot airdrop/incentive/points farming, because there's complete freedom to abuse it ubiquitously to the absolute maximum with no checks or restrictions.
See summary.
See summary.
See summary.
- Projects or users can fund the incentive contract via incentivizePair(). This loads up essentially a "pool" of funds in the state variables
lentIncentivesPerTokenPerEpoch
andborrowedIncentivesPerTokenPerEpoch
. So when a user borrows or lends some non-zero value, they will get credited in relation to these incentives which have been donated. - When offers end up matching inside MatchOfferV3(), the
updateFunds()
function is called, which credits the lender and the borrower based on the principle amount, and also increments thetotalUsedTokenPerEpoch
. This total is used to track the total activity associated with the incentives offered for the epoch and token. - User can spam back and forth with themselves to create borrow and lend offers that match, call
MatchOfferV3()
, and this will increase their lent and borrowed amounts along with the total. - For example, they could do 1000 matched offers where each offer is 100 principle amount, leading to 100,000 for their LENT, BORROWED, and the TOTAL tracked values for the incentive. If non-malicious activity was only 10,000 out of the 100,000 for that epoch and token, then the malicious user's essentially stole 90% of the incentive rewards from normal users for free. All they have to do is pay the fees.
Theft of all incentives through spammed matching of offers.
None.
Limit the amount of incentives that can be earned through raw volume. Consider approaches that minimize 'airdrop farming' kind of techniques.