Skip to content

Conversation

@thekamalsain
Copy link

  • Resolved an issue where slippage value of 0 was incorrectly treated as falsy, causing it to default to MAX_ACTIVE_BIN_SLIPPAGE.
  • Updated the logic to explicitly check for null or undefined, allowing 0 to be correctly processed.

- Resolved an issue where slippage value of 0 was incorrectly treated as falsy, causing it to default to MAX_ACTIVE_BIN_SLIPPAGE.
- Updated the logic to explicitly check for null or undefined, allowing 0 to be correctly processed.
@jorgez19
Copy link

@thekamalsain I am trying to set slippage to 1%, do you know if I should enter 1, 0.01, or 100 for slippage? Thanks in advance!

@thekamalsain
Copy link
Author

thekamalsain commented Jan 30, 2025

@thekamalsain I am trying to set slippage to 1%, do you know if I should enter 1, 0.01, or 100 for slippage? Thanks in advance!

@jorgez19 Yes, you need to pass it as 1.

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