/aave-gauntlet-renewal

Payload and tests for the Gauntlet <> AAVE Renewal Propsal

Primary LanguageSolidity

Gauntlet <> AAVE Renewal Proposal

Payload and tests for the Gauntlet <> AAVE Renewal Propsal

Payload Specification

The Proposal Payload does the following:

  • 30% of the total annual fee ($600,000 in aUSDC) will be deposited in a vault for the insolvency refund.
  • The remaining $800,000 in aUSDC and 9,919 AAVE tokens will be streamed linearly over 1 year from the ecosystem reserve.

Installation

It requires Foundry installed to run. You can find instructions here Foundry installation.

$ npm install
$ forge install
$ forge update
$ git submodule update --init --recursive

Setup

Duplicate .env.example and rename to .env:

  • Add a valid mainnet URL for an Ethereum JSON-RPC client for the RPC_MAINNET_URL variable.
  • Add a valid Private Key for the PRIVATE_KEY variable.
  • Add a valid Etherscan API Key for the ETHERSCAN_API_KEY variable.

Commands

  • make build - build the project
  • make test [optional](V={1,2,3,4,5}) - run tests (with different debug levels if provided)
  • make match MATCH=<TEST_FUNCTION_NAME> [optional](V=<{1,2,3,4,5}>) - run matched tests (with different debug levels if provided)

Deploy and Verify

  • make deploy-payload - deploy and verify payload on mainnet
  • make deploy-proposal- deploy proposal on mainnet

To confirm the deploy was successful, re-run your test suite but use the newly created contract address.