Any thoughts on building a standard contracts for ReentrancyGuard
and Timelock
#220
timothyxbank
started this conversation in
Design
Replies: 1 comment 4 replies
-
Been thinking about reentrancy too. How would it look like in Cairo? I think something like |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These 2 contracts are considered to be very important on L1 contracts.
For Timelock, Most of the contract replace the owner with
Timelock
to prevent unnecessary privileged on the account.For ReentrancyGuard, we can use check-effect-interaction as a convention to prevent this kind of attack, but it should be better to have a solid library to prevent this issue for us, similar to
Ownable
.Any thoughs on implementing these 2 contracts?
Beta Was this translation helpful? Give feedback.
All reactions