Skip to content

Commit a70fabc

Browse files
committed
refactor: documentation changes
1 parent 4e559c0 commit a70fabc

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

contracts/ITruthPost.sol

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ pragma solidity ^0.8.10;
66

77
/** @title The Truth Post: Accurate and Relevant News
88
@author https://github.com/proveuswrong<0xferit, @gratestas>
9-
@dev This contract serves as an standard interface among multiple deployments of the Truth Post contracts.
10-
You should target this interface contract when for interactions, not the concrete contract. Otherwise you risk incompatibility across versions.
9+
@dev This contract serves as a standard interface among multiple deployments of the Truth Post contracts.
10+
You should target this interface contract for interactions, not the concrete contract; otherwise you risk incompatibility across versions.
1111
@custom:approvals 0xferit, @gratestas*
1212
*/
1313
abstract contract ITruthPost {
@@ -19,16 +19,15 @@ abstract contract ITruthPost {
1919
Debunked
2020
}
2121

22-
23-
address payable public TREASURY;
22+
address payable public TREASURY;
23+
uint256 public treasuryBalance;
2424
uint256 public constant NUMBER_OF_RULING_OPTIONS = 2;
2525
uint256 public constant MULTIPLIER_DENOMINATOR = 1024; // Denominator for multipliers.
2626
uint256 public constant LOSER_APPEAL_PERIOD_MULTIPLIER = 512; // Multiplier of the appeal period for losers (any other ruling options) in basis points. The loser is given less time to fund its appeal to defend against last minute appeal funding attacks.
2727
uint256 public immutable ARTICLE_WITHDRAWAL_TIMELOCK; // To prevent authors to act fast and escape punishment.
2828
uint256 public immutable WINNER_STAKE_MULTIPLIER; // Multiplier of the arbitration cost that the winner has to pay as fee stake for a round in basis points.
2929
uint256 public immutable LOSER_STAKE_MULTIPLIER; // Multiplier of the arbitration cost that the loser has to pay as fee stake for a round in basis points.
3030
uint256 public challengeTaxRate = 16;
31-
uint256 public treasuryBalance;
3231

3332
constructor(uint256 _articleWithdrawalTimelock, uint256 _winnerStakeMultiplier, uint256 _loserStakeMultiplier, address payable _treasury) {
3433
ARTICLE_WITHDRAWAL_TIMELOCK = _articleWithdrawalTimelock;
@@ -63,8 +62,8 @@ abstract contract ITruthPost {
6362

6463
/** @notice Publish an article.
6564
@dev Do not confuse articleID with articleAddress. Emits NewArticle.
66-
@param _articleID Unique identifier of an article. Usually an IPFS content identifier.
67-
@param _category Article category. This changes which metaevidence will be used.
65+
@param _articleID Unique identifier of an article in IPFS content identifier format.
66+
@param _category The category code of this new article.
6867
@param _searchPointer Starting point of the search. Find a vacant storage slot before calling this function to minimize gas cost.
6968
*/
7069
function initializeArticle(
@@ -92,7 +91,7 @@ abstract contract ITruthPost {
9291
function withdraw(uint80 _articleStorageAddress) external virtual;
9392

9493
/** @notice Challenge article.
95-
@dev Challenges the article at the given storage address. Emit Challenge.
94+
@dev Challenges the article at the given storage address. Emits Challenge.
9695
@param _articleStorageAddress The address of the article in the storage.
9796
*/
9897
function challenge(uint80 _articleStorageAddress) external payable virtual;
@@ -111,7 +110,7 @@ abstract contract ITruthPost {
111110
function findVacantStorageSlot(uint80 _searchPointer) external view virtual returns (uint256 vacantSlotIndex);
112111

113112
/** @notice Get required challenge fee.
114-
@dev Returns the total amount needs to be paid to challenge an article.
113+
@dev Returns the total amount needs to be paid to challenge an article, including taxes if any.
115114
@param _articleStorageAddress The address of article in the storage.
116115
*/
117116
function challengeFee(uint80 _articleStorageAddress) public view virtual returns (uint256 challengeFee);

0 commit comments

Comments
 (0)