transfer token to author at VP end
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 35s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 35s
Details
This commit is contained in:
parent
a90ba864b1
commit
720acd58a3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue