Skip to content

Commit

Permalink
Non reentrant to moveIn
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco <[email protected]>
  • Loading branch information
fulminmaxi committed Dec 23, 2024
1 parent 0408c84 commit a64b2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TokenFlow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ contract TokenFlow is ITokenFlow, ReentrancyGuardTransient {
}

/// @inheritdoc ITokenFlow
function moveIn(address token, address to, uint128 amount) external requireScope(INTERNAL_SCOPE) {
function moveIn(address token, address to, uint128 amount) external requireScope(INTERNAL_SCOPE) nonReentrant {
TransientNetflows.add(token, -int256(uint256(amount)));

token.safeTransferFrom(payer, to, amount);
Expand Down

0 comments on commit a64b2a9

Please sign in to comment.