fix: disable slither warnings
- locked-ether: We do have a withdraw method. Not sure why it doesn't register with slither. Already tried renaming. - low-level-calls: This low level call is integral to the design of our filler contract.=
This commit is contained in:
@@ -60,6 +60,8 @@ contract UniswapXFiller is AccessControl, IReactorCallback {
|
||||
|
||||
// TODO properly handle native in and out tokens
|
||||
uint256 ethValue = 0;
|
||||
|
||||
// slither-disable-next-line low-level-calls
|
||||
(bool success, bytes memory result) =
|
||||
tychoRouter.call{value: ethValue}(callbackData);
|
||||
|
||||
@@ -129,6 +131,7 @@ contract UniswapXFiller is AccessControl, IReactorCallback {
|
||||
/**
|
||||
* @dev Allows this contract to receive native token with empty msg.data from contracts
|
||||
*/
|
||||
// slither-disable-next-line locked-ether
|
||||
receive() external payable {
|
||||
require(msg.sender.code.length != 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user