In order to display the amount of tokens received on a fill market operation in the steps modals, we need to calculate it first. And since multiple orders could be filled with a single market operation, each of these having different prices, we are not completely sure how to come up with a single price to display in the message x token received:
Using the minimum value is an option, an alterative would be to display the average price, among other options. Which do you think is the best approach here?
In order to display the amount of tokens received on a fill market operation in the steps modals, we need to calculate it first. And since multiple orders could be filled with a single market operation, each of these having different prices, we are not completely sure how to come up with a single price to display in the message x token received:
Using the minimum value is an option, an alterative would be to display the average price, among other options. Which do you think is the best approach here?
Based on this PR