swap
This entrypoint is designed to swap tokens by a specific DEX.
Call parameters
Field | Type | Description |
---|---|---|
pool_id |
| pool identifier. |
idx_from |
| index of input token. |
idx_to |
| index of output token. |
amount |
| amount of input token. |
min_amount_out |
| minimal amount of output token expected to receive. |
deadline |
| deadline of current operation. |
receiver |
| optional, address of the receiver of the LP tokens. If not provided the |
referral |
| optional, address of the referral of the current operation. If not provided the |
Last updated