I have a project where users can buy items with various ERC20 tokens but I want to provide an exchange for them so that they don't have to go to the other site and exchange them. So lets say that ITEM A costs x amount of TOKEN A but the buyer only has TOKEN B. What I want to do is let the buyer buy items in any currency but for a given exchange rate.
Is that possible to do with Uniswap and how would I integrate Uniswap into my smart contract that currently does just a simple transfer from one account to another. I've gone through bunch of tutorials but none of them show how to properly integrate Uniswap.