Skip to content

Commit

Permalink
docs: batch Router docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkflow27 committed Apr 15, 2024
1 parent b20fd38 commit 3d1d789
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/concepts/pools/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Hooks introduce a new approach to managing a pool's execution logic. They are de
- Automatic Gauge locking
- Sell or Buy limits

## Hook requirements

A hook is a codeblock that implements arbitrary logic in a pool or external contract. In order to use hooks as part of a pool's operations two steps need to be done.

Expand Down
5 changes: 5 additions & 0 deletions docs/concepts/router/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ order: 0
title: Overview
---
# Router Onchain API

::: info
Interactions with Balancer via the Router require either interaction with the `Router` or `BatchRouter`. The `BatchRouter` handles batch swaps & batch queries. Placing batch functionality in a separate contract was required due to the bytecode size limit of the EVM.
:::

The Router is the recommended entrypoint for user operations. It provides functions to both query and execute `swap`, `addLiquidity` and `removeLiquidity` operations against the Balancer vault.
[Transient Accounting](/concepts/vault/features/transient-accounting.html) enables a simple query system that ensures query functions will always return the exact same outcome as their state-changing counterpart.

Expand Down

0 comments on commit 3d1d789

Please sign in to comment.