This PR fixes the computation of shares and underlying in the WithdrawExchangeAssetBatch and WithdrawExchangeAsset using the round rate to and recipeAmount to calculate the correct exchangeAssetAmount instead of using the one available in the event (because in the batch version of the event this value is the total amount burned between multiple tickets).
Tests have been updated to reflect this computation.
This PR fixes the computation of shares and underlying in the
WithdrawExchangeAssetBatch
andWithdrawExchangeAsset
using the round rate to andrecipeAmount
to calculate the correctexchangeAssetAmount
instead of using the one available in the event (because in the batch version of the event this value is the total amount burned between multiple tickets). Tests have been updated to reflect this computation.