diff --git a/legacy-contracts/simple-lock-legacy/src/proxy_lp.rs b/legacy-contracts/simple-lock-legacy/src/proxy_lp.rs index 2d384a1f3..2d972c274 100644 --- a/legacy-contracts/simple-lock-legacy/src/proxy_lp.rs +++ b/legacy-contracts/simple-lock-legacy/src/proxy_lp.rs @@ -55,28 +55,6 @@ pub trait ProxyLpModule: crate::locked_token::LockedTokenModule { let lp_proxy_token_attributes: LpProxyTokenAttributes = lp_proxy_token_mapper.get_token_attributes(token_nonce); - let current_epoch = self.blockchain().get_block_epoch(); - if lp_proxy_token_attributes.first_token_locked_nonce > 0 { - let token_attributes: LockedTokenAttributes = self - .locked_token() - .get_token_attributes(lp_proxy_token_attributes.first_token_locked_nonce); - - require!( - current_epoch >= token_attributes.unlock_epoch, - CANNOT_UNLOCK_YET_ERR_MSG - ); - } - if lp_proxy_token_attributes.second_token_locked_nonce > 0 { - let token_attributes: LockedTokenAttributes = self - .locked_token() - .get_token_attributes(lp_proxy_token_attributes.second_token_locked_nonce); - - require!( - current_epoch >= token_attributes.unlock_epoch, - CANNOT_UNLOCK_YET_ERR_MSG - ); - } - lp_proxy_token_attributes.lp_token_id }