From dccfd21be43d7e57fb234ead2e3a2ddc85de1a62 Mon Sep 17 00:00:00 2001 From: k00b Date: Thu, 31 Oct 2024 18:25:15 -0500 Subject: [PATCH] make sure autowithdraw members are numbers --- wallets/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallets/common.js b/wallets/common.js index 43c89ac3..f85015ca 100644 --- a/wallets/common.js +++ b/wallets/common.js @@ -114,8 +114,8 @@ export function siftConfig (fields, config) { } if (['autoWithdrawMaxFeePercent', 'autoWithdrawThreshold', 'autoWithdrawMaxFeeTotal'].includes(key)) { - sifted.serverOnly[key] = value - sifted.settings = { ...sifted.settings, [key]: value } + sifted.serverOnly[key] = Number(value) + sifted.settings = { ...sifted.settings, [key]: Number(value) } continue }