Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comments #3354

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions solidity/security/msg-value-multicall.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ contract DutchAuction is IMisoMarket, MISOAccessControls, BoringBatchable, SafeT
/// @notice Address that manages auction approvals.
address public pointList;

/// @notice The commited amount of accounts.
/// @notice The committed amount of accounts.
mapping(address => uint256) public commitments;
/// @notice Amount of tokens to claim per address.
mapping(address => uint256) public claimed;
Expand Down Expand Up @@ -148,8 +148,8 @@ contract DutchAuction is IMisoMarket, MISOAccessControls, BoringBatchable, SafeT
address _pointList,
address payable _wallet
) public {
require(_startTime < 10000000000, "DutchAuction: enter an unix timestamp in seconds, not miliseconds");
require(_endTime < 10000000000, "DutchAuction: enter an unix timestamp in seconds, not miliseconds");
require(_startTime < 10000000000, "DutchAuction: enter an unix timestamp in seconds, not milliseconds");
require(_endTime < 10000000000, "DutchAuction: enter an unix timestamp in seconds, not milliseconds");
require(_startTime >= block.timestamp, "DutchAuction: start time is before current time");
require(_endTime > _startTime, "DutchAuction: end time must be older than start price");
require(_totalTokens > 0,"DutchAuction: total tokens must be greater than zero");
Expand Down Expand Up @@ -247,7 +247,7 @@ contract DutchAuction is IMisoMarket, MISOAccessControls, BoringBatchable, SafeT
* @dev Attribution to the awesome delta.financial contracts
*/
function marketParticipationAgreement() public pure returns (string memory) {
return "I understand that I'm interacting with a smart contract. I understand that tokens commited are subject to the token issuer and local laws where applicable. I reviewed code of the smart contract and understand it fully. I agree to not hold developers or other people associated with the project liable for any losses or misunderstandings";
return "I understand that I'm interacting with a smart contract. I understand that tokens committed are subject to the token issuer and local laws where applicable. I reviewed code of the smart contract and understand it fully. I agree to not hold developers or other people associated with the project liable for any losses or misunderstandings";
}
/**
* @dev Not using modifiers is a purposeful choice for code readability.
Expand Down Expand Up @@ -352,7 +352,7 @@ contract DutchAuction is IMisoMarket, MISOAccessControls, BoringBatchable, SafeT

/**
* @notice Calculates total amount of tokens committed at current auction price.
* @return Number of tokens commited.
* @return Number of tokens committed.
*/
function totalTokensCommitted() public view returns (uint256) {
return uint256(marketStatus.commitmentsTotal).mul(1e18).div(clearingPrice());
Expand Down Expand Up @@ -572,8 +572,8 @@ contract DutchAuction is IMisoMarket, MISOAccessControls, BoringBatchable, SafeT
*/
function setAuctionTime(uint256 _startTime, uint256 _endTime) external {
require(hasAdminRole(msg.sender));
require(_startTime < 10000000000, "DutchAuction: enter an unix timestamp in seconds, not miliseconds");
require(_endTime < 10000000000, "DutchAuction: enter an unix timestamp in seconds, not miliseconds");
require(_startTime < 10000000000, "DutchAuction: enter an unix timestamp in seconds, not milliseconds");
require(_endTime < 10000000000, "DutchAuction: enter an unix timestamp in seconds, not milliseconds");
require(_startTime >= block.timestamp, "DutchAuction: start time is before current time");
require(_endTime > _startTime, "DutchAuction: end time must be older than start time");
require(marketStatus.commitmentsTotal == 0, "DutchAuction: auction cannot have already started");
Expand Down
2 changes: 1 addition & 1 deletion stats/matrixify.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_technology(rule: Dict[str, Any]) -> List[str]:
return [""]

# Sometimes, the language as defined within the ArchList will be something that's not in the dict
# So, the filepath seems like the only reliable way to get the lanaguage
# So, the filepath seems like the only reliable way to get the language
def get_lang(path: str) -> str:
return path.split(os.path.sep)[1].strip()
#archlist = ArchList(rule.get('languages', [])).get(0, "")
Expand Down