Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

#calcWorstReserveIn method #2

Open
darkan909 opened this issue Mar 18, 2023 · 2 comments
Open

#calcWorstReserveIn method #2

darkan909 opened this issue Mar 18, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@darkan909
Copy link

#calcWorstReserveIn = (

Hi, could I have more info about some numbers you use in #calcWorstReserveIn?
What is the goal of this function?
What do 4000 and 20000 refer to?

@dennohpeter
Copy link
Owner

Yes @darkan909, there are based on uniswap v2 getAmountOut and pools rIn * rOut = k formula. Here is the formula.
image

@dennohpeter
Copy link
Owner

adopted from https://github.com/mevcheb/optimal-sandwich

@dennohpeter dennohpeter self-assigned this Mar 18, 2023
@dennohpeter dennohpeter added documentation Improvements or additions to documentation good first issue Good for newcomers labels Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants