Skip to content

Commit

Permalink
Merge pull request #1288 from multiversx/MEX-437-no-exit-amount
Browse files Browse the repository at this point in the history
[MEX-437] remove exit amount from staking proxy unstake farm tokens
  • Loading branch information
claudiulataretu authored Feb 27, 2024
2 parents ce4e08b + 0eb002e commit 8636df9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@
"vote": 50000000
},
"positionCreator": {
"singleToken": 70000000,
"singleToken": 85000000,
"energyPosition": 20000000
},
"composableTasks": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8636df9

Please sign in to comment.