diff --git a/ethereum/contracts/DAO.sol b/ethereum/contracts/DAO.sol index 229da20..f2023e7 100644 --- a/ethereum/contracts/DAO.sol +++ b/ethereum/contracts/DAO.sol @@ -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);