From 720acd58a3b6b49e5f2376da19ff27ff6b07a887 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Tue, 5 Mar 2024 13:38:10 -0600 Subject: [PATCH] transfer token to author at VP end --- ethereum/contracts/DAO.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ethereum/contracts/DAO.sol b/ethereum/contracts/DAO.sol index 0df6893..f38c055 100644 --- a/ethereum/contracts/DAO.sol +++ b/ethereum/contracts/DAO.sol @@ -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;