From c4fff4c27c025f40242b0270fe925797d7fc72a4 Mon Sep 17 00:00:00 2001 From: Claudiu Lataretu Date: Tue, 27 Feb 2024 15:57:49 +0200 Subject: [PATCH 1/2] MEX-437: remove exit amount from staking proxy unstake farm tokens Signed-off-by: Claudiu Lataretu --- .../services/staking.proxy.transactions.service.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/staking-proxy/services/staking.proxy.transactions.service.ts b/src/modules/staking-proxy/services/staking.proxy.transactions.service.ts index 8916843e0..8e47277c4 100644 --- a/src/modules/staking-proxy/services/staking.proxy.transactions.service.ts +++ b/src/modules/staking-proxy/services/staking.proxy.transactions.service.ts @@ -7,11 +7,9 @@ import { ruleOfThree } from 'src/helpers/helpers'; import { InputTokenModel } from 'src/models/inputToken.model'; import { TransactionModel } from 'src/models/transaction.model'; import { FarmFactoryService } from 'src/modules/farm/farm.factory'; -import { FarmVersion } from 'src/modules/farm/models/farm.model'; import { PairService } from 'src/modules/pair/services/pair.service'; import { MXApiService } from 'src/services/multiversx-communication/mx.api.service'; import { MXProxyService } from 'src/services/multiversx-communication/mx.proxy.service'; -import { farmVersion } from 'src/utils/farm.utils'; import { generateLogMessage } from 'src/utils/generate-log-message'; import { tokenIdentifier } from 'src/utils/token.converters'; import { Logger } from 'winston'; @@ -181,10 +179,6 @@ export class StakingProxyTransactionService { new BigUIntValue(amount1Min), ]; - if (farmVersion(farmAddress) === FarmVersion.V2) { - endpointArgs.push(new BigUIntValue(liquidityPositionAmount)); - } - return contract.methodsExplicit .unstakeFarmTokens(endpointArgs) .withSingleESDTNFTTransfer( From 0eb002e79f37a1e5c9b0e6ddd128250f5d8d71ef Mon Sep 17 00:00:00 2001 From: Claudiu Lataretu Date: Tue, 27 Feb 2024 16:11:50 +0200 Subject: [PATCH 2/2] MEX-437: update gas limit for create position single token Signed-off-by: Claudiu Lataretu --- src/config/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/default.json b/src/config/default.json index 26d3b42dc..b5da89b86 100644 --- a/src/config/default.json +++ b/src/config/default.json @@ -500,7 +500,7 @@ "vote": 50000000 }, "positionCreator": { - "singleToken": 70000000, + "singleToken": 85000000, "energyPosition": 20000000 }, "composableTasks": {