From 25dc4b95f57ec6c3761d57fb71a7555767aa92a1 Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Wed, 14 Jun 2023 17:01:20 +0300 Subject: [PATCH] fix: change type to uint160 --- src/SablierV2ProxyTarget.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SablierV2ProxyTarget.sol b/src/SablierV2ProxyTarget.sol index e9ce88ff..f3d13c40 100644 --- a/src/SablierV2ProxyTarget.sol +++ b/src/SablierV2ProxyTarget.sol @@ -166,7 +166,7 @@ contract SablierV2ProxyTarget is // Calculate the sum of all of stream amounts. It is safe to use unchecked addition because one of the create // transactions will revert if there is overflow. uint256 i; - uint128 transferAmount; + uint160 transferAmount; for (i = 0; i < batchSize;) { unchecked { transferAmount += batch[i].totalAmount; @@ -221,7 +221,7 @@ contract SablierV2ProxyTarget is // Calculate the sum of all of stream amounts. It is safe to use unchecked addition because one of the create // transactions will revert if there is overflow. uint256 i; - uint128 transferAmount; + uint160 transferAmount; for (i = 0; i < batchSize;) { unchecked { transferAmount += batch[i].totalAmount; @@ -392,7 +392,7 @@ contract SablierV2ProxyTarget is // Calculate the sum of all of stream amounts. It is safe to use unchecked addition because one of the create // transactions will revert if there is overflow. uint256 i; - uint128 transferAmount; + uint160 transferAmount; for (i = 0; i < batchSize;) { unchecked { transferAmount += batch[i].totalAmount; @@ -447,7 +447,7 @@ contract SablierV2ProxyTarget is // Calculate the sum of all of stream amounts. It is safe to use unchecked addition because one of the create // transactions will revert if there is overflow. uint256 i; - uint128 transferAmount; + uint160 transferAmount; for (i = 0; i < batchSize;) { unchecked { transferAmount += batch[i].totalAmount;