eth_call
to get numerical results without spending any gas.query*
from a contract!!!queryBatchSwap
, queryJoin
, or queryExit
to calculate limits
, maxAmountsIn
, or minAmountsOut
, this is ONLY useful if you simulate these calls OUTSIDE of the transaction you end up making. You SHOULD NOT call these functions from a smart contract at transaction time.bb-a-USD
you'll get for an amount of DAI
, you'll need to use queryBatchSwap
on a trade route that swaps DAI
for bb-a-DAI
and then swaps bb-a-DAI
for bb-a-USD
. queryBatchSwap
queryBatchSwap
function in the Vault
. This functionality is important if not crucial for calculating your limits when constructing your batchSwap
arguments.queryJoin
queryJoin
in BalancerHelpers
. This functionality is important for calculating maxAmountsIn
and/or minBptOut
on joins queryExit
queryExit
in BalancerHelpers
. This functionality is important for calculating minAmountsOut
and/or maxBptIn
on exits.