Skip to content

[refactor] virtual pool gets generate at the beginning of each swap #check-lint-warning

Son of Odin requested to merge derived-pool-between-swaps into develop

Currently, the derived virtual pools get generated at the beginning of each block. To ensure price manipulation between swaps of a single block, we should calculate the virtual pools on every swap we make with them. This change does just that. No logic changes, just call the func that generates the virtual pool pre-swap.

Code Walkthrough https://www.youtube.com/watch?v=Wke82WgK8Ao

Edited by Son of Odin

Merge request reports