Skip to content

Repository files navigation

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 on a mainnet fork.

LibCompound

MethodbalanceOfUnderlying GasexchangeRateCurrent Gas
Direct Call69,25464,170
LibCompound64,14054,664

LibFuse

MethodbalanceOfUnderlying GasexchangeRateCurrent Gas
Direct Call100,73895,485
LibFuse71,41965,582

Getting Started

git clone https://github.com/transmissions11/libcompound.git
cd libcompound
make

About

Get up to date cToken data using 20% less gas without mutating state.

Resources

Stars

66 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages