fbnhnsl commited on
Commit
66a8756
·
verified ·
1 Parent(s): 7438f6a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -3
README.md CHANGED
@@ -1,3 +1,51 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - code
9
+ pretty_name: Slither Analyzed Solidity Dataset
10
+ size_categories:
11
+ - 10K<n<100K
12
+ ---
13
+
14
+ This dataset consists of 40,272 Slither analyzed Solidity files. The files were gathered from three sources: Etherscan, Github and DISL dataset. Three preprocessing steps were applied:
15
+
16
+ - Step 1 "Cleaning": Unnecessary parts such as comments or blank lines were removed from each file.
17
+ - Step 2 "Formatting": Each file was converted with Prettier and the corresponding Solidity-plugin.
18
+ - Step 3 "Slither Analysis": Each file has been checked for security vulnerabilities and gas consumption issues. Annotations are added to the line or construct in which
19
+ the vulnerability or optimization issue was detected. The entry "vulnerability" is 0 for secure contracts (2,410 contracts), 1 for contracts with only at least one gas consumption issue (2,870 contracts),
20
+ 2 for contracts with only at least one low severity vulnerability (5,110 contracts), 3 for contracts with only at least one medium severity vulnerability (2,514 contracts) and 4 for contracts with at least one
21
+ high severity vulnerability (27,368 contracts). The following Solidity code snippet shows an annotation example. The exact position of the vulnerability, the vulnerability and a recommendation how to avoid it are given.
22
+
23
+ ```Solidity
24
+ // WARNING Optimization Issue (immutable-states | ID: 21fb30b): DYORNFA._feeAddrWallet1 should be immutable
25
+ // Recommendation for 21fb30b: Add the ’immutable’ attribute to state variables that never change or are set only in the constructor.
26
+ address payable private _feeAddrWallet1;
27
+
28
+ // WARNING Vulnerability (unused-return | severity: Medium | ID: 3032186): AlcoholicApe.createUniswapPair() ignores return value by IERC20(_pair).approve(address(_uniswap),type()(uint256).max)
29
+ // Recommendation for 3032186: Ensure that all the return values of the function calls are used.
30
+ function createUniswapPair() external onlyOwner {
31
+ require(!_canTrade, "Trading is already open");
32
+ _approve(address(this), address(_uniswap), _tTotal);
33
+ _pair = IUniswapV2Factory(_uniswap.factory()).createPair(
34
+ address(this),
35
+ _uniswap.WETH()
36
+ );
37
+ // unused-return | ID: 3032186
38
+ IERC20(_pair).approve(address(_uniswap), type(uint).max);
39
+ }
40
+ ```
41
+
42
+ No deduplication, file splitting or Solhint fixing was performed here.
43
+
44
+ If you wish to use this dataset, you can cite it as follows:
45
+ ```latex
46
+ @misc{hensel2025slither_analyzed_solidity_dataset,
47
+ title = {Slither Analyzed Solidity Dataset},
48
+ author={Fabian Hensel},
49
+ year={2025}
50
+ }
51
+ ```