Sell an exact amount of one token for another on a DEX or aggregator, approving the venue automatically when needed. Slippage protection comes from --min, or --slippage applied to a quote (default 0.5%).
swaps:swap100e180xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d to 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb--using Honeyswap
# Swap using the chain default venue, capping slippage at 1% of the quote
swaps:swap100e180xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d to 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb--slippage1
# Swap 1 xDAI (native) for GNO, protected by @swaps:quote
swaps:swap1e180x0000000000000000000000000000000000000000 to 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb--min@swaps:quote(1e180x00000000000000000000000000000000000000000x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb)