swapETHForExactTokens
μ½μΈ->ν ν°μΌλ‘ swap (TO->FROM)
β» μ½μΈμ value ννλ‘ μΆκ°
Parameters
Type | Value | Description |
---|---|---|
uint | _amountOut | swapμ ν΅ν΄ νλ ν ν ν° κ°μ (Slippage κ° μ΄μ©) |
address[] | _path | swapμ μ¬μ© λ ν ν° μ μ£Όμ |
address | _to | swap ν κ³μ μ£Όμ |
uint | _deadline | νΈλμμ μ΅λ μκ° (νμ¬μκ°+μ’ λ£μκ°, secλ¨) |
Return Values
Type | Value | Description |
---|---|---|
uint[] | amounts | swap λ ν ν° κ°μ |
Example
2022.12.23
Last updated