Buy with a Percentage of Your Quote Token Balance
Percentage amounts help chain a quote-token purchase with a target-token buy.
ZeroSlip now supports percentage amounts for buys. An Actions request can acquire a quote token and then use "amount": "100%" to spend that token balance on the next purchase in the same transaction.
The update is useful for tokens paired with USDC or tokenized assets when you do not want to leave an intermediate quote-token balance behind. Other percentages are supported as well, including partial-balance amounts.
For a supported full-balance purchase, the emptied token account can be closed and its rent returned. The current Trade API documentation specifies that percentage buys apply to quote-token balances rather than SOL. See Actions for the combined-operation workflow.