Code Monkey home page Code Monkey logo

allo-multi-round-checkout's Introduction

Allo MultiRoundCheck

The MultiRoundCheckout contract is a smart contract designed to simplify the process of donating to multiple rounds on the Allo V1 protocol and voting with ERC20 tokens. It streamlines the donation and voting process by enabling users to perform these actions using a single transaction, eliminating the need to send multiple transactions for each round.

Features

  1. Multiple Rounds with one transatction: With MultiRoundCheckout, users can donate to multiple rounds on the Allo V1 protocol using just one transaction, saving time and gas fees.

  2. ERC20 permit/donate in one transaction: Instead of executing separate transactions for token approval and donation, users can now vote with ERC20 tokens in a single transaction. The contract supports ERC20 permit-compatible tokens, specifically those implementing ERC-2612 or DAI permit. This enables users to sign a "permit" message, simplifying the token approval process, saving gas fees and reducing the number of transactions needed to donate.

Setup

git clone
git submodule update --init --recursive
npm i

Tests

forge test

Deployment gas benchmark

npx hardhat run scripts/gas-bench.ts --typecheck

Donations gas benchmarks

# fork mainnet during the Gitcoin Beta rounds
npx hardhat node --fork https://mainnet.infura.io/v3/$INFURA_API_KEY --fork-block-number 17123359

# run the benchmarks against the local fork
npx hardhat run scripts/benchmarks/beta-rounds-bench.ts --network localhost

Deployments

Chain Address
Goerli 0x69433D914c7Cd8b69710a3275bcF3df4CB3eDA94
PGN Testnet 0x4268900E904aD87903De593AA5424406066d9ea2

allo-multi-round-checkout's People

Contributors

gravityblast avatar bhargavaparoksham avatar vacekj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.