From 4b2d2b432ca4ef93df5eec62060294906a8b4f8e Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Sat, 30 Mar 2024 15:23:38 -0500 Subject: [PATCH] clean up some comments --- ethereum/contracts/DAO.sol | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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);