@@ -16,8 +16,8 @@ type RouteMock struct {
1616 GetPoolsFunc func () []domain.RoutablePool
1717 GetTokenOutDenomFunc func () string
1818 GetTokenInDenomFunc func () string
19- PrepareResultPoolsExactAmountInFunc func (ctx context.Context , tokenIn types.Coin , logger log.Logger ) ([]domain.RoutablePool , math.LegacyDec , math.LegacyDec , error )
20- PrepareResultPoolsExactAmountOutFunc func (ctx context.Context , tokenOut types.Coin , logger log.Logger ) ([]domain.RoutablePool , math.LegacyDec , math.LegacyDec , error )
19+ PrepareResultPoolsExactAmountInFunc func (ctx context.Context , tokenIn types.Coin , spotPriceCalculator domain. SpotPriceQuoteCalculator , logger log.Logger ) ([]domain.RoutablePool , math.LegacyDec , math.LegacyDec , error )
20+ PrepareResultPoolsExactAmountOutFunc func (ctx context.Context , tokenOut types.Coin , spotPriceCalculator domain. SpotPriceQuoteCalculator , logger log.Logger ) ([]domain.RoutablePool , math.LegacyDec , math.LegacyDec , error )
2121 StringFunc func () string
2222
2323 GetAmountInFunc func () math.Int
@@ -79,16 +79,17 @@ func (r *RouteMock) GetTokenInDenom() string {
7979}
8080
8181// PrepareResultPoolsOutGivenIn implements domain.Route.
82- func (r * RouteMock ) PrepareResultPoolsOutGivenIn (ctx context.Context , tokenIn types.Coin , logger log.Logger ) ([]domain.RoutablePool , math.LegacyDec , math.LegacyDec , error ) {
82+ func (r * RouteMock ) PrepareResultPoolsOutGivenIn (ctx context.Context , tokenIn types.Coin , spotPriceCalculator domain. SpotPriceQuoteCalculator , logger log.Logger ) ([]domain.RoutablePool , math.LegacyDec , math.LegacyDec , error ) {
8383 if r .PrepareResultPoolsExactAmountInFunc != nil {
84- return r .PrepareResultPoolsExactAmountInFunc (ctx , tokenIn , logger )
84+ return r .PrepareResultPoolsExactAmountInFunc (ctx , tokenIn , spotPriceCalculator , logger )
8585 }
8686
8787 panic ("unimplemented" )
8888}
89- func (r * RouteMock ) PrepareResultPoolsExactAmountOut (ctx context.Context , tokenIn types.Coin , logger log.Logger ) ([]domain.RoutablePool , math.LegacyDec , math.LegacyDec , error ) {
89+
90+ func (r * RouteMock ) PrepareResultPoolsExactAmountOut (ctx context.Context , tokenIn types.Coin , spotPriceCalculator domain.SpotPriceQuoteCalculator , logger log.Logger ) ([]domain.RoutablePool , math.LegacyDec , math.LegacyDec , error ) {
9091 if r .PrepareResultPoolsExactAmountOutFunc != nil {
91- return r .PrepareResultPoolsExactAmountOutFunc (ctx , tokenIn , logger )
92+ return r .PrepareResultPoolsExactAmountOutFunc (ctx , tokenIn , spotPriceCalculator , logger )
9293 }
9394
9495 panic ("unimplemented" )
@@ -119,5 +120,7 @@ func (r *RouteMock) GetAmountOut() math.Int {
119120 panic ("unimplemented" )
120121}
121122
122- var _ domain.Route = & RouteMock {}
123- var _ domain.SplitRoute = & RouteMock {}
123+ var (
124+ _ domain.Route = & RouteMock {}
125+ _ domain.SplitRoute = & RouteMock {}
126+ )
0 commit comments