spartan-protocol / spartanswap-contracts

📃 Spartan Protocol Smart Contracts V1 - V2
20 stars 6 forks source link

DIVIDENDS | Prevent dividend manuipulation #63

Closed SamusElderg closed 3 years ago

SamusElderg commented 3 years ago

Let's consider making the dividend simply equal to the slip fee itself to align the manipulation benefit with the cost to do so

SamusElderg commented 3 years ago

This is now implemented; dividend is == slipFee which in itself makes the opportunity equal to the cost (if the user has 100% of the liquidity) and the cost greater than the opportunity if they have less than 100% liquidity 👍