From a4c4b380802c51f68a1eaf271d81b13f49815b72 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Mon, 3 Feb 2025 22:58:25 +0100 Subject: [PATCH] Update Descriptor.sol --- src/libraries/Descriptor.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/Descriptor.sol b/src/libraries/Descriptor.sol index 327937c8d..452283379 100644 --- a/src/libraries/Descriptor.sol +++ b/src/libraries/Descriptor.sol @@ -442,10 +442,10 @@ library Descriptor { params.zerosStartIndex = 2; // leading zeros will start after the decimal point params.zerosEndIndex = uint8(nZeros + params.zerosStartIndex - 1); // end index for leading zeros params.bufferLength = uint8(nZeros + numSigfigs + 2); // total length of string buffer, including "0." and "%" - params.sigfigIndex = uint8(params.bufferLength - 2); // index of starting signficant figure + params.sigfigIndex = uint8(params.bufferLength - 2); // index of starting significant figure params.isLessThanOne = true; } - params.sigfigs = uint256(fee) / (10 ** (digits - numSigfigs)); // the signficant figures of the fee + params.sigfigs = uint256(fee) / (10 ** (digits - numSigfigs)); // the significant figures of the fee params.isPercent = true; params.decimalIndex = digits > 4 ? uint8(digits - 4) : 0; // based on total number of digits in the fee