From db3c4fcdcf6d8a42c932fec52aaca3d0e04d5077 Mon Sep 17 00:00:00 2001 From: Dongil Seo Date: Sat, 2 Dec 2023 00:28:51 +0900 Subject: [PATCH] Add some comments --- common/common-util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/common-util.js b/common/common-util.js index 9872e1292..1da2bc16c 100644 --- a/common/common-util.js +++ b/common/common-util.js @@ -760,8 +760,9 @@ class CommonUtil { gasAmount = 0; // Default gas amount = 0 } let cost = gasPrice * gasPriceUnit * gasAmount; + // NOTE(platfowner): Apply gas cost flooring up-to 6 decimals. if (isEnabledTimerFlag('allow_up_to_6_decimal_transfer_value_only', blockNumber)) { - cost = Math.floor(cost * 1000000) / 1000000; + cost = Math.floor(cost * 1000000) / 1000000; // gas cost flooring } return cost; }