swapTokensForExactTokens
ν ν°->ν ν°μΌλ‘ swap (TO->FROM)
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