UniswapV2Factory Smart Contract Module in Bunzz

This module allows you to create uniswap liquidity pair contracts and you can fetch the pair address of any ERC20 token that has an active pair.

The UniswapV2Factory holds the generic bytecode responsible for powering pairs. Its primary job is to create one and only one smart contract per unique token pair. It also contains logic to turn on the protocol charge.

You can access this Module and the code here: https://bit.ly/3yXidVI

How to Use

Pairs have two primary purposes: 

  • Serving as automated market makers and
  • Keeping track of pool token balances. 

They also expose data which can be used to build decentralized price oracles.

Functions

#WRITE

  • createPair
  • setFeeTo
  • setFeeToSetter

#READ

  • allPairs
  • allPairsLength
  • feeTo
  • feeToSetter
  • getPair

You can access this Module and the code here: https://bit.ly/3yXidVI

If you still haven’t signed up to Bunzz, what are you waiting for?

Sign up here https://app.bunzz.dev/signup and get your smart contracts deployed in 5 minutes through our great GUI.

Share this article: