buy_token
Buy tokens on Basis protocol using USDB with elastic pricing that increases price with demand. Preview purchases to adjust for token-specific tax rates in slippage.
Instructions
Buy a token using USDB. Elastic supply — buying increases price. Previews before executing. NOTE: Floor+ tokens (multiplier 1-99) and prediction market tokens have 1.5% tax, other tokens have 0.5% — account for this in slippage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token name (STASIS) or address | |
| amount_usdb | Yes | USDB to spend | |
| slippage_percent | No | Max slippage % (default: 1) | |
| wrap | No | Wrap output to wSTASIS (default: false) |