Skip to content

Commit

Permalink
Merge pull request #23 from CreamFi/feature-reentry
Browse files Browse the repository at this point in the history
reentrancy guard
  • Loading branch information
stitetsati authored Aug 13, 2021
2 parents d71fdc4 + a5ee0fd commit 701e4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/burners/CurveLPBurner.vy
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def __init__(_receiver: address, _recovery: address, _owner: address, _emergency


@external
@nonreentrant("lock")
def burn(_coin: address) -> bool:
"""
@notice Convert `_coin` by removing liquidity and send to receiver
Expand Down
1 change: 1 addition & 0 deletions contracts/burners/MUSDBurner.vy
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def __init__(_receiver: address, _recovery: address, _owner: address, _emergency


@external
@nonreentrant("lock")
def burn(_coin: address) -> bool:
"""
@notice Convert `_coin` to USDC by withdrawing
Expand Down

0 comments on commit 701e4ac

Please sign in to comment.