Skip to content

add more evm state helpers tests#241

Open
zhangchiqing wants to merge 2 commits intofeature/forked-simulationsfrom
leo/suggestion-191
Open

add more evm state helpers tests#241
zhangchiqing wants to merge 2 commits intofeature/forked-simulationsfrom
leo/suggestion-191

Conversation

@zhangchiqing
Copy link
Copy Markdown
Member

Closes: #???

Description


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the standards mentioned here.
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@zhangchiqing zhangchiqing requested a review from a team as a code owner March 31, 2026 18:34
tokenAAddress: wflowAddress,
tokenBAddress: pyusd0Address,
fee: univ3PoolFee,
priceTokenBPerTokenA: 1.0,
Copy link
Copy Markdown
Member Author

@zhangchiqing zhangchiqing Mar 31, 2026

Choose a reason for hiding this comment

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

Looking at the usages in forked_rebalance_***_test.cdc, the reverse is often set to false, and setPoolToPrice is often set with
a price that has been adjusted, so that when swapping again, the actual price with fee included could be exactly equal to the
price value passed in: setPoolToPrice(priceTokenBPerTokenA: feeAdjustedPrice(price, fee: 100, reverse: false).

We should have different test cases covering these actual usages.

That's why I'm adding some test cases in this PR

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.

1 participant