RootButtonswapRouter
Inherits: IRootButtonswapRouter
State Variables
BPS
uint256 private constant BPS = 10_000;
factory
Returns the address of the Buttonswap Factory
address public immutable override factory;
Functions
constructor
constructor(address _factory);
_addLiquidity
function _addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
uint16 movingAveragePrice0ThresholdBps
) internal virtual returns (uint256 amountA, uint256 amountB);
_addLiquidityWithReservoir
function _addLiquidityWithReservoir(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin
) internal virtual returns (uint256 amountA, uint256 amountB);
_swap
function _swap(uint256[] memory amounts, address[] memory path, address _to) internal virtual;