Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Nov 4, 2024
1 parent 052139b commit 5004eec
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,12 @@ const docTemplate = `{
"description": "Slippage tolerance multiplier for the simulation. If simulatorAddress is provided, this must be provided.",
"name": "simulationSlippageTolerance",
"in": "query"
},
{
"type": "boolean",
"description": "Boolean flag indicating whether to append the base fee to the quote. False by default.",
"name": "appendBaseFee",
"in": "query"
}
],
"responses": {
Expand Down
6 changes: 6 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@
"description": "Slippage tolerance multiplier for the simulation. If simulatorAddress is provided, this must be provided.",
"name": "simulationSlippageTolerance",
"in": "query"
},
{
"type": "boolean",
"description": "Boolean flag indicating whether to append the base fee to the quote. False by default.",
"name": "appendBaseFee",
"in": "query"
}
],
"responses": {
Expand Down
5 changes: 5 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,11 @@ paths:
in: query
name: simulationSlippageTolerance
type: string
- description: Boolean flag indicating whether to append the base fee to the
quote. False by default.
in: query
name: appendBaseFee
type: boolean
produces:
- application/json
responses:
Expand Down
1 change: 1 addition & 0 deletions router/delivery/http/router_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func NewRouterHandler(e *echo.Echo, us mvc.RouterUsecase, tu mvc.TokensUsecase,
// @Param applyExponents query bool false "Boolean flag indicating whether to apply exponents to the spot price. False by default."
// @Param simulatorAddress query string false "Address of the simulator to simulate the quote. If provided, the quote will be simulated."
// @Param simulationSlippageTolerance query string false "Slippage tolerance multiplier for the simulation. If simulatorAddress is provided, this must be provided."
// @Param appendBaseFee query bool false "Boolean flag indicating whether to append the base fee to the quote. False by default."
// @Success 200 {object} domain.Quote "The computed best route quote"
// @Router /router/quote [get]
func (a *RouterHandler) GetOptimalQuote(c echo.Context) (err error) {
Expand Down

0 comments on commit 5004eec

Please sign in to comment.