38 lines
1.7 KiB
Solidity
38 lines
1.7 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.36;
|
|
|
|
interface IFluxPair {
|
|
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
|
|
event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to);
|
|
event Swap(
|
|
address indexed sender,
|
|
uint256 amount0In,
|
|
uint256 amount1In,
|
|
uint256 amount0Out,
|
|
uint256 amount1Out,
|
|
address indexed to
|
|
);
|
|
event Sync(uint112 reserve0, uint112 reserve1);
|
|
|
|
function factory() external view returns (address);
|
|
function token0() external view returns (address);
|
|
function token1() external view returns (address);
|
|
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
|
|
function price0CumulativeLast() external view returns (uint256);
|
|
function price1CumulativeLast() external view returns (uint256);
|
|
function minimumLiquidity() external view returns (uint256);
|
|
|
|
function initialize(address firstToken, address secondToken) external;
|
|
function mint(address to) external returns (uint256 liquidity);
|
|
function burn(address to) external returns (uint256 amount0, uint256 amount1);
|
|
function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external;
|
|
function skim(address to) external;
|
|
function sync() external;
|
|
|
|
function totalSupply() external view returns (uint256);
|
|
function balanceOf(address owner) external view returns (uint256);
|
|
function transfer(address to, uint256 value) external returns (bool);
|
|
function transferFrom(address from, address to, uint256 value) external returns (bool);
|
|
function approve(address spender, uint256 value) external returns (bool);
|
|
}
|