Checkpoint token rewritten in Huff. Original implementation: Comp.sol
Install the huff compiler
curl -L get.huff.sh | bash
Install foundry dependencies
forge install
Run tests:
forge test
Get bytecode
huffc src/ERC20Votes.huff --bytecode
The huff implementation is currently about 15% cheaper, but can be further optimized.
This is experimental, unaudited code.
-
ERC20Permit code adapted from: devtooligan
-
Solidity implementation from: Compound