File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ contract HostPassage {
95
95
/// 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.
96
96
/// TODO: add option to fulfill ExitOrders with native ETH? or is it sufficient to only allow users to exit via WETH?
97
97
function fulfillExits (ExitOrder[] calldata orders ) external payable {
98
- uint256 etherTransferred = msg .value ;
98
+ uint256 ethRemaining = msg .value ;
99
99
for (uint256 i = 0 ; i < orders.length ; i++ ) {
100
100
// transfer value
101
101
if (orders[i].token == address (0 )) {
102
102
// transfer native Ether to the recipient
103
103
payable (orders[i].recipient).transfer (orders[i].amount);
104
104
// 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;
106
106
} else {
107
107
// transfer tokens to the recipient
108
108
IERC20 (orders[i].token).transferFrom (msg .sender , orders[i].recipient, orders[i].amount);
You can’t perform that action at this time.
0 commit comments