Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Implement swap with price limit command #163

Closed
Tracked by #2
Naureen1lightcurve opened this issue Jan 16, 2023 · 0 comments · Fixed by #209
Closed
Tracked by #2

Implement swap with price limit command #163

Naureen1lightcurve opened this issue Jan 16, 2023 · 0 comments · Fixed by #209

Comments

@Naureen1lightcurve
Copy link
Contributor

Description

Allow users to perform a token swap with price change at most up to the specified target price.

Acceptance Criteria

  • Create a command swapWithPriceLimitCommand.ts in the commands folder and implement swapWithPriceLimit command.
  • Users should be able to:
  • Specify the tokens and amount using the specified price limit.
  • Swap the selected tokens successfully.
  • Swap route is specified
  • Slippage tolerance/Price impact and time limit functions respond as per the specifications by user.
  • Swap the selected tokens successfully
  • Success event is emitted.
  • Write unit tests covering all the scenarios for swap with price limit.

Additional Information

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants