Links

Pair Contract

Contract info

Contract name: Bridges Lps

Read functions

getReserves

function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)
  • Reserves of tokenA and tokenB
  • Timestamp of the last update.

feeToSetter

function feeToSetter() external view returns (address);
  • The address with permission to set the Dev address for each Pair.

availableRewards

function availableRewards() public view returns(uint amount, uint paid)
  • Available rewards of msg.sender.

availableRewardsOf

function availableRewardsOf(address to) public view returns(uint amount, uint paid)
  • Available rewards of the specified address.

Main Write functions

Mint

function mint(address to) external;
  • Function called by the router to deposit the liquidity and mint the LP tokens. This function should not be used directly.
  • Emits Mint (see Events below).

Burn

function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
  • Function called by the router to withdraw the liquidity and burn the LP tokens. This function should not be used directly.
  • Emits Burn (see Events below).

Swap

function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
  • Function called by the router to swap the tokens. This function should not be used directly.
  • Emits Swap (see Events below).

setFeeToSetter

Sets address for permission to assign FeeToSetter.

Dev

Sets the Dev address for each pair.

Events

Mint

event Mint(address indexed sender, uint amount0, uint amount1);
  • Emitted whenever a mint creates a new LP tokens following a liquidity deposit.

Burn

event Burn(address indexed sender, uint amount0, uint amount1);
  • Emitted whenever a burn remove LP tokens from the circulation following a liquidity withdrawal.

Swap

event Swap(address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, addresse indexed to)
  • Emitted every time a swap occurs on the LP.

Sync

event Sync(uint112 reserve0, uint112 reserve1)
  • Emitted every time a sync is called after minting, burning, or swapping.

Interface

pragma solidity >=0.5.0;
interface IBridgesPair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
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 (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address, uint) external;
function distributeDividends(uint) external payable;
function withdraw() external;
function availableRewards() external view returns(uint, uint);
}