From 9b02351de692e3bcbd5a2d0295756f90555e3810 Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 14 Jan 2025 12:38:41 +0200 Subject: [PATCH] Use a consistent code style --- contracts/libraries/SafeERC20.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/libraries/SafeERC20.sol b/contracts/libraries/SafeERC20.sol index ca30ff1d..b830a85e 100644 --- a/contracts/libraries/SafeERC20.sol +++ b/contracts/libraries/SafeERC20.sol @@ -111,7 +111,7 @@ library SafeERC20 { mstore(add(data, 0x04), from) mstore(add(data, 0x24), to) mstore(add(data, 0x44), amount) - success := call(gas(), token, 0, data, 100, 0x0, 0x20) + success := call(gas(), token, 0, data, 0x64, 0x0, 0x20) if success { switch returndatasize() case 0 { @@ -167,14 +167,14 @@ library SafeERC20 { * the caller to make sure that the higher 96 bits of the `to` parameter are clean. * @param token The IERC20 token contract from which the tokens will be transferred. * @param to The address to which the tokens will be transferred. - * @param value The amount of tokens to transfer. + * @param amount The amount of tokens to transfer. */ function safeTransfer( IERC20 token, address to, - uint256 value + uint256 amount ) internal { - if (!_makeCall(token, token.transfer.selector, to, value)) { + if (!_makeCall(token, token.transfer.selector, to, amount)) { revert SafeTransferFailed(); } }