-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This pull request has been linked to Shortcut Story #14942: Provide Swap Data view for FE. |
There was a problem hiding this 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
sdk/simulator-service/src/implementation/simulator-engine/reducer/swapReducer.ts
Show resolved
Hide resolved
sdk/simulator-service/src/implementation/utils/SimulatorUtils.ts
Outdated
Show resolved
Hide resolved
sdk/simulator-service/src/strategies/refinance/RefinanceLendingToLending.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
sdk/simulator-service/src/implementation/utils/SimulatorUtils.ts
Outdated
Show resolved
Hide resolved
Rob has covered this and Piter is pretty busy
- 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)
Simulation
->ISimulation
to align better with rest of the SDKswap-common
->sdk-common
to remove cyclic dependencies in simulation typesNote:
getSpotPrices
simplified togetSpotPrice
in feat: add any pair capability to refinance strategy #153TODO: