swapTokensForExactETH
ν ν°->μ½μΈμΌλ‘ swap (TO->FROM)
β» μ½μΈμ msg.value ννλ‘ μΆκ°
Parameters
Type | Value | Description |
---|---|---|
uint | _amountOut | swapμ ν΅ν΄ νλ ν ν ν° κ°μ (Slippage κ° μ΄μ©) |
uint | _amountInMax | 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