diff --git a/src/interfaces/IERC20.sol b/src/interfaces/IERC20.sol index b7610676f..31f0cc95f 100644 --- a/src/interfaces/IERC20.sol +++ b/src/interfaces/IERC20.sol @@ -3,6 +3,4 @@ pragma solidity >=0.5.0; /// @dev Empty because we only call functions in assembly. It prevents calling /// transfer (transferFrom) instead of safeTransfer (safeTransferFrom). -interface IERC20 { - function balanceOf(address owner) external view returns (uint256); -} +interface IERC20 {} diff --git a/src/interfaces/IFlashBorrower.sol b/src/interfaces/IFlashBorrower.sol index 65a3cf88b..eb0d490d6 100644 --- a/src/interfaces/IFlashBorrower.sol +++ b/src/interfaces/IFlashBorrower.sol @@ -2,12 +2,10 @@ pragma solidity >=0.5.0; interface IFlashBorrower { - /** - * @dev Receives a flash loan. - * @param initiator The initiator of the loan. - * @param token The token lent. - * @param amount The amount of tokens lent. - * @param data Arbitrary data structure, intended to contain user-defined parameters. - */ + /// @dev Receives a flash loan. + /// @param initiator The initiator of the loan. + /// @param token The token lent. + /// @param amount The amount of tokens lent. + /// @param data Arbitrary data structure, intended to contain user-defined parameters. function onFlashLoan(address initiator, address token, uint256 amount, bytes calldata data) external; } diff --git a/src/interfaces/IFlashLender.sol b/src/interfaces/IFlashLender.sol index 1cba63ca5..603e18902 100644 --- a/src/interfaces/IFlashLender.sol +++ b/src/interfaces/IFlashLender.sol @@ -4,12 +4,10 @@ pragma solidity >=0.5.0; import {IFlashBorrower} from "src/interfaces/IFlashBorrower.sol"; interface IFlashLender { - /** - * @dev Initiate a flash loan. - * @param receiver The receiver of the tokens in the loan, and the receiver of the callback. - * @param token The token lent. - * @param amount The amount of tokens lent. - * @param data Arbitrary data structure, intended to contain user-defined parameters. - */ + /// @dev Initiate a flash loan. + /// @param receiver The receiver of the tokens in the loan, and the receiver of the callback. + /// @param token The token lent. + /// @param amount The amount of tokens lent. + /// @param data Arbitrary data structure, intended to contain user-defined parameters. function flashLoan(IFlashBorrower receiver, address token, uint256 amount, bytes calldata data) external; }