Skip to content

feat: update stable swap impl option 1#47

Closed
chefrabbid wants to merge 3 commits into
mainfrom
feat/stable-swap-tweak-option-1
Closed

feat: update stable swap impl option 1#47
chefrabbid wants to merge 3 commits into
mainfrom
feat/stable-swap-tweak-option-1

Conversation

@chefrabbid

@chefrabbid chefrabbid commented Jun 4, 2025

Copy link
Copy Markdown

his PR update stableSwap router using option 1

The new change allows the user to use amountIn or contract balance
This PR update it to respect amountIn

@chefrabbid chefrabbid changed the title feat: update stable swap impl feat: update stable swap impl option 1 Jun 4, 2025
assertGt(ERC20(token1()).balanceOf(FROM), BALANCE);
}

function test_stableSwap_ExactInput0For1_Twice_FromRouter() public {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this test was previously failing as stableSwapRouter amountIn is token.balanceOf(address(universal_router)) always

@ChefMist

ChefMist commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

after internal discussion -- choosing #46 instead of this PR

@chefrabbid chefrabbid closed this Jun 4, 2025
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.

2 participants