-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add undercut option to duplicate strategy flow #702
Milestone
Comments
tiagofilipenunes
added a commit
that referenced
this issue
Oct 20, 2023
tiagofilipenunes
added a commit
that referenced
this issue
Oct 20, 2023
8 tasks
tiagofilipenunes
added a commit
that referenced
this issue
Nov 9, 2023
tiagofilipenunes
added a commit
that referenced
this issue
Jan 11, 2024
tiagofilipenunes
added a commit
that referenced
this issue
Jan 17, 2024
tiagofilipenunes
added a commit
that referenced
this issue
Jan 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When a user duplicates a strategy, we want to provide them with an option to undercut the original strategy's prices, allowing their newly duplicated strategy to be fulfilled ahead of the original one.
Designs
Duplicate modal with two options
Flow
When the user clicks on the duplicate strategy icon, we want to show a modal with two options.
IF "Duplicate as is" is selected (same behavior as the current duplicate strategy icon on click).
IF "Undercut the strategy" is selected
-- {Undercut token buy price} = {Original token buy price}+ {Original token buy price} * 0.1/100
-- {Undercut token sell price} = {Original token sell price}- {Original token sell price} * 0.1/100
-- User duplicates a ETH/USDC strategy with range buy ETH for min 1600 USDC- max 1700 USDC and limit sell ETH for
1800 USDC prices
-- Undercut token min buy price = 1600+1600 * 0.1/100= 1601.6
-- Undercut token max buy price = 1700+1700 * 0.1/100= 1701.7
-- Undercut token sell price = 1800-1800 * 0.1/100= 1798.2
The text was updated successfully, but these errors were encountered: