Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyscott18/uniswap-grant-demo
https://github.com/kyscott18/uniswap-grant-demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyscott18/uniswap-grant-demo
- Owner: kyscott18
- Created: 2023-07-28T13:20:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-23T19:45:05.000Z (over 1 year ago)
- Last Synced: 2024-04-15T05:16:25.313Z (9 months ago)
- Language: Solidity
- Size: 170 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uniswap Grant Demo
Implementation of custom positions contract for Uniswap V3. This contract uses [ilrta](https://github.com/kyscott18/ilrta), a framework for creating custom but composable token standards.
## Gas Benchmarking
| | Uniswap V3|Uniswap V3 + ilrta|
|--------------------------|-----------|------------------|
|Add liquidity (cold) | 295,220| 170,144|
|Add liquidity (hot) | 144,646| 153,044|
|Remove liquidity (partial)| 171,229| |
|Remove liquidity (full) | 158,917| |## Function Calls
|Event | Count|
|-----------------|--------|
|Mint | 585,729|
|Add liquidity | 171,979|
|Remove liquidity | 544,659|## Gas Savings
|Gas Price (gwei)|Gas Savings (eth)|
|----------------|-----------------|
|25 | 1,795.4|
|50 | 3,590.8|
|75 | 5,386.2|
|100 | 7,181.6|## Recreating
Function invocation count was found using [dune analyitics](https://dune.com/queries/2780357)
### Scripts
```sh
pnpm installpnpm build
# To run standard uniswap v3 benchmarks
pnpm bun benchmarks/uniswap-v3/index.ts# To run ilrta + uniswap v3 benchmarks
pnpm bun benchmarks/ilrta-uniswap-v3/index.ts
```