Skip to content

People-DAO/Panda_Contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PandaDAO-VeToken

PandaDAO VeToken smart contracts

Introduction

  1. The sources of voting power for DAO governance include: token holders, veToken holders, work group, leader. Work group voting weight is 15%, leader is 5%, and the remaining 80% is allocated according to the number of token or veToken held.
  2. Exchange rate is stable(veToken:locked token = 1:1) and token holders are able to stake or claim at any time. It's temporarily decided that dividends are shared out once a year. Multi-signer can decide whether to share out the dividend in advance.
  3. Dividend weights emission is at certain ratio. The minimum emission time period is one block.

Roles:

  • Owner: accessible to gnosis safe contract who has admin role
  • Staker: accessible to public who is able to stake Panda token for voting power as well as earn dividends from DAO treasury.

Main Operations:

  • Owner:
  1. Emergency Operations: Turn on or off claiming or staking function
  2. Claim other mistaken tokens from other systems
  • Staker:
  1. Deposit Panda token for a certain address which could in turn get same amount of veToken
  2. Withdraw Panda token for burning same amount of veToken

Development

1.Install hardhat

npm install --save-dev hardhat

2.Install hardhat-waffle and hardhat-ethers

npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers

3.Install dependency

npm install --save-dev ts-node typescript
npm install --save-dev chai @types/node @types/mocha @types/chai
npm install --save-dev mocha
npm install --save-dev dotenv
npm install --save-dev hardhat-preprocessor
npm install --save-dev hardhat-contract-sizer
npm install --save-dev hardhat-deploy
npm install --save-dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers
npm install --save-dev solidity-coverage
npm install --save-dev @tenderly/hardhat-tenderly
npm install --save-dev @uniswap/v2-core
npm install --save-dev @uniswap/v2-periphery
npm install --save-dev @openzeppelin/contracts

4.Compile

npx hardhat compile

5.Deploy

npx hardhat deploy

6.Test

npx hardhat test

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published