Skip to content

fix(rate): strip whitespace from swap rate strings in calculate_to_amount#428

Open
jony376 wants to merge 1 commit into
entrius:testfrom
jony376:fix/swap-rate-string-trim
Open

fix(rate): strip whitespace from swap rate strings in calculate_to_amount#428
jony376 wants to merge 1 commit into
entrius:testfrom
jony376:fix/swap-rate-string-trim

Conversation

@jony376
Copy link
Copy Markdown

@jony376 jony376 commented May 28, 2026

Summary

Strip whitespace from swap rate strings in calculate_to_amount so padded on-chain rates parse consistently across miner, validator, and CLI.

Related Issues

Closes #427

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

…ount

Co-authored-by: Cursor <cursoragent@cursor.com>
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Padded swap rate strings break calculate_to_amount

1 participant