From a5ee0fd524be0ffad33e8b86d56bf938382c4e5c Mon Sep 17 00:00:00 2001 From: Def Paf Date: Fri, 13 Aug 2021 11:53:02 +0800 Subject: [PATCH] reentrancy guard --- contracts/burners/CurveLPBurner.vy | 1 + contracts/burners/MUSDBurner.vy | 1 + 2 files changed, 2 insertions(+) diff --git a/contracts/burners/CurveLPBurner.vy b/contracts/burners/CurveLPBurner.vy index c410b56c..88a91bf7 100644 --- a/contracts/burners/CurveLPBurner.vy +++ b/contracts/burners/CurveLPBurner.vy @@ -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 diff --git a/contracts/burners/MUSDBurner.vy b/contracts/burners/MUSDBurner.vy index 5a2ab374..316f54ff 100644 --- a/contracts/burners/MUSDBurner.vy +++ b/contracts/burners/MUSDBurner.vy @@ -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