Conversation
| contract StakerDeployer is Deployer { | ||
| address public staker; | ||
|
|
||
| function deploy(address token) external onlyOwner { |
Check notice
Code scanning / Slither
Missing zero address validation
| contract LiquidatorDeployer is Deployer { | ||
| address public liquidator; | ||
|
|
||
| function deploy(address staker) external onlyOwner { |
Check notice
Code scanning / Slither
Missing zero address validation
| contract VaultDeployer is Deployer { | ||
| address public vault; | ||
|
|
||
| function deploy(address weth) external onlyOwner { |
Check notice
Code scanning / Slither
Missing zero address validation
| @@ -0,0 +1,44 @@ | |||
| // SPDX-License-Identifier: BUSL-1.1 | |||
| pragma solidity >=0.8.12; | |||
Check warning
Code scanning / Slither
Incorrect versions of Solidity
| /// @notice Used to deploy Ithil smart contracts to deterministic addresses | ||
| /// on multiple chains irrespective of contracts' bytecode | ||
| contract Deployer is Ownable { | ||
| bytes32 internal constant salt = keccak256(bytes("ithil")); |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions
| function deploy(address token) external onlyOwner { | ||
| staker = CREATE3.deploy(salt, abi.encodePacked(type(Staker).creationCode, abi.encode(token)), 0); | ||
| } |
Check warning
Code scanning / Slither
Too many digits
| function deploy(address staker) external onlyOwner { | ||
| liquidator = CREATE3.deploy(salt, abi.encodePacked(type(Liquidator).creationCode, abi.encode(staker)), 0); | ||
| } |
Check warning
Code scanning / Slither
Too many digits
| function deploy(address weth) external onlyOwner { | ||
| vault = CREATE3.deploy(salt, abi.encodePacked(type(Vault).creationCode, abi.encode(weth)), 0); | ||
| } |
Check warning
Code scanning / Slither
Too many digits
No description provided.