diff --git a/contracts/DepositAndStakeZapNgPoolsOnly.vy b/contracts/DepositAndStakeZapNgPoolsOnly.vy index 21f6903..fbb0bc6 100644 --- a/contracts/DepositAndStakeZapNgPoolsOnly.vy +++ b/contracts/DepositAndStakeZapNgPoolsOnly.vy @@ -3,6 +3,7 @@ """ @title CurveDeposit&StakeZap +@custom:version 1.0.0 @author Curve.Fi @license Copyright (c) Curve.Fi, 2020-2024 - all rights reserved @notice A zap to add liquidity to pool and deposit into gauge in one transaction @@ -11,8 +12,6 @@ version: public(constant(String[8])) = "1.0.0" -MAX_COINS: constant(uint256) = 9 - # External Contracts from vyper.interfaces import ERC20 @@ -31,6 +30,10 @@ interface MetaZap: interface Gauge: def deposit(lp_token_amount: uint256, addr: address): nonpayable + +MAX_COINS: constant(uint256) = 9 + + @external @nonreentrant('lock') def deposit_and_stake(