Skip to content

Commit

Permalink
Merge branch 'develop' into transfer-tokens-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
pnarayanaswamy authored Oct 3, 2024
2 parents db58611 + 537b3fe commit f5117a5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ export const useApproveTokenSimulation = (
(param) =>
param.value !== undefined &&
!isHexString(param.value) &&
param.value.length === undefined &&
!isBoolean(param.value),
);
if (paramIndex === -1) {
return 0;
}

return new BigNumber(value.data[0].params[paramIndex].value)
return new BigNumber(value.data[0].params[paramIndex].value.toString())
.dividedBy(new BigNumber(10).pow(Number(decimals)))
.toNumber();
}, [value, decimals]);
Expand Down

0 comments on commit f5117a5

Please sign in to comment.