Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/transmissions11/libcompound
Get up to date cToken data using 20% less gas without mutating state.
https://github.com/transmissions11/libcompound
Last synced: 2 months ago
JSON representation
Get up to date cToken data using 20% less gas without mutating state.
- Host: GitHub
- URL: https://github.com/transmissions11/libcompound
- Owner: transmissions11
- License: agpl-3.0
- Created: 2022-01-09T02:43:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T18:40:27.000Z (about 2 years ago)
- Last Synced: 2024-10-31T17:51:50.864Z (2 months ago)
- Language: Solidity
- Homepage:
- Size: 56.6 KB
- Stars: 67
- Watchers: 3
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libcompound
Get up to date cToken data using 20% less gas without mutating state.
## Gas Benchmarks
Benchmarks taken from a recent run of the [test suite](src/test) on a mainnet fork.
### LibCompound
| Method | balanceOfUnderlying Gas | exchangeRateCurrent Gas |
| ----------- | ----------------------- | ----------------------- |
| Direct Call | 69,254 | 64,170 |
| LibCompound | 64,140 | 54,664 |### LibFuse
| Method | balanceOfUnderlying Gas | exchangeRateCurrent Gas |
| ----------- | ----------------------- | ----------------------- |
| Direct Call | 100,738 | 95,485 |
| LibFuse | 71,419 | 65,582 |## Getting Started
```sh
git clone https://github.com/transmissions11/libcompound.git
cd libcompound
make
```