Skip to content
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

feat: add simulated swap data to simulations #147

Merged
merged 12 commits into from
Apr 3, 2024

Conversation

zerotucks
Copy link
Contributor

@zerotucks zerotucks commented Mar 25, 2024

  • Add Swaps to Simulation output
  • Refactor Simulation -> ISimulation to align better with rest of the SDK
  • Refactor Swap related types from swap-common -> sdk-common to remove cyclic dependencies in simulation types

Note:

TODO:

Copy link

This pull request has been linked to Shortcut Story #14942: Provide Swap Data view for FE.

@zerotucks zerotucks marked this pull request as ready for review March 26, 2024 08:27
robercano
robercano previously approved these changes Apr 2, 2024
Copy link
Contributor

@robercano robercano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work! Love it. I've added some comments and some questions (not necessarily changes requests). I'll approve but let's discuss on those topics

@zerotucks zerotucks changed the title feat: add swaps to simulations feat: add simulated swap data to simulations Apr 2, 2024
Copy link
Contributor

@robercano robercano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@zerotucks zerotucks dismissed piotrwitek’s stale review April 3, 2024 10:43

Rob has covered this and Piter is pretty busy

@zerotucks zerotucks merged commit bb19df1 into dev Apr 3, 2024
2 checks passed
@zerotucks zerotucks deleted the jt/sc-14942/provide-swap-data-view-for-fe branch April 3, 2024 10:43
jakubswierczek pushed a commit that referenced this pull request Apr 8, 2024
- Add Swaps to Simulation output
- Refactor `Simulation` -> `ISimulation` to align better with rest of
the SDK
- Refactor Swap related types from `swap-common` -> `sdk-common` to
remove cyclic dependencies in simulation types

Note:
- `getSpotPrices` simplified to `getSpotPrice` in
#153

TODO:
- Write tests for simulation swaps (done in
#153)
- Update refinance strategy to handle swaps (current implementation is
based on assumptions that no longer hold following
ProtocolManager/Plugins/Pool work) (done in
#153)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants