clean up some comments
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 43s Details

This commit is contained in:
Ladd Hoffman 2024-03-30 15:23:38 -05:00
parent 24cb9fda03
commit 4b2d2b432c
1 changed files with 4 additions and 7 deletions

View File

@ -129,15 +129,12 @@ contract DAO is ERC20("Reputation", "REP") {
pool.id = poolIndex;
pool.callbackOnValidate = callbackOnValidate;
pool.callbackData = callbackData;
// Because we need to stake part of the mited value for the pool an part against,
// we mint two new tokens.
// Here we assume a minting ratio of 1, and a stakeForAuthor ratio of 0.5
// Implementing this with adjustable parameters will require more advanced fixed point math.
// We use our privilege as the DAO contract to mint reputation in proportion with the fee.
// Here we assume a minting ratio of 1
// TODO: Make minting ratio an adjustable parameter
// TODO: Make stakeForAuthor an adjustable parameter
_mint(post.author, msg.value);
// TODO: We need a way to exclude this pending reputation from the total supply when computing fee distribution
// Here we assume a stakeForAuthor ratio of 0.5
// TODO: Make stakeForAuthor an adjustable parameter
_stake(pool, post.author, msg.value / 2, true, true);
_stake(pool, post.author, msg.value / 2, false, true);
emit ValidationPoolInitiated(poolIndex);