Skip to content

Commit

Permalink
fixed decimal place error in incentive call
Browse files Browse the repository at this point in the history
  • Loading branch information
dharkmattr committed Dec 5, 2023
1 parent b57efcb commit e70e347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/aggregator/aggregator.sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit e70e347

Please sign in to comment.