Fixed error in currentTradingEpoch check and optimized gas #12
Annotations
10 errors and 11 warnings
ci:
contracts/EncryptedDEXPair.sol#L20
Line length must be no more than 120 but current length is 173
|
ci:
contracts/EncryptedDEXPair.sol#L87
Line length must be no more than 120 but current length is 149
|
ci:
contracts/EncryptedDEXPair.sol#L133
Line length must be no more than 120 but current length is 139
|
ci:
contracts/EncryptedDEXPair.sol#L134
Line length must be no more than 120 but current length is 139
|
ci:
contracts/EncryptedDEXPair.sol#L135
Line length must be no more than 120 but current length is 142
|
ci:
contracts/EncryptedDEXPair.sol#L169
Line length must be no more than 120 but current length is 133
|
ci:
contracts/EncryptedDEXPair.sol#L170
Line length must be no more than 120 but current length is 133
|
ci:
contracts/EncryptedDEXPair.sol#L186
Line length must be no more than 120 but current length is 194
|
ci:
contracts/EncryptedDEXPair.sol#L187
Line length must be no more than 120 but current length is 208
|
ci:
contracts/EncryptedDEXPair.sol#L242
Replace ⏎········internal⏎········view⏎········returns·(DecryptionResults·memory)⏎··· with ·internal·view·returns·(DecryptionResults·memory)
|
ci
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
ci:
contracts/EncryptedDEXFactory.sol#L5
global import of path ./EncryptedDEXPair.sol is not allowed. Specify names to import individually or bind all exports of the module into a name (import "path" as Name)
|
ci:
contracts/EncryptedDEXFactory.sol#L8
Main key parameter in mapping getPair is not named
|
ci:
contracts/EncryptedDEXFactory.sol#L19
Error message for require is too long: 33 counted / 32 allowed
|
ci:
contracts/EncryptedDEXFactory.sol#L19
Use Custom Errors instead of require statements
|
ci:
contracts/EncryptedDEXFactory.sol#L21
Use Custom Errors instead of require statements
|
ci:
contracts/EncryptedDEXFactory.sol#L22
Use Custom Errors instead of require statements
|
ci:
contracts/EncryptedDEXPair.sol#L5
global import of path ./EncryptedERC20.sol is not allowed. Specify names to import individually or bind all exports of the module into a name (import "path" as Name)
|
ci:
contracts/EncryptedDEXPair.sol#L7
Contract has 27 states declarations but allowed no more than 15
|
ci:
contracts/EncryptedDEXPair.sol#L16
Variable name must be in mixedCase
|
ci:
contracts/EncryptedDEXPair.sol#L56
Use Custom Errors instead of require statements
|