Some tokens (e.g. USDT, KNC) do not allow approving an amount M > 0 when an existing amount N > 0 is already approved. This is to protect from an ERC20 attack vector describe here
File:wemix-lending-contract-main/contracts/lending/TeamMinter.solSome tokens (e.g. USDT, KNC) do not allow approving an amount M > 0 when an existing amount N > 0 is already approved. This is to protect from an ERC20 attack vector describe here
File:wemix-lending-contract-main/contracts/lending/TeamMinter.sol| ID | Title | Category | Severity | Instances |
|---|---|---|---|---|
| [1] | Centralization Risk for trusted owners | Centralization / Privilege | Med | 7 |
| [2] | will not work properly on Optimism due to use of block.number | Volatile Code | Med | 4 |
| [3] | Initializers could be front-run | Data Flow | Low | 3 |
| [4] | Loss of precision | Data Flow | Low | 1 |
| [5] | Use safeTransferOwnership instead of transferOwnership function |
Control Flow | Low | 2 |
| [6] | Unbounded loop | Control Flow | Low | 21 |
| [7] | Use Ownable2Step's transfer function rather than Ownable's for transfers of ownership | Centralization / Privilege | Low | 1 |
| #!/usr/bin/python | |
| import os,urllib,re,json,sys | |
| #simple script based on acoustid audio identification api and fpcalc tool | |
| #download Chromaprint-fpcalc from https://acoustid.org/chromaprint | |
| #you know ! it's just get fingerprint from audio file by fpcalc and make a request to acoustid as simple as that ! | |
| def main(file): | |
| url = "https://api.acoustid.org/v2/lookup?client=" |
| #!/usr/bin/python | |
| # Morse Code | |
| # Encode & Decode | |
| # http://stackoverflow.com/questions/32094525/morse-code-to-english-python3?answertab=votes#tab-top | |
| # direction from ^ LOL i'm too lazy | |
| # add . to @ from wiki ;) https://en.wikipedia.org/wiki/Morse_code | |
| CODE = {'A': '.-', 'B': '-...', 'C': '-.-.', | |
| 'D': '-..', 'E': '.', 'F': '..-.', | |
| 'G': '--.', 'H': '....', 'I': '..', |