Closed edmulraney closed 1 year ago
It looks good, although I'm not sure how precise the withdrawal prediction is (particularly those cases where we rely on calc_withdraw_one_coin()
). Maybe we need to add a slight slippage tolerance (e.g. 0.1%).
Have you tried each case (bLUSD, LUSD, both)?
Good suggestion on fixing a min slippage. This should reduce transaction failure.
With a slippage of 0.1% I didn't receive any failed transactions on a mainnet fork, for each case: bLUSD, LUSD and both.
Specify min out parameters for Curve liquidity withdrawals.