1. Setting Allowance for the sell token
Last updated
Last updated
For your order to be tradable, the owner account must allow the GPv2 Vault Relayer to spend the sell tokens on their behalf (if you are using an existing Balancer v2 approved token or the Balancer Vault's internal balance you may skip this step). You may either set a limited allowance (at least the amount of tokens you intend to sell) or an unlimited allowance (2**256 - 1).
This can either be done using Etherscan, e.g. to set an unlimited allowance for USDC by visiting https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48#writeProxyContract and setting.
It can also be done programmatically e.g. using the following ethers typescript snippet: