基于区块链的毕业设计Aave Governance v2 – Aave治理v2

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Aave Governance v2 – Aave治理v2 是一篇很好的国外资料

Aave Governance v2

Architecture

Aave Governance v2 - Aave治理v2

Audits

The Aave Governance V2 has been audited by Peckshied, with the final report here

Planned configurations for mainnet

AaveGovernanceV2

  • voting delay (time between a proposal is submitted and the voting is opened): 0 blocks, as for us this process is done beforehand in the governance forum
  • guardian: Aave Guardian multisig
  • executors whitelisted: Executor (short) and Executor (long)
  • owner (entity able to change the strategy, voting delay and authorize/unauthorize executors): Executor 2, the long timelock

Executor (short)

It will control the whole Aave protocol v1, the token distributor used in v1, the contract collecting the fees of v1, the Reserve Ecosystem of AAVE and any change in this timelock itself

  • admin (the only address enable to interact with this executor): Aave Governance v2
  • delay (time between a proposals passes and its actions get executed): 1 day
  • grace period (time after the delay during which the proposal can be executed): 5 days
  • proposition threshold: 0.5%
  • voting duration: 3 days
  • vote differential: 0.5%
  • quorum: 2%

Executor (long)

It will control the upgradeability of the AAVE token, the stkAAVE, any change in the parameters of the Governance v2 and any change in the parameters of this timelock itself

  • admin: Aave Governance v2
  • delay: 7 days
  • grace period: 5 days
  • proposition threshold: 2%
  • voting duration: 10 days
  • vote differential: 15%
  • quorum: 20%

Governance strategy (the contract determining how the voting/proposition powers are calculated)

  • Based on AAVE+stkAAVE
  • Voting and proposition power are: balanceOfAAVE + delegationReceivedOfAAVE + balanceOfstkAAVE + delegationReceivedOfstkAAVE (with delegation being voting or proposition depending on the case)
  • Total voting and proposition supply: AAVE supply

Setup

The repository uses Docker Compose to manage sensitive keys and load the configuration. Prior any action like test or deploy, you must run docker-compose up to start the contracts-env container, and then connect to the container console via docker-compose exec contracts-env bash.

Follow the next steps to setup the repository:

  • Install docker and docker-compose
  • Create an enviroment file named .env and fill the next enviroment variables
# Mnemonic, only first address will be used MNEMONIC=""  # Add Alchemy or Infura provider keys, alchemy takes preference at the config level ALCHEMY_KEY="" INFURA_KEY=""  # Your access token from Gitlab, with the api scope enabled, to install @aave-tech/aave-token package from Gitlab Package Registry. Check this guide to get one https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html GITLAB_ACCESS_TOKEN=""  # Optional Etherscan key, for automatize the verification of the contracts at Etherscan ETHERSCAN_KEY=""  # Optional, if you plan to use Tenderly scripts TENDERLY_PROJECT="" TENDERLY_USERNAME=""  

Test

For running the test suite, run:

docker-compose run contracts-env npm run test 

For running coverage, run:

docker-compose run contracts-env npm run coverage 

Aave governancev2

架构

Aave Governance V2已经过Peckshied的审计,这里的最终报告将控制整个Aave协议v1,v1中使用的令牌分发器,收取v1费用的合同,AAVE的保护区生态系统和这个时间锁本身的任何变化将控制AAVE代币的可升级性,Governance v2参数的任何更改以及此timelock本身参数的任何更改

审核

存储库使用Docker Compose管理敏感密钥并加载配置。在执行任何操作(如test或deploy)之前,必须运行docker compose up来启动contracts env容器,然后通过docker compose exec contracts env bash连接到容器控制台。

mainnet的计划配置

AaveGovernanceV2

  • 投票延迟(提案提交和投票打开之间的时间):0块,对于我们来说,这个过程是在治理论坛中提前完成的
  • 监护人:Aave guardian multisig执行人白名单:执行人(短)和执行人(长)
  • 所有者(能够更改策略、投票延迟和授权/未授权执行人的实体):执行人2,长时间锁定管理(唯一能够与此执行者交互的地址):Aave Governance v2延迟(提案通过和其操作执行之间的时间):1天宽限期(提案执行延迟后的时间):5天提议阈值:0.5%
  • 投票期限:3天投票差额:0.5%

执行器(短)

按照以下步骤设置存储库:

  • 法定人数:2%
  • 管理:Aave治理v2
  • 延迟:7天宽限期:5天提案阈值:2%
  • 投票期限:10天投票差额:15%
  • 法定人数:20%
  • 基于AAVE+stkAAVE表决权和提案权分别为:AAVE+delegationReceivedOfAAVE+delegationReceivedOfstkAAVE(代表团根据具体情况进行表决或提案)的余额名为.env的环境文件并填充下一个环境变量
  • quorum: 2%

执行器(长)

要运行测试套件,请运行:

  • admin: Aave Governance v2
  • delay: 7 days
  • grace period: 5 days
  • proposition threshold: 2%
  • voting duration: 10 days
  • vote differential: 15%
  • quorum: 20%

设置

  • Based on AAVE+stkAAVE
  • Voting and proposition power are: balanceOfAAVE + delegationReceivedOfAAVE + balanceOfstkAAVE + delegationReceivedOfstkAAVE (with delegation being voting or proposition depending on the case)
  • Total voting and proposition supply: AAVE supply

测试

要运行覆盖率,请运行:

Follow the next steps to setup the repository:

  • Install docker and docker-compose
  • Create an enviroment file named .env and fill the next enviroment variables
# Mnemonic, only first address will be used MNEMONIC=""  # Add Alchemy or Infura provider keys, alchemy takes preference at the config level ALCHEMY_KEY="" INFURA_KEY=""  # Your access token from Gitlab, with the api scope enabled, to install @aave-tech/aave-token package from Gitlab Package Registry. Check this guide to get one https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html GITLAB_ACCESS_TOKEN=""  # Optional Etherscan key, for automatize the verification of the contracts at Etherscan ETHERSCAN_KEY=""  # Optional, if you plan to use Tenderly scripts TENDERLY_PROJECT="" TENDERLY_USERNAME=""  

Test

For running the test suite, run:

docker-compose run contracts-env npm run test 

For running coverage, run:

docker-compose run contracts-env npm run coverage 

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/19506.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Aave Governance v2 – Aave治理v2

提供最优质的资源集合

立即查看 了解详情