Skip to content

Smart contract that is able to receive delegation of proposition power of AAVE/stkAAVE tokens and submit a pre-configured proposal to the AAVE governance.

Notifications You must be signed in to change notification settings

astarinmymind/AutonomousProposal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autonomous Proposal (AP)

Aave Autonomous Proposals are smart contracts that are able to receive delegation of proposition power from AAVE/stkAAVE tokens and submit a pre-configured proposal to the Aave governance.

Contracts

APFactory

The factory contract allows anyone to create and deploy an autonomous proposal (AP). It is able to predetermine the address for an AP that people may delegate their proposition power to before it is deployed. Therefore, the creator only calls the create function if he/she knows it has enough proposition power to succeed, which saves gas.

AP

This contract calls the create function of Aave Governance V2. It emits the address, proposal id, and creator of the AP. It is called by the Factory contract when the AP attains enough delegated proposition power.

Instructions

Prerequisites: Hardhat

To compile the contracts, npx hardhat compile

To run the tests, npx hardhat test

About

Smart contract that is able to receive delegation of proposition power of AAVE/stkAAVE tokens and submit a pre-configured proposal to the AAVE governance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published