Given that:
ETH
is a token user wants to sendOMG
is a fee token
ETH | OMG |
---|---|
5 | 5 |
10 | 10 |
15 | - |
20 | - |
Pick fee tokens first for the stealth inputs (because fee token is often used)
Send Amount (ETH) | Fee Amount (OMG) | Inputs | Stealth Inputs |
---|---|---|---|
5 | 3 | 5 ETH, 10 OMG | 5 OMG, 20 ETH |
35 | 8 | 20 ETH, 15 ETH, 10 OMG | 5 OMG |
35 | 15 | 20 ETH, 15 ETH, 10 OMG, 5 OMG | - |
12 | 15 | 20 ETH, 10 OMG, 5 OMG | 15 ETH |
30 | 10 | 20 ETH, 15 ETH, 10 OMG | 5 OMG |
15 | 10 | 15 ETH, 10 OMG | 5 OMG, 20 ETH |
We also need to clarify two things: