getShareOfPool
์ ๋์ฑ ํ์ ์ง๋ถ์จ ๊ตฌํ ๋ ์ฌ์ฉ
Parameters
Type
Value
Description
address
_tokenA
LP ํ ํฐA ์ฃผ์
address
_tokenB
LP ํ ํฐB ์ฃผ์
uint
_amountADesired
LP ํ ํฐA ๊ฐ์
uint
_admoutBDesired
LP ํ ํฐB ๊ฐ์
bool
_owned
์์ ์ค์ธ ์ ๋์ฑ ํ ์ง๋ถ์จ ํ์ธ ์ฌ๋ถ true : ์์ ์ค์ธ ์ ๋์ฑ ํ ์ง๋ถ์จ false : ๊ฐ์ ์ํ ์ ๋์ฑ ํ ์ง๋ถ
Return Values
Type
Value
Description
uint
poolRatio
์ง๋ถ % 1๋ง์๋ฆฌ(๋ฐฑ๋ถ์จ, ์์์ 2๊น์ง ํํ)
โป Reserves๋ฅผ ํตํ ์ฐ์ฐ ๋ฐฉ๋ฒ
Example
2023.01.11
Last updated