KLAYswap
Search…
Store
This contract has price information that reflects the amount and time weight of the tokens held by the LP. The priceACumulativeLast and priceBCumulativeLast you have are TWCP (Time-Weighted Cumulative Price), which is time weighted price information. The quantity and price information of this contract will be used in Price Oracle.

Address

Read-Only Functions

Read-Only Functions

Read-Only Functions

reserveA
1
function reserveA(address pool) public view returns (uint112 _reserveA)
Copied!
  • Amount of TokenA held by LP
reserveB
1
function reserveB(address pool) public view returns (uint112 _reserveB)
Copied!
  • Amount of TokenB held by LP
priceACumulativeLast
1
function priceACumulativeLast(address pool) public view returns (uint112 _priceA)
Copied!
  • Time-Weighted Cumulative Price of TokenA held by LP
priceBCumulativeLast
1
function priceBCumulativeLast(address pool) public view returns (uint112 _priceB)
Copied!
  • Time-Weighted Cumulative Price of TokenB held by LP
getReserves
1
function getReserves(address pool) public view returns (uint112 _reserveA, uint112 _reserveB, uint32 _blockTimestampLast)
Copied!
  • Amount of held by LP and TWCP information
  • Parameter
    • _reserveA : Amount of tokenA held by LP
    • _reserveB : Amount of tokenB held by LP
    • _blockTimestampLast : BlockTime at which LP was last calculated