From 5c3b990d382c8017e66e6993fadd34f3136b258c Mon Sep 17 00:00:00 2001 From: Sorin Petreasca Date: Wed, 5 Jun 2024 12:43:59 +0300 Subject: [PATCH] Remove checks in simple lock legacy SC --- .../simple-lock-legacy/src/proxy_lp.rs | 22 ------------------- 1 file changed, 22 deletions(-) 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 }