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
To prevent front-running attacks by miners, we should add a minReturn parameter to the buy and sell functions and appropriate tests.
The fallback contract should call buy(MAX_RETURN) where MAX_RETURN is some constant value putting a limit on how many tokens one can buy via fallback function — open to other options here.
The text was updated successfully, but these errors were encountered:
To prevent front-running attacks by miners, we should add a minReturn parameter to the buy and sell functions and appropriate tests.
The fallback contract should call buy(MAX_RETURN) where MAX_RETURN is some constant value putting a limit on how many tokens one can buy via fallback function — open to other options here.
The text was updated successfully, but these errors were encountered: