getSwapAmountsOut
Swap 시 받을 수 있는 개수를 얻을 때 사용 (FROM->TO)
Parameters
Type
Value
Description
uint
_amountIn
swap 시 바꿀 토큰 개수
address[]
_path
토큰 개수를 확인 할 토큰 쌍 주소
Return Values
Type
Value
Description
uint[]
amounts
swap 시 In/Out 토큰 개수
※Reserves를 통한 연산 방법
Example
2023.01.02
Last updated