transfer token to author at VP end
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 35s Details

This commit is contained in:
Ladd Hoffman 2024-03-05 13:38:10 -06:00
parent a90ba864b1
commit 720acd58a3
1 changed files with 5 additions and 1 deletions

View File

@ -227,7 +227,11 @@ contract DAO is ERC721("Reputation", "REP"), ReputationHolder {
transferValueFrom(pool.tokenIdFor, _stake.tokenId, reward);
}
}
// Transfer minted reputation to the author
// TODO: Handle multiple authors
if (votePasses) {
_transfer(address(this), pool.author, pool.tokenIdFor);
}
// Distribute fee proportionatly among all reputation holders
for (uint tokenId = 0; tokenId < nextTokenId; tokenId++) {
uint256 share = (pool.fee * tokenValues[tokenId]) / totalValue;