Search code examples
ethereumsmartcontractscryptocurrencybinance-smart-chain

Control price change after every swap in DEX


I am new to the development of DEX. Can we able to control the price of our own token of certain increase/decrease in price after every swap through swapping router contract. https://testnet.bscscan.com/address/0xD99D1c33F9fC3444f8101754aBC46c52416550D1#code


Solution

  • The only way to control the price of the swap on a bonding curve exchange is to trade against it.

    If someone sells, you buy.

    If someone buys, you sell.