Reentrancy

Hi team,

Would you please to explain how to put reentrancy code (security) to my contract using openzeppelin wizard ? My contract will be use ownable, burnable, pausable, snapshot, UUPS.

Thank You.

Hey Yuhanna, you can check the related post here
Make sure you import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; and add nonReentrant modifier for the intended function protections.

1 Like

Ok, got it. Appreciate your help.

One more question, how i can add transaction fee to my contract? Do you have any example ?

Thank You