Skip to content

Commit

Permalink
feat: Amplification ratio (#5)
Browse files Browse the repository at this point in the history
* feat: Amplification ratio

* rename to simply default

* default dynamic slippage to avoid collision in jupiter-core-rs
  • Loading branch information
Arrowana authored Sep 19, 2024
1 parent 4577b2f commit 9da7c4b
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 15 deletions.
193 changes: 192 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ edition = "2021"

[dependencies]
itertools = "0.13.0"
rust_decimal = "1.36.0"
rust_decimal_macros = "1.36.0"
serde = "1.0.208"
serde_json = "1.0.125"
solana-program = "2.0.6"
1 change: 1 addition & 0 deletions dynamic_slippage_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
],
"default": {
"amplificatioRatio": 1.5,
"range": {
"min": 30,
"max": 300
Expand Down
Loading

0 comments on commit 9da7c4b

Please sign in to comment.