Developer
Source Code
Contract Events
event AddLiquidity(address user, uint256 xAmount, uint256 yAmount, uint256 lpAmount);
event RemoveLiquidity(address user, uint256 lpAmount, uint256 xAmount, uint256 yAmount);
event Swap(address user, bool isXtoY, uint256 xAmount, uint256 yAmount);
// note that in the Swap event, isXtoY indicates whether this is an X-to-Y swap or a Y-to-X swapObtaining Pool state
function getStats() external view returns(StatsV1 memory);
struct StatsV1{
uint64 concentration;
uint256 feeMillionth;
uint256 protocolFeeShareThousandth;
// cumulative
uint256 totalProtocolFeeX;
uint256 totalProtocolFeeY;
uint256 cumulativeVolume;
FeeRecords feeRecords;
// stats
uint256 currentX_;
uint256 currentY_;
uint256 multX_;
uint256 multY_;
uint256 totalLP_;
}Contract Addresses
BitLayer
Last updated