Skip to content

trade size under update - #474

Open
rouzwelt wants to merge 2 commits into
2026-09-04-gas-boostfrom
2026-09-04-trade-size-finder
Open

rouzwelt wants to merge 2 commits into
2026-09-04-gas-boostfrom
2026-09-04-trade-size-finder

Conversation

@rouzwelt

@rouzwelt rouzwelt commented Sep 4, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Solution

Checks

By submitting this for review, I'm confirming I've done the following:

  • made this PR as small as possible
  • unit-tested any new functionality
  • linked any relevant issues or PRs
  • included screenshots (if this involves a front-end change)

Summary by CodeRabbit

  • New Features

    • Router trade sizing now searches for the most profitable input amount instead of always prioritizing the full trade size.
    • Full-size trades remain available when they provide the best result.
    • Improved support for routes with low-decimal tokens and price-impact limits.
  • Bug Fixes

    • Improved retry handling when a trade exceeds available output balance.
    • Dry-run retries now recalculate the best trade size while excluding previously failed routes.

@rouzwelt rouzwelt self-assigned this Sep 4, 2026
@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 447c20d8-919b-4f2b-af03-028347939336

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rouzwelt
rouzwelt changed the base branch from 2026-09-04-gas-boost to master September 19, 2026 00:24
@rouzwelt
rouzwelt changed the base branch from master to 2026-09-04-gas-boost September 19, 2026 00:26

This branch is being deployed

1 in progress deployment
preview — 2f0cab13 Deployed Sep 4, 2026 by github-actions[bot]
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