Skip to content

Commit

Permalink
Calculate native value based on the new amounts and native prices to …
Browse files Browse the repository at this point in the history
…be more accurate
  • Loading branch information
jinchung committed Jul 10, 2024
1 parent 4db4e06 commit b72db94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__swaps__/screens/Swap/hooks/useSwapInputsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,9 +857,9 @@ export function useSwapInputsController({
return {
...values,
inputAmount,
inputNativeValue: inputValues.value.inputNativeValue,
inputNativeValue: mulWorklet(newInputAmount, inputNativePrice),
outputAmount: newOutputAmount,
outputNativeValue: inputValues.value.outputNativeValue,
outputNativeValue: mulWorklet(newOutputAmount, outputNativePrice),
};
});
}
Expand Down

0 comments on commit b72db94

Please sign in to comment.