Skip to content

Commit

Permalink
bump sqsdomain to new tag (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn authored Sep 17, 2024
1 parent 02455d3 commit 1de8c7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/osmosis-labs/osmosis/osmomath v0.0.13
github.com/osmosis-labs/osmosis/osmoutils v0.0.13
github.com/osmosis-labs/osmosis/v26 v26.0.0-rc1
github.com/osmosis-labs/sqs/sqsdomain v0.19.0
github.com/osmosis-labs/sqs/sqsdomain v0.26.0
github.com/prometheus/client_golang v1.20.0
github.com/sirupsen/logrus v1.9.3
github.com/spf13/viper v1.19.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ github.com/osmosis-labs/osmosis/x/epochs v0.0.5-0.20240825083448-87db4447a1ff h1
github.com/osmosis-labs/osmosis/x/epochs v0.0.5-0.20240825083448-87db4447a1ff/go.mod h1:7ylCTvH4gEtZ5E8paiwSjmOzOKOOls8Br45W9uwWnP0=
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.0-20240825083448-87db4447a1ff h1:OZGMwv/Km6xnIB16d4zghFf0x7K9JlWqRaxgOVBIv7Y=
github.com/osmosis-labs/osmosis/x/ibc-hooks v0.0.0-20240825083448-87db4447a1ff/go.mod h1:AXHoG4L1AMDCMEGeSdzcy7ik2mBt5fTyzEAWlGt+aSc=
github.com/osmosis-labs/sqs/sqsdomain v0.19.0 h1:Ltd/dFU71ryCmwyxnpTLUD+35gE7v5UNRXXpn8cnCfc=
github.com/osmosis-labs/sqs/sqsdomain v0.19.0/go.mod h1:HPczKMkVKve0kbuTvngNSZ3TAonApOhYdWSQ4WbAalY=
github.com/osmosis-labs/sqs/sqsdomain v0.26.0 h1:Yji7lFT7bnYM6Xe/TI30SXvnQjjk8wBWY0QeOWJIo3Y=
github.com/osmosis-labs/sqs/sqsdomain v0.26.0/go.mod h1:HPczKMkVKve0kbuTvngNSZ3TAonApOhYdWSQ4WbAalY=
github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=
Expand Down
10 changes: 0 additions & 10 deletions router/usecase/router_usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,16 +449,6 @@ func (r *routerUseCaseImpl) GetCustomDirectQuote(ctx context.Context, tokenIn sd
return nil, fmt.Errorf("denom %s in pool %d: %w", tokenOutDenom, poolID, ErrTokenOutDenomPoolNotFound)
}

// Retrieve taker fee for the pool
takerFee, ok := r.routerRepository.GetTakerFee(tokenIn.Denom, tokenOutDenom)
if !ok {
return nil, fmt.Errorf("taker fee not found for pool %d, denom in (%s), denom out (%s)", poolID, tokenIn.Denom, tokenOutDenom)
}

// Create a taker fee map with the taker fee for the pool
takerFeeMap := sqsdomain.TakerFeeMap{}
takerFeeMap.SetTakerFee(tokenIn.Denom, tokenOutDenom, takerFee)

// create candidate routes with given token out denom and pool ID.
candidateRoutes := r.createCandidateRouteByPoolID(tokenOutDenom, poolID)

Expand Down

0 comments on commit 1de8c7a

Please sign in to comment.