From 8b52f29b91ee0deadb22591617f1865900e12acc Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Tue, 22 Oct 2024 18:12:09 +0100 Subject: [PATCH] chore: cleanup --- .../contribute/ContributeServiceManager.sol | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/contracts/contribute/ContributeServiceManager.sol b/contracts/contribute/ContributeServiceManager.sol index d899ac2..1fe6b3a 100644 --- a/contracts/contribute/ContributeServiceManager.sol +++ b/contracts/contribute/ContributeServiceManager.sol @@ -209,22 +209,6 @@ contract ContributeServiceManager { // Get the token info from the staking contract // If this call fails, it means the staking contract does not have a token and is not compatible address token = IStaking(stakingInstance).stakingToken(); -// // This way allows not to revert when the staking contract does not have a token (native token based) -// bytes memory tokenData = abi.encodeCall(IStaking.stakingToken, ()); -// (success, returnData) = instance.staticcall(tokenData); -// -// // Check the returnData is the call was successful -// if (success) { -// // The returned size must be 32 to fit one address -// if (returnData.length == 32) { -// token = abi.decode(returnData, (address)); -// if (token != olas) { -// return false; -// } -// } else { -// revert(); -// } -// } // Get other service info for staking uint256 minStakingDeposit = IStaking(stakingInstance).minStakingDeposit();