Skip to content

Commit

Permalink
Merge pull request #3388 from semgrep/merge-develop-to-release
Browse files Browse the repository at this point in the history
Merge Develop into Release
  • Loading branch information
p4p3r committed May 21, 2024
2 parents dab80bc + f4b63d5 commit 2ebc6f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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

0 comments on commit 2ebc6f0

Please sign in to comment.