swapExactTokensForTokens
ν ν°->ν ν°μΌλ‘ swap (FROM->TO)
Parameters
Type | Value | Description |
---|---|---|
uint | _amountIn | swapμ μ¬μ© ν ν ν° κ°μ |
uint | _amountOutMin | swapμμ νλ ν μ΅μ ν ν° κ°μ (Slippage κ° μ΄μ©) |
address[] | _path | swapμ μ¬μ© λ ν ν° μ μ£Όμ |
address | _to | swap ν κ³μ μ£Όμ |
uint | _deadline | νΈλμμ μ΅λ μκ° (νμ¬μκ°+μ’ λ£μκ°, secλ¨) |
Return Values
Type | Value | Description |
---|---|---|
uint[] | amounts | swap λ ν ν° κ°μ |
Example
2022.12.22
Last updated