Developers
Search…
Welcome
Guides
Swaps
Data
Guided Tour of Balancer Vault
Resources
Deploy Pools from Factory
Pool Interfacing
Weighted Pool
Stable Pool
MetaStable Pool
Liquidity Bootstrapping Pool
Managed Pools
Oracle Pools
Pool Math
Query: How Much X for Y?
Joins and Exits
Swaps
Internal User Balances
Smart Order Router
Flash Loans
Rate Providers
veBAL and Gauges
Helpers
Using Native ETH
Encoding userData
References
Contracts
Error Codes
Subgraphs
Github
Powered By
GitBook
Stable Pool
Overview
For advantages and use cases of Stable Pools, please refer to
the standard documentation
.
For more interfaces, such as updating the
amplificationParameter
, see the
StablePool API
.
Interfacing
Some elements to consider when interfacing with Stable Pools:
Using
Stable Math
​
Pools have between 2 and 5 tokens
Pools rely on the
amplificationParameter
, which is defined at pool creation and can be gradually updated later.
Getting Pool Data
In addition to the
common pool data
, you will likely want the following data when interfacing with Stable Pools:
Amplification Parameter
The Amplification Parameter is stored at the pool level. For example, calling
1
pool.getGetAmplificationParameter()
Copied!
returns something resembling
1
value : 620000
2
isUpdating : False
3
precision : 1000
Copied!
where the amplification parameter is
v
a
l
u
e
p
r
e
c
i
s
i
o
n
=
620000
1000
=
620
\frac{value}{precision} = \frac{620000}{1000}=620
p
rec
i
s
i
o
n
v
a
l
u
e
​
=
1000
620000
​
=
620
in this case.
Previous
Weighted Pool
Next
MetaStable Pool
Last modified
7mo ago
Copy link
Contents
Overview
Interfacing
Getting Pool Data
Amplification Parameter