Skip to content

Commit b2aca26

Browse files
refactor: remove re-entrancy locks
1 parent c567d33 commit b2aca26

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

contracts/pool-templates/meta/DepositTemplateMeta.vy

+1-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MAX_COIN: constant(int128) = N_COINS-1
3434
BASE_N_COINS: constant(int128) = ___BASE_N_COINS___
3535
N_ALL_COINS: constant(int128) = N_COINS + BASE_N_COINS - 1
3636

37-
# An asset shich may have a transfer fee (USDT)
37+
# An asset which may have a transfer fee (USDT)
3838
FEE_ASSET: constant(address) = 0xdAC17F958D2ee523a2206206994597C13D831ec7
3939

4040

@@ -92,7 +92,6 @@ def __init__(_pool: address, _token: address):
9292

9393

9494
@external
95-
@nonreentrant('lock')
9695
def add_liquidity(amounts: uint256[N_ALL_COINS], min_mint_amount: uint256) -> uint256:
9796
"""
9897
@notice Wrap underlying coins and deposit them in the pool
@@ -157,7 +156,6 @@ def add_liquidity(amounts: uint256[N_ALL_COINS], min_mint_amount: uint256) -> ui
157156

158157

159158
@external
160-
@nonreentrant('lock')
161159
def remove_liquidity(_amount: uint256, min_amounts: uint256[N_ALL_COINS]) -> uint256[N_ALL_COINS]:
162160
"""
163161
@notice Withdraw and unwrap coins from the pool
@@ -210,7 +208,6 @@ def remove_liquidity(_amount: uint256, min_amounts: uint256[N_ALL_COINS]) -> uin
210208

211209

212210
@external
213-
@nonreentrant('lock')
214211
def remove_liquidity_one_coin(_token_amount: uint256, i: int128, _min_amount: uint256) -> uint256:
215212
"""
216213
@notice Withdraw and unwrap a single coin from the pool

0 commit comments

Comments
 (0)