-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ import { SwapperV2 } from "../Helpers/SwapperV2.sol"; | |
import { Validatable } from "../Helpers/Validatable.sol"; | ||
import { IChainflipVault } from "../Interfaces/IChainflip.sol"; | ||
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
import { InformationMismatch } from "../Errors/GenericErrors.sol"; | ||
import { InformationMismatch, InvalidConfig } from "../Errors/GenericErrors.sol"; | ||
|
||
/// @title Chainflip Facet | ||
/// @author LI.FI (https://li.fi) | ||
|
@@ -62,6 +62,9 @@ contract ChainflipFacet is ILiFi, ReentrancyGuard, SwapperV2, Validatable { | |
/// @notice Constructor for the contract. | ||
/// @param _chainflipVault Address of the Chainflip vault contract | ||
constructor(IChainflipVault _chainflipVault) { | ||
Check notice Code scanning / Olympix Integrated Security Test functions fail to thoroughly test all aspects of contract constructors, potentially missing critical initialization issues. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/incomplete-constructor-tests Low
Test functions fail to thoroughly test all aspects of contract constructors, potentially missing critical initialization issues. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/incomplete-constructor-tests
|
||
if (address(_chainflipVault) == address(0)) { | ||
revert InvalidConfig(); | ||
} | ||
chainflipVault = _chainflipVault; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters