Skip to content

Commit

Permalink
Duality adapter (#121)
Browse files Browse the repository at this point in the history
* duality adaptor working draft

* route calc

* add first sim

* simulate-out

* calculate_spot_price

* spot price query

* smart swap sims to use regualr swap

* cosmos-msg support

* switch to stargate msg

* use native stargate call

* tests

* snall fixes

* push for Julian

* import cleanup

* use spot price for limit order estimation

* price calulation fixes + user dex module as creator

* lint

* misc cleanup

* execute message

* fix dep issues

* fix queries, tests, and a bunch of other things

* fix and test parse_and_validate_price

* small fix

* clippy and format

---------

Co-authored-by: Julian Compagni Portis <[email protected]>
  • Loading branch information
NicholasDotSol and jcompagni10 authored Aug 6, 2024
1 parent 7fca8b8 commit 81a4477
Show file tree
Hide file tree
Showing 10 changed files with 1,718 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Cargo.lock

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

33 changes: 33 additions & 0 deletions contracts/adapters/swap/duality/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "skip-go-swap-adapter-duality"
version = { workspace = true }
rust-version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
homepage = { workspace = true }
repository = { workspace = true }
documentation = { workspace = true }
keywords = { workspace = true }

[lib]
crate-type = ["cdylib", "rlib"]

[features]
# for more explicit tests, cargo test --features=backtraces
backtraces = ["cosmwasm-std/backtraces"]
# use library feature to disable all instantiate/execute/query exports
library = []

[dependencies]
neutron-sdk = "0.10.0"
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true }
cw2 = { workspace = true }
cw20 = { workspace = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
skip = { workspace = true }
thiserror = { workspace = true }
[dev-dependencies]
test-case = { workspace = true }
Loading

0 comments on commit 81a4477

Please sign in to comment.