Skip to content

Commit

Permalink
fix: refactored pool logic in a common LiquidityPool interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Pitasi committed Jun 14, 2022
1 parent ca08362 commit edc52f1
Show file tree
Hide file tree
Showing 14 changed files with 472 additions and 504 deletions.
6 changes: 5 additions & 1 deletion cmd/api-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,17 @@ func main() {
l.Panicw("cannot initialize sdk-service clients", "error", err)
}

osmosisClient := usecase.NewOsmosisClient("osmosis:9090")

crescentClient := usecase.NewCrescentClient("crescent:9090")

priceOracle := poclient.NewPOClient("http://price-oracle:8000")

denomer := usecase.NewDatabaseDenomer(dbi)

denomPricer := usecase.NewPriceOracleDenomPricer(denomer, dbi, priceOracle)

app := usecase.NewApp(sdkServiceClients, denomPricer)
app := usecase.NewApp(sdkServiceClients, osmosisClient, crescentClient, denomPricer)

r := router.New(
dbi,
Expand Down
82 changes: 82 additions & 0 deletions mocks/LiquidityPool.go

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

71 changes: 0 additions & 71 deletions mocks/PaginatedRequest.go

This file was deleted.

71 changes: 0 additions & 71 deletions mocks/PaginatedResponse.go

This file was deleted.

117 changes: 0 additions & 117 deletions mocks/PoolPriceStrategy.go

This file was deleted.

Loading

0 comments on commit edc52f1

Please sign in to comment.