Skip to content

Commit

Permalink
fix: best rate precision
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Jan 30, 2024
1 parent 1a65f70 commit d9af8fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const LidoButton: React.FC<OptionButtonProps> = ({ isActive, onClick }) => {
};

const toFloor = (num: number): string =>
(Math.floor(num * 10000) / 1000).toString();
(Math.floor(num * 10000) / 10000).toString();

const DexButton: React.FC<OptionButtonProps> = ({ isActive, onClick }) => {
const { loading, bestRate } = useWithdrawalRates({
Expand Down

0 comments on commit d9af8fb

Please sign in to comment.