v2-core
v2-periphery
Our great sponsors
v2-core | v2-periphery | |
---|---|---|
16 | 10 | |
2,808 | 1,063 | |
2.7% | 2.4% | |
0.0 | 0.0 | |
29 days ago | 29 days ago | |
TypeScript | Solidity | |
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.
[0] https://github.com/Uniswap/v2-core
-
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
v2-periphery
-
Uniswap Deep Dive 1:
For source code, Uniswap V2 Core and Uniswap V2 Peripheral
-
Can I directly swap ETH with an ERC-20 token on DEX like Uniswap?
u/lapurita is right. Uniswap has periphery contracts which are created solely to make the end user experience easier. They have a function to swap ETH for tokens, but the first step is to convert ETH to WETH and then make the swap. Take a look at the Uniswap (v2) source code to see for yourself: https://github.com/Uniswap/v2-periphery/blob/master/contracts/UniswapV2Router02.sol
-
Difference between UniV2Router02 and UniV2Router01?
UniV2Router02
-
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.
-
Transaction has Input but no Output. Can someone help me understand why this transaction is failing on the function call?
I've never implemented a flash swap, but I don't see where you exchange anything before your callback to resolve the initial amount. Have you seen Uniswap's full example?
-
[ETH-Brownie] How can I import from github when the version number includes letters and numbers?
However, I am having trouble importing the Uniswap/v2-periphery because the only tag is 1.0.0-beta.0 shown here. I've tried importing in the following ways with no success:
-
How can you execute a function if a contract on has external functions?
Learning about flash swaps on uniswap and I'm reading thru this example code and i noticed that this contract only has external functions.
-
Automating flash loan arbitrage, flash swaps, and/or liquidations
https://github.com/pdaian/flashboys2 https://github.com/kmadorin/flashbot https://www.smartcontractresearch.org/t/research-summary-coding-a-defi-arbitrage-bot/282 https://github.com/ExtropyIO/defi-bot https://github.com/search?q=flash+loan+arbitrage https://blog.infura.io/build-a-flash-loan-arbitrage-bot-on-infura-part-i/ https://blog.infura.io/build-a-flash-loan-arbitrage-bot-on-infura-part-ii/ https://medium.datadriveninvestor.com/maximizing-your-arbitrage-flash-loans-2cbb4c99ed80 https://medium.com/flashbots/frontrunning-the-mev-crisis-40629a613752 https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/examples/ExampleFlashSwap.sol
- Does JavaScript Really Help?
- How Does Uniswap Work?
What are some alternatives?
uniswap-v2-periphery - 🎚 Peripheral smart contracts for interacting with Uniswap V2 [Moved to: https://github.com/Uniswap/v2-periphery]
flashbot
erc-1155 - Ethereum Semi Fungible Standard (ERC-1155)
BEP20-Contract-Template - Standard BEP20 Smart Contract BSC (binance smart chain) & Custom Contract.
pancake-swap-core - Core smart contracts
chainlink-mix - Working with smart contracts with eth-brownie, python, and Chainlink.
erc20-balance - 💎 Get 2000+ ERC-20 token balances with JavaScript. Supports Node.js and Deno
v1-contracts - 🐍Uniswap V1 smart contracts
revoke.cash - ❌ Revoke or update your token approvals
defi-bot - Tutorial for building DeFi arbitrage bots
human-standard-token-abi - A JSON ABI for the Ethereum ERC 20 Token Standard
OB_ReturnCabin - Orbiter Finance smart contracts