I'm trying to call addLiquidity
on the Liquidity Baking CPMM. I've already called xtzToToken
on the CPMM and given my address tzBTC. I can see that my address has tokens on the tzBTC contract when I look at that contracts storage. The CPMM tells me I have 300000004 tokens I believe.
My address also has allowances declared on the tzBTC contract that allow the CPMM to spend it's tokens., the allowance is only 10 and when I try to chance it I get an UnsafeAllowanceChange
error.
I want to make my allowance something super high that I don't have to worry about reaching the allowance when I call addLiquidity
. How can I get past this error?
Here is what I'm trying to run:
# call approve on the tzBTC contract
tezos-client transfer 0 from alice to KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN \
--entrypoint approve \
--arg '(Pair "KT1VqarPDicMFn1ejmQqqshUkUXTCTXwmkCN" 99954268)' \
--burn-cap 999