Trade Detail View
Overview
Everything is in units of BNB.
Interfaces determines the price differential the Buy/Sell direction.
User Buys the TOMO via the pool, then SELLs it via the DEX (or vice versa).
Show them their wallet so they know what their assets are.
New price = priceRune * (x + X) / (Y - y)
Reward = y * marketPrice
Direction
If priceDiff < 0
, then we:
- Give the opposite guidance
- Enable the opposite buttons (buy, sell)
Edge Cases
Grey out the button which can't be completed if no assets:
Edited by JP