Skip to content

Commit 6d19440

Browse files
committed
rename var
1 parent a3130f9 commit 6d19440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Passage.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ contract HostPassage {
9595
/// The rollup STF will apply the user's exit transactions on the rollup up to the point that sum(tokenOut) is lte the ExitFilled amount.
9696
/// TODO: add option to fulfill ExitOrders with native ETH? or is it sufficient to only allow users to exit via WETH?
9797
function fulfillExits(ExitOrder[] calldata orders) external payable {
98-
uint256 etherTransferred = msg.value;
98+
uint256 ethRemaining = msg.value;
9999
for (uint256 i = 0; i < orders.length; i++) {
100100
// transfer value
101101
if (orders[i].token == address(0)) {
102102
// transfer native Ether to the recipient
103103
payable(orders[i].recipient).transfer(orders[i].amount);
104104
// NOTE: this will underflow if sender attempts to transfer more Ether than they sent to the contract
105-
etherTransferred -= orders[i].amount;
105+
ethRemaining -= orders[i].amount;
106106
} else {
107107
// transfer tokens to the recipient
108108
IERC20(orders[i].token).transferFrom(msg.sender, orders[i].recipient, orders[i].amount);

0 commit comments

Comments
 (0)