Uniswap DeFi project
Uniswap DeFi is a fully decentralized on-chain protocol for token exchange on Ethereum that uses liquidity pools instead of order books. Anyone can quickly swap between ETH and any ERC20 token or earn fees by supplying any amount of liquidity.
In Uniswap DeFi, each token has its own smart contract and liquidity pool. If there’s no smart contract for a given token, anyone can create one using the ‘factory’ contract. Only one contract can be deployed for each token address.
Uniswap allows only one market per ERC20 token. The market creator sets the exchange rate, which shifts through trading due to Uniswap’s “constant product market maker” mechanism. When trading reduces one side of the pair’s liquidity relative to the other, the price changes. This creates arbitrage opportunities, encouraging more trading.
Uniswap has no native token, but each liquidity pair is represented by a unique, freely-transferable ERC20 token. All fees (0.3% per trade) are added to the relevant liquidity pool; thus all fees go to liquidity providers in proportion to their share of the pool’s liquidity. Liquidity providers can add to or withdraw their funds at any time.
Uniswap is an automated liquidity protocol powered by a constant product formula and implemented in a system of non-upgradeable smart contracts on the Ethereum blockchain. It obviates the need for trusted intermediaries, prioritizing decentralization, censorship resistance, and security. Uniswap is open-source software licensed under the GPL.
Each Uniswap DeFi smart contract, or pair, manages a liquidity pool made up of reserves of two ERC-20 tokens.
Anyone can become a liquidity provider for a pool by depositing an equivalent value of each underlying token in return for pool tokens. These tokens track pro-rata LP shares of the total reserves, and can be redeemed for the underlying assets at any time.