Skip to content

Dohrnii-DAO/wDHN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrapped DHN

This repo is for the wrapped version of the DHN token. This was necessary for several reasons:

  1. The original DHN was not made without the ERC20Votes extension. As such it can not be used in the standard DAO framework currently used and provided by Openzepplin (which is very convinient because it is wudited and tested/altered by various experienced devs). Because of this, we wrap the original token in one that has such extention;
  2. We wanted to be able to delegate only a certain amount of tokens and not the whole balance of an account. To do this, we had to add a delegate_wAmount() function to ERC20Votes and IVotes. This is very usefull for contracts where the tokens are locked but people still want to use them for voting. This was done by using a IERC20VotesAltered.sol interface created by us, instead of of the nomral IVotes.sol;
  3. We also wanted to be able to re-delegate tokens from somebody, back to the locked contract (for example, if an employee quits, we want to remove the delegation of his future tokens, so they may be provided to the next recipient of them). This was done by altering the way the delegate_wAmount() works in contrast with the regular delegate(). --SEE THIS BETTER--

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 68.9%
  • Python 31.1%