getLiquidityPair
페어 토큰을 통해 각 토큰의 비율을 얻을 때 사용(페어스테이킹)
Parameters
Type
Value
Description
address
_tokenA
LP 토큰A 주소
address
_tokenB
LP 토큰B 주소
uint256
_amountIn
얻으려는 수량
Return Values
Type
Value
Description
uint256
amountA
tokenA의 개수
uint256
amountB
tokenB의 개수
※Reserves를 통한 연산 방법
Example
2023.01.11
Last updated