From e70e347ef1b9585295f2f37f12491658c53c5465 Mon Sep 17 00:00:00 2001 From: Derek Matter Date: Tue, 5 Dec 2023 15:24:42 +0200 Subject: [PATCH] fixed decimal place error in incentive call --- src/store/aggregator/aggregator.sagas.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/aggregator/aggregator.sagas.ts b/src/store/aggregator/aggregator.sagas.ts index aaf8b6a..9043d79 100644 --- a/src/store/aggregator/aggregator.sagas.ts +++ b/src/store/aggregator/aggregator.sagas.ts @@ -293,13 +293,14 @@ export function* fetchIncentive() { incentiveType = IncentiveType.reward; const tokenDecimals = yield* select(startingTokenDecimalsSelector); const amount = utils.parseUnits(sendAmount ?? '', tokenDecimals); + const amountInDefaultDecimals = utils.parseUnits(sendAmount ?? '', DEFAULT_ASSET_DECIMALS); const destinationChain = yield* select(destinationChainSelector); const isMainnet = destinationChain === ChainEnum.RSK; incentiveBN = (yield* call( getReward, sovTokenAddress!, - amount, + amountInDefaultDecimals, isMainnet )) as BigNumber; } else if (flowState === 'withdraw') {